react-semaphor 0.1.555 → 0.1.556

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.
Files changed (97) hide show
  1. package/dist/analytics-protocol/index.js +10 -10
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +438 -455
  5. package/dist/briefings/index.js +6 -6
  6. package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
  7. package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-C7Acww1T.js} +15 -15
  8. package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-7iZErWnR.js} +3 -3
  9. package/dist/chunks/comparison-window-caption-BseG5aOZ.js +1221 -0
  10. package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
  11. package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-ChuKjx27.js} +31 -33
  12. package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-BU6rE5kV.js} +1 -1
  13. package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-qrYd2zkN.js} +15 -15
  14. package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-BsapXI2H.js} +14 -14
  15. package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-CJqPqYnI.js} +5 -5
  16. package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-BNSprf5_.js} +12 -12
  17. package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-CjAdV-WG.js} +4603 -4687
  18. package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BTrqtFkh.js} +917 -987
  19. package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CJTJDCym.js} +4 -4
  20. package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-CTVf3dG3.js} +2904 -3102
  21. package/dist/chunks/{index-B2k6KtUN.js → index-B_vIRa-q.js} +12 -19
  22. package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
  23. package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-Cg0ioFGQ.js} +21 -21
  24. package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-yYibXSw1.js} +3 -3
  25. package/dist/chunks/{matrix-formatter-K2OVPJQI.js → matrix-formatter-C2kjsCDf.js} +44 -44
  26. package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-DEEauKXC.js} +1 -1
  27. package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-C1G6AJNh.js} +33 -33
  28. package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-BfcmwxM1.js} +4 -4
  29. package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
  30. package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +56 -0
  31. package/dist/chunks/pivot-result-identity-CWi5WrrY.js +77 -0
  32. package/dist/chunks/{raw-temporal-contract-WuXA8jBP.js → raw-temporal-contract-CjHaUIsE.js} +1 -1
  33. package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DWzLIHc3.js} +8 -8
  34. package/dist/chunks/{report-preferences-dialog-D_KyuEFx.js → report-preferences-dialog-D_wrbIQt.js} +17 -17
  35. package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-BgM-iNWB.js} +2 -2
  36. package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Df8V5QHW.js} +1415 -1567
  37. package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-VvXI6r03.js} +9 -9
  38. package/dist/chunks/{selection-reducer-yw_JgICP.js → selection-reducer-By4CSmEF.js} +1 -1
  39. package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-fejZmdq9.js} +49593 -56071
  40. package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-BuTCXe-S.js} +7 -7
  41. package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-B46EZIzX.js} +1 -1
  42. package/dist/chunks/{switch-B-UTI6v-.js → switch-Bq92UGId.js} +3 -3
  43. package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-noKl8-en.js} +1 -1
  44. package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-PpINOzw8.js} +3 -3
  45. package/dist/chunks/{temporal-bucket-C4rqmwaQ.js → temporal-bucket-DzyadxVY.js} +53 -53
  46. package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +879 -0
  47. package/dist/chunks/{token-types-DYECHYGH.js → token-types--0bgRCaO.js} +1 -1
  48. package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-Cz-ve64t.js} +7 -7
  49. package/dist/chunks/{validators-ClKLGDGZ.js → validators-CZo_H4E6.js} +305 -307
  50. package/dist/dashboard/index.js +2 -2
  51. package/dist/dashboard-authoring/index.js +60 -60
  52. package/dist/data-app-sdk/index.js +6 -6
  53. package/dist/data-app-sdk-adapters/index.js +3 -3
  54. package/dist/data-app-sdk-validation/index.js +6 -6
  55. package/dist/format-utils/index.js +207 -223
  56. package/dist/index.js +96 -97
  57. package/dist/layouts/index.js +1 -1
  58. package/dist/pdf-export-policy/index.js +9 -11
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/brand-studio/brand-studio-draft.d.ts +0 -3
  63. package/dist/types/brand-studio/index.d.ts +1 -1
  64. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
  65. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
  66. package/dist/types/index.js +27 -28
  67. package/dist/types/lib/api/exports-api.d.ts +1 -1
  68. package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
  69. package/dist/types/lib/charts/types.d.ts +2 -2
  70. package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
  71. package/dist/types/lib/document/document-edits.d.ts +1 -1
  72. package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
  73. package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
  74. package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
  75. package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
  76. package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
  77. package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
  78. package/dist/types/lib/types/common-types.d.ts +0 -7
  79. package/dist/types/lib/types/explorer-types.d.ts +1 -14
  80. package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
  81. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
  82. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
  83. package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
  84. package/dist/types/shared/format-utils/index.d.ts +0 -2
  85. package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
  86. package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
  87. package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
  88. package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
  89. package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
  90. package/package.json +2 -2
  91. package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
  92. package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
  93. package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
  94. package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
  95. package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
  96. package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
  97. package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
