react-semaphor 0.1.446 → 0.1.448

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 +8 -8
  2. package/dist/appearance/index.cjs +1 -1
  3. package/dist/appearance/index.js +1 -1
  4. package/dist/brand-studio/index.cjs +2 -2
  5. package/dist/brand-studio/index.js +9 -9
  6. package/dist/briefings/index.js +4 -4
  7. package/dist/chunks/{analyze-result-contract-DUv3QnMl.js → analyze-result-contract-T-0Ntzys.js} +1 -1
  8. package/dist/chunks/{braces-BdbUk_r9.js → braces-8TRlDwDw.js} +1 -1
  9. package/dist/chunks/{braces-BKimshER.cjs → braces-v55uLCAK.cjs} +1 -1
  10. package/dist/chunks/{catalog-field-grounding-AOGwWu0K.js → catalog-field-grounding-S2jKwKGD.js} +9 -9
  11. package/dist/chunks/{common-types-DFsDdpH7.js → common-types-B7Jk3Rtj.js} +5 -5
  12. package/dist/chunks/{dashboard-briefing-launcher-C2kEWFgy.cjs → dashboard-briefing-launcher-BbBD6r23.cjs} +1 -1
  13. package/dist/chunks/{dashboard-briefing-launcher-BpWq3shh.js → dashboard-briefing-launcher-DHAgK6LQ.js} +22 -22
  14. package/dist/chunks/dashboard-controls-Cq1L0Iaq.cjs +52 -0
  15. package/dist/chunks/dashboard-controls-D83FAKol.js +2409 -0
  16. package/dist/chunks/{dashboard-date-comparison-definition-BaYxjLi5.js → dashboard-date-comparison-definition-Ba-clViK.js} +1 -1
  17. package/dist/chunks/{dashboard-input-contract-BFpERluO.js → dashboard-input-contract-DSt8dGzP.js} +4 -4
  18. package/dist/chunks/{dashboard-json-0Etvlp57.js → dashboard-json-BumpAIpV.js} +11 -11
  19. package/dist/chunks/dashboard-json-MQsd_x4u.cjs +1 -0
  20. package/dist/chunks/{edit-dashboard-visual-0uKSZPPa.js → edit-dashboard-visual-BApnAJlf.js} +6956 -6868
  21. package/dist/chunks/edit-dashboard-visual-DDg6-670.cjs +177 -0
  22. package/dist/chunks/{editor-action-buttons-DpA5PdEo.js → editor-action-buttons-B5I-BUky.js} +41 -41
  23. package/dist/chunks/{editor-action-buttons-DKXO5aK7.cjs → editor-action-buttons-BW3qw_Og.cjs} +1 -1
  24. package/dist/chunks/{format-types-CZH5w1lo.js → format-types-DZGgYj39.js} +5 -5
  25. package/dist/chunks/{index-If0wlXGi.js → index-CJdxSyQq.js} +308 -308
  26. package/dist/chunks/{dashboard-ECv6p6DC.js → index-CxnEYRCF.js} +147536 -150481
  27. package/dist/chunks/{index-Dpm_VET4.cjs → index-DRlMUglg.cjs} +2 -2
  28. package/dist/chunks/index-zREDXi6s.cjs +1395 -0
  29. package/dist/chunks/{layout-grid-D5tYJg1-.js → layout-grid-CiubineE.js} +1 -1
  30. package/dist/chunks/{layout-grid-3-HWzEwU.cjs → layout-grid-xm8pqtx0.cjs} +1 -1
  31. package/dist/chunks/{metric-comparison-BJ_Qu1ZF.js → metric-comparison-97zHGEx5.js} +7 -7
  32. package/dist/chunks/{mouse-pointer-2-DXNw3_3o.js → mouse-pointer-2-BZvGk45-.js} +1 -1
  33. package/dist/chunks/{mouse-pointer-2-BOL92ext.cjs → mouse-pointer-2-DX4A_XZw.cjs} +1 -1
  34. package/dist/chunks/{palette-DW_l7Jr0.cjs → palette-BN-jYtaK.cjs} +1 -1
  35. package/dist/chunks/{palette-jqaAcwiQ.js → palette-Cp1hqZtm.js} +1 -1
  36. package/dist/chunks/{pivot-result-identity-B6QCWOSi.js → pivot-result-identity-CwJWpKI7.js} +3 -3
  37. package/dist/chunks/{pivot-result-lifecycle-BM3Pl-D1.js → pivot-result-lifecycle-BBabQ_da.js} +27 -27
  38. package/dist/chunks/{presentation-execution-CGlb7YZ6.js → presentation-execution-BLfPTGX_.js} +10 -10
  39. package/dist/chunks/report-preferences-dialog-BRGOibDO.cjs +1 -0
  40. package/dist/chunks/{report-preferences-dialog-CkZ2KHWX.js → report-preferences-dialog-lyC6PCs9.js} +6 -6
  41. package/dist/chunks/{report-runtime-context-Qzn11HQe.js → report-runtime-context-bCy3CVzK.js} +1 -1
  42. package/dist/chunks/{save-4_uMnE6s.cjs → save-3dYRmehL.cjs} +1 -1
  43. package/dist/chunks/{save-HCJjjzdX.js → save-DgMfP0j8.js} +1 -1
  44. package/dist/chunks/{search-DHZCro8B.js → search-BHsQIWBV.js} +1 -1
  45. package/dist/chunks/{search-6ZmeMq55.cjs → search-BqqhaMx9.cjs} +1 -1
  46. package/dist/chunks/{code-editor-B4gTfvc5.js → switch-BXet-Sno.js} +9406 -9303
  47. package/dist/chunks/switch-Cjk6G06r.cjs +138 -0
  48. package/dist/chunks/{temporal-bucket-authoring-BUZMuVca.js → temporal-bucket-authoring-CgOuakGW.js} +2 -2
  49. package/dist/chunks/{temporal-bucket-contract-B2bJ1oe4.js → temporal-bucket-contract-_F6vNhhH.js} +3 -3
  50. package/dist/chunks/{temporal-result-owner-Cb27SSG9.js → temporal-result-owner-6peubmhU.js} +3 -3
  51. package/dist/chunks/{token-types-DLo91nOf.js → token-types-BHR58aTy.js} +1 -1
  52. package/dist/chunks/{update-policy-eg59mQqv.js → update-policy-g0rCQ9BM.js} +9 -9
  53. package/dist/chunks/{validators-wZ2WlNHc.js → validators-Cs74WVie.js} +46 -46
  54. package/dist/chunks/x-B6ghREd2.cjs +31 -0
  55. package/dist/chunks/{index-xHCrHprY.js → x-CXDkqdur.js} +59 -59
  56. package/dist/dashboard/index.cjs +1 -1
  57. package/dist/dashboard/index.js +2 -2
  58. package/dist/dashboard-authoring/index.js +6 -6
  59. package/dist/data-app-builder/index.cjs +6 -6
  60. package/dist/data-app-builder/index.js +6 -6
  61. package/dist/data-app-codegen/index.js +2 -2
  62. package/dist/data-app-codegen-node/index.js +3 -3
  63. package/dist/data-app-sdk/index.cjs +1 -1
  64. package/dist/data-app-sdk/index.js +6 -6
  65. package/dist/data-app-sdk-adapters/index.js +2 -2
  66. package/dist/data-app-sdk-validation/index.js +4 -4
  67. package/dist/format-utils/index.cjs +3 -3
  68. package/dist/format-utils/index.js +172 -147
  69. package/dist/index.cjs +1 -1
  70. package/dist/index.js +16 -16
  71. package/dist/report-runtime-context/index.js +2 -2
  72. package/dist/style.css +1 -1
  73. package/dist/surfboard/index.cjs +1 -1
  74. package/dist/surfboard/index.js +3 -3
  75. package/dist/types/brand-studio.d.ts +2 -2
  76. package/dist/types/briefings.d.ts +14 -0
  77. package/dist/types/dashboard-assistant.d.ts +14 -0
  78. package/dist/types/dashboard-authoring.d.ts +14 -0
  79. package/dist/types/dashboard.d.ts +17 -2
  80. package/dist/types/data-app-builder.d.ts +2 -2
  81. package/dist/types/data-app-sdk.d.ts +1 -1
  82. package/dist/types/format-utils.d.ts +2 -0
  83. package/dist/types/index.cjs +1 -1
  84. package/dist/types/index.js +7 -7
  85. package/dist/types/main.d.ts +36 -19
  86. package/dist/types/shared.d.ts +14 -0
  87. package/dist/types/surfboard.d.ts +17 -2
  88. package/dist/types/types.d.ts +16 -0
  89. package/package.json +3 -4
  90. package/dist/chunks/code-editor-BYVorgOf.cjs +0 -138
  91. package/dist/chunks/dashboard-DGX9b3T-.cjs +0 -1402
  92. package/dist/chunks/dashboard-controls-DNoMwxMy.cjs +0 -36
  93. package/dist/chunks/dashboard-controls-DPLepxZy.js +0 -2237
  94. package/dist/chunks/dashboard-json-4LbKuMSm.cjs +0 -1
  95. package/dist/chunks/edit-dashboard-visual-C1uVqhI5.cjs +0 -182
  96. package/dist/chunks/index-jSrCwPQz.cjs +0 -31
  97. package/dist/chunks/report-preferences-dialog-CBMox_qt.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-DGX9b3T-.cjs"),r=require("../chunks/common-types-CQ6SHfLk.cjs"),o=require("../chunks/report-preferences-dialog-CBMox_qt.cjs");exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.Surfboard=e.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=r.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;exports.ReportPreferencesDialog=o.ReportPreferencesDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-zREDXi6s.cjs"),r=require("../chunks/common-types-CQ6SHfLk.cjs"),o=require("../chunks/report-preferences-dialog-BRGOibDO.cjs");exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.Surfboard=e.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=r.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;exports.ReportPreferencesDialog=o.ReportPreferencesDialog;
