canvu-react 0.3.29 → 0.3.31

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 (45) hide show
  1. package/dist/{asset-hydration-BEG21hMp.d.ts → asset-hydration-DrTOgDdd.d.ts} +2 -2
  2. package/dist/{asset-hydration-3Iv5xHxM.d.cts → asset-hydration-EtEuBwb7.d.cts} +2 -2
  3. package/dist/{camera-KwCYYPhm.d.ts → camera-AoTwBSoE.d.ts} +1 -1
  4. package/dist/{camera-BwQjm5oh.d.cts → camera-Di5R_Rwl.d.cts} +1 -1
  5. package/dist/chatbot.d.cts +4 -4
  6. package/dist/chatbot.d.ts +4 -4
  7. package/dist/index.cjs +85 -1
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +6 -6
  10. package/dist/index.d.ts +6 -6
  11. package/dist/index.js +83 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/native.cjs +66 -0
  14. package/dist/native.cjs.map +1 -1
  15. package/dist/native.d.cts +2 -2
  16. package/dist/native.d.ts +2 -2
  17. package/dist/native.js +66 -0
  18. package/dist/native.js.map +1 -1
  19. package/dist/react.cjs +143 -7
  20. package/dist/react.cjs.map +1 -1
  21. package/dist/react.d.cts +15 -12
  22. package/dist/react.d.ts +15 -12
  23. package/dist/react.js +143 -8
  24. package/dist/react.js.map +1 -1
  25. package/dist/realtime.cjs +11 -0
  26. package/dist/realtime.cjs.map +1 -1
  27. package/dist/realtime.d.cts +6 -6
  28. package/dist/realtime.d.ts +6 -6
  29. package/dist/realtime.js +11 -0
  30. package/dist/realtime.js.map +1 -1
  31. package/dist/{shape-builders-DFudWDFI.d.cts → shape-builders-CsSXKCcs.d.ts} +43 -2
  32. package/dist/{shape-builders-ENwnK-zT.d.ts → shape-builders-CsbSRZnQ.d.cts} +43 -2
  33. package/dist/tldraw.cjs +68 -2
  34. package/dist/tldraw.cjs.map +1 -1
  35. package/dist/tldraw.d.cts +1 -1
  36. package/dist/tldraw.d.ts +1 -1
  37. package/dist/tldraw.js +68 -2
  38. package/dist/tldraw.js.map +1 -1
  39. package/dist/{types-DNwjgs5U.d.cts → types-B2Na677H.d.cts} +1 -1
  40. package/dist/{types-BLXR7g_L.d.cts → types-B6PAYKzx.d.ts} +4 -4
  41. package/dist/{types-CB0TZZuk.d.cts → types-Bnq2HtHQ.d.cts} +1 -1
  42. package/dist/{types-CB0TZZuk.d.ts → types-Bnq2HtHQ.d.ts} +1 -1
  43. package/dist/{types-Cm7IsgL4.d.ts → types-DWGk2_GZ.d.cts} +4 -4
  44. package/dist/{types-BtAJFS_-.d.ts → types-zmUah-vP.d.ts} +1 -1
  45. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { P as PlacementPreview, R as RemotePresenceMarkupStroke, A as RemotePresencePeer, D as RemotePresenceCamera, E as RealtimeConnectionState, q as VectorViewportHandle, V as VectorToolDefinition, r as VectorViewportProps, C as CanvasPlugin, e as CanvasPluginRenderContext } from './types-BLXR7g_L.cjs';
2
- export { F as PresenceOverlayRenderContext } from './types-BLXR7g_L.cjs';
1
+ import { P as PlacementPreview, R as RemotePresenceMarkupStroke, A as RemotePresencePeer, D as RemotePresenceCamera, E as RealtimeConnectionState, q as VectorViewportHandle, V as VectorToolDefinition, r as VectorViewportProps, C as CanvasPlugin, e as CanvasPluginRenderContext } from './types-DWGk2_GZ.cjs';
2
+ export { F as PresenceOverlayRenderContext } from './types-DWGk2_GZ.cjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { C as Camera2D } from './camera-BwQjm5oh.cjs';
5
- import { V as VectorSceneItem, R as Rect } from './types-CB0TZZuk.cjs';
4
+ import { C as Camera2D } from './camera-Di5R_Rwl.cjs';
5
+ import { V as VectorSceneItem, R as Rect } from './types-Bnq2HtHQ.cjs';
6
6
  import { ReactNode, RefObject } from 'react';
