autumnnote 1.15.0 → 2.0.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.
- package/README.md +53 -2
- package/dist/autumnnote.cjs +21 -21
- package/dist/autumnnote.css +1 -1
- package/dist/autumnnote.es.js +1470 -5884
- package/dist/autumnnote.es.js.map +1 -1
- package/dist/autumnnote.min.js +61 -0
- package/dist/autumnnote.umd.js +21 -21
- package/dist/autumnnote.umd.js.map +1 -1
- package/dist/emoji-data-BDQX5kh-.js +2331 -0
- package/dist/emoji-data-BDQX5kh-.js.map +1 -0
- package/package.json +9 -5
- package/src/js/Context.js +216 -17
- package/src/js/editing/History.js +38 -6
- package/src/js/i18n/all.js +27 -0
- package/src/js/i18n/de.js +15 -0
- package/src/js/i18n/en.js +15 -0
- package/src/js/i18n/es.js +15 -0
- package/src/js/i18n/fr.js +15 -0
- package/src/js/i18n/index.js +45 -19
- package/src/js/i18n/ja.js +15 -0
- package/src/js/i18n/ko.js +15 -0
- package/src/js/i18n/vi.js +15 -0
- package/src/js/i18n/zh.js +15 -0
- package/src/js/index.js +24 -2
- package/src/js/index.umd.js +5 -0
- package/src/js/module/BaseMediaTooltip.js +142 -0
- package/src/js/module/BaseResizer.js +312 -0
- package/src/js/module/Clipboard.js +20 -6
- package/src/js/module/Editor.js +15 -1
- package/src/js/module/EmojiDialog.js +41 -494
- package/src/js/module/ImageDialog.js +34 -6
- package/src/js/module/ImageResizer.js +23 -241
- package/src/js/module/ImageTooltip.js +16 -111
- package/src/js/module/MarkdownShortcuts.js +2 -2
- package/src/js/module/SlashMenu.js +376 -0
- package/src/js/module/Statusbar.js +3 -9
- package/src/js/module/VideoResizer.js +38 -239
- package/src/js/module/VideoTooltip.js +27 -114
- package/src/js/module/emoji-data.js +496 -0
- package/src/js/settings.js +27 -0
- package/src/styles/autumnnote.scss +49 -0
- package/types/i18n/all.d.ts +14 -0
- package/types/i18n/de.d.ts +4 -0
- package/types/i18n/en.d.ts +4 -0
- package/types/i18n/es.d.ts +4 -0
- package/types/i18n/fr.d.ts +4 -0
- package/types/i18n/ja.d.ts +4 -0
- package/types/i18n/ko.d.ts +4 -0
- package/types/i18n/vi.d.ts +4 -0
- package/types/i18n/zh.d.ts +4 -0
- package/types/index.d.ts +113 -4
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* emoji-data.js — Emoji catalogue for EmojiDialog.
|
|
3
|
+
*
|
|
4
|
+
* Kept in its own module and pulled in with a dynamic import so the ~25 KB
|
|
5
|
+
* table (≈6 KB gzip) becomes a separate chunk instead of riding along in the
|
|
6
|
+
* main bundle for every consumer, including those whose toolbar has no emoji
|
|
7
|
+
* button. The UMD/CDN build inlines it again, since script tags cannot fetch
|
|
8
|
+
* chunks.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export const EMOJI_CATS = [
|
|
12
|
+
{ id: 'smileys', label: 'Smileys' },
|
|
13
|
+
{ id: 'people', label: 'People' },
|
|
14
|
+
{ id: 'animals', label: 'Animals' },
|
|
15
|
+
{ id: 'food', label: 'Food' },
|
|
16
|
+
{ id: 'travel', label: 'Travel' },
|
|
17
|
+
{ id: 'objects', label: 'Objects' },
|
|
18
|
+
{ id: 'symbols', label: 'Symbols' },
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
// [emoji_char, search_keywords, category]
|
|
22
|
+
export const EMOJI_LIST = [
|
|
23
|
+
// Smileys & Emotions
|
|
24
|
+
['😀', 'grin smile happy face', 'smileys'],
|
|
25
|
+
['😃', 'happy smile big eyes', 'smileys'],
|
|
26
|
+
['😄', 'grinning smile laugh', 'smileys'],
|
|
27
|
+
['😁', 'beaming smile grin', 'smileys'],
|
|
28
|
+
['😆', 'laughing lol', 'smileys'],
|
|
29
|
+
['😅', 'sweat grin awkward', 'smileys'],
|
|
30
|
+
['🤣', 'rolling laugh rofl', 'smileys'],
|
|
31
|
+
['😂', 'tears laugh cry joy', 'smileys'],
|
|
32
|
+
['🙂', 'slight smile', 'smileys'],
|
|
33
|
+
['🙃', 'upside down smile', 'smileys'],
|
|
34
|
+
['😉', 'wink', 'smileys'],
|
|
35
|
+
['😊', 'blush smile happy', 'smileys'],
|
|
36
|
+
['😇', 'innocent halo angel', 'smileys'],
|
|
37
|
+
['🥰', 'hearts love adore', 'smileys'],
|
|
38
|
+
['😍', 'heart eyes love', 'smileys'],
|
|
39
|
+
['🤩', 'star eyes excited wow', 'smileys'],
|
|
40
|
+
['😘', 'kiss blow love', 'smileys'],
|
|
41
|
+
['😋', 'yum delicious tongue', 'smileys'],
|
|
42
|
+
['😛', 'tongue stuck out', 'smileys'],
|
|
43
|
+
['😜', 'wink tongue crazy', 'smileys'],
|
|
44
|
+
['🤪', 'zany crazy wild', 'smileys'],
|
|
45
|
+
['😝', 'squint tongue', 'smileys'],
|
|
46
|
+
['🤑', 'money mouth', 'smileys'],
|
|
47
|
+
['🤗', 'hugging hug', 'smileys'],
|
|
48
|
+
['🤔', 'thinking hmm', 'smileys'],
|
|
49
|
+
['🤨', 'raised eyebrow', 'smileys'],
|
|
50
|
+
['😐', 'neutral face', 'smileys'],
|
|
51
|
+
['😶', 'no mouth', 'smileys'],
|
|
52
|
+
['😏', 'smirk', 'smileys'],
|
|
53
|
+
['😒', 'unamused', 'smileys'],
|
|
54
|
+
['🙄', 'roll eyes', 'smileys'],
|
|
55
|
+
['😬', 'grimace', 'smileys'],
|
|
56
|
+
['😔', 'pensive sad', 'smileys'],
|
|
57
|
+
['😪', 'sleepy tired', 'smileys'],
|
|
58
|
+
['😴', 'sleeping zzz', 'smileys'],
|
|
59
|
+
['🤤', 'drool', 'smileys'],
|
|
60
|
+
['😷', 'mask sick', 'smileys'],
|
|
61
|
+
['🤒', 'sick thermometer', 'smileys'],
|
|
62
|
+
['🤕', 'hurt bandage', 'smileys'],
|
|
63
|
+
['🤢', 'nausea sick', 'smileys'],
|
|
64
|
+
['🤮', 'vomit sick', 'smileys'],
|
|
65
|
+
['🤧', 'sneeze cold', 'smileys'],
|
|
66
|
+
['🥵', 'hot sweat', 'smileys'],
|
|
67
|
+
['🥶', 'cold freeze', 'smileys'],
|
|
68
|
+
['😵', 'dizzy dead', 'smileys'],
|
|
69
|
+
['🤯', 'mind blown', 'smileys'],
|
|
70
|
+
['🤠', 'cowboy hat', 'smileys'],
|
|
71
|
+
['🥳', 'party celebrate', 'smileys'],
|
|
72
|
+
['😎', 'cool sunglasses', 'smileys'],
|
|
73
|
+
['🤓', 'nerd glasses', 'smileys'],
|
|
74
|
+
['🧐', 'monocle curious', 'smileys'],
|
|
75
|
+
['😕', 'confused', 'smileys'],
|
|
76
|
+
['😟', 'worried', 'smileys'],
|
|
77
|
+
['🙁', 'frown sad', 'smileys'],
|
|
78
|
+
['☹️', 'sad frown', 'smileys'],
|
|
79
|
+
['😮', 'surprised open mouth', 'smileys'],
|
|
80
|
+
['😲', 'astonished', 'smileys'],
|
|
81
|
+
['🥺', 'pleading begging puppy eyes', 'smileys'],
|
|
82
|
+
['😢', 'cry sad tear', 'smileys'],
|
|
83
|
+
['😭', 'sob cry loudly', 'smileys'],
|
|
84
|
+
['😱', 'scream horror fear', 'smileys'],
|
|
85
|
+
['😡', 'angry red pouting', 'smileys'],
|
|
86
|
+
['😠', 'angry mad', 'smileys'],
|
|
87
|
+
['🤬', 'cursing swear', 'smileys'],
|
|
88
|
+
['😈', 'devil evil smile', 'smileys'],
|
|
89
|
+
['👿', 'devil angry evil', 'smileys'],
|
|
90
|
+
['💀', 'skull death', 'smileys'],
|
|
91
|
+
['☠️', 'skull crossbones', 'smileys'],
|
|
92
|
+
['💩', 'poop', 'smileys'],
|
|
93
|
+
['🤡', 'clown', 'smileys'],
|
|
94
|
+
['👻', 'ghost boo', 'smileys'],
|
|
95
|
+
['👽', 'alien ufo', 'smileys'],
|
|
96
|
+
['🤖', 'robot', 'smileys'],
|
|
97
|
+
|
|
98
|
+
// People & Body
|
|
99
|
+
['👋', 'wave hello hi hand', 'people'],
|
|
100
|
+
['🤚', 'raised back hand', 'people'],
|
|
101
|
+
['✋', 'raised hand stop', 'people'],
|
|
102
|
+
['🖖', 'vulcan salute spock', 'people'],
|
|
103
|
+
['👌', 'ok perfect fine', 'people'],
|
|
104
|
+
['✌️', 'peace victory fingers', 'people'],
|
|
105
|
+
['🤞', 'fingers crossed luck', 'people'],
|
|
106
|
+
['🤟', 'love you gesture', 'people'],
|
|
107
|
+
['🤘', 'sign of horns rock', 'people'],
|
|
108
|
+
['🤙', 'call me hand', 'people'],
|
|
109
|
+
['👈', 'point left', 'people'],
|
|
110
|
+
['👉', 'point right', 'people'],
|
|
111
|
+
['👆', 'point up', 'people'],
|
|
112
|
+
['👇', 'point down', 'people'],
|
|
113
|
+
['☝️', 'index pointing up', 'people'],
|
|
114
|
+
['👍', 'thumbs up like good', 'people'],
|
|
115
|
+
['👎', 'thumbs down dislike bad', 'people'],
|
|
116
|
+
['✊', 'raised fist punch', 'people'],
|
|
117
|
+
['👊', 'oncoming fist punch', 'people'],
|
|
118
|
+
['👏', 'clap applause', 'people'],
|
|
119
|
+
['🙌', 'celebrate raise hands', 'people'],
|
|
120
|
+
['🤝', 'handshake deal', 'people'],
|
|
121
|
+
['🙏', 'pray hope please thanks', 'people'],
|
|
122
|
+
['💅', 'nail polish', 'people'],
|
|
123
|
+
['💪', 'flexed bicep strong muscle', 'people'],
|
|
124
|
+
['👀', 'eyes look see', 'people'],
|
|
125
|
+
['👁️', 'eye', 'people'],
|
|
126
|
+
['👅', 'tongue', 'people'],
|
|
127
|
+
['👶', 'baby', 'people'],
|
|
128
|
+
['🧒', 'child', 'people'],
|
|
129
|
+
['👦', 'boy', 'people'],
|
|
130
|
+
['👧', 'girl', 'people'],
|
|
131
|
+
['🧑', 'person adult', 'people'],
|
|
132
|
+
['👨', 'man', 'people'],
|
|
133
|
+
['👩', 'woman', 'people'],
|
|
134
|
+
['🧔', 'beard man', 'people'],
|
|
135
|
+
['🧓', 'older person', 'people'],
|
|
136
|
+
['👴', 'old man', 'people'],
|
|
137
|
+
['👵', 'old woman', 'people'],
|
|
138
|
+
['❤️', 'heart love red', 'people'],
|
|
139
|
+
['🧡', 'orange heart love', 'people'],
|
|
140
|
+
['💛', 'yellow heart love', 'people'],
|
|
141
|
+
['💚', 'green heart love', 'people'],
|
|
142
|
+
['💙', 'blue heart love', 'people'],
|
|
143
|
+
['💜', 'purple heart love', 'people'],
|
|
144
|
+
['🖤', 'black heart', 'people'],
|
|
145
|
+
['🤍', 'white heart', 'people'],
|
|
146
|
+
['🤎', 'brown heart', 'people'],
|
|
147
|
+
['💔', 'broken heart', 'people'],
|
|
148
|
+
['❣️', 'exclamation heart', 'people'],
|
|
149
|
+
['💕', 'two hearts love', 'people'],
|
|
150
|
+
['💞', 'revolving hearts', 'people'],
|
|
151
|
+
['💓', 'beating heart', 'people'],
|
|
152
|
+
['💗', 'growing heart', 'people'],
|
|
153
|
+
['💖', 'sparkling heart', 'people'],
|
|
154
|
+
['💘', 'heart arrow', 'people'],
|
|
155
|
+
['💝', 'heart ribbon', 'people'],
|
|
156
|
+
['💬', 'speech bubble comment chat', 'people'],
|
|
157
|
+
['💭', 'thought bubble', 'people'],
|
|
158
|
+
['💯', '100 hundred percent perfect', 'people'],
|
|
159
|
+
['💢', 'anger symbol mad', 'people'],
|
|
160
|
+
['💤', 'zzz sleep', 'people'],
|
|
161
|
+
|
|
162
|
+
// Animals & Nature
|
|
163
|
+
['🐶', 'dog puppy', 'animals'],
|
|
164
|
+
['🐱', 'cat kitten', 'animals'],
|
|
165
|
+
['🐭', 'mouse', 'animals'],
|
|
166
|
+
['🐹', 'hamster', 'animals'],
|
|
167
|
+
['🐰', 'rabbit bunny', 'animals'],
|
|
168
|
+
['🦊', 'fox', 'animals'],
|
|
169
|
+
['🐻', 'bear', 'animals'],
|
|
170
|
+
['🐼', 'panda', 'animals'],
|
|
171
|
+
['🐨', 'koala', 'animals'],
|
|
172
|
+
['🐯', 'tiger', 'animals'],
|
|
173
|
+
['🦁', 'lion', 'animals'],
|
|
174
|
+
['🐮', 'cow', 'animals'],
|
|
175
|
+
['🐷', 'pig', 'animals'],
|
|
176
|
+
['🐸', 'frog', 'animals'],
|
|
177
|
+
['🐵', 'monkey', 'animals'],
|
|
178
|
+
['🙈', 'see no evil monkey', 'animals'],
|
|
179
|
+
['🙉', 'hear no evil monkey', 'animals'],
|
|
180
|
+
['🙊', 'speak no evil monkey', 'animals'],
|
|
181
|
+
['🐔', 'chicken hen', 'animals'],
|
|
182
|
+
['🐧', 'penguin', 'animals'],
|
|
183
|
+
['🐦', 'bird', 'animals'],
|
|
184
|
+
['🦆', 'duck', 'animals'],
|
|
185
|
+
['🦅', 'eagle', 'animals'],
|
|
186
|
+
['🦉', 'owl', 'animals'],
|
|
187
|
+
['🦇', 'bat', 'animals'],
|
|
188
|
+
['🐺', 'wolf', 'animals'],
|
|
189
|
+
['🐴', 'horse', 'animals'],
|
|
190
|
+
['🦄', 'unicorn', 'animals'],
|
|
191
|
+
['🐝', 'bee', 'animals'],
|
|
192
|
+
['🦋', 'butterfly', 'animals'],
|
|
193
|
+
['🐌', 'snail', 'animals'],
|
|
194
|
+
['🐞', 'ladybug', 'animals'],
|
|
195
|
+
['🐢', 'turtle', 'animals'],
|
|
196
|
+
['🐍', 'snake', 'animals'],
|
|
197
|
+
['🦎', 'lizard', 'animals'],
|
|
198
|
+
['🐊', 'crocodile', 'animals'],
|
|
199
|
+
['🐟', 'fish', 'animals'],
|
|
200
|
+
['🐠', 'tropical fish', 'animals'],
|
|
201
|
+
['🦈', 'shark', 'animals'],
|
|
202
|
+
['🐬', 'dolphin', 'animals'],
|
|
203
|
+
['🐳', 'whale', 'animals'],
|
|
204
|
+
['🐙', 'octopus', 'animals'],
|
|
205
|
+
['🦑', 'squid', 'animals'],
|
|
206
|
+
['🦀', 'crab', 'animals'],
|
|
207
|
+
['🌸', 'cherry blossom flower', 'animals'],
|
|
208
|
+
['🌺', 'hibiscus flower', 'animals'],
|
|
209
|
+
['🌻', 'sunflower', 'animals'],
|
|
210
|
+
['🌹', 'rose flower', 'animals'],
|
|
211
|
+
['🌷', 'tulip flower', 'animals'],
|
|
212
|
+
['🍀', 'four leaf clover luck', 'animals'],
|
|
213
|
+
['🌿', 'herb leaf green', 'animals'],
|
|
214
|
+
['🌱', 'seedling sprout', 'animals'],
|
|
215
|
+
['🌲', 'evergreen tree pine', 'animals'],
|
|
216
|
+
['🌳', 'deciduous tree', 'animals'],
|
|
217
|
+
['🌴', 'palm tree', 'animals'],
|
|
218
|
+
['🍄', 'mushroom', 'animals'],
|
|
219
|
+
['🌾', 'sheaf wheat', 'animals'],
|
|
220
|
+
['🐾', 'paw prints animal', 'animals'],
|
|
221
|
+
|
|
222
|
+
// Food & Drink
|
|
223
|
+
['🍎', 'apple red', 'food'],
|
|
224
|
+
['🍊', 'orange tangerine', 'food'],
|
|
225
|
+
['🍋', 'lemon yellow', 'food'],
|
|
226
|
+
['🍇', 'grapes', 'food'],
|
|
227
|
+
['🍓', 'strawberry', 'food'],
|
|
228
|
+
['🫐', 'blueberry', 'food'],
|
|
229
|
+
['🍒', 'cherry', 'food'],
|
|
230
|
+
['🍑', 'peach', 'food'],
|
|
231
|
+
['🥭', 'mango', 'food'],
|
|
232
|
+
['🍍', 'pineapple', 'food'],
|
|
233
|
+
['🥥', 'coconut', 'food'],
|
|
234
|
+
['🥝', 'kiwi', 'food'],
|
|
235
|
+
['🍅', 'tomato', 'food'],
|
|
236
|
+
['🥑', 'avocado', 'food'],
|
|
237
|
+
['🍆', 'eggplant aubergine', 'food'],
|
|
238
|
+
['🥕', 'carrot', 'food'],
|
|
239
|
+
['🌽', 'corn', 'food'],
|
|
240
|
+
['🥦', 'broccoli', 'food'],
|
|
241
|
+
['🥬', 'leafy green', 'food'],
|
|
242
|
+
['🧄', 'garlic', 'food'],
|
|
243
|
+
['🥜', 'peanut nut', 'food'],
|
|
244
|
+
['🍞', 'bread loaf', 'food'],
|
|
245
|
+
['🥐', 'croissant', 'food'],
|
|
246
|
+
['🧀', 'cheese', 'food'],
|
|
247
|
+
['🍳', 'egg fry cooking', 'food'],
|
|
248
|
+
['🥚', 'egg', 'food'],
|
|
249
|
+
['🥞', 'pancake', 'food'],
|
|
250
|
+
['🧇', 'waffle', 'food'],
|
|
251
|
+
['🥓', 'bacon', 'food'],
|
|
252
|
+
['🥩', 'meat steak', 'food'],
|
|
253
|
+
['🍗', 'chicken leg', 'food'],
|
|
254
|
+
['🌭', 'hotdog', 'food'],
|
|
255
|
+
['🍔', 'burger hamburger', 'food'],
|
|
256
|
+
['🍟', 'fries french', 'food'],
|
|
257
|
+
['🍕', 'pizza', 'food'],
|
|
258
|
+
['🌮', 'taco', 'food'],
|
|
259
|
+
['🌯', 'burrito wrap', 'food'],
|
|
260
|
+
['🍜', 'noodles ramen', 'food'],
|
|
261
|
+
['🍝', 'spaghetti pasta', 'food'],
|
|
262
|
+
['🍣', 'sushi', 'food'],
|
|
263
|
+
['🍱', 'bento box', 'food'],
|
|
264
|
+
['🍦', 'ice cream soft serve', 'food'],
|
|
265
|
+
['🍩', 'donut', 'food'],
|
|
266
|
+
['🍪', 'cookie', 'food'],
|
|
267
|
+
['🎂', 'birthday cake', 'food'],
|
|
268
|
+
['🍰', 'cake slice', 'food'],
|
|
269
|
+
['🧁', 'cupcake', 'food'],
|
|
270
|
+
['🍫', 'chocolate', 'food'],
|
|
271
|
+
['🍬', 'candy', 'food'],
|
|
272
|
+
['🍭', 'lollipop', 'food'],
|
|
273
|
+
['☕', 'coffee hot', 'food'],
|
|
274
|
+
['🍵', 'tea hot', 'food'],
|
|
275
|
+
['🧋', 'bubble tea boba', 'food'],
|
|
276
|
+
['🥤', 'cup straw drink', 'food'],
|
|
277
|
+
['🍷', 'wine red', 'food'],
|
|
278
|
+
['🍸', 'cocktail martini', 'food'],
|
|
279
|
+
['🍺', 'beer mug', 'food'],
|
|
280
|
+
['🍻', 'clinking beer mugs', 'food'],
|
|
281
|
+
['🥂', 'champagne toast celebrate', 'food'],
|
|
282
|
+
['🧃', 'juice box', 'food'],
|
|
283
|
+
['🧊', 'ice cube', 'food'],
|
|
284
|
+
|
|
285
|
+
// Travel & Places
|
|
286
|
+
['🚀', 'rocket space', 'travel'],
|
|
287
|
+
['🛸', 'ufo flying saucer', 'travel'],
|
|
288
|
+
['✈️', 'airplane plane fly', 'travel'],
|
|
289
|
+
['🚁', 'helicopter', 'travel'],
|
|
290
|
+
['🚂', 'train locomotive', 'travel'],
|
|
291
|
+
['🚄', 'bullet train fast', 'travel'],
|
|
292
|
+
['🚇', 'subway metro', 'travel'],
|
|
293
|
+
['🚌', 'bus', 'travel'],
|
|
294
|
+
['🚑', 'ambulance', 'travel'],
|
|
295
|
+
['🚒', 'fire truck', 'travel'],
|
|
296
|
+
['🚓', 'police car', 'travel'],
|
|
297
|
+
['🚕', 'taxi cab', 'travel'],
|
|
298
|
+
['🚗', 'car automobile red', 'travel'],
|
|
299
|
+
['🚙', 'suv car', 'travel'],
|
|
300
|
+
['🚚', 'truck delivery', 'travel'],
|
|
301
|
+
['🚜', 'tractor farm', 'travel'],
|
|
302
|
+
['🏎️', 'racing car fast', 'travel'],
|
|
303
|
+
['🏍️', 'motorcycle', 'travel'],
|
|
304
|
+
['🚲', 'bicycle bike', 'travel'],
|
|
305
|
+
['🛴', 'scooter kick', 'travel'],
|
|
306
|
+
['⛵', 'sailboat boat', 'travel'],
|
|
307
|
+
['🚢', 'ship cruise', 'travel'],
|
|
308
|
+
['🏠', 'house home', 'travel'],
|
|
309
|
+
['🏢', 'office building', 'travel'],
|
|
310
|
+
['🏥', 'hospital', 'travel'],
|
|
311
|
+
['🏦', 'bank', 'travel'],
|
|
312
|
+
['🏪', 'store shop convenience', 'travel'],
|
|
313
|
+
['🏫', 'school', 'travel'],
|
|
314
|
+
['🏰', 'castle european', 'travel'],
|
|
315
|
+
['🏯', 'japanese castle', 'travel'],
|
|
316
|
+
['🗼', 'tokyo tower', 'travel'],
|
|
317
|
+
['🗽', 'statue liberty new york', 'travel'],
|
|
318
|
+
['⛪', 'church', 'travel'],
|
|
319
|
+
['🕌', 'mosque', 'travel'],
|
|
320
|
+
['⛩️', 'shinto shrine', 'travel'],
|
|
321
|
+
['⛲', 'fountain', 'travel'],
|
|
322
|
+
['⛺', 'tent camping', 'travel'],
|
|
323
|
+
['🌁', 'fog foggy bridge', 'travel'],
|
|
324
|
+
['🌃', 'night city stars', 'travel'],
|
|
325
|
+
['🏙️', 'cityscape city buildings', 'travel'],
|
|
326
|
+
['🌅', 'sunrise morning', 'travel'],
|
|
327
|
+
['🌈', 'rainbow colorful', 'travel'],
|
|
328
|
+
['⛰️', 'mountain', 'travel'],
|
|
329
|
+
['🏔️', 'snow mountain', 'travel'],
|
|
330
|
+
['🗻', 'mount fuji', 'travel'],
|
|
331
|
+
['🏕️', 'camping tent', 'travel'],
|
|
332
|
+
['🗺️', 'world map', 'travel'],
|
|
333
|
+
['🧭', 'compass navigation', 'travel'],
|
|
334
|
+
['🌍', 'earth europe africa globe', 'travel'],
|
|
335
|
+
['🌎', 'earth americas globe', 'travel'],
|
|
336
|
+
['🌏', 'earth asia globe', 'travel'],
|
|
337
|
+
['🌐', 'globe internet web', 'travel'],
|
|
338
|
+
|
|
339
|
+
// Objects
|
|
340
|
+
['💎', 'diamond gem jewel', 'objects'],
|
|
341
|
+
['💍', 'ring engagement', 'objects'],
|
|
342
|
+
['👑', 'crown royal king queen', 'objects'],
|
|
343
|
+
['🎩', 'top hat magic', 'objects'],
|
|
344
|
+
['💼', 'briefcase work business', 'objects'],
|
|
345
|
+
['👜', 'handbag purse', 'objects'],
|
|
346
|
+
['🎒', 'backpack bag school', 'objects'],
|
|
347
|
+
['👓', 'glasses eyewear', 'objects'],
|
|
348
|
+
['🕶️', 'sunglasses cool', 'objects'],
|
|
349
|
+
['💡', 'light bulb idea', 'objects'],
|
|
350
|
+
['🔦', 'flashlight torch', 'objects'],
|
|
351
|
+
['🕯️', 'candle light', 'objects'],
|
|
352
|
+
['🔋', 'battery charge', 'objects'],
|
|
353
|
+
['💻', 'laptop computer', 'objects'],
|
|
354
|
+
['🖥️', 'desktop monitor computer', 'objects'],
|
|
355
|
+
['📱', 'phone mobile cell', 'objects'],
|
|
356
|
+
['⌨️', 'keyboard type', 'objects'],
|
|
357
|
+
['🖱️', 'mouse computer click', 'objects'],
|
|
358
|
+
['📺', 'television tv', 'objects'],
|
|
359
|
+
['📷', 'camera photo', 'objects'],
|
|
360
|
+
['📹', 'video camera', 'objects'],
|
|
361
|
+
['🎥', 'movie camera film', 'objects'],
|
|
362
|
+
['☎️', 'telephone phone', 'objects'],
|
|
363
|
+
['⏰', 'alarm clock wake', 'objects'],
|
|
364
|
+
['⌚', 'watch time', 'objects'],
|
|
365
|
+
['🔑', 'key', 'objects'],
|
|
366
|
+
['🗝️', 'old key', 'objects'],
|
|
367
|
+
['🔒', 'lock closed', 'objects'],
|
|
368
|
+
['🔓', 'unlock open', 'objects'],
|
|
369
|
+
['🔨', 'hammer tool', 'objects'],
|
|
370
|
+
['🔧', 'wrench tool', 'objects'],
|
|
371
|
+
['🔩', 'bolt nut', 'objects'],
|
|
372
|
+
['⚙️', 'gear setting', 'objects'],
|
|
373
|
+
['🧲', 'magnet attract', 'objects'],
|
|
374
|
+
['📚', 'books stack library', 'objects'],
|
|
375
|
+
['📖', 'book open read', 'objects'],
|
|
376
|
+
['📝', 'memo write note', 'objects'],
|
|
377
|
+
['✏️', 'pencil write edit', 'objects'],
|
|
378
|
+
['📌', 'pushpin tack', 'objects'],
|
|
379
|
+
['📎', 'paperclip attach', 'objects'],
|
|
380
|
+
['📊', 'bar chart graph', 'objects'],
|
|
381
|
+
['📈', 'chart up growth trend', 'objects'],
|
|
382
|
+
['📉', 'chart down loss decline', 'objects'],
|
|
383
|
+
['📅', 'calendar date', 'objects'],
|
|
384
|
+
['📦', 'package box', 'objects'],
|
|
385
|
+
['📫', 'mailbox closed', 'objects'],
|
|
386
|
+
['📧', 'email envelope', 'objects'],
|
|
387
|
+
['🎁', 'gift present', 'objects'],
|
|
388
|
+
['🎀', 'ribbon bow', 'objects'],
|
|
389
|
+
['🎉', 'party celebrate confetti', 'objects'],
|
|
390
|
+
['🎊', 'confetti celebrate', 'objects'],
|
|
391
|
+
['🔮', 'crystal ball magic fortune', 'objects'],
|
|
392
|
+
['🪄', 'magic wand', 'objects'],
|
|
393
|
+
['🎯', 'target bullseye dart', 'objects'],
|
|
394
|
+
['🎲', 'dice game board', 'objects'],
|
|
395
|
+
['🎮', 'video game controller', 'objects'],
|
|
396
|
+
['🎭', 'theater masks drama', 'objects'],
|
|
397
|
+
['🎨', 'art palette paint', 'objects'],
|
|
398
|
+
['🎬', 'clapper film movie', 'objects'],
|
|
399
|
+
['🎤', 'microphone sing karaoke', 'objects'],
|
|
400
|
+
['🎧', 'headphones music listen', 'objects'],
|
|
401
|
+
['🎵', 'music note', 'objects'],
|
|
402
|
+
['🎶', 'music notes', 'objects'],
|
|
403
|
+
['🎸', 'guitar electric', 'objects'],
|
|
404
|
+
['🎹', 'piano keyboard music', 'objects'],
|
|
405
|
+
['🥁', 'drum percussion', 'objects'],
|
|
406
|
+
['🎷', 'saxophone jazz', 'objects'],
|
|
407
|
+
['🎺', 'trumpet', 'objects'],
|
|
408
|
+
['🎻', 'violin', 'objects'],
|
|
409
|
+
['⚽', 'soccer ball football', 'objects'],
|
|
410
|
+
['🏀', 'basketball', 'objects'],
|
|
411
|
+
['🏈', 'american football', 'objects'],
|
|
412
|
+
['⚾', 'baseball', 'objects'],
|
|
413
|
+
['🎾', 'tennis', 'objects'],
|
|
414
|
+
['🏐', 'volleyball', 'objects'],
|
|
415
|
+
['🏆', 'trophy winner award', 'objects'],
|
|
416
|
+
['🥇', 'gold medal first', 'objects'],
|
|
417
|
+
['🏅', 'sports medal', 'objects'],
|
|
418
|
+
|
|
419
|
+
// Symbols
|
|
420
|
+
['✅', 'check green done success', 'symbols'],
|
|
421
|
+
['❌', 'cross x no cancel', 'symbols'],
|
|
422
|
+
['⭕', 'circle red', 'symbols'],
|
|
423
|
+
['⛔', 'no entry stop', 'symbols'],
|
|
424
|
+
['🚫', 'prohibited no banned', 'symbols'],
|
|
425
|
+
['⚠️', 'warning caution danger', 'symbols'],
|
|
426
|
+
['❗', 'exclamation red important', 'symbols'],
|
|
427
|
+
['❓', 'question mark', 'symbols'],
|
|
428
|
+
['‼️', 'double exclamation', 'symbols'],
|
|
429
|
+
['💯', '100 hundred percent perfect', 'symbols'],
|
|
430
|
+
['🔴', 'red circle dot', 'symbols'],
|
|
431
|
+
['🟠', 'orange circle', 'symbols'],
|
|
432
|
+
['🟡', 'yellow circle', 'symbols'],
|
|
433
|
+
['🟢', 'green circle', 'symbols'],
|
|
434
|
+
['🔵', 'blue circle', 'symbols'],
|
|
435
|
+
['🟣', 'purple circle', 'symbols'],
|
|
436
|
+
['⚫', 'black circle', 'symbols'],
|
|
437
|
+
['⚪', 'white circle', 'symbols'],
|
|
438
|
+
['🟤', 'brown circle', 'symbols'],
|
|
439
|
+
['🔺', 'red triangle up', 'symbols'],
|
|
440
|
+
['🔻', 'red triangle down', 'symbols'],
|
|
441
|
+
['🔷', 'blue diamond large', 'symbols'],
|
|
442
|
+
['🔶', 'orange diamond large', 'symbols'],
|
|
443
|
+
['🔹', 'blue diamond small', 'symbols'],
|
|
444
|
+
['🔸', 'orange diamond small', 'symbols'],
|
|
445
|
+
['⭐', 'star yellow', 'symbols'],
|
|
446
|
+
['🌟', 'glowing star shine', 'symbols'],
|
|
447
|
+
['✨', 'sparkles shine', 'symbols'],
|
|
448
|
+
['💫', 'dizzy star spin', 'symbols'],
|
|
449
|
+
['⚡', 'lightning bolt energy power', 'symbols'],
|
|
450
|
+
['🔥', 'fire hot flame', 'symbols'],
|
|
451
|
+
['💥', 'explosion boom', 'symbols'],
|
|
452
|
+
['❄️', 'snowflake cold ice winter', 'symbols'],
|
|
453
|
+
['🌊', 'wave water ocean sea', 'symbols'],
|
|
454
|
+
['💨', 'wind blow dash', 'symbols'],
|
|
455
|
+
['🌀', 'cyclone tornado spiral', 'symbols'],
|
|
456
|
+
['♻️', 'recycle loop green', 'symbols'],
|
|
457
|
+
['✔️', 'check tick done', 'symbols'],
|
|
458
|
+
['➕', 'plus add', 'symbols'],
|
|
459
|
+
['➖', 'minus subtract', 'symbols'],
|
|
460
|
+
['➗', 'divide division', 'symbols'],
|
|
461
|
+
['✖️', 'multiply times cross', 'symbols'],
|
|
462
|
+
['▶️', 'play button right', 'symbols'],
|
|
463
|
+
['⏸️', 'pause', 'symbols'],
|
|
464
|
+
['⏹️', 'stop square', 'symbols'],
|
|
465
|
+
['⏩', 'fast forward', 'symbols'],
|
|
466
|
+
['⏪', 'rewind fast backward', 'symbols'],
|
|
467
|
+
['🔔', 'bell notification', 'symbols'],
|
|
468
|
+
['🔕', 'bell slash mute', 'symbols'],
|
|
469
|
+
['🔊', 'speaker volume high', 'symbols'],
|
|
470
|
+
['🔇', 'mute silent no sound', 'symbols'],
|
|
471
|
+
['📢', 'loudspeaker announcement', 'symbols'],
|
|
472
|
+
['📣', 'megaphone cheer', 'symbols'],
|
|
473
|
+
['🏳️', 'white flag', 'symbols'],
|
|
474
|
+
['🏴', 'black flag', 'symbols'],
|
|
475
|
+
['🚩', 'red flag', 'symbols'],
|
|
476
|
+
['🏁', 'checkered flag finish race', 'symbols'],
|
|
477
|
+
['🆕', 'new badge', 'symbols'],
|
|
478
|
+
['🆓', 'free badge', 'symbols'],
|
|
479
|
+
['🆒', 'cool badge', 'symbols'],
|
|
480
|
+
['🔝', 'top arrow', 'symbols'],
|
|
481
|
+
['🔙', 'back arrow', 'symbols'],
|
|
482
|
+
['ℹ️', 'information info', 'symbols'],
|
|
483
|
+
['📍', 'pin location map', 'symbols'],
|
|
484
|
+
['🔗', 'link chain', 'symbols'],
|
|
485
|
+
['©️', 'copyright', 'symbols'],
|
|
486
|
+
['®️', 'registered trademark', 'symbols'],
|
|
487
|
+
['™️', 'trademark', 'symbols'],
|
|
488
|
+
['#️⃣', 'hash number', 'symbols'],
|
|
489
|
+
['0️⃣', 'zero number', 'symbols'],
|
|
490
|
+
['1️⃣', 'one number', 'symbols'],
|
|
491
|
+
['2️⃣', 'two number', 'symbols'],
|
|
492
|
+
['3️⃣', 'three number', 'symbols'],
|
|
493
|
+
['4️⃣', 'four number', 'symbols'],
|
|
494
|
+
['5️⃣', 'five number', 'symbols'],
|
|
495
|
+
];
|
|
496
|
+
|
package/src/js/settings.js
CHANGED
|
@@ -25,6 +25,7 @@ import { defaultToolbar } from './module/Buttons.js';
|
|
|
25
25
|
* @property {number} [maxImageSize] - Max upload size in MB
|
|
26
26
|
* @property {number} [tabSize] - Spaces per tab in non-list context
|
|
27
27
|
* @property {number} [historyLimit] - Maximum undo/redo history steps
|
|
28
|
+
* @property {number} [historyMaxBytes] - Maximum combined size (chars) of all stacked undo/redo snapshots
|
|
28
29
|
* @property {string} [defaultFontFamily] - Default font family applied to the editable area on init
|
|
29
30
|
* @property {string} [defaultFontSize] - Default font size applied to the editable area on init (e.g. '14px')
|
|
30
31
|
* @property {string[]} [fontFamilies] - Font families shown in the font-family toolbar dropdown
|
|
@@ -46,6 +47,8 @@ import { defaultToolbar } from './module/Buttons.js';
|
|
|
46
47
|
* @property {string} [toolbarOverflow] - Toolbar overflow strategy: 'wrap' (default) | 'scroll'
|
|
47
48
|
* @property {boolean} [autoSave] - Auto-save content to localStorage on change
|
|
48
49
|
* @property {string} [autoSaveKey] - localStorage key used for auto-save (default: 'autumnnote-autosave')
|
|
50
|
+
* @property {number} [autoSaveDelay] - Debounce delay for auto-save writes in milliseconds
|
|
51
|
+
* @property {object|null} [autoSaveAdapter] - Optional async persistence adapter with save/load/remove methods
|
|
49
52
|
* @property {number} [maxChars] - Maximum character count (0 = unlimited). Shows warning in statusbar.
|
|
50
53
|
* @property {number} [maxWords] - Maximum word count (0 = unlimited). Shows warning in statusbar.
|
|
51
54
|
* @property {boolean} [tableHeaderRow] - Insert a header row (<thead><th>) when creating tables
|
|
@@ -64,6 +67,7 @@ import { defaultToolbar } from './module/Buttons.js';
|
|
|
64
67
|
* @property {boolean} [bubbleToolbar] - Show a mini floating toolbar above text selections
|
|
65
68
|
* @property {string[]} [bubbleToolbarItems] - Button names for the bubble toolbar
|
|
66
69
|
* @property {object|null} [mention] - @mention configuration (onSearch, minChars, ...)
|
|
70
|
+
* @property {boolean} [slashMenu] - Show a "/" command palette for quick block insertion (default true)
|
|
67
71
|
* @property {string} [lang] - Display language or partial locale object override
|
|
68
72
|
*/
|
|
69
73
|
|
|
@@ -103,6 +107,10 @@ export const defaultOptions = {
|
|
|
103
107
|
codeHighlightCDN: 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0',
|
|
104
108
|
markdownPaste: true,
|
|
105
109
|
historyLimit: 100,
|
|
110
|
+
// Max combined size (chars) of all stacked undo/redo snapshots. Guards
|
|
111
|
+
// against documents with many large embedded images holding dozens of
|
|
112
|
+
// full-size copies in memory despite historyLimit.
|
|
113
|
+
historyMaxBytes: 10 * 1024 * 1024,
|
|
106
114
|
// Default font family applied to the editor and shown in the dropdown when no explicit font is set
|
|
107
115
|
defaultFontFamily: 'Arial',
|
|
108
116
|
// Default font size applied to the editor and shown in the size dropdown when no explicit size is set
|
|
@@ -132,6 +140,8 @@ export const defaultOptions = {
|
|
|
132
140
|
autoSave: false,
|
|
133
141
|
// localStorage key used when autoSave is enabled
|
|
134
142
|
autoSaveKey: 'autumnnote-autosave',
|
|
143
|
+
autoSaveDelay: 400,
|
|
144
|
+
autoSaveAdapter: null,
|
|
135
145
|
// Maximum character count (0 = unlimited)
|
|
136
146
|
maxChars: 0,
|
|
137
147
|
// Maximum word count (0 = unlimited)
|
|
@@ -171,6 +181,23 @@ export const defaultOptions = {
|
|
|
171
181
|
// e.g. "## " at line start → <h2>, "**bold**" → <strong>
|
|
172
182
|
markdownShortcuts: true,
|
|
173
183
|
|
|
184
|
+
// "/" command palette for quick block insertion (headings, lists, table, image, ...).
|
|
185
|
+
// Triggers only when "/" is the first character typed on an otherwise-empty line.
|
|
186
|
+
slashMenu: true,
|
|
187
|
+
// Additional slash-menu commands supplied by applications/plugins.
|
|
188
|
+
slashCommands: [],
|
|
189
|
+
|
|
190
|
+
// Optional import/export adapters keyed by format name.
|
|
191
|
+
documentAdapters: {},
|
|
192
|
+
// Optional collaboration bridge notified with local HTML changes.
|
|
193
|
+
collaborationAdapter: null,
|
|
194
|
+
|
|
195
|
+
// Optional image processor (for example a Web Worker bridge). Receives a
|
|
196
|
+
// File and returns a data URL; Clipboard's canvas pipeline remains fallback.
|
|
197
|
+
imageProcessor: null,
|
|
198
|
+
// Add stable data-an-block-id attributes to top-level document blocks.
|
|
199
|
+
blockIds: false,
|
|
200
|
+
|
|
174
201
|
// Maximum paste size in bytes (default 5 MB). Pastes larger than this are silently dropped.
|
|
175
202
|
maxPasteSize: 5 * 1024 * 1024,
|
|
176
203
|
// Minimum image dimension in px during resize (width and height). Prevents images from being
|
|
@@ -97,6 +97,17 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
@media (prefers-reduced-motion: reduce) {
|
|
101
|
+
.an-container *,
|
|
102
|
+
.an-dialog-overlay *,
|
|
103
|
+
.an-slash-menu * {
|
|
104
|
+
scroll-behavior: auto !important;
|
|
105
|
+
animation-duration: 0.01ms !important;
|
|
106
|
+
animation-iteration-count: 1 !important;
|
|
107
|
+
transition-duration: 0.01ms !important;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
100
111
|
// =============================================================================
|
|
101
112
|
// Toolbar
|
|
102
113
|
// =============================================================================
|
|
@@ -2815,3 +2826,41 @@ $an-video-accent: #8b5cf6; // violet-500
|
|
|
2815
2826
|
color: #93c5fd;
|
|
2816
2827
|
}
|
|
2817
2828
|
}
|
|
2829
|
+
|
|
2830
|
+
// =============================================================================
|
|
2831
|
+
// "/" command palette
|
|
2832
|
+
// =============================================================================
|
|
2833
|
+
|
|
2834
|
+
.an-slash-menu {
|
|
2835
|
+
display: none;
|
|
2836
|
+
position: fixed;
|
|
2837
|
+
z-index: 9998;
|
|
2838
|
+
background: $an-bg;
|
|
2839
|
+
border: 1px solid $an-border;
|
|
2840
|
+
border-radius: $an-radius;
|
|
2841
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
2842
|
+
min-width: 180px;
|
|
2843
|
+
max-width: 260px;
|
|
2844
|
+
max-height: 260px;
|
|
2845
|
+
overflow-y: auto;
|
|
2846
|
+
padding: 4px 0;
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
.an-slash-menu-item {
|
|
2850
|
+
padding: 6px 12px;
|
|
2851
|
+
cursor: pointer;
|
|
2852
|
+
font-size: 13px;
|
|
2853
|
+
color: $an-text;
|
|
2854
|
+
transition: background $an-transition;
|
|
2855
|
+
|
|
2856
|
+
&:hover,
|
|
2857
|
+
&.an-slash-menu-active {
|
|
2858
|
+
background: $an-bg-btn-hover;
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
.an-slash-menu-empty {
|
|
2863
|
+
padding: 6px 12px;
|
|
2864
|
+
font-size: 13px;
|
|
2865
|
+
color: $an-muted;
|
|
2866
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AsnLocale } from '../index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Registers every bundled locale as a side effect of importing this module.
|
|
5
|
+
* Pulls all locales into the bundle — prefer importing individual locales
|
|
6
|
+
* from `autumnnote/i18n/<code>`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const vi: Partial<AsnLocale>;
|
|
9
|
+
export declare const ja: Partial<AsnLocale>;
|
|
10
|
+
export declare const zh: Partial<AsnLocale>;
|
|
11
|
+
export declare const fr: Partial<AsnLocale>;
|
|
12
|
+
export declare const de: Partial<AsnLocale>;
|
|
13
|
+
export declare const es: Partial<AsnLocale>;
|
|
14
|
+
export declare const ko: Partial<AsnLocale>;
|