react-semaphor 0.1.608 → 0.1.609

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 (55) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/brand-studio/index.js +1 -1
  3. package/dist/briefings/index.js +1 -1
  4. package/dist/chunks/{appearance-provider-BBYTKSjL.js → appearance-provider-BW022_Qu.js} +105 -105
  5. package/dist/chunks/{assistant-chat-x3NCrm5n.js → assistant-chat-DAmFZEnD.js} +1 -1
  6. package/dist/chunks/{bookmark-impact-xCmo8x3V.js → bookmark-impact-BEVaXjug.js} +1 -1
  7. package/dist/chunks/{bookmark-state-BmbBu1th.js → bookmark-state-DnkzIsyw.js} +1 -1
  8. package/dist/chunks/{brand-3m_qSMyC.js → brand-BjC1mPjw.js} +1 -1
  9. package/dist/chunks/{card-filter-builder-CM3SZ4kO.js → card-filter-builder-BGIVEHmJ.js} +1 -1
  10. package/dist/chunks/{check-input-C7S2sNzB.js → check-input-qgwboKei.js} +1 -1
  11. package/dist/chunks/{currency-presentation-binding-s4PlA3Wu.js → currency-presentation-binding-ClrH_6Tq.js} +1 -1
  12. package/dist/chunks/{custom-visual-inputs-CUtxCe4T.js → custom-visual-inputs-CoAs_73N.js} +1 -1
  13. package/dist/chunks/{custom-visual-write-CH-k-4HE.js → custom-visual-write-BWApKrHe.js} +1 -1
  14. package/dist/chunks/{dashboard-BwuurlUI.js → dashboard-DbBgEesz.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CX7mCnPi.js → dashboard-briefing-launcher-DadG4ES9.js} +3 -3
  16. package/dist/chunks/{dashboard-controls-Bwjy9G1i.js → dashboard-controls-CyQg_GC1.js} +1 -1
  17. package/dist/chunks/{dashboard-json-B9lK28i0.js → dashboard-json-ZSAQQkcR.js} +1 -1
  18. package/dist/chunks/{dashboard-temporal-snapshot-CcndP6CF.js → dashboard-temporal-snapshot-BSTfqT29.js} +1 -1
  19. package/dist/chunks/{edit-dashboard-visual-BF3mfrWf.js → edit-dashboard-visual-DIF1fllI.js} +2 -2
  20. package/dist/chunks/{filter-reach-preview-DSH_k8AJ.js → filter-reach-preview-CfbwaLf4.js} +1 -1
  21. package/dist/chunks/{kpi-trend-rule-DDbguInc.js → kpi-trend-rule-B4ebKzNj.js} +1 -1
  22. package/dist/chunks/{layout-grid-Bx0jBVXj.js → layout-grid-Cs350bW-.js} +1 -1
  23. package/dist/chunks/{metric-formatting-DILSVxLq.js → metric-formatting-toJrRqu4.js} +1 -1
  24. package/dist/chunks/{palette-CZJ4ZCY9.js → palette-DpLPXjUd.js} +1 -1
  25. package/dist/chunks/{report-preferences-dialog-EQNoTych.js → report-preferences-dialog-DEfUYExu.js} +1 -1
  26. package/dist/chunks/resolve-dashboard-input-context-Dm4PD8Gx.js +8 -0
  27. package/dist/chunks/{sandbox-host-WJXxpvz7.js → sandbox-host-BqcLSoTV.js} +1 -1
  28. package/dist/chunks/{saved-dashboard-context-DQlA4Mg0.js → saved-dashboard-context-GjEJuDjj.js} +1 -1
  29. package/dist/chunks/{semaphor-ready-indicator-Cq3C2SNo.js → semaphor-ready-indicator-BViyPq5k.js} +111 -111
  30. package/dist/chunks/set-q-2M4nis.js +1 -0
  31. package/dist/chunks/{slider-C4jUvJtd.js → slider-C2nbml5r.js} +1 -1
  32. package/dist/chunks/stored-dashboard-CTwrNvBy.js +1 -0
  33. package/dist/chunks/{table-cell-text-DFHUGeG6.js → table-cell-text-DJe6I1G3.js} +1 -1
  34. package/dist/chunks/variable-draft-DAVLIY3l.js +1 -0
  35. package/dist/dashboard/index.js +1 -1
  36. package/dist/dashboard-authoring/index.js +1 -1
  37. package/dist/extensions/index.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/style.css +1 -1
  40. package/dist/surfboard/index.js +1 -1
  41. package/dist/types/index.js +1 -1
  42. package/dist/types/lib/dashboard-viewer/table-view.d.ts +6 -1
  43. package/dist/types/lib/types/explorer-types.d.ts +12 -0
  44. package/dist/types/shared/dashboard-authoring/card-sort-comparison.d.ts +13 -0
  45. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  46. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +12 -0
  47. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  48. package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +1 -0
  49. package/dist/types/shared/dashboard-viewer/table-settings.d.ts +8 -0
  50. package/dist/types/shared/usage-events/envelope.d.ts +2 -2
  51. package/package.json +1 -1
  52. package/dist/chunks/resolve-dashboard-input-context-B5yUS9ZM.js +0 -8
  53. package/dist/chunks/set-wWdhgHSh.js +0 -1
  54. package/dist/chunks/stored-dashboard-1x0q2cNx.js +0 -1
  55. package/dist/chunks/variable-draft-CwX-b6Fs.js +0 -1
