@pie-lib/editable-html-tip-tap 2.1.2-next.29 → 2.1.2-next.30

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 (276) hide show
  1. package/dist/components/CharacterPicker.d.ts +31 -0
  2. package/dist/components/CharacterPicker.js +131 -0
  3. package/dist/components/EditableHtml.d.ts +11 -0
  4. package/dist/components/EditableHtml.js +291 -0
  5. package/dist/components/MenuBar.d.ts +11 -0
  6. package/dist/components/MenuBar.js +462 -0
  7. package/dist/components/TiptapContainer.d.ts +11 -0
  8. package/dist/components/TiptapContainer.js +154 -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 +91 -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 +32 -0
  23. package/dist/components/icons/TextAlign.d.ts +18 -0
  24. package/dist/components/icons/TextAlign.js +134 -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 +32 -0
  30. package/dist/components/image/InsertImageHandler.js +53 -0
  31. package/dist/components/media/MediaDialog.d.ts +43 -0
  32. package/dist/components/media/MediaDialog.js +389 -0
  33. package/dist/components/media/MediaToolbar.d.ts +19 -0
  34. package/dist/components/media/MediaToolbar.js +41 -0
  35. package/dist/components/media/MediaWrapper.d.ts +19 -0
  36. package/dist/components/respArea/DragInTheBlank/DragInTheBlank.d.ts +23 -0
  37. package/dist/components/respArea/DragInTheBlank/DragInTheBlank.js +58 -0
  38. package/dist/components/respArea/DragInTheBlank/choice.d.ts +56 -0
  39. package/dist/components/respArea/DragInTheBlank/choice.js +156 -0
  40. package/dist/components/respArea/ExplicitConstructedResponse.d.ts +20 -0
  41. package/dist/components/respArea/ExplicitConstructedResponse.js +83 -0
  42. package/dist/components/respArea/InlineDropdown.d.ts +18 -0
  43. package/dist/components/respArea/InlineDropdown.js +119 -0
  44. package/dist/components/respArea/MathTemplated.d.ts +19 -0
  45. package/dist/components/respArea/MathTemplated.js +97 -0
  46. package/dist/components/respArea/ToolbarIcon.d.ts +14 -0
  47. package/dist/components/respArea/ToolbarIcon.js +17 -0
  48. package/dist/components/respArea/inlineDropdownUtils.d.ts +15 -0
  49. package/dist/components/respArea/inlineDropdownUtils.js +15 -0
  50. package/dist/constants.d.ts +13 -0
  51. package/dist/constants.js +4 -0
  52. package/dist/extensions/css.d.ts +11 -0
  53. package/dist/extensions/css.js +115 -0
  54. package/dist/extensions/custom-toolbar-wrapper.d.ts +11 -0
  55. package/dist/extensions/custom-toolbar-wrapper.js +61 -0
  56. package/dist/extensions/div-node.d.ts +10 -0
  57. package/dist/extensions/div-node.js +42 -0
  58. package/dist/extensions/ensure-empty-root-div.d.ts +14 -0
  59. package/dist/extensions/ensure-empty-root-div.js +24 -0
  60. package/dist/extensions/ensure-list-item-content-is-div.d.ts +15 -0
  61. package/dist/extensions/ensure-list-item-content-is-div.js +31 -0
  62. package/dist/extensions/extended-list-item.d.ts +13 -0
  63. package/dist/extensions/extended-list-item.js +5 -0
  64. package/dist/extensions/extended-table-cell.d.ts +10 -0
  65. package/dist/extensions/extended-table-cell.js +6 -0
  66. package/dist/extensions/extended-table.d.ts +17 -0
  67. package/dist/extensions/extended-table.js +34 -0
  68. package/dist/extensions/heading-paragraph.d.ts +17 -0
  69. package/dist/extensions/heading-paragraph.js +30 -0
  70. package/dist/extensions/image-component.d.ts +22 -0
  71. package/dist/extensions/image-component.js +220 -0
  72. package/dist/extensions/image.d.ts +10 -0
  73. package/dist/extensions/image.js +68 -0
  74. package/dist/extensions/index.d.ts +16 -0
  75. package/dist/extensions/index.js +64 -0
  76. package/dist/extensions/math.d.ts +15 -0
  77. package/dist/extensions/math.js +158 -0
  78. package/dist/extensions/media.d.ts +19 -0
  79. package/dist/extensions/media.js +149 -0
  80. package/dist/extensions/responseArea.d.ts +27 -0
  81. package/dist/extensions/responseArea.js +259 -0
  82. package/dist/index.d.ts +13 -0
  83. package/dist/index.js +7 -0
  84. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
  85. package/dist/styles/editorContainerStyles.d.ts +134 -0
  86. package/dist/theme.d.ts +9 -0
  87. package/dist/utils/helper.d.ts +9 -0
  88. package/dist/utils/helper.js +27 -0
  89. package/dist/utils/size.d.ts +9 -0
  90. package/dist/utils/size.js +14 -0
  91. package/package.json +40 -24
  92. package/CHANGELOG.json +0 -32
  93. package/CHANGELOG.md +0 -2532
  94. package/LICENSE.md +0 -5
  95. package/lib/components/CharacterPicker.js +0 -201
  96. package/lib/components/CharacterPicker.js.map +0 -1
  97. package/lib/components/EditableHtml.js +0 -376
  98. package/lib/components/EditableHtml.js.map +0 -1
  99. package/lib/components/MenuBar.js +0 -696
  100. package/lib/components/MenuBar.js.map +0 -1
  101. package/lib/components/TiptapContainer.js +0 -234
  102. package/lib/components/TiptapContainer.js.map +0 -1
  103. package/lib/components/characters/characterUtils.js +0 -378
  104. package/lib/components/characters/characterUtils.js.map +0 -1
  105. package/lib/components/characters/custom-popper.js +0 -44
  106. package/lib/components/characters/custom-popper.js.map +0 -1
  107. package/lib/components/common/done-button.js +0 -34
  108. package/lib/components/common/done-button.js.map +0 -1
  109. package/lib/components/common/toolbar-buttons.js +0 -144
  110. package/lib/components/common/toolbar-buttons.js.map +0 -1
  111. package/lib/components/icons/CssIcon.js +0 -25
  112. package/lib/components/icons/CssIcon.js.map +0 -1
  113. package/lib/components/icons/RespArea.js +0 -72
  114. package/lib/components/icons/RespArea.js.map +0 -1
  115. package/lib/components/icons/TableIcons.js +0 -53
  116. package/lib/components/icons/TableIcons.js.map +0 -1
  117. package/lib/components/icons/TextAlign.js +0 -157
  118. package/lib/components/icons/TextAlign.js.map +0 -1
  119. package/lib/components/image/AltDialog.js +0 -98
  120. package/lib/components/image/AltDialog.js.map +0 -1
  121. package/lib/components/image/ImageToolbar.js +0 -137
  122. package/lib/components/image/ImageToolbar.js.map +0 -1
  123. package/lib/components/image/InsertImageHandler.js +0 -135
  124. package/lib/components/image/InsertImageHandler.js.map +0 -1
  125. package/lib/components/media/MediaDialog.js +0 -594
  126. package/lib/components/media/MediaDialog.js.map +0 -1
  127. package/lib/components/media/MediaToolbar.js +0 -74
  128. package/lib/components/media/MediaToolbar.js.map +0 -1
  129. package/lib/components/media/MediaWrapper.js +0 -67
  130. package/lib/components/media/MediaWrapper.js.map +0 -1
  131. package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js +0 -84
  132. package/lib/components/respArea/DragInTheBlank/DragInTheBlank.js.map +0 -1
  133. package/lib/components/respArea/DragInTheBlank/choice.js +0 -250
  134. package/lib/components/respArea/DragInTheBlank/choice.js.map +0 -1
  135. package/lib/components/respArea/ExplicitConstructedResponse.js +0 -136
  136. package/lib/components/respArea/ExplicitConstructedResponse.js.map +0 -1
  137. package/lib/components/respArea/InlineDropdown.js +0 -209
  138. package/lib/components/respArea/InlineDropdown.js.map +0 -1
  139. package/lib/components/respArea/MathTemplated.js +0 -130
  140. package/lib/components/respArea/MathTemplated.js.map +0 -1
  141. package/lib/components/respArea/ToolbarIcon.js +0 -81
  142. package/lib/components/respArea/ToolbarIcon.js.map +0 -1
  143. package/lib/components/respArea/inlineDropdownUtils.js +0 -67
  144. package/lib/components/respArea/inlineDropdownUtils.js.map +0 -1
  145. package/lib/constants.js +0 -11
  146. package/lib/constants.js.map +0 -1
  147. package/lib/extensions/css.js +0 -217
  148. package/lib/extensions/css.js.map +0 -1
  149. package/lib/extensions/custom-toolbar-wrapper.js +0 -92
  150. package/lib/extensions/custom-toolbar-wrapper.js.map +0 -1
  151. package/lib/extensions/div-node.js +0 -83
  152. package/lib/extensions/div-node.js.map +0 -1
  153. package/lib/extensions/ensure-empty-root-div.js +0 -48
  154. package/lib/extensions/ensure-empty-root-div.js.map +0 -1
  155. package/lib/extensions/ensure-list-item-content-is-div.js +0 -64
  156. package/lib/extensions/ensure-list-item-content-is-div.js.map +0 -1
  157. package/lib/extensions/extended-list-item.js +0 -15
  158. package/lib/extensions/extended-list-item.js.map +0 -1
  159. package/lib/extensions/extended-table-cell.js +0 -22
  160. package/lib/extensions/extended-table-cell.js.map +0 -1
  161. package/lib/extensions/extended-table.js +0 -75
  162. package/lib/extensions/extended-table.js.map +0 -1
  163. package/lib/extensions/heading-paragraph.js +0 -61
  164. package/lib/extensions/heading-paragraph.js.map +0 -1
  165. package/lib/extensions/image-component.js +0 -348
  166. package/lib/extensions/image-component.js.map +0 -1
  167. package/lib/extensions/image.js +0 -134
  168. package/lib/extensions/image.js.map +0 -1
  169. package/lib/extensions/index.js +0 -46
  170. package/lib/extensions/index.js.map +0 -1
  171. package/lib/extensions/math.js +0 -342
  172. package/lib/extensions/math.js.map +0 -1
  173. package/lib/extensions/media.js +0 -243
  174. package/lib/extensions/media.js.map +0 -1
  175. package/lib/extensions/responseArea.js +0 -446
  176. package/lib/extensions/responseArea.js.map +0 -1
  177. package/lib/index.js +0 -37
  178. package/lib/index.js.map +0 -1
  179. package/lib/styles/editorContainerStyles.js +0 -137
  180. package/lib/styles/editorContainerStyles.js.map +0 -1
  181. package/lib/theme.js +0 -8
  182. package/lib/theme.js.map +0 -1
  183. package/lib/utils/helper.js +0 -73
  184. package/lib/utils/helper.js.map +0 -1
  185. package/lib/utils/size.js +0 -26
  186. package/lib/utils/size.js.map +0 -1
  187. package/src/__tests__/EditableHtml.test.jsx +0 -554
  188. package/src/__tests__/constants.test.js +0 -19
  189. package/src/__tests__/div-to-paragraph-conversion.test.jsx +0 -125
  190. package/src/__tests__/extensions.test.js +0 -208
  191. package/src/__tests__/index.test.jsx +0 -154
  192. package/src/__tests__/size-utils.test.js +0 -64
  193. package/src/__tests__/theme.test.js +0 -17
  194. package/src/components/CharacterPicker.jsx +0 -207
  195. package/src/components/EditableHtml.jsx +0 -440
  196. package/src/components/MenuBar.jsx +0 -554
  197. package/src/components/TiptapContainer.jsx +0 -219
  198. package/src/components/__tests__/AltDialog.test.jsx +0 -147
  199. package/src/components/__tests__/CharacterPicker.test.jsx +0 -261
  200. package/src/components/__tests__/CssIcon.test.jsx +0 -46
  201. package/src/components/__tests__/DragInTheBlank.test.jsx +0 -255
  202. package/src/components/__tests__/ExplicitConstructedResponse.test.jsx +0 -204
  203. package/src/components/__tests__/ImageToolbar.test.jsx +0 -128
  204. package/src/components/__tests__/InlineDropdown.test.jsx +0 -388
  205. package/src/components/__tests__/InsertImageHandler.test.js +0 -161
  206. package/src/components/__tests__/MediaDialog.test.jsx +0 -293
  207. package/src/components/__tests__/MediaToolbar.test.jsx +0 -74
  208. package/src/components/__tests__/MediaWrapper.test.jsx +0 -81
  209. package/src/components/__tests__/MenuBar.test.jsx +0 -250
  210. package/src/components/__tests__/RespArea.test.jsx +0 -122
  211. package/src/components/__tests__/TableIcons.test.jsx +0 -149
  212. package/src/components/__tests__/TextAlign.test.jsx +0 -167
  213. package/src/components/__tests__/TiptapContainer.test.jsx +0 -138
  214. package/src/components/__tests__/characterUtils.test.js +0 -166
  215. package/src/components/__tests__/choice.test.jsx +0 -171
  216. package/src/components/__tests__/custom-popper.test.jsx +0 -82
  217. package/src/components/__tests__/done-button.test.jsx +0 -54
  218. package/src/components/__tests__/toolbar-buttons.test.jsx +0 -234
  219. package/src/components/characters/characterUtils.js +0 -447
  220. package/src/components/characters/custom-popper.js +0 -38
  221. package/src/components/common/done-button.jsx +0 -27
  222. package/src/components/common/toolbar-buttons.jsx +0 -122
  223. package/src/components/icons/CssIcon.jsx +0 -15
  224. package/src/components/icons/RespArea.jsx +0 -71
  225. package/src/components/icons/TableIcons.jsx +0 -52
  226. package/src/components/icons/TextAlign.jsx +0 -114
  227. package/src/components/image/AltDialog.jsx +0 -82
  228. package/src/components/image/ImageToolbar.jsx +0 -99
  229. package/src/components/image/InsertImageHandler.js +0 -107
  230. package/src/components/media/MediaDialog.jsx +0 -596
  231. package/src/components/media/MediaToolbar.jsx +0 -49
  232. package/src/components/media/MediaWrapper.jsx +0 -39
  233. package/src/components/respArea/DragInTheBlank/DragInTheBlank.jsx +0 -76
  234. package/src/components/respArea/DragInTheBlank/choice.jsx +0 -256
  235. package/src/components/respArea/ExplicitConstructedResponse.jsx +0 -135
  236. package/src/components/respArea/InlineDropdown.jsx +0 -220
  237. package/src/components/respArea/MathTemplated.jsx +0 -124
  238. package/src/components/respArea/ToolbarIcon.jsx +0 -66
  239. package/src/components/respArea/__tests__/MathTemplated.test.jsx +0 -210
  240. package/src/components/respArea/inlineDropdownUtils.js +0 -79
  241. package/src/constants.js +0 -5
  242. package/src/extensions/__tests__/css.test.js +0 -196
  243. package/src/extensions/__tests__/custom-toolbar-wrapper.test.jsx +0 -180
  244. package/src/extensions/__tests__/divNode.test.js +0 -87
  245. package/src/extensions/__tests__/ensure-empty-root-div.test.js +0 -57
  246. package/src/extensions/__tests__/ensure-list-item-content-is-div.test.js +0 -44
  247. package/src/extensions/__tests__/extended-list-item.test.js +0 -13
  248. package/src/extensions/__tests__/extended-table-cell.test.js +0 -22
  249. package/src/extensions/__tests__/extended-table.test.js +0 -183
  250. package/src/extensions/__tests__/image-component.test.jsx +0 -345
  251. package/src/extensions/__tests__/image.test.js +0 -237
  252. package/src/extensions/__tests__/math.test.js +0 -603
  253. package/src/extensions/__tests__/media-node-view.test.jsx +0 -298
  254. package/src/extensions/__tests__/media.test.js +0 -271
  255. package/src/extensions/__tests__/responseArea.test.js +0 -601
  256. package/src/extensions/css.js +0 -220
  257. package/src/extensions/custom-toolbar-wrapper.jsx +0 -78
  258. package/src/extensions/div-node.js +0 -86
  259. package/src/extensions/ensure-empty-root-div.js +0 -47
  260. package/src/extensions/ensure-list-item-content-is-div.js +0 -62
  261. package/src/extensions/extended-list-item.js +0 -10
  262. package/src/extensions/extended-table-cell.js +0 -19
  263. package/src/extensions/extended-table.js +0 -60
  264. package/src/extensions/heading-paragraph.js +0 -53
  265. package/src/extensions/image-component.jsx +0 -338
  266. package/src/extensions/image.js +0 -109
  267. package/src/extensions/index.js +0 -81
  268. package/src/extensions/math.js +0 -326
  269. package/src/extensions/media.js +0 -188
  270. package/src/extensions/responseArea.js +0 -401
  271. package/src/index.jsx +0 -5
  272. package/src/styles/editorContainerStyles.js +0 -145
  273. package/src/theme.js +0 -1
  274. package/src/utils/__tests__/helper.test.js +0 -126
  275. package/src/utils/helper.js +0 -69
  276. package/src/utils/size.js +0 -32
