@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.
- package/dist/index.d.ts +1991 -90
- package/dist/index.js +17088 -82
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/DocumentSettingsDialog.d.ts +0 -26
- package/dist/DocumentSettingsDialog.d.ts.map +0 -1
- package/dist/DocumentSettingsDialog.js +0 -115
- package/dist/DocumentSettingsDialog.js.map +0 -1
- package/dist/DropZoneOverlay.d.ts +0 -24
- package/dist/DropZoneOverlay.d.ts.map +0 -1
- package/dist/DropZoneOverlay.js +0 -53
- package/dist/DropZoneOverlay.js.map +0 -1
- package/dist/EditorContext.d.ts +0 -391
- package/dist/EditorContext.d.ts.map +0 -1
- package/dist/EditorContext.js +0 -471
- package/dist/EditorContext.js.map +0 -1
- package/dist/EditorShell.d.ts +0 -328
- package/dist/EditorShell.d.ts.map +0 -1
- package/dist/EditorShell.js +0 -290
- package/dist/EditorShell.js.map +0 -1
- package/dist/EmojiPicker.d.ts +0 -50
- package/dist/EmojiPicker.d.ts.map +0 -1
- package/dist/EmojiPicker.js +0 -182
- package/dist/EmojiPicker.js.map +0 -1
- package/dist/ImageEditor.d.ts +0 -68
- package/dist/ImageEditor.d.ts.map +0 -1
- package/dist/ImageEditor.js +0 -166
- package/dist/ImageEditor.js.map +0 -1
- package/dist/ImageNodeView.d.ts +0 -27
- package/dist/ImageNodeView.d.ts.map +0 -1
- package/dist/ImageNodeView.js +0 -215
- package/dist/ImageNodeView.js.map +0 -1
- package/dist/ImageViewer.d.ts +0 -26
- package/dist/ImageViewer.d.ts.map +0 -1
- package/dist/ImageViewer.js +0 -119
- package/dist/ImageViewer.js.map +0 -1
- package/dist/InlineIcon.d.ts +0 -17
- package/dist/InlineIcon.d.ts.map +0 -1
- package/dist/InlineIcon.js +0 -72
- package/dist/InlineIcon.js.map +0 -1
- package/dist/InlinePreviewGutter.d.ts +0 -52
- package/dist/InlinePreviewGutter.d.ts.map +0 -1
- package/dist/InlinePreviewGutter.js +0 -397
- package/dist/InlinePreviewGutter.js.map +0 -1
- package/dist/LinkDialog.d.ts +0 -43
- package/dist/LinkDialog.d.ts.map +0 -1
- package/dist/LinkDialog.js +0 -102
- package/dist/LinkDialog.js.map +0 -1
- package/dist/MediaBin.d.ts +0 -29
- package/dist/MediaBin.d.ts.map +0 -1
- package/dist/MediaBin.js +0 -166
- package/dist/MediaBin.js.map +0 -1
- package/dist/MentionExtension.d.ts +0 -22
- package/dist/MentionExtension.d.ts.map +0 -1
- package/dist/MentionExtension.js +0 -245
- package/dist/MentionExtension.js.map +0 -1
- package/dist/OutlinePanel.d.ts +0 -17
- package/dist/OutlinePanel.d.ts.map +0 -1
- package/dist/OutlinePanel.js +0 -167
- package/dist/OutlinePanel.js.map +0 -1
- package/dist/PlainHtmlPreview.d.ts +0 -50
- package/dist/PlainHtmlPreview.d.ts.map +0 -1
- package/dist/PlainHtmlPreview.js +0 -155
- package/dist/PlainHtmlPreview.js.map +0 -1
- package/dist/PreviewControls.d.ts +0 -55
- package/dist/PreviewControls.d.ts.map +0 -1
- package/dist/PreviewControls.js +0 -277
- package/dist/PreviewControls.js.map +0 -1
- package/dist/PreviewPanel.d.ts +0 -29
- package/dist/PreviewPanel.d.ts.map +0 -1
- package/dist/PreviewPanel.js +0 -94
- package/dist/PreviewPanel.js.map +0 -1
- package/dist/RawEditor.d.ts +0 -32
- package/dist/RawEditor.d.ts.map +0 -1
- package/dist/RawEditor.js +0 -440
- package/dist/RawEditor.js.map +0 -1
- package/dist/RecorderEntry.d.ts +0 -24
- package/dist/RecorderEntry.d.ts.map +0 -1
- package/dist/RecorderEntry.js +0 -139
- package/dist/RecorderEntry.js.map +0 -1
- package/dist/StatusBar.d.ts +0 -15
- package/dist/StatusBar.d.ts.map +0 -1
- package/dist/StatusBar.js +0 -24
- package/dist/StatusBar.js.map +0 -1
- package/dist/TemplateAnnotation.d.ts +0 -20
- package/dist/TemplateAnnotation.d.ts.map +0 -1
- package/dist/TemplateAnnotation.js +0 -97
- package/dist/TemplateAnnotation.js.map +0 -1
- package/dist/TemplatePicker.d.ts +0 -53
- package/dist/TemplatePicker.d.ts.map +0 -1
- package/dist/TemplatePicker.js +0 -388
- package/dist/TemplatePicker.js.map +0 -1
- package/dist/ThemeCustomizerPanel.d.ts +0 -32
- package/dist/ThemeCustomizerPanel.d.ts.map +0 -1
- package/dist/ThemeCustomizerPanel.js +0 -256
- package/dist/ThemeCustomizerPanel.js.map +0 -1
- package/dist/ThemePicker.d.ts +0 -33
- package/dist/ThemePicker.d.ts.map +0 -1
- package/dist/ThemePicker.js +0 -148
- package/dist/ThemePicker.js.map +0 -1
- package/dist/Toolbar.d.ts +0 -36
- package/dist/Toolbar.d.ts.map +0 -1
- package/dist/Toolbar.js +0 -1001
- package/dist/Toolbar.js.map +0 -1
- package/dist/Tooltip.d.ts +0 -10
- package/dist/Tooltip.d.ts.map +0 -1
- package/dist/Tooltip.js +0 -104
- package/dist/Tooltip.js.map +0 -1
- package/dist/VersionHistoryPanel.d.ts +0 -14
- package/dist/VersionHistoryPanel.d.ts.map +0 -1
- package/dist/VersionHistoryPanel.js +0 -147
- package/dist/VersionHistoryPanel.js.map +0 -1
- package/dist/ViewMenuPanel.d.ts +0 -13
- package/dist/ViewMenuPanel.d.ts.map +0 -1
- package/dist/ViewMenuPanel.js +0 -58
- package/dist/ViewMenuPanel.js.map +0 -1
- package/dist/ViewSwitcher.d.ts +0 -14
- package/dist/ViewSwitcher.d.ts.map +0 -1
- package/dist/ViewSwitcher.js +0 -26
- package/dist/ViewSwitcher.js.map +0 -1
- package/dist/WysiwygEditor.d.ts +0 -39
- package/dist/WysiwygEditor.d.ts.map +0 -1
- package/dist/WysiwygEditor.js +0 -537
- package/dist/WysiwygEditor.js.map +0 -1
- package/dist/__tests__/detectMarkdown.test.d.ts +0 -2
- package/dist/__tests__/detectMarkdown.test.d.ts.map +0 -1
- package/dist/__tests__/detectMarkdown.test.js +0 -55
- package/dist/__tests__/detectMarkdown.test.js.map +0 -1
- package/dist/__tests__/documentSettingsDialog.test.d.ts +0 -2
- package/dist/__tests__/documentSettingsDialog.test.d.ts.map +0 -1
- package/dist/__tests__/documentSettingsDialog.test.js +0 -132
- package/dist/__tests__/documentSettingsDialog.test.js.map +0 -1
- package/dist/__tests__/emojiPicker.test.d.ts +0 -2
- package/dist/__tests__/emojiPicker.test.d.ts.map +0 -1
- package/dist/__tests__/emojiPicker.test.js +0 -111
- package/dist/__tests__/emojiPicker.test.js.map +0 -1
- package/dist/__tests__/fileKind.test.d.ts +0 -2
- package/dist/__tests__/fileKind.test.d.ts.map +0 -1
- package/dist/__tests__/fileKind.test.js +0 -94
- package/dist/__tests__/fileKind.test.js.map +0 -1
- package/dist/__tests__/imageEditAffordance.test.d.ts +0 -2
- package/dist/__tests__/imageEditAffordance.test.d.ts.map +0 -1
- package/dist/__tests__/imageEditAffordance.test.js +0 -188
- package/dist/__tests__/imageEditAffordance.test.js.map +0 -1
- package/dist/__tests__/imageEditorShell.test.d.ts +0 -2
- package/dist/__tests__/imageEditorShell.test.d.ts.map +0 -1
- package/dist/__tests__/imageEditorShell.test.js +0 -52
- package/dist/__tests__/imageEditorShell.test.js.map +0 -1
- package/dist/__tests__/imageEditorState.test.d.ts +0 -3
- package/dist/__tests__/imageEditorState.test.d.ts.map +0 -1
- package/dist/__tests__/imageEditorState.test.js +0 -148
- package/dist/__tests__/imageEditorState.test.js.map +0 -1
- package/dist/__tests__/inlinePreviewGutter.test.d.ts +0 -2
- package/dist/__tests__/inlinePreviewGutter.test.d.ts.map +0 -1
- package/dist/__tests__/inlinePreviewGutter.test.js +0 -51
- package/dist/__tests__/inlinePreviewGutter.test.js.map +0 -1
- package/dist/__tests__/inlinePreviewGutterAllBlocks.test.d.ts +0 -2
- package/dist/__tests__/inlinePreviewGutterAllBlocks.test.d.ts.map +0 -1
- package/dist/__tests__/inlinePreviewGutterAllBlocks.test.js +0 -63
- package/dist/__tests__/inlinePreviewGutterAllBlocks.test.js.map +0 -1
- package/dist/__tests__/jsonEditor.test.d.ts +0 -2
- package/dist/__tests__/jsonEditor.test.d.ts.map +0 -1
- package/dist/__tests__/jsonEditor.test.js +0 -134
- package/dist/__tests__/jsonEditor.test.js.map +0 -1
- package/dist/__tests__/layersPanel.test.d.ts +0 -2
- package/dist/__tests__/layersPanel.test.d.ts.map +0 -1
- package/dist/__tests__/layersPanel.test.js +0 -84
- package/dist/__tests__/layersPanel.test.js.map +0 -1
- package/dist/__tests__/linkDialogDocPicker.test.d.ts +0 -7
- package/dist/__tests__/linkDialogDocPicker.test.d.ts.map +0 -1
- package/dist/__tests__/linkDialogDocPicker.test.js +0 -75
- package/dist/__tests__/linkDialogDocPicker.test.js.map +0 -1
- package/dist/__tests__/mediaAttachmentFlow.test.d.ts +0 -2
- package/dist/__tests__/mediaAttachmentFlow.test.d.ts.map +0 -1
- package/dist/__tests__/mediaAttachmentFlow.test.js +0 -99
- package/dist/__tests__/mediaAttachmentFlow.test.js.map +0 -1
- package/dist/__tests__/outlinePanel.test.d.ts +0 -2
- package/dist/__tests__/outlinePanel.test.d.ts.map +0 -1
- package/dist/__tests__/outlinePanel.test.js +0 -68
- package/dist/__tests__/outlinePanel.test.js.map +0 -1
- package/dist/__tests__/plainHtmlPreview.test.d.ts +0 -2
- package/dist/__tests__/plainHtmlPreview.test.d.ts.map +0 -1
- package/dist/__tests__/plainHtmlPreview.test.js +0 -87
- package/dist/__tests__/plainHtmlPreview.test.js.map +0 -1
- package/dist/__tests__/propertiesPanel.test.d.ts +0 -2
- package/dist/__tests__/propertiesPanel.test.d.ts.map +0 -1
- package/dist/__tests__/propertiesPanel.test.js +0 -64
- package/dist/__tests__/propertiesPanel.test.js.map +0 -1
- package/dist/__tests__/recorderFormats.test.d.ts +0 -2
- package/dist/__tests__/recorderFormats.test.d.ts.map +0 -1
- package/dist/__tests__/recorderFormats.test.js +0 -121
- package/dist/__tests__/recorderFormats.test.js.map +0 -1
- package/dist/__tests__/recorderTimingJson.test.d.ts +0 -2
- package/dist/__tests__/recorderTimingJson.test.d.ts.map +0 -1
- package/dist/__tests__/recorderTimingJson.test.js +0 -37
- package/dist/__tests__/recorderTimingJson.test.js.map +0 -1
- package/dist/__tests__/templateAnnotationRoundTrip.test.d.ts +0 -2
- package/dist/__tests__/templateAnnotationRoundTrip.test.d.ts.map +0 -1
- package/dist/__tests__/templateAnnotationRoundTrip.test.js +0 -31
- package/dist/__tests__/templateAnnotationRoundTrip.test.js.map +0 -1
- package/dist/__tests__/tiptapBridge.test.d.ts +0 -2
- package/dist/__tests__/tiptapBridge.test.d.ts.map +0 -1
- package/dist/__tests__/tiptapBridge.test.js +0 -303
- package/dist/__tests__/tiptapBridge.test.js.map +0 -1
- package/dist/__tests__/tiptapImageRoundTrip.test.d.ts +0 -2
- package/dist/__tests__/tiptapImageRoundTrip.test.d.ts.map +0 -1
- package/dist/__tests__/tiptapImageRoundTrip.test.js +0 -68
- package/dist/__tests__/tiptapImageRoundTrip.test.js.map +0 -1
- package/dist/__tests__/useImageEditor.test.d.ts +0 -2
- package/dist/__tests__/useImageEditor.test.d.ts.map +0 -1
- package/dist/__tests__/useImageEditor.test.js +0 -131
- package/dist/__tests__/useImageEditor.test.js.map +0 -1
- package/dist/__tests__/useMediaRecorder.test.d.ts +0 -2
- package/dist/__tests__/useMediaRecorder.test.d.ts.map +0 -1
- package/dist/__tests__/useMediaRecorder.test.js +0 -153
- package/dist/__tests__/useMediaRecorder.test.js.map +0 -1
- package/dist/__tests__/versionHistory.test.d.ts +0 -2
- package/dist/__tests__/versionHistory.test.d.ts.map +0 -1
- package/dist/__tests__/versionHistory.test.js +0 -124
- package/dist/__tests__/versionHistory.test.js.map +0 -1
- package/dist/blockSlice.d.ts +0 -24
- package/dist/blockSlice.d.ts.map +0 -1
- package/dist/blockSlice.js +0 -63
- package/dist/blockSlice.js.map +0 -1
- package/dist/buildPreviewDoc.d.ts +0 -22
- package/dist/buildPreviewDoc.d.ts.map +0 -1
- package/dist/buildPreviewDoc.js +0 -262
- package/dist/buildPreviewDoc.js.map +0 -1
- package/dist/detectMarkdown.d.ts +0 -20
- package/dist/detectMarkdown.d.ts.map +0 -1
- package/dist/detectMarkdown.js +0 -61
- package/dist/detectMarkdown.js.map +0 -1
- package/dist/emojiData.d.ts +0 -81
- package/dist/emojiData.d.ts.map +0 -1
- package/dist/emojiData.js +0 -1283
- package/dist/emojiData.js.map +0 -1
- package/dist/fileKind.d.ts +0 -34
- package/dist/fileKind.d.ts.map +0 -1
- package/dist/fileKind.js +0 -144
- package/dist/fileKind.js.map +0 -1
- package/dist/hooks/useFileDrop.d.ts +0 -41
- package/dist/hooks/useFileDrop.d.ts.map +0 -1
- package/dist/hooks/useFileDrop.js +0 -205
- package/dist/hooks/useFileDrop.js.map +0 -1
- package/dist/imageEditor/CanvasSurface.d.ts +0 -31
- package/dist/imageEditor/CanvasSurface.d.ts.map +0 -1
- package/dist/imageEditor/CanvasSurface.js +0 -264
- package/dist/imageEditor/CanvasSurface.js.map +0 -1
- package/dist/imageEditor/ImageVersionHistoryDropdown.d.ts +0 -39
- package/dist/imageEditor/ImageVersionHistoryDropdown.d.ts.map +0 -1
- package/dist/imageEditor/ImageVersionHistoryDropdown.js +0 -283
- package/dist/imageEditor/ImageVersionHistoryDropdown.js.map +0 -1
- package/dist/imageEditor/LayersPanel.d.ts +0 -14
- package/dist/imageEditor/LayersPanel.d.ts.map +0 -1
- package/dist/imageEditor/LayersPanel.js +0 -43
- package/dist/imageEditor/LayersPanel.js.map +0 -1
- package/dist/imageEditor/PropertiesPanel.d.ts +0 -14
- package/dist/imageEditor/PropertiesPanel.d.ts.map +0 -1
- package/dist/imageEditor/PropertiesPanel.js +0 -97
- package/dist/imageEditor/PropertiesPanel.js.map +0 -1
- package/dist/imageEditor/Toolbar.d.ts +0 -30
- package/dist/imageEditor/Toolbar.d.ts.map +0 -1
- package/dist/imageEditor/Toolbar.js +0 -108
- package/dist/imageEditor/Toolbar.js.map +0 -1
- package/dist/imageEditor/icons.d.ts +0 -24
- package/dist/imageEditor/icons.d.ts.map +0 -1
- package/dist/imageEditor/icons.js +0 -45
- package/dist/imageEditor/icons.js.map +0 -1
- package/dist/imageEditor/layers/EditorImageLayer.d.ts +0 -16
- package/dist/imageEditor/layers/EditorImageLayer.d.ts.map +0 -1
- package/dist/imageEditor/layers/EditorImageLayer.js +0 -37
- package/dist/imageEditor/layers/EditorImageLayer.js.map +0 -1
- package/dist/imageEditor/layers/EditorShapeLayer.d.ts +0 -15
- package/dist/imageEditor/layers/EditorShapeLayer.d.ts.map +0 -1
- package/dist/imageEditor/layers/EditorShapeLayer.js +0 -20
- package/dist/imageEditor/layers/EditorShapeLayer.js.map +0 -1
- package/dist/imageEditor/layers/EditorTextLayer.d.ts +0 -18
- package/dist/imageEditor/layers/EditorTextLayer.d.ts.map +0 -1
- package/dist/imageEditor/layers/EditorTextLayer.js +0 -13
- package/dist/imageEditor/layers/EditorTextLayer.js.map +0 -1
- package/dist/imageEditor/layers/SelectionHandles.d.ts +0 -17
- package/dist/imageEditor/layers/SelectionHandles.d.ts.map +0 -1
- package/dist/imageEditor/layers/SelectionHandles.js +0 -19
- package/dist/imageEditor/layers/SelectionHandles.js.map +0 -1
- package/dist/imageEditor/state.d.ts +0 -76
- package/dist/imageEditor/state.d.ts.map +0 -1
- package/dist/imageEditor/state.js +0 -87
- package/dist/imageEditor/state.js.map +0 -1
- package/dist/imageEditor/useImageEditor.d.ts +0 -53
- package/dist/imageEditor/useImageEditor.d.ts.map +0 -1
- package/dist/imageEditor/useImageEditor.js +0 -244
- package/dist/imageEditor/useImageEditor.js.map +0 -1
- package/dist/imageEditor/useImageEditorTokens.d.ts +0 -16
- package/dist/imageEditor/useImageEditorTokens.d.ts.map +0 -1
- package/dist/imageEditor/useImageEditorTokens.js +0 -45
- package/dist/imageEditor/useImageEditorTokens.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/jsonEditor/EmbeddedRichTextField.d.ts +0 -15
- package/dist/jsonEditor/EmbeddedRichTextField.d.ts.map +0 -1
- package/dist/jsonEditor/EmbeddedRichTextField.js +0 -74
- package/dist/jsonEditor/EmbeddedRichTextField.js.map +0 -1
- package/dist/jsonEditor/JsonEditor.d.ts +0 -36
- package/dist/jsonEditor/JsonEditor.d.ts.map +0 -1
- package/dist/jsonEditor/JsonEditor.js +0 -15
- package/dist/jsonEditor/JsonEditor.js.map +0 -1
- package/dist/jsonEditor/JsonEditorContext.d.ts +0 -28
- package/dist/jsonEditor/JsonEditorContext.d.ts.map +0 -1
- package/dist/jsonEditor/JsonEditorContext.js +0 -41
- package/dist/jsonEditor/JsonEditorContext.js.map +0 -1
- package/dist/jsonEditor/RenderNode.d.ts +0 -16
- package/dist/jsonEditor/RenderNode.d.ts.map +0 -1
- package/dist/jsonEditor/RenderNode.js +0 -32
- package/dist/jsonEditor/RenderNode.js.map +0 -1
- package/dist/jsonEditor/editors.d.ts +0 -36
- package/dist/jsonEditor/editors.d.ts.map +0 -1
- package/dist/jsonEditor/editors.js +0 -347
- package/dist/jsonEditor/editors.js.map +0 -1
- package/dist/jsonEditor/index.d.ts +0 -3
- package/dist/jsonEditor/index.d.ts.map +0 -1
- package/dist/jsonEditor/index.js +0 -2
- package/dist/jsonEditor/index.js.map +0 -1
- package/dist/jsonEditor/useJsonEditorTokens.d.ts +0 -13
- package/dist/jsonEditor/useJsonEditorTokens.d.ts.map +0 -1
- package/dist/jsonEditor/useJsonEditorTokens.js +0 -38
- package/dist/jsonEditor/useJsonEditorTokens.js.map +0 -1
- package/dist/mediaDragMime.d.ts +0 -17
- package/dist/mediaDragMime.d.ts.map +0 -1
- package/dist/mediaDragMime.js +0 -22
- package/dist/mediaDragMime.js.map +0 -1
- package/dist/recorder/RecorderButton.d.ts +0 -31
- package/dist/recorder/RecorderButton.d.ts.map +0 -1
- package/dist/recorder/RecorderButton.js +0 -24
- package/dist/recorder/RecorderButton.js.map +0 -1
- package/dist/recorder/RecorderModal.d.ts +0 -59
- package/dist/recorder/RecorderModal.d.ts.map +0 -1
- package/dist/recorder/RecorderModal.js +0 -333
- package/dist/recorder/RecorderModal.js.map +0 -1
- package/dist/recorder/RecorderPanel.d.ts +0 -25
- package/dist/recorder/RecorderPanel.d.ts.map +0 -1
- package/dist/recorder/RecorderPanel.js +0 -30
- package/dist/recorder/RecorderPanel.js.map +0 -1
- package/dist/recorder/formats.d.ts +0 -51
- package/dist/recorder/formats.d.ts.map +0 -1
- package/dist/recorder/formats.js +0 -144
- package/dist/recorder/formats.js.map +0 -1
- package/dist/recorder/hooks/useMediaRecorder.d.ts +0 -90
- package/dist/recorder/hooks/useMediaRecorder.d.ts.map +0 -1
- package/dist/recorder/hooks/useMediaRecorder.js +0 -277
- package/dist/recorder/hooks/useMediaRecorder.js.map +0 -1
- package/dist/recorder/hooks/useStreamPreview.d.ts +0 -22
- package/dist/recorder/hooks/useStreamPreview.d.ts.map +0 -1
- package/dist/recorder/hooks/useStreamPreview.js +0 -44
- package/dist/recorder/hooks/useStreamPreview.js.map +0 -1
- package/dist/recorder/sources/cameraStream.d.ts +0 -22
- package/dist/recorder/sources/cameraStream.d.ts.map +0 -1
- package/dist/recorder/sources/cameraStream.js +0 -24
- package/dist/recorder/sources/cameraStream.js.map +0 -1
- package/dist/recorder/sources/micStream.d.ts +0 -15
- package/dist/recorder/sources/micStream.d.ts.map +0 -1
- package/dist/recorder/sources/micStream.js +0 -24
- package/dist/recorder/sources/micStream.js.map +0 -1
- package/dist/recorder/sources/screenStream.d.ts +0 -53
- package/dist/recorder/sources/screenStream.d.ts.map +0 -1
- package/dist/recorder/sources/screenStream.js +0 -114
- package/dist/recorder/sources/screenStream.js.map +0 -1
- package/dist/recorder/timingJson.d.ts +0 -51
- package/dist/recorder/timingJson.d.ts.map +0 -1
- package/dist/recorder/timingJson.js +0 -42
- package/dist/recorder/timingJson.js.map +0 -1
- package/dist/tiptap/TiptapAudio.d.ts +0 -26
- package/dist/tiptap/TiptapAudio.d.ts.map +0 -1
- package/dist/tiptap/TiptapAudio.js +0 -58
- package/dist/tiptap/TiptapAudio.js.map +0 -1
- package/dist/tiptap/TiptapVideo.d.ts +0 -30
- package/dist/tiptap/TiptapVideo.d.ts.map +0 -1
- package/dist/tiptap/TiptapVideo.js +0 -66
- package/dist/tiptap/TiptapVideo.js.map +0 -1
- package/dist/tiptap/useResolvedMediaSrc.d.ts +0 -2
- package/dist/tiptap/useResolvedMediaSrc.d.ts.map +0 -1
- package/dist/tiptap/useResolvedMediaSrc.js +0 -42
- package/dist/tiptap/useResolvedMediaSrc.js.map +0 -1
- package/dist/tiptapBridge.d.ts +0 -24
- package/dist/tiptapBridge.d.ts.map +0 -1
- package/dist/tiptapBridge.js +0 -749
- package/dist/tiptapBridge.js.map +0 -1
- package/dist/useHeadingLayout.d.ts +0 -54
- package/dist/useHeadingLayout.d.ts.map +0 -1
- package/dist/useHeadingLayout.js +0 -260
- package/dist/useHeadingLayout.js.map +0 -1
- package/dist/utils/collectInlineFontAwesomeCss.d.ts +0 -21
- package/dist/utils/collectInlineFontAwesomeCss.d.ts.map +0 -1
- package/dist/utils/collectInlineFontAwesomeCss.js +0 -68
- package/dist/utils/collectInlineFontAwesomeCss.js.map +0 -1
- package/dist/utils/dropUtils.d.ts +0 -55
- package/dist/utils/dropUtils.d.ts.map +0 -1
- package/dist/utils/dropUtils.js +0 -110
- package/dist/utils/dropUtils.js.map +0 -1
- package/dist/utils/normalizeMalformedAssetUrl.d.ts +0 -15
- package/dist/utils/normalizeMalformedAssetUrl.d.ts.map +0 -1
- package/dist/utils/normalizeMalformedAssetUrl.js +0 -27
- package/dist/utils/normalizeMalformedAssetUrl.js.map +0 -1
package/dist/EditorContext.d.ts
DELETED
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EditorContext
|
|
3
|
-
*
|
|
4
|
-
* Shared React context that synchronizes state across all three editor views
|
|
5
|
-
* (Raw/Monaco, WYSIWYG/Tiptap, Preview/DocPlayer). When any view modifies the
|
|
6
|
-
* markdown source, the context re-parses and regenerates the MarkdownDocument
|
|
7
|
-
* and Doc so all views stay in sync.
|
|
8
|
-
*/
|
|
9
|
-
import { type ReactNode } from 'react';
|
|
10
|
-
import type { Doc, MediaProvider } from '@bendyline/squisq/schemas';
|
|
11
|
-
import type { MarkdownDocument } from '@bendyline/squisq/markdown';
|
|
12
|
-
import type { ContentContainer } from '@bendyline/squisq/storage';
|
|
13
|
-
import { DocumentVersionManager, type PrunePolicy, type SaveVersionOptions, type SaveVersionResult } from '@bendyline/squisq/versions';
|
|
14
|
-
import type { Editor as TiptapEditor } from '@tiptap/core';
|
|
15
|
-
import type { editor as MonacoEditorNs } from 'monaco-editor';
|
|
16
|
-
/** Monaco standalone code editor instance type */
|
|
17
|
-
type MonacoEditor = MonacoEditorNs.IStandaloneCodeEditor;
|
|
18
|
-
/**
|
|
19
|
-
* One candidate returned by a {@link MentionProvider}. Shown in the editor's
|
|
20
|
-
* `@` popover. `id` is the stable identifier (serialized into the mention
|
|
21
|
-
* wire format); `label` is what the reader sees; `scheme` is the namespace
|
|
22
|
-
* (e.g. `'user'`, `'issue'`) written into the markdown as `@[label](scheme:id)`;
|
|
23
|
-
* `description` and `group` are optional hints for richer suggestion UIs.
|
|
24
|
-
*
|
|
25
|
-
* Different candidates in the same result set may carry different schemes —
|
|
26
|
-
* a provider that returns both users and issues, for example, tags each
|
|
27
|
-
* candidate with its own namespace and the editor emits mentions accordingly.
|
|
28
|
-
*/
|
|
29
|
-
export interface MentionCandidate {
|
|
30
|
-
id: string;
|
|
31
|
-
label: string;
|
|
32
|
-
scheme: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
group?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Looks up mention candidates matching a query. Called as the user types
|
|
38
|
-
* after `@`. The provider is free to do server-side or client-side filtering;
|
|
39
|
-
* the editor only cares that candidates come back in relevance order.
|
|
40
|
-
*/
|
|
41
|
-
export type MentionProvider = (query: string) => Promise<MentionCandidate[]>;
|
|
42
|
-
/**
|
|
43
|
-
* A document that the link dialog's "Browse documents" picker can offer.
|
|
44
|
-
* `path` is what lands in the markdown URL (typically relative to the
|
|
45
|
-
* current document so `home.md → resume.md` round-trips through file-
|
|
46
|
-
* system serializers). `label` is the human name shown in the list.
|
|
47
|
-
* `description` is an optional secondary line (e.g. workspace folder,
|
|
48
|
-
* last-modified date).
|
|
49
|
-
*/
|
|
50
|
-
export interface DocumentLinkCandidate {
|
|
51
|
-
path: string;
|
|
52
|
-
label: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Resolves sibling / workspace document candidates for the link dialog.
|
|
57
|
-
* The editor itself has no notion of "neighbors" — hosts that organize
|
|
58
|
-
* docs in a workspace (e.g. docblocks) implement this to power the
|
|
59
|
-
* dialog's document picker. Pass `''` as the query for an initial list
|
|
60
|
-
* (the dialog calls it once on open); subsequent calls narrow by user
|
|
61
|
-
* input.
|
|
62
|
-
*/
|
|
63
|
-
export type DocumentLinkProvider = (query: string) => Promise<DocumentLinkCandidate[]>;
|
|
64
|
-
export type EditorView = 'raw' | 'wysiwyg' | 'preview';
|
|
65
|
-
export type EditorTheme = 'light' | 'dark';
|
|
66
|
-
/**
|
|
67
|
-
* How much of the active Squisq theme the WYSIWYG editing surface
|
|
68
|
-
* mirrors. `'fonts'` is the historical default — body and heading
|
|
69
|
-
* fonts only. `'fonts-colors'` also borrows the theme canvas / text
|
|
70
|
-
* colors. `'none'` opts out completely.
|
|
71
|
-
*/
|
|
72
|
-
export type ThemeInheritance = 'none' | 'fonts' | 'fonts-colors';
|
|
73
|
-
/**
|
|
74
|
-
* Editor operating mode. `markdown` is the full experience (WYSIWYG +
|
|
75
|
-
* Preview tabs, formatting toolbar). `code` is a Monaco-only view used
|
|
76
|
-
* when the content represents a non-markdown file like `foo.ts`.
|
|
77
|
-
*/
|
|
78
|
-
export type EditorMode = 'markdown' | 'code' | 'image';
|
|
79
|
-
export interface EditorState {
|
|
80
|
-
/** Raw markdown source string */
|
|
81
|
-
markdownSource: string;
|
|
82
|
-
/** Parsed markdown document (JSON DOM) */
|
|
83
|
-
markdownDoc: MarkdownDocument | null;
|
|
84
|
-
/** Generated Doc (block hierarchy) */
|
|
85
|
-
doc: Doc | null;
|
|
86
|
-
/** Currently active editor view */
|
|
87
|
-
activeView: EditorView;
|
|
88
|
-
/** Parse error, if any */
|
|
89
|
-
parseError: string | null;
|
|
90
|
-
/** Whether a parse is pending */
|
|
91
|
-
isParsing: boolean;
|
|
92
|
-
/** Current color theme */
|
|
93
|
-
theme: EditorTheme;
|
|
94
|
-
/** Operating mode — 'markdown' for the full shell, 'code' for Monaco-only. */
|
|
95
|
-
editorMode: EditorMode;
|
|
96
|
-
/** Monaco language ID for the Raw editor. */
|
|
97
|
-
language: string;
|
|
98
|
-
/**
|
|
99
|
-
* Whether the inline preview gutter (per-block card previews next to the
|
|
100
|
-
* WYSIWYG surface) is currently visible. Initialized from the EditorShell
|
|
101
|
-
* `inlinePreview` prop; the View menu in the toolbar can toggle it at
|
|
102
|
-
* runtime.
|
|
103
|
-
*/
|
|
104
|
-
inlinePreviewVisible: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Whether the bottom status bar is currently visible. Initialized from
|
|
107
|
-
* the EditorShell `showStatusBar` prop (default true); the View menu in
|
|
108
|
-
* the toolbar can toggle it at runtime.
|
|
109
|
-
*/
|
|
110
|
-
statusBarVisible: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Whether the left-side outline pane is currently visible. Initialized
|
|
113
|
-
* from the EditorShell `outline` prop (default false); the View menu in
|
|
114
|
-
* the toolbar can toggle it at runtime.
|
|
115
|
-
*/
|
|
116
|
-
outlineVisible: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Whether inline block-template tags (the chip next to each templated
|
|
119
|
-
* heading in the WYSIWYG view, plus the subtle affordance chip on plain
|
|
120
|
-
* headings) are currently visible. Initialized from the EditorShell
|
|
121
|
-
* `blockTags` prop (default true); the View menu in the toolbar can
|
|
122
|
-
* toggle it at runtime.
|
|
123
|
-
*/
|
|
124
|
-
blockTagsVisible: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* How much of the active Squisq theme the WYSIWYG editing surface should
|
|
127
|
-
* inherit. `'none'` shows the default editor styling, `'fonts'` (the
|
|
128
|
-
* default) matches body and heading fonts only, and `'fonts-colors'`
|
|
129
|
-
* also borrows the theme's canvas / text colors so authors get a
|
|
130
|
-
* closer preview while editing.
|
|
131
|
-
*/
|
|
132
|
-
themeInheritance: ThemeInheritance;
|
|
133
|
-
/**
|
|
134
|
-
* Relative path of an image the user requested to edit, or `null` when
|
|
135
|
-
* no editor is open. Surfaced by `<ImageNodeView>`'s hover affordance
|
|
136
|
-
* and consumed by `<EditorShell>` to render the modal `<ImageEditor>`.
|
|
137
|
-
*/
|
|
138
|
-
imageEditTarget: string | null;
|
|
139
|
-
/**
|
|
140
|
-
* Monotonic counter bumped whenever a managed media asset is rewritten
|
|
141
|
-
* (e.g. after the image-editor modal saves back). Image render paths
|
|
142
|
-
* that cache resolved blob URLs should include this in their effect
|
|
143
|
-
* deps so the new bytes get picked up.
|
|
144
|
-
*/
|
|
145
|
-
mediaRevision: number;
|
|
146
|
-
/**
|
|
147
|
-
* Whether the in-editor media recorder should be available. Defaults
|
|
148
|
-
* to true when a `mediaProvider` is wired; hosts that explicitly
|
|
149
|
-
* don't want the affordance (e.g. read-only embeds, surfaces where
|
|
150
|
-
* camera/screen prompts would be jarring) can pass `false` on the
|
|
151
|
-
* shell.
|
|
152
|
-
*/
|
|
153
|
-
allowRecording: boolean;
|
|
154
|
-
}
|
|
155
|
-
export interface EditorActions {
|
|
156
|
-
/** Set markdown source and trigger re-parse */
|
|
157
|
-
setMarkdownSource: (source: string) => void;
|
|
158
|
-
/** Set markdown from a MarkdownDocument (e.g. from WYSIWYG) */
|
|
159
|
-
setMarkdownDoc: (doc: MarkdownDocument) => void;
|
|
160
|
-
/** Switch the active view */
|
|
161
|
-
setActiveView: (view: EditorView) => void;
|
|
162
|
-
/** Register / unregister the Tiptap editor instance (called by WysiwygEditor) */
|
|
163
|
-
setTiptapEditor: (editor: TiptapEditor | null) => void;
|
|
164
|
-
/** Register / unregister the Monaco editor instance (called by RawEditor) */
|
|
165
|
-
setMonacoEditor: (editor: MonacoEditor | null) => void;
|
|
166
|
-
/** Set the color theme */
|
|
167
|
-
setTheme: (theme: EditorTheme) => void;
|
|
168
|
-
/** Show or hide the inline preview gutter at runtime (driven by the View menu). */
|
|
169
|
-
setInlinePreviewVisible: (visible: boolean) => void;
|
|
170
|
-
/** Show or hide the bottom status bar at runtime (driven by the View menu). */
|
|
171
|
-
setStatusBarVisible: (visible: boolean) => void;
|
|
172
|
-
/** Show or hide the left-side outline pane at runtime (driven by the View menu). */
|
|
173
|
-
setOutlineVisible: (visible: boolean) => void;
|
|
174
|
-
/** Show or hide inline block-template tags at runtime (driven by the View menu). */
|
|
175
|
-
setBlockTagsVisible: (visible: boolean) => void;
|
|
176
|
-
/** Change how much of the active Squisq theme the WYSIWYG surface mirrors. */
|
|
177
|
-
setThemeInheritance: (mode: ThemeInheritance) => void;
|
|
178
|
-
/** Insert text at the current cursor position in the active editor */
|
|
179
|
-
insertAtCursor: (text: string) => void;
|
|
180
|
-
/** Replace all editor content with the given text */
|
|
181
|
-
replaceAll: (text: string) => void;
|
|
182
|
-
/**
|
|
183
|
-
* Request the modal image editor open on the given relative media path.
|
|
184
|
-
* The path must resolve through the active `mediaProvider`. No-op when
|
|
185
|
-
* no provider is wired — callers should hide the affordance in that
|
|
186
|
-
* case.
|
|
187
|
-
*/
|
|
188
|
-
openImageEdit: (relativePath: string) => void;
|
|
189
|
-
/** Close the image editor modal without saving. */
|
|
190
|
-
closeImageEdit: () => void;
|
|
191
|
-
/**
|
|
192
|
-
* Bump `mediaRevision`. Called after the image editor writes back to
|
|
193
|
-
* the original media path so dependent `<img>` nodes re-resolve their
|
|
194
|
-
* blob URL.
|
|
195
|
-
*/
|
|
196
|
-
bumpMediaRevision: () => void;
|
|
197
|
-
}
|
|
198
|
-
export interface EditorContextValue extends EditorState, EditorActions {
|
|
199
|
-
/** The live Tiptap editor instance (null when WYSIWYG is not mounted) */
|
|
200
|
-
tiptapEditor: TiptapEditor | null;
|
|
201
|
-
/** The live Monaco editor instance (null when Raw is not mounted) */
|
|
202
|
-
monacoEditor: MonacoEditor | null;
|
|
203
|
-
/**
|
|
204
|
-
* Workspace-scoped `ContentContainer` for this document — the folder
|
|
205
|
-
* holding the doc, its `_files/` sidecar, sibling documents, and any
|
|
206
|
-
* version snapshots. Drives audio mapping, version history, and
|
|
207
|
-
* sibling-doc reads for the recursive HTML export.
|
|
208
|
-
*/
|
|
209
|
-
workspaceContainer: ContentContainer | null;
|
|
210
|
-
/**
|
|
211
|
-
* Version manager — non-null only when the host opted into versioning
|
|
212
|
-
* (`allowVersioning` + a `workspaceContainer`). Components can call
|
|
213
|
-
* `saveVersion` directly, or render the version-history panel which
|
|
214
|
-
* reads it from here.
|
|
215
|
-
*/
|
|
216
|
-
versioning: DocumentVersionManager | null;
|
|
217
|
-
/**
|
|
218
|
-
* Stamp a new snapshot of the current document. No-op (returns
|
|
219
|
-
* `unchanged`) when content matches the latest version. Always safe
|
|
220
|
-
* to call — when versioning is disabled, returns `no-document`
|
|
221
|
-
* without writing.
|
|
222
|
-
*/
|
|
223
|
-
saveVersion: (options?: SaveVersionOptions) => Promise<SaveVersionResult>;
|
|
224
|
-
/** MediaProvider for resolving image URLs in the WYSIWYG editor */
|
|
225
|
-
mediaProvider: MediaProvider | null;
|
|
226
|
-
/**
|
|
227
|
-
* How pasted/inserted images should be displayed in the WYSIWYG view.
|
|
228
|
-
* `'inline'` (default) lets them flow at natural size up to the editor
|
|
229
|
-
* width; `'thumbnail'` constrains them to a 100×100 box so chat
|
|
230
|
-
* composers and other dense surfaces don't get dominated by a single
|
|
231
|
-
* pasted screenshot. The stored image bytes are unchanged — this is a
|
|
232
|
-
* pure render-time decision.
|
|
233
|
-
*/
|
|
234
|
-
imageDisplayMode: ImageDisplayMode;
|
|
235
|
-
/**
|
|
236
|
-
* Optional provider for `@`-mention suggestions. When set, both the
|
|
237
|
-
* WYSIWYG (Tiptap) and Raw (Monaco) editors show a mention popover as
|
|
238
|
-
* the user types `@<query>`. When unset, `@` is just a literal character.
|
|
239
|
-
*/
|
|
240
|
-
mentionProvider: MentionProvider | null;
|
|
241
|
-
/**
|
|
242
|
-
* Optional provider for sibling-document suggestions in the link
|
|
243
|
-
* dialog. When set, the dialog shows a "Browse documents" picker that
|
|
244
|
-
* lets authors search neighbor docs by name and insert a relative-
|
|
245
|
-
* path link. When unset, the dialog falls back to URL-only.
|
|
246
|
-
*/
|
|
247
|
-
documentLinkProvider: DocumentLinkProvider | null;
|
|
248
|
-
}
|
|
249
|
-
export type ImageDisplayMode = 'inline' | 'thumbnail';
|
|
250
|
-
/**
|
|
251
|
-
* Hook to access the editor context. Must be used within an EditorProvider.
|
|
252
|
-
*/
|
|
253
|
-
export declare function useEditorContext(): EditorContextValue;
|
|
254
|
-
export interface EditorProviderProps {
|
|
255
|
-
/** Initial markdown content */
|
|
256
|
-
initialMarkdown?: string;
|
|
257
|
-
/** Initial active view */
|
|
258
|
-
initialView?: EditorView;
|
|
259
|
-
/** Article ID used when generating the Doc */
|
|
260
|
-
articleId?: string;
|
|
261
|
-
/** Color theme */
|
|
262
|
-
theme?: EditorTheme;
|
|
263
|
-
/**
|
|
264
|
-
* Workspace-scoped `ContentContainer` for this document — the folder
|
|
265
|
-
* holding the doc, its `_files/` sidecar, sibling documents, and any
|
|
266
|
-
* version snapshots. Required for `allowVersioning` to take effect.
|
|
267
|
-
*/
|
|
268
|
-
workspaceContainer?: ContentContainer | null;
|
|
269
|
-
/**
|
|
270
|
-
* Enable version history. Snapshots are stored at
|
|
271
|
-
* `.versions/<basename>.<timestamp>.md` inside `workspaceContainer`.
|
|
272
|
-
* Auto-save fires after `versioningAutoSaveIdleMs` of idle; hosts can
|
|
273
|
-
* also call `saveVersion()` from the context. Without a
|
|
274
|
-
* `workspaceContainer`, this prop is ignored (and a `console.warn` is
|
|
275
|
-
* emitted).
|
|
276
|
-
*/
|
|
277
|
-
allowVersioning?: boolean;
|
|
278
|
-
/** Override the basename used in version filenames. Defaults to the
|
|
279
|
-
* basename of the container's primary document path. */
|
|
280
|
-
versionBasename?: string;
|
|
281
|
-
/**
|
|
282
|
-
* Prune policy applied after each successful auto-save. Defaults to
|
|
283
|
-
* keeping the last 50 snapshots so the count doesn't grow unbounded.
|
|
284
|
-
*/
|
|
285
|
-
versioningPrunePolicy?: PrunePolicy;
|
|
286
|
-
/**
|
|
287
|
-
* Idle delay (ms) before auto-saving a version. `0` disables auto-save
|
|
288
|
-
* entirely (versions are saved only via host-driven `saveVersion`
|
|
289
|
-
* calls). Default: 5000.
|
|
290
|
-
*/
|
|
291
|
-
versioningAutoSaveIdleMs?: number;
|
|
292
|
-
/**
|
|
293
|
-
* Notified after each `saveVersion` attempt — both successful saves
|
|
294
|
-
* (`reason: 'saved'`) and skips (`'unchanged'`, `'no-document'`,
|
|
295
|
-
* `'empty'`). Useful for hosts that want a "Last saved" indicator.
|
|
296
|
-
*/
|
|
297
|
-
onSaveVersion?: (result: SaveVersionResult) => void;
|
|
298
|
-
/** MediaProvider for resolving image URLs */
|
|
299
|
-
mediaProvider?: MediaProvider | null;
|
|
300
|
-
/** Display mode for images in the WYSIWYG view. Defaults to `'inline'`. */
|
|
301
|
-
imageDisplayMode?: ImageDisplayMode;
|
|
302
|
-
/**
|
|
303
|
-
* Async provider for `@`-mention suggestions. Omit to disable mentions
|
|
304
|
-
* entirely — typing `@` becomes just a literal character again.
|
|
305
|
-
*/
|
|
306
|
-
mentionProvider?: MentionProvider | null;
|
|
307
|
-
/**
|
|
308
|
-
* Async provider for sibling-document suggestions in the link dialog.
|
|
309
|
-
* Omit to fall back to URL-only link insertion.
|
|
310
|
-
*/
|
|
311
|
-
documentLinkProvider?: DocumentLinkProvider | null;
|
|
312
|
-
/**
|
|
313
|
-
* Whether the in-editor media recorder is available in the toolbar.
|
|
314
|
-
* Defaults to true. Set to false to suppress the recorder affordance
|
|
315
|
-
* even when a `mediaProvider` is wired (e.g. read-only embeds,
|
|
316
|
-
* surfaces where camera/screen prompts would be jarring).
|
|
317
|
-
*/
|
|
318
|
-
allowRecording?: boolean;
|
|
319
|
-
/**
|
|
320
|
-
* File name (e.g. `foo.ts`) or bare extension — used to pick a Monaco
|
|
321
|
-
* language and decide between markdown vs. code mode.
|
|
322
|
-
*/
|
|
323
|
-
fileName?: string;
|
|
324
|
-
/** Explicit Monaco language ID — wins over the fileName-derived one. */
|
|
325
|
-
language?: string;
|
|
326
|
-
/**
|
|
327
|
-
* Initial visibility of the inline preview gutter. Defaults to false.
|
|
328
|
-
* The toolbar's View menu can toggle it at runtime.
|
|
329
|
-
*/
|
|
330
|
-
inlinePreview?: boolean;
|
|
331
|
-
/**
|
|
332
|
-
* Initial visibility of the bottom status bar. Defaults to true.
|
|
333
|
-
* The toolbar's View menu can toggle it at runtime.
|
|
334
|
-
*/
|
|
335
|
-
showStatusBar?: boolean;
|
|
336
|
-
/**
|
|
337
|
-
* Initial visibility of the left-side outline pane. Defaults to false.
|
|
338
|
-
* The toolbar's View menu can toggle it at runtime.
|
|
339
|
-
*/
|
|
340
|
-
outline?: boolean;
|
|
341
|
-
/**
|
|
342
|
-
* Initial visibility of inline block-template tags on headings.
|
|
343
|
-
* Defaults to true. The toolbar's View menu can toggle it at runtime.
|
|
344
|
-
*/
|
|
345
|
-
blockTags?: boolean;
|
|
346
|
-
/**
|
|
347
|
-
* Initial value for how much of the active Squisq theme the WYSIWYG
|
|
348
|
-
* editing surface should mirror. Defaults to `'fonts'` — the
|
|
349
|
-
* historical behavior of inheriting body / heading fonts only. The
|
|
350
|
-
* toolbar's View menu can change it at runtime.
|
|
351
|
-
*/
|
|
352
|
-
themeInheritance?: ThemeInheritance;
|
|
353
|
-
/**
|
|
354
|
-
* Bundled view preferences — a serializable JSON blob covering all
|
|
355
|
-
* runtime-toggleable view options. When provided, individual values
|
|
356
|
-
* here override the matching individual props (`inlinePreview`,
|
|
357
|
-
* `showStatusBar`, `outline`). Hosts wiring this up typically load
|
|
358
|
-
* the blob from their own preferences storage and pair it with
|
|
359
|
-
* {@link onViewPreferencesChange}.
|
|
360
|
-
*/
|
|
361
|
-
viewPreferences?: ViewPreferences;
|
|
362
|
-
/**
|
|
363
|
-
* Notified after each user-driven toggle in the View menu (or any
|
|
364
|
-
* programmatic call to the corresponding context setters). The
|
|
365
|
-
* argument is a full snapshot — hosts can persist it as-is.
|
|
366
|
-
* Not called when {@link viewPreferences} is changed externally.
|
|
367
|
-
*/
|
|
368
|
-
onViewPreferencesChange?: (prefs: ViewPreferences) => void;
|
|
369
|
-
children: ReactNode;
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* Serializable bundle of all runtime-toggleable view preferences for
|
|
373
|
-
* the editor shell. Hosts can persist this verbatim (e.g. to
|
|
374
|
-
* localStorage) and pass it back via {@link EditorProviderProps.viewPreferences}
|
|
375
|
-
* to restore the user's last view configuration.
|
|
376
|
-
*/
|
|
377
|
-
export interface ViewPreferences {
|
|
378
|
-
/** Whether the left-side outline pane is visible. */
|
|
379
|
-
outline?: boolean;
|
|
380
|
-
/** Whether the inline preview gutter (per-block cards) is visible. */
|
|
381
|
-
inlinePreview?: boolean;
|
|
382
|
-
/** Whether the bottom status bar is visible. */
|
|
383
|
-
showStatusBar?: boolean;
|
|
384
|
-
/** Whether inline block-template tags on headings are visible. */
|
|
385
|
-
blockTags?: boolean;
|
|
386
|
-
/** How much of the active Squisq theme the WYSIWYG surface mirrors. */
|
|
387
|
-
themeInheritance?: ThemeInheritance;
|
|
388
|
-
}
|
|
389
|
-
export declare function EditorProvider({ initialMarkdown, initialView, articleId, theme: initialTheme, workspaceContainer, allowVersioning, versionBasename, versioningPrunePolicy, versioningAutoSaveIdleMs, onSaveVersion, mediaProvider, imageDisplayMode, mentionProvider, documentLinkProvider, allowRecording, fileName, language, inlinePreview, showStatusBar, outline, blockTags, themeInheritance, viewPreferences, onViewPreferencesChange, children, }: EditorProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
390
|
-
export {};
|
|
391
|
-
//# sourceMappingURL=EditorContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorContext.d.ts","sourceRoot":"","sources":["../src/EditorContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,sBAAsB,EACtB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAI9D,kDAAkD;AAClD,KAAK,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAE7E;;;;;;;GAOG;AACH,MAAM,WAAW,qB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