@@ -1 +1 @@
1
- import{a,R as s,D as o}from"../chunks/report-preferences-dialog-EQNoTych.js";import{C as f,E as D}from"../chunks/bookmark-state-BmbBu1th.js";export{f as CONTROL_CARD_DEFAULT_VALUE,a as DisplayFormatPreferencesFields,D as EMPTY_SELECTION,s as ReportPreferencesDialog,o as Surfboard};
1
+ import{a,R as s,D as o}from"../chunks/report-preferences-dialog-DEfUYExu.js";import{C as f,E as D}from"../chunks/bookmark-state-DnkzIsyw.js";export{f as CONTROL_CARD_DEFAULT_VALUE,a as DisplayFormatPreferencesFields,D as EMPTY_SELECTION,s as ReportPreferencesDialog,o as Surfboard};
@@ -1 +1 @@
1
- import{B as t,z as r,C as l,E as o,V as i,j as n,c as d,g as m,f as u,b as c,e as E,d as C,a as T,y as p,x as D,o as A,h as I,q as _,w as F,v as S,m as b,n as L,l as f,p as N,k as y,s as R,u as h,i as g,r as x,t as M}from"../chunks/bookmark-state-BmbBu1th.js";import{C as V,D as w,L as z,d as U,g as k,e as B,h as K,f as v,c as Y,a as q,i as G,b as P,n as Q,s as W}from"../chunks/validators-U8IL8djK.js";import{D as J}from"../chunks/token-types-BM0mpZce.js";import{r as H,a as Z}from"../chunks/pivot-result-identity-DRhVJMsF.js";import{D as ee}from"../chunks/report-runtime-context-CkxgMKr6.js";const e=["concatenate","conditional-category","date-part","date-difference","null-to-zero","safe-ratio","nested-conditional","membership-test","uppercase","lowercase","trim-whitespace","replace-text","first-characters","character-count","starts-with","number-to-text","start-of-month","start-of-quarter","start-of-year","year-number","add-days","round-number","round-down","round-up","absolute-value","cap-maximum","floor-minimum","fill-blanks","null-if-zero","is-blank"];export{t as BOOKMARK_STATE_VERSION,r as BOOKMARK_VISIBILITIES,V as CALCULATED_FIELD_ENTITY_MARKER,e as CALCULATED_FIELD_TEMPLATE_IDS,l as CONTROL_CARD_DEFAULT_VALUE,w as DATE_FORMAT_VALUES,ee as DEFAULT_CALENDAR_CONTEXT,J as DEFAULT_SEMANTIC_DOMAIN_ACCESS,o as EMPTY_SELECTION,z as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,i as VIEWER_LIMITS,n as VIEWER_TABLE_SETTINGS_VERSION,d as collectDatasetNamesFromExplorerField,m as collectDatasetNamesFromFilterGroup,u as collectExecutionDatasetNamesFromExplorerField,c as collectPreferredDatasetNamesFromExplorerField,E as collectQualifiedDatasetNamesFromExplorerField,C as datasetRefFromSource,T as dependencyDisplayIdentity,U as getCalculatedFieldComputeStage,p as getCustomizableTableCardIds,k as getFieldRuntimeColumnName,D as getSortableTableCardIds,B as hasCalculatedFieldMarker,K as hasCalculatedFormulaInputs,A as hasColumnCustomization,v as hasSyntheticCalculatedFieldOwner,I as humanizeDatasetName,Y as inspectCalculatedField,q as isCalculatedDimension,G as isCalculatedMetric,P as isDerivedField,_ as isEmptyViewerTableSettings,F as isTableCardCustomizable,S as isTableCardSortable,b as measureJsonBytes,Q as normalizeCalculatedFieldRepresentation,L as normalizeTableColumnOrder,f as normalizeViewerTableSettings,N as parseBookmarkState,y as parseTableColumnId,R as parseViewerTableSettings,h as parseViewerTableSettingsMap,g as readBookmarkState,x as resolveFieldDatasetDependencies,H as resolveQueryColumnKeyMapEntry,Z as resolveUniqueQueryColumnKeyMapEntry,W as shouldDropInheritedCalculationAggregate,M as toTableColumnId};
1
+ import{B as s,A as r,C as l,E as o,V as i,j as n,c as d,g as m,f as u,b as E,e as c,d as C,a as T,z as p,y as A,q as D,h as I,s as _,x as F,w as S,m as b,n as L,o as f,p as y,k as N,u as R,v as h,i as g,r as x,l as M,t as O}from"../chunks/bookmark-state-DnkzIsyw.js";import{C as w,D as z,L as K,d as U,g as k,e as B,h as v,f as Y,c as q,a as G,i as P,b as Q,n as W,s as j}from"../chunks/validators-U8IL8djK.js";import{D as X}from"../chunks/token-types-BM0mpZce.js";import{r as Z,a as $}from"../chunks/pivot-result-identity-DRhVJMsF.js";import{D as ae}from"../chunks/report-runtime-context-CkxgMKr6.js";const e=["concatenate","conditional-category","date-part","date-difference","null-to-zero","safe-ratio","nested-conditional","membership-test","uppercase","lowercase","trim-whitespace","replace-text","first-characters","character-count","starts-with","number-to-text","start-of-month","start-of-quarter","start-of-year","year-number","add-days","round-number","round-down","round-up","absolute-value","cap-maximum","floor-minimum","fill-blanks","null-if-zero","is-blank"];export{s as BOOKMARK_STATE_VERSION,r as BOOKMARK_VISIBILITIES,w as CALCULATED_FIELD_ENTITY_MARKER,e as CALCULATED_FIELD_TEMPLATE_IDS,l as CONTROL_CARD_DEFAULT_VALUE,z as DATE_FORMAT_VALUES,ae as DEFAULT_CALENDAR_CONTEXT,X as DEFAULT_SEMANTIC_DOMAIN_ACCESS,o as EMPTY_SELECTION,K as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,i as VIEWER_LIMITS,n as VIEWER_TABLE_SETTINGS_VERSION,d as collectDatasetNamesFromExplorerField,m as collectDatasetNamesFromFilterGroup,u as collectExecutionDatasetNamesFromExplorerField,E as collectPreferredDatasetNamesFromExplorerField,c as collectQualifiedDatasetNamesFromExplorerField,C as datasetRefFromSource,T as dependencyDisplayIdentity,U as getCalculatedFieldComputeStage,p as getCustomizableTableCardIds,k as getFieldRuntimeColumnName,A as getSortableTableCardIds,B as hasCalculatedFieldMarker,v as hasCalculatedFormulaInputs,D as hasColumnCustomization,Y as hasSyntheticCalculatedFieldOwner,I as humanizeDatasetName,q as inspectCalculatedField,G as isCalculatedDimension,P as isCalculatedMetric,Q as isDerivedField,_ as isEmptyViewerTableSettings,F as isTableCardCustomizable,S as isTableCardSortable,b as measureJsonBytes,W as normalizeCalculatedFieldRepresentation,L as normalizeTableColumnOrder,f as normalizeViewerTableSettings,y as parseBookmarkState,N as parseTableColumnId,R as parseViewerTableSettings,h as parseViewerTableSettingsMap,g as readBookmarkState,x as resolveFieldDatasetDependencies,Z as resolveQueryColumnKeyMapEntry,$ as resolveUniqueQueryColumnKeyMapEntry,j as shouldDropInheritedCalculationAggregate,M as tableSortEntryKey,O as toTableColumnId};
@@ -1,5 +1,5 @@
1
1
  import { TCard } from '../types/common-types.js';
