@bendyline/squisq-editor-react 1.5.0 → 1.5.2

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 (401) hide show
  1. package/dist/index.d.ts +1991 -90
  2. package/dist/index.js +17088 -82
  3. package/dist/index.js.map +1 -1
  4. package/package.json +4 -4
  5. package/dist/DocumentSettingsDialog.d.ts +0 -26
  6. package/dist/DocumentSettingsDialog.d.ts.map +0 -1
  7. package/dist/DocumentSettingsDialog.js +0 -115
  8. package/dist/DocumentSettingsDialog.js.map +0 -1
  9. package/dist/DropZoneOverlay.d.ts +0 -24
  10. package/dist/DropZoneOverlay.d.ts.map +0 -1
  11. package/dist/DropZoneOverlay.js +0 -53
  12. package/dist/DropZoneOverlay.js.map +0 -1
  13. package/dist/EditorContext.d.ts +0 -391
  14. package/dist/EditorContext.d.ts.map +0 -1
  15. package/dist/EditorContext.js +0 -471
  16. package/dist/EditorContext.js.map +0 -1
  17. package/dist/EditorShell.d.ts +0 -328
  18. package/dist/EditorShell.d.ts.map +0 -1
  19. package/dist/EditorShell.js +0 -290
  20. package/dist/EditorShell.js.map +0 -1
  21. package/dist/EmojiPicker.d.ts +0 -50
  22. package/dist/EmojiPicker.d.ts.map +0 -1
  23. package/dist/EmojiPicker.js +0 -182
  24. package/dist/EmojiPicker.js.map +0 -1
  25. package/dist/ImageEditor.d.ts +0 -68
  26. package/dist/ImageEditor.d.ts.map +0 -1
  27. package/dist/ImageEditor.js +0 -166
  28. package/dist/ImageEditor.js.map +0 -1
  29. package/dist/ImageNodeView.d.ts +0 -27
  30. package/dist/ImageNodeView.d.ts.map +0 -1
  31. package/dist/ImageNodeView.js +0 -215
  32. package/dist/ImageNodeView.js.map +0 -1
  33. package/dist/ImageViewer.d.ts +0 -26
  34. package/dist/ImageViewer.d.ts.map +0 -1
  35. package/dist/ImageViewer.js +0 -119
  36. package/dist/ImageViewer.js.map +0 -1
  37. package/dist/InlineIcon.d.ts +0 -17
  38. package/dist/InlineIcon.d.ts.map +0 -1
  39. package/dist/InlineIcon.js +0 -72
  40. package/dist/InlineIcon.js.map +0 -1
  41. package/dist/InlinePreviewGutter.d.ts +0 -52
  42. package/dist/InlinePreviewGutter.d.ts.map +0 -1
  43. package/dist/InlinePreviewGutter.js +0 -397
  44. package/dist/InlinePreviewGutter.js.map +0 -1
  45. package/dist/LinkDialog.d.ts +0 -43
  46. package/dist/LinkDialog.d.ts.map +0 -1
  47. package/dist/LinkDialog.js +0 -102
  48. package/dist/LinkDialog.js.map +0 -1
  49. package/dist/MediaBin.d.ts +0 -29
  50. package/dist/MediaBin.d.ts.map +0 -1
  51. package/dist/MediaBin.js +0 -166
  52. package/dist/MediaBin.js.map +0 -1
  53. package/dist/MentionExtension.d.ts +0 -22
  54. package/dist/MentionExtension.d.ts.map +0 -1
  55. package/dist/MentionExtension.js +0 -245
  56. package/dist/MentionExtension.js.map +0 -1
  57. package/dist/OutlinePanel.d.ts +0 -17
  58. package/dist/OutlinePanel.d.ts.map +0 -1
  59. package/dist/OutlinePanel.js +0 -167
  60. package/dist/OutlinePanel.js.map +0 -1
  61. package/dist/PlainHtmlPreview.d.ts +0 -50
  62. package/dist/PlainHtmlPreview.d.ts.map +0 -1
  63. package/dist/PlainHtmlPreview.js +0 -155
  64. package/dist/PlainHtmlPreview.js.map +0 -1
  65. package/dist/PreviewControls.d.ts +0 -55
  66. package/dist/PreviewControls.d.ts.map +0 -1
  67. package/dist/PreviewControls.js +0 -277
  68. package/dist/PreviewControls.js.map +0 -1
  69. package/dist/PreviewPanel.d.ts +0 -29
  70. package/dist/PreviewPanel.d.ts.map +0 -1
  71. package/dist/PreviewPanel.js +0 -94
  72. package/dist/PreviewPanel.js.map +0 -1
  73. package/dist/RawEditor.d.ts +0 -32
  74. package/dist/RawEditor.d.ts.map +0 -1
  75. package/dist/RawEditor.js +0 -440
  76. package/dist/RawEditor.js.map +0 -1
  77. package/dist/RecorderEntry.d.ts +0 -24
  78. package/dist/RecorderEntry.d.ts.map +0 -1
  79. package/dist/RecorderEntry.js +0 -139
  80. package/dist/RecorderEntry.js.map +0 -1
  81. package/dist/StatusBar.d.ts +0 -15
  82. package/dist/StatusBar.d.ts.map +0 -1
  83. package/dist/StatusBar.js +0 -24
  84. package/dist/StatusBar.js.map +0 -1
  85. package/dist/TemplateAnnotation.d.ts +0 -20
  86. package/dist/TemplateAnnotation.d.ts.map +0 -1
  87. package/dist/TemplateAnnotation.js +0 -97
  88. package/dist/TemplateAnnotation.js.map +0 -1
  89. package/dist/TemplatePicker.d.ts +0 -53
  90. package/dist/TemplatePicker.d.ts.map +0 -1
  91. package/dist/TemplatePicker.js +0 -388
  92. package/dist/TemplatePicker.js.map +0 -1
  93. package/dist/ThemeCustomizerPanel.d.ts +0 -32
  94. package/dist/ThemeCustomizerPanel.d.ts.map +0 -1
  95. package/dist/ThemeCustomizerPanel.js +0 -256
  96. package/dist/ThemeCustomizerPanel.js.map +0 -1
  97. package/dist/ThemePicker.d.ts +0 -33
  98. package/dist/ThemePicker.d.ts.map +0 -1
  99. package/dist/ThemePicker.js +0 -148
  100. package/dist/ThemePicker.js.map +0 -1
  101. package/dist/Toolbar.d.ts +0 -36
  102. package/dist/Toolbar.d.ts.map +0 -1
  103. package/dist/Toolbar.js +0 -1001
  104. package/dist/Toolbar.js.map +0 -1
  105. package/dist/Tooltip.d.ts +0 -10
  106. package/dist/Tooltip.d.ts.map +0 -1
  107. package/dist/Tooltip.js +0 -104
  108. package/dist/Tooltip.js.map +0 -1
  109. package/dist/VersionHistoryPanel.d.ts +0 -14
  110. package/dist/VersionHistoryPanel.d.ts.map +0 -1
  111. package/dist/VersionHistoryPanel.js +0 -147
  112. package/dist/VersionHistoryPanel.js.map +0 -1
  113. package/dist/ViewMenuPanel.d.ts +0 -13
  114. package/dist/ViewMenuPanel.d.ts.map +0 -1
  115. package/dist/ViewMenuPanel.js +0 -58
  116. package/dist/ViewMenuPanel.js.map +0 -1
  117. package/dist/ViewSwitcher.d.ts +0 -14
  118. package/dist/ViewSwitcher.d.ts.map +0 -1
  119. package/dist/ViewSwitcher.js +0 -26
  120. package/dist/ViewSwitcher.js.map +0 -1
  121. package/dist/WysiwygEditor.d.ts +0 -39
  122. package/dist/WysiwygEditor.d.ts.map +0 -1
  123. package/dist/WysiwygEditor.js +0 -537
  124. package/dist/WysiwygEditor.js.map +0 -1
  125. package/dist/__tests__/detectMarkdown.test.d.ts +0 -2
  126. package/dist/__tests__/detectMarkdown.test.d.ts.map +0 -1
  127. package/dist/__tests__/detectMarkdown.test.js +0 -55
  128. package/dist/__tests__/detectMarkdown.test.js.map +0 -1
  129. package/dist/__tests__/documentSettingsDialog.test.d.ts +0 -2
  130. package/dist/__tests__/documentSettingsDialog.test.d.ts.map +0 -1
  131. package/dist/__tests__/documentSettingsDialog.test.js +0 -132
  132. package/dist/__tests__/documentSettingsDialog.test.js.map +0 -1
  133. package/dist/__tests__/emojiPicker.test.d.ts +0 -2
  134. package/dist/__tests__/emojiPicker.test.d.ts.map +0 -1
  135. package/dist/__tests__/emojiPicker.test.js +0 -111
  136. package/dist/__tests__/emojiPicker.test.js.map +0 -1
  137. package/dist/__tests__/fileKind.test.d.ts +0 -2
  138. package/dist/__tests__/fileKind.test.d.ts.map +0 -1
  139. package/dist/__tests__/fileKind.test.js +0 -94
  140. package/dist/__tests__/fileKind.test.js.map +0 -1
  141. package/dist/__tests__/imageEditAffordance.test.d.ts +0 -2
  142. package/dist/__tests__/imageEditAffordance.test.d.ts.map +0 -1
  143. package/dist/__tests__/imageEditAffordance.test.js +0 -188
  144. package/dist/__tests__/imageEditAffordance.test.js.map +0 -1
  145. package/dist/__tests__/imageEditorShell.test.d.ts +0 -2
  146. package/dist/__tests__/imageEditorShell.test.d.ts.map +0 -1
  147. package/dist/__tests__/imageEditorShell.test.js +0 -52
  148. package/dist/__tests__/imageEditorShell.test.js.map +0 -1
  149. package/dist/__tests__/imageEditorState.test.d.ts +0 -3
  150. package/dist/__tests__/imageEditorState.test.d.ts.map +0 -1
  151. package/dist/__tests__/imageEditorState.test.js +0 -148
  152. package/dist/__tests__/imageEditorState.test.js.map +0 -1
  153. package/dist/__tests__/inlinePreviewGutter.test.d.ts +0 -2
  154. package/dist/__tests__/inlinePreviewGutter.test.d.ts.map +0 -1
  155. package/dist/__tests__/inlinePreviewGutter.test.js +0 -51
  156. package/dist/__tests__/inlinePreviewGutter.test.js.map +0 -1
  157. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.d.ts +0 -2
  158. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.d.ts.map +0 -1
  159. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.js +0 -63
  160. package/dist/__tests__/inlinePreviewGutterAllBlocks.test.js.map +0 -1
  161. package/dist/__tests__/jsonEditor.test.d.ts +0 -2
  162. package/dist/__tests__/jsonEditor.test.d.ts.map +0 -1
  163. package/dist/__tests__/jsonEditor.test.js +0 -134
  164. package/dist/__tests__/jsonEditor.test.js.map +0 -1
  165. package/dist/__tests__/layersPanel.test.d.ts +0 -2
  166. package/dist/__tests__/layersPanel.test.d.ts.map +0 -1
  167. package/dist/__tests__/layersPanel.test.js +0 -84
  168. package/dist/__tests__/layersPanel.test.js.map +0 -1
  169. package/dist/__tests__/linkDialogDocPicker.test.d.ts +0 -7
  170. package/dist/__tests__/linkDialogDocPicker.test.d.ts.map +0 -1
  171. package/dist/__tests__/linkDialogDocPicker.test.js +0 -75
  172. package/dist/__tests__/linkDialogDocPicker.test.js.map +0 -1
  173. package/dist/__tests__/mediaAttachmentFlow.test.d.ts +0 -2
  174. package/dist/__tests__/mediaAttachmentFlow.test.d.ts.map +0 -1
  175. package/dist/__tests__/mediaAttachmentFlow.test.js +0 -99
  176. package/dist/__tests__/mediaAttachmentFlow.test.js.map +0 -1
  177. package/dist/__tests__/outlinePanel.test.d.ts +0 -2
  178. package/dist/__tests__/outlinePanel.test.d.ts.map +0 -1
  179. package/dist/__tests__/outlinePanel.test.js +0 -68
  180. package/dist/__tests__/outlinePanel.test.js.map +0 -1
  181. package/dist/__tests__/plainHtmlPreview.test.d.ts +0 -2
  182. package/dist/__tests__/plainHtmlPreview.test.d.ts.map +0 -1
  183. package/dist/__tests__/plainHtmlPreview.test.js +0 -87
  184. package/dist/__tests__/plainHtmlPreview.test.js.map +0 -1
  185. package/dist/__tests__/propertiesPanel.test.d.ts +0 -2
  186. package/dist/__tests__/propertiesPanel.test.d.ts.map +0 -1
  187. package/dist/__tests__/propertiesPanel.test.js +0 -64
  188. package/dist/__tests__/propertiesPanel.test.js.map +0 -1
  189. package/dist/__tests__/recorderFormats.test.d.ts +0 -2
  190. package/dist/__tests__/recorderFormats.test.d.ts.map +0 -1
  191. package/dist/__tests__/recorderFormats.test.js +0 -121
  192. package/dist/__tests__/recorderFormats.test.js.map +0 -1
  193. package/dist/__tests__/recorderTimingJson.test.d.ts +0 -2
  194. package/dist/__tests__/recorderTimingJson.test.d.ts.map +0 -1
  195. package/dist/__tests__/recorderTimingJson.test.js +0 -37
  196. package/dist/__tests__/recorderTimingJson.test.js.map +0 -1
  197. package/dist/__tests__/templateAnnotationRoundTrip.test.d.ts +0 -2
  198. package/dist/__tests__/templateAnnotationRoundTrip.test.d.ts.map +0 -1
  199. package/dist/__tests__/templateAnnotationRoundTrip.test.js +0 -31
  200. package/dist/__tests__/templateAnnotationRoundTrip.test.js.map +0 -1
  201. package/dist/__tests__/tiptapBridge.test.d.ts +0 -2
  202. package/dist/__tests__/tiptapBridge.test.d.ts.map +0 -1
  203. package/dist/__tests__/tiptapBridge.test.js +0 -303
  204. package/dist/__tests__/tiptapBridge.test.js.map +0 -1
  205. package/dist/__tests__/tiptapImageRoundTrip.test.d.ts +0 -2
  206. package/dist/__tests__/tiptapImageRoundTrip.test.d.ts.map +0 -1
  207. package/dist/__tests__/tiptapImageRoundTrip.test.js +0 -68
  208. package/dist/__tests__/tiptapImageRoundTrip.test.js.map +0 -1
  209. package/dist/__tests__/useImageEditor.test.d.ts +0 -2
  210. package/dist/__tests__/useImageEditor.test.d.ts.map +0 -1
  211. package/dist/__tests__/useImageEditor.test.js +0 -131
  212. package/dist/__tests__/useImageEditor.test.js.map +0 -1
  213. package/dist/__tests__/useMediaRecorder.test.d.ts +0 -2
  214. package/dist/__tests__/useMediaRecorder.test.d.ts.map +0 -1
  215. package/dist/__tests__/useMediaRecorder.test.js +0 -153
  216. package/dist/__tests__/useMediaRecorder.test.js.map +0 -1
  217. package/dist/__tests__/versionHistory.test.d.ts +0 -2
  218. package/dist/__tests__/versionHistory.test.d.ts.map +0 -1
  219. package/dist/__tests__/versionHistory.test.js +0 -124
  220. package/dist/__tests__/versionHistory.test.js.map +0 -1
  221. package/dist/blockSlice.d.ts +0 -24
  222. package/dist/blockSlice.d.ts.map +0 -1
  223. package/dist/blockSlice.js +0 -63
  224. package/dist/blockSlice.js.map +0 -1
  225. package/dist/buildPreviewDoc.d.ts +0 -22
  226. package/dist/buildPreviewDoc.d.ts.map +0 -1
  227. package/dist/buildPreviewDoc.js +0 -262
  228. package/dist/buildPreviewDoc.js.map +0 -1
  229. package/dist/detectMarkdown.d.ts +0 -20
  230. package/dist/detectMarkdown.d.ts.map +0 -1
  231. package/dist/detectMarkdown.js +0 -61
  232. package/dist/detectMarkdown.js.map +0 -1
  233. package/dist/emojiData.d.ts +0 -81
  234. package/dist/emojiData.d.ts.map +0 -1
  235. package/dist/emojiData.js +0 -1283
  236. package/dist/emojiData.js.map +0 -1
  237. package/dist/fileKind.d.ts +0 -34
  238. package/dist/fileKind.d.ts.map +0 -1
  239. package/dist/fileKind.js +0 -144
  240. package/dist/fileKind.js.map +0 -1
  241. package/dist/hooks/useFileDrop.d.ts +0 -41
  242. package/dist/hooks/useFileDrop.d.ts.map +0 -1
  243. package/dist/hooks/useFileDrop.js +0 -205
  244. package/dist/hooks/useFileDrop.js.map +0 -1
  245. package/dist/imageEditor/CanvasSurface.d.ts +0 -31
  246. package/dist/imageEditor/CanvasSurface.d.ts.map +0 -1
  247. package/dist/imageEditor/CanvasSurface.js +0 -264
  248. package/dist/imageEditor/CanvasSurface.js.map +0 -1
  249. package/dist/imageEditor/ImageVersionHistoryDropdown.d.ts +0 -39
  250. package/dist/imageEditor/ImageVersionHistoryDropdown.d.ts.map +0 -1
  251. package/dist/imageEditor/ImageVersionHistoryDropdown.js +0 -283
  252. package/dist/imageEditor/ImageVersionHistoryDropdown.js.map +0 -1
  253. package/dist/imageEditor/LayersPanel.d.ts +0 -14
  254. package/dist/imageEditor/LayersPanel.d.ts.map +0 -1
  255. package/dist/imageEditor/LayersPanel.js +0 -43
  256. package/dist/imageEditor/LayersPanel.js.map +0 -1
  257. package/dist/imageEditor/PropertiesPanel.d.ts +0 -14
  258. package/dist/imageEditor/PropertiesPanel.d.ts.map +0 -1
  259. package/dist/imageEditor/PropertiesPanel.js +0 -97
  260. package/dist/imageEditor/PropertiesPanel.js.map +0 -1
  261. package/dist/imageEditor/Toolbar.d.ts +0 -30
  262. package/dist/imageEditor/Toolbar.d.ts.map +0 -1
  263. package/dist/imageEditor/Toolbar.js +0 -108
  264. package/dist/imageEditor/Toolbar.js.map +0 -1
  265. package/dist/imageEditor/icons.d.ts +0 -24
  266. package/dist/imageEditor/icons.d.ts.map +0 -1
  267. package/dist/imageEditor/icons.js +0 -45
  268. package/dist/imageEditor/icons.js.map +0 -1
  269. package/dist/imageEditor/layers/EditorImageLayer.d.ts +0 -16
  270. package/dist/imageEditor/layers/EditorImageLayer.d.ts.map +0 -1
  271. package/dist/imageEditor/layers/EditorImageLayer.js +0 -37
  272. package/dist/imageEditor/layers/EditorImageLayer.js.map +0 -1
  273. package/dist/imageEditor/layers/EditorShapeLayer.d.ts +0 -15
  274. package/dist/imageEditor/layers/EditorShapeLayer.d.ts.map +0 -1
  275. package/dist/imageEditor/layers/EditorShapeLayer.js +0 -20
  276. package/dist/imageEditor/layers/EditorShapeLayer.js.map +0 -1
  277. package/dist/imageEditor/layers/EditorTextLayer.d.ts +0 -18
  278. package/dist/imageEditor/layers/EditorTextLayer.d.ts.map +0 -1
  279. package/dist/imageEditor/layers/EditorTextLayer.js +0 -13
  280. package/dist/imageEditor/layers/EditorTextLayer.js.map +0 -1
  281. package/dist/imageEditor/layers/SelectionHandles.d.ts +0 -17
  282. package/dist/imageEditor/layers/SelectionHandles.d.ts.map +0 -1
  283. package/dist/imageEditor/layers/SelectionHandles.js +0 -19
  284. package/dist/imageEditor/layers/SelectionHandles.js.map +0 -1
  285. package/dist/imageEditor/state.d.ts +0 -76
  286. package/dist/imageEditor/state.d.ts.map +0 -1
  287. package/dist/imageEditor/state.js +0 -87
  288. package/dist/imageEditor/state.js.map +0 -1
  289. package/dist/imageEditor/useImageEditor.d.ts +0 -53
  290. package/dist/imageEditor/useImageEditor.d.ts.map +0 -1
  291. package/dist/imageEditor/useImageEditor.js +0 -244
  292. package/dist/imageEditor/useImageEditor.js.map +0 -1
  293. package/dist/imageEditor/useImageEditorTokens.d.ts +0 -16
  294. package/dist/imageEditor/useImageEditorTokens.d.ts.map +0 -1
  295. package/dist/imageEditor/useImageEditorTokens.js +0 -45
  296. package/dist/imageEditor/useImageEditorTokens.js.map +0 -1
  297. package/dist/index.d.ts.map +0 -1
  298. package/dist/jsonEditor/EmbeddedRichTextField.d.ts +0 -15
  299. package/dist/jsonEditor/EmbeddedRichTextField.d.ts.map +0 -1
  300. package/dist/jsonEditor/EmbeddedRichTextField.js +0 -74
  301. package/dist/jsonEditor/EmbeddedRichTextField.js.map +0 -1
  302. package/dist/jsonEditor/JsonEditor.d.ts +0 -36
  303. package/dist/jsonEditor/JsonEditor.d.ts.map +0 -1
  304. package/dist/jsonEditor/JsonEditor.js +0 -15
  305. package/dist/jsonEditor/JsonEditor.js.map +0 -1
  306. package/dist/jsonEditor/JsonEditorContext.d.ts +0 -28
  307. package/dist/jsonEditor/JsonEditorContext.d.ts.map +0 -1
  308. package/dist/jsonEditor/JsonEditorContext.js +0 -41
  309. package/dist/jsonEditor/JsonEditorContext.js.map +0 -1
  310. package/dist/jsonEditor/RenderNode.d.ts +0 -16
  311. package/dist/jsonEditor/RenderNode.d.ts.map +0 -1
  312. package/dist/jsonEditor/RenderNode.js +0 -32
  313. package/dist/jsonEditor/RenderNode.js.map +0 -1
  314. package/dist/jsonEditor/editors.d.ts +0 -36
  315. package/dist/jsonEditor/editors.d.ts.map +0 -1
  316. package/dist/jsonEditor/editors.js +0 -347
  317. package/dist/jsonEditor/editors.js.map +0 -1
  318. package/dist/jsonEditor/index.d.ts +0 -3
  319. package/dist/jsonEditor/index.d.ts.map +0 -1
  320. package/dist/jsonEditor/index.js +0 -2
  321. package/dist/jsonEditor/index.js.map +0 -1
  322. package/dist/jsonEditor/useJsonEditorTokens.d.ts +0 -13
  323. package/dist/jsonEditor/useJsonEditorTokens.d.ts.map +0 -1
  324. package/dist/jsonEditor/useJsonEditorTokens.js +0 -38
  325. package/dist/jsonEditor/useJsonEditorTokens.js.map +0 -1
  326. package/dist/mediaDragMime.d.ts +0 -17
  327. package/dist/mediaDragMime.d.ts.map +0 -1
  328. package/dist/mediaDragMime.js +0 -22
  329. package/dist/mediaDragMime.js.map +0 -1
  330. package/dist/recorder/RecorderButton.d.ts +0 -31
  331. package/dist/recorder/RecorderButton.d.ts.map +0 -1
  332. package/dist/recorder/RecorderButton.js +0 -24
  333. package/dist/recorder/RecorderButton.js.map +0 -1
  334. package/dist/recorder/RecorderModal.d.ts +0 -59
  335. package/dist/recorder/RecorderModal.d.ts.map +0 -1
  336. package/dist/recorder/RecorderModal.js +0 -333
  337. package/dist/recorder/RecorderModal.js.map +0 -1
  338. package/dist/recorder/RecorderPanel.d.ts +0 -25
  339. package/dist/recorder/RecorderPanel.d.ts.map +0 -1
  340. package/dist/recorder/RecorderPanel.js +0 -30
  341. package/dist/recorder/RecorderPanel.js.map +0 -1
  342. package/dist/recorder/formats.d.ts +0 -51
  343. package/dist/recorder/formats.d.ts.map +0 -1
  344. package/dist/recorder/formats.js +0 -144
  345. package/dist/recorder/formats.js.map +0 -1
  346. package/dist/recorder/hooks/useMediaRecorder.d.ts +0 -90
  347. package/dist/recorder/hooks/useMediaRecorder.d.ts.map +0 -1
  348. package/dist/recorder/hooks/useMediaRecorder.js +0 -277
  349. package/dist/recorder/hooks/useMediaRecorder.js.map +0 -1
  350. package/dist/recorder/hooks/useStreamPreview.d.ts +0 -22
  351. package/dist/recorder/hooks/useStreamPreview.d.ts.map +0 -1
  352. package/dist/recorder/hooks/useStreamPreview.js +0 -44
  353. package/dist/recorder/hooks/useStreamPreview.js.map +0 -1
  354. package/dist/recorder/sources/cameraStream.d.ts +0 -22
  355. package/dist/recorder/sources/cameraStream.d.ts.map +0 -1
  356. package/dist/recorder/sources/cameraStream.js +0 -24
  357. package/dist/recorder/sources/cameraStream.js.map +0 -1
  358. package/dist/recorder/sources/micStream.d.ts +0 -15
  359. package/dist/recorder/sources/micStream.d.ts.map +0 -1
  360. package/dist/recorder/sources/micStream.js +0 -24
  361. package/dist/recorder/sources/micStream.js.map +0 -1
  362. package/dist/recorder/sources/screenStream.d.ts +0 -53
  363. package/dist/recorder/sources/screenStream.d.ts.map +0 -1
  364. package/dist/recorder/sources/screenStream.js +0 -114
  365. package/dist/recorder/sources/screenStream.js.map +0 -1
  366. package/dist/recorder/timingJson.d.ts +0 -51
  367. package/dist/recorder/timingJson.d.ts.map +0 -1
  368. package/dist/recorder/timingJson.js +0 -42
  369. package/dist/recorder/timingJson.js.map +0 -1
  370. package/dist/tiptap/TiptapAudio.d.ts +0 -26
  371. package/dist/tiptap/TiptapAudio.d.ts.map +0 -1
  372. package/dist/tiptap/TiptapAudio.js +0 -58
  373. package/dist/tiptap/TiptapAudio.js.map +0 -1
  374. package/dist/tiptap/TiptapVideo.d.ts +0 -30
  375. package/dist/tiptap/TiptapVideo.d.ts.map +0 -1
  376. package/dist/tiptap/TiptapVideo.js +0 -66
  377. package/dist/tiptap/TiptapVideo.js.map +0 -1
  378. package/dist/tiptap/useResolvedMediaSrc.d.ts +0 -2
  379. package/dist/tiptap/useResolvedMediaSrc.d.ts.map +0 -1
  380. package/dist/tiptap/useResolvedMediaSrc.js +0 -42
  381. package/dist/tiptap/useResolvedMediaSrc.js.map +0 -1
  382. package/dist/tiptapBridge.d.ts +0 -24
  383. package/dist/tiptapBridge.d.ts.map +0 -1
  384. package/dist/tiptapBridge.js +0 -749
  385. package/dist/tiptapBridge.js.map +0 -1
  386. package/dist/useHeadingLayout.d.ts +0 -54
  387. package/dist/useHeadingLayout.d.ts.map +0 -1
  388. package/dist/useHeadingLayout.js +0 -260
  389. package/dist/useHeadingLayout.js.map +0 -1
  390. package/dist/utils/collectInlineFontAwesomeCss.d.ts +0 -21
  391. package/dist/utils/collectInlineFontAwesomeCss.d.ts.map +0 -1
  392. package/dist/utils/collectInlineFontAwesomeCss.js +0 -68
  393. package/dist/utils/collectInlineFontAwesomeCss.js.map +0 -1
  394. package/dist/utils/dropUtils.d.ts +0 -55
  395. package/dist/utils/dropUtils.d.ts.map +0 -1
  396. package/dist/utils/dropUtils.js +0 -110
  397. package/dist/utils/dropUtils.js.map +0 -1
  398. package/dist/utils/normalizeMalformedAssetUrl.d.ts +0 -15
  399. package/dist/utils/normalizeMalformedAssetUrl.d.ts.map +0 -1
  400. package/dist/utils/normalizeMalformedAssetUrl.js +0 -27
  401. package/dist/utils/normalizeMalformedAssetUrl.js.map +0 -1