@@ -1,6 +1,6 @@
1
- import { a, b as o } from "../chunks/dashboard-ECv6p6DC.js";
2
- import { C as f, E } from "../chunks/common-types-DFsDdpH7.js";
3
- import { R as t } from "../chunks/report-preferences-dialog-CkZ2KHWX.js";
1
+ import { b as a, a as o } from "../chunks/index-CxnEYRCF.js";
2
+ import { C as f, E } from "../chunks/common-types-B7Jk3Rtj.js";
3
+ import { R as t } from "../chunks/report-preferences-dialog-lyC6PCs9.js";
4
4
  export {
5
5
  f as CONTROL_CARD_DEFAULT_VALUE,
6
6
  a as DisplayFormatPreferencesFields,
@@ -1,4 +1,4 @@
1
- import { default as default_2 } from 'react';
1
+ import { JSX } from 'react/jsx-runtime';
2
2
 
3
3
  declare const APPEARANCE_SPEC_VERSION: 1;
4
4
 
@@ -101,7 +101,7 @@ export declare type BrandStudioDraft = {
101
101
  };
102
102
  };
103
103
 
104
- export declare function BrandStudioEditor({ appearance, previewTitle, isLoading, isSaving, error, className, onDraftChange, onSave, onClearConfig, onCancel, }: BrandStudioEditorProps): default_2.JSX.Element;
104
+ export declare function BrandStudioEditor({ appearance, previewTitle, isLoading, isSaving, error, className, onDraftChange, onSave, onClearConfig, onCancel, }: BrandStudioEditorProps): JSX.Element;
105
105
 
