@pie-lib/editable-html-tip-tap 2.2.0-beta.9 → 3.0.0-next.36

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 (238) hide show
  1. package/dist/components/CharacterPicker.d.ts +31 -0
  2. package/dist/components/CharacterPicker.js +141 -0
  3. package/dist/components/EditableHtml.d.ts +11 -0
  4. package/dist/components/EditableHtml.js +330 -0
  5. package/dist/components/MenuBar.d.ts +11 -0
  6. package/dist/components/MenuBar.js +531 -0
  7. package/dist/components/TiptapContainer.d.ts +11 -0
  8. package/dist/components/TiptapContainer.js +167 -0
  9. package/dist/components/characters/characterUtils.d.ts +35 -0
  10. package/dist/components/characters/characterUtils.js +465 -0
  11. package/dist/components/characters/custom-popper.d.ts +14 -0
  12. package/dist/components/characters/custom-popper.js +32 -0
  13. package/dist/components/common/done-button.d.ts +30 -0
  14. package/dist/components/common/done-button.js +26 -0
  15. package/dist/components/common/toolbar-buttons.d.ts +38 -0
  16. package/dist/components/common/toolbar-buttons.js +96 -0
  17. package/dist/components/icons/CssIcon.d.ts +11 -0
  18. package/dist/components/icons/CssIcon.js +14 -0
  19. package/dist/components/icons/RespArea.d.ts +26 -0
  20. package/dist/components/icons/RespArea.js +42 -0
  21. package/dist/components/icons/TableIcons.d.ts +14 -0
  22. package/dist/components/icons/TableIcons.js +34 -0
  23. package/dist/components/icons/TextAlign.d.ts +18 -0
  24. package/dist/components/icons/TextAlign.js +143 -0
  25. package/dist/components/image/AltDialog.d.ts +22 -0
  26. package/dist/components/image/AltDialog.js +61 -0
  27. package/dist/components/image/ImageToolbar.d.ts +24 -0
  28. package/dist/components/image/ImageToolbar.js +80 -0
  29. package/dist/components/image/InsertImageHandler.d.ts +33 -0
  30. package/dist/components/image/InsertImageHandler.js +65 -0
  31. package/dist/components/image/findImageNode.d.ts +3 -0
  32. package/dist/components/image/findImageNode.js +11 -0
  33. package/dist/components/media/MediaDialog.d.ts +43 -0
  34. package/dist/components/media/MediaDialog.js +389 -0
  35. package/dist/components/media/MediaToolbar.d.ts +19 -0
  36. package/dist/components/media/MediaToolbar.js +41 -0
  37. package/dist/components/media/MediaWrapper.d.ts +19 -0
  38. package/dist/components/respArea/DragInTheBlank/DragInTheBlank.d.ts +23 -0
  39. package/dist/components/respArea/DragInTheBlank/DragInTheBlank.js +58 -0
  40. package/dist/components/respArea/DragInTheBlank/choice.d.ts +56 -0
  41. package/dist/components/respArea/DragInTheBlank/choice.js +157 -0
  42. package/dist/components/respArea/ExplicitConstructedResponse.d.ts +20 -0
  43. package/dist/components/respArea/ExplicitConstructedResponse.js +84 -0
  44. package/dist/components/respArea/InlineDropdown.d.ts +18 -0
  45. package/dist/components/respArea/InlineDropdown.js +126 -0
  46. package/dist/components/respArea/MathTemplated.d.ts +19 -0
  47. package/dist/components/respArea/MathTemplated.js +98 -0
  48. package/dist/components/respArea/ToolbarIcon.d.ts +14 -0
  49. package/dist/components/respArea/ToolbarIcon.js +17 -0
  50. package/dist/components/respArea/inlineDropdownUtils.d.ts +15 -0
  51. package/dist/components/respArea/inlineDropdownUtils.js +15 -0
  52. package/dist/constants.d.ts +13 -0
  53. package/dist/constants.js +4 -0
  54. package/dist/extensions/css.d.ts +11 -0
  55. package/dist/extensions/css.js +120 -0
  56. package/dist/extensions/custom-toolbar-wrapper.d.ts +11 -0
  57. package/dist/extensions/custom-toolbar-wrapper.js +61 -0
  58. package/dist/extensions/div-node.d.ts +10 -0
  59. package/dist/extensions/div-node.js +42 -0
  60. package/dist/extensions/ensure-empty-root-div.d.ts +14 -0
  61. package/dist/extensions/ensure-empty-root-div.js +24 -0
  62. package/dist/extensions/ensure-list-item-content-is-div.d.ts +15 -0
  63. package/dist/extensions/ensure-list-item-content-is-div.js +31 -0
  64. package/dist/extensions/extended-list-item.d.ts +13 -0
  65. package/dist/extensions/extended-list-item.js +5 -0
  66. package/dist/extensions/extended-table-cell.d.ts +10 -0
  67. package/dist/extensions/extended-table-cell.js +6 -0
  68. package/dist/extensions/extended-table.d.ts +17 -0
  69. package/dist/extensions/extended-table.js +34 -0
  70. package/dist/extensions/heading-paragraph.d.ts +17 -0
  71. package/dist/extensions/heading-paragraph.js +30 -0
  72. package/dist/extensions/image-component.d.ts +22 -0
  73. package/dist/extensions/image-component.js +223 -0
  74. package/dist/extensions/image.d.ts +10 -0
  75. package/dist/extensions/image.js +77 -0
  76. package/dist/extensions/index.d.ts +16 -0
  77. package/dist/extensions/index.js +64 -0
  78. package/dist/extensions/math.d.ts +15 -0
  79. package/dist/extensions/math.js +213 -0
  80. package/dist/extensions/media.d.ts +19 -0
  81. package/dist/extensions/media.js +149 -0
  82. package/dist/extensions/responseArea.d.ts +27 -0
  83. package/dist/extensions/responseArea.js +255 -0
  84. package/dist/index.d.ts +13 -0
  85. package/dist/index.js +7 -0
  86. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
  87. package/dist/styles/editorContainerStyles.d.ts +134 -0
  88. package/dist/theme.d.ts +9 -0
  89. package/dist/utils/helper.d.ts +9 -0
  90. package/dist/utils/helper.js +27 -0
  91. package/dist/utils/size.d.ts +9 -0
  92. package/dist/utils/size.js +14 -0
  93. package/dist/utils/toolbar.d.ts +10 -0
  94. package/dist/utils/toolbar.js +7 -0
  95. package/package.json +56 -42
  96. package/CHANGELOG.json +0 -32
  97. package/CHANGELOG.md +0 -2532
  98. package/lib/components/CharacterPicker.js +0 -226
  99. package/lib/components/CharacterPicker.js.map +0 -1
  100. package/lib/components/EditableHtml.js +0 -388
  101. package/lib/components/EditableHtml.js.map +0 -1
  102. package/lib/components/MenuBar.js +0 -702
  103. package/lib/components/MenuBar.js.map +0 -1
  104. package/lib/components/TiptapContainer.js +0 -242
  105. package/lib/components/TiptapContainer.js.map +0 -1
  106. package/lib/components/characters/characterUtils.js +0 -378
  107. package/lib/components/characters/characterUtils.js.map +0 -1
  108. package/lib/components/characters/custom-popper.js +0 -44
  109. package/lib/components/characters/custom-popper.js.map +0 -1
  110. package/lib/components/common/done-button.js +0 -34
  111. package/lib/components/common/done-button.js.map +0 -1
  112. package/lib/components/common/toolbar-buttons.js +0 -149
  113. package/lib/components/common/toolbar-buttons.js.map +0 -1
  114. package/lib/components/icons/CssIcon.js +0 -25
  115. package/lib/components/icons/CssIcon.js.map +0 -1
  116. package/lib/components/icons/RespArea.js +0 -72
  117. package/lib/components/icons/RespArea.js.map +0 -1
  118. package/lib/components/icons/TableIcons.js +0 -53
  119. package/lib/components/icons/TableIcons.js.map +0 -1
  120. package/lib/components/icons/TextAlign.js +0 -157
  121. package/lib/components/icons/TextAlign.js.map +0 -1
  122. package/lib/components/image/AltDialog.js +0 -98
  123. package/lib/components/image/AltDialog.js.map +0 -1
  124. package/lib/components/image/ImageToolbar.js +0 -137
  125. package/lib/components/image/ImageToolbar.js.map +0 -1
  126. package/lib/components/image/InsertImageHandler.js +0 -135
  127. package/lib/components/image/InsertImageHandler.js.map +0 -1
  128. package/lib/components/media/MediaDialog.js +0 -594
  129. package/lib/components/media/MediaDialog.js.map +0 -1
  130. package/lib/components/media/MediaToolbar.js +0 -74
  131. package/lib/components/media/MediaToolbar.js.map +0 -1
  132. package/lib/components/media/MediaWrapper.js +0 -67
  133. package/lib/components/media/MediaWrapper.js.map +0 -1
  134. package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js +0 -84
  135. package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js.map +0 -1
  136. package/lib/components/respArea/DragInTheBlank/choice.js +0 -253
  137. package/lib/components/respArea/DragInTheBlank/choice.js.map +0 -1
  138. package/lib/components/respArea/ExplicitConstructedResponse.js +0 -137
  139. package/lib/components/respArea/ExplicitConstructedResponse.js.map +0 -1
  140. package/lib/components/respArea/InlineDropdown.js +0 -223
  141. package/lib/components/respArea/InlineDropdown.js.map +0 -1
  142. package/lib/components/respArea/MathTemplated.js +0 -130
  143. package/lib/components/respArea/MathTemplated.js.map +0 -1
  144. package/lib/components/respArea/ToolbarIcon.js +0 -81
  145. package/lib/components/respArea/ToolbarIcon.js.map +0 -1
  146. package/lib/components/respArea/inlineDropdownUtils.js +0 -67
  147. package/lib/components/respArea/inlineDropdownUtils.js.map +0 -1
  148. package/lib/constants.js +0 -11
  149. package/lib/constants.js.map +0 -1
  150. package/lib/extensions/css.js +0 -227
  151. package/lib/extensions/css.js.map +0 -1
  152. package/lib/extensions/custom-toolbar-wrapper.js +0 -92
  153. package/lib/extensions/custom-toolbar-wrapper.js.map +0 -1
  154. package/lib/extensions/div-node.js +0 -83
  155. package/lib/extensions/div-node.js.map +0 -1
  156. package/lib/extensions/ensure-empty-root-div.js +0 -48
  157. package/lib/extensions/ensure-empty-root-div.js.map +0 -1
  158. package/lib/extensions/ensure-list-item-content-is-div.js +0 -64
  159. package/lib/extensions/ensure-list-item-content-is-div.js.map +0 -1
  160. package/lib/extensions/extended-list-item.js +0 -15
  161. package/lib/extensions/extended-list-item.js.map +0 -1
  162. package/lib/extensions/extended-table-cell.js +0 -22
  163. package/lib/extensions/extended-table-cell.js.map +0 -1
  164. package/lib/extensions/extended-table.js +0 -75
  165. package/lib/extensions/extended-table.js.map +0 -1
  166. package/lib/extensions/heading-paragraph.js +0 -61
  167. package/lib/extensions/heading-paragraph.js.map +0 -1
  168. package/lib/extensions/image-component.js +0 -351
  169. package/lib/extensions/image-component.js.map +0 -1
  170. package/lib/extensions/image.js +0 -134
  171. package/lib/extensions/image.js.map +0 -1
  172. package/lib/extensions/index.js +0 -46
  173. package/lib/extensions/index.js.map +0 -1
  174. package/lib/extensions/math.js +0 -469
  175. package/lib/extensions/math.js.map +0 -1
  176. package/lib/extensions/media.js +0 -243
  177. package/lib/extensions/media.js.map +0 -1
  178. package/lib/extensions/responseArea.js +0 -452
  179. package/lib/extensions/responseArea.js.map +0 -1
  180. package/lib/index.js +0 -37
  181. package/lib/index.js.map +0 -1
  182. package/lib/styles/editorContainerStyles.js +0 -137
  183. package/lib/styles/editorContainerStyles.js.map +0 -1
  184. package/lib/theme.js +0 -8
  185. package/lib/theme.js.map +0 -1
  186. package/lib/utils/helper.js +0 -73
  187. package/lib/utils/helper.js.map +0 -1
  188. package/lib/utils/size.js +0 -26
  189. package/lib/utils/size.js.map +0 -1
  190. package/lib/utils/toolbar.js +0 -19
  191. package/lib/utils/toolbar.js.map +0 -1
  192. package/src/components/CharacterPicker.jsx +0 -237
  193. package/src/components/EditableHtml.jsx +0 -458
  194. package/src/components/MenuBar.jsx +0 -561
  195. package/src/components/TiptapContainer.jsx +0 -235
  196. package/src/components/characters/characterUtils.js +0 -447
  197. package/src/components/characters/custom-popper.js +0 -38
  198. package/src/components/common/done-button.jsx +0 -27
  199. package/src/components/common/toolbar-buttons.jsx +0 -127
  200. package/src/components/icons/CssIcon.jsx +0 -15
  201. package/src/components/icons/RespArea.jsx +0 -71
  202. package/src/components/icons/TableIcons.jsx +0 -52
  203. package/src/components/icons/TextAlign.jsx +0 -114
  204. package/src/components/image/AltDialog.jsx +0 -82
  205. package/src/components/image/ImageToolbar.jsx +0 -99
  206. package/src/components/image/InsertImageHandler.js +0 -107
  207. package/src/components/media/MediaDialog.jsx +0 -596
  208. package/src/components/media/MediaToolbar.jsx +0 -49
  209. package/src/components/media/MediaWrapper.jsx +0 -39
  210. package/src/components/respArea/DragInTheBlank/DragInTheBlank.jsx +0 -76
  211. package/src/components/respArea/DragInTheBlank/choice.jsx +0 -259
  212. package/src/components/respArea/ExplicitConstructedResponse.jsx +0 -136
  213. package/src/components/respArea/InlineDropdown.jsx +0 -240
  214. package/src/components/respArea/MathTemplated.jsx +0 -124
  215. package/src/components/respArea/ToolbarIcon.jsx +0 -66
  216. package/src/components/respArea/inlineDropdownUtils.js +0 -79
  217. package/src/constants.js +0 -5
  218. package/src/extensions/css.js +0 -233
  219. package/src/extensions/custom-toolbar-wrapper.jsx +0 -78
  220. package/src/extensions/div-node.js +0 -86
  221. package/src/extensions/ensure-empty-root-div.js +0 -47
  222. package/src/extensions/ensure-list-item-content-is-div.js +0 -62
  223. package/src/extensions/extended-list-item.js +0 -10
  224. package/src/extensions/extended-table-cell.js +0 -19
  225. package/src/extensions/extended-table.js +0 -60
  226. package/src/extensions/heading-paragraph.js +0 -53
  227. package/src/extensions/image-component.jsx +0 -340
  228. package/src/extensions/image.js +0 -109
  229. package/src/extensions/index.js +0 -81
  230. package/src/extensions/math.js +0 -454
  231. package/src/extensions/media.js +0 -188
  232. package/src/extensions/responseArea.js +0 -407
  233. package/src/index.jsx +0 -5
  234. package/src/styles/editorContainerStyles.js +0 -145
  235. package/src/theme.js +0 -1
  236. package/src/utils/helper.js +0 -69
  237. package/src/utils/size.js +0 -32
  238. package/src/utils/toolbar.js +0 -15
