Skip to content

Commit

Permalink
feat: move emoji-mart package to root
Browse files Browse the repository at this point in the history
As this git repository consists of [yarn workspaces](https://yarnpkg.com/features/workspaces),
which enable to define mono repo packages within one repository, but we want
to use only one package `emoji-mart`. `slido-frontend` does not use yarn2 yet, so the workspace
can't be specified see yarnpkg/yarn#1570 (comment).

As we are of the full control of this forked repository, the fastest and easiest is to change the
folder structure to consist only of this package 🎉.

I was also considering this 3rd party subfolder generation https://github.com/EqualMa/gitpkg, but decided
not to depend on potentially security risk of 3rd party provider.
  • Loading branch information
JanPodmajersky committed May 29, 2024
1 parent d7fa4eb commit 8143710
Show file tree
Hide file tree
Showing 176 changed files with 8,560 additions and 5,963 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/test.yml

This file was deleted.

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

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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;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAc;gBAEd,KAAK,KAAA;IAIX,iBAAiB;CAYxB;ACxBD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAA","sources":["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

0 comments on commit 8143710

Please sign in to comment.