@pie-lib/editable-html-tip-tap 2.1.1 → 2.1.2-next.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/dist/components/CharacterPicker.d.ts +31 -0
- package/dist/components/CharacterPicker.js +131 -0
- package/dist/components/EditableHtml.d.ts +11 -0
- package/dist/components/EditableHtml.js +291 -0
- package/dist/components/MenuBar.d.ts +11 -0
- package/dist/components/MenuBar.js +462 -0
- package/dist/components/TiptapContainer.d.ts +11 -0
- package/dist/components/TiptapContainer.js +154 -0
- package/dist/components/characters/characterUtils.d.ts +35 -0
- package/dist/components/characters/characterUtils.js +465 -0
- package/dist/components/characters/custom-popper.d.ts +14 -0
- package/dist/components/characters/custom-popper.js +32 -0
- package/dist/components/common/done-button.d.ts +30 -0
- package/dist/components/common/done-button.js +26 -0
- package/dist/components/common/toolbar-buttons.d.ts +38 -0
- package/dist/components/common/toolbar-buttons.js +91 -0
- package/dist/components/icons/CssIcon.d.ts +11 -0
- package/dist/components/icons/CssIcon.js +14 -0
- package/dist/components/icons/RespArea.d.ts +26 -0
- package/dist/components/icons/RespArea.js +42 -0
- package/dist/components/icons/TableIcons.d.ts +14 -0
- package/dist/components/icons/TableIcons.js +32 -0
- package/dist/components/icons/TextAlign.d.ts +18 -0
- package/dist/components/icons/TextAlign.js +134 -0
- package/dist/components/image/AltDialog.d.ts +22 -0
- package/dist/components/image/AltDialog.js +61 -0
- package/dist/components/image/ImageToolbar.d.ts +24 -0
- package/dist/components/image/ImageToolbar.js +80 -0
- package/dist/components/image/InsertImageHandler.d.ts +32 -0
- package/dist/components/image/InsertImageHandler.js +53 -0
- package/dist/components/media/MediaDialog.d.ts +43 -0
- package/dist/components/media/MediaDialog.js +389 -0
- package/dist/components/media/MediaToolbar.d.ts +19 -0
- package/dist/components/media/MediaToolbar.js +41 -0
- package/dist/components/media/MediaWrapper.d.ts +19 -0
- package/dist/components/respArea/DragInTheBlank/DragInTheBlank.d.ts +23 -0
- package/dist/components/respArea/DragInTheBlank/DragInTheBlank.js +58 -0
- package/dist/components/respArea/DragInTheBlank/choice.d.ts +56 -0
- package/dist/components/respArea/DragInTheBlank/choice.js +156 -0
- package/dist/components/respArea/ExplicitConstructedResponse.d.ts +20 -0
- package/dist/components/respArea/ExplicitConstructedResponse.js +83 -0
- package/dist/components/respArea/InlineDropdown.d.ts +18 -0
- package/dist/components/respArea/InlineDropdown.js +119 -0
- package/dist/components/respArea/MathTemplated.d.ts +19 -0
- package/dist/components/respArea/MathTemplated.js +97 -0
- package/dist/components/respArea/ToolbarIcon.d.ts +14 -0
- package/dist/components/respArea/ToolbarIcon.js +17 -0
- package/dist/components/respArea/inlineDropdownUtils.d.ts +15 -0
- package/dist/components/respArea/inlineDropdownUtils.js +15 -0
- package/dist/constants.d.ts +13 -0
- package/dist/constants.js +4 -0
- package/dist/extensions/css.d.ts +11 -0
- package/dist/extensions/css.js +115 -0
- package/dist/extensions/custom-toolbar-wrapper.d.ts +11 -0
- package/dist/extensions/custom-toolbar-wrapper.js +61 -0
- package/dist/extensions/div-node.d.ts +10 -0
- package/dist/extensions/div-node.js +42 -0
- package/dist/extensions/ensure-empty-root-div.d.ts +14 -0
- package/dist/extensions/ensure-empty-root-div.js +24 -0
- package/dist/extensions/ensure-list-item-content-is-div.d.ts +15 -0
- package/dist/extensions/ensure-list-item-content-is-div.js +31 -0
- package/dist/extensions/extended-list-item.d.ts +13 -0
- package/dist/extensions/extended-list-item.js +5 -0
- package/dist/extensions/extended-table-cell.d.ts +10 -0
- package/dist/extensions/extended-table-cell.js +6 -0
- package/dist/extensions/extended-table.d.ts +17 -0
- package/dist/extensions/extended-table.js +34 -0
- package/dist/extensions/heading-paragraph.d.ts +17 -0
- package/dist/extensions/heading-paragraph.js +30 -0
- package/dist/extensions/image-component.d.ts +22 -0
- package/dist/extensions/image-component.js +220 -0
- package/dist/extensions/image.d.ts +10 -0
- package/dist/extensions/image.js +68 -0
- package/dist/extensions/index.d.ts +16 -0
- package/dist/extensions/index.js +65 -0
- package/dist/extensions/math.d.ts +15 -0
- package/dist/extensions/math.js +158 -0
- package/dist/extensions/media.d.ts +19 -0
- package/dist/extensions/media.js +149 -0
- package/dist/extensions/responseArea.d.ts +27 -0
- package/dist/extensions/responseArea.js +259 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +7 -0
- package/dist/styles/editorContainerStyles.d.ts +134 -0
- package/dist/theme.d.ts +9 -0
- package/dist/utils/helper.d.ts +9 -0
- package/dist/utils/helper.js +27 -0
- package/dist/utils/size.d.ts +9 -0
- package/dist/utils/size.js +14 -0
- package/package.json +51 -38
- package/CHANGELOG.json +0 -32
- package/CHANGELOG.md +0 -2532
- package/LICENSE.md +0 -5
- package/lib/components/CharacterPicker.js +0 -195
- package/lib/components/CharacterPicker.js.map +0 -1
- package/lib/components/EditableHtml.js +0 -375
- package/lib/components/EditableHtml.js.map +0 -1
- package/lib/components/MenuBar.js +0 -693
- package/lib/components/MenuBar.js.map +0 -1
- package/lib/components/TiptapContainer.js +0 -234
- package/lib/components/TiptapContainer.js.map +0 -1
- package/lib/components/characters/characterUtils.js +0 -378
- package/lib/components/characters/characterUtils.js.map +0 -1
- package/lib/components/characters/custom-popper.js +0 -44
- package/lib/components/characters/custom-popper.js.map +0 -1
- package/lib/components/common/done-button.js +0 -34
- package/lib/components/common/done-button.js.map +0 -1
- package/lib/components/common/toolbar-buttons.js +0 -144
- package/lib/components/common/toolbar-buttons.js.map +0 -1
- package/lib/components/icons/CssIcon.js +0 -25
- package/lib/components/icons/CssIcon.js.map +0 -1
- package/lib/components/icons/RespArea.js +0 -72
- package/lib/components/icons/RespArea.js.map +0 -1
- package/lib/components/icons/TableIcons.js +0 -53
- package/lib/components/icons/TableIcons.js.map +0 -1
- package/lib/components/icons/TextAlign.js +0 -157
- package/lib/components/icons/TextAlign.js.map +0 -1
- package/lib/components/image/AltDialog.js +0 -98
- package/lib/components/image/AltDialog.js.map +0 -1
- package/lib/components/image/ImageToolbar.js +0 -137
- package/lib/components/image/ImageToolbar.js.map +0 -1
- package/lib/components/image/InsertImageHandler.js +0 -135
- package/lib/components/image/InsertImageHandler.js.map +0 -1
- package/lib/components/media/MediaDialog.js +0 -594
- package/lib/components/media/MediaDialog.js.map +0 -1
- package/lib/components/media/MediaToolbar.js +0 -74
- package/lib/components/media/MediaToolbar.js.map +0 -1
- package/lib/components/media/MediaWrapper.js +0 -67
- package/lib/components/media/MediaWrapper.js.map +0 -1
- package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js +0 -84
- package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js.map +0 -1
- package/lib/components/respArea/DragInTheBlank/choice.js +0 -250
- package/lib/components/respArea/DragInTheBlank/choice.js.map +0 -1
- package/lib/components/respArea/ExplicitConstructedResponse.js +0 -136
- package/lib/components/respArea/ExplicitConstructedResponse.js.map +0 -1
- package/lib/components/respArea/InlineDropdown.js +0 -165
- package/lib/components/respArea/InlineDropdown.js.map +0 -1
- package/lib/components/respArea/MathTemplated.js +0 -130
- package/lib/components/respArea/MathTemplated.js.map +0 -1
- package/lib/components/respArea/ToolbarIcon.js +0 -81
- package/lib/components/respArea/ToolbarIcon.js.map +0 -1
- package/lib/constants.js +0 -11
- package/lib/constants.js.map +0 -1
- package/lib/extensions/css.js +0 -217
- package/lib/extensions/css.js.map +0 -1
- package/lib/extensions/custom-toolbar-wrapper.js +0 -92
- package/lib/extensions/custom-toolbar-wrapper.js.map +0 -1
- package/lib/extensions/div-node.js +0 -83
- package/lib/extensions/div-node.js.map +0 -1
- package/lib/extensions/ensure-empty-root-div.js +0 -48
- package/lib/extensions/ensure-empty-root-div.js.map +0 -1
- package/lib/extensions/ensure-list-item-content-is-div.js +0 -64
- package/lib/extensions/ensure-list-item-content-is-div.js.map +0 -1
- package/lib/extensions/extended-list-item.js +0 -15
- package/lib/extensions/extended-list-item.js.map +0 -1
- package/lib/extensions/extended-table-cell.js +0 -22
- package/lib/extensions/extended-table-cell.js.map +0 -1
- package/lib/extensions/extended-table.js +0 -75
- package/lib/extensions/extended-table.js.map +0 -1
- package/lib/extensions/heading-paragraph.js +0 -61
- package/lib/extensions/heading-paragraph.js.map +0 -1
- package/lib/extensions/image-component.js +0 -348
- package/lib/extensions/image-component.js.map +0 -1
- package/lib/extensions/image.js +0 -134
- package/lib/extensions/image.js.map +0 -1
- package/lib/extensions/index.js +0 -46
- package/lib/extensions/index.js.map +0 -1
- package/lib/extensions/math.js +0 -343
- package/lib/extensions/math.js.map +0 -1
- package/lib/extensions/media.js +0 -243
- package/lib/extensions/media.js.map +0 -1
- package/lib/extensions/responseArea.js +0 -446
- package/lib/extensions/responseArea.js.map +0 -1
- package/lib/index.js +0 -30
- package/lib/index.js.map +0 -1
- package/lib/styles/editorContainerStyles.js +0 -137
- package/lib/styles/editorContainerStyles.js.map +0 -1
- package/lib/theme.js +0 -8
- package/lib/theme.js.map +0 -1
- package/lib/utils/helper.js +0 -73
- package/lib/utils/helper.js.map +0 -1
- package/lib/utils/size.js +0 -26
- package/lib/utils/size.js.map +0 -1
- package/src/__tests__/EditableHtml.test.jsx +0 -474
- package/src/__tests__/constants.test.js +0 -19
- package/src/__tests__/div-to-paragraph-conversion.test.jsx +0 -125
- package/src/__tests__/extensions.test.js +0 -208
- package/src/__tests__/index.test.jsx +0 -154
- package/src/__tests__/size-utils.test.js +0 -64
- package/src/__tests__/theme.test.js +0 -17
- package/src/components/CharacterPicker.jsx +0 -200
- package/src/components/EditableHtml.jsx +0 -438
- package/src/components/MenuBar.jsx +0 -549
- package/src/components/TiptapContainer.jsx +0 -219
- package/src/components/__tests__/AltDialog.test.jsx +0 -147
- package/src/components/__tests__/CharacterPicker.test.jsx +0 -219
- package/src/components/__tests__/CssIcon.test.jsx +0 -46
- package/src/components/__tests__/DragInTheBlank.test.jsx +0 -255
- package/src/components/__tests__/ExplicitConstructedResponse.test.jsx +0 -204
- package/src/components/__tests__/ImageToolbar.test.jsx +0 -128
- package/src/components/__tests__/InlineDropdown.test.jsx +0 -380
- package/src/components/__tests__/InsertImageHandler.test.js +0 -161
- package/src/components/__tests__/MediaDialog.test.jsx +0 -293
- package/src/components/__tests__/MediaToolbar.test.jsx +0 -74
- package/src/components/__tests__/MediaWrapper.test.jsx +0 -81
- package/src/components/__tests__/MenuBar.test.jsx +0 -249
- package/src/components/__tests__/RespArea.test.jsx +0 -122
- package/src/components/__tests__/TableIcons.test.jsx +0 -149
- package/src/components/__tests__/TextAlign.test.jsx +0 -167
- package/src/components/__tests__/TiptapContainer.test.jsx +0 -138
- package/src/components/__tests__/characterUtils.test.js +0 -166
- package/src/components/__tests__/choice.test.jsx +0 -171
- package/src/components/__tests__/custom-popper.test.jsx +0 -82
- package/src/components/__tests__/done-button.test.jsx +0 -54
- package/src/components/__tests__/toolbar-buttons.test.jsx +0 -234
- package/src/components/characters/characterUtils.js +0 -447
- package/src/components/characters/custom-popper.js +0 -38
- package/src/components/common/done-button.jsx +0 -27
- package/src/components/common/toolbar-buttons.jsx +0 -122
- package/src/components/icons/CssIcon.jsx +0 -15
- package/src/components/icons/RespArea.jsx +0 -71
- package/src/components/icons/TableIcons.jsx +0 -52
- package/src/components/icons/TextAlign.jsx +0 -114
- package/src/components/image/AltDialog.jsx +0 -82
- package/src/components/image/ImageToolbar.jsx +0 -99
- package/src/components/image/InsertImageHandler.js +0 -107
- package/src/components/media/MediaDialog.jsx +0 -596
- package/src/components/media/MediaToolbar.jsx +0 -49
- package/src/components/media/MediaWrapper.jsx +0 -39
- package/src/components/respArea/DragInTheBlank/DragInTheBlank.jsx +0 -76
- package/src/components/respArea/DragInTheBlank/choice.jsx +0 -256
- package/src/components/respArea/ExplicitConstructedResponse.jsx +0 -135
- package/src/components/respArea/InlineDropdown.jsx +0 -167
- package/src/components/respArea/MathTemplated.jsx +0 -124
- package/src/components/respArea/ToolbarIcon.jsx +0 -66
- package/src/components/respArea/__tests__/MathTemplated.test.jsx +0 -210
- package/src/constants.js +0 -5
- package/src/extensions/__tests__/css.test.js +0 -196
- package/src/extensions/__tests__/custom-toolbar-wrapper.test.jsx +0 -180
- package/src/extensions/__tests__/divNode.test.js +0 -87
- package/src/extensions/__tests__/ensure-empty-root-div.test.js +0 -57
- package/src/extensions/__tests__/ensure-list-item-content-is-div.test.js +0 -44
- package/src/extensions/__tests__/extended-list-item.test.js +0 -13
- package/src/extensions/__tests__/extended-table-cell.test.js +0 -22
- package/src/extensions/__tests__/extended-table.test.js +0 -183
- package/src/extensions/__tests__/image-component.test.jsx +0 -345
- package/src/extensions/__tests__/image.test.js +0 -237
- package/src/extensions/__tests__/math.test.js +0 -459
- package/src/extensions/__tests__/media-node-view.test.jsx +0 -298
- package/src/extensions/__tests__/media.test.js +0 -271
- package/src/extensions/__tests__/responseArea.test.js +0 -601
- package/src/extensions/css.js +0 -220
- package/src/extensions/custom-toolbar-wrapper.jsx +0 -78
- package/src/extensions/div-node.js +0 -86
- package/src/extensions/ensure-empty-root-div.js +0 -47
- package/src/extensions/ensure-list-item-content-is-div.js +0 -62
- package/src/extensions/extended-list-item.js +0 -10
- package/src/extensions/extended-table-cell.js +0 -19
- package/src/extensions/extended-table.js +0 -60
- package/src/extensions/heading-paragraph.js +0 -53
- package/src/extensions/image-component.jsx +0 -338
- package/src/extensions/image.js +0 -109
- package/src/extensions/index.js +0 -81
- package/src/extensions/math.js +0 -327
- package/src/extensions/media.js +0 -188
- package/src/extensions/responseArea.js +0 -401
- package/src/index.jsx +0 -5
- package/src/styles/editorContainerStyles.js +0 -145
- package/src/theme.js +0 -1
- package/src/utils/__tests__/helper.test.js +0 -126
- package/src/utils/helper.js +0 -69
- package/src/utils/size.js +0 -32
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.specialConfig = exports.spanishConfig = exports.characterIcons = void 0;
|
|
7
|
-
var spanishConfig = exports.spanishConfig = {
|
|
8
|
-
characters: [['á', 'é', 'í', 'ó', 'ú'], ['Á', 'É', 'Í', 'Ó', 'Ú'], ['—', '«', '»', 'ñ', 'ü'], ['-', '¿', '¡', 'Ñ', 'Ü']]
|
|
9
|
-
};
|
|
10
|
-
var specialConfig = exports.specialConfig = {
|
|
11
|
-
hasPreview: true,
|
|
12
|
-
characters: [[{
|
|
13
|
-
unicode: 'U+00A2',
|
|
14
|
-
description: 'CENT SIGN',
|
|
15
|
-
write: '¢',
|
|
16
|
-
label: '¢'
|
|
17
|
-
}, {
|
|
18
|
-
unicode: 'U+00BF',
|
|
19
|
-
description: 'INVERTED QUESTION MARK',
|
|
20
|
-
write: '¿',
|
|
21
|
-
label: '¿'
|
|
22
|
-
}, {
|
|
23
|
-
unicode: 'U+00B4',
|
|
24
|
-
description: 'ACUTE ACCENT',
|
|
25
|
-
write: '´',
|
|
26
|
-
label: '´',
|
|
27
|
-
extraProps: {
|
|
28
|
-
style: {
|
|
29
|
-
gridRow: 'span 2'
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}, {
|
|
33
|
-
unicode: 'U+00E1',
|
|
34
|
-
description: 'LATIN SMALL LETTER A WITH ACUTE',
|
|
35
|
-
write: 'á',
|
|
36
|
-
label: 'á'
|
|
37
|
-
}, {
|
|
38
|
-
unicode: 'U+00E9',
|
|
39
|
-
description: 'LATIN SMALL LETTER E WITH ACUTE',
|
|
40
|
-
write: 'é',
|
|
41
|
-
label: 'é'
|
|
42
|
-
}, {
|
|
43
|
-
unicode: 'U+00ED',
|
|
44
|
-
description: 'LATIN SMALL LETTER I WITH ACUTE',
|
|
45
|
-
write: 'í',
|
|
46
|
-
label: 'í'
|
|
47
|
-
}, {
|
|
48
|
-
unicode: 'U+00F3',
|
|
49
|
-
description: 'LATIN SMALL LETTER O WITH ACUTE',
|
|
50
|
-
write: 'ó',
|
|
51
|
-
label: 'ó'
|
|
52
|
-
}, {
|
|
53
|
-
unicode: 'U+00FA',
|
|
54
|
-
description: 'LATIN SMALL LETTER U WITH ACUTE',
|
|
55
|
-
write: 'ú',
|
|
56
|
-
label: 'ú'
|
|
57
|
-
}, {
|
|
58
|
-
unicode: 'U+00F1',
|
|
59
|
-
description: 'LATIN SMALL LETTER N WITH TILDE',
|
|
60
|
-
write: 'ñ',
|
|
61
|
-
label: 'ñ'
|
|
62
|
-
}], [{
|
|
63
|
-
unicode: 'U+20AC',
|
|
64
|
-
description: 'EURO SIGN',
|
|
65
|
-
write: '€',
|
|
66
|
-
label: '€'
|
|
67
|
-
}, {
|
|
68
|
-
unicode: 'U+00A1',
|
|
69
|
-
description: 'INVERTED EXCLAMATION MARK',
|
|
70
|
-
write: '¡',
|
|
71
|
-
label: '¡'
|
|
72
|
-
}, {
|
|
73
|
-
unicode: 'U+00C1',
|
|
74
|
-
description: 'LATIN CAPITAL LETTER A WITH ACUTE',
|
|
75
|
-
write: 'Á',
|
|
76
|
-
label: 'Á'
|
|
77
|
-
}, {
|
|
78
|
-
unicode: 'U+00C9',
|
|
79
|
-
description: 'LATIN CAPITAL LETTER E WITH ACUTE',
|
|
80
|
-
write: 'É',
|
|
81
|
-
label: 'É'
|
|
82
|
-
}, {
|
|
83
|
-
unicode: 'U+00CD',
|
|
84
|
-
description: 'LATIN CAPITAL LETTER I WITH ACUTE',
|
|
85
|
-
write: 'Í',
|
|
86
|
-
label: 'Í'
|
|
87
|
-
}, {
|
|
88
|
-
unicode: 'U+00D3',
|
|
89
|
-
description: 'LATIN CAPITAL LETTER O WITH ACUTE',
|
|
90
|
-
write: 'Ó',
|
|
91
|
-
label: 'Ó'
|
|
92
|
-
}, {
|
|
93
|
-
unicode: 'U+00DA',
|
|
94
|
-
description: 'LATIN CAPITAL LETTER U WITH ACUTE',
|
|
95
|
-
write: 'Ú',
|
|
96
|
-
label: 'Ú'
|
|
97
|
-
}, {
|
|
98
|
-
unicode: 'U+00D1',
|
|
99
|
-
description: 'LATIN CAPITAL LETTER N WITH TILDE',
|
|
100
|
-
write: 'Ñ',
|
|
101
|
-
label: 'Ñ'
|
|
102
|
-
}], [{
|
|
103
|
-
unicode: 'U+00A3',
|
|
104
|
-
description: 'POUND SIGN',
|
|
105
|
-
write: '£',
|
|
106
|
-
label: '£'
|
|
107
|
-
}, {
|
|
108
|
-
unicode: 'U+00AB',
|
|
109
|
-
description: 'LEFT-POINTING DOUBLE ANGLE QUOTATION MARK',
|
|
110
|
-
write: '«',
|
|
111
|
-
label: '«'
|
|
112
|
-
}, {
|
|
113
|
-
unicode: 'U+005E',
|
|
114
|
-
description: 'CIRCUMFLEX ACCENT',
|
|
115
|
-
write: '^',
|
|
116
|
-
label: '^',
|
|
117
|
-
extraProps: {
|
|
118
|
-
style: {
|
|
119
|
-
gridRow: 'span 2'
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}, {
|
|
123
|
-
unicode: 'U+00E2',
|
|
124
|
-
description: 'LATIN SMALL LETTER A WITH CIRCUMFLEX',
|
|
125
|
-
write: 'â',
|
|
126
|
-
label: 'â'
|
|
127
|
-
}, {
|
|
128
|
-
unicode: 'U+00EA',
|
|
129
|
-
description: 'LATIN SMALL LETTER E WITH CIRCUMFLEX',
|
|
130
|
-
write: 'ê',
|
|
131
|
-
label: 'ê'
|
|
132
|
-
}, {
|
|
133
|
-
unicode: 'U+00EE',
|
|
134
|
-
description: 'LATIN SMALL LETTER I WITH CIRCUMFLEX',
|
|
135
|
-
write: 'î',
|
|
136
|
-
label: 'î'
|
|
137
|
-
}, {
|
|
138
|
-
unicode: 'U+00F4',
|
|
139
|
-
description: 'LATIN SMALL LETTER O WITH CIRCUMFLEX',
|
|
140
|
-
write: 'ô',
|
|
141
|
-
label: 'ô'
|
|
142
|
-
}, {
|
|
143
|
-
unicode: 'U+00FB',
|
|
144
|
-
description: 'LATIN SMALL LETTER U WITH CIRCUMFLEX',
|
|
145
|
-
write: 'û',
|
|
146
|
-
label: 'û'
|
|
147
|
-
}, {
|
|
148
|
-
unicode: 'U+00E7',
|
|
149
|
-
description: 'LATIN SMALL LETTER C WITH CEDILLA',
|
|
150
|
-
write: 'ç',
|
|
151
|
-
label: 'ç'
|
|
152
|
-
}], [{
|
|
153
|
-
unicode: 'U+00A5',
|
|
154
|
-
description: 'YEN SIGN',
|
|
155
|
-
write: '¥',
|
|
156
|
-
label: '¥'
|
|
157
|
-
}, {
|
|
158
|
-
unicode: 'U+00BB',
|
|
159
|
-
description: 'RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK',
|
|
160
|
-
write: '»',
|
|
161
|
-
label: '»'
|
|
162
|
-
}, {
|
|
163
|
-
unicode: 'U+00C2',
|
|
164
|
-
description: 'LATIN CAPITAL LETTER A WITH CIRCUMFLEX',
|
|
165
|
-
write: 'Â',
|
|
166
|
-
label: 'Â'
|
|
167
|
-
}, {
|
|
168
|
-
unicode: 'U+00CA',
|
|
169
|
-
description: 'LATIN CAPITAL LETTER E WITH CIRCUMFLEX',
|
|
170
|
-
write: 'Ê',
|
|
171
|
-
label: 'Ê'
|
|
172
|
-
}, {
|
|
173
|
-
unicode: 'U+00CE',
|
|
174
|
-
description: 'LATIN CAPITAL LETTER I WITH CIRCUMFLEX',
|
|
175
|
-
write: 'Î',
|
|
176
|
-
label: 'Î'
|
|
177
|
-
}, {
|
|
178
|
-
unicode: 'U+00D4',
|
|
179
|
-
description: 'LATIN CAPITAL LETTER O WITH CIRCUMFLEX',
|
|
180
|
-
write: 'Ô',
|
|
181
|
-
label: 'Ô'
|
|
182
|
-
}, {
|
|
183
|
-
unicode: 'U+00DB',
|
|
184
|
-
description: 'LATIN CAPITAL LETTER U WITH CIRCUMFLEX',
|
|
185
|
-
write: 'Û',
|
|
186
|
-
label: 'Û'
|
|
187
|
-
}, {
|
|
188
|
-
unicode: 'U+00C7',
|
|
189
|
-
description: 'LATIN CAPITAL LETTER C WITH CEDILLA',
|
|
190
|
-
write: 'Ç',
|
|
191
|
-
label: 'Ç'
|
|
192
|
-
}], [{
|
|
193
|
-
unicode: 'U+200A',
|
|
194
|
-
description: 'HAIR SPACE',
|
|
195
|
-
write: String.fromCodePoint('0x200A'),
|
|
196
|
-
label: ' '
|
|
197
|
-
}, {
|
|
198
|
-
unicode: 'U+00A7',
|
|
199
|
-
description: 'SECTION SIGN',
|
|
200
|
-
write: '§',
|
|
201
|
-
label: '§'
|
|
202
|
-
}, {
|
|
203
|
-
unicode: 'U+00A8',
|
|
204
|
-
description: 'DIAERESIS',
|
|
205
|
-
write: '¨',
|
|
206
|
-
label: '¨',
|
|
207
|
-
extraProps: {
|
|
208
|
-
style: {
|
|
209
|
-
gridRow: 'span 2'
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}, {
|
|
213
|
-
unicode: 'U+00E4',
|
|
214
|
-
description: 'LATIN SMALL LETTER A WITH DIAERESIS',
|
|
215
|
-
write: 'ä',
|
|
216
|
-
label: 'ä'
|
|
217
|
-
}, {
|
|
218
|
-
unicode: 'U+00EB',
|
|
219
|
-
description: 'LATIN SMALL LETTER E WITH DIAERESIS',
|
|
220
|
-
write: 'ë',
|
|
221
|
-
label: 'ë'
|
|
222
|
-
}, {
|
|
223
|
-
unicode: 'U+00EF',
|
|
224
|
-
description: 'LATIN SMALL LETTER I WITH DIAERESIS',
|
|
225
|
-
write: 'ï',
|
|
226
|
-
label: 'ï'
|
|
227
|
-
}, {
|
|
228
|
-
unicode: 'U+00F6',
|
|
229
|
-
description: 'LATIN SMALL LETTER O WITH DIAERESIS',
|
|
230
|
-
write: 'ö',
|
|
231
|
-
label: 'ö'
|
|
232
|
-
}, {
|
|
233
|
-
unicode: 'U+00FC',
|
|
234
|
-
description: 'LATIN SMALL LETTER U WITH DIAERESIS',
|
|
235
|
-
write: 'ü',
|
|
236
|
-
label: 'ü'
|
|
237
|
-
}, {
|
|
238
|
-
unicode: 'U+00DF',
|
|
239
|
-
description: 'LATIN SMALL LETTER SHARP S',
|
|
240
|
-
write: 'ß',
|
|
241
|
-
label: 'ß'
|
|
242
|
-
}], [{
|
|
243
|
-
unicode: 'U+2009',
|
|
244
|
-
description: 'THIN SPACE',
|
|
245
|
-
write: String.fromCodePoint('0x2009'),
|
|
246
|
-
label: ' '
|
|
247
|
-
}, {
|
|
248
|
-
unicode: 'U+2026',
|
|
249
|
-
description: 'HORIZONTAL ELLIPSIS',
|
|
250
|
-
write: '…',
|
|
251
|
-
label: '…'
|
|
252
|
-
}, {
|
|
253
|
-
unicode: 'U+00C4',
|
|
254
|
-
description: 'LATIN CAPITAL LETTER A WITH DIAERESIS',
|
|
255
|
-
write: 'Ä',
|
|
256
|
-
label: 'Ä'
|
|
257
|
-
}, {
|
|
258
|
-
unicode: 'U+00CB',
|
|
259
|
-
description: 'LATIN CAPITAL LETTER E WITH DIAERESIS',
|
|
260
|
-
write: 'Ë',
|
|
261
|
-
label: 'Ë'
|
|
262
|
-
}, {
|
|
263
|
-
unicode: 'U+00CF',
|
|
264
|
-
description: 'LATIN CAPITAL LETTER I WITH DIAERESIS',
|
|
265
|
-
write: 'Ï',
|
|
266
|
-
label: 'Ï'
|
|
267
|
-
}, {
|
|
268
|
-
unicode: 'U+00D6',
|
|
269
|
-
description: 'LATIN CAPITAL LETTER O WITH DIAERESIS',
|
|
270
|
-
write: 'Ö',
|
|
271
|
-
label: 'Ö'
|
|
272
|
-
}, {
|
|
273
|
-
unicode: 'U+00DC',
|
|
274
|
-
description: 'LATIN CAPITAL LETTER U WITH DIAERESIS',
|
|
275
|
-
write: 'Ü',
|
|
276
|
-
label: 'Ü'
|
|
277
|
-
}, {
|
|
278
|
-
unicode: 'U+2212',
|
|
279
|
-
description: 'MINUS SIGN',
|
|
280
|
-
write: '−',
|
|
281
|
-
label: '−'
|
|
282
|
-
}], [{
|
|
283
|
-
unicode: 'U+00A0',
|
|
284
|
-
description: 'NO-BREAK SPACE',
|
|
285
|
-
write: String.fromCodePoint('0x00A0'),
|
|
286
|
-
label: ' '
|
|
287
|
-
}, {
|
|
288
|
-
unicode: 'U+2022',
|
|
289
|
-
description: 'BULLET',
|
|
290
|
-
write: '•',
|
|
291
|
-
label: '•'
|
|
292
|
-
}, {
|
|
293
|
-
unicode: 'U+0060',
|
|
294
|
-
description: 'GRAVE ACCENT',
|
|
295
|
-
write: '`',
|
|
296
|
-
label: '`',
|
|
297
|
-
extraProps: {
|
|
298
|
-
style: {
|
|
299
|
-
gridRow: 'span 2'
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}, {
|
|
303
|
-
unicode: 'U+00E0',
|
|
304
|
-
description: 'LATIN SMALL LETTER A WITH GRAVE',
|
|
305
|
-
write: 'à',
|
|
306
|
-
label: 'à'
|
|
307
|
-
}, {
|
|
308
|
-
unicode: 'U+00E8',
|
|
309
|
-
description: 'LATIN SMALL LETTER E WITH GRAVE',
|
|
310
|
-
write: 'è',
|
|
311
|
-
label: 'è'
|
|
312
|
-
}, {
|
|
313
|
-
unicode: 'U+00EC',
|
|
314
|
-
description: 'LATIN SMALL LETTER I WITH GRAVE',
|
|
315
|
-
write: 'ì',
|
|
316
|
-
label: 'ì'
|
|
317
|
-
}, {
|
|
318
|
-
unicode: 'U+00F2',
|
|
319
|
-
description: 'LATIN SMALL LETTER O WITH GRAVE',
|
|
320
|
-
write: 'ò',
|
|
321
|
-
label: 'ò'
|
|
322
|
-
}, {
|
|
323
|
-
unicode: 'U+00F9',
|
|
324
|
-
description: 'LATIN SMALL LETTER U WITH GRAVE',
|
|
325
|
-
write: 'ù',
|
|
326
|
-
label: 'ù'
|
|
327
|
-
}, {
|
|
328
|
-
unicode: 'U+2013',
|
|
329
|
-
description: 'EN DASH',
|
|
330
|
-
write: '–',
|
|
331
|
-
label: '–'
|
|
332
|
-
}], [{
|
|
333
|
-
unicode: 'U+2003',
|
|
334
|
-
description: 'EM SPACE',
|
|
335
|
-
write: String.fromCodePoint('0x2003'),
|
|
336
|
-
label: ' '
|
|
337
|
-
}, {
|
|
338
|
-
unicode: 'U+25E6',
|
|
339
|
-
description: 'WHITE BULLET',
|
|
340
|
-
write: '◦',
|
|
341
|
-
label: '◦'
|
|
342
|
-
}, {
|
|
343
|
-
unicode: 'U+00C0',
|
|
344
|
-
description: 'LATIN CAPITAL LETTER A WITH GRAVE',
|
|
345
|
-
write: 'À',
|
|
346
|
-
label: 'À'
|
|
347
|
-
}, {
|
|
348
|
-
unicode: 'U+00C8',
|
|
349
|
-
description: 'LATIN CAPITAL LETTER E WITH GRAVE',
|
|
350
|
-
write: 'È',
|
|
351
|
-
label: 'È'
|
|
352
|
-
}, {
|
|
353
|
-
unicode: 'U+00CC',
|
|
354
|
-
description: 'LATIN CAPITAL LETTER I WITH GRAVE',
|
|
355
|
-
write: 'Ì',
|
|
356
|
-
label: 'Ì'
|
|
357
|
-
}, {
|
|
358
|
-
unicode: 'U+00D2',
|
|
359
|
-
description: 'LATIN CAPITAL LETTER O WITH GRAVE',
|
|
360
|
-
write: 'Ò',
|
|
361
|
-
label: 'Ò'
|
|
362
|
-
}, {
|
|
363
|
-
unicode: 'U+00D9',
|
|
364
|
-
description: 'LATIN CAPITAL LETTER U WITH GRAVE',
|
|
365
|
-
write: 'Ù',
|
|
366
|
-
label: 'Ù'
|
|
367
|
-
}, {
|
|
368
|
-
unicode: 'U+2014',
|
|
369
|
-
description: 'EM DASH',
|
|
370
|
-
write: '—',
|
|
371
|
-
label: '—'
|
|
372
|
-
}]]
|
|
373
|
-
};
|
|
374
|
-
var characterIcons = exports.characterIcons = {
|
|
375
|
-
spanish: 'ñ',
|
|
376
|
-
special: '€'
|
|
377
|
-
};
|
|
378
|
-
//# sourceMappingURL=characterUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"characterUtils.js","names":["spanishConfig","exports","characters","specialConfig","hasPreview","unicode","description","write","label","extraProps","style","gridRow","String","fromCodePoint","characterIcons","spanish","special"],"sources":["../../../src/components/characters/characterUtils.js"],"sourcesContent":["export const spanishConfig = {\n characters: [\n ['á', 'é', 'í', 'ó', 'ú'],\n ['Á', 'É', 'Í', 'Ó', 'Ú'],\n ['—', '«', '»', 'ñ', 'ü'],\n ['-', '¿', '¡', 'Ñ', 'Ü'],\n ],\n};\n\nexport const specialConfig = {\n hasPreview: true,\n characters: [\n [\n {\n unicode: 'U+00A2',\n description: 'CENT SIGN',\n write: '¢',\n label: '¢',\n },\n {\n unicode: 'U+00BF',\n description: 'INVERTED QUESTION MARK',\n write: '¿',\n label: '¿',\n },\n {\n unicode: 'U+00B4',\n description: 'ACUTE ACCENT',\n write: '´',\n label: '´',\n extraProps: { style: { gridRow: 'span 2' } },\n },\n {\n unicode: 'U+00E1',\n description: 'LATIN SMALL LETTER A WITH ACUTE',\n write: 'á',\n label: 'á',\n },\n {\n unicode: 'U+00E9',\n description: 'LATIN SMALL LETTER E WITH ACUTE',\n write: 'é',\n label: 'é',\n },\n {\n unicode: 'U+00ED',\n description: 'LATIN SMALL LETTER I WITH ACUTE',\n write: 'í',\n label: 'í',\n },\n {\n unicode: 'U+00F3',\n description: 'LATIN SMALL LETTER O WITH ACUTE',\n write: 'ó',\n label: 'ó',\n },\n {\n unicode: 'U+00FA',\n description: 'LATIN SMALL LETTER U WITH ACUTE',\n write: 'ú',\n label: 'ú',\n },\n {\n unicode: 'U+00F1',\n description: 'LATIN SMALL LETTER N WITH TILDE',\n write: 'ñ',\n label: 'ñ',\n },\n ],\n [\n {\n unicode: 'U+20AC',\n description: 'EURO SIGN',\n write: '€',\n label: '€',\n },\n {\n unicode: 'U+00A1',\n description: 'INVERTED EXCLAMATION MARK',\n write: '¡',\n label: '¡',\n },\n {\n unicode: 'U+00C1',\n description: 'LATIN CAPITAL LETTER A WITH ACUTE',\n write: 'Á',\n label: 'Á',\n },\n {\n unicode: 'U+00C9',\n description: 'LATIN CAPITAL LETTER E WITH ACUTE',\n write: 'É',\n label: 'É',\n },\n {\n unicode: 'U+00CD',\n description: 'LATIN CAPITAL LETTER I WITH ACUTE',\n write: 'Í',\n label: 'Í',\n },\n {\n unicode: 'U+00D3',\n description: 'LATIN CAPITAL LETTER O WITH ACUTE',\n write: 'Ó',\n label: 'Ó',\n },\n {\n unicode: 'U+00DA',\n description: 'LATIN CAPITAL LETTER U WITH ACUTE',\n write: 'Ú',\n label: 'Ú',\n },\n {\n unicode: 'U+00D1',\n description: 'LATIN CAPITAL LETTER N WITH TILDE',\n write: 'Ñ',\n label: 'Ñ',\n },\n ],\n [\n {\n unicode: 'U+00A3',\n description: 'POUND SIGN',\n write: '£',\n label: '£',\n },\n {\n unicode: 'U+00AB',\n description: 'LEFT-POINTING DOUBLE ANGLE QUOTATION MARK',\n write: '«',\n label: '«',\n },\n {\n unicode: 'U+005E',\n description: 'CIRCUMFLEX ACCENT',\n write: '^',\n label: '^',\n extraProps: { style: { gridRow: 'span 2' } },\n },\n {\n unicode: 'U+00E2',\n description: 'LATIN SMALL LETTER A WITH CIRCUMFLEX',\n write: 'â',\n label: 'â',\n },\n {\n unicode: 'U+00EA',\n description: 'LATIN SMALL LETTER E WITH CIRCUMFLEX',\n write: 'ê',\n label: 'ê',\n },\n {\n unicode: 'U+00EE',\n description: 'LATIN SMALL LETTER I WITH CIRCUMFLEX',\n write: 'î',\n label: 'î',\n },\n {\n unicode: 'U+00F4',\n description: 'LATIN SMALL LETTER O WITH CIRCUMFLEX',\n write: 'ô',\n label: 'ô',\n },\n {\n unicode: 'U+00FB',\n description: 'LATIN SMALL LETTER U WITH CIRCUMFLEX',\n write: 'û',\n label: 'û',\n },\n {\n unicode: 'U+00E7',\n description: 'LATIN SMALL LETTER C WITH CEDILLA',\n write: 'ç',\n label: 'ç',\n },\n ],\n [\n {\n unicode: 'U+00A5',\n description: 'YEN SIGN',\n write: '¥',\n label: '¥',\n },\n {\n unicode: 'U+00BB',\n description: 'RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK',\n write: '»',\n label: '»',\n },\n {\n unicode: 'U+00C2',\n description: 'LATIN CAPITAL LETTER A WITH CIRCUMFLEX',\n write: 'Â',\n label: 'Â',\n },\n {\n unicode: 'U+00CA',\n description: 'LATIN CAPITAL LETTER E WITH CIRCUMFLEX',\n write: 'Ê',\n label: 'Ê',\n },\n {\n unicode: 'U+00CE',\n description: 'LATIN CAPITAL LETTER I WITH CIRCUMFLEX',\n write: 'Î',\n label: 'Î',\n },\n {\n unicode: 'U+00D4',\n description: 'LATIN CAPITAL LETTER O WITH CIRCUMFLEX',\n write: 'Ô',\n label: 'Ô',\n },\n {\n unicode: 'U+00DB',\n description: 'LATIN CAPITAL LETTER U WITH CIRCUMFLEX',\n write: 'Û',\n label: 'Û',\n },\n {\n unicode: 'U+00C7',\n description: 'LATIN CAPITAL LETTER C WITH CEDILLA',\n write: 'Ç',\n label: 'Ç',\n },\n ],\n [\n {\n unicode: 'U+200A',\n description: 'HAIR SPACE',\n write: String.fromCodePoint('0x200A'),\n label: ' ',\n },\n {\n unicode: 'U+00A7',\n description: 'SECTION SIGN',\n write: '§',\n label: '§',\n },\n {\n unicode: 'U+00A8',\n description: 'DIAERESIS',\n write: '¨',\n label: '¨',\n extraProps: { style: { gridRow: 'span 2' } },\n },\n {\n unicode: 'U+00E4',\n description: 'LATIN SMALL LETTER A WITH DIAERESIS',\n write: 'ä',\n label: 'ä',\n },\n {\n unicode: 'U+00EB',\n description: 'LATIN SMALL LETTER E WITH DIAERESIS',\n write: 'ë',\n label: 'ë',\n },\n {\n unicode: 'U+00EF',\n description: 'LATIN SMALL LETTER I WITH DIAERESIS',\n write: 'ï',\n label: 'ï',\n },\n {\n unicode: 'U+00F6',\n description: 'LATIN SMALL LETTER O WITH DIAERESIS',\n write: 'ö',\n label: 'ö',\n },\n {\n unicode: 'U+00FC',\n description: 'LATIN SMALL LETTER U WITH DIAERESIS',\n write: 'ü',\n label: 'ü',\n },\n {\n unicode: 'U+00DF',\n description: 'LATIN SMALL LETTER SHARP S',\n write: 'ß',\n label: 'ß',\n },\n ],\n [\n {\n unicode: 'U+2009',\n description: 'THIN SPACE',\n write: String.fromCodePoint('0x2009'),\n label: ' ',\n },\n {\n unicode: 'U+2026',\n description: 'HORIZONTAL ELLIPSIS',\n write: '…',\n label: '…',\n },\n {\n unicode: 'U+00C4',\n description: 'LATIN CAPITAL LETTER A WITH DIAERESIS',\n write: 'Ä',\n label: 'Ä',\n },\n {\n unicode: 'U+00CB',\n description: 'LATIN CAPITAL LETTER E WITH DIAERESIS',\n write: 'Ë',\n label: 'Ë',\n },\n {\n unicode: 'U+00CF',\n description: 'LATIN CAPITAL LETTER I WITH DIAERESIS',\n write: 'Ï',\n label: 'Ï',\n },\n {\n unicode: 'U+00D6',\n description: 'LATIN CAPITAL LETTER O WITH DIAERESIS',\n write: 'Ö',\n label: 'Ö',\n },\n {\n unicode: 'U+00DC',\n description: 'LATIN CAPITAL LETTER U WITH DIAERESIS',\n write: 'Ü',\n label: 'Ü',\n },\n {\n unicode: 'U+2212',\n description: 'MINUS SIGN',\n write: '−',\n label: '−',\n },\n ],\n [\n {\n unicode: 'U+00A0',\n description: 'NO-BREAK SPACE',\n write: String.fromCodePoint('0x00A0'),\n label: ' ',\n },\n {\n unicode: 'U+2022',\n description: 'BULLET',\n write: '•',\n label: '•',\n },\n {\n unicode: 'U+0060',\n description: 'GRAVE ACCENT',\n write: '`',\n label: '`',\n extraProps: { style: { gridRow: 'span 2' } },\n },\n {\n unicode: 'U+00E0',\n description: 'LATIN SMALL LETTER A WITH GRAVE',\n write: 'à',\n label: 'à',\n },\n {\n unicode: 'U+00E8',\n description: 'LATIN SMALL LETTER E WITH GRAVE',\n write: 'è',\n label: 'è',\n },\n {\n unicode: 'U+00EC',\n description: 'LATIN SMALL LETTER I WITH GRAVE',\n write: 'ì',\n label: 'ì',\n },\n {\n unicode: 'U+00F2',\n description: 'LATIN SMALL LETTER O WITH GRAVE',\n write: 'ò',\n label: 'ò',\n },\n {\n unicode: 'U+00F9',\n description: 'LATIN SMALL LETTER U WITH GRAVE',\n write: 'ù',\n label: 'ù',\n },\n {\n unicode: 'U+2013',\n description: 'EN DASH',\n write: '–',\n label: '–',\n },\n ],\n [\n {\n unicode: 'U+2003',\n description: 'EM SPACE',\n write: String.fromCodePoint('0x2003'),\n label: ' ',\n },\n {\n unicode: 'U+25E6',\n description: 'WHITE BULLET',\n write: '◦',\n label: '◦',\n },\n {\n unicode: 'U+00C0',\n description: 'LATIN CAPITAL LETTER A WITH GRAVE',\n write: 'À',\n label: 'À',\n },\n {\n unicode: 'U+00C8',\n description: 'LATIN CAPITAL LETTER E WITH GRAVE',\n write: 'È',\n label: 'È',\n },\n {\n unicode: 'U+00CC',\n description: 'LATIN CAPITAL LETTER I WITH GRAVE',\n write: 'Ì',\n label: 'Ì',\n },\n {\n unicode: 'U+00D2',\n description: 'LATIN CAPITAL LETTER O WITH GRAVE',\n write: 'Ò',\n label: 'Ò',\n },\n {\n unicode: 'U+00D9',\n description: 'LATIN CAPITAL LETTER U WITH GRAVE',\n write: 'Ù',\n label: 'Ù',\n },\n {\n unicode: 'U+2014',\n description: 'EM DASH',\n write: '—',\n label: '—',\n },\n ],\n ],\n};\n\nexport const characterIcons = {\n spanish: 'ñ',\n special: '€',\n};\n"],"mappings":";;;;;;AAAO,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3BE,UAAU,EAAE,CACV,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACzB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACzB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACzB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;AAE7B,CAAC;AAEM,IAAMC,aAAa,GAAAF,OAAA,CAAAE,aAAA,GAAG;EAC3BC,UAAU,EAAE,IAAI;EAChBF,UAAU,EAAE,CACV,CACE;IACEG,OAAO,EAAE,QAAQ;IACjBC,WAAW,EAAE,WAAW;IACxBC,KAAK,EAAE,GAAG;IACVC,KAAK,EAAE;EACT,CAAC,EACD;IACEH,OAAO,EAAE,QAAQ;IACjBC,WAAW,E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D;IACEH,OAAO,EAAE,QAAQ;IACjBC,WAAW,EAAE,mCAAmC;IAChDC,KAAK,EAAE,GAAG;IACVC,KAAK,EAAE;EACT,CAAC,EACD;IACEH,OAAO,EAAE,QAAQ;IACjBC,WAAW,EAAE,mCAAmC;IAChDC,KAAK,EAAE,GAAG;IACVC,KAAK,EAAE;EACT,CAAC,EACD;IACEH,OAAO,EAAE,QAAQ;IACjBC,WAAW,EAAE,mCAAmC;IAChDC,KAAK,EAAE,GAAG;IACVC,KAAK,EAAE;EACT,CAAC,EACD;IACEH,OAAO,EAAE,QAAQ;IACjBC,WAAW,EAAE,mCAAmC;IAChDC,KAAK,EAAE,GAAG;IACVC,KAAK,EAAE;EACT,CAAC,EACD;IACEH,OAAO,EAAE,QAAQ;IACjBC,WAAW,EAAE,SAAS;IACtBC,KAAK,EAAE,GAAG;IACVC,KAAK,EAAE;EACT,CAAC,CACF;AAEL,CAAC;AAEM,IAAMM,cAAc,GAAAb,OAAA,CAAAa,cAAA,GAAG;EAC5BC,OAAO,EAAE,GAAG;EACZC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _styles = require("@mui/material/styles");
|
|
12
|
-
var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
|
|
13
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
14
|
-
var _excluded = ["children"];
|
|
15
|
-
var StyledPopper = (0, _styles.styled)(_Popper["default"])({
|
|
16
|
-
background: '#fff',
|
|
17
|
-
padding: '10px',
|
|
18
|
-
pointerEvents: 'none',
|
|
19
|
-
zIndex: 99999
|
|
20
|
-
});
|
|
21
|
-
var StyledTypography = (0, _styles.styled)(_Typography["default"])({
|
|
22
|
-
fontSize: 50,
|
|
23
|
-
textAlign: 'center'
|
|
24
|
-
});
|
|
25
|
-
var CustomPopper = function CustomPopper(_ref) {
|
|
26
|
-
var children = _ref.children,
|
|
27
|
-
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
28
|
-
return /*#__PURE__*/_react["default"].createElement(StyledPopper, (0, _extends2["default"])({
|
|
29
|
-
id: "mouse-over-popover",
|
|
30
|
-
open: true,
|
|
31
|
-
anchorOrigin: {
|
|
32
|
-
vertical: 'bottom',
|
|
33
|
-
horizontal: 'left'
|
|
34
|
-
},
|
|
35
|
-
transformOrigin: {
|
|
36
|
-
vertical: 'top',
|
|
37
|
-
horizontal: 'left'
|
|
38
|
-
},
|
|
39
|
-
disableRestoreFocus: true,
|
|
40
|
-
disableAutoFocus: true
|
|
41
|
-
}, props), /*#__PURE__*/_react["default"].createElement(StyledTypography, null, children));
|
|
42
|
-
};
|
|
43
|
-
var _default = exports["default"] = CustomPopper;
|
|
44
|
-
//# sourceMappingURL=custom-popper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-popper.js","names":["_react","_interopRequireDefault","require","_styles","_Popper","_Typography","_excluded","StyledPopper","styled","Popper","background","padding","pointerEvents","zIndex","StyledTypography","Typography","fontSize","textAlign","CustomPopper","_ref","children","props","_objectWithoutProperties2","createElement","_extends2","id","open","anchorOrigin","vertical","horizontal","transformOrigin","disableRestoreFocus","disableAutoFocus","_default","exports"],"sources":["../../../src/components/characters/custom-popper.js"],"sourcesContent":["import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport Popper from '@mui/material/Popper';\nimport Typography from '@mui/material/Typography';\n\nconst StyledPopper = styled(Popper)({\n background: '#fff',\n padding: '10px',\n pointerEvents: 'none',\n zIndex: 99999,\n});\n\nconst StyledTypography = styled(Typography)({\n fontSize: 50,\n textAlign: 'center',\n});\n\nconst CustomPopper = ({ children, ...props }) => (\n <StyledPopper\n id=\"mouse-over-popover\"\n open\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n disableRestoreFocus\n disableAutoFocus\n {...props}\n >\n <StyledTypography>{children}</StyledTypography>\n </StyledPopper>\n);\n\nexport default CustomPopper;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAkD,IAAAI,SAAA;AAElD,IAAMC,YAAY,GAAG,IAAAC,cAAM,EAACC,kBAAM,CAAC,CAAC;EAClCC,UAAU,EAAE,MAAM;EAClBC,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,MAAM;EACrBC,MAAM,EAAE;AACV,CAAC,CAAC;AAEF,IAAMC,gBAAgB,GAAG,IAAAN,cAAM,EAACO,sBAAU,CAAC,CAAC;EAC1CC,QAAQ,EAAE,EAAE;EACZC,SAAS,EAAE;AACb,CAAC,CAAC;AAEF,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,KAAK,OAAAC,yBAAA,aAAAH,IAAA,EAAAb,SAAA;EAAA,oBACxCN,MAAA,YAAAuB,aAAA,CAAChB,YAAY,MAAAiB,SAAA;IACXC,EAAE,EAAC,oBAAoB;IACvBC,IAAI;IACJC,YAAY,EAAE;MACZC,QAAQ,EAAE,QAAQ;MAClBC,UAAU,EAAE;IACd,CAAE;IACFC,eAAe,EAAE;MACfF,QAAQ,EAAE,KAAK;MACfC,UAAU,EAAE;IACd,CAAE;IACFE,mBAAmB;IACnBC,gBAAgB;EAAA,GACZX,KAAK,gBAETrB,MAAA,YAAAuB,aAAA,CAACT,gBAAgB,QAAEM,QAA2B,CAClC,CAAC;AAAA,CAChB;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEahB,YAAY","ignoreList":[]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.RawDoneButton = exports.DoneButton = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
10
|
-
var _Check = _interopRequireDefault(require("@mui/icons-material/Check"));
|
|
11
|
-
var _styles = require("@mui/material/styles");
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
var StyledIconButton = (0, _styles.styled)(_IconButton["default"])({
|
|
14
|
-
verticalAlign: 'top',
|
|
15
|
-
width: '28px',
|
|
16
|
-
height: '28px',
|
|
17
|
-
color: 'var(--editable-html-toolbar-check, #00bb00)',
|
|
18
|
-
padding: '4px'
|
|
19
|
-
});
|
|
20
|
-
var RawDoneButton = exports.RawDoneButton = function RawDoneButton(_ref) {
|
|
21
|
-
var onClick = _ref.onClick,
|
|
22
|
-
doneButtonRef = _ref.doneButtonRef;
|
|
23
|
-
return /*#__PURE__*/_react["default"].createElement(StyledIconButton, {
|
|
24
|
-
"aria-label": "Done",
|
|
25
|
-
buttonRef: doneButtonRef,
|
|
26
|
-
onClick: onClick
|
|
27
|
-
}, /*#__PURE__*/_react["default"].createElement(_Check["default"], null));
|
|
28
|
-
};
|
|
29
|
-
RawDoneButton.propTypes = {
|
|
30
|
-
onClick: _propTypes["default"].func,
|
|
31
|
-
doneButtonRef: _propTypes["default"].func
|
|
32
|
-
};
|
|
33
|
-
var DoneButton = exports.DoneButton = RawDoneButton;
|
|
34
|
-
//# sourceMappingURL=done-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"done-button.js","names":["_react","_interopRequireDefault","require","_IconButton","_Check","_styles","_propTypes","StyledIconButton","styled","IconButton","verticalAlign","width","height","color","padding","RawDoneButton","exports","_ref","onClick","doneButtonRef","createElement","buttonRef","propTypes","PropTypes","func","DoneButton"],"sources":["../../../src/components/common/done-button.jsx"],"sourcesContent":["import React from 'react';\n\nimport IconButton from '@mui/material/IconButton';\nimport Check from '@mui/icons-material/Check';\nimport { styled } from '@mui/material/styles';\nimport PropTypes from 'prop-types';\n\nconst StyledIconButton = styled(IconButton)({\n verticalAlign: 'top',\n width: '28px',\n height: '28px',\n color: 'var(--editable-html-toolbar-check, #00bb00)',\n padding: '4px',\n});\n\nexport const RawDoneButton = ({ onClick, doneButtonRef }) => (\n <StyledIconButton aria-label=\"Done\" buttonRef={doneButtonRef} onClick={onClick}>\n <Check />\n </StyledIconButton>\n);\n\nRawDoneButton.propTypes = {\n onClick: PropTypes.func,\n doneButtonRef: PropTypes.func,\n};\n\nexport const DoneButton = RawDoneButton;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAMK,gBAAgB,GAAG,IAAAC,cAAM,EAACC,sBAAU,CAAC,CAAC;EAC1CC,aAAa,EAAE,KAAK;EACpBC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,MAAM;EACdC,KAAK,EAAE,6CAA6C;EACpDC,OAAO,EAAE;AACX,CAAC,CAAC;AAEK,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAAE,IAAA;EAAA,IAAMC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,aAAa,GAAAF,IAAA,CAAbE,aAAa;EAAA,oBACpDnB,MAAA,YAAAoB,aAAA,CAACb,gBAAgB;IAAC,cAAW,MAAM;IAACc,SAAS,EAAEF,aAAc;IAACD,OAAO,EAAEA;EAAQ,gBAC7ElB,MAAA,YAAAoB,aAAA,CAAChB,MAAA,WAAK,MAAE,CACQ,CAAC;AAAA,CACpB;AAEDW,aAAa,CAACO,SAAS,GAAG;EACxBJ,OAAO,EAAEK,qBAAS,CAACC,IAAI;EACvBL,aAAa,EAAEI,qBAAS,CAACC;AAC3B,CAAC;AAEM,IAAMC,UAAU,GAAAT,OAAA,CAAAS,UAAA,GAAGV,aAAa","ignoreList":[]}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.RawMarkButton = exports.RawButton = exports.MarkButton = exports.Button = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _debug = _interopRequireDefault(require("debug"));
|
|
16
|
-
var _styles = require("@mui/material/styles");
|
|
17
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
18
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
19
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
-
var StyledButton = (0, _styles.styled)('button', {
|
|
23
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
24
|
-
return !['active', 'disabled', 'extraStyles'].includes(prop);
|
|
25
|
-
}
|
|
26
|
-
})(function (_ref) {
|
|
27
|
-
var theme = _ref.theme,
|
|
28
|
-
active = _ref.active,
|
|
29
|
-
disabled = _ref.disabled;
|
|
30
|
-
return _objectSpread({
|
|
31
|
-
color: active ? 'black' : 'grey',
|
|
32
|
-
display: 'inline-flex',
|
|
33
|
-
padding: '2px',
|
|
34
|
-
background: 'none',
|
|
35
|
-
border: 'none',
|
|
36
|
-
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
37
|
-
'&:hover': {
|
|
38
|
-
color: disabled ? 'grey' : 'black'
|
|
39
|
-
},
|
|
40
|
-
'&:focus': {
|
|
41
|
-
outline: "2px solid ".concat(theme.palette.grey[700])
|
|
42
|
-
}
|
|
43
|
-
}, disabled && {
|
|
44
|
-
opacity: 0.7
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
var log = (0, _debug["default"])('pie-elements:editable-html:raw-button');
|
|
48
|
-
var RawButton = exports.RawButton = /*#__PURE__*/function (_React$Component) {
|
|
49
|
-
function RawButton(props) {
|
|
50
|
-
var _this;
|
|
51
|
-
(0, _classCallCheck2["default"])(this, RawButton);
|
|
52
|
-
_this = _callSuper(this, RawButton, [props]);
|
|
53
|
-
(0, _defineProperty2["default"])(_this, "onClick", function (e) {
|
|
54
|
-
log('[onClick]');
|
|
55
|
-
e.preventDefault();
|
|
56
|
-
var onClick = _this.props.onClick;
|
|
57
|
-
onClick(e);
|
|
58
|
-
});
|
|
59
|
-
(0, _defineProperty2["default"])(_this, "onKeyDown", function (e) {
|
|
60
|
-
if (e.key === 'Enter' || e.key === ' ') {
|
|
61
|
-
log('[onKeyDown]');
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
var onClick = _this.props.onClick;
|
|
64
|
-
onClick(e);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
(0, _inherits2["default"])(RawButton, _React$Component);
|
|
70
|
-
return (0, _createClass2["default"])(RawButton, [{
|
|
71
|
-
key: "render",
|
|
72
|
-
value: function render() {
|
|
73
|
-
var _this$props = this.props,
|
|
74
|
-
active = _this$props.active,
|
|
75
|
-
children = _this$props.children,
|
|
76
|
-
disabled = _this$props.disabled,
|
|
77
|
-
extraStyles = _this$props.extraStyles,
|
|
78
|
-
ariaLabel = _this$props.ariaLabel;
|
|
79
|
-
return /*#__PURE__*/_react["default"].createElement(StyledButton, {
|
|
80
|
-
style: extraStyles,
|
|
81
|
-
active: active,
|
|
82
|
-
disabled: disabled,
|
|
83
|
-
onMouseDown: this.onClick,
|
|
84
|
-
onKeyDown: this.onKeyDown,
|
|
85
|
-
"aria-label": ariaLabel,
|
|
86
|
-
"aria-pressed": active,
|
|
87
|
-
tabIndex: 0
|
|
88
|
-
}, children);
|
|
89
|
-
}
|
|
90
|
-
}]);
|
|
91
|
-
}(_react["default"].Component);
|
|
92
|
-
(0, _defineProperty2["default"])(RawButton, "propTypes", {
|
|
93
|
-
onClick: _propTypes["default"].func.isRequired,
|
|
94
|
-
children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired,
|
|
95
|
-
active: _propTypes["default"].bool,
|
|
96
|
-
disabled: _propTypes["default"].bool,
|
|
97
|
-
extraStyles: _propTypes["default"].object
|
|
98
|
-
});
|
|
99
|
-
var Button = exports.Button = RawButton;
|
|
100
|
-
var RawMarkButton = exports.RawMarkButton = /*#__PURE__*/function (_React$Component2) {
|
|
101
|
-
function RawMarkButton(props) {
|
|
102
|
-
var _this2;
|
|
103
|
-
(0, _classCallCheck2["default"])(this, RawMarkButton);
|
|
104
|
-
_this2 = _callSuper(this, RawMarkButton, [props]);
|
|
105
|
-
(0, _defineProperty2["default"])(_this2, "onToggle", function (e) {
|
|
106
|
-
e.preventDefault();
|
|
107
|
-
_this2.props.onToggle(_this2.props.mark);
|
|
108
|
-
});
|
|
109
|
-
(0, _defineProperty2["default"])(_this2, "onKeyDown", function (e) {
|
|
110
|
-
if (e.key === 'Enter' || e.key === ' ') {
|
|
111
|
-
e.preventDefault();
|
|
112
|
-
_this2.props.onToggle(_this2.props.mark);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
return _this2;
|
|
116
|
-
}
|
|
117
|
-
(0, _inherits2["default"])(RawMarkButton, _React$Component2);
|
|
118
|
-
return (0, _createClass2["default"])(RawMarkButton, [{
|
|
119
|
-
key: "render",
|
|
120
|
-
value: function render() {
|
|
121
|
-
var _this$props2 = this.props,
|
|
122
|
-
children = _this$props2.children,
|
|
123
|
-
active = _this$props2.active,
|
|
124
|
-
label = _this$props2.label;
|
|
125
|
-
return /*#__PURE__*/_react["default"].createElement(StyledButton, {
|
|
126
|
-
active: active,
|
|
127
|
-
onMouseDown: this.onToggle,
|
|
128
|
-
"aria-pressed": active,
|
|
129
|
-
onKeyDown: this.onKeyDown,
|
|
130
|
-
"aria-label": label,
|
|
131
|
-
tabIndex: 0
|
|
132
|
-
}, children);
|
|
133
|
-
}
|
|
134
|
-
}]);
|
|
135
|
-
}(_react["default"].Component);
|
|
136
|
-
(0, _defineProperty2["default"])(RawMarkButton, "propTypes", {
|
|
137
|
-
onToggle: _propTypes["default"].func.isRequired,
|
|
138
|
-
mark: _propTypes["default"].string,
|
|
139
|
-
label: _propTypes["default"].string.isRequired,
|
|
140
|
-
children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired,
|
|
141
|
-
active: _propTypes["default"].bool
|
|
142
|
-
});
|
|
143
|
-
var MarkButton = exports.MarkButton = RawMarkButton;
|
|
144
|
-
//# sourceMappingURL=toolbar-buttons.js.map
|