react-semaphor 0.1.132 → 0.1.133

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 (24) hide show
  1. package/dist/chunks/{dashboard-controls-DQMFJcPB.js → dashboard-controls-C1rIPoLI.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-CWG6EatR.js → dashboard-controls-YCOwB4c7.js} +207 -207
  3. package/dist/chunks/{dashboard-export-dialog-DofqNYdv.js → dashboard-export-dialog-BpjTGwvL.js} +31 -31
  4. package/dist/chunks/{dashboard-export-dialog-CYRUEIF0.js → dashboard-export-dialog-CsU5-_Nc.js} +1 -1
  5. package/dist/chunks/{dashboard-json-CfXtWYQo.js → dashboard-json-BwJ6kZV2.js} +1 -1
  6. package/dist/chunks/{dashboard-json-D5b7lskH.js → dashboard-json-DDxHEaDO.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-C4ur0h-P.js → edit-dashboard-visual-BoV4X2or.js} +1 -1
  8. package/dist/chunks/{edit-dashboard-visual-CSfaO06L.js → edit-dashboard-visual-DdK_bxBz.js} +191 -191
  9. package/dist/chunks/{editor-action-buttons-7cxzFlCm.js → editor-action-buttons-CK2siDBM.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-DWHiK2yJ.js → editor-action-buttons-CmA0eoCZ.js} +1 -1
  11. package/dist/chunks/{index-B6RYfqnr.js → index-BCmbfOd2.js} +4 -4
  12. package/dist/chunks/{index-CRA38qes.js → index-DilTtW4W.js} +184 -178
  13. package/dist/chunks/{resource-management-panel-DnKFfVOc.js → resource-management-panel-Bt1zi1Yb.js} +116 -116
  14. package/dist/chunks/{resource-management-panel-CC_r1yro.js → resource-management-panel-Fs9hg3pC.js} +1 -1
  15. package/dist/chunks/{use-visual-utils-B41g03Pc.js → use-visual-utils-Cjv_OnmO.js} +1 -1
  16. package/dist/chunks/{use-visual-utils-CZNuwJRU.js → use-visual-utils-CzQAEa-2.js} +1 -1
  17. package/dist/dashboard/index.cjs +1 -1
  18. package/dist/dashboard/index.js +1 -1
  19. package/dist/index.cjs +2 -2
  20. package/dist/index.js +30 -29
  21. package/dist/surfboard/index.cjs +1 -1
  22. package/dist/surfboard/index.js +1 -1
  23. package/dist/types/main.d.ts +11 -0
  24. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as a, Fragment as F } from "react/jsx-runtime";
2
- import { b as q, ar as $, as as H, at as W, au as _, av as K, aw as A, ax as J, ay as Z, az as V, aA as Q, B as P, L as T, f as E, i as ee, u as b, an as ae, g as X, aB as se, aC as O, l as v, aD as te, aE as re, c as I, aF as B, aG as L, aH as z, aI as U, aJ as G, e as oe, aK as le, aL as ne, aM as de, aN as ie, aO as ce, aP as he, aQ as ue, aR as me, aS as pe, aT as fe, aU as ve, aV as ge, Q as be, I as Ce, aW as we, aX as xe, am as De, aY as ye, aZ as R, a_ as Ne, a$ as Se, b0 as Ae, b1 as Pe, b2 as Fe, b3 as ke, V as Ie } from "./index-CRA38qes.js";
3
- import { E as Ee, V as Me, a as Ve, b as Te, S as j, c as Oe } from "./editor-action-buttons-7cxzFlCm.js";
2
+ import { b as J, as as W, at as $, au as H, av as _, aw as K, ax as A, ay as Q, az as Z, aA as T, aB as X, B as P, L as V, f as E, i as ee, u as b, ao as ae, g as Y, aC as se, aD as O, l as v, aE as te, aF as re, c as I, aG as B, aH as L, aI as z, aJ as U, aK as G, e as oe, aL as le, aM as ne, aN as de, aO as ie, aP as ce, aQ as he, aR as ue, aS as me, aT as pe, aU as fe, aV as ve, aW as ge, T as be, I as Ce, aX as we, aY as xe, an as De, aZ as ye, a_ as R, a$ as Ne, b0 as Se, b1 as Ae, b2 as Pe, b3 as Fe, b4 as ke, W as Ie } from "./index-DilTtW4W.js";
3
+ import { E as Ee, V as Me, a as Te, b as Ve, S as j, c as Oe } from "./editor-action-buttons-CK2siDBM.js";
4
4
  import Be, { useState as C, useContext as Le, useEffect as ze } from "react";