@@ -0,0 +1,167 @@
1
+ import { valueToSize as e } from "../utils/size.js";
2
+ import t from "./MenuBar.js";
3
+ import { useEffect as n, useMemo as r, useRef as i, useState as a } from "react";
4
+ import { styled as o } from "@mui/material/styles";
5
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
+ import { color as l } from "@pie-lib/render-ui";
7
+ //#region src/components/TiptapContainer.tsx
8
+ var u = o("div", { shouldForwardProp: (e) => !["noBorder", "error"].includes(e) })(({ theme: e, noBorder: t, error: n }) => ({
9
+ position: "relative",
10
+ padding: "0px",
11
+ border: t ? "none" : "1px solid #ccc",
12
+ borderRadius: "4px",
13
+ cursor: "text",
14
+ "& [data-slate-editor=\"true\"]": {
15
+ wordBreak: "break-word",
16
+ overflow: "visible",
17
+ maxHeight: "500px",
18
+ padding: "5px"
19
+ },
20
+ "&:first-child": { marginTop: 0 },
21
+ "& ul, & ol": {
22
+ padding: "0 1rem",
23
+ margin: "1.25rem 1rem 1.25rem 0.4rem"
24
+ },
25
+ "& ul li p, & ol li p": {
26
+ marginTop: "0.25em",
27
+ marginBottom: "0.25em"
28
+ },
29
+ "& h1, & h2, & h3, & h4, & h5, & h6": {
30
+ lineHeight: 1.1,
31
+ marginTop: "2.5rem",
32
+ textWrap: "pretty"
33
+ },
34
+ "& h1, & h2": {
35
+ marginTop: "3.5rem",
36
+ marginBottom: "1.5rem"
37
+ },
38
+ "& h1": { fontSize: "1.4rem" },
39
+ "& h2": { fontSize: "1.2rem" },
40
+ "& h3": { fontSize: "1.1rem" },
41
+ "& h4, & h5, & h6": { fontSize: "1rem" },
42
+ "& code": {
43
+ backgroundColor: "var(--purple-light)",
44
+ borderRadius: "0.4rem",
45
+ color: "var(--black)",
46
+ fontSize: "0.85rem",
47
+ padding: "0.25em 0.3em"
48
+ },
49
+ "& pre": {
50
+ background: "var(--black)",
51
+ borderRadius: "0.5rem",
52
+ color: "var(--white)",
53
+ fontFamily: "'JetBrainsMono', monospace",
54
+ margin: "1.5rem 0",
55
+ padding: "0.75rem 1rem",
56
+ "& code": {
57
+ background: "none",
58
+ color: "inherit",
59
+ fontSize: "0.8rem",
60
+ padding: 0
61
+ }
62
+ },
63
+ "& blockquote": {
64
+ background: "#f9f9f9",
65
+ borderLeft: "5px solid #ccc",
66
+ margin: "1.5em 10px",
67
+ padding: ".5em 10px"
68
+ },
69
+ "& p": { margin: "0" },
70
+ "& table": {
71
+ tableLayout: "fixed",
72
+ width: "100%",
73
+ borderCollapse: "collapse",
74
+ color: l.text(),
75
+ backgroundColor: l.background()
76
+ },
77
+ "& table:not([border=\"1\"]) tr": { borderTop: `1px solid ${l.tableGridLight()}` },
78
+ "& td, th": {
79
+ padding: ".6em 1em",
80
+ textAlign: "center"
81
+ },
82
+ "& table:not([border=\"1\"]) td, th": { border: `1px solid ${l.tableGridLight()}` },
83
+ ...n && { border: `2px solid ${e.palette.error.main} !important` }
84
+ })), d = o("div", { shouldForwardProp: (e) => !["disableScrollbar", "highlightShape"].includes(e) })(({ theme: e, disableScrollbar: t, highlightShape: n }) => ({
85
+ position: "relative",
86
+ padding: "0px",
87
+ overflowY: "auto",
88
+ color: l.text(),
89
+ backgroundColor: n ? e.palette.action.selected : l.background(),
90
+ ...t && {
91
+ "&::-webkit-scrollbar": { display: "none" },
92
+ scrollbarWidth: "none",
93
+ "-ms-overflow-style": "none"
94
+ }
95
+ })), f = o("div", { shouldForwardProp: (e) => e !== "noPadding" })(({ noPadding: e }) => ({ padding: e ? 0 : "10px 8px" }));
96
+ function p(o) {
97
+ let [l, p] = a(null), m = i(null), { editor: h, disabled: g, children: _, disableScrollbar: v, activePlugins: y, toolbarOpts: b, responseAreaProps: x, autoFocus: S, minWidth: C, width: w, maxWidth: T, minHeight: E, height: D, maxHeight: O, highlightShape: k, ref: A } = o;
98
+ n(() => {
99
+ h && m.current && (h._tiptapContainerEl = m.current);
100
+ }, [h, m.current]), n(() => {
101
+ h && S && Promise.resolve().then(() => {
102
+ h.commands.focus("end");
103
+ });
104
+ }, [h, S]), n(() => {
105
+ if (o.adjustWidthForLimit) {
106
+ let e = document.createElement("p");
107
+ e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.textContent = "W".repeat(o.charactersLimit);
108
+ let t = window.getComputedStyle(m.current);
109
+ [
110
+ "fontFamily",
111
+ "fontSize",
112
+ "fontWeight",
113
+ "fontStyle",
114
+ "letterSpacing",
115
+ "wordSpacing",
116
+ "textTransform",
117
+ "lineHeight"
118
+ ].forEach((n) => {
119
+ e.style[n] = t[n];
120
+ }), document.body.appendChild(e), p(`${e.offsetWidth + 27}px`), e.remove();
121
+ }
122
+ }, [o.adjustWidthForLimit, o.charactersLimit]);
123
+ let j = r(() => ({
124
+ width: e(l || w),
125
+ minWidth: e(C),
126
+ maxWidth: e(T),
127
+ height: e(D),
128
+ minHeight: e(E),
129
+ maxHeight: e(O)
130
+ }), [
131
+ l,
132
+ C,
133
+ w,
134
+ T,
135
+ E,
136
+ D,
137
+ O
138
+ ]);
139
+ return /* @__PURE__ */ c(u, {
140
+ noBorder: b && b.noBorder,
141
+ error: b && b.error,
142
+ className: o.className,
143
+ style: {
144
+ width: j.width,
145
+ minWidth: j.minWidth,
146
+ maxWidth: j.maxWidth
147
+ },
148
+ ref: m,
149
+ children: [/* @__PURE__ */ s(d, {
150
+ disableScrollbar: v,
151
+ highlightShape: k,
152
+ children: /* @__PURE__ */ s(f, {
153
+ noPadding: b && b.noPadding,
154
+ children: _
155
+ })
156
+ }), h && /* @__PURE__ */ s(t, {
157
+ editor: h,
158
+ responseAreaProps: x,
159
+ toolbarOpts: b,
160
+ activePlugins: y,
161
+ onChange: o.onChange,
162
+ autoWidthToolbar: o.autoWidthToolbar
163
+ })]
164
+ });
165
+ }
166
+ //#endregion
167
+ export { p as default };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/characters/characterUtils.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
+ export declare const spanishConfig: {
10
+ characters: string[][];
11
+ };
12
+ export declare const specialConfig: {
13
+ hasPreview: boolean;
14
+ characters: ({
15
+ unicode: string;
16
+ description: string;
17
+ write: string;
18
+ label: string;
19
+ extraProps?: undefined;
20
+ } | {
21
+ unicode: string;
22
+ description: string;
23
+ write: string;
24
+ label: string;
25
+ extraProps: {
26
+ style: {
27
+ gridRow: string;
28
+ };
29
+ };
30
+ })[][];
31
+ };
32
+ export declare const characterIcons: {
33
+ spanish: string;
34
+ special: string;
35
+ };
@@ -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
+ import React from 'react';
10
+ declare const CustomPopper: ({ children, ...props }: {
11
+ [x: string]: any;
12
+ children: any;
13
+ }) => React.JSX.Element;
14
+ export default CustomPopper;
@@ -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 };