react-semaphor 0.1.561 → 0.1.563
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 +452 -429
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{analytics-base-schemas-CB3oFAXk.js → analytics-base-schemas-BaIQrEzX.js} +139 -134
- package/dist/chunks/{assistant-chat-DiVHY3Hw.js → assistant-chat-iIp02_77.js} +104 -104
- package/dist/chunks/{bookmark-impact-CR09dpkn.js → bookmark-impact-D4Kl4amw.js} +2 -2
- package/dist/chunks/{bookmark-state-BusLpkb7.js → bookmark-state-CWeoGbrx.js} +25 -25
- package/dist/chunks/{braces-u8VorWJc.js → braces-DzgoQC64.js} +1 -1
- package/dist/chunks/{comparison-window-caption-DDsIWJYT.js → comparison-window-caption-D1EUXzaR.js} +562 -437
- package/dist/chunks/{context-TUjw9eqr.js → context-R31TSL5V.js} +1 -1
- package/dist/chunks/{dashboard-BRdZBPqr.js → dashboard-CmqeP3QZ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CgvTLndW.js → dashboard-briefing-launcher-TYlSW77S.js} +155 -154
- package/dist/chunks/{dashboard-controls-B4vfSzTF.js → dashboard-controls-B253nJS-.js} +970 -968
- package/dist/chunks/{dashboard-json-Y3MF59g7.js → dashboard-json-osQuinUZ.js} +5 -5
- package/dist/chunks/dates-DFY7Gfss.js +91 -0
- package/dist/chunks/{edit-dashboard-visual-DwjZcxj-.js → edit-dashboard-visual-CMar-NhA.js} +4636 -4681
- package/dist/chunks/{filter-reach-copy-bijwf_-b.js → filter-reach-copy-CvV7W5dd.js} +1470 -1101
- package/dist/chunks/{filter-value-text-DFnhwuEW.js → filter-value-text-CPwFkrMz.js} +11 -10
- package/dist/chunks/{global-date-filter-utils-BXgCpvQM.js → global-date-filter-utils-N1kcsOFE.js} +8997 -7417
- package/dist/chunks/{index-ClwbY3BL.js → index-CNGkfUp4.js} +91 -85
- package/dist/chunks/{layout-grid-CtvCBfOm.js → layout-grid-BM65viQh.js} +1 -1
- package/dist/chunks/{list-filter-BklYgciR.js → list-filter-BoeLBfL3.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-pU51-JmY.js → matrix-analytical-definition-hEucouWM.js} +4 -4
- package/dist/chunks/{matrix-card-CUorIB7Q.js → matrix-card-CCh9JjP1.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Df5UgCGN.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-BSiGEXVC.js → matrix-operation-contract-DsLdFdSa.js} +339 -330
- package/dist/chunks/{metric-comparison-95aC0uEO.js → metric-comparison-Bnso1cm1.js} +2 -2
- package/dist/chunks/{model-change-B5wQhg5G.js → model-change-T1cRkh3m.js} +1 -1
- package/dist/chunks/{palette-DTnMhipt.js → palette-p1XSJFgB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Bo-86vwS.js → pivot-result-contract-expectations-B53jqszr.js} +5 -5
- package/dist/chunks/{pivot-result-identity-olvXJoB9.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
- package/dist/chunks/{zoned-wall-clock-CGLVI40Q.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
- package/dist/chunks/{report-preferences-dialog-C2YUIwKG.js → report-preferences-dialog-l54wJyYE.js} +68 -63
- package/dist/chunks/{report-runtime-context-DoIUr3MP.js → report-runtime-context-BITkNSDa.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-q_iiNXE1.js → resolve-dashboard-input-context-DaDrZGuA.js} +3455 -1744
- package/dist/chunks/{save-DH4RyrnG.js → save-CHV1B1fL.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-8jqfI7hI.js → saved-dashboard-context-DFYBrE6O.js} +94 -95
- package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
- package/dist/chunks/{selection-reducer-CV7K4FI6.js → selection-reducer-Bz5aywT4.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-E2XWyibu.js → semaphor-ready-indicator-C3EQEiD9.js} +36434 -37732
- package/dist/chunks/{shelf-drop-preview-context-C29EUzDp.js → shelf-drop-preview-context-BODiBlqT.js} +81 -82
- package/dist/chunks/{source-entity-resolution-BXI3nQ5Z.js → source-entity-resolution-DdDVXFB8.js} +6 -6
- package/dist/chunks/{switch-balDSHc7.js → switch-BW4yXSYs.js} +3 -3
- package/dist/chunks/{table-export-sheet-CK8tvh4d.js → table-export-sheet-bSXxGn-v.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-B77JsAzU.js → temporal-input-presentation-sk9gqLi6.js} +699 -741
- package/dist/chunks/{token-types-DhYH5YKb.js → token-types-BUK06hU2.js} +1 -1
- package/dist/chunks/{upload-Ufj8vjyn.js → upload-BnmuyPqW.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-9WsnzEO5.js → use-create-flow-overlay-state-BXY8-Cyz.js} +6 -6
- package/dist/chunks/{validators-BtaCFIEB.js → validators-BIM0FE31.js} +764 -885
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2278 -3030
- package/dist/data-app-sdk/index.js +43 -43
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +22 -22
- package/dist/format-utils/index.js +215 -209
- package/dist/index.js +225 -224
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/surfboard/filter/types.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
- package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
- package/dist/types/lib/print/print-inputs.d.ts +2 -1
- package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
- package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/lib/types/explorer-types.d.ts +7 -1
- package/dist/types/lib/types/interaction-types.d.ts +3 -1
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
- package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
- package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3230 -4658
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +24 -2
- package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +8 -6
- package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +52 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
- package/dist/types/shared/format-utils/document-print.d.ts +82 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +2 -7
- package/dist/types/shared/temporal/index.d.ts +1 -0
- package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
- package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/custom-visual-inputs-DfolidZ9.js +0 -292
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +0 -1718
- package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
- package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
- package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
- package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
- package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
- package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { k as Y, u as
|
|
1
|
+
import { k as Y, u as H, H as W } from "./validators-BIM0FE31.js";
|
|
2
2
|
import { z as c } from "zod";
|
|
3
|
-
import {
|
|
4
|
-
import { d as X } from "./metric-comparison-
|
|
5
|
-
import "./analytics-base-schemas-
|
|
6
|
-
const _ = 8, V = 6,
|
|
3
|
+
import { G as J, v as Z } from "./matrix-operation-contract-DsLdFdSa.js";
|
|
4
|
+
import { d as X } from "./metric-comparison-Bnso1cm1.js";
|
|
5
|
+
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
6
|
+
const _ = 8, V = 6, C = Object.freeze([]);
|
|
7
7
|
function ee(e) {
|
|
8
8
|
switch (e.type) {
|
|
9
9
|
case "table":
|
|
10
10
|
case "chart":
|
|
11
|
-
return e.card ? [e.card] :
|
|
11
|
+
return e.card ? [e.card] : C;
|
|
12
12
|
case "kpi":
|
|
13
|
-
return Array.isArray(e.cards) ? e.cards :
|
|
13
|
+
return Array.isArray(e.cards) ? e.cards : C;
|
|
14
14
|
default:
|
|
15
|
-
return
|
|
15
|
+
return C;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
function te(e, t) {
|
|
@@ -294,7 +294,7 @@ function O(e, t) {
|
|
|
294
294
|
O(n, t);
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function v(e, t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set()) {
|
|
298
298
|
return {
|
|
299
299
|
found: /* @__PURE__ */ new Map(),
|
|
300
300
|
complete: !0,
|
|
@@ -309,11 +309,11 @@ function A(e, t) {
|
|
|
309
309
|
return t === "qualifiedOnly" ? n : t === "preferQualified" ? n || e.entityName || void 0 : e.entityName || void 0;
|
|
310
310
|
}
|
|
311
311
|
function qe(e) {
|
|
312
|
-
const t =
|
|
312
|
+
const t = v(!1);
|
|
313
313
|
return I(e, t), { datasets: Array.from(t.found.values()), complete: t.complete };
|
|
314
314
|
}
|
|
315
315
|
function q(e, t, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = k) {
|
|
316
|
-
const s = { ...k, ...i }, a =
|
|
316
|
+
const s = { ...k, ...i }, a = v(s.includeMetricFilterDatasets, n, r);
|
|
317
317
|
I(e, a), a.found.forEach((o) => {
|
|
318
318
|
const u = A(o, s.preferQualifiedIdentity ? "preferQualified" : "name");
|
|
319
319
|
u && t.add(u);
|
|
@@ -325,7 +325,7 @@ function xe(e, t) {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
function Ke(e, t, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set()) {
|
|
328
|
-
const i =
|
|
328
|
+
const i = v(!0, n, r);
|
|
329
329
|
I(e, i), i.found.forEach((s) => {
|
|
330
330
|
const a = A(s, "qualifiedOnly");
|
|
331
331
|
a && t.add(a);
|
|
@@ -337,7 +337,7 @@ function je(e, t, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set())
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
function Ue(e, t, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = k) {
|
|
340
|
-
const s = { ...k, ...i }, a =
|
|
340
|
+
const s = { ...k, ...i }, a = v(s.includeMetricFilterDatasets, n, r);
|
|
341
341
|
O(e, a), a.found.forEach((o) => {
|
|
342
342
|
const u = A(o, s.preferQualifiedIdentity ? "preferQualified" : "name");
|
|
343
343
|
u && t.add(u);
|
|
@@ -386,7 +386,7 @@ const ue = {
|
|
|
386
386
|
boolean: /* @__PURE__ */ new Set(["=", "!=", "in", "not in", "is null", "is not null"])
|
|
387
387
|
};
|
|
388
388
|
function de(e) {
|
|
389
|
-
const t =
|
|
389
|
+
const t = W(e);
|
|
390
390
|
return t === "number" || t === "boolean" ? t : t === "date" || t === "datetime" ? "date" : "string";
|
|
391
391
|
}
|
|
392
392
|
function Qe(e, t) {
|
|
@@ -412,7 +412,7 @@ function fe(e, t) {
|
|
|
412
412
|
return t === "number" ? typeof e == "number" && Number.isFinite(e) : t === "boolean" ? typeof e == "boolean" : t === "date" ? e instanceof Date || typeof e == "string" && e.trim().length > 0 : typeof e == "string" || typeof e == "number" || typeof e == "boolean";
|
|
413
413
|
}
|
|
414
414
|
function me(e, t, n, r) {
|
|
415
|
-
if (
|
|
415
|
+
if (H(e.relativeMeta)) {
|
|
416
416
|
r.push(
|
|
417
417
|
`${n}.relativeMeta counts back from the latest data; a dashboard filter's dates run to now. Use a period counted back from today.`
|
|
418
418
|
);
|
|
@@ -465,7 +465,7 @@ const Ge = {
|
|
|
465
465
|
rememberedTableSettingsMaxBytes: 262144,
|
|
466
466
|
bookmarkStateMaxBytes: 65536
|
|
467
467
|
}, K = 1;
|
|
468
|
-
function
|
|
468
|
+
function He(e) {
|
|
469
469
|
return new TextEncoder().encode(JSON.stringify(e ?? null)).length;
|
|
470
470
|
}
|
|
471
471
|
function he(e) {
|
|
@@ -558,7 +558,7 @@ function z(e, t) {
|
|
|
558
558
|
value: j(n.data) ?? {}
|
|
559
559
|
} : { ok: !1, error: "Table settings are invalid." };
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function We(e, t, n) {
|
|
562
562
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
563
563
|
const r = {};
|
|
564
564
|
for (const [i, s] of Object.entries(
|
|
@@ -611,7 +611,7 @@ const N = 1, Xe = ["PRIVATE", "TEAM", "DASHBOARD"], ge = c.object({
|
|
|
611
611
|
kind: c.literal("selection"),
|
|
612
612
|
selection: J
|
|
613
613
|
}).strict()
|
|
614
|
-
]),
|
|
614
|
+
]), ve = c.union([
|
|
615
615
|
c.object({
|
|
616
616
|
status: c.literal("set"),
|
|
617
617
|
value: ke,
|
|
@@ -622,7 +622,7 @@ const N = 1, Xe = ["PRIVATE", "TEAM", "DASHBOARD"], ge = c.object({
|
|
|
622
622
|
comparisonSelection: D.optional()
|
|
623
623
|
}).strict(),
|
|
624
624
|
c.object({ comparisonSelection: D }).strict()
|
|
625
|
-
]), G = ["bySheetId", "byCardId", "byDocumentSectionId"],
|
|
625
|
+
]), G = ["bySheetId", "byCardId", "byDocumentSectionId"], Ce = /* @__PURE__ */ new Set(["version", "selectedSheetId", "inputs", "tableSettings"]), Ee = /* @__PURE__ */ new Set(["shared", ...G]), y = (e) => !!e && typeof e == "object" && !Array.isArray(e);
|
|
626
626
|
function M(e, t, n) {
|
|
627
627
|
if (e === void 0) return;
|
|
628
628
|
if (!y(e)) {
|
|
@@ -631,7 +631,7 @@ function M(e, t, n) {
|
|
|
631
631
|
}
|
|
632
632
|
const r = {};
|
|
633
633
|
for (const [i, s] of Object.entries(e)) {
|
|
634
|
-
const a = i ?
|
|
634
|
+
const a = i ? ve.safeParse(s) : void 0;
|
|
635
635
|
a != null && a.success ? r[i] = a.data : t.push({
|
|
636
636
|
target: Z(i) ? "selection" : "input",
|
|
637
637
|
id: i
|
|
@@ -644,7 +644,7 @@ function we(e, t) {
|
|
|
644
644
|
return { ok: !1, error: `Unsupported bookmark version ${t}.` };
|
|
645
645
|
if (!y(e) || e.version !== N)
|
|
646
646
|
return { ok: !1, error: "The bookmark state is invalid." };
|
|
647
|
-
const n = [], r = Object.keys(e).filter((o) => !
|
|
647
|
+
const n = [], r = Object.keys(e).filter((o) => !Ce.has(o));
|
|
648
648
|
let i;
|
|
649
649
|
typeof e.selectedSheetId == "string" && e.selectedSheetId ? i = e.selectedSheetId : e.selectedSheetId !== void 0 && n.push({ target: "sheet", id: String(e.selectedSheetId) });
|
|
650
650
|
const s = {};
|
|
@@ -707,8 +707,8 @@ export {
|
|
|
707
707
|
le as L,
|
|
708
708
|
me as M,
|
|
709
709
|
re as N,
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
$e as O,
|
|
711
|
+
S as P,
|
|
712
712
|
Ve as Q,
|
|
713
713
|
Re as R,
|
|
714
714
|
Me as S,
|
|
@@ -726,11 +726,11 @@ export {
|
|
|
726
726
|
K as j,
|
|
727
727
|
be as k,
|
|
728
728
|
U as l,
|
|
729
|
-
|
|
729
|
+
He as m,
|
|
730
730
|
j as n,
|
|
731
731
|
z as o,
|
|
732
732
|
et as p,
|
|
733
|
-
|
|
733
|
+
We as q,
|
|
734
734
|
qe as r,
|
|
735
735
|
Q as s,
|
|
736
736
|
he as t,
|