5
- import { a as Y } from "./use-visual-utils-CZNuwJRU.js";
5
+ import { a as q } from "./use-visual-utils-CzQAEa-2.js";
6
6
  /**
7
7
  * @license lucide-react v0.453.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const Ue = q("CirclePlus", [
12
+ const Ue = J("CirclePlus", [
13
13
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
14
14
  ["path", { d: "M8 12h8", key: "1wcyev" }],
15
15
  ["path", { d: "M12 8v8", key: "napkw2" }]
@@ -38,8 +38,8 @@ function Ge({
38
38
  saveToCurrentDashboard: p
39
39
  }));
40
40
  }, D = s.trim() && (g || p);
41
- return /* @__PURE__ */ e($, { open: c, onOpenChange: i, children: /* @__PURE__ */ a(H, { className: "sm:max-w-[425px]", children: [
42
- /* @__PURE__ */ a(W, { children: [
41
+ return /* @__PURE__ */ e(W, { open: c, onOpenChange: i, children: /* @__PURE__ */ a($, { className: "sm:max-w-[425px]", children: [
42
+ /* @__PURE__ */ a(H, { children: [
43
43
  /* @__PURE__ */ e(_, { children: "Save Visual As" }),
44
44
  /* @__PURE__ */ e(K, { children: r ? "Create a copy of this visual with a new name" : "Save this visual to make it reusable" })
45
45
  ] }),
@@ -47,7 +47,7 @@ function Ge({
47
47
  /* @__PURE__ */ a("div", { className: "grid gap-2", children: [
48
48
  /* @__PURE__ */ e(A, { htmlFor: "name", children: "Name" }),
49
49
  /* @__PURE__ */ e(
50
- J,
50
+ Q,
51
51
  {
52
52
  id: "name",
53
53
  value: s,
@@ -76,7 +76,7 @@ function Ge({
76
76
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
77
77
  /* @__PURE__ */ a("div", { className: "flex items-center space-x-2", children: [
78
78
  /* @__PURE__ */ e(
79
- V,
79
+ T,
80
80
  {
81
81
  id: "save-to-dashboard",
82
82
  checked: p,
@@ -98,7 +98,7 @@ function Ge({
98
98
  ] }),
99
99
  /* @__PURE__ */ a("div", { className: "flex items-center space-x-2", children: [
100
100
  /* @__PURE__ */ e(
101
- V,
101
+ T,
102
102
  {
103
103
  id: "save-to-library",
104
104
  checked: g,
@@ -122,7 +122,7 @@ function Ge({
122
122
  !g && !p && /* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: "Please select at least one destination" })
123
123
  ] })
124
124
  ] }),
125
- /* @__PURE__ */ a(Q, { children: [
125
+ /* @__PURE__ */ a(X, { children: [
126
126
  /* @__PURE__ */ e(
127
127
  P,
128
128
  {
@@ -133,7 +133,7 @@ function Ge({
133
133
  }
134
134
  ),
135
135
  /* @__PURE__ */ a(P, { onClick: x, disabled: !D || d, children: [
136
- d && /* @__PURE__ */ e(T, { className: "mr-2 h-4 w-4 animate-spin" }),
136
+ d && /* @__PURE__ */ e(V, { className: "mr-2 h-4 w-4 animate-spin" }),
137
137
  d ? "Saving..." : "Save"
138
138
  ] })
139
139
  ] })
@@ -142,7 +142,7 @@ function Ge({
142
142
  function Re() {
143
143
  const [c, i] = C(!1), [r, o] = C(!1), [d, m] = C(null), s = E((u) => u.frame), l = E((u) => u.card), n = ee(), f = b((u) => u.selectedSheetId), g = b(
144
144
  (u) => u.actions.setIsDashboardPanelOpen
145
- ), { getUpdatedFrame: w } = Y(), { selectVisual: p } = ae(), { addFrame: N, setSelectedFrameId: x, setIsVisualEditing: D } = X(), t = !!(s != null && s.visualId), S = (() => {
145
+ ), { getUpdatedFrame: w } = q(), { selectVisual: p } = ae(), { addFrame: N, setSelectedFrameId: x, setIsVisualEditing: D } = Y(), t = !!(s != null && s.visualId), S = (() => {
146
146
  var u, y;
147
147
  return ((u = s == null ? void 0 : s.cards) == null ? void 0 : u.length) === 1 && ((y = s.cards[0]) != null && y.title) ? s.cards[0].title : n != null && n.title ? n.title : (l == null ? void 0 : l.title) || "Untitled Visual";
148
148
  })(), h = se((u) => {
@@ -201,17 +201,17 @@ function Re() {
201
201
  isSaving: h.isPending
202
202
  };
203
203
  }
204
- function Xe({
204
+ function Ye({
205
205
  className: c
206
206
  }) {
207
- const i = E((h) => h.frame), r = E((h) => h.card), o = te((h) => h.selectedVisual), d = b((h) => h.selectedFrameId), m = b((h) => h.selectedSheetId), { setIsVisualEditing: s } = X(), l = !!(i != null && i.visualId || o != null && o.id), n = !!(i != null && i.visualId && d), f = l && !n, {
207
+ const i = E((h) => h.frame), r = E((h) => h.card), o = te((h) => h.selectedVisual), d = b((h) => h.selectedFrameId), m = b((h) => h.selectedSheetId), { setIsVisualEditing: s } = Y(), l = !!(i != null && i.visualId || o != null && o.id), n = !!(i != null && i.visualId && d), f = l && !n, {
208
208
  saveAsDialogOpen: g,
209
209
  setSaveAsDialogOpen: w,
210
210
  handleSaveAs: p,
211
211
  isLibraryVisual: N,
212
212
  currentVisualName: x,
213
213
  isSaving: D
214
- } = Re(), { handleAddLibraryVisual: t } = Y(), S = async () => {
214
+ } = Re(), { handleAddLibraryVisual: t } = q(), S = async () => {
215
215
  if (!m) {
216
216
  v.error("No dashboard sheet selected");
217
217
  return;
@@ -240,8 +240,8 @@ function Xe({
240
240
  ]
241
241
  }
242
242
  ),
243
- f && /* @__PURE__ */ e(Ve, { className: c, variant: "default" }),
244
- n && /* @__PURE__ */ e(Te, { className: c }),
243
+ f && /* @__PURE__ */ e(Te, { className: c, variant: "default" }),
244
+ n && /* @__PURE__ */ e(Ve, { className: c }),
245
245
  /* @__PURE__ */ a(B, { modal: !1, children: [
246
246
  /* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ e(
247
247
  P,
@@ -297,7 +297,7 @@ function Xe({
297
297
  )
298
298
  ] });
299
299
  }
300
- function Ye({
300
+ function qe({
301
301
  className: c,
302
302
  //labelClassName,
303
303
  switchClassName: i
@@ -318,7 +318,7 @@ function Ye({
318
318
  /* @__PURE__ */ e("label", { htmlFor: "advanced-mode", className: "sr-only", children: "Advanced Mode" })
319
319
  ] });
320
320
  }
321
- function qe({
321
+ function Je({
322
322
  open: c,
323
323
  onOpenChange: i,
324
324
  onSave: r,
@@ -360,7 +360,7 @@ function qe({
360
360
  disabled: d,
361
361
  className: "order-3 m-0 bg-primary text-primary-foreground hover:bg-primary/90 sm:order-3",
362
362
  children: d ? /* @__PURE__ */ a(F, { children: [
363
- /* @__PURE__ */ e(T, { className: "mr-2 h-4 w-4 animate-spin" }),
363
+ /* @__PURE__ */ e(V, { className: "mr-2 h-4 w-4 animate-spin" }),
364
364
  "Saving..."
365
365
  ] }) : "Save & Close"
366
366
  }
@@ -368,7 +368,7 @@ function qe({
368
368
  ] })
369
369
  ] }) });
370
370
  }
371
- function Je(c, i, r, o) {
371
+ function Qe(c, i, r, o) {
372
372
  ze(() => {
373
373
  c && !r && i && o(be(i));
374
374
  }, [c, r, i, o]);
@@ -453,7 +453,7 @@ function ea({
453
453
  }
454
454
  }
455
455
  return /* @__PURE__ */ e(
456
- $,
456
+ W,
457
457
  {
458
458
  open: c,
459
459
  onOpenChange: (t) => {
@@ -463,8 +463,8 @@ function ea({
463
463
  }
464
464
  i(!0);
465
465
  },
466
- children: /* @__PURE__ */ a(H, { className: "sm:max-w-[425px]", children: [
467
- /* @__PURE__ */ a(W, { children: [
466
+ children: /* @__PURE__ */ a($, { className: "sm:max-w-[425px]", children: [
467
+ /* @__PURE__ */ a(H, { children: [
468
468
  /* @__PURE__ */ e(_, { children: "Export Dashboard" }),
469
469
  /* @__PURE__ */ e(K, { children: "Export your dashboard as a PDF document." })
470
470
  ] }),
@@ -520,7 +520,7 @@ function ea({
520
520
  /* @__PURE__ */ a("div", { className: "space-y-3", children: [
521
521
  /* @__PURE__ */ a("div", { className: "flex items-center space-x-2", children: [
522
522
  /* @__PURE__ */ e(
523
- V,
523
+ T,
524
524
  {
525
525
  id: "protect-pdf",
526
526
  checked: s.protectPdf,
@@ -578,10 +578,10 @@ function ea({
578
578
  ] })
579
579
  ] })
580
580
  ] }),
581
- /* @__PURE__ */ a(Q, { children: [
581
+ /* @__PURE__ */ a(X, { children: [
582
582
  /* @__PURE__ */ e(P, { variant: "outline", onClick: x, disabled: d, children: "Cancel" }),
583
583
  /* @__PURE__ */ e(P, { onClick: D, disabled: d, children: d ? /* @__PURE__ */ a(F, { children: [
584
- /* @__PURE__ */ e(T, { className: "mr-2 h-4 w-4 animate-spin" }),
584
+ /* @__PURE__ */ e(V, { className: "mr-2 h-4 w-4 animate-spin" }),
585
585
  "Exporting..."
586
586
  ] }) : /* @__PURE__ */ a(F, { children: [
587
587
  /* @__PURE__ */ e(ke, { className: "mr-2 h-4 w-4" }),
@@ -593,10 +593,10 @@ function ea({
593
593
  );
594
594
  }
595
595
  export {
596
- Ye as A,
596
+ qe as A,
597
597
  ea as D,
598
598
  Ze as S,
599
- qe as U,
600
- Xe as V,
601
- Je as u
599
+ Je as U,
600
+ Ye as V,
601
+ Qe as u
602
602
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("./index-B6RYfqnr.js"),w=require("./editor-action-buttons-DWHiK2yJ.js"),x=require("react"),F=require("./use-visual-utils-B41g03Pc.js");/**
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("./index-BCmbfOd2.js"),w=require("./editor-action-buttons-CmA0eoCZ.js"),x=require("react"),F=require("./use-visual-utils-Cjv_OnmO.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { u as s, c as l, B as h, X as d, d as c } from "./index-CRA38qes.js";
2
+ import { u as s, c as l, B as h, X as d, d as c } from "./index-DilTtW4W.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  function N() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-B6RYfqnr.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-BCmbfOd2.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-B6RYfqnr.js"),D=require("react"),He=require("./editor-action-buttons-DWHiK2yJ.js"),at=require("react-dom"),rt=require("./use-visual-utils-B41g03Pc.js"),lt=require("./use-click-outside-B9T3lmcw.js");function ot(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Ue=ot(D);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BCmbfOd2.js"),D=require("react"),He=require("./editor-action-buttons-CmA0eoCZ.js"),at=require("react-dom"),rt=require("./use-visual-utils-Cjv_OnmO.js"),lt=require("./use-click-outside-B9T3lmcw.js");function ot(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Ue=ot(D);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.