react-semaphor 0.1.144 → 0.1.146
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/dist/chunks/{dashboard-controls-_rTkbfKU.js → dashboard-controls-BTd2GP5a.js} +1 -1
- package/dist/chunks/{dashboard-controls-BG6qR7N2.js → dashboard-controls-CE8KM6Tg.js} +199 -199
- package/dist/chunks/{dashboard-export-dialog-iH6sg1-y.js → dashboard-export-dialog-D9RPWq-E.js} +26 -26
- package/dist/chunks/{dashboard-export-dialog-BXuJmTUR.js → dashboard-export-dialog-DvMsFXpk.js} +1 -1
- package/dist/chunks/{dashboard-json-DZkwc1co.js → dashboard-json-B1RDTwhR.js} +1 -1
- package/dist/chunks/{dashboard-json-CV6LkrYw.js → dashboard-json-BYlLpF4e.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-tCgjsYbu.js → edit-dashboard-visual-BvFmi5Wg.js} +1002 -1000
- package/dist/chunks/{edit-dashboard-visual-TG6Ezk2J.js → edit-dashboard-visual-DEgGCKtt.js} +9 -9
- package/dist/chunks/{editor-action-buttons-Czzj0JBw.js → editor-action-buttons-Be2gqSdc.js} +1 -1
- package/dist/chunks/{editor-action-buttons-Cvg5mWPC.js → editor-action-buttons-CrwUOyJX.js} +2 -2
- package/dist/chunks/{index-Do9K-YLk.js → index-C4H_NxAd.js} +61 -61
- package/dist/chunks/{index-CPBGb2zs.js → index-Cz1fGuVl.js} +1 -1
- package/dist/chunks/{resource-management-panel-DyeJEtOT.js → resource-management-panel-CBrnB1xs.js} +1 -1
- package/dist/chunks/{resource-management-panel-Chc6oyIG.js → resource-management-panel-CmaSAoHN.js} +62 -62
- package/dist/chunks/{use-visual-utils-Dtg1I8ku.js → use-visual-utils-DF-sQ-ZN.js} +1 -1
- package/dist/chunks/{use-visual-utils-Bf6l2e8y.js → use-visual-utils-DHrvE5kS.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +26 -25
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +67 -5
- package/package.json +1 -1
package/dist/chunks/{dashboard-export-dialog-iH6sg1-y.js → dashboard-export-dialog-D9RPWq-E.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import { b as J,
|
|
3
|
-
import { E as Ee, V as Me, a as
|
|
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-C4H_NxAd.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-CrwUOyJX.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-
|
|
5
|
+
import { a as q } from "./use-visual-utils-DHrvE5kS.js";
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.453.0 - ISC
|
|
8
8
|
*
|
|
@@ -38,10 +38,10 @@ function Ge({
|
|
|
38
38
|
saveToCurrentDashboard: p
|
|
39
39
|
}));
|
|
40
40
|
}, D = s.trim() && (g || p);
|
|
41
|
-
return /* @__PURE__ */ e(
|
|
42
|
-
/* @__PURE__ */ a(
|
|
43
|
-
/* @__PURE__ */ e(
|
|
44
|
-
/* @__PURE__ */ e(
|
|
41
|
+
return /* @__PURE__ */ e($, { open: c, onOpenChange: i, children: /* @__PURE__ */ a(H, { className: "sm:max-w-[425px]", children: [
|
|
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" })
|
|
45
45
|
] }),
|
|
46
46
|
/* @__PURE__ */ a("div", { className: "grid gap-4 py-4", children: [
|
|
47
47
|
/* @__PURE__ */ a("div", { className: "grid gap-2", children: [
|
|
@@ -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
|
-
|
|
79
|
+
V,
|
|
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
|
-
|
|
101
|
+
V,
|
|
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(
|
|
125
|
+
/* @__PURE__ */ a(K, { 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(
|
|
136
|
+
d && /* @__PURE__ */ e(T, { 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 } = q(), { selectVisual: p } = ae(), { addFrame: N, setSelectedFrameId: x, setIsVisualEditing: D } =
|
|
145
|
+
), { getUpdatedFrame: w } = q(), { selectVisual: p } = ae(), { addFrame: N, setSelectedFrameId: x, setIsVisualEditing: D } = X(), 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,10 +201,10 @@ function Re() {
|
|
|
201
201
|
isSaving: h.isPending
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Xe({
|
|
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 } =
|
|
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, {
|
|
208
208
|
saveAsDialogOpen: g,
|
|
209
209
|
setSaveAsDialogOpen: w,
|
|
210
210
|
handleSaveAs: p,
|
|
@@ -240,8 +240,8 @@ function Ye({
|
|
|
240
240
|
]
|
|
241
241
|
}
|
|
242
242
|
),
|
|
243
|
-
f && /* @__PURE__ */ e(
|
|
244
|
-
n && /* @__PURE__ */ e(
|
|
243
|
+
f && /* @__PURE__ */ e(Ve, { className: c, variant: "default" }),
|
|
244
|
+
n && /* @__PURE__ */ e(Te, { className: c }),
|
|
245
245
|
/* @__PURE__ */ a(B, { modal: !1, children: [
|
|
246
246
|
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ e(
|
|
247
247
|
P,
|
|
@@ -360,7 +360,7 @@ function Je({
|
|
|
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(
|
|
363
|
+
/* @__PURE__ */ e(T, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
364
364
|
"Saving..."
|
|
365
365
|
] }) : "Save & Close"
|
|
366
366
|
}
|
|
@@ -453,7 +453,7 @@ function ea({
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
return /* @__PURE__ */ e(
|
|
456
|
-
|
|
456
|
+
$,
|
|
457
457
|
{
|
|
458
458
|
open: c,
|
|
459
459
|
onOpenChange: (t) => {
|
|
@@ -463,10 +463,10 @@ function ea({
|
|
|
463
463
|
}
|
|
464
464
|
i(!0);
|
|
465
465
|
},
|
|
466
|
-
children: /* @__PURE__ */ a(
|
|
467
|
-
/* @__PURE__ */ a(
|
|
468
|
-
/* @__PURE__ */ e(
|
|
469
|
-
/* @__PURE__ */ e(
|
|
466
|
+
children: /* @__PURE__ */ a(H, { className: "sm:max-w-[425px]", children: [
|
|
467
|
+
/* @__PURE__ */ a(W, { children: [
|
|
468
|
+
/* @__PURE__ */ e(Y, { children: "Export Dashboard" }),
|
|
469
|
+
/* @__PURE__ */ e(_, { 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: [
|
|
@@ -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
|
-
|
|
523
|
+
V,
|
|
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(
|
|
581
|
+
/* @__PURE__ */ a(K, { 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(
|
|
584
|
+
/* @__PURE__ */ e(T, { 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" }),
|
|
@@ -597,6 +597,6 @@ export {
|
|
|
597
597
|
ea as D,
|
|
598
598
|
Ze as S,
|
|
599
599
|
Je as U,
|
|
600
|
-
|
|
600
|
+
Xe as V,
|
|
601
601
|
Qe as u
|
|
602
602
|
};
|
package/dist/chunks/{dashboard-export-dialog-BXuJmTUR.js → dashboard-export-dialog-DvMsFXpk.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("./index-Cz1fGuVl.js"),w=require("./editor-action-buttons-Be2gqSdc.js"),x=require("react"),F=require("./use-visual-utils-DF-sQ-ZN.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-Cz1fGuVl.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,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-
|
|
2
|
+
import { u as s, c as l, B as h, X as d, d as c } from "./index-C4H_NxAd.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|