react-semaphor 0.1.313 → 0.1.315
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/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-raPCNcS4.js → braces-CWi8x9ww.js} +1 -1
- package/dist/chunks/calendar-preferences-dialog-B3JYKgek.js +456 -0
- package/dist/chunks/calendar-preferences-dialog-aODuCeYE.js +1 -0
- package/dist/chunks/{chevrons-up-down-BYzO4q5w.js → chevrons-up-down-B2viXO2I.js} +1 -1
- package/dist/chunks/dashboard-controls-CSunAZVx.js +57 -0
- package/dist/chunks/{dashboard-controls-DMsmUQkB.js → dashboard-controls-jvJF-AJC.js} +501 -523
- package/dist/chunks/{dashboard-filter-controls-launcher-DBmNn4EY.js → dashboard-filter-controls-launcher-B0i9xSZZ.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-launcher-CqXgWEa1.js → dashboard-filter-controls-launcher-DG6yRPmx.js} +39 -39
- package/dist/chunks/{dashboard-json-DMFZLkws.js → dashboard-json-Duea3KSa.js} +1 -1
- package/dist/chunks/{dashboard-json-CHoCrAp0.js → dashboard-json-zKDTezgS.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-B0Ae_O25.js → edit-dashboard-visual-MZCJaPiq.js} +419 -419
- package/dist/chunks/{edit-dashboard-visual-CIP9G-Bu.js → edit-dashboard-visual-QjRIAadP.js} +1 -1
- package/dist/chunks/{index-DjZqoaV5.js → index-B7C8qBWC.js} +193 -193
- package/dist/chunks/{index-D7e2Eyp_.js → index-CjRLHvSp.js} +17676 -17583
- package/dist/chunks/{palette-7yJYVEvk.js → palette-CIuwlEiG.js} +1 -1
- package/dist/chunks/{resource-management-panel-B1mhnY97.js → resource-management-panel-CM3Zsk9H.js} +1 -1
- package/dist/chunks/{resource-management-panel-CSkNW3es.js → resource-management-panel-S0LXyguo.js} +18 -18
- package/dist/chunks/{save-DDX_vrED.js → save-_ALpoMy6.js} +1 -1
- package/dist/chunks/{switch-DEPWsRhf.js → switch-B6fh8nb-.js} +25 -25
- package/dist/chunks/{use-create-flow-overlay-state-BHQjJwik.js → use-create-flow-overlay-state-Cp7PYD-t.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-7LiC_vaL.js → use-create-flow-overlay-state-CqTBDwBF.js} +1 -1
- package/dist/chunks/{use-visual-utils-Dw-uLgop.js → use-visual-utils-D9DsvP1v.js} +12 -12
- package/dist/chunks/{use-visual-utils-Bz7kjSrk.js → use-visual-utils-DDd0pAJ_.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +69 -70
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +7 -8
- package/dist/types/main.d.ts +0 -11
- package/dist/types/surfboard.d.ts +0 -10
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-wPVXTTiH.js +0 -57
- package/dist/chunks/dashboard-summary-settings-dialog-CZkn4rtm.js +0 -545
- package/dist/chunks/dashboard-summary-settings-dialog-DoxcpXjk.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("./switch-DPaKnsb8.js"),s=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("./switch-DPaKnsb8.js"),s=require("./index-B7C8qBWC.js"),k=require("./use-create-flow-overlay-state-CqTBDwBF.js"),v=require("react"),_=require("./use-visual-utils-DDd0pAJ_.js"),V=require("./date-formatter-D9Bvw5Qk.js");require("./index-DRlMUglg.js");require("react-dom");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as n, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
-
import { c as be, L as J,
|
|
3
|
-
import { b as ae, c as se, d as oe, e as re, f as ne, bV as Ve, n as Me, s as Ue, t as Be, b8 as ye, bW as ze, o as M, b9 as Z, V as Re, bq as _e, br as $e, bt as He, bu as W, by as je, bl as Ge, bX as We, bY as Xe, bF as qe, bG as Ye, bH as Ke, bI as Qe, bJ as Je, bK as Ze, bL as et, u as ie, ad as R, aY as le, aU as De, aV as de, ae as Ne, aT as tt, a_ as at, bZ as st, b_ as ot, bn as rt, aW as ue, J as nt, ag as it, b$ as lt, c0 as dt, c1 as ct, c2 as ut, c3 as mt, c4 as ht, c5 as pt, c6 as ft, c7 as Se, c8 as gt, c9 as vt, ca as bt, cb as xt, cc as Ct, cd as wt, ce as yt, cf as Dt, ba as Nt, cg as St } from "./index-
|
|
4
|
-
import { V as
|
|
2
|
+
import { c as be, L as J, x as Fe, B as P, f as ee, i as j, u as E, h as G, az as ce, a9 as xe, G as Ce, e as Te, g as we, a as $, S as te, X as Le, P as q, b as Y, d as K, aA as ke, aB as Pe, aC as Oe } from "./switch-B6fh8nb-.js";
|
|
3
|
+
import { b as ae, c as se, d as oe, e as re, f as ne, bV as Ve, n as Me, s as Ue, t as Be, b8 as ye, bW as ze, o as M, b9 as Z, V as Re, bq as _e, br as $e, bt as He, bu as W, by as je, bl as Ge, bX as We, bY as Xe, bF as qe, bG as Ye, bH as Ke, bI as Qe, bJ as Je, bK as Ze, bL as et, u as ie, ad as R, aY as le, aU as De, aV as de, ae as Ne, aT as tt, a_ as at, bZ as st, b_ as ot, bn as rt, aW as ue, J as nt, ag as it, b$ as lt, c0 as dt, c1 as ct, c2 as ut, c3 as mt, c4 as ht, c5 as pt, c6 as ft, c7 as Se, c8 as gt, c9 as vt, ca as bt, cb as xt, cc as Ct, cd as wt, ce as yt, cf as Dt, ba as Nt, cg as St } from "./index-CjRLHvSp.js";
|
|
4
|
+
import { V as Et, E as me, a as he, b as It, c as At, L as Ft, d as Tt, C as Lt, u as Ee, e as Ie, f as kt } from "./use-create-flow-overlay-state-Cp7PYD-t.js";
|
|
5
5
|
import Pt, { useState as k, useContext as Ot, useRef as X, useCallback as L, useEffect as z, useMemo as H } from "react";
|
|
6
|
-
import { u as Ae } from "./use-visual-utils-
|
|
6
|
+
import { u as Ae } from "./use-visual-utils-D9DsvP1v.js";
|
|
7
7
|
import { k as pe } from "./date-formatter-DyIOb6uC.js";
|
|
8
8
|
import "./index-CJdxSyQq.js";
|
|
9
9
|
import "react-dom";
|
|
@@ -78,7 +78,7 @@ function Mt({
|
|
|
78
78
|
/* @__PURE__ */ n(re, { className: "flex items-center gap-2", children: [
|
|
79
79
|
/* @__PURE__ */ t("span", { children: "Save Visual As" }),
|
|
80
80
|
r.badgeType !== "local" && /* @__PURE__ */ t(
|
|
81
|
-
|
|
81
|
+
Et,
|
|
82
82
|
{
|
|
83
83
|
type: r.badgeType,
|
|
84
84
|
showLabel: !0,
|
|
@@ -135,9 +135,9 @@ function Mt({
|
|
|
135
135
|
] }) });
|
|
136
136
|
}
|
|
137
137
|
function Ut() {
|
|
138
|
-
const [e, a] = k(!1), [m, d] = k(!1), [o, h] = k(null), [l, c] = k(null), i = j((g) => g.frame), s = j((g) => g.card), f = Ue(), b =
|
|
138
|
+
const [e, a] = k(!1), [m, d] = k(!1), [o, h] = k(null), [l, c] = k(null), i = j((g) => g.frame), s = j((g) => g.card), f = Ue(), b = E((g) => g.selectedSheetId), r = E((g) => g.dashboard), u = E(
|
|
139
139
|
(g) => g.actions.setIsDashboardPanelOpen
|
|
140
|
-
), { getUpdatedFrame: w } = Ae(), { selectVisual: v } = Be(), { addFrame: C, setSelectedFrameId: S, setIsVisualEditing: N } = G(), p = ye(), D = !!(i != null && i.visualId),
|
|
140
|
+
), { getUpdatedFrame: w } = Ae(), { selectVisual: v } = Be(), { addFrame: C, setSelectedFrameId: S, setIsVisualEditing: N } = G(), p = ye(), D = !!(i != null && i.visualId), I = (() => {
|
|
141
141
|
var g, y;
|
|
142
142
|
return ((g = i == null ? void 0 : i.cards) == null ? void 0 : g.length) === 1 && ((y = i.cards[0]) != null && y.title) ? i.cards[0].title : f != null && f.title ? f.title : (s == null ? void 0 : s.title) || "Untitled Visual";
|
|
143
143
|
})(), T = ze((g) => {
|
|
@@ -233,16 +233,16 @@ function Ut() {
|
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
235
|
isLibraryVisual: D,
|
|
236
|
-
currentVisualName:
|
|
236
|
+
currentVisualName: I,
|
|
237
237
|
isSaving: T.isPending
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
function fa(e = {}) {
|
|
241
|
-
const a = j((A) => A.frame), m = j((A) => A.editorContext), d = Re((A) => A.selectedVisual), o =
|
|
241
|
+
const a = j((A) => A.frame), m = j((A) => A.editorContext), d = Re((A) => A.selectedVisual), o = E((A) => A.selectedFrameId), h = E((A) => A.selectedSheetId), l = E((A) => A.dashboard), { setIsVisualEditing: c, updateFrame: i } = G(), [s, f] = k(!1), [b, r] = k("both"), u = ye(), w = (m == null ? void 0 : m.type) === "documentSection", v = !!(a != null && a.visualId || d != null && d.id), C = !!(a != null && a.visualId && o), S = v && !C, {
|
|
242
242
|
saveAsDialogOpen: N,
|
|
243
243
|
setSaveAsDialogOpen: p,
|
|
244
244
|
handleSaveAs: D,
|
|
245
|
-
isLibraryVisual:
|
|
245
|
+
isLibraryVisual: I,
|
|
246
246
|
currentVisualName: T,
|
|
247
247
|
isSaving: x
|
|
248
248
|
} = Ut(), { getUpdatedFrame: g } = Ae();
|
|
@@ -289,7 +289,7 @@ function fa(e = {}) {
|
|
|
289
289
|
return /* @__PURE__ */ n(_, { children: [
|
|
290
290
|
/* @__PURE__ */ n("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
291
291
|
!v && /* @__PURE__ */ t(me, { className: "!rounded-none", variant: "default" }),
|
|
292
|
-
v && S && /* @__PURE__ */ t(
|
|
292
|
+
v && S && /* @__PURE__ */ t(It, { className: "!rounded-none", variant: "default" }),
|
|
293
293
|
v && C && /* @__PURE__ */ t(At, { className: "!rounded-none" }),
|
|
294
294
|
/* @__PURE__ */ n(_e, { modal: !1, children: [
|
|
295
295
|
/* @__PURE__ */ t($e, { asChild: !0, children: /* @__PURE__ */ t(
|
|
@@ -369,7 +369,7 @@ function fa(e = {}) {
|
|
|
369
369
|
onOpenChange: (A) => {
|
|
370
370
|
x || p(A);
|
|
371
371
|
},
|
|
372
|
-
isLibraryVisual:
|
|
372
|
+
isLibraryVisual: I,
|
|
373
373
|
currentVisualName: T,
|
|
374
374
|
isSaving: x,
|
|
375
375
|
destinationMode: b,
|
|
@@ -379,7 +379,7 @@ function fa(e = {}) {
|
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
381
381
|
function ga({ className: e }) {
|
|
382
|
-
const a = j((s) => s.isDevMode), m =
|
|
382
|
+
const a = j((s) => s.isDevMode), m = E((s) => s.isVisualEditing), { setIsDevMode: d } = we(), { config: o } = Ot(We).tokenProps, h = (o == null ? void 0 : o.showAdvancedMode) !== !1;
|
|
383
383
|
if (!m || !h)
|
|
384
384
|
return null;
|
|
385
385
|
const l = a ? te : Xe, c = a ? "Drag & drop" : "SQL", i = a ? "Switch to drag-and-drop mode" : "Switch to SQL mode";
|
|
@@ -497,10 +497,10 @@ function ba() {
|
|
|
497
497
|
v.map(async (p) => {
|
|
498
498
|
try {
|
|
499
499
|
const D = await De(i, s, p.id);
|
|
500
|
-
let
|
|
500
|
+
let I;
|
|
501
501
|
if (D.status === "completed")
|
|
502
502
|
try {
|
|
503
|
-
|
|
503
|
+
I = await de(i, s, p.id);
|
|
504
504
|
} catch (T) {
|
|
505
505
|
console.error(
|
|
506
506
|
`[useExportPolling] Failed to get download URL for ${p.id}:`,
|
|
@@ -516,7 +516,7 @@ function ba() {
|
|
|
516
516
|
lastUpdatedAt: /* @__PURE__ */ new Date(),
|
|
517
517
|
fileSize: D.fileSize,
|
|
518
518
|
error: D.error,
|
|
519
|
-
downloadUrl:
|
|
519
|
+
downloadUrl: I
|
|
520
520
|
};
|
|
521
521
|
} catch (D) {
|
|
522
522
|
return console.error(
|
|
@@ -531,12 +531,12 @@ function ba() {
|
|
|
531
531
|
const N = f();
|
|
532
532
|
if (N.length > 0 && !document.hidden) {
|
|
533
533
|
const p = N.reduce(
|
|
534
|
-
(
|
|
534
|
+
(I, T) => T.startedAt < I ? T.startedAt : I,
|
|
535
535
|
N[0].startedAt
|
|
536
536
|
), D = Ht(p);
|
|
537
537
|
h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
538
|
-
var
|
|
539
|
-
(
|
|
538
|
+
var I;
|
|
539
|
+
(I = c.current) == null || I.call(c);
|
|
540
540
|
}, D);
|
|
541
541
|
} else
|
|
542
542
|
l.current = !1;
|
|
@@ -728,8 +728,8 @@ function Wt() {
|
|
|
728
728
|
C,
|
|
729
729
|
N.id
|
|
730
730
|
);
|
|
731
|
-
} catch (
|
|
732
|
-
console.error(`Failed to get download URL for ${N.id}:`,
|
|
731
|
+
} catch (I) {
|
|
732
|
+
console.error(`Failed to get download URL for ${N.id}:`, I);
|
|
733
733
|
}
|
|
734
734
|
h(N.id, {
|
|
735
735
|
status: p.status,
|
|
@@ -896,7 +896,7 @@ function qt({
|
|
|
896
896
|
preventPassiveDismissDuringCreate: s,
|
|
897
897
|
resolvedOpen: f,
|
|
898
898
|
setIsCreateFlowActive: b
|
|
899
|
-
} =
|
|
899
|
+
} = Ee({
|
|
900
900
|
open: e,
|
|
901
901
|
onOpenChange: a,
|
|
902
902
|
initialCreateFlowActive: o === "create",
|
|
@@ -907,7 +907,7 @@ function qt({
|
|
|
907
907
|
// create and make consumers use `forceClose()` from a dedicated
|
|
908
908
|
// button.
|
|
909
909
|
dismissMode: d ? "passive" : "explicit-only"
|
|
910
|
-
}), r =
|
|
910
|
+
}), r = E((g) => g.dashboard), { setDashboardControlsModel: u } = G(), { participants: w } = dt(ke(r)), v = Array.from(
|
|
911
911
|
new Map(
|
|
912
912
|
w.flatMap(
|
|
913
913
|
(g) => g.fieldChoices.map((y) => {
|
|
@@ -952,8 +952,8 @@ function qt({
|
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
954
|
b(!1);
|
|
955
|
-
}, [h, l, b]),
|
|
956
|
-
|
|
955
|
+
}, [h, l, b]), I = /* @__PURE__ */ t(
|
|
956
|
+
Ie,
|
|
957
957
|
{
|
|
958
958
|
scope: "dashboard",
|
|
959
959
|
controls: r.controls || [],
|
|
@@ -975,7 +975,7 @@ function qt({
|
|
|
975
975
|
/* @__PURE__ */ t("h4", { className: "text-sm font-medium", children: "Dashboard Controls" }),
|
|
976
976
|
/* @__PURE__ */ t("p", { className: "text-xs text-muted-foreground", children: "Add shared controls viewers can use across the dashboard. Each card can decide how to respond to the same control." })
|
|
977
977
|
] }),
|
|
978
|
-
|
|
978
|
+
I
|
|
979
979
|
] });
|
|
980
980
|
return d ? /* @__PURE__ */ n(q, { open: f, onOpenChange: c, children: [
|
|
981
981
|
/* @__PURE__ */ t(Y, { asChild: !0, children: m || /* @__PURE__ */ n(P, { variant: "outline", className: "h-7 px-2", size: "sm", children: [
|
|
@@ -1015,7 +1015,7 @@ function qt({
|
|
|
1015
1015
|
]
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children:
|
|
1018
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children: I })
|
|
1019
1019
|
]
|
|
1020
1020
|
}
|
|
1021
1021
|
) });
|
|
@@ -1041,12 +1041,12 @@ function Kt({
|
|
|
1041
1041
|
preventPassiveDismissDuringCreate: c,
|
|
1042
1042
|
resolvedOpen: i,
|
|
1043
1043
|
setIsCreateFlowActive: s
|
|
1044
|
-
} =
|
|
1044
|
+
} = Ee({
|
|
1045
1045
|
open: e,
|
|
1046
1046
|
onOpenChange: a,
|
|
1047
1047
|
initialCreateFlowActive: m === "create",
|
|
1048
1048
|
dismissMode: "explicit-only"
|
|
1049
|
-
}), f =
|
|
1049
|
+
}), f = E((g) => g.dashboard), b = E((g) => g.selectedSheetId), { setDashboardInputs: r } = G(), u = (x = f.sheets) == null ? void 0 : x.find(
|
|
1050
1050
|
(g) => g.id === b
|
|
1051
1051
|
), w = (u == null ? void 0 : u.kind) === "document" && !!u.document, v = H(
|
|
1052
1052
|
() => w && (u != null && u.document) ? mt(f, u.id) : [],
|
|
@@ -1071,7 +1071,7 @@ function Kt({
|
|
|
1071
1071
|
return;
|
|
1072
1072
|
}
|
|
1073
1073
|
s(!1);
|
|
1074
|
-
}, [d, o, s]),
|
|
1074
|
+
}, [d, o, s]), I = L(
|
|
1075
1075
|
(g, y, F) => {
|
|
1076
1076
|
!w || !(u != null && u.document) || r(
|
|
1077
1077
|
ea({
|
|
@@ -1110,7 +1110,7 @@ function Kt({
|
|
|
1110
1110
|
)
|
|
1111
1111
|
] }),
|
|
1112
1112
|
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children: /* @__PURE__ */ t(
|
|
1113
|
-
|
|
1113
|
+
Ie,
|
|
1114
1114
|
{
|
|
1115
1115
|
scope: "dashboard",
|
|
1116
1116
|
controls: S,
|
|
@@ -1125,7 +1125,7 @@ function Kt({
|
|
|
1125
1125
|
initialCreateFlow: m === "create",
|
|
1126
1126
|
onCreateFlowActiveChange: s,
|
|
1127
1127
|
onCreateFlowComplete: D,
|
|
1128
|
-
onChange:
|
|
1128
|
+
onChange: I,
|
|
1129
1129
|
emptyMessage: "No document controls yet."
|
|
1130
1130
|
}
|
|
1131
1131
|
) })
|
|
@@ -1289,7 +1289,7 @@ function ta({
|
|
|
1289
1289
|
}
|
|
1290
1290
|
function aa() {
|
|
1291
1291
|
kt();
|
|
1292
|
-
const e =
|
|
1292
|
+
const e = E((i) => i.selectedSheetId), a = E((i) => i.selectedFrameId), m = E((i) => i.dashboard), d = E((i) => i.actions.getSelectedFrame), { setSelectedFrameId: o } = G(), { setCard: h } = we(), l = j((i) => i.card.dataSource);
|
|
1293
1293
|
return z(() => {
|
|
1294
1294
|
var s, f;
|
|
1295
1295
|
let i = d();
|
|
@@ -1306,9 +1306,9 @@ function aa() {
|
|
|
1306
1306
|
};
|
|
1307
1307
|
}
|
|
1308
1308
|
function sa() {
|
|
1309
|
-
const e =
|
|
1309
|
+
const e = E((c) => c.dashboard), a = E(
|
|
1310
1310
|
(c) => c.semanticExecutionPayload
|
|
1311
|
-
), m =
|
|
1311
|
+
), m = E((c) => c.actions.addFilter), { hasEntities: d } = aa(), o = H(
|
|
1312
1312
|
() => gt(e, a),
|
|
1313
1313
|
[e, a]
|
|
1314
1314
|
), l = !vt(e.filters) && o.hasEligibleCards;
|
|
@@ -1350,7 +1350,7 @@ function oa({
|
|
|
1350
1350
|
onManageControls: m,
|
|
1351
1351
|
onDismiss: d
|
|
1352
1352
|
}) {
|
|
1353
|
-
const o =
|
|
1353
|
+
const o = E(
|
|
1354
1354
|
(c) => c.dashboard.filterLayout
|
|
1355
1355
|
), { setFilterLayout: h } = G();
|
|
1356
1356
|
o != null && o.displayMode;
|
|
@@ -1450,7 +1450,7 @@ function wa({
|
|
|
1450
1450
|
settingsContentClassName: h
|
|
1451
1451
|
}) {
|
|
1452
1452
|
var T;
|
|
1453
|
-
const [l, c] = k(null), i =
|
|
1453
|
+
const [l, c] = k(null), i = E((x) => x.dashboard), s = E((x) => x.selectedSheetId), f = E((x) => x.showFilters), b = St((x) => x.setPanelOpen), r = E((x) => x.actions), { setDocumentInspectorTab: u, setShowFilters: w } = r, v = (T = i.sheets) == null ? void 0 : T.find(
|
|
1454
1454
|
(x) => x.id === s
|
|
1455
1455
|
), C = Oe(v), S = L((x) => {
|
|
1456
1456
|
window.setTimeout(() => {
|
|
@@ -1475,7 +1475,7 @@ function wa({
|
|
|
1475
1475
|
N(!0);
|
|
1476
1476
|
}, [N]), D = L(() => {
|
|
1477
1477
|
S("create");
|
|
1478
|
-
}, [S]),
|
|
1478
|
+
}, [S]), I = L(() => {
|
|
1479
1479
|
S("manage");
|
|
1480
1480
|
}, [S]);
|
|
1481
1481
|
return /* @__PURE__ */ n(_, { children: [
|
|
@@ -1490,7 +1490,7 @@ function wa({
|
|
|
1490
1490
|
{
|
|
1491
1491
|
onAddFilter: p,
|
|
1492
1492
|
onAddControl: D,
|
|
1493
|
-
onManageControls:
|
|
1493
|
+
onManageControls: I,
|
|
1494
1494
|
onDismiss: x
|
|
1495
1495
|
}
|
|
1496
1496
|
),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-DPaKnsb8.js");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("react"),s=require("./switch-DPaKnsb8.js");require("./index-B7C8qBWC.js");require("./index-DRlMUglg.js");require("react-dom");function b(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),a=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,d]=o.useState(a),n=o.useRef(a);return o.useEffect(()=>{a!==n.current&&(d(a),n.current=a)},[a]),r.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[r.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[r.jsx(s.X,{className:"mr-2 h-4 w-4"}),"Close"]}),r.jsx("div",{className:"h-[550px] overflow-hidden",children:r.jsx(s.CodeEditor,{value:l,onValueChange:e=>{d(e);try{const i=JSON.parse(e);n.current=JSON.stringify(i,null,2),c(i)}catch{}},language:"json"})})]})}exports.default=b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useState as b, useRef as f, useEffect as S } from "react";
|
|
3
|
-
import { u as o, a as N, B as p, X as D, C as J } from "./switch-
|
|
4
|
-
import "./index-
|
|
3
|
+
import { u as o, a as N, B as p, X as D, C as J } from "./switch-B6fh8nb-.js";
|
|
4
|
+
import "./index-CjRLHvSp.js";
|
|
5
5
|
import "./index-CJdxSyQq.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
function C() {
|