7
- import { a as VectorCanvasRemoteAdapter } from './types-DNwjgs5U.cjs';
8
- import './shape-builders-DFudWDFI.cjs';
7
+ import { a as VectorCanvasRemoteAdapter } from './types-B2Na677H.cjs';
8
+ import './shape-builders-CsbSRZnQ.cjs';
9
9
 
10
10
  /**
11
11
  * Maps a local {@link PlacementPreview} stroke to {@link RemotePresenceMarkupStroke} for broadcasting.
@@ -1,11 +1,11 @@
1
- import { P as PlacementPreview, R as RemotePresenceMarkupStroke, A as RemotePresencePeer, D as RemotePresenceCamera, E as RealtimeConnectionState, q as VectorViewportHandle, V as VectorToolDefinition, r as VectorViewportProps, C as CanvasPlugin, e as CanvasPluginRenderContext } from './types-Cm7IsgL4.js';
2
- export { F as PresenceOverlayRenderContext } from './types-Cm7IsgL4.js';
1
+ import { P as PlacementPreview, R as RemotePresenceMarkupStroke, A as RemotePresencePeer, D as RemotePresenceCamera, E as RealtimeConnectionState, q as VectorViewportHandle, V as VectorToolDefinition, r as VectorViewportProps, C as CanvasPlugin, e as CanvasPluginRenderContext } from './types-B6PAYKzx.js';
2
+ export { F as PresenceOverlayRenderContext } from './types-B6PAYKzx.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { C as Camera2D } from './camera-KwCYYPhm.js';
5
- import { V as VectorSceneItem, R as Rect } from './types-CB0TZZuk.js';
4
+ import { C as Camera2D } from './camera-AoTwBSoE.js';
5
+ import { V as VectorSceneItem, R as Rect } from './types-Bnq2HtHQ.js';
6
6
  import { ReactNode, RefObject } from 'react';
7
- import { a as VectorCanvasRemoteAdapter } from './types-BtAJFS_-.js';
8
- import './shape-builders-ENwnK-zT.js';
7
+ import { a as VectorCanvasRemoteAdapter } from './types-zmUah-vP.js';
8
+ import './shape-builders-CsSXKCcs.js';
9
9
 
10
10
  /**
11
11
  * Maps a local {@link PlacementPreview} stroke to {@link RemotePresenceMarkupStroke} for broadcasting.
package/dist/realtime.js CHANGED
@@ -860,6 +860,7 @@ function useCanvuPluginContribution(pluginId, contribution) {
860
860
  return () => unregisterContribution(pluginId);
861
861
  }, [contribution, pluginId, registerContribution, unregisterContribution]);
862
862
  }
863
+ var architecturalCloudIconPath = "M12 8.28 Q14.33 7.17 15.86 8.78 Q18.36 8.46 18.69 10.14 Q20.69 10.71 19.72 12 Q20.69 13.29 18.69 13.86 Q18.36 15.54 15.86 15.22 Q14.33 16.83 12 15.72 Q9.67 16.83 8.14 15.22 Q5.64 15.54 5.31 13.86 Q3.31 13.29 4.28 12 Q3.31 10.71 5.31 10.14 Q5.64 8.46 8.14 8.78 Q9.67 7.17 12 8.28 Z";
863
864
  var base = {
864
865
  width: 20,
865
866
  height: 20,
@@ -870,6 +871,9 @@ var base = {
870
871
  strokeLinecap: "round",
871
872
  strokeLinejoin: "round"
872
873
  };
874
+ function IconArchitecturalCloud(props) {
875
+ return /* @__PURE__ */ jsx("svg", { ...base, ...props, "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: architecturalCloudIconPath, transform: "translate(0 4)" }) });
876
+ }
873
877
  function IconLaser(props) {
874
878
  return /* @__PURE__ */ jsxs("svg", { ...base, ...props, "aria-hidden": true, children: [
875
879
  /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2.5" }),
@@ -905,6 +909,13 @@ var DEFAULT_VECTOR_TOOLS = [
905
909
  icon: /* @__PURE__ */ jsx(Circle, { ...ic, "aria-hidden": true }),
906
910
  shortcutHint: "O"
907
911
  },
912
+ {
913
+ id: "architectural-cloud",
914
+ label: "Nuvem arquitetural",
915
+ tooltipLabel: "Architectural cloud",
916
+ icon: /* @__PURE__ */ jsx(IconArchitecturalCloud, { "aria-hidden": true }),
917
+ shortcutHint: "C"
918
+ },
908
919
  {
909
920
  id: "line",
910
921
  label: "Line",