react-semaphor 0.1.556 → 0.1.558
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 +19 -20
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +28 -29
- package/dist/briefings/index.js +55 -56
- package/dist/chunks/{assistant-chat-C7Acww1T.js → assistant-chat-BCWoP6Rf.js} +78 -80
- package/dist/chunks/{bookmark-state-7iZErWnR.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-D5Ucy7q1.js} +1 -1
- package/dist/chunks/{comparison-window-caption-BseG5aOZ.js → comparison-window-caption-Dc7BaCMz.js} +186 -189
- package/dist/chunks/{custom-visual-inputs-ChuKjx27.js → custom-visual-inputs-B-DLRGrV.js} +1 -2
- package/dist/chunks/{dashboard-briefing-launcher-qrYd2zkN.js → dashboard-briefing-launcher-Coqghdn6.js} +148 -150
- package/dist/chunks/{dashboard-controls-BsapXI2H.js → dashboard-controls-BYWSM2RM.js} +170 -172
- package/dist/chunks/{dashboard-json-CJqPqYnI.js → dashboard-json-pPTB5gj0.js} +20 -21
- package/dist/chunks/{dashboard-BU6rE5kV.js → dashboard-wK6Bai4V.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-BNSprf5_.js → document-dashboard-inputs-PY_7Xm55.js} +31 -31
- package/dist/chunks/{edit-dashboard-visual-CjAdV-WG.js → edit-dashboard-visual-BODxuUeq.js} +7505 -7990
- package/dist/chunks/{filter-reach-copy-BTrqtFkh.js → filter-reach-copy-BvJH9JO-.js} +148 -149
- package/dist/chunks/{filter-value-text-CJTJDCym.js → filter-value-text-CUBpotVN.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-CTVf3dG3.js → global-date-filter-utils-BsFqnnbA.js} +1396 -1391
- package/dist/chunks/{index-dIV-Gdsb.js → index-CJW5BdWT.js} +23 -24
- package/dist/chunks/{index-B_vIRa-q.js → index-DP_wQl0v.js} +70 -72
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CkoXmv0L.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-B4i25kuc.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-Cg0ioFGQ.js → matrix-analytical-definition-4GTUDheD.js} +3 -3
- package/dist/chunks/{matrix-card-yYibXSw1.js → matrix-card-fS_4O7zA.js} +2 -2
- package/dist/chunks/{matrix-member-presentation-DEEauKXC.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js} +21 -21
- package/dist/chunks/{metric-comparison-BfcmwxM1.js → metric-comparison-C8LY7GG5.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-stlpjVk4.js} +1 -1
- package/dist/chunks/{matrix-formatter-C2kjsCDf.js → pivot-result-contract-expectations-DMk-mKhG.js} +444 -395
- package/dist/chunks/{pivot-result-identity-CWi5WrrY.js → pivot-result-identity-CrQ54Xbj.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-DWzLIHc3.js → raw-temporal-presentation-BI2z2LlB.js} +24 -25
- package/dist/chunks/report-preferences-dialog-Dc-YyVwf.js +2109 -0
- package/dist/chunks/{report-runtime-context-BgM-iNWB.js → report-runtime-context-CohdtiMg.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Df8V5QHW.js → resolve-dashboard-input-context-BZYI1hB0.js} +225 -227
- package/dist/chunks/{save-CfJpQQ68.js → save-C1dgxgAu.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-VvXI6r03.js → saved-dashboard-context-CIBoMq46.js} +8 -8
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-fejZmdq9.js → semaphor-ready-indicator-ERTLU7B4.js} +43497 -49629
- package/dist/chunks/{shelf-drop-preview-context-BuTCXe-S.js → shelf-drop-preview-context-fEnx6iL_.js} +6 -6
- package/dist/chunks/{source-entity-resolution-B46EZIzX.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-Bq92UGId.js → switch-BqUan2mN.js} +1430 -1341
- package/dist/chunks/{table-export-sheet-noKl8-en.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-PpINOzw8.js → table-settings-DF1gdVQR.js} +2 -2
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types--0bgRCaO.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-DcoyjkRV.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Cz-ve64t.js → use-create-flow-overlay-state-xhb9YFg-.js} +124 -126
- package/dist/chunks/{validators-CZo_H4E6.js → validators-hmfNNQz8.js} +5 -5
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +131 -132
- package/dist/data-app-sdk/index.js +788 -4153
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.js +230 -233
- package/dist/index.js +217 -218
- package/dist/layouts/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- 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 +6 -6
- package/dist/types/lib/charts/types.d.ts +1 -2
- package/dist/types/lib/types/common-types.d.ts +0 -10
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/package.json +1 -4
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +0 -56
- package/dist/chunks/raw-temporal-contract-CjHaUIsE.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_wrbIQt.js +0 -2261
- package/dist/chunks/selection-reducer-By4CSmEF.js +0 -111
- package/dist/chunks/temporal-bucket-DzyadxVY.js +0 -2071
- package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +0 -879
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
package/DATA_APP_SDK.md
CHANGED
|
@@ -12,7 +12,6 @@ these patterns over inspecting `dist/types` or SDK implementation files.
|
|
|
12
12
|
```tsx
|
|
13
13
|
import {
|
|
14
14
|
SemaphorDataAppProvider,
|
|
15
|
-
SemaphorDevtools,
|
|
16
15
|
semaphor,
|
|
17
16
|
useClearInvalidSemaphorInputValue,
|
|
18
17
|
useSemaphorInput,
|
|
@@ -29,46 +28,24 @@ import type {
|
|
|
29
28
|
} from "react-semaphor/data-app-sdk";
|
|
30
29
|
```
|
|
31
30
|
|
|
32
|
-
## Runtime Provider
|
|
33
|
-
|
|
34
|
-
Generated local/dev apps should mount one root DevTools instance and enable the
|
|
35
|
-
debug bridge only outside production embeds.
|
|
31
|
+
## Runtime Provider
|
|
36
32
|
|
|
37
33
|
```tsx
|
|
38
34
|
const runtimeToken = import.meta.env.VITE_SEMAPHOR_PROJECT_TOKEN;
|
|
39
|
-
const enableDevtools =
|
|
40
|
-
import.meta.env.DEV ||
|
|
41
|
-
(typeof window !== "undefined" && window.location.hostname === "localhost");
|
|
42
35
|
|
|
43
36
|
export function Root() {
|
|
44
37
|
return (
|
|
45
|
-
<SemaphorDataAppProvider
|
|
46
|
-
token={runtimeToken}
|
|
47
|
-
debug={enableDevtools ? { exposeWindowBridge: true } : false}
|
|
48
|
-
>
|
|
38
|
+
<SemaphorDataAppProvider token={runtimeToken} debug={import.meta.env.DEV}>
|
|
49
39
|
<App />
|
|
50
|
-
<SemaphorDevtools
|
|
51
|
-
initialIsOpen={false}
|
|
52
|
-
buttonPosition="bottom-right"
|
|
53
|
-
panelPosition="right"
|
|
54
|
-
/>
|
|
55
40
|
</SemaphorDataAppProvider>
|
|
56
41
|
);
|
|
57
42
|
}
|
|
58
43
|
```
|
|
59
44
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
debug: {
|
|
65
|
-
sourceHint: {
|
|
66
|
-
file: "src/views/RevenueBySegment.tsx",
|
|
67
|
-
component: "RevenueBySegment",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
```
|
|
45
|
+
With `debug` on, each query asks the server for debug detail. For an
|
|
46
|
+
organization user, the result's `executionResult.metadata.dataAppDebug` then
|
|
47
|
+
carries the request id, duration and compiled SQL. Keep it off in production
|
|
48
|
+
embeds.
|
|
72
49
|
|
|
73
50
|
## Source And Fields
|
|
74
51
|
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { M as N, O as L, R as q, S as W, c as B, T as K, e as V, B as H, A as G, b as Y, d as X, n as j, k as Q, f as J, r as $, g as e0, C as T0, D as a0, y as Z0, v as t0, w as i0, x as n0, q as o0, u as r0, I as s0, E as m0, G as c0, H as u0, o as d0, F as l0, z as p0, l as h0, m as S0, s as C0, J as x0, p as g0, h as A0, t as y0, j as R0, a as v0 } from "../chunks/analytics-base-schemas-BUFUoO6G.js";
|
|
2
2
|
import { a as z0, n as I0, t as E0 } from "../chunks/operators-B3zZoskU.js";
|
|
3
|
-
import { N as b0, b as D0, i as O0, a as M0, p as k0, r as w0, t as P0 } from "../chunks/matrix-member-presentation-
|
|
4
|
-
import { w as l, s as c, x as p } from "../chunks/validators-
|
|
5
|
-
import { S as U0, au as N0, at as L0, av as q0, aw as W0, ax as B0, ar as K0, aj as V0, aK as H0, an as G0, Z as Y0, aH as X0, aJ as j0, aF as Q0, aD as J0, aa as $0, a9 as e2, ak as T2, ac as a2, al as Z2, am as t2, ae as i2, ai as n2, ah as o2, ad as r2, ag as s2, af as m2, aA as c2, u as u2, aI as d2, aC as l2, az as p2, _ as h2, B as S2, m as C2, A as x2, o as g2, J as A2, V as y2, X as R2, U as v2, Y as f2, E as z2, z as I2, F as E2, O as _2, G as b2, H as D2, t as O2, I as M2, T as k2, N as w2, P as P2, M as F2, K as U2, Q as N2, R as L2, W as q2, q as W2, ab as B2, a8 as K2, aL as V2, $ as H2, r as G2, a0 as Y2, p as X2, ap as j2, v as Q2, as as J2, ay as $2, y as e1, a as T1, aq as a1, aG as Z1, ao as t1, aB as i1, aE as n1, a3 as o1, a5 as r1, a6 as s1, a7 as m1, a4 as c1, a1 as u1, a2 as d1 } from "../chunks/validators-
|
|
6
|
-
import { O as p1, U as h1, V as S1,
|
|
7
|
-
import { e as L9, c as q9, h as W9, g as B9, j as K9, l as V9, n as H9, p as G9, f as Y9, r as X9, b as j9, i as Q9, k as J9, m as $9, o as e3, s as T3, a as a3, d as Z3 } from "../chunks/source-entity-resolution-
|
|
8
|
-
import { C as i3, D as n3, h as o3, b as r3, r as s3, j as m3, g as c3, e as u3, a as d3, d as l3, f as p3, c as h3, v as S3, i as C3, w as x3 } from "../chunks/metric-comparison-
|
|
3
|
+
import { N as b0, b as D0, i as O0, a as M0, p as k0, r as w0, t as P0 } from "../chunks/matrix-member-presentation-Dj7HaAHC.js";
|
|
4
|
+
import { w as l, s as c, x as p } from "../chunks/validators-hmfNNQz8.js";
|
|
5
|
+
import { S as U0, au as N0, at as L0, av as q0, aw as W0, ax as B0, ar as K0, aj as V0, aK as H0, an as G0, Z as Y0, aH as X0, aJ as j0, aF as Q0, aD as J0, aa as $0, a9 as e2, ak as T2, ac as a2, al as Z2, am as t2, ae as i2, ai as n2, ah as o2, ad as r2, ag as s2, af as m2, aA as c2, u as u2, aI as d2, aC as l2, az as p2, _ as h2, B as S2, m as C2, A as x2, o as g2, J as A2, V as y2, X as R2, U as v2, Y as f2, E as z2, z as I2, F as E2, O as _2, G as b2, H as D2, t as O2, I as M2, T as k2, N as w2, P as P2, M as F2, K as U2, Q as N2, R as L2, W as q2, q as W2, ab as B2, a8 as K2, aL as V2, $ as H2, r as G2, a0 as Y2, p as X2, ap as j2, v as Q2, as as J2, ay as $2, y as e1, a as T1, aq as a1, aG as Z1, ao as t1, aB as i1, aE as n1, a3 as o1, a5 as r1, a6 as s1, a7 as m1, a4 as c1, a1 as u1, a2 as d1 } from "../chunks/validators-hmfNNQz8.js";
|
|
6
|
+
import { O as p1, U as h1, V as S1, S as C1, e as x1, K as g1, m as A1, Q as y1, y as R1, F as v1, a as f1, z as z1, G as I1, c as E1, aa as _1, ac as b1, a9 as D1, ab as O1, ad as M1, g as k1, J as w1, P as P1, v as F1, i as U1, $ as N1, Y as L1, a4 as q1, a0 as W1, a2 as B1, al as K1, ai as V1, ae as H1, af as G1, ah as Y1, ag as X1, a3 as j1, a1 as Q1, a8 as J1, a6 as $1, am as e9, W as T9, X as a9, r as Z9, aj as t9, _ as i9, a7 as n9, Z as o9, a5 as r9, H as s9, ak as m9, p as c9, T as u9, R as d9, I as l9, N as p9, A as h9, L as S9, x as C9, D as x9, t as g9, C as A9, u as y9, b as R9, s as v9, B as f9, E as z9, l as I9, j as E9, n as _9, k as b9, f as D9, q as O9, o as M9, r as k9, h as w9, M as P9, d as F9, w as U9 } from "../chunks/matrix-operation-contract-CpgLZ7E5.js";
|
|
7
|
+
import { e as L9, c as q9, h as W9, g as B9, j as K9, l as V9, n as H9, p as G9, f as Y9, r as X9, b as j9, i as Q9, k as J9, m as $9, o as e3, s as T3, a as a3, d as Z3 } from "../chunks/source-entity-resolution-DXW1HpKf.js";
|
|
8
|
+
import { C as i3, D as n3, h as o3, b as r3, r as s3, j as m3, g as c3, e as u3, a as d3, d as l3, f as p3, c as h3, v as S3, i as C3, w as x3 } from "../chunks/metric-comparison-C8LY7GG5.js";
|
|
9
9
|
import { a as A3, r as y3 } from "../chunks/applied-constraints-DU-wndZ7.js";
|
|
10
10
|
import { a as v3, V as f3, c as z3, f as I3, i as E3, u as _3, v as b3, w as D3 } from "../chunks/visual-choice-JiJ-_3bi.js";
|
|
11
|
-
import { E as h, s as S, p as d } from "../chunks/matrix-analytical-definition-
|
|
12
|
-
import { A as M3, S as k3, q as w3, K as P3, z as F3, F as U3, k as N3, v as L3, J as q3, f as W3, L as B3, u as K3, j as V3, h as H3, e as G3, d as Y3, g as X3, x as j3, D as Q3, i as J3, o as $3, l as ee, m as Te, n as ae, M as Ze, P as te, r as ie, c as ne, O as oe, y as re, b as se, Q as me, G as ce, a as ue, I as de, B as le, C as pe, N as he, H as Se, t as Ce, w as xe } from "../chunks/matrix-analytical-definition-
|
|
11
|
+
import { E as h, s as S, p as d } from "../chunks/matrix-analytical-definition-4GTUDheD.js";
|
|
12
|
+
import { A as M3, S as k3, q as w3, K as P3, z as F3, F as U3, k as N3, v as L3, J as q3, f as W3, L as B3, u as K3, j as V3, h as H3, e as G3, d as Y3, g as X3, x as j3, D as Q3, i as J3, o as $3, l as ee, m as Te, n as ae, M as Ze, P as te, r as ie, c as ne, O as oe, y as re, b as se, Q as me, G as ce, a as ue, I as de, B as le, C as pe, N as he, H as Se, t as Ce, w as xe } from "../chunks/matrix-analytical-definition-4GTUDheD.js";
|
|
13
13
|
import { c as Ae, s as ye } from "../chunks/selection-filter-compiler-BKXmyLrS.js";
|
|
14
|
-
import { R as ve,
|
|
15
|
-
import { f as Ee, g as _e, a as be, p as De, r as Oe, w as Me, z as ke, b as we } from "../chunks/zoned-wall-clock-MulfA26h.js";
|
|
14
|
+
import { R as ve, f as fe, g as ze, a as Ie, p as Ee, b as _e, r as be, v as De, w as Oe, z as Me, c as ke } from "../chunks/zoned-wall-clock-E35Frf9v.js";
|
|
16
15
|
const r = {
|
|
17
16
|
kind: "semantic",
|
|
18
17
|
domainId: "domain_sales",
|
|
@@ -1105,7 +1104,7 @@ export {
|
|
|
1105
1104
|
Q0 as exactNumericValueSchema,
|
|
1106
1105
|
J0 as filterDefaultToTimeWindow,
|
|
1107
1106
|
I3 as filterValueTargetsField,
|
|
1108
|
-
|
|
1107
|
+
fe as findPresetLabel,
|
|
1109
1108
|
W3 as findSortTarget,
|
|
1110
1109
|
B3 as formatWallDate,
|
|
1111
1110
|
K3 as generatedLabelPatch,
|
|
@@ -1118,8 +1117,8 @@ export {
|
|
|
1118
1117
|
G3 as getDashboardControlCompatInputId,
|
|
1119
1118
|
Y3 as getDashboardFilterCompatInputId,
|
|
1120
1119
|
X3 as getMatrixAnalyticalDefinition,
|
|
1121
|
-
|
|
1122
|
-
|
|
1120
|
+
ze as getRelativeDateLabel,
|
|
1121
|
+
Ie as getRelativeOffsetLabel,
|
|
1123
1122
|
k1 as getSemaphorAnalyzeResultFieldNames,
|
|
1124
1123
|
W9 as getSemaphorCatalogCoordinateLevels,
|
|
1125
1124
|
B9 as getSemaphorConnectionCapabilities,
|
|
@@ -1217,7 +1216,7 @@ export {
|
|
|
1217
1216
|
m9 as parseMatrixRuntimeInputs,
|
|
1218
1217
|
M0 as parseNativePredicateSemantics,
|
|
1219
1218
|
H2 as parseOptionMatchValues,
|
|
1220
|
-
|
|
1219
|
+
Ee as parseRawTemporalValueMetadata,
|
|
1221
1220
|
c9 as parseSemaphorAnalyzeResult,
|
|
1222
1221
|
G2 as parseSemaphorIsoInstant,
|
|
1223
1222
|
Y2 as parseSemaphorIsoTimeWindowBoundary,
|
|
@@ -1227,7 +1226,7 @@ export {
|
|
|
1227
1226
|
Y9 as persistedIdentifierLeafName,
|
|
1228
1227
|
X2 as preferSemaphorFieldRefMetadata,
|
|
1229
1228
|
j2 as preferSemaphorSourceMetadata,
|
|
1230
|
-
|
|
1229
|
+
_e as presetMetadata,
|
|
1231
1230
|
k0 as projectNativePredicateSemantics,
|
|
1232
1231
|
u9 as publicAnalyticsRefusal,
|
|
1233
1232
|
Q as rawTemporalValueMetadataSchema,
|
|
@@ -1240,7 +1239,7 @@ export {
|
|
|
1240
1239
|
J as recordArraySchema,
|
|
1241
1240
|
$ as recordSchema,
|
|
1242
1241
|
J2 as relativeDateFilterSchema,
|
|
1243
|
-
|
|
1242
|
+
be as relativeMetaEquals,
|
|
1244
1243
|
ie as resolveDashboardDateComparisonFilterDefinition,
|
|
1245
1244
|
ne as resolveDashboardDateComparisonInputDefinition,
|
|
1246
1245
|
w0 as resolveMatrixMemberPresentation,
|
|
@@ -1336,7 +1335,7 @@ export {
|
|
|
1336
1335
|
l3 as validateMetricComparisonConfig,
|
|
1337
1336
|
p3 as validateMetricComparisonPolarity,
|
|
1338
1337
|
h3 as validateMetricComparisonSpec,
|
|
1339
|
-
|
|
1338
|
+
De as validateRawTemporalResultColumn,
|
|
1340
1339
|
o1 as validateSemaphorAnalyticsIntent,
|
|
1341
1340
|
r1 as validateSemaphorAnalyticsRecoveryPlan,
|
|
1342
1341
|
s1 as validateSemaphorDashboardIntent,
|
|
@@ -1348,13 +1347,13 @@ export {
|
|
|
1348
1347
|
C3 as validateTemporalBucketResultColumn,
|
|
1349
1348
|
b3 as visualColumnRole,
|
|
1350
1349
|
pe as wallClockAt,
|
|
1351
|
-
|
|
1350
|
+
Oe as wallClockMilliseconds,
|
|
1352
1351
|
he as wallDatePeriod,
|
|
1353
1352
|
Se as wallWeekday,
|
|
1354
1353
|
Ce as withAuthoredLabel,
|
|
1355
1354
|
D3 as withDashboardFilterOwnership,
|
|
1356
1355
|
xe as withMetricAggregate,
|
|
1357
1356
|
x3 as withoutLegacyComparisonClock,
|
|
1358
|
-
|
|
1359
|
-
|
|
1357
|
+
Me as zonedWallClock,
|
|
1358
|
+
ke as zonedWallClockToInstant
|
|
1360
1359
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as t, b as r, c as o, p as d, d as n, e as p } from "../chunks/saved-dashboard-context-
|
|
1
|
+
import { A as e, a as t, b as r, c as o, p as d, d as n, e as p } from "../chunks/saved-dashboard-context-CIBoMq46.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AssistantContextSourceError,
|
|
4
4
|
t as assistantCardReplayFields,
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as de } from "react/jsx-runtime";
|
|
2
2
|
import b from "react";
|
|
3
|
-
import { P as ue, a as pe, B as C, b as be, C as ze, R as ge, L as ce,
|
|
4
|
-
import { A as
|
|
3
|
+
import { c as ee, P as ue, a as pe, B as C, b as be, C as ze, R as ge, L as ce, X as De, S as ie, d as je, T as Ie, e as Je, f as L, g as Le, h as $, i as $e, j as _e, k as Ue, l as Ve, m as T, n as X, o as Y, p as q, I as fe, q as Z, r as K, s as me, t as he, u as ke, v as xe, w as ye, x as Me } from "../chunks/switch-BqUan2mN.js";
|
|
4
|
+
import { A as Ge, p as We } from "../chunks/color-CJvdlFM_.js";
|
|
5
5
|
import "../chunks/index-CuHybtft.js";
|
|
6
|
-
import "../chunks/validators-
|
|
7
|
-
import "../chunks/matrix-operation-contract-
|
|
6
|
+
import "../chunks/validators-hmfNNQz8.js";
|
|
7
|
+
import "../chunks/matrix-operation-contract-CpgLZ7E5.js";
|
|
8
8
|
import "../chunks/analytics-base-schemas-BUFUoO6G.js";
|
|
9
9
|
import "zod";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
11
|
import { c as Q } from "../chunks/_commonjsHelpers-DimLPMtv.js";
|
|
12
|
-
import { r as
|
|
13
|
-
import { P as _ } from "../chunks/palette-
|
|
14
|
-
import { B as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { L as Qe } from "../chunks/layout-grid-Bgzth8vd.js";
|
|
12
|
+
import { r as He, v as Xe, A as Ye } from "../chunks/index-CLIro-EG.js";
|
|
13
|
+
import { P as _ } from "../chunks/palette-stlpjVk4.js";
|
|
14
|
+
import { B as qe } from "../chunks/braces-D5Ucy7q1.js";
|
|
15
|
+
import { U as Ze } from "../chunks/upload-DcoyjkRV.js";
|
|
16
|
+
import { S as Ke } from "../chunks/save-C1dgxgAu.js";
|
|
17
|
+
import { L as Qe } from "../chunks/layout-grid-CkoXmv0L.js";
|
|
19
18
|
/**
|
|
20
19
|
* @license lucide-react v0.453.0 - ISC
|
|
21
20
|
*
|
|
@@ -214,7 +213,7 @@ const or = ee("Pipette", [
|
|
|
214
213
|
}
|
|
215
214
|
];
|
|
216
215
|
function D(e) {
|
|
217
|
-
const a =
|
|
216
|
+
const a = He({
|
|
218
217
|
organizationAppearance: e ?? void 0
|
|
219
218
|
});
|
|
220
219
|
return ar(
|
|
@@ -231,10 +230,10 @@ function ar(e) {
|
|
|
231
230
|
}
|
|
232
231
|
function j(e) {
|
|
233
232
|
const a = re({
|
|
234
|
-
version:
|
|
233
|
+
version: Ye,
|
|
235
234
|
mode: e.mode,
|
|
236
235
|
schemes: e.schemes
|
|
237
|
-
}), n =
|
|
236
|
+
}), n = Xe(a);
|
|
238
237
|
if (!n.success) {
|
|
239
238
|
const c = n.issues[0];
|
|
240
239
|
throw new Error(
|
|
@@ -445,7 +444,7 @@ const dr = [
|
|
|
445
444
|
["negative", "Negative"],
|
|
446
445
|
["warning", "Warning"],
|
|
447
446
|
["info", "Info"]
|
|
448
|
-
], cr = [0, 1, 2, 3, 4, 5], M =
|
|
447
|
+
], cr = [0, 1, 2, 3, 4, 5], M = Ge, ir = [
|
|
449
448
|
"#ffffff",
|
|
450
449
|
"#f8fafc",
|
|
451
450
|
"#f4f4f5",
|
|
@@ -459,7 +458,7 @@ const dr = [
|
|
|
459
458
|
"#dc2626",
|
|
460
459
|
"#7c3aed"
|
|
461
460
|
];
|
|
462
|
-
function
|
|
461
|
+
function Rr({
|
|
463
462
|
appearance: e,
|
|
464
463
|
previewTitle: a,
|
|
465
464
|
isLoading: n = !1,
|
|
@@ -613,7 +612,7 @@ function Ar({
|
|
|
613
612
|
onOpenChange: Oe,
|
|
614
613
|
children: [
|
|
615
614
|
/* @__PURE__ */ r(pe, { asChild: !0, children: /* @__PURE__ */ d(C, { type: "button", size: "xs", variant: "ghost", disabled: !p, children: [
|
|
616
|
-
/* @__PURE__ */ r(
|
|
615
|
+
/* @__PURE__ */ r(qe, { className: "h-3.5 w-3.5" }),
|
|
617
616
|
"Brand Spec"
|
|
618
617
|
] }) }),
|
|
619
618
|
/* @__PURE__ */ d(
|
|
@@ -740,7 +739,7 @@ function Ar({
|
|
|
740
739
|
"aria-label": "Close Brand Studio",
|
|
741
740
|
className: "flex h-7 w-7 items-center justify-center rounded-control text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
742
741
|
onClick: w,
|
|
743
|
-
children: /* @__PURE__ */ r(
|
|
742
|
+
children: /* @__PURE__ */ r(De, { className: "h-3.5 w-3.5" })
|
|
744
743
|
}
|
|
745
744
|
)
|
|
746
745
|
] }),
|
|
@@ -749,7 +748,7 @@ function Ar({
|
|
|
749
748
|
/* @__PURE__ */ r(ie, { className: "h-3.5 w-3.5 text-destructive" }),
|
|
750
749
|
"Preview keeps the last valid draft"
|
|
751
750
|
] }) : /* @__PURE__ */ d(de, { children: [
|
|
752
|
-
/* @__PURE__ */ r(
|
|
751
|
+
/* @__PURE__ */ r(je, { className: "h-3.5 w-3.5 text-emerald-500" }),
|
|
753
752
|
"Draft is applied to the live dashboard preview"
|
|
754
753
|
] }) }),
|
|
755
754
|
/* @__PURE__ */ r("div", { className: "inline-flex h-7 items-center overflow-hidden rounded-control border border-border/70", children: ["light", "dark"].map((o) => /* @__PURE__ */ r(
|
|
@@ -767,13 +766,13 @@ function Ar({
|
|
|
767
766
|
)) })
|
|
768
767
|
] }),
|
|
769
768
|
E && /* @__PURE__ */ r("div", { className: "border-b border-destructive/20 bg-destructive/5 px-4 py-2 text-[12px] text-destructive", children: E }),
|
|
770
|
-
n ? /* @__PURE__ */ r("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ r(ce, { className: "h-4 w-4 animate-spin text-muted-foreground" }) }) : i ? /* @__PURE__ */ r("div", { className: "p-4 text-[13px] text-muted-foreground", children: i }) : p && s ? /* @__PURE__ */ d(
|
|
771
|
-
/* @__PURE__ */ r("div", { className: "shrink-0 px-4 pt-3", children: /* @__PURE__ */ d(
|
|
769
|
+
n ? /* @__PURE__ */ r("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ r(ce, { className: "h-4 w-4 animate-spin text-muted-foreground" }) }) : i ? /* @__PURE__ */ r("div", { className: "p-4 text-[13px] text-muted-foreground", children: i }) : p && s ? /* @__PURE__ */ d(Ie, { defaultValue: "style", className: "flex min-h-0 flex-1 flex-col", children: [
|
|
770
|
+
/* @__PURE__ */ r("div", { className: "shrink-0 px-4 pt-3", children: /* @__PURE__ */ d(Je, { variant: "underline", className: "w-full gap-5", children: [
|
|
772
771
|
/* @__PURE__ */ r(L, { value: "style", children: "Style" }),
|
|
773
772
|
/* @__PURE__ */ r(L, { value: "surfaces", children: "Surfaces" }),
|
|
774
773
|
/* @__PURE__ */ r(L, { value: "data", children: "Data" })
|
|
775
774
|
] }) }),
|
|
776
|
-
/* @__PURE__ */ d(
|
|
775
|
+
/* @__PURE__ */ d(Le, { className: "min-h-0 flex-1", children: [
|
|
777
776
|
/* @__PURE__ */ d($, { value: "style", className: "m-0 p-4", children: [
|
|
778
777
|
/* @__PURE__ */ r(
|
|
779
778
|
v,
|
|
@@ -839,7 +838,7 @@ function Ar({
|
|
|
839
838
|
/* @__PURE__ */ d(
|
|
840
839
|
v,
|
|
841
840
|
{
|
|
842
|
-
icon:
|
|
841
|
+
icon: $e,
|
|
843
842
|
title: "Typography",
|
|
844
843
|
description: "Fonts and density used by dashboard and workflow chrome.",
|
|
845
844
|
children: [
|
|
@@ -1037,7 +1036,7 @@ function Ar({
|
|
|
1037
1036
|
/* @__PURE__ */ d(
|
|
1038
1037
|
v,
|
|
1039
1038
|
{
|
|
1040
|
-
icon:
|
|
1039
|
+
icon: _e,
|
|
1041
1040
|
title: "Charts",
|
|
1042
1041
|
description: "Palette and semantic chart text/grid colors.",
|
|
1043
1042
|
children: [
|
|
@@ -1080,7 +1079,7 @@ function Ar({
|
|
|
1080
1079
|
/* @__PURE__ */ d(
|
|
1081
1080
|
v,
|
|
1082
1081
|
{
|
|
1083
|
-
icon:
|
|
1082
|
+
icon: Ue,
|
|
1084
1083
|
title: "Tables",
|
|
1085
1084
|
description: "All tables share this appearance.",
|
|
1086
1085
|
children: [
|
|
@@ -1202,7 +1201,7 @@ function v({
|
|
|
1202
1201
|
] })
|
|
1203
1202
|
] }),
|
|
1204
1203
|
/* @__PURE__ */ r("div", { className: "space-y-2", children: c }),
|
|
1205
|
-
/* @__PURE__ */ r(
|
|
1204
|
+
/* @__PURE__ */ r(Ve, { className: "mt-5 bg-border/60" })
|
|
1206
1205
|
] });
|
|
1207
1206
|
}
|
|
1208
1207
|
function sr({
|
|
@@ -1368,7 +1367,7 @@ function k({
|
|
|
1368
1367
|
] });
|
|
1369
1368
|
}
|
|
1370
1369
|
function lr(e) {
|
|
1371
|
-
const a =
|
|
1370
|
+
const a = We(e);
|
|
1372
1371
|
return a ? `#${G(a.r)}${G(a.g)}${G(a.b)}` : "#000000";
|
|
1373
1372
|
}
|
|
1374
1373
|
function G(e) {
|
|
@@ -1444,7 +1443,7 @@ function H({
|
|
|
1444
1443
|
}) {
|
|
1445
1444
|
return /* @__PURE__ */ d("div", { className: "flex h-8 items-center justify-between rounded-control border border-border/60 px-2", children: [
|
|
1446
1445
|
/* @__PURE__ */ r("span", { className: "text-[12px]", children: e }),
|
|
1447
|
-
/* @__PURE__ */ r(
|
|
1446
|
+
/* @__PURE__ */ r(Me, { size: "xs", checked: a, onCheckedChange: n })
|
|
1448
1447
|
] });
|
|
1449
1448
|
}
|
|
1450
1449
|
function ur(e) {
|
|
@@ -1465,7 +1464,7 @@ function br(e) {
|
|
|
1465
1464
|
}
|
|
1466
1465
|
export {
|
|
1467
1466
|
Ce as BRAND_STUDIO_PRESETS,
|
|
1468
|
-
|
|
1467
|
+
Rr as BrandStudioEditor,
|
|
1469
1468
|
nr as applyBrandStudioPreset,
|
|
1470
1469
|
j as buildAppearanceSpecFromDraft,
|
|
1471
1470
|
D as createBrandStudioDraft
|
package/dist/briefings/index.js
CHANGED
|
@@ -1,64 +1,63 @@
|
|
|
1
|
-
import "../chunks/temporal-
|
|
2
|
-
import "../chunks/validators-
|
|
1
|
+
import "../chunks/temporal-input-presentation-DoSniQj1.js";
|
|
2
|
+
import "../chunks/validators-hmfNNQz8.js";
|
|
3
3
|
import "../chunks/export-file-format-C-tJsxsf.js";
|
|
4
4
|
import "zod";
|
|
5
|
-
import "../chunks/
|
|
6
|
-
import "../chunks/matrix-operation-contract-C1G6AJNh.js";
|
|
5
|
+
import "../chunks/matrix-operation-contract-CpgLZ7E5.js";
|
|
7
6
|
import "../chunks/analytics-base-schemas-BUFUoO6G.js";
|
|
8
7
|
import "../value-format-preferences/index.js";
|
|
9
|
-
import { y as
|
|
8
|
+
import { y as g, H as l, a0 as B, C as m, B as c, A as d, I as T, z as E, D as I, M as A, X as h, i as p, Y as u, Z as C, n as b, l as F, m as D, N as S, k as _, P as N, f as R, e as y, Q as M, t as O, q as x, c as G, d as v, G as L, F as U, h as z, b as H, a as J, a2 as V, g as P, _ as q, T as X, a1 as K, U as Q, E as j, $ as k, r as W, j as Y, V as Z, W as $, o as w, J as ii, O as ei, L as ai, p as ri, s as ti, K as si, R as ni, S as oi } from "../chunks/index-DP_wQl0v.js";
|
|
10
9
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
g as BRIEFING_ARTIFACT_FORMATS,
|
|
11
|
+
l as BRIEFING_ATTACHMENT_FORMATS,
|
|
12
|
+
B as BRIEFING_ATTACHMENT_OMISSION_CODES,
|
|
13
|
+
m as BRIEFING_CONTENT_LIMITS,
|
|
14
|
+
c as BRIEFING_KIND,
|
|
15
|
+
d as BRIEFING_TEXT_LIMITS,
|
|
16
|
+
T as BriefingContractError,
|
|
17
|
+
E as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
|
|
18
|
+
I as DEFAULT_BRIEFING_SCHEDULE,
|
|
20
19
|
A as MAX_BRIEFING_ATTACHMENTS,
|
|
21
20
|
h as briefingAttachmentFileTraits,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
21
|
+
p as briefingAttachmentFormatLabel,
|
|
22
|
+
u as briefingAttachmentNeedsExportJob,
|
|
23
|
+
C as briefingAttachmentProduction,
|
|
24
|
+
b as briefingScheduleDayOccurs,
|
|
25
|
+
F as briefingScheduleMonths,
|
|
26
|
+
D as briefingScheduleShortMonths,
|
|
27
|
+
S as buildBriefingJobConfig,
|
|
28
|
+
_ as buildBriefingScheduleExpr,
|
|
29
|
+
N as buildCreateBriefingRequest,
|
|
30
|
+
R as buildDashboardTemporalSnapshotEntries,
|
|
31
|
+
y as buildMatrixDeliveryEnvelope,
|
|
32
|
+
M as buildUpdateBriefingRequest,
|
|
33
|
+
O as canCreateBriefingForUser,
|
|
34
|
+
x as canonicalBriefingMonthDays,
|
|
35
|
+
G as captureMatrixExport,
|
|
36
|
+
v as describeBriefingSchedule,
|
|
37
|
+
L as formatBriefingComparisonValues,
|
|
38
|
+
U as formatBriefingDisplayValue,
|
|
39
|
+
z as getBriefingCardAttachmentCapability,
|
|
40
|
+
H as getBriefingCardAttachmentFormats,
|
|
41
|
+
J as getBriefingCreationIntents,
|
|
42
|
+
V as getBriefingDisplayTypeLabel,
|
|
43
|
+
P as getBriefingPresentation,
|
|
44
|
+
q as getDefaultBriefingCardAttachmentFormat,
|
|
45
|
+
X as isBriefingArtifactFormat,
|
|
46
|
+
K as isBriefingAttachmentOmissionCode,
|
|
47
|
+
Q as isBriefingDeliveryChannel,
|
|
48
|
+
j as isBriefingNumericValue,
|
|
49
|
+
k as isBriefingTableExportCardType,
|
|
50
|
+
W as isEmailOnlyBriefingDelivery,
|
|
51
|
+
Y as isValidBriefingTimezone,
|
|
52
|
+
Z as matrixDeliveryPayloadSchema,
|
|
53
|
+
$ as matrixDeliveryQuerySchema,
|
|
54
|
+
w as nextBriefingScheduleDates,
|
|
55
|
+
ii as normalizeBriefingContentDocument,
|
|
56
|
+
ei as normalizeBriefingDraft,
|
|
57
|
+
ai as normalizeBriefingJobConfig,
|
|
58
|
+
ri as parseBriefingScheduleExpr,
|
|
59
|
+
ti as readBriefingOmittedAttachments,
|
|
60
|
+
si as validateBriefingContentDocument,
|
|
61
|
+
ni as validateBriefingDraft,
|
|
62
|
+
oi as validateBriefingJobConfig
|
|
64
63
|
};
|