react-semaphor 0.1.510 → 0.1.512
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.cjs +1 -1
- package/dist/brand-studio/index.js +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CLZFm7_M.js → dashboard-briefing-launcher-CKOSxJJy.js} +103 -103
- package/dist/chunks/{dashboard-briefing-launcher-CAHFThZ6.cjs → dashboard-briefing-launcher-Dna1RtyP.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-Yxsu_3w-.cjs → dashboard-controls-9H6PxWNh.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-Cq0yJp7k.js → dashboard-controls-BqePoOt8.js} +130 -130
- package/dist/chunks/{dashboard-json-B2v70qeb.js → dashboard-json-BJJ1cddf.js} +2 -2
- package/dist/chunks/{dashboard-json-Czr84uhZ.cjs → dashboard-json-BwwJoZdd.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BLWXCutZ.js → edit-dashboard-visual-Db2mRA_9.js} +5045 -5038
- package/dist/chunks/edit-dashboard-visual-cJdvfkou.cjs +172 -0
- package/dist/chunks/{editor-action-buttons-DwMSyAJY.cjs → editor-action-buttons-CKS-8x2Y.cjs} +1 -1
- package/dist/chunks/{editor-action-buttons-BiUk_CQn.js → editor-action-buttons-ktNQjwNQ.js} +27 -27
- package/dist/chunks/index-CdlFHeq9.cjs +1419 -0
- package/dist/chunks/{index-CTFwTeBb.js → index-SVO291wS.js} +36882 -37006
- package/dist/chunks/{report-preferences-dialog-CEja_Mat.js → report-preferences-dialog-CBZBmpxZ.js} +7 -7
- package/dist/chunks/{report-preferences-dialog-C1LOgCAH.cjs → report-preferences-dialog-DserKhuQ.cjs} +1 -1
- package/dist/chunks/{switch-BUW-Ky0G.cjs → switch-BkcJCTS7.cjs} +14 -14
- package/dist/chunks/{switch-MB0NuLq-.js → switch-CrstROAR.js} +144 -144
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +50 -50
- package/dist/index.cjs +1 -1
- package/dist/index.js +216 -234
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/dashboard-visual-error-state.d.ts +7 -1
- package/dist/types/components/error-fallbacks/fallback.d.ts +23 -11
- package/dist/types/components/error-fallbacks/render-reset-error-boundary.d.ts +33 -0
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +5 -0
- package/dist/types/lib/dashboard/open-card-in-visual-editor.d.ts +15 -0
- package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +8 -1
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-C8ni6cKY.cjs +0 -172
- package/dist/chunks/index-BriWG9wG.cjs +0 -1420
package/dist/chunks/{editor-action-buttons-DwMSyAJY.cjs → editor-action-buttons-CKS-8x2Y.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const J=require("./x-B6ghREd2.cjs"),C=require("react"),r=require("./switch-
|
|
1
|
+
"use strict";const J=require("./x-B6ghREd2.cjs"),C=require("react"),r=require("./switch-BkcJCTS7.cjs"),y=require("./index-CdlFHeq9.cjs"),e=require("react/jsx-runtime");require("./card-config-utils-CMO4_zVs.cjs");const Te=require("./validators-DVYAnnX0.cjs");require("./matrix-operation-contract-DoiWTUbT.cjs");require("../value-format-preferences/index.cjs");const ge=require("./selection-reducer-CGKKsaPa.cjs"),Fe=require("./index-DhlVxvyI.cjs"),Se=require("./save-3dYRmehL.cjs");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as Ve, C as Re, X as et } from "./x-CXDkqdur.js";
|
|
2
2
|
import { useState as K, useEffect as ie, useCallback as j, useMemo as oe, useRef as Se, Fragment as gt } from "react";
|
|
3
|
-
import { E as de, z as _e, u as P, a4 as U, D as z, a5 as bt, Q as yt, V as xt, W as vt, c as fe, Y as Ct, a6 as St, a7 as kt, a8 as me, a9 as Qe, aa as Be, ab as ke, ac as Ne, ad as Nt, ae as wt, af as $e, ag as Dt, ah as Et, ai as pe, aj as Tt, ak as We, B as q, al as tt, am as at, an as rt, O as ne, Z as st, _ as we, $ as De, a0 as Ee, a1 as Te, a2 as Fe, ao as nt, ap as Ft, aq as It, ar as He, as as Vt, at as Ke, au as _t, av as At, aw as Lt, ax as qt, ay as Ie, d as Mt, L as ot, az as Ot, aA as zt } from "./switch-
|
|
4
|
-
import {
|
|
3
|
+
import { E as de, z as _e, u as P, a4 as U, D as z, a5 as bt, Q as yt, V as xt, W as vt, c as fe, Y as Ct, a6 as St, a7 as kt, a8 as me, a9 as Qe, aa as Be, ab as ke, ac as Ne, ad as Nt, ae as wt, af as $e, ag as Dt, ah as Et, ai as pe, aj as Tt, ak as We, B as q, al as tt, am as at, an as rt, O as ne, Z as st, _ as we, $ as De, a0 as Ee, a1 as Te, a2 as Fe, ao as nt, ap as Ft, aq as It, ar as He, as as Vt, at as Ke, au as _t, av as At, aw as Lt, ax as qt, ay as Ie, d as Mt, L as ot, az as Ot, aA as zt } from "./switch-CrstROAR.js";
|
|
4
|
+
import { b6 as Ut, az as jt, b7 as ce, b8 as Rt, b9 as Ae, ba as Qt, bb as Bt, bc as $t, bd as Wt, be as Ht, bf as Kt, bg as lt, bh as it, u as Yt, bi as Gt, bj as Xt, bk as Ye, bl as Jt, bm as Pt, bn as dt, bo as ct, bp as Zt, bq as ea, br as ta, bs as aa, bt as ra, aY as sa, bu as na, bv as ut, bw as oa } from "./index-SVO291wS.js";
|
|
5
5
|
import { jsx as a, jsxs as m, Fragment as Z } from "react/jsx-runtime";
|
|
6
6
|
import "./card-config-utils-Bq1enstT.js";
|
|
7
7
|
import { t as la } from "./validators-BDYzZFgs.js";
|
|
8
8
|
import "./matrix-operation-contract-xL8IhFzp.js";
|
|
9
9
|
import "../value-format-preferences/index.js";
|
|
10
|
-
import { C as
|
|
10
|
+
import { C as Ge } from "./selection-reducer-B94WgZ9V.js";
|
|
11
11
|
import { f as ia } from "./index-0pdaQ9e1.js";
|
|
12
12
|
import { S as mt } from "./save-DgMfP0j8.js";
|
|
13
13
|
/**
|
|
@@ -117,7 +117,7 @@ const pa = (t) => {
|
|
|
117
117
|
const { detailTableBackup: r, ...l } = t;
|
|
118
118
|
return l;
|
|
119
119
|
};
|
|
120
|
-
async function
|
|
120
|
+
async function Xe(t, r, l, s, d = "Opening library visual...") {
|
|
121
121
|
if (!r || !l)
|
|
122
122
|
throw new Error("Missing auth token or visual ID");
|
|
123
123
|
const c = ["resource-by-id", "visual", l], p = s.getQueryData(c);
|
|
@@ -224,7 +224,7 @@ function Le() {
|
|
|
224
224
|
setSelectedSchemaName: N,
|
|
225
225
|
setSelectedTableName: V,
|
|
226
226
|
setSelectedDatamodelId: R,
|
|
227
|
-
setFilterValues:
|
|
227
|
+
setFilterValues: G,
|
|
228
228
|
setInlineFilterValuesMap: Q,
|
|
229
229
|
setApplyFilters: $,
|
|
230
230
|
clearEditorContext: ee
|
|
@@ -233,7 +233,7 @@ function Le() {
|
|
|
233
233
|
setIsVisualEditing: n,
|
|
234
234
|
setSelectedFrameId: w,
|
|
235
235
|
clearSelectedFrameId: W
|
|
236
|
-
} = _e(), O = P((_) => _.selectedSheetId),
|
|
236
|
+
} = _e(), O = P((_) => _.selectedSheetId), X = P((_) => _.selectedFrameId), J = P((_) => _.dashboard), te = P((_) => _.filterValues), M = P(
|
|
237
237
|
(_) => _.inlineFilterValuesMap
|
|
238
238
|
), Y = Bt((d == null ? void 0 : d.id) || "", {
|
|
239
239
|
enabled: !!(d != null && d.id) && !!(t != null && t.accessToken)
|
|
@@ -241,7 +241,7 @@ function Le() {
|
|
|
241
241
|
async (_) => {
|
|
242
242
|
try {
|
|
243
243
|
c(_), W(), ee();
|
|
244
|
-
const { data: I, fromCache: H } = await
|
|
244
|
+
const { data: I, fromCache: H } = await Xe(
|
|
245
245
|
r.apiServiceUrl,
|
|
246
246
|
(t == null ? void 0 : t.accessToken) || "",
|
|
247
247
|
_.id,
|
|
@@ -261,14 +261,14 @@ function Le() {
|
|
|
261
261
|
setSelectedSchemaName: N,
|
|
262
262
|
setSelectedTableName: V,
|
|
263
263
|
setSelectedDatamodelId: R,
|
|
264
|
-
setFilterValues:
|
|
264
|
+
setFilterValues: G,
|
|
265
265
|
setInlineFilterValuesMap: Q,
|
|
266
266
|
setApplyFilters: $,
|
|
267
267
|
setIsDashboardEditing: F,
|
|
268
268
|
setIsVisualEditing: n,
|
|
269
269
|
dashboard: J,
|
|
270
270
|
selectedSheetId: O,
|
|
271
|
-
selectedFrameId:
|
|
271
|
+
selectedFrameId: X,
|
|
272
272
|
filterValues: te,
|
|
273
273
|
inlineFilterValuesMap: M
|
|
274
274
|
}))
|
|
@@ -297,14 +297,14 @@ function Le() {
|
|
|
297
297
|
N,
|
|
298
298
|
V,
|
|
299
299
|
R,
|
|
300
|
-
|
|
300
|
+
G,
|
|
301
301
|
Q,
|
|
302
302
|
$,
|
|
303
303
|
ee,
|
|
304
304
|
W,
|
|
305
305
|
J,
|
|
306
306
|
O,
|
|
307
|
-
|
|
307
|
+
X,
|
|
308
308
|
te,
|
|
309
309
|
M
|
|
310
310
|
]
|
|
@@ -315,7 +315,7 @@ function Le() {
|
|
|
315
315
|
try {
|
|
316
316
|
if (c(_), !O)
|
|
317
317
|
return I("No sheet selected. Please select a sheet first.");
|
|
318
|
-
const { data: L, fromCache: be } = await
|
|
318
|
+
const { data: L, fromCache: be } = await Xe(
|
|
319
319
|
r.apiServiceUrl,
|
|
320
320
|
(t == null ? void 0 : t.accessToken) || "",
|
|
321
321
|
_.id,
|
|
@@ -417,14 +417,14 @@ function ba() {
|
|
|
417
417
|
setCard: V,
|
|
418
418
|
setActiveTabCardId: R
|
|
419
419
|
} = de();
|
|
420
|
-
function
|
|
421
|
-
var W, O,
|
|
420
|
+
function G() {
|
|
421
|
+
var W, O, X, J;
|
|
422
422
|
const Q = r.getQueryData(p);
|
|
423
423
|
l != null && l.queryData || t({
|
|
424
424
|
queryKey: p,
|
|
425
425
|
queryData: Q
|
|
426
426
|
}), r.setQueryData(p, null), r.removeQueries({ queryKey: p, exact: !0 }), g(""), u({}), C(), T(void 0), x(""), y(""), f({});
|
|
427
|
-
const $ = z.getState().frame, ee = z.getState().card, F = ia($, ee), n = ((W = F == null ? void 0 : F.customCardPreferences) == null ? void 0 : W.visualType) === "multiple" || !!((O = F == null ? void 0 : F.customCardPreferences) != null && O.dataInputCardIds) || (((
|
|
427
|
+
const $ = z.getState().frame, ee = z.getState().card, F = ia($, ee), n = ((W = F == null ? void 0 : F.customCardPreferences) == null ? void 0 : W.visualType) === "multiple" || !!((O = F == null ? void 0 : F.customCardPreferences) != null && O.dataInputCardIds) || (((X = F == null ? void 0 : F.customCardPreferences) == null ? void 0 : X.minInputs) || 0) > 1 || (((J = F == null ? void 0 : F.customCardPreferences) == null ? void 0 : J.maxInputs) || 0) > 1, w = ga(ee, n);
|
|
428
428
|
N({
|
|
429
429
|
...$,
|
|
430
430
|
cards: $.cards.map(
|
|
@@ -432,7 +432,7 @@ function ba() {
|
|
|
432
432
|
)
|
|
433
433
|
}), R(w.id), V(w), n || S("bar");
|
|
434
434
|
}
|
|
435
|
-
return
|
|
435
|
+
return G;
|
|
436
436
|
}
|
|
437
437
|
function Ma({
|
|
438
438
|
type: t,
|
|
@@ -486,7 +486,7 @@ function Ma({
|
|
|
486
486
|
};
|
|
487
487
|
return /* @__PURE__ */ a(yt, { children: /* @__PURE__ */ m(xt, { delayDuration: 300, children: [
|
|
488
488
|
/* @__PURE__ */ a(vt, { asChild: !0, children: /* @__PURE__ */ m(
|
|
489
|
-
|
|
489
|
+
Gt,
|
|
490
490
|
{
|
|
491
491
|
variant: "outline",
|
|
492
492
|
className: fe(
|
|
@@ -800,7 +800,7 @@ function Oa({
|
|
|
800
800
|
const V = oe(
|
|
801
801
|
() => new Set(l || []),
|
|
802
802
|
[l]
|
|
803
|
-
), R = Ft(t),
|
|
803
|
+
), R = Ft(t), G = kt(t), [Q, $] = K(
|
|
804
804
|
null
|
|
805
805
|
), [ee, F] = K(
|
|
806
806
|
null
|
|
@@ -809,7 +809,7 @@ function Oa({
|
|
|
809
809
|
step: 1,
|
|
810
810
|
control: me(t, r, Array.from(V))
|
|
811
811
|
} : null
|
|
812
|
-
), W = Se({}), O = Se(void 0),
|
|
812
|
+
), W = Se({}), O = Se(void 0), X = Se(p), J = oe(() => {
|
|
813
813
|
const e = Qe({ scope: t, card: C });
|
|
814
814
|
if (!T)
|
|
815
815
|
return e;
|
|
@@ -873,8 +873,8 @@ function Oa({
|
|
|
873
873
|
ie(() => {
|
|
874
874
|
S == null || S(!!n);
|
|
875
875
|
}, [n, S]), ie(() => {
|
|
876
|
-
const e = p && !
|
|
877
|
-
|
|
876
|
+
const e = p && !X.current;
|
|
877
|
+
X.current = p, e && (w({
|
|
878
878
|
step: 1,
|
|
879
879
|
control: me(t, r, Array.from(V))
|
|
880
880
|
}), F(null), $(null));
|
|
@@ -1257,7 +1257,7 @@ function Oa({
|
|
|
1257
1257
|
className: "flex items-start gap-2 rounded-control px-1.5 py-1 text-[13px] hover:bg-muted/40",
|
|
1258
1258
|
children: [
|
|
1259
1259
|
/* @__PURE__ */ a(
|
|
1260
|
-
|
|
1260
|
+
Xt,
|
|
1261
1261
|
{
|
|
1262
1262
|
checked: i,
|
|
1263
1263
|
onCheckedChange: (o) => w(
|
|
@@ -1449,7 +1449,7 @@ function Oa({
|
|
|
1449
1449
|
(b) => b === e.id ? null : e.id
|
|
1450
1450
|
),
|
|
1451
1451
|
children: [
|
|
1452
|
-
v ? /* @__PURE__ */ a(Re, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ a(
|
|
1452
|
+
v ? /* @__PURE__ */ a(Re, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ a(Ge, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
1453
1453
|
/* @__PURE__ */ m("div", { className: "min-w-0", children: [
|
|
1454
1454
|
/* @__PURE__ */ m("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
1455
1455
|
/* @__PURE__ */ a("span", { className: "truncate text-[13px] font-medium text-foreground", children: e.label || "Untitled control" }),
|
|
@@ -1530,7 +1530,7 @@ function Oa({
|
|
|
1530
1530
|
/* @__PURE__ */ m(
|
|
1531
1531
|
we,
|
|
1532
1532
|
{
|
|
1533
|
-
value: e.placement ||
|
|
1533
|
+
value: e.placement || G,
|
|
1534
1534
|
onValueChange: (b) => H(e.id, (D) => ({
|
|
1535
1535
|
...D,
|
|
1536
1536
|
placement: b
|
|
@@ -1640,7 +1640,7 @@ function Oa({
|
|
|
1640
1640
|
size: "xs",
|
|
1641
1641
|
className: "-ml-2 gap-1 text-muted-foreground hover:text-foreground",
|
|
1642
1642
|
children: [
|
|
1643
|
-
Q === e.id ? /* @__PURE__ */ a(Re, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ a(
|
|
1643
|
+
Q === e.id ? /* @__PURE__ */ a(Re, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ a(Ge, { className: "h-3.5 w-3.5" }),
|
|
1644
1644
|
"Advanced"
|
|
1645
1645
|
]
|
|
1646
1646
|
}
|
|
@@ -1858,7 +1858,7 @@ function Ra({
|
|
|
1858
1858
|
...N,
|
|
1859
1859
|
visualId: S
|
|
1860
1860
|
// Keep the link to library visual
|
|
1861
|
-
}, R = Ot(g, V.id),
|
|
1861
|
+
}, R = Ot(g, V.id), G = await C(V, {
|
|
1862
1862
|
previousFrame: R
|
|
1863
1863
|
});
|
|
1864
1864
|
await f.mutateAsync({
|
|
@@ -1867,7 +1867,7 @@ function Ra({
|
|
|
1867
1867
|
frameObject: N
|
|
1868
1868
|
}
|
|
1869
1869
|
}), u(p, V, {
|
|
1870
|
-
semanticExecutionPayload:
|
|
1870
|
+
semanticExecutionPayload: G
|
|
1871
1871
|
}), r.invalidateQueries({ queryKey: ["visuals"] }), r.invalidateQueries({ queryKey: ["visual", S] }), U.success("Saved to library and applied locally"), setTimeout(() => {
|
|
1872
1872
|
x(!1);
|
|
1873
1873
|
}, 300);
|