@minnalstack/editor-plugin-emoji 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAAA,+HAA+H;AAC/H,oLAAoL;AACpL,MAAM,CAAC,MAAM,SAAS,GAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA03DW,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { EditorPlugin, type PluginContext } from '@minnalstack/editor-core';
2
+ import { type SkinTone } from './skin-tones.js';
3
+ export type { SkinTone } from './skin-tones.js';
4
+ export declare const InsertEmoji: import("@minnalstack/editor-core").Command<{
5
+ readonly text: string;
6
+ }>;
7
+ export interface EmojiPluginOptions {
8
+ /** The skin tone to start with, for an application that keeps it for each person. With none, it is the last one chosen in this browser. */
9
+ readonly skinTone?: SkinTone;
10
+ /** Hears someone choose a skin tone, for keeping it your own way. With this, nothing is kept in the browser. */
11
+ readonly onSkinToneChosen?: (tone: SkinTone) => void;
12
+ }
13
+ /**
14
+ * Emoji, as the Unicode characters they are, so a document holds text and a page draws them in the system's own font. A picker in the toolbar and the slash menu, which also opens when `:` starts
15
+ * a word, with a skin tone that holds for every emoji that takes one. A whole code such as `:tada:` turns into its emoji. Works on any preset. Its data loads only when something first wants it.
16
+ */
17
+ export declare class EmojiPlugin extends EditorPlugin {
18
+ readonly name = "emoji";
19
+ private readonly options;
20
+ private tone;
21
+ private content;
22
+ private loaded;
23
+ constructor(options?: EmojiPluginOptions);
24
+ configure(context: PluginContext): void;
25
+ }
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAAiB,MAAM,0BAA0B,CAAC;AAE3F,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,iBAAiB,CAAC;AAE3D,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,WAAW;mBAAkC,MAAM;EAA0E,CAAC;AAE3I,MAAM,WAAW,kBAAkB;IACjC,2IAA2I;IAC3I,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,gHAAgH;IAChH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACtD;AAsBD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAC3C,SAAkB,IAAI,WAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,IAAI,CAAyB;IACrC,OAAO,CAAC,OAAO,CAAsC;IACrD,OAAO,CAAC,MAAM,CAA6B;IAE3C,YAAY,OAAO,GAAE,kBAAuB,EAG3C;IAEQ,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAiC/C;CACF"}
package/dist/index.js ADDED
@@ -0,0 +1,70 @@
1
+ import { EditorPlugin, defineCommand } from '@minnalstack/editor-core';
2
+ import { skinTones } from './skin-tones.js';
3
+ export const InsertEmoji = defineCommand('text.emoji', { description: 'Puts an emoji where the selection is' });
4
+ const rememberedTone = 'minnal-editor.emoji-skin-tone';
5
+ /** Storage can be turned off, or throw, and a skin tone isn't worth failing for. */
6
+ function readRememberedTone() {
7
+ try {
8
+ const value = globalThis.localStorage?.getItem(rememberedTone);
9
+ return skinTones.find((tone) => tone.value === value)?.value ?? null;
10
+ }
11
+ catch {
12
+ return null;
13
+ }
14
+ }
15
+ function rememberTone(tone) {
16
+ try {
17
+ globalThis.localStorage?.setItem(rememberedTone, tone);
18
+ }
19
+ catch {
20
+ // It lasts until the page closes, then.
21
+ }
22
+ }
23
+ /**
24
+ * Emoji, as the Unicode characters they are, so a document holds text and a page draws them in the system's own font. A picker in the toolbar and the slash menu, which also opens when `:` starts
25
+ * a word, with a skin tone that holds for every emoji that takes one. A whole code such as `:tada:` turns into its emoji. Works on any preset. Its data loads only when something first wants it.
26
+ */
27
+ export class EmojiPlugin extends EditorPlugin {
28
+ name = 'emoji';
29
+ options;
30
+ tone = null;
31
+ content = null;
32
+ loaded = null;
33
+ constructor(options = {}) {
34
+ super();
35
+ this.options = options;
36
+ }
37
+ configure(context) {
38
+ const { skinTone, onSkinToneChosen } = this.options;
39
+ const isKeptByTheApplication = skinTone !== undefined || onSkinToneChosen !== undefined;
40
+ // Read each time, so that two editors on a page agree. It costs little, and only while a picker draws.
41
+ const currentTone = () => (isKeptByTheApplication ? null : readRememberedTone()) ?? this.tone ?? skinTone ?? 'none';
42
+ const chooseTone = (tone) => {
43
+ this.tone = tone;
44
+ if (isKeptByTheApplication)
45
+ onSkinToneChosen?.(tone);
46
+ else
47
+ rememberTone(tone);
48
+ };
49
+ const load = () => (this.content ??= import('./content.js').then(({ emojiContent }) => {
50
+ this.loaded = emojiContent({ current: currentTone, choose: chooseTone });
51
+ return this.loaded;
52
+ }, (error) => {
53
+ // So that the next attempt fetches it again, because this one may only have been a dropped connection.
54
+ this.content = null;
55
+ throw error;
56
+ }));
57
+ context.commands.add(InsertEmoji, {
58
+ // An empty one comes from a code that isn't an emoji, and the rule leaves what was typed.
59
+ canExecute: (ctx, args) => ctx.editor.selection?.kind === 'text' && args?.text !== '',
60
+ execute: (ctx, args) => ctx.editor.edit((edit) => edit.replaceSelection(args.text)),
61
+ });
62
+ const args = (choice) => ({ text: choice.text });
63
+ const item = { command: InsertEmoji, label: 'Emoji', icon: 'emoji', keywords: ['smiley', 'face'], group: 'insert', order: 45, picker: { label: 'Search emoji', load, args } };
64
+ context.menus.toolbar.add(item);
65
+ context.menus.slash.add({ ...item, category: 'Insert' });
66
+ context.menus.suggestions.add({ label: 'Emoji', trigger: ':', minLength: 0, command: InsertEmoji, load, args });
67
+ context.inputRules.add({ match: /(?<=^|\s):([\w+-]{2,40}):$/, command: InsertEmoji, argsOf: (found) => ({ text: this.loaded?.find(found[1]) ?? '' }) });
68
+ }
69
+ }
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OA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 'medium-light' | 'medium' | 'medium-dark' | 'dark';
3
+ export declare const skinTones: readonly {
4
+ readonly value: SkinTone;
5
+ readonly name: string;
6
+ }[];
7
+ /**
8
+ * An emoji in a skin tone: Unicode's modifier goes after each person or hand in it, in place of any variation selector, so it costs a page no data. Only for an emoji that Unicode gives tones to.
9
+ * A handshake takes one by itself, but between two people, in people holding hands, it doesn't. The script that writes the data checks this against every variant Unicode lists.
10
+ */
11
+ export declare function withSkinTone(text: string, tone: SkinTone): string;
12
+ //# sourceMappingURL=skin-tones.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skin-tones.d.ts","sourceRoot":"","sources":["../src/skin-tones.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;AAW7F,eAAO,MAAM,SAAS,EAAE,SAAS;IAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAOnF,CAAC;AAIF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,MAAM,CAMjE"}
@@ -0,0 +1,30 @@
1
+ const modifiers = {
2
+ none: '',
3
+ light: '\u{1F3FB}',
4
+ 'medium-light': '\u{1F3FC}',
5
+ medium: '\u{1F3FD}',
6
+ 'medium-dark': '\u{1F3FE}',
7
+ dark: '\u{1F3FF}',
8
+ };
9
+ export const skinTones = [
10
+ { value: 'none', name: 'No skin tone' },
11
+ { value: 'light', name: 'Light skin tone' },
12
+ { value: 'medium-light', name: 'Medium-light skin tone' },
13
+ { value: 'medium', name: 'Medium skin tone' },
14
+ { value: 'medium-dark', name: 'Medium-dark skin tone' },
15
+ { value: 'dark', name: 'Dark skin tone' },
16
+ ];
17
+ const handshake = '\u{1F91D}';
18
+ /**
19
+ * An emoji in a skin tone: Unicode's modifier goes after each person or hand in it, in place of any variation selector, so it costs a page no data. Only for an emoji that Unicode gives tones to.
20
+ * A handshake takes one by itself, but between two people, in people holding hands, it doesn't. The script that writes the data checks this against every variant Unicode lists.
21
+ */
22
+ export function withSkinTone(text, tone) {
23
+ // Nothing for no tone, nor for a value an application stored and we don't know.
24
+ const modifier = modifiers[tone];
25
+ if (modifier === undefined || modifier === '')
26
+ return text;
27
+ const isJoined = text.includes('‍');
28
+ return text.replace(/(\p{Emoji_Modifier_Base})️?/gu, (_, base) => (isJoined && base === handshake ? base : base + modifier));
29
+ }
30
+ //# sourceMappingURL=skin-tones.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skin-tones.js","sourceRoot":"","sources":["../src/skin-tones.ts"],"names":[],"mappings":"AAGA,MAAM,SAAS,GAAuC;IACpD,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,WAAW;IAClB,cAAc,EAAE,WAAW;IAC3B,MAAM,EAAE,WAAW;IACnB,aAAa,EAAE,WAAW;IAC1B,IAAI,EAAE,WAAW;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAmE;IACvF,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE;IACvC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAC3C,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,wBAAwB,EAAE;IACzD,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAC7C,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,uBAAuB,EAAE;IACvD,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE;CAC1C,CAAC;AAEF,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,IAAc;IACvD,gFAAgF;IAChF,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IAC3D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,CAAC,CAAC,EAAE,IAAY,EAAE,EAAE,CAAC,CAAC,QAAQ,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC;AACvI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "@minnalstack/editor-plugin-emoji",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "license": "MIT",
5
+ "description": "Emoji as Unicode characters: a picker in the toolbar and the slash menu, and suggestions while typing.",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ }
12
+ },
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "dist",
16
+ "THIRD-PARTY-NOTICES.md"
17
+ ],
18
+ "sideEffects": false,
19
+ "scripts": {
20
+ "build": "tsc -p tsconfig.json"
21
+ },
22
+ "peerDependencies": {
23
+ "@minnalstack/editor-core": "^0.3.0"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "registry": "https://registry.npmjs.org/"
28
+ }
29
+ }