@xom11/whiteboard 0.32.0 → 0.33.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.
Files changed (68) hide show
  1. package/dist/ai.d.mts +1 -1
  2. package/dist/ai.d.ts +1 -1
  3. package/dist/ai.mjs +2 -2
  4. package/dist/catalog.json +4 -4
  5. package/dist/{chunk-FI2MGX5H.mjs → chunk-4NJUTCFF.mjs} +3 -3
  6. package/dist/{chunk-FI2MGX5H.mjs.map → chunk-4NJUTCFF.mjs.map} +1 -1
  7. package/dist/{chunk-XSTGTEGP.mjs → chunk-BZZ5BROM.mjs} +4 -5
  8. package/dist/chunk-BZZ5BROM.mjs.map +1 -0
  9. package/dist/{host-JNLJ5BVR.mjs → chunk-C3RDFBQ5.mjs} +17 -32
  10. package/dist/chunk-C3RDFBQ5.mjs.map +1 -0
  11. package/dist/chunk-C7C66BAV.mjs +11 -0
  12. package/dist/chunk-C7C66BAV.mjs.map +1 -0
  13. package/dist/{chunk-DBG6DZ2V.mjs → chunk-FOPZOVI3.mjs} +5 -4
  14. package/dist/chunk-FOPZOVI3.mjs.map +1 -0
  15. package/dist/{chunk-MOAXHVKI.mjs → chunk-GKDQ5IV7.mjs} +3 -3
  16. package/dist/{chunk-MOAXHVKI.mjs.map → chunk-GKDQ5IV7.mjs.map} +1 -1
  17. package/dist/{chunk-KLGPAMJS.mjs → chunk-NBMYET5H.mjs} +3 -10
  18. package/dist/{chunk-KLGPAMJS.mjs.map → chunk-NBMYET5H.mjs.map} +1 -1
  19. package/dist/{chunk-DJM5EWTT.mjs → chunk-NTFG7ZRN.mjs} +2 -2
  20. package/dist/{chunk-DJM5EWTT.mjs.map → chunk-NTFG7ZRN.mjs.map} +1 -1
  21. package/dist/{chunk-C76SOFXF.mjs → chunk-QCK3Z5WN.mjs} +3 -3
  22. package/dist/{chunk-C76SOFXF.mjs.map → chunk-QCK3Z5WN.mjs.map} +1 -1
  23. package/dist/geometry-2d.d.mts +1 -1
  24. package/dist/geometry-2d.d.ts +1 -1
  25. package/dist/geometry-2d.js +146 -115
  26. package/dist/geometry-2d.js.map +1 -1
  27. package/dist/geometry-2d.mjs +4 -3
  28. package/dist/geometry-3d.d.mts +1 -1
  29. package/dist/geometry-3d.d.ts +1 -1
  30. package/dist/geometry-3d.js +6 -4
  31. package/dist/geometry-3d.js.map +1 -1
  32. package/dist/geometry-3d.mjs +2 -2
  33. package/dist/graph-2d.d.mts +1 -1
  34. package/dist/graph-2d.d.ts +1 -1
  35. package/dist/graph-2d.js +6 -4
  36. package/dist/graph-2d.js.map +1 -1
  37. package/dist/graph-2d.mjs +2 -2
  38. package/dist/host-6WTLCXUE.mjs +62 -0
  39. package/dist/host-6WTLCXUE.mjs.map +1 -0
  40. package/dist/{host-H2IGOKJU.mjs → host-BWIXT5TR.mjs} +3 -3
  41. package/dist/{host-H2IGOKJU.mjs.map → host-BWIXT5TR.mjs.map} +1 -1
  42. package/dist/{host-VRWLQSMH.mjs → host-QDVRULJV.mjs} +10 -7
  43. package/dist/host-QDVRULJV.mjs.map +1 -0
  44. package/dist/{host-W4U6YCSX.mjs → host-USOIVTQB.mjs} +10 -7
  45. package/dist/host-USOIVTQB.mjs.map +1 -0
  46. package/dist/index.d.mts +13 -3
  47. package/dist/index.d.ts +13 -3
  48. package/dist/index.js +173 -119
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.mjs +31 -16
  51. package/dist/index.mjs.map +1 -1
  52. package/dist/latex.d.mts +1 -1
  53. package/dist/latex.d.ts +1 -1
  54. package/dist/latex.mjs +1 -1
  55. package/dist/studio.d.mts +35 -0
  56. package/dist/studio.d.ts +35 -0
  57. package/dist/studio.js +10883 -0
  58. package/dist/studio.js.map +1 -0
  59. package/dist/studio.mjs +28 -0
  60. package/dist/studio.mjs.map +1 -0
  61. package/dist/{types-tePd94vW.d.mts → types-eEEEVsLF.d.mts} +1 -1
  62. package/dist/{types-tePd94vW.d.ts → types-eEEEVsLF.d.ts} +1 -1
  63. package/package.json +9 -2
  64. package/dist/chunk-DBG6DZ2V.mjs.map +0 -1
  65. package/dist/chunk-XSTGTEGP.mjs.map +0 -1
  66. package/dist/host-JNLJ5BVR.mjs.map +0 -1
  67. package/dist/host-VRWLQSMH.mjs.map +0 -1
  68. package/dist/host-W4U6YCSX.mjs.map +0 -1
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { VIEW3D_ATTRS, DEFAULT_VIEW3D, GROUND_PLANE_RANGE, GROUND_PLANE_ATTRS, paletteFor, JxgRenderer3D, serializeBoard3D, renderGeometry3DSvgFromState, isGeometry3DCustomData, deserializeBoard3D } from './chunk-DCFZTKFE.mjs';
3
+ import { insertStampImage } from './chunk-QLQ4MJNO.mjs';
4
+ import './chunk-5UTGXHLJ.mjs';
3
5
  import { useChordShortcut } from './chunk-HNQLZIEP.mjs';