@@ -0,0 +1,14 @@
1
+ import "react";
2
+ import { styled as e } from "@mui/material/styles";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ //#region src/components/icons/CssIcon.tsx
5
+ var n = e("div")(({ theme: e }) => ({
6
+ fontFamily: "Cerebri Sans, Arial, sans-serif",
7
+ fontSize: e.typography.fontSize,
8
+ fontWeight: "bold",
9
+ lineHeight: "14px",
10
+ position: "relative",
11
+ whiteSpace: "nowrap"
12
+ })), r = () => /* @__PURE__ */ t(n, { children: "CSS" });
13
+ //#endregion
14
+ export { r as default };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/icons/RespArea.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 const Chevron: {
12
+ (props: any): React.JSX.Element;
13
+ propTypes: {
14
+ direction: PropTypes.Requireable<string>;
15
+ style: PropTypes.Requireable<object>;
16
+ };
17
+ };
18
+ export declare const GripIcon: {
19
+ ({ style }: {
20
+ style: any;
21
+ }): React.JSX.Element;
22
+ propTypes: {
23
+ style: PropTypes.Requireable<object>;
24
+ };
25
+ };
26
+ export declare const ToolbarIcon: () => React.JSX.Element;
@@ -0,0 +1,42 @@
1
+ import "react";
2
+ import { styled as e } from "@mui/material/styles";
3
+ import t from "prop-types";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ import i from "@mui/icons-material/ChevronRight";
6
+ import a from "@mui/icons-material/MoreVert";
7
+ //#region src/components/icons/RespArea.tsx
8
+ var o = (e) => {
9
+ switch (e) {
10
+ case "down": return 90;
11
+ case "up": return -90;
12
+ case "left": return 180;
13
+ default: return 0;
14
+ }
15
+ }, s = (e) => {
16
+ let { direction: t, style: r } = e;
17
+ return /* @__PURE__ */ n(i, { style: {
18
+ transform: `rotate(${o(t)}deg)`,
19
+ ...r
20
+ } });
21
+ };
22
+ s.propTypes = {
23
+ direction: t.string,
24
+ style: t.object
25
+ };
26
+ var c = ({ style: e }) => /* @__PURE__ */ r("span", {
27
+ style: e,
28
+ children: [/* @__PURE__ */ n(a, { style: { margin: "0 -16px" } }), /* @__PURE__ */ n(a, {})]
29
+ });
30
+ c.propTypes = { style: t.object }, e("div")(({ theme: e }) => ({
31
+ fontFamily: "Cerebri Sans !important",
32
+ fontSize: e.typography.fontSize,
33
+ fontWeight: "bold",
34
+ lineHeight: "14px",
35
+ position: "relative",
36
+ top: "7px",
37
+ width: "110px",
38
+ height: "28px",
39
+ whiteSpace: "nowrap"
40
+ }));
41
+ //#endregion
42
+ export { s as Chevron, c as GripIcon };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/icons/TableIcons.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
+ export declare const AddRow: (props: any) => React.JSX.Element;
11
+ export declare const RemoveRow: (props: any) => React.JSX.Element;
12
+ export declare const AddColumn: (props: any) => React.JSX.Element;
13
+ export declare const RemoveColumn: (props: any) => React.JSX.Element;
14
+ export declare const RemoveTable: (props: any) => React.JSX.Element;
@@ -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
+ //#region src/components/icons/TableIcons.tsx
5
+ var n = e("path")({
6
+ fill: "grey",
7
+ "&:hover": { fill: "black" }
8
+ }), r = (e) => (n) => /* @__PURE__ */ t("svg", {
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ version: "1.1",
11
+ width: "24",
12
+ height: "24",
13
+ viewBox: "0 0 24 24",
14
+ children: /* @__PURE__ */ t(e, { ...n })
15
+ }), i = r((e) => /* @__PURE__ */ t(n, {
16
+ ...e,
17
+ d: "M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z"
18
+ })), a = r((e) => /* @__PURE__ */ t(n, {
19
+ ...e,
20
+ d: "M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z"
21
+ })), o = r((e) => /* @__PURE__ */ t(n, {
22
+ ...e,
23
+ d: "M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z"
24
+ })), s = r((e) => /* @__PURE__ */ t(n, {
25
+ ...e,
26
+ d: "M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z"
27
+ })), c = r((e) => /* @__PURE__ */ t(n, {
28
+ ...e,
29
+ d: "M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z"
30
+ }));
31
+ //#endregion
32
+ export { o as AddColumn, i as AddRow, s as RemoveColumn, a as RemoveRow, c as RemoveTable };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/icons/TextAlign.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
+ export declare const AlignLeft: () => React.JSX.Element;
11
+ export declare const AlignRight: () => React.JSX.Element;
12
+ export declare const AlignCenter: () => React.JSX.Element;
13
+ export declare const AlignJustify: () => React.JSX.Element;
14
+ declare const _default: ({ editor, onChange }: {
15
+ editor: any;
16
+ onChange: any;
17
+ }) => React.JSX.Element;
18
+ export default _default;
@@ -0,0 +1,134 @@
1
+ import { useState as e } from "react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import r from "@mui/material/List";
4
+ import i from "@mui/material/ListItem";
5
+ import a from "@mui/material/Collapse";
6
+ //#region src/components/icons/TextAlign.tsx
7
+ var o = () => /* @__PURE__ */ t("svg", {
8
+ width: "20",
9
+ height: "20",
10
+ viewBox: "0 0 66 66",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ children: /* @__PURE__ */ t("path", {
14
+ d: "M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z",
15
+ fill: "currentColor"
16
+ })
17
+ }), s = () => /* @__PURE__ */ t("svg", {
18
+ width: "20",
19
+ height: "20",
20
+ viewBox: "0 0 66 66",
21
+ fill: "none",
22
+ xmlns: "http://www.w3.org/2000/svg",
23
+ children: /* @__PURE__ */ t("path", {
24
+ d: "M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z",
25
+ fill: "currentColor"
26
+ })
27
+ }), c = () => /* @__PURE__ */ t("svg", {
28
+ width: "20",
29
+ height: "20",
30
+ viewBox: "0 0 66 66",
31
+ fill: "none",
32
+ xmlns: "http://www.w3.org/2000/svg",
33
+ children: /* @__PURE__ */ t("path", {
34
+ d: "M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z",
35
+ fill: "currentColor"
36
+ })
37
+ }), l = () => /* @__PURE__ */ t("svg", {
38
+ width: "20",
39
+ height: "20",
40
+ viewBox: "0 0 66 66",
41
+ fill: "none",
42
+ xmlns: "http://www.w3.org/2000/svg",
43
+ children: /* @__PURE__ */ t("path", {
44
+ d: "M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z",
45
+ fill: "currentColor"
46
+ })
47
+ }), u = ({ editor: u, onChange: d }) => {
48
+ let [f, p] = e(!1), m;
49
+ switch (!0) {
50
+ case u.isActive({ textAlign: "right" }):
51
+ m = /* @__PURE__ */ t(s, {});
52
+ break;
53
+ case u.isActive({ textAlign: "center" }):
54
+ m = /* @__PURE__ */ t(c, {});
55
+ break;
56
+ case u.isActive({ textAlign: "justify" }):
57
+ m = /* @__PURE__ */ t(l, {});
58
+ break;
59
+ default:
60
+ m = /* @__PURE__ */ t(o, {});
61
+ break;
62
+ }
63
+ let h = (e) => {
64
+ let t = e.currentTarget?.getAttribute("value");
65
+ t && u.commands.setTextAlign(t), p(!1);
66
+ };
67
+ return /* @__PURE__ */ n("div", { children: [/* @__PURE__ */ n("div", {
68
+ style: {
69
+ display: "flex",
70
+ alignItems: "center"
71
+ },
72
+ onClick: (e) => {
73
+ e.preventDefault(), e.stopPropagation(), p(!f);
74
+ },
75
+ children: [m, /* @__PURE__ */ t("span", {
76
+ style: {
77
+ marginLeft: "5px",
78
+ fontSize: "8px"
79
+ },
80
+ children: "▼"
81
+ })]
82
+ }), /* @__PURE__ */ t(a, {
83
+ in: f,
84
+ timeout: "auto",
85
+ unmountOnExit: !0,
86
+ style: { position: "absolute" },
87
+ children: /* @__PURE__ */ n(r, {
88
+ component: "div",
89
+ disablePadding: !0,
90
+ style: {
91
+ background: "#fff",
92
+ display: "flex",
93
+ flexDirection: "row",
94
+ padding: 0
95
+ },
96
+ children: [
97
+ /* @__PURE__ */ t(i, {
98
+ button: !0,
99
+ type: "submit",
100
+ value: "left",
101
+ "aria-label": "Align text left",
102
+ onClick: h,
103
+ children: /* @__PURE__ */ t(o, {})
104
+ }),
105
+ /* @__PURE__ */ t(i, {
106
+ button: !0,
107
+ type: "submit",
108
+ value: "center",
109
+ "aria-label": "Align text center",
110
+ onClick: h,
111
+ children: /* @__PURE__ */ t(c, {})
112
+ }),
113
+ /* @__PURE__ */ t(i, {
114
+ button: !0,
115
+ type: "submit",
116
+ value: "right",
117
+ "aria-label": "Align text right",
118
+ onClick: h,
119
+ children: /* @__PURE__ */ t(s, {})
120
+ }),
121
+ /* @__PURE__ */ t(i, {
122
+ button: !0,
123
+ type: "submit",
124
+ value: "justify",
125
+ "aria-label": "Justify text",
126
+ onClick: h,
127
+ children: /* @__PURE__ */ t(l, {})
128
+ })
129
+ ]
130
+ })
131
+ })] });
132
+ };
133
+ //#endregion
134
+ export { u as default };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/image/AltDialog.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 AltDialog extends React.Component {
12
+ static propTypes: {
13
+ onDone: PropTypes.Validator<(...args: any[]) => any>;
14
+ alt: PropTypes.Requireable<string>;
15
+ };
16
+ constructor(props: any);
17
+ closeDialog: any;
18
+ onDone: any;
19
+ handleOverflow: any;
20
+ render(): React.JSX.Element;
21
+ }
22
+ export default AltDialog;
@@ -0,0 +1,61 @@
1
+ import e from "react";
2
+ import t from "prop-types";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import i from "@mui/material/DialogContent";
5
+ import a from "@mui/icons-material/ArrowBackIos";
6
+ import o from "@mui/material/TextField";
7
+ import s from "@mui/material/DialogActions";
8
+ import c from "@mui/material/Button";
9
+ import l from "@mui/material/Dialog";
10
+ //#region src/components/image/AltDialog.tsx
11
+ var u = class extends e.Component {
12
+ static propTypes = {
13
+ onDone: t.func.isRequired,
14
+ alt: t.string
15
+ };
16
+ constructor(e) {
17
+ super(e);
18
+ let { alt: t } = e;
19
+ this.state = { value: t };
20
+ }
21
+ closeDialog = () => {
22
+ document.querySelectorAll("#text-dialog").forEach(function(e) {
23
+ return e.remove();
24
+ });
25
+ };
26
+ onDone = () => {
27
+ let { onDone: e } = this.props, { value: t } = this.state;
28
+ e(t), this.closeDialog();
29
+ };
30
+ handleOverflow = () => {
31
+ document.body.style.removeProperty("overflow");
32
+ };
33
+ render() {
34
+ let { value: e } = this.state;
35
+ return /* @__PURE__ */ r(l, {
36
+ open: !0,
37
+ disablePortal: !0,
38
+ onClose: this.closeDialog,
39
+ id: "text-dialog",
40
+ hideBackdrop: !0,
41
+ disableScrollLock: !0,
42
+ onEntered: this.handleOverflow,
43
+ children: [/* @__PURE__ */ n(i, { children: /* @__PURE__ */ r("div", {
44
+ style: { display: "flex" },
45
+ children: [/* @__PURE__ */ n(a, { style: { paddingTop: "6px" } }), /* @__PURE__ */ n(o, {
46
+ multiline: !0,
47
+ placeholder: "Enter an Alt Text description of this image",
48
+ helperText: "Users with visual limitations rely on Alt Text, since screen readers cannot otherwise describe the contents of an image.",
49
+ value: e,
50
+ onChange: (e) => this.setState({ value: e.target.value }),
51
+ FormHelperTextProps: { style: { fontSize: 14 } }
52
+ })]
53
+ }) }), /* @__PURE__ */ n(s, { children: /* @__PURE__ */ n(c, {
54
+ onClick: this.onDone,
55
+ children: "Done"
56
+ }) })]
57
+ });
58
+ }
59
+ };
60
+ //#endregion
61
+ export { u as default };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/image/ImageToolbar.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
+ import React from 'react';
11
+ export declare class ImageToolbar extends React.Component {
12
+ static propTypes: {
13
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
14
+ alignment: PropTypes.Requireable<string>;
15
+ alt: PropTypes.Requireable<string>;
16
+ imageLoaded: PropTypes.Requireable<boolean>;
17
+ disableImageAlignmentButtons: PropTypes.Requireable<boolean>;
18
+ };
19
+ onAltTextDone: any;
20
+ onAlignmentClick: any;
21
+ renderDialog: any;
22
+ render(): React.JSX.Element;
23
+ }
24
+ export default ImageToolbar;
@@ -0,0 +1,80 @@
1
+ import e from "./AltDialog.js";
2
+ import { MarkButton as t } from "../common/toolbar-buttons.js";
3
+ import n from "react";
4
+ import { styled as r } from "@mui/material/styles";
5
+ import i from "react-dom";
6
+ import a from "prop-types";
7
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import l from "debug";
9
+ //#region src/components/image/ImageToolbar.tsx
10
+ var u = l("@pie-lib:editable-html:plugins:image:image-toolbar"), d = r("div")(({ theme: e }) => ({
11
+ paddingLeft: e.spacing.unit,
12
+ display: "flex",
13
+ alignItems: "center"
14
+ })), f = r("span", { shouldForwardProp: (e) => !["disabled", "hasAlignmentButtons"].includes(e) })(({ disabled: e, hasAlignmentButtons: t }) => ({
15
+ ...e && { opacity: .5 },
16
+ ...t && {
17
+ borderLeft: "1px solid grey",
18
+ paddingLeft: 8,
19
+ marginLeft: 4
20
+ }
21
+ })), p = ({ alignment: e, active: n, onClick: r }) => /* @__PURE__ */ s(t, {
22
+ active: n,
23
+ onToggle: () => r(e),
24
+ label: e,
25
+ children: e
26
+ });
27
+ p.propTypes = {
28
+ alignment: a.string.isRequired,
29
+ active: a.bool.isRequired,
30
+ onClick: a.func.isRequired
31
+ };
32
+ var m = class extends n.Component {
33
+ static propTypes = {
34
+ onChange: a.func.isRequired,
35
+ alignment: a.string,
36
+ alt: a.string,
37
+ imageLoaded: a.bool,
38
+ disableImageAlignmentButtons: a.bool
39
+ };
40
+ onAltTextDone = (e) => {
41
+ u("[onAltTextDone]: alt:", e), this.props.onChange({ alt: e }, !0);
42
+ };
43
+ onAlignmentClick = (e) => {
44
+ u("[onAlignmentClick]: alignment:", e), this.props.onChange({ alignment: e });
45
+ };
46
+ renderDialog = () => {
47
+ let { alt: t } = this.props, n = document.createElement("div"), r = /* @__PURE__ */ s(e, {
48
+ alt: t,
49
+ onDone: this.onAltTextDone
50
+ });
51
+ i.render(r, n), document.body.appendChild(n);
52
+ };
53
+ render() {
54
+ let { alignment: e, imageLoaded: t, disableImageAlignmentButtons: n } = this.props;
55
+ return /* @__PURE__ */ c(d, { children: [!n && /* @__PURE__ */ c(o, { children: [
56
+ /* @__PURE__ */ s(p, {
57
+ alignment: "left",
58
+ active: e === "left",
59
+ onClick: this.onAlignmentClick
60
+ }),
61
+ /* @__PURE__ */ s(p, {
62
+ alignment: "center",
63
+ active: e === "center",
64
+ onClick: this.onAlignmentClick
65
+ }),
66
+ /* @__PURE__ */ s(p, {
67
+ alignment: "right",
68
+ active: e === "right",
69
+ onClick: this.onAlignmentClick
70
+ })
71
+ ] }), /* @__PURE__ */ s(f, {
72
+ disabled: !t,
73
+ hasAlignmentButtons: !n,
74
+ onMouseDown: (e) => t && this.renderDialog(e),
75
+ children: "Alt text"
76
+ })] });
77
+ }
78
+ };
79
+ //#endregion
80
+ export { m as default };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/image/InsertImageHandler.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
+ /**
10
+ * Handles user selection, insertion (or cancellation) of an image into the editor.
11
+ * @param {Block} placeholderBlock - a block that has been added to the editor as a place holder for the image
12
+ * @param {Function} onFinish - a function to call if uploading fails or succeeds
13
+ * @param {Function} getValue - a function to return the value of the editor
14
+ * @param {Function} onChange - callback to notify changes applied by the handler
15
+ * @param {Boolean} isPasted - a boolean that keeps track if the file is pasted
16
+ */
17
+ declare class InsertImageHandler {
18
+ constructor(editor: any, nodeInfo: any, onFinish: any, isPasted?: boolean);
19
+ cancel(): void;
20
+ updateNode(newAttrs: any): void;
21
+ deleteNode(): void;
22
+ done(err: any, src: any): void;
23
+ /**
24
+ * Notify handler that the user chose a file - will create a change with a preview in the editor.
25
+ *
26
+ * @param {File} file - the file that the user chose using a file input.
27
+ */
28
+ fileChosen(file: any): void;
29
+ progress(percent: any, bytes: any, total: any): void;
30
+ getChosenFile(): any;
31
+ }
32
+ export default InsertImageHandler;
@@ -0,0 +1,53 @@
1
+ import e from "debug";
2
+ //#region src/components/image/InsertImageHandler.ts
3
+ var t = e("@pie-lib:editable-html:image:insert-image-handler"), n = class {
4
+ constructor(e, t, n, r = !1) {
5
+ this.editor = e, this.nodeInfo = t, this.node = t[0], this.nodePos = t[1], this.onFinish = n, this.isPasted = r, this.chosenFile = null;
6
+ }
7
+ cancel() {
8
+ t("insert cancelled");
9
+ try {
10
+ this.deleteNode(), this.onFinish(!1);
11
+ } catch {} finally {
12
+ this.editor._insertingImage = !1;
13
+ }
14
+ }
15
+ updateNode(e) {
16
+ let { state: t, view: n } = this.editor, { tr: r } = t, i = t.doc.nodeAt(this.nodePos);
17
+ if (i) {
18
+ let t = r.setNodeMarkup(this.nodePos, void 0, {
19
+ ...i.attrs,
20
+ ...e
21
+ });
22
+ n.dispatch(t);
23
+ }
24
+ }
25
+ deleteNode() {
26
+ let { state: e, view: t } = this.editor, { tr: n } = e, r = n.delete(this.nodePos, this.nodePos + this.node.nodeSize);
27
+ t.dispatch(r);
28
+ }
29
+ done(e, n) {
30
+ t("done: err:", e), e ? (console.log(e), this.onFinish(!1)) : (this.updateNode({
31
+ loaded: !0,
32
+ src: n,
33
+ percent: 100
34
+ }), this.onFinish(!0)), this.editor._insertingImage = !1;
35
+ }
36
+ fileChosen(e) {
37
+ if (!e) return;
38
+ this.chosenFile = e, this.editor._insertingImage = !1, t("[fileChosen] file: ", e);
39
+ let n = new FileReader();
40
+ n.onload = () => {
41
+ let e = n.result;
42
+ this.updateNode({ src: e });
43
+ }, n.readAsDataURL(e);
44
+ }
45
+ progress(e, n, r) {
46
+ t("progress: ", e, n, r), this.updateNode({ percent: e });
47
+ }
48
+ getChosenFile() {
49
+ return this.chosenFile;
50
+ }
51
+ };
52
+ //#endregion
53
+ export { n as default };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/editable-html-tip-tap/src/components/media/MediaDialog.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 MediaDialog extends React.Component {
12
+ static propTypes: {
13
+ open: PropTypes.Requireable<boolean>;
14
+ edit: PropTypes.Requireable<boolean>;
15
+ disablePortal: PropTypes.Requireable<boolean>;
16
+ handleClose: PropTypes.Requireable<(...args: any[]) => any>;
17
+ uploadSoundSupport: PropTypes.Requireable<PropTypes.InferProps<{
18
+ add: PropTypes.Requireable<(...args: any[]) => any>;
19
+ delete: PropTypes.Requireable<(...args: any[]) => any>;
20
+ }>>;
21
+ type: PropTypes.Requireable<string>;
22
+ src: PropTypes.Requireable<string>;
23
+ url: PropTypes.Requireable<string>;
24
+ urlToUse: PropTypes.Requireable<string>;
25
+ starts: PropTypes.Requireable<number>;
26
+ ends: PropTypes.Requireable<number>;
27
+ height: PropTypes.Requireable<number>;
28
+ width: PropTypes.Requireable<number>;
29
+ };
30
+ constructor(props: any);
31
+ componentDidMount(): void;
32
+ formatUrl: any;
33
+ handleStateChange: (newState: any) => void;
34
+ checkAudio: any;
35
+ checkVideo: any;
36
+ urlChange: any;
37
+ changeHandler: (type: any) => (e: any) => void;
38
+ handleDone: any;
39
+ handleUploadFile: (e: any) => Promise<void>;
40
+ handleRemoveFile: () => Promise<void>;
41
+ render(): React.JSX.Element;
42
+ }
43
+ export default MediaDialog;