2
- import { CardConfig, DetailField, GroupByField, MetricField, QueryColumnKeyMap } from '../types/explorer-types.js';
2
+ import { CardConfig, ComparisonSortPart, DetailField, GroupByField, MetricField, QueryColumnKeyMap } from '../types/explorer-types.js';
3
3
  import { ComparisonMetadataMap } from '../types/query-types.js';
4
4
  import { SemaphorResultColumn } from '../../shared/analytics-protocol/index.js';
5
5
  import { TableColumnId, ViewerTableSettings } from '../../shared/dashboard-viewer/table-settings.js';
@@ -63,6 +63,11 @@ export type TableViewColumn = {
63
63
  readonly pinned: boolean;
64
64
  /** Can be pinned (PIN-2): an addressable base column; in a pivoted table, a row dimension only. */
65
65
  readonly pinnable: boolean;
66
+ /**
67
+ * A measure's "Δ" column in a table sorted in the query: the part a click
68
+ * sorts by, the number the cell shows first (table comparison sort TCS-D2).
69
+ */
70
+ readonly comparisonSortPart?: ComparisonSortPart;
66
71
  };
67
72
  /** A base column with an id: the columns a viewer's sort and widths address. */
68
73
  export declare function isAddressableBaseColumn(column: Pick<TableViewColumn, 'part' | 'columnId'>): column is Pick<TableViewColumn, 'part'> & {
@@ -401,9 +401,21 @@ export declare function hasCalculatedFieldMarker(field: Pick<Field, 'entityName'
401
401
  * the historical `calculated_fields` namespace.
402
402
  */
403
403
  export declare function hasSyntheticCalculatedFieldOwner(field: Partial<Pick<Field, 'entityName' | 'entityId' | 'qualifiedEntityName'>> | null | undefined): boolean;
404
+ /**
405
+ * Which output of a compared measure a sort ranks by (table comparison sort
406
+ * TCS-D1): `change` is current − previous, `percentChange` that change over
407
+ * |previous|, with `evaluateMetricComparison`'s arithmetic.
408
+ */
409
+ export type ComparisonSortPart = 'change' | 'percentChange';
404
410
  export interface SortByField extends Field {
405
411
  role: 'sortby';
406
412
  direction: 'asc' | 'desc';
413
+ /**
414
+ * Sorts by the measure's comparison instead of its value: the "Δ" column.
415
+ * Absent means the value, as every sort before it. A run without a
416
+ * comparison for the measure sorts by its value (TCS-D6).
417
+ */
418
+ comparisonPart?: ComparisonSortPart;
407
419
  }
408
420
  /**
409
421
  * Persisted authoring intent for the order of generated pivot-member columns.
@@ -0,0 +1,13 @@
1
+ import { TCard } from '../../lib/types/common-types.js';
2
+ import { ComparisonSortPart, SortByField } from '../../lib/types/explorer-types.js';
3
+ /**
4
+ * Whether a card's sort entry can rank its rows by a measure's change
5
+ * (table comparison sort TCS-D2, TCS-D7): a config Table that isn't pivoted,
6
+ * sorting by a measure whose comparison isn't off (`measureComparisonStateOn`). A measure without
7
+ * its own comparison follows the Date filter's; a run without one sorts by
8
+ * the value (TCS-D6). The one rule the editor's sort pill and the MCP's card
9
+ * order both apply.
10
+ */
11
+ export declare function sortCanRankByChange(card: Pick<TCard, 'type' | 'config' | 'sql' | 'preferences'>, sort: SortByField): boolean;
12
+ /** A sort's words for its part: "Change in Revenue", "% change in Revenue". */
13
+ export declare function comparisonSortLabel(part: ComparisonSortPart, measureLabel: string): string;
@@ -278,6 +278,7 @@ export declare const COLUMN_KEY_CLASSES: {
278
278
  };
279
279
  sort: {
280
280
  readonly direction: "query";
281
+ readonly comparisonPart: "query";
281
282
  readonly id: "presentation";
282
283
  readonly name: "query";
283
284
  readonly label: "presentation";
@@ -1255,6 +1255,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1255
1255
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1256
1256
  }>]>;
1257
1257
  direction: z.ZodEnum<["asc", "desc"]>;
1258
+ part: z.ZodOptional<z.ZodEnum<["change", "percentChange"]>>;
1258
1259
  }, "strict", z.ZodTypeAny, {
1259
1260
  field: string | {
1260
1261
  name: string;
@@ -1272,6 +1273,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1272
1273
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1273
1274
  };
1274
1275
  direction: "asc" | "desc";
1276
+ part?: "change" | "percentChange" | undefined;
1275
1277
  }, {
1276
1278
  field: string | {
1277
1279
  name: string;
@@ -1289,6 +1291,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1289
1291
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1290
1292
  };
1291
1293
  direction: "asc" | "desc";
1294
+ part?: "change" | "percentChange" | undefined;
1292
1295
  }>>;
