Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move built emoji-mart package to root #2

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.parcel-cache
coverage
node_modules
dist
packages/**/dist
Empty file added dist/.gitkeep
Empty file.
2 changes: 2 additions & 0 deletions dist/browser.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/browser.js.map

Large diffs are not rendered by default.

178 changes: 178 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
import { HTMLElement as _HTMLElement1 } from "components/HTMLElement";
declare function set(key: string, value: string): void;
declare function get(key: string): any;
export const Store: {
set: typeof set;
get: typeof get;
};
declare function add(emoji: {
id: string;
}): void;
declare function _get1({ maxFrequentRows, perLine }: {
maxFrequentRows: any;
perLine: any;
}): any[];
export const FrequentlyUsed: {
add: typeof add;
_get1: typeof _get1;
DEFAULTS: string[];
};
export let I18n: any;
export let Data: any;
export function init(options: any, { caller }?: {
caller: any;
}): Promise<void>;
declare function _get2(emojiId: any): any;
declare function reset(): void;
declare function search(value: any, { maxResults, caller }?: {
maxResults: any;
caller: any;
}): Promise<any>;
export const SearchIndex: {
search: typeof search;
_get2: typeof _get2;
reset: typeof reset;
SHORTCODES_REGEX: RegExp;
};
export const SafeFlags: string[];
export function getEmojiDataFromNative(nativeString: any): Promise<any>;
declare const WindowHTMLElement: ObjectConstructor | {
new (): HTMLElement;
prototype: HTMLElement;
};
declare class HTMLElement extends WindowHTMLElement {
static get observedAttributes(): string[];
constructor(props?: {});
update(props?: {}): void;
attributeChangedCallback(attr: any, _: any, newValue: any): void;
disconnectedCallback(): void;
}
declare class ShadowElement extends HTMLElement {
constructor(props: any, { styles }?: {
styles: any;
});
setShadow(): void;
injectStyles(styles: any): void;
}
export class Emoji extends _HTMLElement1 {
static Props: {
fallback: string;
id: string;
native: string;
shortcodes: string;
size: {
value: string;
transform: (value: any) => any;
};
set: {
value: string;
choices: string[];
};
skin: {
value: number;
choices: number[];
};
};
constructor(props: any);
connectedCallback(): Promise<void>;
component: any;
}
export class Picker extends ShadowElement {
static Props: {
autoFocus: {
value: boolean;
};
dynamicWidth: {
value: boolean;
};
emojiButtonColors: {
value: any;
};
emojiButtonRadius: {
value: string;
};
emojiButtonSize: {
value: number;
};
emojiSize: {
value: number;
};
emojiVersion: {
value: number;
choices: number[];
};
exceptEmojis: {
value: any[];
};
icons: {
value: string;
choices: string[];
};
locale: {
value: string;
choices: string[];
};
maxFrequentRows: {
value: number;
};
navPosition: {
value: string;
choices: string[];
};
noCountryFlags: {
value: boolean;
};
noResultsEmoji: {
value: any;
};
perLine: {
value: number;
};
previewEmoji: {
value: any;
};
previewPosition: {
value: string;
choices: string[];
};
searchPosition: {
value: string;
choices: string[];
};
set: {
value: string;
choices: string[];
};
skin: {
value: number;
choices: number[];
};
skinTonePosition: {
value: string;
choices: string[];
};
theme: {
value: string;
choices: string[];
};
categories: any;
categoryIcons: any;
custom: any;
data: any;
i18n: any;
getImageURL: any;
getSpritesheetURL: any;
onAddCustomEmoji: any;
onClickOutside: any;
onEmojiSelect: any;
stickySearch: {
deprecated: boolean;
value: boolean;
};
};
constructor(props: any);
connectedCallback(): Promise<void>;
}
export { default as PickerStyles } from 'bundle-text:./PickerStyles.scss';

//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"mappings":";AAAA,qBAAa,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAItC;AAED,qBAAa,GAAG,E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ources":["packages/emoji-mart/src/src/helpers/store.ts","packages/emoji-mart/src/src/helpers/native-support.ts","packages/emoji-mart/src/src/helpers/frequently-used.ts","packages/emoji-mart/src/src/components/Picker/PickerProps.ts","packages/emoji-mart/src/src/config.ts","packages/emoji-mart/src/src/helpers/search-index.ts","packages/emoji-mart/src/src/helpers/index.ts","packages/emoji-mart/src/src/utils.ts","packages/emoji-mart/src/src/icons.tsx","packages/emoji-mart/src/src/components/Emoji/Emoji.tsx","packages/emoji-mart/src/src/components/HTMLElement/HTMLElement.ts","packages/emoji-mart/src/src/components/HTMLElement/ShadowElement.ts","packages/emoji-mart/src/src/components/HTMLElement/index.ts","packages/emoji-mart/src/src/components/Emoji/EmojiProps.ts","packages/emoji-mart/src/src/components/Emoji/EmojiElement.jsx","packages/emoji-mart/src/src/components/Emoji/index.ts","packages/emoji-mart/src/src/components/Navigation/Navigation.tsx","packages/emoji-mart/src/src/components/Navigation/index.ts","packages/emoji-mart/src/src/components/HOCs/PureInlineComponent.ts","packages/emoji-mart/src/src/components/HOCs/index.ts","packages/emoji-mart/src/src/components/Picker/Picker.tsx","packages/emoji-mart/src/src/components/Picker/PickerElement.tsx","packages/emoji-mart/src/src/components/Picker/index.ts","packages/emoji-mart/src/src/index.ts","packages/emoji-mart/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export { PickerElement as Picker } from './components/Picker'\nexport { EmojiElement as Emoji } from './components/Emoji'\n\nexport { FrequentlyUsed, SafeFlags, SearchIndex, Store } from './helpers'\n\nexport { init, Data, I18n } from './config'\n\nexport { getEmojiDataFromNative } from './utils'\n"],"names":[],"version":3,"file":"index.d.ts.map"}
Loading