@haklex/rich-ext-whiteboard 0.0.0-stage → 0.65.0
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/README.md +147 -2
- package/dist/WhiteboardConfigContext.d.ts +14 -0
- package/dist/WhiteboardConfigContext.d.ts.map +1 -0
- package/dist/WhiteboardDisplayRenderer.d.ts +14 -0
- package/dist/WhiteboardDisplayRenderer.d.ts.map +1 -0
- package/dist/WhiteboardEditNode.d.ts +14 -0
- package/dist/WhiteboardEditNode.d.ts.map +1 -0
- package/dist/WhiteboardEditRenderer.d.ts +8 -0
- package/dist/WhiteboardEditRenderer.d.ts.map +1 -0
- package/dist/WhiteboardEditorDialog.d.ts +23 -0
- package/dist/WhiteboardEditorDialog.d.ts.map +1 -0
- package/dist/WhiteboardExpandShell-B_97YeOe.js +2547 -0
- package/dist/WhiteboardExpandShell.d.ts +9 -0
- package/dist/WhiteboardExpandShell.d.ts.map +1 -0
- package/dist/WhiteboardFrameStates.d.ts +11 -0
- package/dist/WhiteboardFrameStates.d.ts.map +1 -0
- package/dist/WhiteboardNode.d.ts +22 -0
- package/dist/WhiteboardNode.d.ts.map +1 -0
- package/dist/WhiteboardOptionsMenu.d.ts +16 -0
- package/dist/WhiteboardOptionsMenu.d.ts.map +1 -0
- package/dist/WhiteboardPlugin.d.ts +3 -0
- package/dist/WhiteboardPlugin.d.ts.map +1 -0
- package/dist/WhiteboardSSRRenderer.d.ts +8 -0
- package/dist/WhiteboardSSRRenderer.d.ts.map +1 -0
- package/dist/acceptance/brainstorm-board.d.ts +3 -0
- package/dist/acceptance/brainstorm-board.d.ts.map +1 -0
- package/dist/acceptance/brainstorm.test.d.ts +2 -0
- package/dist/acceptance/brainstorm.test.d.ts.map +1 -0
- package/dist/acceptance/fixtures.d.ts +5 -0
- package/dist/acceptance/fixtures.d.ts.map +1 -0
- package/dist/acceptance/review-fixes.test.d.ts +2 -0
- package/dist/acceptance/review-fixes.test.d.ts.map +1 -0
- package/dist/acceptance/roundtrip.test.d.ts +2 -0
- package/dist/acceptance/roundtrip.test.d.ts.map +1 -0
- package/dist/canvas-state.d.ts +5 -0
- package/dist/canvas-state.d.ts.map +1 -0
- package/dist/display.test.d.ts +2 -0
- package/dist/display.test.d.ts.map +1 -0
- package/dist/editor/FrameNameEditor.d.ts +6 -0
- package/dist/editor/FrameNameEditor.d.ts.map +1 -0
- package/dist/editor/MobileDock.d.ts +6 -0
- package/dist/editor/MobileDock.d.ts.map +1 -0
- package/dist/editor/RichTextEditor.d.ts +7 -0
- package/dist/editor/RichTextEditor.d.ts.map +1 -0
- package/dist/editor/RichTextFormatBar.d.ts +8 -0
- package/dist/editor/RichTextFormatBar.d.ts.map +1 -0
- package/dist/editor/StylePanel.d.ts +6 -0
- package/dist/editor/StylePanel.d.ts.map +1 -0
- package/dist/editor/StyleSheet.d.ts +7 -0
- package/dist/editor/StyleSheet.d.ts.map +1 -0
- package/dist/editor/TextEditor.d.ts +7 -0
- package/dist/editor/TextEditor.d.ts.map +1 -0
- package/dist/editor/Toolbar.d.ts +20 -0
- package/dist/editor/Toolbar.d.ts.map +1 -0
- package/dist/editor/WhiteboardCanvas.d.ts +14 -0
- package/dist/editor/WhiteboardCanvas.d.ts.map +1 -0
- package/dist/editor/WhiteboardEditor.d.ts +10 -0
- package/dist/editor/WhiteboardEditor.d.ts.map +1 -0
- package/dist/editor/ZoomControls.d.ts +7 -0
- package/dist/editor/ZoomControls.d.ts.map +1 -0
- package/dist/editor/actions.d.ts +13 -0
- package/dist/editor/actions.d.ts.map +1 -0
- package/dist/editor/actions.test.d.ts +2 -0
- package/dist/editor/actions.test.d.ts.map +1 -0
- package/dist/editor/binding-actions.d.ts +8 -0
- package/dist/editor/binding-actions.d.ts.map +1 -0
- package/dist/editor/binding.test.d.ts +2 -0
- package/dist/editor/binding.test.d.ts.map +1 -0
- package/dist/editor/card-tool.test.d.ts +2 -0
- package/dist/editor/card-tool.test.d.ts.map +1 -0
- package/dist/editor/chrome.css.d.ts +24 -0
- package/dist/editor/chrome.css.d.ts.map +1 -0
- package/dist/editor/clipboard-actions.d.ts +6 -0
- package/dist/editor/clipboard-actions.d.ts.map +1 -0
- package/dist/editor/clipboard-events.test.d.ts +2 -0
- package/dist/editor/clipboard-events.test.d.ts.map +1 -0
- package/dist/editor/clipboard.test.d.ts +2 -0
- package/dist/editor/clipboard.test.d.ts.map +1 -0
- package/dist/editor/editor.css.d.ts +5 -0
- package/dist/editor/editor.css.d.ts.map +1 -0
- package/dist/editor/elbow.test.d.ts +2 -0
- package/dist/editor/elbow.test.d.ts.map +1 -0
- package/dist/editor/focus.test.d.ts +2 -0
- package/dist/editor/focus.test.d.ts.map +1 -0
- package/dist/editor/frames.test.d.ts +2 -0
- package/dist/editor/frames.test.d.ts.map +1 -0
- package/dist/editor/gestures.d.ts +11 -0
- package/dist/editor/gestures.d.ts.map +1 -0
- package/dist/editor/grid.d.ts +9 -0
- package/dist/editor/grid.d.ts.map +1 -0
- package/dist/editor/grid.test.d.ts +2 -0
- package/dist/editor/grid.test.d.ts.map +1 -0
- package/dist/editor/history.d.ts +13 -0
- package/dist/editor/history.d.ts.map +1 -0
- package/dist/editor/image-actions.d.ts +17 -0
- package/dist/editor/image-actions.d.ts.map +1 -0
- package/dist/editor/image.test.d.ts +2 -0
- package/dist/editor/image.test.d.ts.map +1 -0
- package/dist/editor/layout.d.ts +4 -0
- package/dist/editor/layout.d.ts.map +1 -0
- package/dist/editor/linear-editor.d.ts +28 -0
- package/dist/editor/linear-editor.d.ts.map +1 -0
- package/dist/editor/linear-editor.test.d.ts +2 -0
- package/dist/editor/linear-editor.test.d.ts.map +1 -0
- package/dist/editor/overlay/LinearHandles.d.ts +6 -0
- package/dist/editor/overlay/LinearHandles.d.ts.map +1 -0
- package/dist/editor/overlay/SelectionOverlay.d.ts +7 -0
- package/dist/editor/overlay/SelectionOverlay.d.ts.map +1 -0
- package/dist/editor/overlay/TransformHandles.d.ts +6 -0
- package/dist/editor/overlay/TransformHandles.d.ts.map +1 -0
- package/dist/editor/render-fidelity.test.d.ts +2 -0
- package/dist/editor/render-fidelity.test.d.ts.map +1 -0
- package/dist/editor/richtext-actions.d.ts +6 -0
- package/dist/editor/richtext-actions.d.ts.map +1 -0
- package/dist/editor/richtext-edit.test.d.ts +2 -0
- package/dist/editor/richtext-edit.test.d.ts.map +1 -0
- package/dist/editor/richtext-editor.css.d.ts +17 -0
- package/dist/editor/richtext-editor.css.d.ts.map +1 -0
- package/dist/editor/richtext-format.test.d.ts +2 -0
- package/dist/editor/richtext-format.test.d.ts.map +1 -0
- package/dist/editor/richtext-load.test.d.ts +2 -0
- package/dist/editor/richtext-load.test.d.ts.map +1 -0
- package/dist/editor/selection-utils.d.ts +17 -0
- package/dist/editor/selection-utils.d.ts.map +1 -0
- package/dist/editor/selection.test.d.ts +2 -0
- package/dist/editor/selection.test.d.ts.map +1 -0
- package/dist/editor/shadow.test.d.ts +2 -0
- package/dist/editor/shadow.test.d.ts.map +1 -0
- package/dist/editor/shortcuts.d.ts +16 -0
- package/dist/editor/shortcuts.d.ts.map +1 -0
- package/dist/editor/store.d.ts +21 -0
- package/dist/editor/store.d.ts.map +1 -0
- package/dist/editor/store.test.d.ts +2 -0
- package/dist/editor/store.test.d.ts.map +1 -0
- package/dist/editor/style-options.d.ts +21 -0
- package/dist/editor/style-options.d.ts.map +1 -0
- package/dist/editor/style-props.d.ts +10 -0
- package/dist/editor/style-props.d.ts.map +1 -0
- package/dist/editor/style-rows.d.ts +4 -0
- package/dist/editor/style-rows.d.ts.map +1 -0
- package/dist/editor/svg-paste.test.d.ts +2 -0
- package/dist/editor/svg-paste.test.d.ts.map +1 -0
- package/dist/editor/svg.test.d.ts +2 -0
- package/dist/editor/svg.test.d.ts.map +1 -0
- package/dist/editor/text-actions.d.ts +15 -0
- package/dist/editor/text-actions.d.ts.map +1 -0
- package/dist/editor/text-editor.css.d.ts +3 -0
- package/dist/editor/text-editor.css.d.ts.map +1 -0
- package/dist/editor/text.test.d.ts +2 -0
- package/dist/editor/text.test.d.ts.map +1 -0
- package/dist/editor/tools/card.d.ts +5 -0
- package/dist/editor/tools/card.d.ts.map +1 -0
- package/dist/editor/tools/creation.d.ts +8 -0
- package/dist/editor/tools/creation.d.ts.map +1 -0
- package/dist/editor/tools/eraser.d.ts +3 -0
- package/dist/editor/tools/eraser.d.ts.map +1 -0
- package/dist/editor/tools/freedraw.d.ts +3 -0
- package/dist/editor/tools/freedraw.d.ts.map +1 -0
- package/dist/editor/tools/hand.d.ts +3 -0
- package/dist/editor/tools/hand.d.ts.map +1 -0
- package/dist/editor/tools/image.d.ts +3 -0
- package/dist/editor/tools/image.d.ts.map +1 -0
- package/dist/editor/tools/index.d.ts +9 -0
- package/dist/editor/tools/index.d.ts.map +1 -0
- package/dist/editor/tools/linear.d.ts +10 -0
- package/dist/editor/tools/linear.d.ts.map +1 -0
- package/dist/editor/tools/point-gesture.d.ts +10 -0
- package/dist/editor/tools/point-gesture.d.ts.map +1 -0
- package/dist/editor/tools/selection.d.ts +9 -0
- package/dist/editor/tools/selection.d.ts.map +1 -0
- package/dist/editor/tools/shape.d.ts +15 -0
- package/dist/editor/tools/shape.d.ts.map +1 -0
- package/dist/editor/tools/text.d.ts +3 -0
- package/dist/editor/tools/text.d.ts.map +1 -0
- package/dist/editor/tools/transform-gesture.d.ts +13 -0
- package/dist/editor/tools/transform-gesture.d.ts.map +1 -0
- package/dist/editor/tools/types.d.ts +28 -0
- package/dist/editor/tools/types.d.ts.map +1 -0
- package/dist/editor/tools.test.d.ts +2 -0
- package/dist/editor/tools.test.d.ts.map +1 -0
- package/dist/editor/touch.test.d.ts +2 -0
- package/dist/editor/touch.test.d.ts.map +1 -0
- package/dist/editor/transform.d.ts +25 -0
- package/dist/editor/transform.d.ts.map +1 -0
- package/dist/editor/transform.test.d.ts +2 -0
- package/dist/editor/transform.test.d.ts.map +1 -0
- package/dist/editor/types.d.ts +41 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/editor/viewport.d.ts +14 -0
- package/dist/editor/viewport.d.ts.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +4941 -0
- package/dist/model/bindable.d.ts +3 -0
- package/dist/model/bindable.d.ts.map +1 -0
- package/dist/model/binding.d.ts +15 -0
- package/dist/model/binding.d.ts.map +1 -0
- package/dist/model/bounds.d.ts +17 -0
- package/dist/model/bounds.d.ts.map +1 -0
- package/dist/model/bounds.test.d.ts +2 -0
- package/dist/model/bounds.test.d.ts.map +1 -0
- package/dist/model/clipboard.d.ts +11 -0
- package/dist/model/clipboard.d.ts.map +1 -0
- package/dist/model/clone.d.ts +6 -0
- package/dist/model/clone.d.ts.map +1 -0
- package/dist/model/create.d.ts +17 -0
- package/dist/model/create.d.ts.map +1 -0
- package/dist/model/create.test.d.ts +2 -0
- package/dist/model/create.test.d.ts.map +1 -0
- package/dist/model/defaults.d.ts +22 -0
- package/dist/model/defaults.d.ts.map +1 -0
- package/dist/model/elbow.d.ts +16 -0
- package/dist/model/elbow.d.ts.map +1 -0
- package/dist/model/elbow.test.d.ts +2 -0
- package/dist/model/elbow.test.d.ts.map +1 -0
- package/dist/model/fractional-index.d.ts +9 -0
- package/dist/model/fractional-index.d.ts.map +1 -0
- package/dist/model/fractional-index.test.d.ts +2 -0
- package/dist/model/fractional-index.test.d.ts.map +1 -0
- package/dist/model/frames.d.ts +8 -0
- package/dist/model/frames.d.ts.map +1 -0
- package/dist/model/frames.test.d.ts +2 -0
- package/dist/model/frames.test.d.ts.map +1 -0
- package/dist/model/geometry.d.ts +13 -0
- package/dist/model/geometry.d.ts.map +1 -0
- package/dist/model/linear-points.d.ts +5 -0
- package/dist/model/linear-points.d.ts.map +1 -0
- package/dist/model/measure.d.ts +16 -0
- package/dist/model/measure.d.ts.map +1 -0
- package/dist/model/mutate.d.ts +8 -0
- package/dist/model/mutate.d.ts.map +1 -0
- package/dist/model/random.d.ts +3 -0
- package/dist/model/random.d.ts.map +1 -0
- package/dist/model/restore.d.ts +6 -0
- package/dist/model/restore.d.ts.map +1 -0
- package/dist/model/restore.test.d.ts +2 -0
- package/dist/model/restore.test.d.ts.map +1 -0
- package/dist/model/richtext-editable.d.ts +3 -0
- package/dist/model/richtext-editable.d.ts.map +1 -0
- package/dist/model/richtext-layout.d.ts +6 -0
- package/dist/model/richtext-layout.d.ts.map +1 -0
- package/dist/model/richtext-layout.test.d.ts +2 -0
- package/dist/model/richtext-layout.test.d.ts.map +1 -0
- package/dist/model/richtext.d.ts +40 -0
- package/dist/model/richtext.d.ts.map +1 -0
- package/dist/model/shadow.d.ts +5 -0
- package/dist/model/shadow.d.ts.map +1 -0
- package/dist/model/svg.d.ts +8 -0
- package/dist/model/svg.d.ts.map +1 -0
- package/dist/model/svg.test.d.ts +2 -0
- package/dist/model/svg.test.d.ts.map +1 -0
- package/dist/model/text-layout.d.ts +13 -0
- package/dist/model/text-layout.d.ts.map +1 -0
- package/dist/model/text.test.d.ts +2 -0
- package/dist/model/text.test.d.ts.map +1 -0
- package/dist/rename.test.d.ts +2 -0
- package/dist/rename.test.d.ts.map +1 -0
- package/dist/rich-ext-whiteboard.css +2 -0
- package/dist/scene/InteractiveScene.d.ts +11 -0
- package/dist/scene/InteractiveScene.d.ts.map +1 -0
- package/dist/scene/Scene.d.ts +27 -0
- package/dist/scene/Scene.d.ts.map +1 -0
- package/dist/scene/context.d.ts +4 -0
- package/dist/scene/context.d.ts.map +1 -0
- package/dist/scene/elements.d.ts +7 -0
- package/dist/scene/elements.d.ts.map +1 -0
- package/dist/scene/fidelity.test.d.ts +2 -0
- package/dist/scene/fidelity.test.d.ts.map +1 -0
- package/dist/scene/fill.test.d.ts +2 -0
- package/dist/scene/fill.test.d.ts.map +1 -0
- package/dist/scene/fonts.d.ts +11 -0
- package/dist/scene/fonts.d.ts.map +1 -0
- package/dist/scene/freedraw.d.ts +3 -0
- package/dist/scene/freedraw.d.ts.map +1 -0
- package/dist/scene/normalize.d.ts +4 -0
- package/dist/scene/normalize.d.ts.map +1 -0
- package/dist/scene/richtext/RichTextBody.d.ts +6 -0
- package/dist/scene/richtext/RichTextBody.d.ts.map +1 -0
- package/dist/scene/richtext/RichTextContent.d.ts +6 -0
- package/dist/scene/richtext/RichTextContent.d.ts.map +1 -0
- package/dist/scene/richtext.test.d.ts +2 -0
- package/dist/scene/richtext.test.d.ts.map +1 -0
- package/dist/scene/rough.d.ts +19 -0
- package/dist/scene/rough.d.ts.map +1 -0
- package/dist/scene/scene.test.d.ts +2 -0
- package/dist/scene/scene.test.d.ts.map +1 -0
- package/dist/scene/shadow.d.ts +6 -0
- package/dist/scene/shadow.d.ts.map +1 -0
- package/dist/scene/shadow.test.d.ts +2 -0
- package/dist/scene/shadow.test.d.ts.map +1 -0
- package/dist/scene/styles.css.d.ts +7 -0
- package/dist/scene/styles.css.d.ts.map +1 -0
- package/dist/scene/svg-element.d.ts +6 -0
- package/dist/scene/svg-element.d.ts.map +1 -0
- package/dist/scene/svg.test.d.ts +2 -0
- package/dist/scene/svg.test.d.ts.map +1 -0
- package/dist/scene/types.d.ts +149 -0
- package/dist/scene/types.d.ts.map +1 -0
- package/dist/slot.d.ts +11 -0
- package/dist/slot.d.ts.map +1 -0
- package/dist/static.d.ts +18 -0
- package/dist/static.d.ts.map +1 -0
- package/dist/static.mjs +1 -0
- package/dist/styles.css.d.ts +29 -0
- package/dist/styles.css.d.ts.map +1 -0
- package/dist/transformer.d.ts +2 -0
- package/dist/transformer.d.ts.map +1 -0
- package/dist/types.d.ts +15 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.test.d.ts +2 -0
- package/dist/types.test.d.ts.map +1 -0
- package/dist/useWhiteboardData.d.ts +16 -0
- package/dist/useWhiteboardData.d.ts.map +1 -0
- package/dist/useWhiteboardFont.d.ts +3 -0
- package/dist/useWhiteboardFont.d.ts.map +1 -0
- package/package.json +70 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const whiteboardStaticContainer: string;
|
|
2
|
+
export declare const whiteboardEditorContainer: string;
|
|
3
|
+
export declare const whiteboardPlaceholder: string;
|
|
4
|
+
export declare const whiteboardStateLayer: string;
|
|
5
|
+
export declare const whiteboardStateIcon: string;
|
|
6
|
+
export declare const whiteboardLoading: string;
|
|
7
|
+
export declare const whiteboardEmpty: string;
|
|
8
|
+
export declare const whiteboardError: string;
|
|
9
|
+
export declare const whiteboardErrorIcon: string;
|
|
10
|
+
export declare const whiteboardRetry: string;
|
|
11
|
+
declare const _whiteboardFullscreenPopup: string;
|
|
12
|
+
export { _whiteboardFullscreenPopup as whiteboardFullscreenPopup };
|
|
13
|
+
export declare const whiteboardDialogHeader: string;
|
|
14
|
+
export declare const whiteboardDialogHeaderTitle: string;
|
|
15
|
+
export declare const whiteboardDialogTitle: string;
|
|
16
|
+
export declare const whiteboardDialogMeta: string;
|
|
17
|
+
export declare const whiteboardHeaderClose: string;
|
|
18
|
+
export declare const whiteboardDialogCanvas: string;
|
|
19
|
+
export declare const whiteboardDialogBody: string;
|
|
20
|
+
export declare const whiteboardShell: string;
|
|
21
|
+
export declare const whiteboardSavedDot: string;
|
|
22
|
+
export declare const whiteboardOptionsActions: string;
|
|
23
|
+
export declare const whiteboardOptionsAdvanced: string;
|
|
24
|
+
export declare const whiteboardOptionsHeading: string;
|
|
25
|
+
export declare const whiteboardOptionsGroup: string;
|
|
26
|
+
export declare const whiteboardOptionsLabel: string;
|
|
27
|
+
export declare const whiteboardEditOverlay: string;
|
|
28
|
+
export declare const whiteboardEditLabel: string;
|
|
29
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../src/styles.css.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,yBAAyB,QAAmB,CAAC;AAE1D,eAAO,MAAM,yBAAyB,QAOpC,CAAC;AAOH,eAAO,MAAM,qBAAqB,QAGhC,CAAC;AAeH,eAAO,MAAM,oBAAoB,QAAoB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,QAI9B,CAAC;AAOH,eAAO,MAAM,iBAAiB,QAW5B,CAAC;AAEH,eAAO,MAAM,eAAe,QAG1B,CAAC;AAEH,eAAO,MAAM,eAAe,QAG1B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAI9B,CAAC;AAEH,eAAO,MAAM,eAAe,QAc1B,CAAC;AAEH,QAAA,MAAM,0BAA0B,QAAY,CAAC;AA2B7C,OAAO,EAAE,0BAA0B,IAAI,yBAAyB,EAAE,CAAC;AAInE,eAAO,MAAM,sBAAsB,QAQjC,CAAC;AAEH,eAAO,MAAM,2BAA2B,QAKtC,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAKhC,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAM/B,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAkBhC,CAAC;AAIH,eAAO,MAAM,sBAAsB,QAIjC,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAG/B,CAAC;AAEH,eAAO,MAAM,eAAe,QAG1B,CAAC;AAMH,eAAO,MAAM,kBAAkB,QAM7B,CAAC;AAEH,eAAO,MAAM,wBAAwB,QAInC,CAAC;AAEH,eAAO,MAAM,yBAAyB,QAEpC,CAAC;AAEH,eAAO,MAAM,wBAAwB,QAGnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,QAIjC,CAAC;AAEH,eAAO,MAAM,sBAAsB,QAGjC,CAAC;AAIH,eAAO,MAAM,qBAAqB,QAYhC,CAAC;AAEH,eAAO,MAAM,mBAAmB,QA2B9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../src/transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type WhiteboardSnapshot = {
|
|
2
|
+
type: 'inline';
|
|
3
|
+
data: Record<string, any>;
|
|
4
|
+
} | {
|
|
5
|
+
type: 'remote';
|
|
6
|
+
url: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: 'delta';
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
delta: object;
|
|
11
|
+
};
|
|
12
|
+
export declare function isLocalScenePath(ref: string): boolean;
|
|
13
|
+
export declare function parseSnapshot(raw: string): WhiteboardSnapshot | null;
|
|
14
|
+
export declare function serializeSnapshot(snapshot: WhiteboardSnapshot): string;
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAItD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAgCpE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,CAYtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.test.d.ts","sourceRoot":"","sources":["../src/types.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WhiteboardSnapshot } from './types';
|
|
2
|
+
export interface WhiteboardDataState {
|
|
3
|
+
/** The raw base data before delta patch (for computing new diffs in edit mode) */
|
|
4
|
+
baseData?: Record<string, any>;
|
|
5
|
+
/** The base reference line (URL or ref:file/xxx) when snapshot is remote or incremental */
|
|
6
|
+
baseRef?: string;
|
|
7
|
+
error: string;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
/** Re-fetches a remote or incremental snapshot; a no-op for inline data. */
|
|
10
|
+
retry: () => void;
|
|
11
|
+
/** True only when `error` came from a fetch, so `retry` can change the outcome. */
|
|
12
|
+
retryable: boolean;
|
|
13
|
+
snapshot: Record<string, any> | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function useWhiteboardData(data: string | WhiteboardSnapshot | null): WhiteboardDataState;
|
|
16
|
+
//# sourceMappingURL=useWhiteboardData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWhiteboardData.d.ts","sourceRoot":"","sources":["../src/useWhiteboardData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlD,MAAM,WAAW,mBAAmB;IAClC,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,4EAA4E;IAC5E,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,mFAAmF;IACnF,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CAC3C;AA6DD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,GAAG,mBAAmB,CA+E/F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWhiteboardFont.d.ts","sourceRoot":"","sources":["../src/useWhiteboardFont.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,sEACmC,CAAC;AAEtE,wBAAgB,iBAAiB,IAAI,IAAI,CAUxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-whiteboard",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.65.0",
|
|
4
|
+
"description": "Hand-drawn whiteboard extension for Excalidraw-format scenes",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Innei/haklex.git",
|
|
8
|
+
"directory": "packages/rich-ext-whiteboard"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./static": {
|
|
18
|
+
"import": "./dist/static.mjs",
|
|
19
|
+
"types": "./dist/static.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./style.css": "./dist/rich-ext-whiteboard.css"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.mjs",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@haklex/rich-headless": "0.65.0",
|
|
29
|
+
"jsondiffpatch": "^0.7.6",
|
|
30
|
+
"perfect-freehand": "^1.2.3",
|
|
31
|
+
"roughjs": "^4.6.6"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@lexical/link": "^0.53.0",
|
|
35
|
+
"@lexical/list": "^0.53.0",
|
|
36
|
+
"@lexical/react": "^0.53.0",
|
|
37
|
+
"@lexical/rich-text": "^0.53.0",
|
|
38
|
+
"@lexical/selection": "^0.53.0",
|
|
39
|
+
"@types/react": "^19.3.0",
|
|
40
|
+
"@types/react-dom": "^19.3.0",
|
|
41
|
+
"@vanilla-extract/css": "^1.21.3",
|
|
42
|
+
"@vanilla-extract/vite-plugin": "^5.2.6",
|
|
43
|
+
"lexical": "^0.53.0",
|
|
44
|
+
"lucide-react": "^1.59.0",
|
|
45
|
+
"react": "^19.3.1",
|
|
46
|
+
"react-dom": "^19.3.1",
|
|
47
|
+
"typescript": "^7.0.2",
|
|
48
|
+
"unplugin-dts": "^1.1.2",
|
|
49
|
+
"vite": "^8.3.5"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@haklex/rich-editor": "^0.65.0",
|
|
53
|
+
"@haklex/rich-editor-ui": "^0.65.0",
|
|
54
|
+
"@haklex/rich-style-token": "^0.65.0",
|
|
55
|
+
"@lexical/link": "^0.53.0",
|
|
56
|
+
"@lexical/list": "^0.53.0",
|
|
57
|
+
"@lexical/react": "^0.53.0",
|
|
58
|
+
"@lexical/rich-text": "^0.53.0",
|
|
59
|
+
"@lexical/selection": "^0.53.0",
|
|
60
|
+
"lexical": "^0.53.0",
|
|
61
|
+
"lucide-react": "^1.0.0",
|
|
62
|
+
"react": ">=19",
|
|
63
|
+
"react-dom": ">=19"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"access": "public"
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "vite build",
|
|
70
|
+
"dev:build": "vite build --watch"
|
|
71
|
+
},
|
|
72
|
+
"types": "./dist/index.d.ts"
|
|
6
73
|
}
|