1293
1296
  limit: z.ZodOptional<z.ZodNumber>;
1294
1297
  }, "strict", z.ZodTypeAny, {
@@ -1471,6 +1474,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1471
1474
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1472
1475
  };
1473
1476
  direction: "asc" | "desc";
1477
+ part?: "change" | "percentChange" | undefined;
1474
1478
  } | undefined;
1475
1479
  dateField?: string | {
1476
1480
  name: string;
@@ -1681,6 +1685,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1681
1685
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1682
1686
  };
1683
1687
  direction: "asc" | "desc";
1688
+ part?: "change" | "percentChange" | undefined;
1684
1689
  } | undefined;
1685
1690
  dateField?: string | {
1686
1691
  name: string;
@@ -2756,6 +2761,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
2756
2761
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2757
2762
  }>]>;
2758
2763
  direction: z.ZodEnum<["asc", "desc"]>;
2764
+ part: z.ZodOptional<z.ZodEnum<["change", "percentChange"]>>;
2759
2765
  }, "strict", z.ZodTypeAny, {
2760
2766
  field: string | {
2761
2767
  name: string;
@@ -2773,6 +2779,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
2773
2779
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2774
2780
  };
2775
2781
  direction: "asc" | "desc";
2782
+ part?: "change" | "percentChange" | undefined;
2776
2783
  }, {
2777
2784
  field: string | {
2778
2785
  name: string;
@@ -2790,6 +2797,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
2790
2797
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2791
2798
  };
2792
2799
  direction: "asc" | "desc";
2800
+ part?: "change" | "percentChange" | undefined;
2793
2801
  }>>>;
