@pie-lib/editable-html-tip-tap 0.1.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.
Files changed (158) hide show
  1. package/dist/components/CharacterPicker.d.ts +31 -0
  2. package/dist/components/CharacterPicker.d.ts.map +1 -0
  3. package/dist/components/CharacterPicker.js +129 -0
  4. package/dist/components/EditableHtml.d.ts +11 -0
  5. package/dist/components/EditableHtml.d.ts.map +1 -0
  6. package/dist/components/EditableHtml.js +270 -0
  7. package/dist/components/MenuBar.d.ts +11 -0
  8. package/dist/components/MenuBar.d.ts.map +1 -0
  9. package/dist/components/MenuBar.js +460 -0
  10. package/dist/components/TiptapContainer.d.ts +11 -0
  11. package/dist/components/TiptapContainer.d.ts.map +1 -0
  12. package/dist/components/TiptapContainer.js +157 -0
  13. package/dist/components/characters/characterUtils.d.ts +36 -0
  14. package/dist/components/characters/characterUtils.d.ts.map +1 -0
  15. package/dist/components/characters/characterUtils.js +465 -0
  16. package/dist/components/characters/custom-popper.d.ts +14 -0
  17. package/dist/components/characters/custom-popper.d.ts.map +1 -0
  18. package/dist/components/characters/custom-popper.js +32 -0
  19. package/dist/components/common/done-button.d.ts +30 -0
  20. package/dist/components/common/done-button.d.ts.map +1 -0
  21. package/dist/components/common/done-button.js +26 -0
  22. package/dist/components/common/toolbar-buttons.d.ts +39 -0
  23. package/dist/components/common/toolbar-buttons.d.ts.map +1 -0
  24. package/dist/components/common/toolbar-buttons.js +91 -0
  25. package/dist/components/icons/CssIcon.d.ts +11 -0
  26. package/dist/components/icons/CssIcon.d.ts.map +1 -0
  27. package/dist/components/icons/CssIcon.js +14 -0
  28. package/dist/components/icons/RespArea.d.ts +26 -0
  29. package/dist/components/icons/RespArea.d.ts.map +1 -0
  30. package/dist/components/icons/RespArea.js +42 -0
  31. package/dist/components/icons/TableIcons.d.ts +14 -0
  32. package/dist/components/icons/TableIcons.d.ts.map +1 -0
  33. package/dist/components/icons/TableIcons.js +32 -0
  34. package/dist/components/icons/TextAlign.d.ts +18 -0
  35. package/dist/components/icons/TextAlign.d.ts.map +1 -0
  36. package/dist/components/icons/TextAlign.js +134 -0
  37. package/dist/components/image/AltDialog.d.ts +23 -0
  38. package/dist/components/image/AltDialog.d.ts.map +1 -0
  39. package/dist/components/image/AltDialog.js +61 -0
  40. package/dist/components/image/ImageToolbar.d.ts +25 -0
  41. package/dist/components/image/ImageToolbar.d.ts.map +1 -0
  42. package/dist/components/image/ImageToolbar.js +80 -0
  43. package/dist/components/image/InsertImageHandler.d.ts +33 -0
  44. package/dist/components/image/InsertImageHandler.d.ts.map +1 -0
  45. package/dist/components/image/InsertImageHandler.js +55 -0
  46. package/dist/components/media/MediaDialog.d.ts +44 -0
  47. package/dist/components/media/MediaDialog.d.ts.map +1 -0
  48. package/dist/components/media/MediaDialog.js +389 -0
  49. package/dist/components/media/MediaToolbar.d.ts +20 -0
  50. package/dist/components/media/MediaToolbar.d.ts.map +1 -0
  51. package/dist/components/media/MediaToolbar.js +41 -0
  52. package/dist/components/media/MediaWrapper.d.ts +20 -0
  53. package/dist/components/media/MediaWrapper.d.ts.map +1 -0
  54. package/dist/components/respArea/DragInTheBlank/DragInTheBlank.d.ts +23 -0
  55. package/dist/components/respArea/DragInTheBlank/DragInTheBlank.d.ts.map +1 -0
  56. package/dist/components/respArea/DragInTheBlank/DragInTheBlank.js +58 -0
  57. package/dist/components/respArea/DragInTheBlank/choice.d.ts +56 -0
  58. package/dist/components/respArea/DragInTheBlank/choice.d.ts.map +1 -0
  59. package/dist/components/respArea/DragInTheBlank/choice.js +156 -0
  60. package/dist/components/respArea/ExplicitConstructedResponse.d.ts +20 -0
  61. package/dist/components/respArea/ExplicitConstructedResponse.d.ts.map +1 -0
  62. package/dist/components/respArea/ExplicitConstructedResponse.js +67 -0
  63. package/dist/components/respArea/InlineDropdown.d.ts +18 -0
  64. package/dist/components/respArea/InlineDropdown.d.ts.map +1 -0
  65. package/dist/components/respArea/InlineDropdown.js +91 -0
  66. package/dist/components/respArea/MathTemplated.d.ts +19 -0
  67. package/dist/components/respArea/MathTemplated.d.ts.map +1 -0
  68. package/dist/components/respArea/MathTemplated.js +97 -0
  69. package/dist/components/respArea/ToolbarIcon.d.ts +14 -0
  70. package/dist/components/respArea/ToolbarIcon.d.ts.map +1 -0
  71. package/dist/components/respArea/ToolbarIcon.js +17 -0
  72. package/dist/constants.d.ts +14 -0
  73. package/dist/constants.d.ts.map +1 -0
  74. package/dist/constants.js +4 -0
  75. package/dist/extensions/css.d.ts +12 -0
  76. package/dist/extensions/css.d.ts.map +1 -0
  77. package/dist/extensions/css.js +115 -0
  78. package/dist/extensions/custom-toolbar-wrapper.d.ts +11 -0
  79. package/dist/extensions/custom-toolbar-wrapper.d.ts.map +1 -0
  80. package/dist/extensions/custom-toolbar-wrapper.js +58 -0
  81. package/dist/extensions/div-node.d.ts +11 -0
  82. package/dist/extensions/div-node.d.ts.map +1 -0
  83. package/dist/extensions/div-node.js +25 -0
  84. package/dist/extensions/extended-table.d.ts +11 -0
  85. package/dist/extensions/extended-table.d.ts.map +1 -0
  86. package/dist/extensions/extended-table.js +15 -0
  87. package/dist/extensions/image-component.d.ts +22 -0
  88. package/dist/extensions/image-component.d.ts.map +1 -0
  89. package/dist/extensions/image-component.js +200 -0
  90. package/dist/extensions/image.d.ts +11 -0
  91. package/dist/extensions/image.d.ts.map +1 -0
  92. package/dist/extensions/image.js +42 -0
  93. package/dist/extensions/index.d.ts +17 -0
  94. package/dist/extensions/index.d.ts.map +1 -0
  95. package/dist/extensions/index.js +65 -0
  96. package/dist/extensions/math.d.ts +15 -0
  97. package/dist/extensions/math.d.ts.map +1 -0
  98. package/dist/extensions/math.js +150 -0
  99. package/dist/extensions/media.d.ts +19 -0
  100. package/dist/extensions/media.d.ts.map +1 -0
  101. package/dist/extensions/media.js +147 -0
  102. package/dist/extensions/responseArea.d.ts +28 -0
  103. package/dist/extensions/responseArea.d.ts.map +1 -0
  104. package/dist/extensions/responseArea.js +259 -0
  105. package/dist/index.d.ts +13 -0
  106. package/dist/index.d.ts.map +1 -0
  107. package/dist/index.js +6 -0
  108. package/dist/styles/editorContainerStyles.d.ts +135 -0
  109. package/dist/styles/editorContainerStyles.d.ts.map +1 -0
  110. package/dist/theme.d.ts +10 -0
  111. package/dist/theme.d.ts.map +1 -0
  112. package/dist/utils/helper.d.ts +10 -0
  113. package/dist/utils/helper.d.ts.map +1 -0
  114. package/dist/utils/helper.js +7 -0
  115. package/dist/utils/size.d.ts +10 -0
  116. package/dist/utils/size.d.ts.map +1 -0
  117. package/dist/utils/size.js +14 -0
  118. package/package.json +71 -0
  119. package/src/components/CharacterPicker.tsx +210 -0
  120. package/src/components/EditableHtml.tsx +416 -0
  121. package/src/components/MenuBar.tsx +558 -0
  122. package/src/components/TiptapContainer.tsx +228 -0
  123. package/src/components/characters/characterUtils.ts +457 -0
  124. package/src/components/characters/custom-popper.tsx +48 -0
  125. package/src/components/common/done-button.tsx +37 -0
  126. package/src/components/common/toolbar-buttons.tsx +132 -0
  127. package/src/components/icons/CssIcon.tsx +25 -0
  128. package/src/components/icons/RespArea.tsx +81 -0
  129. package/src/components/icons/TableIcons.tsx +62 -0
  130. package/src/components/icons/TextAlign.tsx +124 -0
  131. package/src/components/image/AltDialog.tsx +92 -0
  132. package/src/components/image/ImageToolbar.tsx +109 -0
  133. package/src/components/image/InsertImageHandler.ts +121 -0
  134. package/src/components/media/MediaDialog.tsx +606 -0
  135. package/src/components/media/MediaToolbar.tsx +59 -0
  136. package/src/components/media/MediaWrapper.tsx +49 -0
  137. package/src/components/respArea/DragInTheBlank/DragInTheBlank.tsx +86 -0
  138. package/src/components/respArea/DragInTheBlank/choice.tsx +266 -0
  139. package/src/components/respArea/ExplicitConstructedResponse.tsx +122 -0
  140. package/src/components/respArea/InlineDropdown.tsx +152 -0
  141. package/src/components/respArea/MathTemplated.tsx +134 -0
  142. package/src/components/respArea/ToolbarIcon.tsx +76 -0
  143. package/src/constants.ts +15 -0
  144. package/src/extensions/css.tsx +230 -0
  145. package/src/extensions/custom-toolbar-wrapper.tsx +88 -0
  146. package/src/extensions/div-node.tsx +46 -0
  147. package/src/extensions/extended-table.ts +34 -0
  148. package/src/extensions/image-component.tsx +303 -0
  149. package/src/extensions/image.tsx +64 -0
  150. package/src/extensions/index.tsx +91 -0
  151. package/src/extensions/math.tsx +285 -0
  152. package/src/extensions/media.tsx +198 -0
  153. package/src/extensions/responseArea.tsx +404 -0
  154. package/src/index.tsx +15 -0
  155. package/src/styles/editorContainerStyles.ts +155 -0
  156. package/src/theme.ts +11 -0
  157. package/src/utils/helper.tsx +27 -0
  158. package/src/utils/size.ts +42 -0
