react-semaphor 0.1.544 → 0.1.545
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/analytics-protocol/index.js +35 -34
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.js +50 -47
- package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
- package/dist/chunks/{apply-dashboard-operations-Bz4n1Lq6.js → apply-dashboard-operations-CZEMsx8E.js} +778 -958
- package/dist/chunks/{assistant-chat-BNLkCDml.js → assistant-chat-D7sWTypJ.js} +308 -309
- package/dist/chunks/calendar-day-equality-dvoQp1xW.js +410 -0
- package/dist/chunks/{comparison-window-caption-BTkrN3W4.js → comparison-window-caption-D4E6IHPD.js} +56 -55
- package/dist/chunks/{custom-visual-inputs-DUtpYZOk.js → custom-visual-inputs-DLCD9Y5V.js} +8 -2
- package/dist/chunks/{dashboard-g5a4DKWq.js → dashboard-B1tMju0u.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DQ_8O_e2.js → dashboard-briefing-launcher-CePgIu0Z.js} +771 -776
- package/dist/chunks/{dashboard-controls-8RyBTQUO.js → dashboard-controls-Cq05n3e0.js} +28 -28
- package/dist/chunks/{dashboard-json-7qT9jmfL.js → dashboard-json-CoYRPqxx.js} +3 -3
- package/dist/chunks/document-dashboard-inputs-BesAHZvB.js +3112 -0
- package/dist/chunks/{edit-dashboard-visual-BfJwnRIZ.js → edit-dashboard-visual-JPtNfJRb.js} +5624 -5615
- package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-ff7osJr7.js} +1 -1
- package/dist/chunks/{index-DkAyQvC6.js → index-DRWiuqyd.js} +378 -333
- package/dist/chunks/{matrix-formatter-CxJLkztA.js → matrix-formatter-DnCyRXJE.js} +13 -13
- package/dist/chunks/{numeric-presentation-DESvLiu9.js → numeric-presentation-7X_IrD58.js} +2571 -2572
- package/dist/chunks/{raw-temporal-presentation-CLiVi90c.js → raw-temporal-presentation-C3mUgnEx.js} +1 -1
- package/dist/chunks/{zoned-wall-clock-MulfA26h.js → relative-date-label-Bk2j94pA.js} +21 -64
- package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
- package/dist/chunks/{report-preferences-dialog-Df7VpRVW.js → report-preferences-dialog-DUtuUL_5.js} +631 -603
- package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +9415 -0
- package/dist/chunks/{saved-dashboard-context-B-mQ--nV.js → saved-dashboard-context-LrF_kW0l.js} +183 -211
- package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
- package/dist/chunks/{semaphor-ready-indicator-DDAxk8us.js → semaphor-ready-indicator-BxF96Yhv.js} +45764 -46519
- package/dist/chunks/{shelf-drop-preview-context-BSRPwaED.js → shelf-drop-preview-context-CNaM_Gmh.js} +885 -866
- package/dist/chunks/{switch-C3jLxlG0.js → switch-uDtPgQlQ.js} +44 -45
- package/dist/chunks/{table-export-sheet-CPfGAQ9X.js → table-export-sheet-YzMioA7Y.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BxzFviM-.js → use-create-flow-overlay-state-CjB7ig1o.js} +105 -105
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +556 -544
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.js +163 -152
- package/dist/index.js +351 -323
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +33 -6
- package/dist/types/briefings/index.d.ts +6 -5
- package/dist/types/components/surfboard/filter/types.d.ts +0 -14
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +35 -1
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +199 -0
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
- package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
- package/dist/types/lib/download-pdf.d.ts +75 -1
- package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
- package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
- package/dist/types/lib/stores/dashboard-store.d.ts +39 -55
- package/dist/types/lib/stores/editor-store.d.ts +0 -3
- package/dist/types/lib/types/common-types.d.ts +21 -6
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -11
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +12 -12
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +92 -0
- package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
- package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
- package/package.json +2 -2
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
- package/dist/chunks/document-dashboard-inputs-BC6p-ESg.js +0 -8087
- package/dist/chunks/document-sheet-utils-Duo9uLoH.js +0 -3619
- package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
- package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { B as U, Z as Va, _ as ja, $ as tt, L as Re, l as Ha, r as qa, s as za, t as Ka, u as Qa, v as Wa, P as Ya, a as Ja, b as Xa, m as Lt, n as Mt, o as Ot, p as _t, I as Za } from "./switch-
|
|
2
|
+
import { bD as jr, u as C, bE as Hr, bF as nt, bG as qr, bH as zr, bI as Kr, bJ as Qr, bK as Wr, bL as Yr, a_ as K, aY as ve, bM as ye, bN as Jr, by as Ht, bz as qt, bB as Ze, bC as et, bO as zt, aK as ot, aT as ee, bP as Xr, bQ as Zr, bR as Kt, bS as ea, bT as Qt, bA as ta, bU as ra, bV as P, bW as aa, bX as na, bY as oa, av as sa, ba as ia, bZ as da, b_ as ca, b$ as la, j as ua, P as ma, $ as kt, i as Oe, p as ha, k as We, c0 as pa, c1 as fa, c2 as ba, c3 as ga, N as xa, c4 as va, s as ya, c5 as wa, c6 as Na, bd as Sa, c7 as ka, c8 as Ca, c9 as Ct, ca as Dt, cb as Et, cc as Da, cd as Ea, ce as Ia, cf as Aa, cg as _e, ch as La, ci as Ma, cj as Ye, ck as Oa, cl as It, o as _a, cm as Pa, cn as Ra, co as Ta, cp as Ua, cq as $a, cr as Ba, cs as Fa, ct as Ga, cu as At } from "./semaphor-ready-indicator-BxF96Yhv.js";
|
|
3
|
+
import { B as U, Z as Va, _ as ja, $ as tt, L as Re, l as Ha, r as qa, s as za, t as Ka, u as Qa, v as Wa, P as Ya, a as Ja, b as Xa, m as Lt, n as Mt, o as Ot, p as _t, I as Za } from "./switch-uDtPgQlQ.js";
|
|
4
4
|
import { c as te, X as Wt, C as en } from "./x-4f5U2XwU.js";
|
|
5
5
|
import * as I from "react";
|
|
6
6
|
import Yt, { useMemo as V, useState as S, useEffect as ge, useRef as Pt, useLayoutEffect as tn } from "react";
|
|
7
|
-
import { ae as D } from "./numeric-presentation-
|
|
7
|
+
import { ae as D } from "./numeric-presentation-7X_IrD58.js";
|
|
8
8
|
import "./index-CuHybtft.js";
|
|
9
9
|
import "./validators-DMHTpf7a.js";
|
|
10
10
|
import "./matrix-operation-contract-8OIO4gob.js";
|
|
11
11
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
12
12
|
import "zod";
|
|
13
13
|
import "../value-format-preferences/index.js";
|
|
14
|
-
import { c as xe } from "./
|
|
15
|
-
import { u as rn, A as an, a as nn, e as on, V as sn, b as dn, i as cn, f as ln, U as un } from "./dashboard-briefing-launcher-
|
|
16
|
-
import { I as mn } from "./use-create-flow-overlay-state-
|
|
17
|
-
import { h as hn, R as pn } from "./report-preferences-dialog-
|
|
14
|
+
import { c as xe } from "./_commonjsHelpers-DimLPMtv.js";
|
|
15
|
+
import { u as rn, A as an, a as nn, e as on, V as sn, b as dn, i as cn, f as ln, U as un } from "./dashboard-briefing-launcher-CePgIu0Z.js";
|
|
16
|
+
import { I as mn } from "./use-create-flow-overlay-state-CjB7ig1o.js";
|
|
17
|
+
import { h as hn, R as pn } from "./report-preferences-dialog-DUtuUL_5.js";
|
|
18
18
|
import { createPortal as fn } from "react-dom";
|
|
19
|
-
import {
|
|
20
|
-
import { S as
|
|
21
|
-
import { o as Xt } from "./matrix-formatter-
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
19
|
+
import { bm as we, bn as st, bo as Jt, bp as Rt, bq as bn, br as gn, aX as xn, f as rt } from "./resolve-dashboard-input-context-DJ2tICwz.js";
|
|
20
|
+
import { S as vn, C as yn } from "./selection-reducer-Dj_8xD69.js";
|
|
21
|
+
import { o as Xt } from "./matrix-formatter-DnCyRXJE.js";
|
|
22
|
+
import { r as wn } from "./export-file-format-C-tJsxsf.js";
|
|
23
|
+
import { u as Nn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
24
|
+
import { s as Sn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
25
|
+
import { B as Te, u as Tt } from "./table-settings-CLZocegs.js";
|
|
26
|
+
import { l as kn, h as Ut, e as Cn } from "./document-dashboard-inputs-BesAHZvB.js";
|
|
27
27
|
import { S as Dn } from "./save-CfJpQQ68.js";
|
|
28
28
|
import { P as En } from "./palette-D10o_yYX.js";
|
|
29
29
|
import { B as In } from "./braces-o9UiRQes.js";
|
|
@@ -684,7 +684,7 @@ function so({
|
|
|
684
684
|
return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
685
685
|
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
|
|
686
686
|
/* @__PURE__ */ i("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
|
|
687
|
-
/* @__PURE__ */ t(
|
|
687
|
+
/* @__PURE__ */ t(vn, { className: "h-3 w-3 text-muted-foreground" }),
|
|
688
688
|
/* @__PURE__ */ t(
|
|
689
689
|
"input",
|
|
690
690
|
{
|
|
@@ -811,7 +811,7 @@ function io({
|
|
|
811
811
|
children: /* @__PURE__ */ t(ot, { className: "h-3 w-3" })
|
|
812
812
|
}
|
|
813
813
|
),
|
|
814
|
-
/* @__PURE__ */ t(
|
|
814
|
+
/* @__PURE__ */ t(yn, { className: "h-3.5 w-3.5 text-muted-foreground" })
|
|
815
815
|
] })
|
|
816
816
|
]
|
|
817
817
|
}
|
|
@@ -1323,7 +1323,7 @@ function po({
|
|
|
1323
1323
|
const a = C(
|
|
1324
1324
|
(o) => {
|
|
1325
1325
|
var c, m;
|
|
1326
|
-
return
|
|
1326
|
+
return wn({
|
|
1327
1327
|
dashboardDefault: (m = (c = o.dashboard) == null ? void 0 : c.exportDefaults) == null ? void 0 : m.csvEncoding
|
|
1328
1328
|
});
|
|
1329
1329
|
}
|
|
@@ -1483,12 +1483,12 @@ function go({
|
|
|
1483
1483
|
}
|
|
1484
1484
|
function xo(e) {
|
|
1485
1485
|
var f, g, l;
|
|
1486
|
-
const { saved: n, draft: a, usage: r } = e, o = [], c =
|
|
1486
|
+
const { saved: n, draft: a, usage: r } = e, o = [], c = kn(n);
|
|
1487
1487
|
for (const [u, s] of Object.entries(r.inputs))
|
|
1488
|
-
!s || !
|
|
1488
|
+
!s || !Ut(n, u) || Ut(a, u) || o.push({
|
|
1489
1489
|
target: "input",
|
|
1490
1490
|
id: u,
|
|
1491
|
-
label:
|
|
1491
|
+
label: Cn(n, c, u),
|
|
1492
1492
|
bookmarks: s,
|
|
1493
1493
|
remembered: 0
|
|
1494
1494
|
});
|
|
@@ -1503,7 +1503,7 @@ function xo(e) {
|
|
|
1503
1503
|
remembered: 0
|
|
1504
1504
|
});
|
|
1505
1505
|
}
|
|
1506
|
-
const p =
|
|
1506
|
+
const p = Tt(n), b = Tt(a);
|
|
1507
1507
|
for (const [u, s] of Object.entries(r.tables)) {
|
|
1508
1508
|
if (!p.has(u)) continue;
|
|
1509
1509
|
const x = Te(n, u), v = ((g = x == null ? void 0 : x.title) == null ? void 0 : g.trim()) || "Untitled table";
|
|
@@ -1517,12 +1517,12 @@ function xo(e) {
|
|
|
1517
1517
|
});
|
|
1518
1518
|
continue;
|
|
1519
1519
|
}
|
|
1520
|
-
const w = x ?
|
|
1520
|
+
const w = x ? Rt(x) : void 0, h = Te(a, u), E = h ? Rt(h) : void 0;
|
|
1521
1521
|
if (!(!x || !w || !E))
|
|
1522
1522
|
for (const [A, L] of Object.entries(s.columns)) {
|
|
1523
|
-
if (!(L.bookmarks || L.remembered) ||
|
|
1523
|
+
if (!(L.bookmarks || L.remembered) || bn(A) || !w.has(A) || E.has(A))
|
|
1524
1524
|
continue;
|
|
1525
|
-
const N =
|
|
1525
|
+
const N = gn(x, A), k = ((l = N == null ? void 0 : N.label) == null ? void 0 : l.trim()) || (N == null ? void 0 : N.name);
|
|
1526
1526
|
o.push({
|
|
1527
1527
|
target: "column",
|
|
1528
1528
|
id: A,
|
|
@@ -1624,7 +1624,7 @@ function Xo() {
|
|
|
1624
1624
|
isInspectionSurface: g
|
|
1625
1625
|
} = da(), { openBrandStudioPreview: l } = ca(), { permissions: u } = $n(), s = la(), { isLoading: x } = ua(), v = C((d) => d.theme), w = C((d) => d.isDownloadingPdf), h = C((d) => d.dashboard), E = C((d) => d.selectedSheetId), A = (vt = h == null ? void 0 : h.sheets) == null ? void 0 : vt.find(
|
|
1626
1626
|
(d) => d.id === E
|
|
1627
|
-
), L =
|
|
1627
|
+
), L = xn(A), N = L ? (yt = A == null ? void 0 : A.document) == null ? void 0 : yt.page : void 0, k = C(
|
|
1628
1628
|
(d) => d.isDashboardEditing
|
|
1629
1629
|
), { setDashboardTitle: re } = C((d) => d.actions), [ae, Ne] = S(!1), [Q, W] = S(!1), [Y, J] = S(!1), [Se, ke] = S(!1), [ne, oe] = S(null), [se, ie] = S(null), { registerBriefingViewer: Ce } = ma();
|
|
1630
1630
|
ge(
|
|
@@ -1744,12 +1744,12 @@ function Xo() {
|
|
|
1744
1744
|
x,
|
|
1745
1745
|
Dr
|
|
1746
1746
|
]);
|
|
1747
|
-
const ze = (M == null ? void 0 : M.dashboard) ?? null, { isDirty: Ke, isDirtyPending: Ir, resetDirty: pe } =
|
|
1747
|
+
const ze = (M == null ? void 0 : M.dashboard) ?? null, { isDirty: Ke, isDirtyPending: Ir, resetDirty: pe } = Nn(
|
|
1748
1748
|
h,
|
|
1749
1749
|
ze,
|
|
1750
1750
|
300,
|
|
1751
1751
|
1e3,
|
|
1752
|
-
|
|
1752
|
+
Sn
|
|
1753
1753
|
), ft = rn(
|
|
1754
1754
|
ze,
|
|
1755
1755
|
f,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as u, useState as f, useRef as p, useEffect as b } from "react";
|
|
3
|
-
import { u as a } from "./semaphor-ready-indicator-
|
|
4
|
-
import { B as S, C as N } from "./switch-
|
|
3
|
+
import { u as a } from "./semaphor-ready-indicator-BxF96Yhv.js";
|
|
4
|
+
import { B as S, C as N } from "./switch-uDtPgQlQ.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
6
|
import "./validators-DMHTpf7a.js";
|
|
7
7
|
import "./matrix-operation-contract-8OIO4gob.js";
|
|
8
8
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
9
9
|
import "zod";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
|
-
import { c as D } from "./
|
|
11
|
+
import { c as D } from "./_commonjsHelpers-DimLPMtv.js";
|
|
12
12
|
import { X as J } from "./x-4f5U2XwU.js";
|
|
13
13
|
function R() {
|
|
14
14
|
const r = a((o) => o.dashboard), c = a((o) => o.actions.setDashboard), h = a(
|