react-semaphor 0.1.159 → 0.1.162

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 (27) hide show
  1. package/dist/chunks/{dashboard-controls-DIo_VMBS.js → dashboard-controls-4GSRkLCI.js} +6 -6
  2. package/dist/chunks/{dashboard-controls-DnlJRUpY.js → dashboard-controls-CeSBs5Hq.js} +191 -190
  3. package/dist/chunks/{dashboard-export-dialog-CZhtshog.js → dashboard-export-dialog-D514_qGz.js} +1 -1
  4. package/dist/chunks/{dashboard-export-dialog-D6bmvl-v.js → dashboard-export-dialog-MpHrSiyY.js} +22 -22
  5. package/dist/chunks/{dashboard-json-Bagczd1F.js → dashboard-json-O63iXsoj.js} +1 -1
  6. package/dist/chunks/{dashboard-json-D1jy0qDk.js → dashboard-json-UCoG-_cW.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-ANoND-SH.js → edit-dashboard-visual-DsBEfgxL.js} +1 -1
  8. package/dist/chunks/{edit-dashboard-visual-B6Q0AUbn.js → edit-dashboard-visual-E6Kq46ex.js} +656 -656
  9. package/dist/chunks/{editor-action-buttons-CMNOhq91.js → editor-action-buttons-CMCgCcUE.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-B1yfEUpI.js → editor-action-buttons-Cm7pHxM_.js} +1 -1
  11. package/dist/chunks/{index-CMymongy.js → index-B9l7fpA-.js} +18375 -18463
  12. package/dist/chunks/{index-Dy-VUjSy.js → index-oMb4lVSV.js} +222 -222
  13. package/dist/chunks/{resource-management-panel-BPl4Mk9m.js → resource-management-panel-BxvT3mn3.js} +343 -335
  14. package/dist/chunks/resource-management-panel-yBYy59zu.js +6 -0
  15. package/dist/chunks/use-role-aware-display-preferences-97_9jIzt.js +29 -0
  16. package/dist/chunks/use-role-aware-display-preferences-jONtUniC.js +1 -0
  17. package/dist/chunks/{use-visual-utils-BH4FZWUV.js → use-visual-utils-D6xUgbea.js} +1 -1
  18. package/dist/chunks/{use-visual-utils-H7arppWh.js → use-visual-utils-lD1p2yII.js} +24 -24
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/index.cjs +2 -2
  22. package/dist/index.js +67 -65
  23. package/dist/surfboard/index.cjs +1 -1
  24. package/dist/surfboard/index.js +1 -1
  25. package/dist/types/main.d.ts +68 -1
  26. package/package.json +1 -1
  27. package/dist/chunks/resource-management-panel--vwXhI58.js +0 -6
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("./index-Dy-VUjSy.js"),w=require("./editor-action-buttons-B1yfEUpI.js"),x=require("react"),F=require("./use-visual-utils-BH4FZWUV.js");/**
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("./index-oMb4lVSV.js"),w=require("./editor-action-buttons-Cm7pHxM_.js"),x=require("react"),F=require("./use-visual-utils-D6xUgbea.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as a, Fragment as F } from "react/jsx-runtime";
2
- import { b as J, at as $, au as H, av as W, aw as Y, ax as _, ay as A, az as Q, aA as Z, aB as V, aC as K, B as P, L as T, f as E, i as ee, u as b, ap as ae, g as X, aD as se, aE as O, l as v, A 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, V as be, I as Ce, aX as we, aY as xe, ao 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, Y as Ie } from "./index-CMymongy.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-CMNOhq91.js";
2
+ import { l as X, aD as $, aE as H, aF as W, aG as _, aH as q, aI as A, aJ as Y, aK as Z, aL as V, aM as J, B as P, L as T, n as E, q as ee, u as b, az as ae, o as K, aN as se, aO as O, t as v, Q as te, aP as re, c as I, aQ as B, aR as L, aS as z, aT as U, aU as G, m as oe, aV as le, aW as ne, aX as de, aY as ie, aZ as ce, a_ as he, a$ as ue, b0 as me, b1 as pe, b2 as fe, b3 as ve, b4 as ge, a4 as be, J as Ce, b5 as we, b6 as xe, ay as De, b7 as ye, b8 as R, b9 as Ne, ba as Se, bb as Ae, bc as Pe, bd as Fe, be as ke, a6 as Ie } from "./index-B9l7fpA-.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-CMCgCcUE.js";
4
4
  import Be, { useState as C, useContext as Le, useEffect as ze } from "react";
5
- import { a as q } from "./use-visual-utils-H7arppWh.js";
5
+ import { a as Q } from "./use-visual-utils-lD1p2yII.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 = J("CirclePlus", [
12
+ const Ue = X("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" }]
@@ -40,14 +40,14 @@ function Ge({
40
40
  }, D = s.trim() && (g || p);
41
41
  return /* @__PURE__ */ e($, { open: c, onOpenChange: i, children: /* @__PURE__ */ a(H, { className: "sm:max-w-[425px]", children: [
42
42
  /* @__PURE__ */ a(W, { children: [
43
- /* @__PURE__ */ e(Y, { children: "Save Visual As" }),
44
- /* @__PURE__ */ e(_, { children: r ? "Create a copy of this visual with a new name" : "Save this visual to make it reusable" })
43
+ /* @__PURE__ */ e(_, { children: "Save Visual As" }),
44
+ /* @__PURE__ */ e(q, { children: r ? "Create a copy of this visual with a new name" : "Save this visual to make it reusable" })
45
45
  ] }),
46
46
  /* @__PURE__ */ a("div", { className: "grid gap-4 py-4", children: [
47
47
  /* @__PURE__ */ a("div", { className: "grid gap-2", children: [
48
48
  /* @__PURE__ */ e(A, { htmlFor: "name", children: "Name" }),
49
49
  /* @__PURE__ */ e(
50
- Q,
50
+ Y,
51
51
  {
52
52
  id: "name",
53
53
  value: s,
@@ -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(K, { children: [
125
+ /* @__PURE__ */ a(J, { children: [
126
126
  /* @__PURE__ */ e(
127
127
  P,
128
128
  {
@@ -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 } = q(), { 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 } = K(), 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 Ke({
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 } = K(), 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 } = q(), S = async () => {
214
+ } = Re(), { handleAddLibraryVisual: t } = Q(), S = async () => {
215
215
  if (!m) {
216
216
  v.error("No dashboard sheet selected");
217
217
  return;
@@ -297,7 +297,7 @@ function Xe({
297
297
  )
298
298
  ] });
299
299
  }
300
- function qe({
300
+ function Qe({
301
301
  className: c,
302
302
  //labelClassName,
303
303
  switchClassName: i
@@ -318,7 +318,7 @@ function qe({
318
318
  /* @__PURE__ */ e("label", { htmlFor: "advanced-mode", className: "sr-only", children: "Advanced Mode" })
319
319
  ] });
320
320
  }
321
- function Je({
321
+ function Xe({
322
322
  open: c,
323
323
  onOpenChange: i,
324
324
  onSave: r,
@@ -368,7 +368,7 @@ function Je({
368
368
  ] })
369
369
  ] }) });
370
370
  }
371
- function Qe(c, i, r, o) {
371
+ function Ye(c, i, r, o) {
372
372
  ze(() => {
373
373
  c && !r && i && o(be(i));
374
374
  }, [c, r, i, o]);
@@ -465,8 +465,8 @@ function ea({
465
465
  },
466
466
  children: /* @__PURE__ */ a(H, { className: "sm:max-w-[425px]", children: [
467
467
  /* @__PURE__ */ a(W, { children: [
468
- /* @__PURE__ */ e(Y, { children: "Export Dashboard" }),
469
- /* @__PURE__ */ e(_, { children: "Export your dashboard as a PDF document." })
468
+ /* @__PURE__ */ e(_, { children: "Export Dashboard" }),
469
+ /* @__PURE__ */ e(q, { children: "Export your dashboard as a PDF document." })
470
470
  ] }),
471
471
  /* @__PURE__ */ a("div", { className: "space-y-4 py-4", children: [
472
472
  N && /* @__PURE__ */ a(F, { children: [
@@ -578,7 +578,7 @@ function ea({
578
578
  ] })
579
579
  ] })
580
580
  ] }),
581
- /* @__PURE__ */ a(K, { children: [
581
+ /* @__PURE__ */ a(J, { 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
584
  /* @__PURE__ */ e(T, { className: "mr-2 h-4 w-4 animate-spin" }),
@@ -593,10 +593,10 @@ function ea({
593
593
  );
594
594
  }
595
595
  export {
596
- qe as A,
596
+ Qe as A,
597
597
  ea as D,
598
598
  Ze as S,
599
- Je as U,
600
- Xe as V,
601
- Qe as u
599
+ Xe as U,
600
+ Ke as V,
601
+ Ye as u
602
602
  };
@@ -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-CMymongy.js";
2
+ import { u as s, c as l, B as h, X as d, d as c } from "./index-B9l7fpA-.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-Dy-VUjSy.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-oMb4lVSV.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-Dy-VUjSy.js"),L=require("react"),He=require("./editor-action-buttons-B1yfEUpI.js"),Ws=require("react-dom");function Xs(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Ue=Xs(L);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-oMb4lVSV.js"),L=require("react"),He=require("./editor-action-buttons-Cm7pHxM_.js"),Ws=require("react-dom");function Xs(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Ue=Xs(L);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.