@@ -0,0 +1,465 @@
1
+ //#region src/components/characters/characterUtils.ts
2
+ var e = { characters: [
3
+ [
4
+ "á",
5
+ "é",
6
+ "í",
7
+ "ó",
8
+ "ú"
9
+ ],
10
+ [
11
+ "Á",
12
+ "É",
13
+ "Í",
14
+ "Ó",
15
+ "Ú"
16
+ ],
17
+ [
18
+ "—",
19
+ "«",
20
+ "»",
21
+ "ñ",
22
+ "ü"
23
+ ],
24
+ [
25
+ "-",
26
+ "¿",
27
+ "¡",
28
+ "Ñ",
29
+ "Ü"
30
+ ]
31
+ ] }, t = {
32
+ hasPreview: !0,
33
+ characters: [
34
+ [
35
+ {
36
+ unicode: "U+00A2",
37
+ description: "CENT SIGN",
38
+ write: "¢",
39
+ label: "¢"
40
+ },
41
+ {
42
+ unicode: "U+00BF",
43
+ description: "INVERTED QUESTION MARK",
44
+ write: "¿",
45
+ label: "¿"
46
+ },
47
+ {
48
+ unicode: "U+00B4",
49
+ description: "ACUTE ACCENT",
50
+ write: "´",
51
+ label: "´",
52
+ extraProps: { style: { gridRow: "span 2" } }
53
+ },
54
+ {
55
+ unicode: "U+00E1",
56
+ description: "LATIN SMALL LETTER A WITH ACUTE",
57
+ write: "á",
58
+ label: "á"
59
+ },
60
+ {
61
+ unicode: "U+00E9",
62
+ description: "LATIN SMALL LETTER E WITH ACUTE",
63
+ write: "é",
64
+ label: "é"
65
+ },
66
+ {
67
+ unicode: "U+00ED",
68
+ description: "LATIN SMALL LETTER I WITH ACUTE",
69
+ write: "í",
70
+ label: "í"
71
+ },
72
+ {
73
+ unicode: "U+00F3",
74
+ description: "LATIN SMALL LETTER O WITH ACUTE",
75
+ write: "ó",
76
+ label: "ó"
77
+ },
78
+ {
79
+ unicode: "U+00FA",
80
+ description: "LATIN SMALL LETTER U WITH ACUTE",
81
+ write: "ú",
82
+ label: "ú"
83
+ },
84
+ {
85
+ unicode: "U+00F1",
86
+ description: "LATIN SMALL LETTER N WITH TILDE",
87
+ write: "ñ",
88
+ label: "ñ"
89
+ }
90
+ ],
91
+ [
92
+ {
93
+ unicode: "U+20AC",
94
+ description: "EURO SIGN",
95
+ write: "€",
96
+ label: "€"
97
+ },
98
+ {
99
+ unicode: "U+00A1",
100
+ description: "INVERTED EXCLAMATION MARK",
101
+ write: "¡",
102
+ label: "¡"
103
+ },
104
+ {
105
+ unicode: "U+00C1",
106
+ description: "LATIN CAPITAL LETTER A WITH ACUTE",
107
+ write: "Á",
108
+ label: "Á"
109
+ },
110
+ {
111
+ unicode: "U+00C9",
112
+ description: "LATIN CAPITAL LETTER E WITH ACUTE",
113
+ write: "É",
114
+ label: "É"
115
+ },
116
+ {
117
+ unicode: "U+00CD",
118
+ description: "LATIN CAPITAL LETTER I WITH ACUTE",
119
+ write: "Í",
120
+ label: "Í"
121
+ },
122
+ {
123
+ unicode: "U+00D3",
124
+ description: "LATIN CAPITAL LETTER O WITH ACUTE",
125
+ write: "Ó",
126
+ label: "Ó"
127
+ },
128
+ {
129
+ unicode: "U+00DA",
130
+ description: "LATIN CAPITAL LETTER U WITH ACUTE",
131
+ write: "Ú",
132
+ label: "Ú"
133
+ },
134
+ {
135
+ unicode: "U+00D1",
136
+ description: "LATIN CAPITAL LETTER N WITH TILDE",
137
+ write: "Ñ",
138
+ label: "Ñ"
139
+ }
140
+ ],
141
+ [
142
+ {
143
+ unicode: "U+00A3",
144
+ description: "POUND SIGN",
145
+ write: "£",
146
+ label: "£"
147
+ },
148
+ {
149
+ unicode: "U+00AB",
150
+ description: "LEFT-POINTING DOUBLE ANGLE QUOTATION MARK",
151
+ write: "«",
152
+ label: "«"
153
+ },
154
+ {
155
+ unicode: "U+005E",
156
+ description: "CIRCUMFLEX ACCENT",
157
+ write: "^",
158
+ label: "^",
159
+ extraProps: { style: { gridRow: "span 2" } }
160
+ },
161
+ {
162
+ unicode: "U+00E2",
163
+ description: "LATIN SMALL LETTER A WITH CIRCUMFLEX",
164
+ write: "â",
165
+ label: "â"
166
+ },
167
+ {
168
+ unicode: "U+00EA",
169
+ description: "LATIN SMALL LETTER E WITH CIRCUMFLEX",
170
+ write: "ê",
171
+ label: "ê"
172
+ },
173
+ {
174
+ unicode: "U+00EE",
175
+ description: "LATIN SMALL LETTER I WITH CIRCUMFLEX",
176
+ write: "î",
177
+ label: "î"
178
+ },
179
+ {
180
+ unicode: "U+00F4",
181
+ description: "LATIN SMALL LETTER O WITH CIRCUMFLEX",
182
+ write: "ô",
183
+ label: "ô"
184
+ },
185
+ {
186
+ unicode: "U+00FB",
187
+ description: "LATIN SMALL LETTER U WITH CIRCUMFLEX",
188
+ write: "û",
189
+ label: "û"
190
+ },
191
+ {
192
+ unicode: "U+00E7",
193
+ description: "LATIN SMALL LETTER C WITH CEDILLA",
194
+ write: "ç",
195
+ label: "ç"
196
+ }
197
+ ],
198
+ [
199
+ {
200
+ unicode: "U+00A5",
201
+ description: "YEN SIGN",
202
+ write: "¥",
203
+ label: "¥"
204
+ },
205
+ {
206
+ unicode: "U+00BB",
207
+ description: "RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK",
208
+ write: "»",
209
+ label: "»"
210
+ },
211
+ {
212
+ unicode: "U+00C2",
213
+ description: "LATIN CAPITAL LETTER A WITH CIRCUMFLEX",
214
+ write: "Â",
215
+ label: "Â"
216
+ },
217
+ {
218
+ unicode: "U+00CA",
219
+ description: "LATIN CAPITAL LETTER E WITH CIRCUMFLEX",
220
+ write: "Ê",
221
+ label: "Ê"
222
+ },
223
+ {
224
+ unicode: "U+00CE",
225
+ description: "LATIN CAPITAL LETTER I WITH CIRCUMFLEX",
226
+ write: "Î",
227
+ label: "Î"
228
+ },
229
+ {
230
+ unicode: "U+00D4",
231
+ description: "LATIN CAPITAL LETTER O WITH CIRCUMFLEX",
232
+ write: "Ô",
233
+ label: "Ô"
234
+ },
235
+ {
236
+ unicode: "U+00DB",
237
+ description: "LATIN CAPITAL LETTER U WITH CIRCUMFLEX",
238
+ write: "Û",
239
+ label: "Û"
240
+ },
241
+ {
242
+ unicode: "U+00C7",
243
+ description: "LATIN CAPITAL LETTER C WITH CEDILLA",
244
+ write: "Ç",
245
+ label: "Ç"
246
+ }
247
+ ],
248
+ [
249
+ {
250
+ unicode: "U+200A",
251
+ description: "HAIR SPACE",
252
+ write: String.fromCodePoint("0x200A"),
253
+ label: " "
254
+ },
255
+ {
256
+ unicode: "U+00A7",
257
+ description: "SECTION SIGN",
258
+ write: "§",
259
+ label: "§"
260
+ },
261
+ {
262
+ unicode: "U+00A8",
263
+ description: "DIAERESIS",
264
+ write: "¨",
265
+ label: "¨",
266
+ extraProps: { style: { gridRow: "span 2" } }
267
+ },
268
+ {
269
+ unicode: "U+00E4",
270
+ description: "LATIN SMALL LETTER A WITH DIAERESIS",
271
+ write: "ä",
272
+ label: "ä"
273
+ },
274
+ {
275
+ unicode: "U+00EB",
276
+ description: "LATIN SMALL LETTER E WITH DIAERESIS",
277
+ write: "ë",
278
+ label: "ë"
279
+ },
280
+ {
281
+ unicode: "U+00EF",
282
+ description: "LATIN SMALL LETTER I WITH DIAERESIS",
283
+ write: "ï",
284
+ label: "ï"
285
+ },
286
+ {
287
+ unicode: "U+00F6",
288
+ description: "LATIN SMALL LETTER O WITH DIAERESIS",
289
+ write: "ö",
290
+ label: "ö"
291
+ },
292
+ {
293
+ unicode: "U+00FC",
294
+ description: "LATIN SMALL LETTER U WITH DIAERESIS",
295
+ write: "ü",
296
+ label: "ü"
297
+ },
298
+ {
299
+ unicode: "U+00DF",
300
+ description: "LATIN SMALL LETTER SHARP S",
301
+ write: "ß",
302
+ label: "ß"
303
+ }
304
+ ],
305
+ [
306
+ {
307
+ unicode: "U+2009",
308
+ description: "THIN SPACE",
309
+ write: String.fromCodePoint("0x2009"),
310
+ label: " "
311
+ },
312
+ {
313
+ unicode: "U+2026",
314
+ description: "HORIZONTAL ELLIPSIS",
315
+ write: "…",
316
+ label: "…"
317
+ },
318
+ {
319
+ unicode: "U+00C4",
320
+ description: "LATIN CAPITAL LETTER A WITH DIAERESIS",
321
+ write: "Ä",
322
+ label: "Ä"
323
+ },
324
+ {
325
+ unicode: "U+00CB",
326
+ description: "LATIN CAPITAL LETTER E WITH DIAERESIS",
327
+ write: "Ë",
328
+ label: "Ë"
329
+ },
330
+ {
331
+ unicode: "U+00CF",
332
+ description: "LATIN CAPITAL LETTER I WITH DIAERESIS",
333
+ write: "Ï",
334
+ label: "Ï"
335
+ },
336
+ {
337
+ unicode: "U+00D6",
338
+ description: "LATIN CAPITAL LETTER O WITH DIAERESIS",
339
+ write: "Ö",
340
+ label: "Ö"
341
+ },
342
+ {
343
+ unicode: "U+00DC",
344
+ description: "LATIN CAPITAL LETTER U WITH DIAERESIS",
345
+ write: "Ü",
346
+ label: "Ü"
347
+ },
348
+ {
349
+ unicode: "U+2212",
350
+ description: "MINUS SIGN",
351
+ write: "−",
352
+ label: "−"
353
+ }
354
+ ],
355
+ [
356
+ {
357
+ unicode: "U+00A0",
358
+ description: "NO-BREAK SPACE",
359
+ write: String.fromCodePoint("0x00A0"),
360
+ label: " "
361
+ },
362
+ {
363
+ unicode: "U+2022",
364
+ description: "BULLET",
365
+ write: "•",
366
+ label: "•"
367
+ },
368
+ {
369
+ unicode: "U+0060",
370
+ description: "GRAVE ACCENT",
371
+ write: "`",
372
+ label: "`",
373
+ extraProps: { style: { gridRow: "span 2" } }
374
+ },
375
+ {
376
+ unicode: "U+00E0",
377
+ description: "LATIN SMALL LETTER A WITH GRAVE",
378
+ write: "à",
379
+ label: "à"
380
+ },
381
+ {
382
+ unicode: "U+00E8",
383
+ description: "LATIN SMALL LETTER E WITH GRAVE",
384
+ write: "è",
385
+ label: "è"
386
+ },
387
+ {
388
+ unicode: "U+00EC",
389
+ description: "LATIN SMALL LETTER I WITH GRAVE",
390
+ write: "ì",
391
+ label: "ì"
392
+ },
393
+ {
394
+ unicode: "U+00F2",
395
+ description: "LATIN SMALL LETTER O WITH GRAVE",
396
+ write: "ò",
397
+ label: "ò"
398
+ },
399
+ {
400
+ unicode: "U+00F9",
401
+ description: "LATIN SMALL LETTER U WITH GRAVE",
402
+ write: "ù",
403
+ label: "ù"
404
+ },
405
+ {
406
+ unicode: "U+2013",
407
+ description: "EN DASH",
408
+ write: "–",
409
+ label: "–"
410
+ }
411
+ ],
412
+ [
413
+ {
414
+ unicode: "U+2003",
415
+ description: "EM SPACE",
416
+ write: String.fromCodePoint("0x2003"),
417
+ label: " "
418
+ },
419
+ {
420
+ unicode: "U+25E6",
421
+ description: "WHITE BULLET",
422
+ write: "◦",
423
+ label: "◦"
424
+ },
425
+ {
426
+ unicode: "U+00C0",
427
+ description: "LATIN CAPITAL LETTER A WITH GRAVE",
428
+ write: "À",
429
+ label: "À"
430
+ },
431
+ {
432
+ unicode: "U+00C8",
433
+ description: "LATIN CAPITAL LETTER E WITH GRAVE",
434
+ write: "È",
435
+ label: "È"
436
+ },
437
+ {
438
+ unicode: "U+00CC",
439
+ description: "LATIN CAPITAL LETTER I WITH GRAVE",
440
+ write: "Ì",
441
+ label: "Ì"
442
+ },
443
+ {
444
+ unicode: "U+00D2",
445
+ description: "LATIN CAPITAL LETTER O WITH GRAVE",
446
+ write: "Ò",
447
+ label: "Ò"
448
+ },
449
+ {
450
+ unicode: "U+00D9",
451
+ description: "LATIN CAPITAL LETTER U WITH GRAVE",
452
+ write: "Ù",
453
+ label: "Ù"
454
+ },
455
+ {
456
+ unicode: "U+2014",
457
+ description: "EM DASH",
458
+ write: "—",
459
+ label: "—"
460
+ }
461
+ ]
462
+ ]
463
+ };
464
+ //#endregion
465
+ export { e as spanishConfig, t as specialConfig };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/characters/custom-popper.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ declare const CustomPopper: ({ children, ...props }: {
10
+ [x: string]: any;
11
+ children: any;
12
+ }) => JSX.Element;
13
+ export default CustomPopper;
14
+ //# sourceMappingURL=custom-popper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-popper.d.ts","sourceRoot":"","sources":["../../../src/components/characters/custom-popper.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAmBH,QAAA,MAAM,YAAY,GAAI;;;CAAsB,gBAkB3C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,32 @@
1
+ import "react";
2
+ import { styled as e } from "@mui/material/styles";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ import n from "@mui/material/Typography";
5
+ import r from "@mui/material/Popper";
6
+ //#region src/components/characters/custom-popper.tsx
7
+ var i = e(r)({
8
+ background: "#fff",
9
+ padding: "10px",
10
+ pointerEvents: "none",
11
+ zIndex: 99999
12
+ }), a = e(n)({
13
+ fontSize: 50,
14
+ textAlign: "center"
15
+ }), o = ({ children: e, ...n }) => /* @__PURE__ */ t(i, {
16
+ id: "mouse-over-popover",
17
+ open: !0,
18
+ anchorOrigin: {
19
+ vertical: "bottom",
20
+ horizontal: "left"
21
+ },
22
+ transformOrigin: {
23
+ vertical: "top",
24
+ horizontal: "left"
25
+ },
26
+ disableRestoreFocus: !0,
27
+ disableAutoFocus: !0,
28
+ ...n,
29
+ children: /* @__PURE__ */ t(a, { children: e })
30
+ });
31
+ //#endregion
32
+ export { o as default };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/common/done-button.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import PropTypes from 'prop-types';
10
+ export declare const RawDoneButton: {
11
+ ({ onClick, doneButtonRef }: {
12
+ onClick: any;
13
+ doneButtonRef: any;
14
+ }): JSX.Element;
15
+ propTypes: {
16
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
17
+ doneButtonRef: PropTypes.Requireable<(...args: any[]) => any>;
18
+ };
19
+ };
20
+ export declare const DoneButton: {
21
+ ({ onClick, doneButtonRef }: {
22
+ onClick: any;
23
+ doneButtonRef: any;
24
+ }): JSX.Element;
25
+ propTypes: {
26
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
27
+ doneButtonRef: PropTypes.Requireable<(...args: any[]) => any>;
28
+ };
29
+ };
30
+ //# sourceMappingURL=done-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"done-button.d.ts","sourceRoot":"","sources":["../../../src/components/common/done-button.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAOH,OAAO,SAAS,MAAM,YAAY,CAAC;AAUnC,eAAO,MAAM,aAAa;;;;;;;;;CAIzB,CAAC;AAOF,eAAO,MAAM,UAAU;;;;;;;;;CAAgB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import "react";
2
+ import { styled as e } from "@mui/material/styles";
3
+ import t from "prop-types";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import r from "@mui/material/IconButton";
6
+ import i from "@mui/icons-material/Check";
7
+ //#region src/components/common/done-button.tsx
8
+ var a = e(r)({
9
+ verticalAlign: "top",
10
+ width: "28px",
11
+ height: "28px",
12
+ color: "var(--editable-html-toolbar-check, #00bb00)",
13
+ padding: "4px"
14
+ }), o = ({ onClick: e, doneButtonRef: t }) => /* @__PURE__ */ n(a, {
15
+ "aria-label": "Done",
16
+ buttonRef: t,
17
+ onClick: e,
18
+ children: /* @__PURE__ */ n(i, {})
19
+ });
20
+ o.propTypes = {
21
+ onClick: t.func,
22
+ doneButtonRef: t.func
23
+ };
24
+ var s = o;
25
+ //#endregion
26
+ export { s as DoneButton };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/common/toolbar-buttons.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare class RawButton extends React.Component {
12
+ static propTypes: {
13
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
14
+ children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
15
+ active: PropTypes.Requireable<boolean>;
16
+ disabled: PropTypes.Requireable<boolean>;
17
+ extraStyles: PropTypes.Requireable<object>;
18
+ };
19
+ constructor(props: any);
20
+ onClick: any;
21
+ onKeyDown: any;
22
+ render(): JSX.Element;
23
+ }
24
+ export declare const Button: typeof RawButton;
25
+ export declare class RawMarkButton extends React.Component {
26
+ static propTypes: {
27
+ onToggle: PropTypes.Validator<(...args: any[]) => any>;
28
+ mark: PropTypes.Requireable<string>;
29
+ label: PropTypes.Validator<string>;
30
+ children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
31
+ active: PropTypes.Requireable<boolean>;
32
+ };
33
+ constructor(props: any);
34
+ onToggle: any;
35
+ onKeyDown: any;
36
+ render(): JSX.Element;
37
+ }
38
+ export declare const MarkButton: typeof RawMarkButton;
39
+ //# sourceMappingURL=toolbar-buttons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar-buttons.d.ts","sourceRoot":"","sources":["../../../src/components/common/toolbar-buttons.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAwBnC,qBAAa,SAAU,SAAQ,KAAK,CAAC,SAAS;IAC5C,MAAM,CAAC,SAAS;;;;;;MAMd;gBAEU,KAAK,KAAA;IAIjB,OAAO,EAAE,GAAG,CAKV;IAEF,SAAS,EAAE,GAAG,CAOZ;IAEF,MAAM;CAkBP;AAED,eAAO,MAAM,MAAM,kBAAY,CAAC;AAEhC,qBAAa,aAAc,SAAQ,KAAK,CAAC,SAAS;IAChD,MAAM,CAAC,SAAS;;;;;;MAMd;gBAEU,KAAK,KAAA;IAIjB,QAAQ,EAAE,GAAG,CAGX;IAEF,SAAS,EAAE,GAAG,CAKZ;IAEF,MAAM;CAgBP;AAED,eAAO,MAAM,UAAU,sBAAgB,CAAC"}
@@ -0,0 +1,91 @@
1
+ import e from "react";
2
+ import { styled as t } from "@mui/material/styles";
3
+ import n from "prop-types";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import i from "debug";
6
+ //#region src/components/common/toolbar-buttons.tsx
7
+ var a = t("button", { shouldForwardProp: (e) => ![
8
+ "active",
9
+ "disabled",
10
+ "extraStyles"
11
+ ].includes(e) })(({ theme: e, active: t, disabled: n }) => ({
12
+ color: t ? "black" : "grey",
13
+ display: "inline-flex",
14
+ padding: "2px",
15
+ background: "none",
16
+ border: "none",
17
+ cursor: n ? "not-allowed" : "pointer",
18
+ "&:hover": { color: n ? "grey" : "black" },
19
+ "&:focus": { outline: `2px solid ${e.palette.grey[700]}` },
20
+ ...n && { opacity: .7 }
21
+ })), o = i("pie-elements:editable-html:raw-button");
22
+ (class extends e.Component {
23
+ static propTypes = {
24
+ onClick: n.func.isRequired,
25
+ children: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,
26
+ active: n.bool,
27
+ disabled: n.bool,
28
+ extraStyles: n.object
29
+ };
30
+ constructor(e) {
31
+ super(e);
32
+ }
33
+ onClick = (e) => {
34
+ o("[onClick]"), e.preventDefault();
35
+ let { onClick: t } = this.props;
36
+ t(e);
37
+ };
38
+ onKeyDown = (e) => {
39
+ if (e.key === "Enter" || e.key === " ") {
40
+ o("[onKeyDown]"), e.preventDefault();
41
+ let { onClick: t } = this.props;
42
+ t(e);
43
+ }
44
+ };
45
+ render() {
46
+ let { active: e, children: t, disabled: n, extraStyles: i, ariaLabel: o } = this.props;
47
+ return /* @__PURE__ */ r(a, {
48
+ style: i,
49
+ active: e,
50
+ disabled: n,
51
+ onMouseDown: this.onClick,
52
+ onKeyDown: this.onKeyDown,
53
+ "aria-label": o,
54
+ "aria-pressed": e,
55
+ tabIndex: 0,
56
+ children: t
57
+ });
58
+ }
59
+ });
60
+ var s = class extends e.Component {
61
+ static propTypes = {
62
+ onToggle: n.func.isRequired,
63
+ mark: n.string,
64
+ label: n.string.isRequired,
65
+ children: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,
66
+ active: n.bool
67
+ };
68
+ constructor(e) {
69
+ super(e);
70
+ }
71
+ onToggle = (e) => {
72
+ e.preventDefault(), this.props.onToggle(this.props.mark);
73
+ };
74
+ onKeyDown = (e) => {
75
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.props.onToggle(this.props.mark));
76
+ };
77
+ render() {
78
+ let { children: e, active: t, label: n } = this.props;
79
+ return /* @__PURE__ */ r(a, {
80
+ active: t,
81
+ onMouseDown: this.onToggle,
82
+ "aria-pressed": t,
83
+ onKeyDown: this.onKeyDown,
84
+ "aria-label": n,
85
+ tabIndex: 0,
86
+ children: e
87
+ });
88
+ }
89
+ };
90
+ //#endregion
91
+ export { s as MarkButton };