106
106
  export declare type BrandStudioEditorProps = {
107
107
  appearance?: AppearanceSpec | null;
@@ -1783,6 +1783,11 @@ declare type PersistedInteraction = Interaction & {
1783
1783
 
1784
1784
  declare interface PivotByField extends Field {
1785
1785
  role: 'pivotby';
1786
+ /**
1787
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
1788
+ * so existing cards need no migration.
1789
+ */
1790
+ memberOrder?: PivotMemberOrder;
1786
1791
  /**
1787
1792
  * Query transport policy for grouped temporal pivot members. This is
1788
1793
  * projected into executable config and is never persisted authoring state.
@@ -1790,6 +1795,15 @@ declare interface PivotByField extends Field {
1790
1795
  dateValueMode?: 'canonical' | 'formatted';
1791
1796
  }
1792
1797
 
1798
+ /**
1799
+ * Persisted authoring intent for the order of generated pivot-member columns.
1800
+ *
1801
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
1802
+ * future governed semantic member order can become the default for `auto`
1803
+ * without changing cards that explicitly chose `asc` or `desc`.
1804
+ */
1805
+ declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
1806
+
1793
1807
  declare type PresentationScope = {
1794
1808
  dashboardId: string;
1795
1809
  cardId?: string;
@@ -924,6 +924,11 @@ declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'sta
924
924
 
925
925
  declare interface PivotByField extends Field {
926
926
  role: 'pivotby';
927
+ /**
928
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
929
+ * so existing cards need no migration.
930
+ */
931
+ memberOrder?: PivotMemberOrder;
927
932
  /**
928
933
  * Query transport policy for grouped temporal pivot members. This is
929
934
  * projected into executable config and is never persisted authoring state.
@@ -931,6 +936,15 @@ declare interface PivotByField extends Field {
931
936
  dateValueMode?: 'canonical' | 'formatted';
932
937
  }
933
938
 
939
+ /**
940
+ * Persisted authoring intent for the order of generated pivot-member columns.
941
+ *
942
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
943
+ * future governed semantic member order can become the default for `auto`
944
+ * without changing cards that explicitly chose `asc` or `desc`.
945
+ */
946
+ declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
947
+
934
948
  declare type PivotResultColumnClassification = {
935
949
  isSubtotal?: boolean;
936
950
  subtotalScope?: 'base' | 'pivot-value' | 'grand-total';
@@ -1942,6 +1942,11 @@ declare type PersistedInteraction = Interaction & {
1942
1942
 
1943
1943
  declare interface PivotByField extends Field {
1944
1944
  role: 'pivotby';
1945
+ /**
1946
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
1947
+ * so existing cards need no migration.
1948
+ */
1949
+ memberOrder?: PivotMemberOrder;
1945
1950
  /**
1946
1951
  * Query transport policy for grouped temporal pivot members. This is
1947
1952
  * projected into executable config and is never persisted authoring state.
@@ -1949,6 +1954,15 @@ declare interface PivotByField extends Field {
1949
1954
  dateValueMode?: 'canonical' | 'formatted';
1950
1955
  }
1951
1956
 
1957
+ /**
1958
+ * Persisted authoring intent for the order of generated pivot-member columns.
1959
+ *
1960
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
1961
+ * future governed semantic member order can become the default for `auto`
1962
+ * without changing cards that explicitly chose `asc` or `desc`.
1963
+ */
1964
+ declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
1965
+
1952
1966
  export declare function preferDashboardAuthoringSourceMetadata(current: SemaphorSourceRef, next: SemaphorSourceRef): SemaphorSourceRef;
1953
1967
 
1954
1968
  export declare function preferredDashboardAuthoringSource(sources: readonly SemaphorSourceRef[]): SemaphorSourceRef | undefined;
@@ -1,6 +1,7 @@
1
1
  import { ColumnSizingState } from '@tanstack/react-table';
2
2
  import { FontSpec } from 'chart.js';
3
- import { JSX } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { JSX as JSX_2 } from 'react';
4
5
 
5
6
  export declare type AggregateCalc = 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'COUNT' | 'COUNT_DISTINCT';
6
7
 
@@ -1944,7 +1945,7 @@ declare interface JoinPlan {
1944
1945
  export declare type KPICardProps = {
1945
1946
  card: TCard;
1946
1947
  isLoading?: boolean;
1947
- renderFilterInfo?: () => JSX.Element | null;
1948
+ renderFilterInfo?: () => JSX_2.Element | null;
1948
1949
  };
1949
1950
 
1950
1951
  export declare type LensInputValuesSnapshot = {
@@ -2130,6 +2131,11 @@ declare type PersistedInteraction = Interaction & {
2130
2131
 
2131
2132
  declare interface PivotByField extends Field {
2132
2133
  role: 'pivotby';
2134
+ /**
2135
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
2136
+ * so existing cards need no migration.
2137
+ */
2138
+ memberOrder?: PivotMemberOrder;
2133
2139
  /**
2134
2140
  * Query transport policy for grouped temporal pivot members. This is
2135
2141
  * projected into executable config and is never persisted authoring state.
@@ -2137,6 +2143,15 @@ declare interface PivotByField extends Field {
2137
2143
  dateValueMode?: 'canonical' | 'formatted';
2138
2144
  }
2139
2145
 
2146
+ /**
2147
+ * Persisted authoring intent for the order of generated pivot-member columns.
2148
+ *
2149
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
2150
+ * future governed semantic member order can become the default for `auto`
2151
+ * without changing cards that explicitly chose `asc` or `desc`.
2152
+ */
2153
+ declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
2154
+
2140
2155
  export declare type Placeholders = {
2141
2156
  /**
2142
2157
  * Placeholder for the card when there are no records to display.
@@ -1,4 +1,4 @@
1
- import * as ReactRuntime from 'react';
1
+ import { JSX } from 'react/jsx-runtime';
2
2
 
3
3
  export declare type ApiStatus = {
4
4
  ok: boolean;
@@ -169,7 +169,7 @@ export declare type BuilderTurnResult = {
169
169
  error?: string;
170
170
  };
171
171
 
172
- export declare function DataAppBuilder({ projectId, projectName, dataAppId, apiServiceUrl, adapters, }: DataAppBuilderProps): ReactRuntime.JSX.Element;
172
+ export declare function DataAppBuilder({ projectId, projectName, dataAppId, apiServiceUrl, adapters, }: DataAppBuilderProps): JSX.Element;
173
173
 
174
174
  export declare type DataAppBuilderAdapters = {
175
175
  readStatus?: (options: {
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { JSX } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
3
  import { ReactElement } from 'react';
4
4
  import { ReactNode } from 'react';
5
5
 
@@ -294,6 +294,8 @@ export declare type FlatTableExportTotalsRequest = {
294
294
  fieldId: string;
295
295
  role: 'detail' | 'groupby' | 'metric';
296
296
  behavior: FlatTableExportTotalsBehavior;
297
+ /** Stable identity for one authored metric instance. */
298
+ metricAlias?: string;
297
299
  label?: string;
298
300
  }>;
299
301
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/common-types-CQ6SHfLk.cjs"),l=require("../chunks/token-types-BdQ8kHBm.cjs"),E=require("../chunks/report-runtime-context-C8LZFsqV.cjs"),t=require("../chunks/pivot-result-identity-CDLRT-YG.cjs");exports.CALCULATED_FIELD_ENTITY_MARKER=e.CALCULATED_FIELD_ENTITY_MARKER;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.DATE_FORMAT_VALUES=e.DATE_FORMAT_VALUES;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.PivotMarkerEnum=e.PivotMarkerEnum;exports.getFieldRuntimeColumnName=e.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=e.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=e.hasCalculatedFormulaInputs;exports.isCalculatedDimension=e.isCalculatedDimension;exports.isCalculatedField=e.isCalculatedField;exports.isCalculatedMetric=e.isCalculatedMetric;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=l.DEFAULT_SEMANTIC_DOMAIN_ACCESS;exports.DEFAULT_CALENDAR_CONTEXT=E.DEFAULT_CALENDAR_CONTEXT;exports.resolveQueryColumnKeyMapEntry=t.resolveQueryColumnKeyMapEntry;exports.resolveUniqueQueryColumnKeyMapEntry=t.resolveUniqueQueryColumnKeyMapEntry;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/common-types-CQ6SHfLk.cjs"),l=require("../chunks/token-types-BdQ8kHBm.cjs"),t=require("../chunks/pivot-result-identity-CDLRT-YG.cjs"),E=require("../chunks/report-runtime-context-C8LZFsqV.cjs");exports.CALCULATED_FIELD_ENTITY_MARKER=e.CALCULATED_FIELD_ENTITY_MARKER;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.DATE_FORMAT_VALUES=e.DATE_FORMAT_VALUES;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.PivotMarkerEnum=e.PivotMarkerEnum;exports.getFieldRuntimeColumnName=e.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=e.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=e.hasCalculatedFormulaInputs;exports.isCalculatedDimension=e.isCalculatedDimension;exports.isCalculatedField=e.isCalculatedField;exports.isCalculatedMetric=e.isCalculatedMetric;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=l.DEFAULT_SEMANTIC_DOMAIN_ACCESS;exports.resolveQueryColumnKeyMapEntry=t.resolveQueryColumnKeyMapEntry;exports.resolveUniqueQueryColumnKeyMapEntry=t.resolveUniqueQueryColumnKeyMapEntry;exports.DEFAULT_CALENDAR_CONTEXT=E.DEFAULT_CALENDAR_CONTEXT;
@@ -1,12 +1,12 @@
1
- import { a as s, C as r, D as E, E as l, P as C, g as o, h as t, b as A, i as u, c as T, d as _ } from "../chunks/common-types-DFsDdpH7.js";
2
- import { D } from "../chunks/token-types-DLo91nOf.js";
3
- import { D as n } from "../chunks/report-runtime-context-Qzn11HQe.js";
4
- import { r as M, a as d } from "../chunks/pivot-result-identity-B6QCWOSi.js";
1
+ import { a as s, C as r, D as E, E as l, P as C, g as o, d as t, h as A, b as u, c as T, i as _ } from "../chunks/common-types-B7Jk3Rtj.js";
2
+ import { D } from "../chunks/token-types-BHR58aTy.js";
3
+ import { r as n, a as L } from "../chunks/pivot-result-identity-CwJWpKI7.js";
4
+ import { D as d } from "../chunks/report-runtime-context-bCy3CVzK.js";
5
5
  export {
6
6
  s as CALCULATED_FIELD_ENTITY_MARKER,
7
7
  r as CONTROL_CARD_DEFAULT_VALUE,
8
8
  E as DATE_FORMAT_VALUES,
9
- n as DEFAULT_CALENDAR_CONTEXT,
9
+ d as DEFAULT_CALENDAR_CONTEXT,
10
10
  D as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
11
11
  l as EMPTY_SELECTION,
12
12
  C as PivotMarkerEnum,
@@ -16,6 +16,6 @@ export {
16
16
  u as isCalculatedDimension,
17
17
  T as isCalculatedField,
18
18
  _ as isCalculatedMetric,
19
- M as resolveQueryColumnKeyMapEntry,
20
- d as resolveUniqueQueryColumnKeyMapEntry
19
+ n as resolveQueryColumnKeyMapEntry,
20
+ L as resolveUniqueQueryColumnKeyMapEntry
21
21
  };
@@ -1,11 +1,11 @@
1
1
  import { Chart as Chart_2 } from 'chart.js';
2
2
  import { ColumnSizingState } from '@tanstack/react-table';
3
3
  import { DateRange } from 'react-day-picker';
4
- import { default as default_2 } from 'react';
5
- import { default as default_3 } from 'react-grid-layout';
4
+ import { default as default_2 } from 'react-grid-layout';
6
5
  import { FetchStatus } from '@tanstack/query-core';
7
6
  import { FontSpec } from 'chart.js';
8
- import { JSX } from 'react';
7
+ import { JSX } from 'react/jsx-runtime';
8
+ import { JSX as JSX_2 } from 'react';
9
9
  import { JSXElementConstructor } from 'react';
10
10
  import { QueryObserverResult } from '@tanstack/query-core';
11
11
  import * as React_2 from 'react';
@@ -109,8 +109,8 @@ declare type Actions_2 = {
109
109
  setDocumentInputControlValue: (sheetId: string, inputId: string, value: unknown) => void;
110
110
  clearDocumentInputRuntime: (sheetId?: string) => void;
111
111
  setSelectedSheetId: (sheetId: string | null) => void;
112
- setSheetLayout: (sheetId: string, layout: default_3.Layout[]) => void;
113
- setSheetLayouts: (sheetId: string, layouts: default_3.Layouts) => void;
112
+ setSheetLayout: (sheetId: string, layout: default_2.Layout[]) => void;
113
+ setSheetLayouts: (sheetId: string, layouts: default_2.Layouts) => void;
114
114
  setSelectedCardId: (sheetId: string, cardId: string | null) => void;
115
115
  setSelectedFrameId: (frameId: string) => void;
116
116
  clearSelectedFrameId: () => void;
@@ -185,8 +185,8 @@ declare type Actions_2 = {
185
185
  getSelectedFrame: () => TFrame | undefined;
186
186
  getCardFrame: (cardId: string) => TFrame | undefined;
187
187
  getCardSheet: (cardId: string) => TSheet | undefined;
188
- getSelectedSheetLayout: () => default_3.Layout[] | undefined;
189
- getSelectedSheetLayouts: () => default_3.Layouts | undefined;
188
+ getSelectedSheetLayout: () => default_2.Layout[] | undefined;
189
+ getSelectedSheetLayouts: () => default_2.Layouts | undefined;
190
190
  handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
191
191
  addBaseQuery: (baseQuery: TBaseQuery) => void;
192
192
  removeBaseQuery: (baseQueryId: string) => void;
@@ -1597,7 +1597,7 @@ export declare function Combobox({ name, items, value, onChange, isLoading, isEr
1597
1597
  refetch: () => void;
1598
1598
  className?: string;
1599
1599
  showNone?: boolean;
1600
- }): React_2.JSX.Element;
1600
+ }): JSX.Element;
1601
1601
 
1602
1602
  declare type ComboBoxOption = {
1603
1603
  id: number | string;
@@ -3426,7 +3426,7 @@ export declare interface ExportJobStatus {
3426
3426
  * - Completed: Download button with file size
3427
3427
  * - Failed: Error message with dismiss option
3428
3428
  */
3429
- export declare function ExportNotificationItem({ export: exp, onRemove, }: ExportNotificationItemProps): default_2.JSX.Element;
3429
+ export declare function ExportNotificationItem({ export: exp, onRemove, }: ExportNotificationItemProps): JSX.Element;
3430
3430
 
3431
3431
  declare interface ExportNotificationItemProps {
3432
3432
  /** The export data to display */
@@ -3441,7 +3441,7 @@ declare interface ExportNotificationItemProps {
3441
3441
  * Displays all active and recent exports with their status,
3442
3442
  * progress, and download options.
3443
3443
  */
3444
- export declare function ExportNotificationList(): default_2.JSX.Element;
3444
+ export declare function ExportNotificationList(): JSX.Element;
3445
3445
 
3446
3446
  export declare type ExportStatus = 'pending' | 'processing' | 'chunking' | 'compacting' | 'completed' | 'failed' | 'cancelled';
3447
3447
 
@@ -3702,6 +3702,8 @@ declare type FlatTableExportTotalsRequest = {
3702
3702
  fieldId: string;
3703
3703
  role: 'detail' | 'groupby' | 'metric';
3704
3704
  behavior: FlatTableExportTotalsBehavior;
3705
+ /** Stable identity for one authored metric instance. */
3706
+ metricAlias?: string;
3705
3707
  label?: string;
3706
3708
  }>;
3707
3709
  };
@@ -4124,7 +4126,7 @@ export declare interface JoinPlan {
4124
4126
  export declare type KPICardProps = {
4125
4127
  card: TCard;
4126
4128
  isLoading?: boolean;
4127
- renderFilterInfo?: () => JSX.Element | null;
4129
+ renderFilterInfo?: () => JSX_2.Element | null;
4128
4130
  };
4129
4131
 
4130
4132
  export declare type LensInputValuesSnapshot = {
@@ -4734,7 +4736,7 @@ export declare function normalizeDashboardForDirtyCheck(dashboard: TDashboard |
4734
4736
  */
4735
4737
  export declare function NotificationBell({ variant, }: {
4736
4738
  variant?: 'outline' | 'ghost';
4737
- }): default_2.JSX.Element;
4739
+ }): JSX.Element;
4738
4740
 
4739
4741
  export declare type NumberAxisFormat = {
4740
4742
  decimalPlaces?: number;
@@ -4839,6 +4841,11 @@ export declare type PersistedInteraction = Interaction & {
4839
4841
 
4840
4842
  export declare interface PivotByField extends Field {
4841
4843
  role: 'pivotby';
4844
+ /**
4845
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
4846
+ * so existing cards need no migration.
4847
+ */
4848
+ memberOrder?: PivotMemberOrder;
4842
4849
  /**
4843
4850
  * Query transport policy for grouped temporal pivot members. This is
4844
4851
  * projected into executable config and is never persisted authoring state.
@@ -4887,6 +4894,15 @@ export declare enum PivotMarkerEnum {
4887
4894
  ALL = "__ALL__"
4888
4895
  }
4889
4896
 
4897
+ /**
4898
+ * Persisted authoring intent for the order of generated pivot-member columns.
4899
+ *
4900
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
4901
+ * future governed semantic member order can become the default for `auto`
4902
+ * without changing cards that explicitly chose `asc` or `desc`.
4903
+ */
4904
+ export declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
4905
+
4890
4906
  declare type PivotResultColumnClassification = {
4891
4907
  isSubtotal?: boolean;
4892
4908
  subtotalScope?: 'base' | 'pivot-value' | 'grand-total';
@@ -7466,6 +7482,7 @@ export declare function useCard(cardId: string): {
7466
7482
  visualKey: number;
7467
7483
  handleDatapointClick: (chart: Chart_2, datasetIndex: number, clickIndex: number, value: number) => void;
7468
7484
  cfg: any;
7485
+ isRetainingSourceResult: boolean;
7469
7486
  queryKey: string[];
7470
7487
  queryRequestPayload: Record<string, unknown> | undefined;
7471
7488
  pagination: PaginationMetadata | undefined;
@@ -7476,7 +7493,7 @@ export declare function useCard(cardId: string): {
7476
7493
  };
7477
7494
 
7478
7495
  export declare function useCardSummary(card: TCard, options?: UseCardSummaryOptions): {
7479
- data: NoInfer<SummaryResponse> | undefined;
7496
+ data: SummaryResponse | undefined;
7480
7497
  isLoading: boolean;
7481
7498
  isFetching: boolean;
7482
7499
  isError: boolean;
@@ -7508,7 +7525,7 @@ export declare function useDashboardById(dashboardId: string, options?: {
7508
7525
  }): UseQueryResult<any, Error>;
7509
7526
 
7510
7527
  export declare function useDashboardQuery(): {
7511
- data: NoInfer<{
7528
+ data: {
7512
7529
  initialReportContext: ReportRuntimeContext;
7513
7530
  dashboard: TDashboard;
7514
7531
  lenses: TLens[];
@@ -7518,11 +7535,11 @@ export declare function useDashboardQuery(): {
7518
7535
  assistantProfileId?: string;
7519
7536
  semanticExecutionPayload: SemanticExecutionPayload;
7520
7537
  organizationAppearance?: AppearanceSpec | null;
7521
- } | null> | undefined;
7538
+ } | null | undefined;
7522
7539
  isLoading: boolean;
7523
7540
  isFetching: boolean;
7524
7541
  isError: boolean;
7525
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<NoInfer<{
7542
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult< {
7526
7543
  initialReportContext: ReportRuntimeContext;
7527
7544
  dashboard: TDashboard;
7528
7545
  lenses: TLens[];
@@ -7532,7 +7549,7 @@ export declare function useDashboardQuery(): {
7532
7549
  assistantProfileId?: string;
7533
7550
  semanticExecutionPayload: SemanticExecutionPayload;
7534
7551
  organizationAppearance?: AppearanceSpec | null;
7535
- } | null>, Error>>;
7552
+ } | null, Error>>;
7536
7553
  dashboardIdToFetch: string | null;
7537
7554
  };
7538
7555
 
@@ -7542,12 +7559,12 @@ setState(nextStateOrUpdater: DashboardStore | ((state: WritableDraft<DashboardSt
7542
7559
  }>;
7543
7560
 
7544
7561
  export declare function useDashboardSummary(): {
7545
- data: NoInfer<SummaryResponse> | undefined;
7562
+ data: SummaryResponse | undefined;
7546
7563
  isLoading: boolean;
7547
7564
  isFetching: boolean;
7548
7565
  isError: boolean;
7549
7566
  error: Error | null;
7550
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<NoInfer<SummaryResponse>, Error>>;
7567
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<SummaryResponse, Error>>;
7551
7568
  refresh: UseMutateAsyncFunction<SummaryResponse, Error, void, unknown>;
7552
7569
  isRefreshing: boolean;
7553
7570
  applyAction: (action: SummaryAction) => Promise<void>;
@@ -1667,6 +1667,11 @@ declare type PersistedInteraction = Interaction & {
1667
1667
 
1668
1668
  declare interface PivotByField extends Field {
1669
1669
  role: 'pivotby';
1670
+ /**
1671
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
1672
+ * so existing cards need no migration.
1673
+ */
1674
+ memberOrder?: PivotMemberOrder;
1670
1675
  /**
1671
1676
  * Query transport policy for grouped temporal pivot members. This is
1672
1677
  * projected into executable config and is never persisted authoring state.
@@ -1674,6 +1679,15 @@ declare interface PivotByField extends Field {
1674
1679
  dateValueMode?: 'canonical' | 'formatted';
1675
1680
  }
1676
1681
 
1682
+ /**
1683
+ * Persisted authoring intent for the order of generated pivot-member columns.
1684
+ *
1685
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
1686
+ * future governed semantic member order can become the default for `auto`
1687
+ * without changing cards that explicitly chose `asc` or `desc`.
1688
+ */
1689
+ declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
1690
+
1677
1691
  declare interface QueryConfig {
1678
1692
  groupByColumns?: GroupByColumn[];
1679
1693
  pivotColumns?: GroupByColumn[];
@@ -1,6 +1,7 @@
1
1
  import { ColumnSizingState } from '@tanstack/react-table';
2
2
  import { FontSpec } from 'chart.js';
3
- import { JSX } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { JSX as JSX_2 } from 'react';
4
5
 
5
6
  export declare type AggregateCalc = 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'COUNT' | 'COUNT_DISTINCT';
6
7
 
@@ -1957,7 +1958,7 @@ declare interface JoinPlan {
1957
1958
  export declare type KPICardProps = {
1958
1959
  card: TCard;
1959
1960
  isLoading?: boolean;
1960
- renderFilterInfo?: () => JSX.Element | null;
1961
+ renderFilterInfo?: () => JSX_2.Element | null;
1961
1962
  };
1962
1963
 
1963
1964
  export declare type LensInputValuesSnapshot = {
@@ -2143,6 +2144,11 @@ declare type PersistedInteraction = Interaction & {
2143
2144
 
2144
2145
  declare interface PivotByField extends Field {
2145
2146
  role: 'pivotby';
2147
+ /**
2148
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
2149
+ * so existing cards need no migration.
2150
+ */
2151
+ memberOrder?: PivotMemberOrder;
2146
2152
  /**
2147
2153
  * Query transport policy for grouped temporal pivot members. This is
2148
2154
  * projected into executable config and is never persisted authoring state.
@@ -2150,6 +2156,15 @@ declare interface PivotByField extends Field {
2150
2156
  dateValueMode?: 'canonical' | 'formatted';
2151
2157
  }
2152
2158
 
2159
+ /**
2160
+ * Persisted authoring intent for the order of generated pivot-member columns.
2161
+ *
2162
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
2163
+ * future governed semantic member order can become the default for `auto`
2164
+ * without changing cards that explicitly chose `asc` or `desc`.
2165
+ */
2166
+ declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
2167
+
2153
2168
  export declare type Placeholders = {
2154
2169
  /**
2155
2170
  * Placeholder for the card when there are no records to display.
@@ -2285,6 +2285,8 @@ declare type FlatTableExportTotalsRequest = {
2285
2285
  fieldId: string;
2286
2286
  role: 'detail' | 'groupby' | 'metric';
2287
2287
  behavior: FlatTableExportTotalsBehavior;
2288
+ /** Stable identity for one authored metric instance. */
2289
+ metricAlias?: string;
2288
2290
  label?: string;
2289
2291
  }>;
2290
2292
  };
@@ -3057,6 +3059,11 @@ declare type PersistedInteraction = Interaction & {
3057
3059
 
3058
3060
  export declare interface PivotByField extends Field {
3059
3061
  role: 'pivotby';
3062
+ /**
3063
+ * Ordering rule for this field's discovered members. Omitted means `auto`,
3064
+ * so existing cards need no migration.
3065
+ */
3066
+ memberOrder?: PivotMemberOrder;
3060
3067
  /**
3061
3068
  * Query transport policy for grouped temporal pivot members. This is
3062
3069
  * projected into executable config and is never persisted authoring state.
@@ -3105,6 +3112,15 @@ export declare enum PivotMarkerEnum {
3105
3112
  ALL = "__ALL__"
3106
3113
  }
3107
3114
 
3115
+ /**
3116
+ * Persisted authoring intent for the order of generated pivot-member columns.
3117
+ *
3118
+ * `auto` is a distinct persisted value rather than a synonym for `asc` so a
3119
+ * future governed semantic member order can become the default for `auto`
3120
+ * without changing cards that explicitly chose `asc` or `desc`.
3121
+ */
3122
+ export declare type PivotMemberOrder = 'auto' | 'asc' | 'desc';
3123
+
3108
3124
  declare type PivotResultColumnClassification = {
3109
3125
  isSubtotal?: boolean;
3110
3126
  subtotalScope?: 'base' | 'pivot-value' | 'grand-total';
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.446",
8
+ "version": "0.1.448",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -224,7 +224,6 @@
224
224
  "lucide-react": "^0.453.0",
225
225
  "ms": "^2.1.3",
226
226
  "next-themes": "^0.4.4",
227
- "prism-react-renderer": "^2.4.1",
228
227
  "prismjs": "^1.30.0",
229
228
  "react-day-picker": "^9.9.0",
230
229
  "react-error-boundary": "^4.1.2",
@@ -243,8 +242,8 @@
243
242
  "zustand": "^5.0.9"
244
243
  },
245
244
  "peerDependencies": {
246
- "react": "^18.0.0 || ^19.0.0",
247
- "react-dom": "^18.0.0 || ^19.0.0"
245
+ "react": "^19.2.0",
246
+ "react-dom": "^19.2.0"
248
247
  },
249
248
  "peerDependenciesMeta": {
250
249
  "react": {