@bendyline/squisq-editor-react 1.4.0 → 1.5.1

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 (446) hide show
  1. package/dist/DocumentSettingsDialog.d.ts +26 -0
  2. package/dist/DocumentSettingsDialog.d.ts.map +1 -0
  3. package/dist/DocumentSettingsDialog.js +115 -0
  4. package/dist/DocumentSettingsDialog.js.map +1 -0
  5. package/dist/EditorContext.d.ts +248 -4
  6. package/dist/EditorContext.d.ts.map +1 -1
  7. package/dist/EditorContext.js +248 -10
  8. package/dist/EditorContext.js.map +1 -1
  9. package/dist/EditorShell.d.ts +173 -4
  10. package/dist/EditorShell.d.ts.map +1 -1
  11. package/dist/EditorShell.js +110 -10
  12. package/dist/EditorShell.js.map +1 -1
  13. package/dist/EmojiPicker.d.ts +50 -0
  14. package/dist/EmojiPicker.d.ts.map +1 -0
  15. package/dist/EmojiPicker.js +182 -0
  16. package/dist/EmojiPicker.js.map +1 -0
  17. package/dist/ImageEditor.d.ts +68 -0
  18. package/dist/ImageEditor.d.ts.map +1 -0
  19. package/dist/ImageEditor.js +166 -0
  20. package/dist/ImageEditor.js.map +1 -0
  21. package/dist/ImageNodeView.d.ts +13 -1
  22. package/dist/ImageNodeView.d.ts.map +1 -1
  23. package/dist/ImageNodeView.js +172 -19
  24. package/dist/ImageNodeView.js.map +1 -1
  25. package/dist/ImageViewer.d.ts +26 -0
  26. package/dist/ImageViewer.d.ts.map +1 -0
  27. package/dist/ImageViewer.js +119 -0
  28. package/dist/ImageViewer.js.map +1 -0
  29. package/dist/InlineIcon.d.ts +17 -0
  30. package/dist/InlineIcon.d.ts.map +1 -0
  31. package/dist/InlineIcon.js +72 -0
  32. package/dist/InlineIcon.js.map +1 -0
  33. package/dist/InlinePreviewGutter.d.ts +52 -0
  34. package/dist/InlinePreviewGutter.d.ts.map +1 -0
  35. package/dist/InlinePreviewGutter.js +397 -0
  36. package/dist/InlinePreviewGutter.js.map +1 -0
  37. package/dist/LinkDialog.d.ts +43 -0
  38. package/dist/LinkDialog.d.ts.map +1 -0
  39. package/dist/LinkDialog.js +102 -0
  40. package/dist/LinkDialog.js.map +1 -0
  41. package/dist/MentionExtension.js +10 -7
  42. package/dist/MentionExtension.js.map +1 -1
  43. package/dist/OutlinePanel.d.ts +17 -0
  44. package/dist/OutlinePanel.d.ts.map +1 -0
  45. package/dist/OutlinePanel.js +167 -0
  46. package/dist/OutlinePanel.js.map +1 -0
  47. package/dist/PlainHtmlPreview.d.ts +50 -0
  48. package/dist/PlainHtmlPreview.d.ts.map +1 -0
  49. package/dist/PlainHtmlPreview.js +155 -0
  50. package/dist/PlainHtmlPreview.js.map +1 -0
  51. package/dist/PreviewControls.d.ts +15 -1
  52. package/dist/PreviewControls.d.ts.map +1 -1
  53. package/dist/PreviewControls.js +75 -18
  54. package/dist/PreviewControls.js.map +1 -1
  55. package/dist/PreviewPanel.d.ts +11 -10
  56. package/dist/PreviewPanel.d.ts.map +1 -1
  57. package/dist/PreviewPanel.js +20 -17
  58. package/dist/PreviewPanel.js.map +1 -1
  59. package/dist/RawEditor.d.ts.map +1 -1
  60. package/dist/RawEditor.js +198 -4
  61. package/dist/RawEditor.js.map +1 -1
  62. package/dist/RecorderEntry.d.ts +24 -0
  63. package/dist/RecorderEntry.d.ts.map +1 -0
  64. package/dist/RecorderEntry.js +139 -0
  65. package/dist/RecorderEntry.js.map +1 -0
  66. package/dist/TemplateAnnotation.d.ts.map +1 -1
  67. package/dist/TemplateAnnotation.js +32 -6
  68. package/dist/TemplateAnnotation.js.map +1 -1
  69. package/dist/TemplatePicker.d.ts +53 -0
  70. package/dist/TemplatePicker.d.ts.map +1 -0
  71. package/dist/TemplatePicker.js +388 -0
  72. package/dist/TemplatePicker.js.map +1 -0
  73. package/dist/ThemeCustomizerPanel.d.ts +32 -0
  74. package/dist/ThemeCustomizerPanel.d.ts.map +1 -0
  75. package/dist/ThemeCustomizerPanel.js +256 -0
  76. package/dist/ThemeCustomizerPanel.js.map +1 -0
  77. package/dist/ThemePicker.d.ts +33 -0
  78. package/dist/ThemePicker.d.ts.map +1 -0
  79. package/dist/ThemePicker.js +148 -0
  80. package/dist/ThemePicker.js.map +1 -0
  81. package/dist/Toolbar.d.ts.map +1 -1
  82. package/dist/Toolbar.js +508 -33
  83. package/dist/Toolbar.js.map +1 -1
  84. package/dist/VersionHistoryPanel.d.ts +14 -0
  85. package/dist/VersionHistoryPanel.d.ts.map +1 -0
  86. package/dist/VersionHistoryPanel.js +147 -0
  87. package/dist/VersionHistoryPanel.js.map +1 -0
  88. package/dist/ViewMenuPanel.d.ts +13 -0
  89. package/dist/ViewMenuPanel.d.ts.map +1 -0
  90. package/dist/ViewMenuPanel.js +58 -0
  91. package/dist/ViewMenuPanel.js.map +1 -0
  92. package/dist/WysiwygEditor.d.ts.map +1 -1
  93. package/dist/WysiwygEditor.js +198 -9
  94. package/dist/WysiwygEditor.js.map +1 -1
  95. package/dist/__tests__/detectMarkdown.test.js +0 -14
  96. package/dist/__tests__/detectMarkdown.test.js.map +1 -1
  97. package/dist/__tests__/documentSettingsDialog.test.d.ts +2 -0
  98. package/dist/__tests__/documentSettingsDialog.test.d.ts.map +1 -0
  99. package/dist/__tests__/documentSettingsDialog.test.js +132 -0
  100. package/dist/__tests__/documentSettingsDialog.test.js.map +1 -0
  101. package/dist/__tests__/emojiPicker.test.d.ts +2 -0
  102. package/dist/__tests__/emojiPicker.test.d.ts.map +1 -0
  103. package/dist/__tests__/emojiPicker.test.js +111 -0
  104. package/dist/__tests__/emojiPicker.test.js.map +1 -0
  105. package/dist/__tests__/fileKind.test.js +13 -0
  106. package/dist/__tests__/fileKind.test.js.map +1 -1
  107. package/dist/__tests__/imageEditAffordance.test.d.ts +2 -0
  108. package/dist/__tests__/imageEditAffordance.test.d.ts.map +1 -0
  109. package/dist/__tests__/imageEditAffordance.test.js +188 -0
  110. package/dist/__tests__/imageEditAffordance.test.js.map +1 -0
  111. package/dist/__tests__/imageEditorShell.test.d.ts +2 -0
  112. package/dist/__tests__/imageEditorShell.test.d.ts.map +1 -0
  113. package/dist/__tests__/imageEditorShell.test.js +52 -0
  114. package/dist/__tests__/imageEditorShell.test.js.map +1 -0
  115. package/dist/__tests__/imageEditorState.test.d.ts +3 -0
  116. package/dist/__tests__/imageEditorState.test.d.ts.map +1 -0
  117. package/dist/__tests__/imageEditorState.test.js +148 -0
  118. package/dist/__tests__/imageEditorState.test.js.map +1 -0
  119. package/dist/__tests__/inlinePreviewGutter.test.d.ts +2 -0
  120. package/dist/__tests__/inlinePreviewGutter.test.d.ts.map +1 -0
  121. package/dist/__tests__/inlinePreviewGutter.test.js +51 -0
  122. package/dist/__tests__/inlinePreviewGutter.test.js.map +1 -0
  123. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.d.ts +2 -0
  124. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.d.ts.map +1 -0
  125. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.js +63 -0
  126. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.js.map +1 -0
  127. package/dist/__tests__/jsonEditor.test.d.ts +2 -0
  128. package/dist/__tests__/jsonEditor.test.d.ts.map +1 -0
  129. package/dist/__tests__/jsonEditor.test.js +134 -0
  130. package/dist/__tests__/jsonEditor.test.js.map +1 -0
  131. package/dist/__tests__/layersPanel.test.d.ts +2 -0
  132. package/dist/__tests__/layersPanel.test.d.ts.map +1 -0
  133. package/dist/__tests__/layersPanel.test.js +84 -0
  134. package/dist/__tests__/layersPanel.test.js.map +1 -0
  135. package/dist/__tests__/linkDialogDocPicker.test.d.ts +7 -0
  136. package/dist/__tests__/linkDialogDocPicker.test.d.ts.map +1 -0
  137. package/dist/__tests__/linkDialogDocPicker.test.js +75 -0
  138. package/dist/__tests__/linkDialogDocPicker.test.js.map +1 -0
  139. package/dist/__tests__/outlinePanel.test.d.ts +2 -0
  140. package/dist/__tests__/outlinePanel.test.d.ts.map +1 -0
  141. package/dist/__tests__/outlinePanel.test.js +68 -0
  142. package/dist/__tests__/outlinePanel.test.js.map +1 -0
  143. package/dist/__tests__/plainHtmlPreview.test.d.ts +2 -0
  144. package/dist/__tests__/plainHtmlPreview.test.d.ts.map +1 -0
  145. package/dist/__tests__/plainHtmlPreview.test.js +87 -0
  146. package/dist/__tests__/plainHtmlPreview.test.js.map +1 -0
  147. package/dist/__tests__/propertiesPanel.test.d.ts +2 -0
  148. package/dist/__tests__/propertiesPanel.test.d.ts.map +1 -0
  149. package/dist/__tests__/propertiesPanel.test.js +64 -0
  150. package/dist/__tests__/propertiesPanel.test.js.map +1 -0
  151. package/dist/__tests__/recorderFormats.test.d.ts +2 -0
  152. package/dist/__tests__/recorderFormats.test.d.ts.map +1 -0
  153. package/dist/__tests__/recorderFormats.test.js +121 -0
  154. package/dist/__tests__/recorderFormats.test.js.map +1 -0
  155. package/dist/__tests__/recorderTimingJson.test.d.ts +2 -0
  156. package/dist/__tests__/recorderTimingJson.test.d.ts.map +1 -0
  157. package/dist/__tests__/recorderTimingJson.test.js +37 -0
  158. package/dist/__tests__/recorderTimingJson.test.js.map +1 -0
  159. package/dist/__tests__/templateAnnotationRoundTrip.test.d.ts +2 -0
  160. package/dist/__tests__/templateAnnotationRoundTrip.test.d.ts.map +1 -0
  161. package/dist/__tests__/templateAnnotationRoundTrip.test.js +31 -0
  162. package/dist/__tests__/templateAnnotationRoundTrip.test.js.map +1 -0
  163. package/dist/__tests__/tiptapBridge.test.js +13 -0
  164. package/dist/__tests__/tiptapBridge.test.js.map +1 -1
  165. package/dist/__tests__/useImageEditor.test.d.ts +2 -0
  166. package/dist/__tests__/useImageEditor.test.d.ts.map +1 -0
  167. package/dist/__tests__/useImageEditor.test.js +131 -0
  168. package/dist/__tests__/useImageEditor.test.js.map +1 -0
  169. package/dist/__tests__/useMediaRecorder.test.d.ts +2 -0
  170. package/dist/__tests__/useMediaRecorder.test.d.ts.map +1 -0
  171. package/dist/__tests__/useMediaRecorder.test.js +153 -0
  172. package/dist/__tests__/useMediaRecorder.test.js.map +1 -0
  173. package/dist/__tests__/versionHistory.test.d.ts +2 -0
  174. package/dist/__tests__/versionHistory.test.d.ts.map +1 -0
  175. package/dist/__tests__/versionHistory.test.js +124 -0
  176. package/dist/__tests__/versionHistory.test.js.map +1 -0
  177. package/dist/blockSlice.d.ts +24 -0
  178. package/dist/blockSlice.d.ts.map +1 -0
  179. package/dist/blockSlice.js +63 -0
  180. package/dist/blockSlice.js.map +1 -0
  181. package/dist/buildPreviewDoc.d.ts.map +1 -1
  182. package/dist/buildPreviewDoc.js +52 -2
  183. package/dist/buildPreviewDoc.js.map +1 -1
  184. package/dist/emojiData.d.ts +81 -0
  185. package/dist/emojiData.d.ts.map +1 -0
  186. package/dist/emojiData.js +1283 -0
  187. package/dist/emojiData.js.map +1 -0
  188. package/dist/fileKind.d.ts +6 -2
  189. package/dist/fileKind.d.ts.map +1 -1
  190. package/dist/fileKind.js +25 -4
  191. package/dist/fileKind.js.map +1 -1
  192. package/dist/hooks/useFileDrop.d.ts.map +1 -1
  193. package/dist/hooks/useFileDrop.js +40 -4
  194. package/dist/hooks/useFileDrop.js.map +1 -1
  195. package/dist/imageEditor/CanvasSurface.d.ts +31 -0
  196. package/dist/imageEditor/CanvasSurface.d.ts.map +1 -0
  197. package/dist/imageEditor/CanvasSurface.js +264 -0
  198. package/dist/imageEditor/CanvasSurface.js.map +1 -0
  199. package/dist/imageEditor/ImageVersionHistoryDropdown.d.ts +39 -0
  200. package/dist/imageEditor/ImageVersionHistoryDropdown.d.ts.map +1 -0
  201. package/dist/imageEditor/ImageVersionHistoryDropdown.js +283 -0
  202. package/dist/imageEditor/ImageVersionHistoryDropdown.js.map +1 -0
  203. package/dist/imageEditor/LayersPanel.d.ts +14 -0
  204. package/dist/imageEditor/LayersPanel.d.ts.map +1 -0
  205. package/dist/imageEditor/LayersPanel.js +43 -0
  206. package/dist/imageEditor/LayersPanel.js.map +1 -0
  207. package/dist/imageEditor/PropertiesPanel.d.ts +14 -0
  208. package/dist/imageEditor/PropertiesPanel.d.ts.map +1 -0
  209. package/dist/imageEditor/PropertiesPanel.js +97 -0
  210. package/dist/imageEditor/PropertiesPanel.js.map +1 -0
  211. package/dist/imageEditor/Toolbar.d.ts +30 -0
  212. package/dist/imageEditor/Toolbar.d.ts.map +1 -0
  213. package/dist/imageEditor/Toolbar.js +108 -0
  214. package/dist/imageEditor/Toolbar.js.map +1 -0
  215. package/dist/imageEditor/icons.d.ts +24 -0
  216. package/dist/imageEditor/icons.d.ts.map +1 -0
  217. package/dist/imageEditor/icons.js +45 -0
  218. package/dist/imageEditor/icons.js.map +1 -0
  219. package/dist/imageEditor/layers/EditorImageLayer.d.ts +16 -0
  220. package/dist/imageEditor/layers/EditorImageLayer.d.ts.map +1 -0
  221. package/dist/imageEditor/layers/EditorImageLayer.js +37 -0
  222. package/dist/imageEditor/layers/EditorImageLayer.js.map +1 -0
  223. package/dist/imageEditor/layers/EditorShapeLayer.d.ts +15 -0
  224. package/dist/imageEditor/layers/EditorShapeLayer.d.ts.map +1 -0
  225. package/dist/imageEditor/layers/EditorShapeLayer.js +20 -0
  226. package/dist/imageEditor/layers/EditorShapeLayer.js.map +1 -0
  227. package/dist/imageEditor/layers/EditorTextLayer.d.ts +18 -0
  228. package/dist/imageEditor/layers/EditorTextLayer.d.ts.map +1 -0
  229. package/dist/imageEditor/layers/EditorTextLayer.js +13 -0
  230. package/dist/imageEditor/layers/EditorTextLayer.js.map +1 -0
  231. package/dist/imageEditor/layers/SelectionHandles.d.ts +17 -0
  232. package/dist/imageEditor/layers/SelectionHandles.d.ts.map +1 -0
  233. package/dist/imageEditor/layers/SelectionHandles.js +19 -0
  234. package/dist/imageEditor/layers/SelectionHandles.js.map +1 -0
  235. package/dist/imageEditor/state.d.ts +76 -0
  236. package/dist/imageEditor/state.d.ts.map +1 -0
  237. package/dist/imageEditor/state.js +87 -0
  238. package/dist/imageEditor/state.js.map +1 -0
  239. package/dist/imageEditor/useImageEditor.d.ts +53 -0
  240. package/dist/imageEditor/useImageEditor.d.ts.map +1 -0
  241. package/dist/imageEditor/useImageEditor.js +244 -0
  242. package/dist/imageEditor/useImageEditor.js.map +1 -0
  243. package/dist/imageEditor/useImageEditorTokens.d.ts +16 -0
  244. package/dist/imageEditor/useImageEditorTokens.d.ts.map +1 -0
  245. package/dist/imageEditor/useImageEditorTokens.js +45 -0
  246. package/dist/imageEditor/useImageEditorTokens.js.map +1 -0
  247. package/dist/index.d.ts +48 -1
  248. package/dist/index.d.ts.map +1 -1
  249. package/dist/index.js +36 -0
  250. package/dist/index.js.map +1 -1
  251. package/dist/jsonEditor/EmbeddedRichTextField.d.ts +15 -0
  252. package/dist/jsonEditor/EmbeddedRichTextField.d.ts.map +1 -0
  253. package/dist/jsonEditor/EmbeddedRichTextField.js +74 -0
  254. package/dist/jsonEditor/EmbeddedRichTextField.js.map +1 -0
  255. package/dist/jsonEditor/JsonEditor.d.ts +36 -0
  256. package/dist/jsonEditor/JsonEditor.d.ts.map +1 -0
  257. package/dist/jsonEditor/JsonEditor.js +15 -0
  258. package/dist/jsonEditor/JsonEditor.js.map +1 -0
  259. package/dist/jsonEditor/JsonEditorContext.d.ts +28 -0
  260. package/dist/jsonEditor/JsonEditorContext.d.ts.map +1 -0
  261. package/dist/jsonEditor/JsonEditorContext.js +41 -0
  262. package/dist/jsonEditor/JsonEditorContext.js.map +1 -0
  263. package/dist/jsonEditor/RenderNode.d.ts +16 -0
  264. package/dist/jsonEditor/RenderNode.d.ts.map +1 -0
  265. package/dist/jsonEditor/RenderNode.js +32 -0
  266. package/dist/jsonEditor/RenderNode.js.map +1 -0
  267. package/dist/jsonEditor/editors.d.ts +36 -0
  268. package/dist/jsonEditor/editors.d.ts.map +1 -0
  269. package/dist/jsonEditor/editors.js +347 -0
  270. package/dist/jsonEditor/editors.js.map +1 -0
  271. package/dist/jsonEditor/index.d.ts +3 -0
  272. package/dist/jsonEditor/index.d.ts.map +1 -0
  273. package/dist/jsonEditor/index.js +2 -0
  274. package/dist/jsonEditor/index.js.map +1 -0
  275. package/dist/jsonEditor/useJsonEditorTokens.d.ts +13 -0
  276. package/dist/jsonEditor/useJsonEditorTokens.d.ts.map +1 -0
  277. package/dist/jsonEditor/useJsonEditorTokens.js +38 -0
  278. package/dist/jsonEditor/useJsonEditorTokens.js.map +1 -0
  279. package/dist/recorder/RecorderButton.d.ts +31 -0
  280. package/dist/recorder/RecorderButton.d.ts.map +1 -0
  281. package/dist/recorder/RecorderButton.js +24 -0
  282. package/dist/recorder/RecorderButton.js.map +1 -0
  283. package/dist/recorder/RecorderModal.d.ts +59 -0
  284. package/dist/recorder/RecorderModal.d.ts.map +1 -0
  285. package/dist/recorder/RecorderModal.js +333 -0
  286. package/dist/recorder/RecorderModal.js.map +1 -0
  287. package/dist/recorder/RecorderPanel.d.ts +25 -0
  288. package/dist/recorder/RecorderPanel.d.ts.map +1 -0
  289. package/dist/recorder/RecorderPanel.js +30 -0
  290. package/dist/recorder/RecorderPanel.js.map +1 -0
  291. package/dist/recorder/formats.d.ts +51 -0
  292. package/dist/recorder/formats.d.ts.map +1 -0
  293. package/dist/recorder/formats.js +144 -0
  294. package/dist/recorder/formats.js.map +1 -0
  295. package/dist/recorder/hooks/useMediaRecorder.d.ts +90 -0
  296. package/dist/recorder/hooks/useMediaRecorder.d.ts.map +1 -0
  297. package/dist/recorder/hooks/useMediaRecorder.js +277 -0
  298. package/dist/recorder/hooks/useMediaRecorder.js.map +1 -0
  299. package/dist/recorder/hooks/useStreamPreview.d.ts +22 -0
  300. package/dist/recorder/hooks/useStreamPreview.d.ts.map +1 -0
  301. package/dist/recorder/hooks/useStreamPreview.js +44 -0
  302. package/dist/recorder/hooks/useStreamPreview.js.map +1 -0
  303. package/dist/recorder/sources/cameraStream.d.ts +22 -0
  304. package/dist/recorder/sources/cameraStream.d.ts.map +1 -0
  305. package/dist/recorder/sources/cameraStream.js +24 -0
  306. package/dist/recorder/sources/cameraStream.js.map +1 -0
  307. package/dist/recorder/sources/micStream.d.ts +15 -0
  308. package/dist/recorder/sources/micStream.d.ts.map +1 -0
  309. package/dist/recorder/sources/micStream.js +24 -0
  310. package/dist/recorder/sources/micStream.js.map +1 -0
  311. package/dist/recorder/sources/screenStream.d.ts +53 -0
  312. package/dist/recorder/sources/screenStream.d.ts.map +1 -0
  313. package/dist/recorder/sources/screenStream.js +114 -0
  314. package/dist/recorder/sources/screenStream.js.map +1 -0
  315. package/dist/recorder/timingJson.d.ts +51 -0
  316. package/dist/recorder/timingJson.d.ts.map +1 -0
  317. package/dist/recorder/timingJson.js +42 -0
  318. package/dist/recorder/timingJson.js.map +1 -0
  319. package/dist/tiptap/TiptapAudio.d.ts +26 -0
  320. package/dist/tiptap/TiptapAudio.d.ts.map +1 -0
  321. package/dist/tiptap/TiptapAudio.js +58 -0
  322. package/dist/tiptap/TiptapAudio.js.map +1 -0
  323. package/dist/tiptap/TiptapVideo.d.ts +30 -0
  324. package/dist/tiptap/TiptapVideo.d.ts.map +1 -0
  325. package/dist/tiptap/TiptapVideo.js +66 -0
  326. package/dist/tiptap/TiptapVideo.js.map +1 -0
  327. package/dist/tiptap/useResolvedMediaSrc.d.ts +2 -0
  328. package/dist/tiptap/useResolvedMediaSrc.d.ts.map +1 -0
  329. package/dist/tiptap/useResolvedMediaSrc.js +42 -0
  330. package/dist/tiptap/useResolvedMediaSrc.js.map +1 -0
  331. package/dist/tiptapBridge.d.ts.map +1 -1
  332. package/dist/tiptapBridge.js +171 -14
  333. package/dist/tiptapBridge.js.map +1 -1
  334. package/dist/useHeadingLayout.d.ts +54 -0
  335. package/dist/useHeadingLayout.d.ts.map +1 -0
  336. package/dist/useHeadingLayout.js +260 -0
  337. package/dist/useHeadingLayout.js.map +1 -0
  338. package/dist/utils/collectInlineFontAwesomeCss.d.ts +21 -0
  339. package/dist/utils/collectInlineFontAwesomeCss.d.ts.map +1 -0
  340. package/dist/utils/collectInlineFontAwesomeCss.js +68 -0
  341. package/dist/utils/collectInlineFontAwesomeCss.js.map +1 -0
  342. package/dist/utils/dropUtils.d.ts +21 -2
  343. package/dist/utils/dropUtils.d.ts.map +1 -1
  344. package/dist/utils/dropUtils.js +43 -4
  345. package/dist/utils/dropUtils.js.map +1 -1
  346. package/dist/utils/normalizeMalformedAssetUrl.d.ts +15 -0
  347. package/dist/utils/normalizeMalformedAssetUrl.d.ts.map +1 -0
  348. package/dist/utils/normalizeMalformedAssetUrl.js +27 -0
  349. package/dist/utils/normalizeMalformedAssetUrl.js.map +1 -0
  350. package/package.json +8 -5
  351. package/src/DocumentSettingsDialog.tsx +266 -0
  352. package/src/EditorContext.tsx +534 -10
  353. package/src/EditorShell.tsx +571 -55
  354. package/src/EmojiPicker.tsx +332 -0
  355. package/src/ImageEditor.tsx +327 -0
  356. package/src/ImageNodeView.tsx +222 -21
  357. package/src/ImageViewer.tsx +221 -0
  358. package/src/InlineIcon.ts +84 -0
  359. package/src/InlinePreviewGutter.tsx +582 -0
  360. package/src/LinkDialog.tsx +276 -0
  361. package/src/MentionExtension.tsx +10 -7
  362. package/src/OutlinePanel.tsx +295 -0
  363. package/src/PlainHtmlPreview.tsx +211 -0
  364. package/src/PreviewControls.tsx +130 -24
  365. package/src/PreviewPanel.tsx +38 -21
  366. package/src/RawEditor.tsx +215 -4
  367. package/src/RecorderEntry.tsx +164 -0
  368. package/src/TemplateAnnotation.ts +32 -6
  369. package/src/TemplatePicker.tsx +818 -0
  370. package/src/ThemeCustomizerPanel.tsx +595 -0
  371. package/src/ThemePicker.tsx +319 -0
  372. package/src/Toolbar.tsx +708 -111
  373. package/src/VersionHistoryPanel.tsx +329 -0
  374. package/src/ViewMenuPanel.tsx +188 -0
  375. package/src/WysiwygEditor.tsx +229 -9
  376. package/src/__tests__/detectMarkdown.test.ts +0 -15
  377. package/src/__tests__/documentSettingsDialog.test.tsx +147 -0
  378. package/src/__tests__/emojiPicker.test.tsx +133 -0
  379. package/src/__tests__/fileKind.test.ts +16 -0
  380. package/src/__tests__/imageEditAffordance.test.tsx +268 -0
  381. package/src/__tests__/imageEditorShell.test.tsx +57 -0
  382. package/src/__tests__/imageEditorState.test.ts +171 -0
  383. package/src/__tests__/inlinePreviewGutter.test.tsx +62 -0
  384. package/src/__tests__/inlinePreviewGutterAllBlocks.test.tsx +103 -0
  385. package/src/__tests__/jsonEditor.test.tsx +168 -0
  386. package/src/__tests__/layersPanel.test.tsx +97 -0
  387. package/src/__tests__/linkDialogDocPicker.test.tsx +137 -0
  388. package/src/__tests__/outlinePanel.test.tsx +79 -0
  389. package/src/__tests__/plainHtmlPreview.test.tsx +107 -0
  390. package/src/__tests__/propertiesPanel.test.tsx +69 -0
  391. package/src/__tests__/recorderFormats.test.ts +146 -0
  392. package/src/__tests__/recorderTimingJson.test.ts +41 -0
  393. package/src/__tests__/templateAnnotationRoundTrip.test.ts +34 -0
  394. package/src/__tests__/tiptapBridge.test.ts +15 -0
  395. package/src/__tests__/useImageEditor.test.tsx +159 -0
  396. package/src/__tests__/useMediaRecorder.test.ts +186 -0
  397. package/src/__tests__/versionHistory.test.tsx +197 -0
  398. package/src/blockSlice.ts +75 -0
  399. package/src/buildPreviewDoc.ts +61 -6
  400. package/src/emojiData.ts +1337 -0
  401. package/src/fileKind.ts +30 -6
  402. package/src/hooks/useFileDrop.ts +40 -4
  403. package/src/imageEditor/CanvasSurface.tsx +402 -0
  404. package/src/imageEditor/ImageVersionHistoryDropdown.tsx +396 -0
  405. package/src/imageEditor/LayersPanel.tsx +143 -0
  406. package/src/imageEditor/PropertiesPanel.tsx +428 -0
  407. package/src/imageEditor/Toolbar.tsx +242 -0
  408. package/src/imageEditor/icons.tsx +144 -0
  409. package/src/imageEditor/image-editor.css +450 -0
  410. package/src/imageEditor/layers/EditorImageLayer.tsx +45 -0
  411. package/src/imageEditor/layers/EditorShapeLayer.tsx +62 -0
  412. package/src/imageEditor/layers/EditorTextLayer.tsx +45 -0
  413. package/src/imageEditor/layers/SelectionHandles.tsx +86 -0
  414. package/src/imageEditor/state.ts +153 -0
  415. package/src/imageEditor/useImageEditor.ts +328 -0
  416. package/src/imageEditor/useImageEditorTokens.ts +70 -0
  417. package/src/index.ts +82 -0
  418. package/src/jsonEditor/EmbeddedRichTextField.tsx +81 -0
  419. package/src/jsonEditor/JsonEditor.tsx +81 -0
  420. package/src/jsonEditor/JsonEditorContext.tsx +75 -0
  421. package/src/jsonEditor/RenderNode.tsx +66 -0
  422. package/src/jsonEditor/editors.tsx +678 -0
  423. package/src/jsonEditor/index.ts +2 -0
  424. package/src/jsonEditor/json-editor.css +463 -0
  425. package/src/jsonEditor/useJsonEditorTokens.ts +63 -0
  426. package/src/recorder/RecorderButton.tsx +72 -0
  427. package/src/recorder/RecorderModal.tsx +596 -0
  428. package/src/recorder/RecorderPanel.tsx +93 -0
  429. package/src/recorder/formats.ts +159 -0
  430. package/src/recorder/hooks/useMediaRecorder.ts +378 -0
  431. package/src/recorder/hooks/useStreamPreview.ts +47 -0
  432. package/src/recorder/sources/cameraStream.ts +32 -0
  433. package/src/recorder/sources/micStream.ts +25 -0
  434. package/src/recorder/sources/screenStream.ts +162 -0
  435. package/src/recorder/timingJson.ts +66 -0
  436. package/src/styles/editor.css +2490 -51
  437. package/src/styles/image-edit-affordance.css +201 -0
  438. package/src/styles/index.css +10 -0
  439. package/src/tiptap/TiptapAudio.tsx +86 -0
  440. package/src/tiptap/TiptapVideo.tsx +119 -0
  441. package/src/tiptap/useResolvedMediaSrc.ts +47 -0
  442. package/src/tiptapBridge.ts +188 -20
  443. package/src/useHeadingLayout.ts +294 -0
  444. package/src/utils/collectInlineFontAwesomeCss.ts +69 -0
  445. package/src/utils/dropUtils.ts +54 -6
  446. package/src/utils/normalizeMalformedAssetUrl.ts +22 -0
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Screen capture via `getDisplayMedia`, with optional microphone mixing.
3
+ *
4
+ * The browser-native `getDisplayMedia({ audio: true })` flag only
5
+ * captures *system* audio (and only on Chromium on desktop). For
6
+ * narrated screencasts, hosts usually want the speaker's voice too —
7
+ * we provide an opt-in "include mic" path that pulls a parallel
8
+ * `getUserMedia` audio track and mixes it into the screen stream via
9
+ * `AudioContext`, so the resulting `MediaStream` carries a single audio
10
+ * track and a single video track.
11
+ */
12
+ import { supportsDisplayMedia, supportsUserMedia } from '../formats.js';
13
+ /**
14
+ * Combine zero-or-more audio source streams into one mixed output track
15
+ * via an `AudioContext`. Returns `null` when no input tracks were
16
+ * supplied so the caller can decide what to do.
17
+ */
18
+ function mixAudioTracks(streams) {
19
+ const sources = streams
20
+ .map((s) => s.getAudioTracks())
21
+ .flat()
22
+ .filter((t) => t.readyState === 'live');
23
+ if (sources.length === 0)
24
+ return null;
25
+ const AC = window.AudioContext;
26
+ if (typeof AC === 'undefined')
27
+ return null;
28
+ const ctx = new AC();
29
+ const dest = ctx.createMediaStreamDestination();
30
+ for (const track of sources) {
31
+ const src = ctx.createMediaStreamSource(new MediaStream([track]));
32
+ src.connect(dest);
33
+ }
34
+ const [mixed] = dest.stream.getAudioTracks();
35
+ if (!mixed)
36
+ return null;
37
+ return { track: mixed, context: ctx };
38
+ }
39
+ /**
40
+ * Request a screen-capture `MediaStream`, optionally with a mixed-in
41
+ * microphone track. Caller owns the resulting stream.
42
+ *
43
+ * @throws When `getDisplayMedia` isn't available, or when the user
44
+ * cancels the picker / denies permission.
45
+ */
46
+ export async function requestScreenStream(options) {
47
+ if (!supportsDisplayMedia()) {
48
+ throw new Error('navigator.mediaDevices.getDisplayMedia is not available in this environment.');
49
+ }
50
+ const video = options?.video ?? true;
51
+ const systemAudio = options?.systemAudio ?? false;
52
+ const includeMic = options?.includeMicrophone ?? false;
53
+ const displayStream = await navigator.mediaDevices.getDisplayMedia({
54
+ video,
55
+ audio: systemAudio,
56
+ });
57
+ if (!includeMic) {
58
+ return {
59
+ stream: displayStream,
60
+ dispose: () => { },
61
+ };
62
+ }
63
+ if (!supportsUserMedia()) {
64
+ // Fall back to display-only — the caller asked for mic but the
65
+ // platform can't deliver. Surfacing an error here would be more
66
+ // user-hostile than just dropping the requested addition.
67
+ return {
68
+ stream: displayStream,
69
+ dispose: () => { },
70
+ };
71
+ }
72
+ let micStream = null;
73
+ try {
74
+ micStream = await navigator.mediaDevices.getUserMedia({
75
+ audio: options?.microphoneConstraints ?? true,
76
+ video: false,
77
+ });
78
+ }
79
+ catch (err) {
80
+ // Stop the screen tracks too so the user isn't left with a stranded
81
+ // capture indicator.
82
+ displayStream.getTracks().forEach((t) => t.stop());
83
+ throw err;
84
+ }
85
+ const mix = mixAudioTracks([displayStream, micStream]);
86
+ if (!mix) {
87
+ // No audio at all — just hand back the display stream and shut down
88
+ // the mic acquisition we made.
89
+ micStream.getTracks().forEach((t) => t.stop());
90
+ return {
91
+ stream: displayStream,
92
+ dispose: () => { },
93
+ };
94
+ }
95
+ // Build the output stream: video from display + a single mixed audio
96
+ // track. Replace any system-audio track that came back from
97
+ // getDisplayMedia (it's now folded into the mix).
98
+ const [videoTrack] = displayStream.getVideoTracks();
99
+ const output = new MediaStream();
100
+ if (videoTrack)
101
+ output.addTrack(videoTrack);
102
+ output.addTrack(mix.track);
103
+ // Stop the now-unused raw audio tracks so the browser releases them;
104
+ // the mixed output keeps its own copies via the AudioContext graph.
105
+ displayStream.getAudioTracks().forEach((t) => t.stop());
106
+ const dispose = () => {
107
+ // Keep mic alive until disposal so the mix keeps producing audio.
108
+ micStream?.getTracks().forEach((t) => t.stop());
109
+ micStream = null;
110
+ void mix.context.close().catch(() => { });
111
+ };
112
+ return { stream: output, dispose };
113
+ }
114
+ //# sourceMappingURL=screenStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenStream.js","sourceRoot":"","sources":["../../../src/recorder/sources/screenStream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAuBxE;;;;GAIG;AACH,SAAS,cAAc,CAAC,OAAsB;IAI5C,MAAM,OAAO,GAAG,OAAO;SACpB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,C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,4DAA4D;IAC5D,kDAAkD;IAClD,MAAM,CAAC,UAAU,CAAC,GAAG,aAAa,CAAC,cAAc,EAAE,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;IACjC,IAAI,UAAU;QAAE,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAE3B,qEAAqE;IACrE,oEAAoE;IACpE,aAAa,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,kEAAkE;QAClE,SAAS,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAChD,SAAS,GAAG,IAAI,CAAC;QACjB,KAAK,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Build the `.timing.json` sidecar that pairs with a narration recording.
3
+ *
4
+ * The shape matches what `resolveAudioMapping()` in
5
+ * `@bendyline/squisq` reads at runtime: `sourceText`, `duration`, and
6
+ * `bookmarks[]`. Sidecars are stored at `<audio-path>.timing.json`
7
+ * inside the same `ContentContainer`, so the recorder can drop them
8
+ * alongside its audio file and have the existing audio-mapping pipeline
9
+ * pick them up with no schema changes.
10
+ */
11
+ /**
12
+ * Word-level timing bookmark — same shape as `AudioBookmark` in
13
+ * `@bendyline/squisq`. Recorder output produces an empty `bookmarks`
14
+ * array; word-level timing is the domain of TTS pipelines, not
15
+ * browser-side dictation.
16
+ */
17
+ export interface RecordedBookmark {
18
+ id: string;
19
+ time: number;
20
+ charOffset: number;
21
+ textFragment?: string;
22
+ }
23
+ export interface TimingJson {
24
+ /** Plain text the user said (or intended to say) during the recording. */
25
+ sourceText: string;
26
+ /** Recording length in seconds. */
27
+ duration: number;
28
+ /** Word-level timing data. Empty by default — populated only when a downstream tool aligns the audio. */
29
+ bookmarks: RecordedBookmark[];
30
+ }
31
+ /**
32
+ * Build a `TimingJson` payload from a user-typed script and the
33
+ * recording's measured duration. Both fields are required by the
34
+ * downstream `parseTimingJson()` validator; missing them produces a
35
+ * sidecar that gets silently dropped by the audio-mapping pipeline.
36
+ */
37
+ export declare function buildTimingJson(sourceText: string, durationSec: number): TimingJson;
38
+ /**
39
+ * Serialize a `TimingJson` payload to a `Uint8Array` ready to hand to
40
+ * `ContentContainer.writeFile()`. Pretty-printed so authors can hand-
41
+ * edit the sidecar if they ever want to.
42
+ */
43
+ export declare function encodeTimingJson(timing: TimingJson): Uint8Array;
44
+ /**
45
+ * The container path convention `resolveAudioMapping()` expects:
46
+ * `<audio-path>.timing.json`. Pass the audio file's relative path
47
+ * (e.g. `'audio/narration-001.webm'`) and the matching sidecar path is
48
+ * returned (`'audio/narration-001.webm.timing.json'`).
49
+ */
50
+ export declare function timingPathFor(audioRelativePath: string): string;
51
+ //# sourceMappingURL=timingJson.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timingJson.d.ts","sourceRoot":"","sources":["../../src/recorder/timingJson.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,yGAAyG;IACzG,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,UAAU,CAMnF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAG/D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAE/D"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Build the `.timing.json` sidecar that pairs with a narration recording.
3
+ *
4
+ * The shape matches what `resolveAudioMapping()` in
5
+ * `@bendyline/squisq` reads at runtime: `sourceText`, `duration`, and
6
+ * `bookmarks[]`. Sidecars are stored at `<audio-path>.timing.json`
7
+ * inside the same `ContentContainer`, so the recorder can drop them
8
+ * alongside its audio file and have the existing audio-mapping pipeline
9
+ * pick them up with no schema changes.
10
+ */
11
+ /**
12
+ * Build a `TimingJson` payload from a user-typed script and the
13
+ * recording's measured duration. Both fields are required by the
14
+ * downstream `parseTimingJson()` validator; missing them produces a
15
+ * sidecar that gets silently dropped by the audio-mapping pipeline.
16
+ */
17
+ export function buildTimingJson(sourceText, durationSec) {
18
+ return {
19
+ sourceText: sourceText ?? '',
20
+ duration: Number.isFinite(durationSec) && durationSec >= 0 ? durationSec : 0,
21
+ bookmarks: [],
22
+ };
23
+ }
24
+ /**
25
+ * Serialize a `TimingJson` payload to a `Uint8Array` ready to hand to
26
+ * `ContentContainer.writeFile()`. Pretty-printed so authors can hand-
27
+ * edit the sidecar if they ever want to.
28
+ */
29
+ export function encodeTimingJson(timing) {
30
+ const text = JSON.stringify(timing, null, 2);
31
+ return new TextEncoder().encode(text);
32
+ }
33
+ /**
34
+ * The container path convention `resolveAudioMapping()` expects:
35
+ * `<audio-path>.timing.json`. Pass the audio file's relative path
36
+ * (e.g. `'audio/narration-001.webm'`) and the matching sidecar path is
37
+ * returned (`'audio/narration-001.webm.timing.json'`).
38
+ */
39
+ export function timingPathFor(audioRelativePath) {
40
+ return `${audioRelativePath}.timing.json`;
41
+ }
42
+ //# sourceMappingURL=timingJson.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timingJson.js","sourceRoot":"","sources":["../../src/recorder/timingJson.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAwBH;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,UAAkB,EAAE,WAAmB;IACrE,OAAO;QACL,UAAU,EAAE,UAAU,IAAI,EAAE;QAC5B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC5E,SAAS,EAAE,EAAE;KACd,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAkB;IACjD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7C,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,iBAAyB;IACrD,OAAO,GAAG,iBAAiB,cAAc,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * TiptapAudio — inline atom Tiptap node for HTML5 `<audio>` elements.
3
+ *
4
+ * Lets the WYSIWYG editor preserve `<audio>` tags that the recorder
5
+ * drops into the markdown for narration / voice recordings, and render
6
+ * a native playback control inside the editor surface. The resolved src
7
+ * goes through the EditorContext's MediaProvider so a workspace-local
8
+ * `audio/foo.webm` returns a blob URL.
9
+ */
10
+ import { Node } from '@tiptap/core';
11
+ export interface TiptapAudioOptions {
12
+ HTMLAttributes: Record<string, unknown>;
13
+ }
14
+ declare module '@tiptap/core' {
15
+ interface Commands<ReturnType> {
16
+ audio: {
17
+ setAudio: (attrs: {
18
+ src: string;
19
+ controls?: boolean;
20
+ }) => ReturnType;
21
+ };
22
+ }
23
+ }
24
+ export declare const TiptapAudio: Node<TiptapAudioOptions, any>;
25
+ export default TiptapAudio;
26
+ //# sourceMappingURL=TiptapAudio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TiptapAudio.d.ts","sourceRoot":"","sources":["../../src/tiptap/TiptapAudio.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAKrD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,KAAK,EAAE;gBAAE,GAAG,EAAE,MAAM,CAAC;gBAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;aAAE,KAAK,UAAU,CAAC;SACtE,CAAC;KACH;CACF;AAaD,eAAO,MAAM,WAAW,+BA8CtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * TiptapAudio — inline atom Tiptap node for HTML5 `<audio>` elements.
4
+ *
5
+ * Lets the WYSIWYG editor preserve `<audio>` tags that the recorder
6
+ * drops into the markdown for narration / voice recordings, and render
7
+ * a native playback control inside the editor surface. The resolved src
8
+ * goes through the EditorContext's MediaProvider so a workspace-local
9
+ * `audio/foo.webm` returns a blob URL.
10
+ */
11
+ import { Node, mergeAttributes } from '@tiptap/core';
12
+ import { NodeViewWrapper, ReactNodeViewRenderer } from '@tiptap/react';
13
+ import { useResolvedMediaSrc } from './useResolvedMediaSrc.js';
14
+ function AudioNodeView({ node }) {
15
+ const { src, controls } = node.attrs;
16
+ const resolvedSrc = useResolvedMediaSrc(src ?? '');
17
+ return (_jsx(NodeViewWrapper, { as: "span", className: "squisq-inline-audio-player", "data-drag-handle": true, draggable: true, children: _jsx("audio", { src: resolvedSrc || undefined, controls: controls, preload: "metadata" }) }));
18
+ }
19
+ export const TiptapAudio = Node.create({
20
+ name: 'audio',
21
+ // Block-level so each recording lives on its own line in the WYSIWYG —
22
+ // matches how the recorder inserts the tag (on a fresh line) and
23
+ // avoids odd inline-flow alignment when the native controls take more
24
+ // vertical space than a line of text.
25
+ group: 'block',
26
+ atom: true,
27
+ draggable: true,
28
+ selectable: true,
29
+ addOptions() {
30
+ return { HTMLAttributes: {} };
31
+ },
32
+ addAttributes() {
33
+ return {
34
+ src: { default: null },
35
+ controls: {
36
+ default: true,
37
+ parseHTML: (el) => el.hasAttribute('controls'),
38
+ renderHTML: (attrs) => (attrs.controls ? { controls: '' } : {}),
39
+ },
40
+ };
41
+ },
42
+ parseHTML() {
43
+ return [{ tag: 'audio' }];
44
+ },
45
+ renderHTML({ HTMLAttributes }) {
46
+ return ['audio', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
47
+ },
48
+ addNodeView() {
49
+ return ReactNodeViewRenderer(AudioNodeView);
50
+ },
51
+ addCommands() {
52
+ return {
53
+ setAudio: (attrs) => ({ commands }) => commands.insertContent({ type: this.name, attrs }),
54
+ };
55
+ },
56
+ });
57
+ export default TiptapAudio;
58
+ //# sourceMappingURL=TiptapAudio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TiptapAudio.js","sourceRoot":"","sources":["../../src/tiptap/TiptapAudio.tsx"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAc/D,SAAS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AO,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,WAAW;QACT,OAAO,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC9C,CAAC;IAED,WAAW;QACT,OAAO;YACL,QAAQ,EACN,CAAC,KAAK,EAAE,EAAE,CACV,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACf,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;SACvD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * TiptapVideo — block-level atom Tiptap node for HTML5 `<video>` elements.
3
+ *
4
+ * Without this extension, Tiptap's StarterKit strips unknown HTML tags
5
+ * when parsing the editor's content. By registering `<video>` as a known
6
+ * node, the editor can render a recording's inline player inside the
7
+ * WYSIWYG surface and round-trip the tag through markdown.
8
+ *
9
+ * The NodeView renders a real `<video controls>` whose src is resolved
10
+ * through the EditorContext's MediaProvider — same mechanism
11
+ * `ImageNodeView` uses for `<img>`.
12
+ */
13
+ import { Node } from '@tiptap/core';
14
+ export interface TiptapVideoOptions {
15
+ HTMLAttributes: Record<string, unknown>;
16
+ }
17
+ declare module '@tiptap/core' {
18
+ interface Commands<ReturnType> {
19
+ video: {
20
+ setVideo: (attrs: {
21
+ src: string;
22
+ width?: number | string | null;
23
+ controls?: boolean;
24
+ }) => ReturnType;
25
+ };
26
+ }
27
+ }
28
+ export declare const TiptapVideo: Node<TiptapVideoOptions, any>;
29
+ export default TiptapVideo;
30
+ //# sourceMappingURL=TiptapVideo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TiptapVideo.d.ts","sourceRoot":"","sources":["../../src/tiptap/TiptapVideo.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAKrD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,KAAK,EAAE;gBAChB,GAAG,EAAE,MAAM,CAAC;gBACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;gBAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;aACpB,KAAK,UAAU,CAAC;SAClB,CAAC;KACH;CACF;AAqCD,eAAO,MAAM,WAAW,+BAgDtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -0,0 +1,66 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * TiptapVideo — block-level atom Tiptap node for HTML5 `<video>` elements.
4
+ *
5
+ * Without this extension, Tiptap's StarterKit strips unknown HTML tags
6
+ * when parsing the editor's content. By registering `<video>` as a known
7
+ * node, the editor can render a recording's inline player inside the
8
+ * WYSIWYG surface and round-trip the tag through markdown.
9
+ *
10
+ * The NodeView renders a real `<video controls>` whose src is resolved
11
+ * through the EditorContext's MediaProvider — same mechanism
12
+ * `ImageNodeView` uses for `<img>`.
13
+ */
14
+ import { Node, mergeAttributes } from '@tiptap/core';
15
+ import { NodeViewWrapper, ReactNodeViewRenderer } from '@tiptap/react';
16
+ import { useResolvedMediaSrc } from './useResolvedMediaSrc.js';
17
+ function VideoNodeView({ node }) {
18
+ const { src, width, height, poster, controls } = node.attrs;
19
+ const resolvedSrc = useResolvedMediaSrc(src ?? '');
20
+ // Resolve poster through the same provider when present so a
21
+ // workspace-local frame thumbnail also renders inside the editor.
22
+ const resolvedPoster = useResolvedMediaSrc(poster ?? '');
23
+ return (_jsx(NodeViewWrapper, { as: "span", className: "squisq-inline-video-player", "data-drag-handle": true, draggable: true, children: _jsx("video", { src: resolvedSrc || undefined, poster: poster ? resolvedPoster : undefined, controls: controls, playsInline: true, preload: "metadata", width: width ?? undefined, height: height ?? undefined }) }));
24
+ }
25
+ export const TiptapVideo = Node.create({
26
+ name: 'video',
27
+ group: 'block',
28
+ atom: true,
29
+ draggable: true,
30
+ selectable: true,
31
+ addOptions() {
32
+ return { HTMLAttributes: {} };
33
+ },
34
+ addAttributes() {
35
+ return {
36
+ src: { default: null },
37
+ width: { default: null },
38
+ height: { default: null },
39
+ poster: { default: null },
40
+ // The HTML5 `controls` attribute is boolean-presence; parse its
41
+ // existence (even with an empty string value) as `true`, otherwise
42
+ // default to true (we want recordings to be playable by default).
43
+ controls: {
44
+ default: true,
45
+ parseHTML: (el) => el.hasAttribute('controls'),
46
+ renderHTML: (attrs) => (attrs.controls ? { controls: '' } : {}),
47
+ },
48
+ };
49
+ },
50
+ parseHTML() {
51
+ return [{ tag: 'video' }];
52
+ },
53
+ renderHTML({ HTMLAttributes }) {
54
+ return ['video', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
55
+ },
56
+ addNodeView() {
57
+ return ReactNodeViewRenderer(VideoNodeView);
58
+ },
59
+ addCommands() {
60
+ return {
61
+ setVideo: (attrs) => ({ commands }) => commands.insertContent({ type: this.name, attrs }),
62
+ };
63
+ },
64
+ });
65
+ export default TiptapVideo;
66
+ //# sourceMappingURL=TiptapVideo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TiptapVideo.js","sourceRoot":"","sources":["../../src/tiptap/TiptapVideo.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAkB/D,SAAS,aAAa,CAAC,EAAE,IAAI,EAAiB;IAC5C,MAAM,EAAE,GA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AE,CAAC,YAAY,CAAC,UAAU,CAAC;gBAC9C,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAChE;SACF,CAAC;IACJ,CAAC;IAED,SAAS;QACP,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QAC3B,OAAO,CAAC,OAAO,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,WAAW;QACT,OAAO,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC9C,CAAC;IAED,WAAW;QACT,OAAO;YACL,QAAQ,EACN,CAAC,KAAK,EAAE,EAAE,CACV,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CACf,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;SACvD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useResolvedMediaSrc(src: string): string;
2
+ //# sourceMappingURL=useResolvedMediaSrc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResolvedMediaSrc.d.ts","sourceRoot":"","sources":["../../src/tiptap/useResolvedMediaSrc.ts"],"names":[],"mappings":"AAYA,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAkCvD"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * useResolvedMediaSrc — resolve a relative media path through the
3
+ * EditorContext's MediaProvider, mirroring the pattern used by
4
+ * `ImageNodeView`. Returns the resolved URL (or the original `src`
5
+ * when no provider is available, the path is absolute, or resolution
6
+ * fails). Used by the Tiptap video / audio NodeViews so a relative
7
+ * `audio/foo.webm` plays from the workspace container instead of
8
+ * 404-ing against the dev server.
9
+ */
10
+ import { useEffect, useState } from 'react';
11
+ import { useEditorContext } from '../EditorContext.js';
12
+ export function useResolvedMediaSrc(src) {
13
+ const { mediaProvider, mediaRevision } = useEditorContext();
14
+ const [resolved, setResolved] = useState(src);
15
+ const isRelative = !!src &&
16
+ !src.startsWith('blob:') &&
17
+ !src.startsWith('http:') &&
18
+ !src.startsWith('https:') &&
19
+ !src.startsWith('data:') &&
20
+ !src.startsWith('/');
21
+ useEffect(() => {
22
+ if (!mediaProvider || !isRelative) {
23
+ setResolved(src);
24
+ return;
25
+ }
26
+ let cancelled = false;
27
+ mediaProvider.resolveUrl(src).then((url) => {
28
+ if (!cancelled)
29
+ setResolved(url);
30
+ }, () => {
31
+ if (!cancelled)
32
+ setResolved(src);
33
+ });
34
+ return () => {
35
+ cancelled = true;
36
+ };
37
+ // `mediaRevision` bumps after writes — re-resolve so the player
38
+ // picks up the new blob URL after a re-record / edit.
39
+ }, [src, isRelative, mediaProvider, mediaRevision]);
40
+ return resolved;
41
+ }
42
+ //# sourceMappingURL=useResolvedMediaSrc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResolvedMediaSrc.js","sourceRoot":"","sources":["../../src/tiptap/useResolvedMediaSrc.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,UAAU,mBAAmB,CAAC,GAAW;IAC7C,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAC5D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE9C,MAAM,UAAU,GACd,CAAC,CAAC,GAAG;QACL,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC;QACxB,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC;QACxB,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC;QACzB,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC;QACxB,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAEvB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,aAAa,IAAI,CAAC,UAAU,EAAE,CAAC;YAClC,WAAW,CAAC,GAAG,CAAC,CAAC;YACjB,OAAO;QACT,CAAC;QACD,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,CAChC,CAAC,GAAG,EAAE,EAAE;YACN,IAAI,CAAC,SAAS;gBAAE,WAAW,CAAC,GAAG,CAAC,CAAC;QACnC,CAAC,EACD,GAAG,EAAE;YACH,IAAI,CAAC,SAAS;gBAAE,WAAW,CAAC,GAAG,CAAC,CAAC;QACnC,CAAC,CACF,CAAC;QACF,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;QACF,gEAAgE;QAChE,sDAAsD;IACxD,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC;IAEpD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tiptapBridge.d.ts","sourceRoot":"","sources":["../src/tiptapBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAsCH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmOzD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA0OrD"}
1
+ {"version":3,"file":"tiptapBridge.d.ts","sourceRoot":"","sources":["../src/tiptapBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAiDH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CA4QzD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiQrD"}