react-semaphor 0.1.132 → 0.1.134
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-DQMFJcPB.js → dashboard-controls-bovlMmw3.js} +1 -1
- package/dist/chunks/{dashboard-controls-CWG6EatR.js → dashboard-controls-ecdj2GHc.js} +207 -207
- package/dist/chunks/{dashboard-export-dialog-DofqNYdv.js → dashboard-export-dialog-CK5b2y_K.js} +31 -31
- package/dist/chunks/{dashboard-export-dialog-CYRUEIF0.js → dashboard-export-dialog-D5jbZpR7.js} +1 -1
- package/dist/chunks/{dashboard-json-D5b7lskH.js → dashboard-json-DKVaKR05.js} +1 -1
- package/dist/chunks/{dashboard-json-CfXtWYQo.js → dashboard-json-DUtSSb_n.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CSfaO06L.js → edit-dashboard-visual-BHmq3HBV.js} +2131 -2182
- package/dist/chunks/edit-dashboard-visual-CSw8uIEZ.js +195 -0
- package/dist/chunks/{editor-action-buttons-7cxzFlCm.js → editor-action-buttons-D7ofzkZ0.js} +2 -2
- package/dist/chunks/{editor-action-buttons-DWHiK2yJ.js → editor-action-buttons-xX1IQPAT.js} +1 -1
- package/dist/chunks/{index-B6RYfqnr.js → index-Ba5bDBGc.js} +200 -200
- package/dist/chunks/{index-CRA38qes.js → index-BbG-vwjD.js} +16134 -15848
- package/dist/chunks/{resource-management-panel-DnKFfVOc.js → resource-management-panel-Bewt6347.js} +116 -116
- package/dist/chunks/{resource-management-panel-CC_r1yro.js → resource-management-panel-CrQMV9vG.js} +1 -1
- package/dist/chunks/{use-visual-utils-CZNuwJRU.js → use-visual-utils-BijuWjGP.js} +1 -1
- package/dist/chunks/{use-visual-utils-B41g03Pc.js → use-visual-utils-auHWALCR.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 +30 -29
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/dashboard.d.ts +9 -0
- package/dist/types/main.d.ts +20 -0
- package/dist/types/surfboard.d.ts +9 -0
- package/dist/types/types.d.ts +9 -0
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-C4ur0h-P.js +0 -195
package/dist/chunks/{dashboard-export-dialog-DofqNYdv.js → dashboard-export-dialog-CK5b2y_K.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import { b as
|
|
3
|
-
import { E as Ee, V as Me, a as
|
|
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-BbG-vwjD.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-D7ofzkZ0.js";
|
|
4
4
|
import Be, { useState as C, useContext as Le, useEffect as ze } from "react";
|
|
5
|
-
import { a as
|
|
5
|
+
import { a as q } from "./use-visual-utils-BijuWjGP.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 =
|
|
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(
|
|
42
|
-
/* @__PURE__ */ a(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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 } =
|
|
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
|
|
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 } =
|
|
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 } =
|
|
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(
|
|
244
|
-
n && /* @__PURE__ */ e(
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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(
|
|
467
|
-
/* @__PURE__ */ a(
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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
|
-
|
|
596
|
+
qe as A,
|
|
597
597
|
ea as D,
|
|
598
598
|
Ze as S,
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
599
|
+
Je as U,
|
|
600
|
+
Ye as V,
|
|
601
|
+
Qe as u
|
|
602
602
|
};
|
package/dist/chunks/{dashboard-export-dialog-CYRUEIF0.js → dashboard-export-dialog-D5jbZpR7.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-Ba5bDBGc.js"),w=require("./editor-action-buttons-xX1IQPAT.js"),x=require("react"),F=require("./use-visual-utils-auHWALCR.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-Ba5bDBGc.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-BbG-vwjD.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|