@@ -1,42 +0,0 @@
1
- var d = Object.defineProperty;
2
- var c = (e, r, t) => r in e ? d(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
- var i = (e, r, t) => c(e, typeof r != "symbol" ? r + "" : r, t);
4
- import { f } from "./temporal-bucket-C4rqmwaQ.js";
5
- class v extends Error {
6
- constructor(t, a) {
7
- super(`${t}: ${a}`);
8
- i(this, "deliveryBlocking", !0);
9
- this.code = t, this.name = "PivotHeaderPresentationError";
10
- }
11
- }
12
- function p(e) {
13
- var l;
14
- const r = e.mode ?? "formatted", t = e.members.map((o) => {
15
- var n;
16
- if (r === "canonical" || !o.temporalBucket)
17
- return o.value === null ? "" : String(o.value);
18
- const s = (n = e.resolveTemporalFormat) == null ? void 0 : n.call(e, o.fieldId);
19
- if (!s)
20
- throw new v(
21
- "missing_resolved_temporal_format",
22
- `Missing resolved temporal presentation for pivot field "${o.fieldId}"`
23
- );
24
- return f({
25
- value: o.value,
26
- metadata: o.temporalBucket,
27
- format: s
28
- });
29
- }), a = ((l = e.metricLabel) == null ? void 0 : l.trim()) || void 0;
30
- return {
31
- memberLabels: t,
32
- ...a ? { metricLabel: a } : {},
33
- flattenedLabel: [
34
- ...t,
35
- ...a ? [a] : []
36
- ].join(" / ")
37
- };
38
- }
39
- export {
40
- v as P,
41
- p
42
- };
@@ -1,94 +0,0 @@
1
- var y = Object.defineProperty;
2
- var c = (t, e, r) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var u = (t, e, r) => c(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { v as d } from "./metric-comparison-CYIt2F5X.js";
5
- function f(t) {
6
- return !!(t != null && t.isSubtotal && t.subtotalScope === "pivot-value");
7
- }
8
- function v(t) {
9
- var e;
10
- return t.expectedPivotFieldIds.length === 0 ? !0 : !!((e = t.classification) != null && e.isSubtotal && t.classification.subtotalScope === "grand-total");
11
- }
12
- class a extends Error {
13
- constructor(r) {
14
- super(`missing_pivot_member_identity: ${r}`);
15
- u(this, "deliveryBlocking", !0);
16
- u(this, "code", "missing_pivot_member_identity");
17
- this.name = "PivotResultIdentityError";
18
- }
19
- }
20
- function m(t) {
21
- const { identity: e, columnKey: r, expectedPivotFieldIds: i, allowPrefix: l = !1 } = t, s = t.allowEmpty ?? ((i == null ? void 0 : i.length) || 0) === 0;
22
- if (!e || typeof e != "object" || Array.isArray(e) || typeof e.metricId != "string" || !e.metricId || typeof e.metricAlias != "string" || !e.metricAlias || !Array.isArray(e.members))
23
- throw new a(
24
- `Physical pivot column "${r}" is missing stable metric or member identity.`
25
- );
26
- if (e.members.forEach((o, n) => {
27
- if (!o || typeof o != "object" || Array.isArray(o) || typeof o.fieldId != "string" || !o.fieldId || o.value !== null && typeof o.value != "string" || o.temporalBucket !== void 0 && !d(o.temporalBucket).ok)
28
- throw new a(
29
- `Physical pivot column "${r}" has invalid identity for member ${n}.`
30
- );
31
- if (i && o.fieldId !== i[n])
32
- throw new a(
33
- `Physical pivot column "${r}" has member "${o.fieldId}" at tuple position ${n}; expected "${i[n] || "no member"}".`
34
- );
35
- }), e.members.length === 0) {
36
- if (s) return e.members;
37
- throw new a(
38
- `Physical pivot column "${r}" is missing its required pivot tuple.`
39
- );
40
- }
41
- if (i && (!l && e.members.length !== i.length || e.members.length > i.length))
42
- throw new a(
43
- `Physical pivot column "${r}" has ${e.members.length} members; expected ${l ? "at most " : ""}${i.length}.`
44
- );
45
- return e.members;
46
- }
47
- function b(t, e) {
48
- t.forEach((r) => {
49
- var l, s, o;
50
- if (r.pivotIdentity === void 0) return;
51
- const i = (l = e.columnClassifications) == null ? void 0 : l[r.key];
52
- m({
53
- identity: r.pivotIdentity,
54
- columnKey: r.key,
55
- expectedPivotFieldIds: e.expectedPivotFieldIds,
56
- allowPrefix: ((s = e.allowPrefixForColumn) == null ? void 0 : s.call(e, r)) ?? f(i),
57
- allowEmpty: ((o = e.allowEmptyForColumn) == null ? void 0 : o.call(e, r)) ?? v({
58
- expectedPivotFieldIds: e.expectedPivotFieldIds,
59
- classification: i
60
- })
61
- });
62
- });
63
- }
64
- function w(t, e, r) {
65
- var l;
66
- const i = t == null ? void 0 : t.byRole;
67
- if (!(!i || typeof i != "object" || Array.isArray(i)))
68
- return (l = i[r]) == null ? void 0 : l[e];
69
- }
70
- function P(t, e) {
71
- if (!t) return;
72
- const r = t.byRole;
73
- if (!r || typeof r != "object" || Array.isArray(r))
74
- return;
75
- const i = Object.values(r).flatMap((s) => {
76
- const o = s == null ? void 0 : s[e];
77
- return o ? [o] : [];
78
- });
79
- if (i.length !== 1) return;
80
- const [l] = i;
81
- if (!(l.role === "metric" && Object.values(t.byMetricAlias ?? {}).some(
82
- (s) => s.role === l.role && s.rawKey === l.rawKey && s.outputKey === l.outputKey
83
- )))
84
- return l;
85
- }
86
- export {
87
- a as P,
88
- P as a,
89
- v as b,
90
- m as c,
91
- b as d,
92
- f as i,
93
- w as r
94
- };