4
- import { initJxgBoard, attachJxgWheelZoom, useToast, ToastHost, STAMP_PANEL_DESKTOP, ToastProvider, useStampStore, StampLeftPanel } from './chunk-XSTGTEGP.mjs';
6
+ import { initJxgBoard, attachJxgWheelZoom, useToast, ToastHost, STAMP_PANEL_DESKTOP, ToastProvider, useStampStore, StampLeftPanel } from './chunk-BZZ5BROM.mjs';
7
+ import { useIsMobile } from './chunk-P2AOIF7S.mjs';
5
8
  import './chunk-R5FL6S7L.mjs';
6
9
  import './chunk-ICR4CVOE.mjs';
7
10
  import { useEditorState, constraintToWorld, nextLabel, listObjects, planeConstructionWorld } from './chunk-4EXRNZRX.mjs';
8
11
  import { createStore } from './chunk-CH6SFONH.mjs';
9
12
  import { createEmptyState } from './chunk-MNHOFOM5.mjs';
10
13
  import './chunk-B4NJJZFR.mjs';
11
- import { useIsMobile } from './chunk-P2AOIF7S.mjs';
12
- import { insertStampImage } from './chunk-QLQ4MJNO.mjs';
13
- import './chunk-5UTGXHLJ.mjs';
14
14
  import './chunk-J5LGTIGS.mjs';
15
15
  import * as React3 from 'react';
16
16
  import { forwardRef, useRef, useState, useCallback, useImperativeHandle } from 'react';
@@ -4851,7 +4851,10 @@ function parseInitialState(data) {
4851
4851
  var Geometry3DStampHost = forwardRef(
4852
4852
  function Geometry3DStampHost2({ api, editingElement, onClose, isDark }, ref) {
4853
4853
  const editorRef = useRef(null);
4854
- const sceneStore = useStampStore("3d", editingElement, parseInitialState);
4854
+ const sceneStore = useStampStore(
4855
+ "3d",
4856
+ () => editingElement?.customData ? parseInitialState(editingElement.customData) : null
4857
+ );
4855
4858
  const { isMobile } = useIsMobile();
4856
4859
  const [drawerOpen, setDrawerOpen] = useState(false);
4857
4860
  const [selectedTool, setSelectedTool] = useState("move");
@@ -4969,5 +4972,5 @@ var Geometry3DStampHost = forwardRef(
4969
4972
  );
4970
4973
 
4971
4974
  export { Geometry3DStampHost };
4972
- //# sourceMappingURL=host-W4U6YCSX.mjs.map
4973
- //# sourceMappingURL=host-W4U6YCSX.mjs.map
4975
+ //# sourceMappingURL=host-USOIVTQB.mjs.map
4976
+ //# sourceMappingURL=host-USOIVTQB.mjs.map