2794
2802
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2795
2803
  connectionId: z.ZodOptional<z.ZodString>;
@@ -2990,6 +2998,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
2990
2998
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2991
2999
  };
2992
3000
  direction: "asc" | "desc";
3001
+ part?: "change" | "percentChange" | undefined;
2993
3002
  } | null | undefined;
2994
3003
  dateField?: string | {
2995
3004
  name: string;
@@ -3216,6 +3225,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
3216
3225
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
3217
3226
  };
3218
3227
  direction: "asc" | "desc";
3228
+ part?: "change" | "percentChange" | undefined;
3219
3229
  } | null | undefined;
3220
3230
  dateField?: string | {
3221
3231
  name: string;
@@ -4703,6 +4713,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4703
4713
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
4704
4714
  };
4705
4715
  direction: "asc" | "desc";
4716
+ part?: "change" | "percentChange" | undefined;
4706
4717
  } | null | undefined;
4707
4718
  dateField?: string | {
4708
4719
  name: string;
@@ -5042,6 +5053,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5042
5053
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5043
5054
  };
5044
5055
  direction: "asc" | "desc";
5056
+ part?: "change" | "percentChange" | undefined;
5045
5057
  } | null | undefined;
5046
5058
  dateField?: string | {
5047
5059
  name: string;
@@ -1,4 +1,5 @@
1
1
  export * from './comparison-document-migration.js';
2
+ export * from './card-sort-comparison.js';
2
3
  export * from './temporal-result-owner.js';
3
4
  export * from './automatic-grain.js';
4
5
  export * from './detail-date-presentation.js';
@@ -110,6 +110,7 @@ export declare const SHELF_FIELD_KEYS: {
110
110
  readonly semanticComparisonPolarity: "shelf";
111
111
  readonly parameters: "shelf";
112
112
  readonly direction: "shelf";
113
+ readonly comparisonPart: "shelf";
113
114
  readonly grainMode: "shelf";
114
115
  };
115
116
  /** The dialog's draft for a saved variable. */
@@ -1,4 +1,5 @@
1
1
  import { TCard, TDashboard } from '../../lib/types/common-types.js';
2
+ import { ComparisonSortPart } from '../../lib/types/explorer-types.js';
2
3
  export declare const VIEWER_LIMITS: {
3
4
  readonly bookmarksPerViewerPerDashboard: 20;
4
5
  readonly bookmarkNameMaxChars: 100;
@@ -44,7 +45,14 @@ export declare function parseTableColumnId(value: string): TableColumnIdentity |
44
45
  export type TableSortEntry = {
45
46
  readonly columnId: TableColumnId;
46
47
  readonly direction: 'asc' | 'desc';
48
+ /**
49
+ * A measure sorted by its comparison, its "Δ" column (table comparison
50
+ * sort TCS-D1): the measure's id with the part. Absent: the column's value.
51
+ */
52
+ readonly comparisonPart?: ComparisonSortPart;
47
53
  };
54
+ /** One sort per column and part: a measure can sort by its value and by its change. */
55
+ export declare function tableSortEntryKey(entry: Pick<TableSortEntry, 'columnId' | 'comparisonPart'>): string;
48
56
  /**
49
57
  * One viewer's choices for one table card. Sparse and normalized: a field that
50
58
  * is empty or equals the author's is omitted, and settings equal to the
@@ -91,9 +91,9 @@ export declare const usageEventEnvelopeSchema: z.ZodObject<{
91
91
  message: string;
92
92
  } | null;
93
93
  surface: "api" | "embed" | "console" | "mcp" | "public_link" | "scheduler" | "pdf_renderer";
94
- category: "runtime" | "usage" | "delivery" | "agent";
95
94
  card_id: string | null;
96
95
  sheet_id: string | null;
96
+ category: "runtime" | "usage" | "delivery" | "agent";
97
97
  connection_id: string | null;
98
98
  outcome: "cancelled" | "failed" | "timed_out" | "succeeded" | null;
99
99
  domain_id: string | null;
@@ -120,9 +120,9 @@ export declare const usageEventEnvelopeSchema: z.ZodObject<{
120
120
  message: string;
121
121
  } | null;
122
122
  surface: "api" | "embed" | "console" | "mcp" | "public_link" | "scheduler" | "pdf_renderer";
123
- category: "runtime" | "usage" | "delivery" | "agent";
124
123
  card_id: string | null;
125
124
  sheet_id: string | null;
125
+ category: "runtime" | "usage" | "delivery" | "agent";
126
126
  connection_id: string | null;
127
127
  outcome: "cancelled" | "failed" | "timed_out" | "succeeded" | null;
128
128
  domain_id: string | null;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.608",
8
+ "version": "0.1.609",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",