react-semaphor 0.1.555 → 0.1.557
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/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +20 -21
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +426 -444
- package/dist/briefings/index.js +56 -57
- package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
- package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-WMTpYirZ.js} +79 -81
- package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/comparison-window-caption-Dc7BaCMz.js +1218 -0
- package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-CxYI-gFa.js} +31 -33
- package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-C4EmOfxs.js} +149 -151
- package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-DBWykmvL.js} +171 -173
- package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-DiX-p0F7.js} +21 -22
- package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-DP5hquBR.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-n1jLV_7V.js} +5842 -5955
- package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BB9iakLA.js} +915 -986
- package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CUBpotVN.js} +5 -5
- package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-Cc5tqkoW.js} +2908 -3112
- package/dist/chunks/{index-B2k6KtUN.js → index-CgjhzkKM.js} +72 -80
- package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-4GTUDheD.js} +22 -22
- package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-fS_4O7zA.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-CpgLZ7E5.js} +52 -52
- package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-C8LY7GG5.js} +4 -4
- package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-K2OVPJQI.js → pivot-result-contract-expectations-DMk-mKhG.js} +451 -402
- package/dist/chunks/pivot-result-identity-CrQ54Xbj.js +77 -0
- package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DdEpgPRB.js} +25 -26
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-CohdtiMg.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Djl3kCFL.js} +1396 -1550
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-umlQFevH.js} +9 -9
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-4cOp6sla.js} +54479 -63899
- package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-DAtRuvR7.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-B-UTI6v-.js → switch-9CJt5EF_.js} +1431 -1342
- package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-DF1gdVQR.js} +3 -3
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types-DYECHYGH.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-esyMT9vU.js} +125 -127
- package/dist/chunks/{validators-ClKLGDGZ.js → validators-hmfNNQz8.js} +305 -307
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +168 -169
- package/dist/data-app-sdk/index.js +789 -4154
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +234 -253
- package/dist/index.js +233 -235
- package/dist/layouts/index.js +1 -1
- package/dist/pdf-export-policy/index.js +9 -11
- 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/brand-studio/brand-studio-draft.d.ts +0 -3
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +27 -28
- package/dist/types/lib/api/exports-api.d.ts +1 -1
- package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
- package/dist/types/lib/document/document-edits.d.ts +1 -1
- package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
- package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
- package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
- package/dist/types/lib/types/common-types.d.ts +0 -7
- package/dist/types/lib/types/explorer-types.d.ts +1 -14
- package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
- package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
- package/dist/types/shared/format-utils/index.d.ts +0 -2
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
- package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
- package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
- package/package.json +2 -4
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
- package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
- package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
- package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
- package/dist/chunks/raw-temporal-contract-WuXA8jBP.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_KyuEFx.js +0 -2261
- package/dist/chunks/selection-reducer-yw_JgICP.js +0 -111
- package/dist/chunks/temporal-bucket-C4rqmwaQ.js +0 -2071
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
- package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
- package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
|
@@ -2,7 +2,7 @@ var T = Object.defineProperty;
|
|
|
2
2
|
var q = (e, a, i) => a in e ? T(e, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[a] = i;
|
|
3
3
|
var b = (e, a, i) => q(e, typeof a != "symbol" ? a + "" : a, i);
|
|
4
4
|
import { z as t } from "zod";
|
|
5
|
-
import { s as k } from "./analytics-base-schemas-
|
|
5
|
+
import { s as k } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
6
6
|
const J = 1;
|
|
7
7
|
function $(e) {
|
|
8
8
|
return `You've used ${e === void 0 ? "today's questions" : `today's ${e} questions`}. They reset tomorrow. To keep going, contact your administrator.`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as F } from "./global-date-filter-utils-
|
|
1
|
+
import { v as F } from "./global-date-filter-utils-Cc5tqkoW.js";
|
|
2
2
|
function h(e) {
|
|
3
3
|
if (!(e != null && e.expectedType)) return "table";
|
|
4
4
|
const r = Array.isArray(e.expectedType) ? e.expectedType[0] : e.expectedType;
|
|
@@ -20,8 +20,6 @@ const E = [
|
|
|
20
20
|
"stackedBar",
|
|
21
21
|
"stackedLine",
|
|
22
22
|
"table",
|
|
23
|
-
"pivotTable",
|
|
24
|
-
"aggregateTable",
|
|
25
23
|
"detailTable",
|
|
26
24
|
"kpi",
|
|
27
25
|
"pyramid",
|
|
@@ -38,7 +36,7 @@ const E = [
|
|
|
38
36
|
function M(e) {
|
|
39
37
|
return E.includes(e);
|
|
40
38
|
}
|
|
41
|
-
function
|
|
39
|
+
function x(e) {
|
|
42
40
|
const r = e.position;
|
|
43
41
|
if (typeof r == "number") return r;
|
|
44
42
|
if (typeof r == "string") {
|
|
@@ -72,7 +70,7 @@ function m(e) {
|
|
|
72
70
|
}
|
|
73
71
|
function k(e) {
|
|
74
72
|
return !e || e.length === 0 ? void 0 : [...e].sort(
|
|
75
|
-
(t, n) =>
|
|
73
|
+
(t, n) => x(t) - x(n)
|
|
76
74
|
)[0];
|
|
77
75
|
}
|
|
78
76
|
function N(e, r) {
|
|
@@ -88,13 +86,13 @@ function N(e, r) {
|
|
|
88
86
|
});
|
|
89
87
|
if (d) return d;
|
|
90
88
|
const p = n.sort(
|
|
91
|
-
(i, u) =>
|
|
89
|
+
(i, u) => x(i) - x(u)
|
|
92
90
|
).find((i) => {
|
|
93
91
|
const u = m(i.position);
|
|
94
92
|
return (u == null ? void 0 : u.kind) === "range" && r >= u.start && r <= u.end;
|
|
95
93
|
});
|
|
96
94
|
if (p) return p;
|
|
97
|
-
const
|
|
95
|
+
const a = s.map((i) => ({
|
|
98
96
|
slot: i,
|
|
99
97
|
parsed: m(i.position)
|
|
100
98
|
})).filter((i) => {
|
|
@@ -102,19 +100,19 @@ function N(e, r) {
|
|
|
102
100
|
return ((u = i.parsed) == null ? void 0 : u.kind) === "dynamic";
|
|
103
101
|
}).sort(
|
|
104
102
|
(i, u) => {
|
|
105
|
-
var
|
|
106
|
-
return (((
|
|
103
|
+
var o, f;
|
|
104
|
+
return (((o = i.parsed) == null ? void 0 : o.start) ?? 0) - (((f = u.parsed) == null ? void 0 : f.start) ?? 0);
|
|
107
105
|
}
|
|
108
106
|
).filter((i) => {
|
|
109
107
|
var u;
|
|
110
108
|
return r >= (((u = i.parsed) == null ? void 0 : u.start) ?? 0);
|
|
111
109
|
}).sort(
|
|
112
110
|
(i, u) => {
|
|
113
|
-
var
|
|
114
|
-
return (((
|
|
111
|
+
var o, f;
|
|
112
|
+
return (((o = u.parsed) == null ? void 0 : o.start) ?? 0) - (((f = i.parsed) == null ? void 0 : f.start) ?? 0);
|
|
115
113
|
}
|
|
116
114
|
)[0];
|
|
117
|
-
return
|
|
115
|
+
return a == null ? void 0 : a.slot;
|
|
118
116
|
}
|
|
119
117
|
function A(e, r) {
|
|
120
118
|
const t = N(e, r);
|
|
@@ -189,19 +187,19 @@ function Y(e, r, t) {
|
|
|
189
187
|
minInputs: r.minInputs,
|
|
190
188
|
maxInputs: r.maxInputs
|
|
191
189
|
}, d = r.minInputs || 1, p = e.map((c) => ({ slot: c, parsed: m(c.position) })).filter((c) => c.parsed !== null).reduce((c, l) => {
|
|
192
|
-
const
|
|
193
|
-
return Number.isFinite(
|
|
194
|
-
}, -1),
|
|
190
|
+
const g = l.parsed.end;
|
|
191
|
+
return Number.isFinite(g) ? Math.max(c, g) : c;
|
|
192
|
+
}, -1), b = Math.max(d, p + 1), a = k(e), i = a ? x(a) : 0;
|
|
195
193
|
let u = !1;
|
|
196
|
-
const
|
|
197
|
-
for (let c = 0; c <
|
|
198
|
-
const l = N(e, c),
|
|
194
|
+
const o = [];
|
|
195
|
+
for (let c = 0; c < b; c += 1) {
|
|
196
|
+
const l = N(e, c), g = h(l), I = !u && c === i, P = c, C = {
|
|
199
197
|
...n,
|
|
200
198
|
id: F(),
|
|
201
|
-
title: (I ?
|
|
202
|
-
tabTitle: (I ?
|
|
203
|
-
description: (I ?
|
|
204
|
-
type:
|
|
199
|
+
title: (I ? a == null ? void 0 : a.label : l == null ? void 0 : l.label) || `Tab ${c + 1}`,
|
|
200
|
+
tabTitle: (I ? a == null ? void 0 : a.label : l == null ? void 0 : l.label) || `Tab ${c + 1}`,
|
|
201
|
+
description: (I ? a == null ? void 0 : a.description : l == null ? void 0 : l.description) || "",
|
|
202
|
+
type: g,
|
|
205
203
|
sql: "",
|
|
206
204
|
preferences: {
|
|
207
205
|
onClickFilter: [{ columnIndex: 0, expression: "" }]
|
|
@@ -218,30 +216,30 @@ function Y(e, r, t) {
|
|
|
218
216
|
}
|
|
219
217
|
}
|
|
220
218
|
};
|
|
221
|
-
I && (u = !0),
|
|
219
|
+
I && (u = !0), o.push(C);
|
|
222
220
|
}
|
|
223
|
-
if (!u &&
|
|
224
|
-
const c = ((T =
|
|
225
|
-
|
|
226
|
-
...
|
|
227
|
-
type:
|
|
221
|
+
if (!u && o.length > 0) {
|
|
222
|
+
const c = ((T = o[0].customCardPreferences) == null ? void 0 : T.slotIndex) ?? 0;
|
|
223
|
+
o[0] = {
|
|
224
|
+
...o[0],
|
|
225
|
+
type: o[0].type,
|
|
228
226
|
customCardPreferences: {
|
|
229
227
|
...s,
|
|
230
228
|
slotIndex: c
|
|
231
229
|
}
|
|
232
230
|
};
|
|
233
231
|
}
|
|
234
|
-
const f =
|
|
232
|
+
const f = o.findIndex(
|
|
235
233
|
(c) => {
|
|
236
234
|
var l;
|
|
237
235
|
return !!((l = c.customCardPreferences) != null && l.url);
|
|
238
236
|
}
|
|
239
237
|
);
|
|
240
238
|
if (f > 0) {
|
|
241
|
-
const [c] =
|
|
242
|
-
|
|
239
|
+
const [c] = o.splice(f, 1);
|
|
240
|
+
o.unshift(c);
|
|
243
241
|
}
|
|
244
|
-
return
|
|
242
|
+
return o;
|
|
245
243
|
}
|
|
246
244
|
function _({
|
|
247
245
|
frame: e,
|
|
@@ -255,7 +253,7 @@ function _({
|
|
|
255
253
|
return n ? Object.keys(n).sort((d, y) => Number(d) - Number(y)).map((d) => {
|
|
256
254
|
var p;
|
|
257
255
|
const y = (p = n[d]) == null ? void 0 : p.cardId;
|
|
258
|
-
return e.cards.find((
|
|
256
|
+
return e.cards.find((b) => b.id === y) || null;
|
|
259
257
|
}) : e.cards;
|
|
260
258
|
}
|
|
261
259
|
function j(e, r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-
|
|
2
|
+
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-4cOp6sla.js";
|
|
3
3
|
function u(e) {
|
|
4
4
|
if (typeof window > "u")
|
|
5
5
|
return null;
|