@@ -1,24 +0,0 @@
1
- /**
2
- * Camera + microphone capture via `getUserMedia({ video, audio })`.
3
- */
4
- import { supportsUserMedia } from '../formats.js';
5
- /**
6
- * Request a camera + mic `MediaStream`. Caller owns the stream and must
7
- * stop its tracks when done.
8
- *
9
- * Both tracks are requested by default. To capture video only, pass
10
- * `audio: false`; to capture audio only use {@link requestMicStream}
11
- * instead.
12
- *
13
- * @throws When `mediaDevices` is unavailable, or when the user denies
14
- * permission.
15
- */
16
- export async function requestCameraStream(options) {
17
- if (!supportsUserMedia()) {
18
- throw new Error('navigator.mediaDevices.getUserMedia is not available in this environment.');
19
- }
20
- const video = options?.video ?? true;
21
- const audio = options?.audio ?? true;
22
- return navigator.mediaDevices.getUserMedia({ video, audio });
23
- }
24
- //# sourceMappingURL=cameraStream.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cameraStream.js","sourceRoot":"","sources":["../../../src/recorder/sources/cameraStream.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AASlD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAA6B;IACrE,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;IAC/F,CAAC;IACD,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,IAAI,CAAC;IACrC,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,IAAI,CAAC;IACrC,OAAO,SAAS,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;AAC/D,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Microphone-only capture via `getUserMedia({ audio: true })`.
3
- */
4
- /**
5
- * Request a microphone-only `MediaStream`. Caller owns the stream and
6
- * must stop its tracks when done.
7
- *
8
- * @param constraints - Optional audio constraints (sample rate, device
9
- * id, echo cancellation, etc.). Defaults to `true` — let the browser
10
- * pick.
11
- * @throws When `mediaDevices` is unavailable, or when the user denies
12
- * permission (the underlying `getUserMedia` rejection propagates).
13
- */
14
- export declare function requestMicStream(constraints?: MediaTrackConstraints): Promise<MediaStream>;
15
- //# sourceMappingURL=micStream.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"micStream.d.ts","sourceRoot":"","sources":["../../../src/recorder/sources/micStream.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC,CAQhG"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Microphone-only capture via `getUserMedia({ audio: true })`.
3
- */
4
- import { supportsUserMedia } from '../formats.js';
5
- /**
6
- * Request a microphone-only `MediaStream`. Caller owns the stream and
7
- * must stop its tracks when done.
8
- *
9
- * @param constraints - Optional audio constraints (sample rate, device
10
- * id, echo cancellation, etc.). Defaults to `true` — let the browser
11
- * pick.
12
- * @throws When `mediaDevices` is unavailable, or when the user denies
13
- * permission (the underlying `getUserMedia` rejection propagates).
14
- */
15
- export async function requestMicStream(constraints) {
16
- if (!supportsUserMedia()) {
17
- throw new Error('navigator.mediaDevices.getUserMedia is not available in this environment.');
18
- }
19
- return navigator.mediaDevices.getUserMedia({
20
- audio: constraints ?? true,
21
- video: false,
22
- });
23
- }
24
- //# sourceMappingURL=micStream.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"micStream.js","sourceRoot":"","sources":["../../../src/recorder/sources/micStream.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,WAAmC;IACxE,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO,SAAS,CAAC,YAAY,CAAC,YAAY,CAAC;QACzC,KAAK,EAAE,WAAW,IAAI,IAAI;QAC1B,KAAK,EAAE,KAAK;KACb,CAAC,CAAC;AACL,CAAC"}
@@ -1,53 +0,0 @@
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
- export interface ScreenStreamOptions {
13
- /** Video constraints for the screen surface. Pass `true` for browser default. */
14
- video?: boolean | MediaTrackConstraints;
15
- /**
16
- * Whether to attempt to capture the system audio (tab / window / monitor
17
- * audio). Browser support is limited (desktop Chromium only); when the
18
- * platform doesn't honor this flag, the resulting stream simply omits
19
- * the system audio track.
20
- */
21
- systemAudio?: boolean;
22
- /**
23
- * Whether to also pull the microphone via `getUserMedia` and mix it
24
- * into the resulting stream's audio track. When both `systemAudio` and
25
- * `includeMicrophone` produce tracks, they're combined via
26
- * `AudioContext` into a single output track.
27
- */
28
- includeMicrophone?: boolean;
29
- /** Microphone track constraints, when `includeMicrophone` is true. */
30
- microphoneConstraints?: MediaTrackConstraints;
31
- }
32
- /**
33
- * Handle returned by {@link requestScreenStream}. The `stream` is what
34
- * gets handed to `MediaRecorder`; the `dispose()` callback shuts down
35
- * any auxiliary resources (e.g. the mic-mix `AudioContext`). Callers
36
- * must also stop the stream's tracks via `stream.getTracks().forEach(t
37
- * => t.stop())` when done — `dispose()` cleans up everything that isn't
38
- * the stream itself.
39
- */
40
- export interface ScreenStreamHandle {
41
- stream: MediaStream;
42
- /** Auxiliary cleanup beyond the stream tracks. Safe to call multiple times. */
43
- dispose: () => void;
44
- }
45
- /**
46
- * Request a screen-capture `MediaStream`, optionally with a mixed-in
47
- * microphone track. Caller owns the resulting stream.
48
- *
49
- * @throws When `getDisplayMedia` isn't available, or when the user
50
- * cancels the picker / denies permission.
51
- */
52
- export declare function requestScreenStream(options?: ScreenStreamOptions): Promise<ScreenStreamHandle>;
53
- //# sourceMappingURL=screenStream.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"screenStream.d.ts","sourceRoot":"","sources":["../../../src/recorder/sources/screenStream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,WAAW,mBAAmB;IAClC,iFAAiF;IACjF,KAAK,CAAC,EAAE,OAAO,GAAG,qBAAqB,CAAC;IACxC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sEAAsE;IACtE,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C;AA8BD;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CA2E7B"}
@@ -1,114 +0,0 @@
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
@@ -1 +0,0 @@
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,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;SAC9B,IAAI,EAAE;SACN,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,MAAM,CAAC,CAAC;IAC1C,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEtC,MAAM,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC;IAC/B,IAAI,OAAO,EAAE,KAAK,WAAW;QAAE,OAAO,IAAI,CAAC;IAC3C,MAAM,GAAG,GAAG,IAAI,EAAE,EAAE,CAAC;IACrB,MAAM,IAAI,GAAG,GAAG,CAAC,4BAA4B,EAAE,CAAC;IAChD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,GAAG,CAAC,uBAAuB,CAAC,IAAI,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAClE,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;IAC7C,IAAI,C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EF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
@@ -1,51 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,42 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,58 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3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E,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"}
@@ -1,30 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,66 +0,0 @@
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
@@ -1 +0,0 @@
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,eA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E,OAAO,EAAE,IAAI,EAAE;YACzB,gEAAgE;YAChE,mEAAmE;YACnE,kEAAkE;YAClE,QAAQ,EAAE;gBACR,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,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"}
@@ -1,2 +0,0 @@
1
- export declare function useResolvedMediaSrc(src: string): string;
2
- //# sourceMappingURL=useResolvedMediaSrc.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,42 +0,0 @@
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
@@ -1 +0,0 @@
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,24 +0,0 @@
1
- /**
2
- * Tiptap Bridge
3
- *
4
- * Conversion utilities between raw markdown source and Tiptap's JSON/HTML
5
- * content format. Uses a lightweight HTML-based approach: we convert markdown
6
- * to a simple HTML representation that Tiptap can consume, and parse
7
- * Tiptap's HTML output back to markdown.
8
- *
9
- * This bridge preserves markdown semantics much better than going through
10
- * Tiptap's native markdown extension, since we control the conversion
11
- * using squisq's own parser.
12
- */
13
- /**
14
- * Convert raw markdown source to Tiptap-consumable HTML content.
15
- * Uses a simple markdown-to-HTML conversion that maps cleanly to
16
- * Tiptap's ProseMirror schema.
17
- */
18
- export declare function markdownToTiptap(markdown: string): string;
19
- /**
20
- * Convert Tiptap HTML output back to markdown source.
21
- * Extracts semantic structure from HTML and produces clean markdown.
22
- */
23
- export declare function tiptapToMarkdown(html: string): string;
24
- //# sourceMappingURL=tiptapBridge.d.ts.map