react-semaphor 0.1.600 → 0.1.602

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 (83) hide show
  1. package/dist/analytics-protocol/index.js +9 -9
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +48 -45
  5. package/dist/chunks/{assistant-chat-BULOkG9j.js → assistant-chat-BWF3GYip.js} +12 -12
  6. package/dist/chunks/{bookmark-impact-kdvXke8n.js → bookmark-impact-BF3iRx5a.js} +3 -3
  7. package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-CBSTdW6q.js} +4 -4
  8. package/dist/chunks/{card-filter-builder-CSCdSQQy.js → card-filter-builder-B8XHwMY6.js} +394 -394
  9. package/dist/chunks/comparison-window-caption-W83qB4V5.js +741 -0
  10. package/dist/chunks/{dashboard-y9ON19ge.js → dashboard-DG5EIYYB.js} +1 -1
  11. package/dist/chunks/{dashboard-briefing-launcher-9YwUclHA.js → dashboard-briefing-launcher-CBSrhyWZ.js} +727 -718
  12. package/dist/chunks/{dashboard-controls-O6PNXMCp.js → dashboard-controls-D6ECO4N1.js} +15 -15
  13. package/dist/chunks/{dashboard-json-Bxf91TYq.js → dashboard-json-DrJftBSL.js} +4 -4
  14. package/dist/chunks/{dates-DPTbpNxK.js → dates-Bz-qM5px.js} +10 -10
  15. package/dist/chunks/{edit-dashboard-visual-CKwaW8H_.js → edit-dashboard-visual-BDYAJIbb.js} +1569 -1548
  16. package/dist/chunks/filter-line-BXT6y303.js +703 -0
  17. package/dist/chunks/{filter-reach-copy-ClzNcNhP.js → filter-reach-copy-BukhZmzm.js} +1688 -1806
  18. package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-D3-bf3_b.js} +6 -6
  19. package/dist/chunks/{index-CRo5--Y6.js → index-BW0yozjs.js} +386 -360
  20. package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-Ds0diMeY.js} +1 -1
  21. package/dist/chunks/{matrix-analytical-definition-i9PQY066.js → matrix-analytical-definition-CgQgVeeI.js} +35 -35
  22. package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-DSBIIudt.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract--DkNCOzd.js} +517 -514
  24. package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-zMylnIkc.js} +3 -3
  25. package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-CX8pao1j.js} +1 -1
  26. package/dist/chunks/{palette-DFIFf_-m.js → palette-CuA0HlzF.js} +1 -1
  27. package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C8KL7hPx.js} +14 -14
  28. package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-C1AOH1PS.js} +1 -1
  29. package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-E416F-0L.js} +16 -16
  30. package/dist/chunks/{report-preferences-dialog-DiDsYpng.js → report-preferences-dialog-CbuVNDGi.js} +13 -13
  31. package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-E7USjN7E.js} +1 -1
  32. package/dist/chunks/{resolve-dashboard-input-context-BAv33KGg.js → resolve-dashboard-input-context-CULCE_hM.js} +8419 -7054
  33. package/dist/chunks/{save-CWQ02kHo.js → save-BKHlDONy.js} +1 -1
  34. package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-C1WlOx5z.js} +24 -24
  35. package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-ifT8JCXS.js} +1 -1
  36. package/dist/chunks/{semaphor-ready-indicator-1PRI9Yh2.js → semaphor-ready-indicator-CBIRcDWs.js} +33810 -32067
  37. package/dist/chunks/{shelf-drop-preview-context-BLk5Nc6K.js → shelf-drop-preview-context-xR69SMA8.js} +53 -53
  38. package/dist/chunks/{stored-dashboard-xhYYKBsO.js → stored-dashboard-BuM8vnWf.js} +679 -657
  39. package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Bt9ZNre8.js} +2 -2
  40. package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-DVljtHkG.js} +1 -1
  41. package/dist/chunks/{token-types-CnlEiAdS.js → token-types-D_xKgyVS.js} +1 -1
  42. package/dist/chunks/{upload-DsqUSS8l.js → upload-Dll_M7XQ.js} +1 -1
  43. package/dist/chunks/{validators-D2Hm57lJ.js → validators-ClWHpYql.js} +80 -80
  44. package/dist/chunks/{variable-draft-DcKj8T1b.js → variable-draft-CDGGl53R.js} +27 -28
  45. package/dist/dashboard/index.js +2 -2
  46. package/dist/dashboard-authoring/index.js +3086 -2573
  47. package/dist/format-utils/index.js +238 -237
  48. package/dist/index.js +71 -73
  49. package/dist/report-runtime-context/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +2 -2
  52. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  53. package/dist/types/briefings/attachments.d.ts +45 -4
  54. package/dist/types/briefings/index.d.ts +1 -1
  55. package/dist/types/components/dashboard/dashboard-web-component.d.ts +7 -0
  56. package/dist/types/index.js +5 -5
  57. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
  58. package/dist/types/lib/export-utils.d.ts +72 -0
  59. package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
  60. package/dist/types/lib/query-context/assemble-card-query.d.ts +6 -1
  61. package/dist/types/lib/stores/dashboard-store.d.ts +30 -0
  62. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
  63. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
  64. package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
  65. package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
  66. package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
  67. package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
  68. package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
  69. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +144 -2
  70. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +21 -2
  71. package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
  72. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
  73. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
  74. package/dist/types/shared/dashboard-authoring/index.d.ts +10 -1
  75. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +133 -0
  76. package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
  77. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +18 -5
  78. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
  79. package/dist/types/shared/usage-events/details.d.ts +2 -2
  80. package/dist/types/shared/usage-events/envelope.d.ts +2 -2
  81. package/package.json +1 -1
  82. package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
  83. package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
@@ -0,0 +1,133 @@
1
+ import { TCard, TDashboard } from '../../../lib/types/common-types.js';
2
+ import { Field } from '../../../lib/types/explorer-types.js';
3
+ import { OperationFailure, OperationOutcome } from './card-operations.js';
4
+ /**
5
+ * A dashboard field and every copy of it, the one owner (calculated fields one
6
+ * core MC-D10): `calculatedField.add` appends a definition to
7
+ * `dashboard.calculatedFields`; `calculatedField.update` replaces it and
8
+ * rewrites every copy with its identity key (on every card's shelves, card
9
+ * filters and inline filters, and in dashboard filters' and inputs'
10
+ * `fieldMeta`), keeping each copy's own place (id, alias, role, aggregate,
11
+ * sort, format, label overrides); `calculatedField.remove` is refused while a
12
+ * copy remains, naming the cards and filters. The editor's dialog, the MCP
13
+ * resolver and the watch page apply these; nothing else writes the list.
14
+ */
15
+ export type CalculatedFieldOperation = {
16
+ op: 'calculatedField.add';
17
+ field: Field;
18
+ } | {
19
+ op: 'calculatedField.update';
20
+ key: string;
21
+ field: Field;
22
+ } | {
23
+ op: 'calculatedField.remove';
24
+ key: string;
25
+ /** The card open in the editor when the author removed it: its remaining copies (a sort, a filter) leave with the field at the commit. */
26
+ cardId?: string;
27
+ };
28
+ /** Where a dashboard field is used: the cards whose columns or filters copy it, and the dashboard filters. */
29
+ export type DashboardFieldUsage = {
30
+ cards: Array<{
31
+ cardId: string;
32
+ title?: string;
33
+ }>;
34
+ filters: Array<{
35
+ filterId: string;
36
+ label?: string;
37
+ }>;
38
+ /** The dashboard's other calculated fields whose formulas read this one (an input, at any depth). */
39
+ fields: Array<{
40
+ name: string;
41
+ label?: string;
42
+ }>;
43
+ };
44
+ /** Whether anything on the dashboard uses the field: a card, a filter or another field's formula. */
45
+ export declare const isCalculatedFieldInUse: (usage: DashboardFieldUsage) => boolean;
46
+ /**
47
+ * The cards, dashboard filters and fields that copy the field with this
48
+ * identity key; with `holds`, only those whose copy it accepts (a stage or
49
+ * type change counts the copies still built for the old shape).
50
+ */
51
+ export declare function calculatedFieldUsage(dashboard: TDashboard, key: string, holds?: (copy: Field) => boolean): DashboardFieldUsage;
52
+ /** The one wording of a removal refused while the field is used (MC-INV-2). */
53
+ export declare function calculatedFieldInUseMessage(field: Field, usage: DashboardFieldUsage): string;
54
+ export declare function addCalculatedField(dashboard: TDashboard, field: Field): OperationOutcome;
55
+ /**
56
+ * The refusal an update gets when it changes what a use is built for: a
57
+ * dimension's output type (its filters and their selections are of that
58
+ * type), or a measure's formula moving between per row and over aggregates
59
+ * (ledger P4-08: a card aggregates a per-row formula and nothing over one
60
+ * with its own aggregates). A use counts while its copy holds the old type
61
+ * or stage it was placed with (one saved without it: the old formula); one
62
+ * placed from this change or a later queued one holds the new (ledger P4-37,
63
+ * P4-43, P4-46). The one rule, for the update, the commit and the editor's check
64
+ * before it (`simulateCalculatedFieldOperations`).
65
+ */
66
+ export declare function stageChangeRefusal(dashboard: TDashboard, key: string, previous: Field, definition: Field): OperationFailure | undefined;
67
+ export declare function updateCalculatedField(dashboard: TDashboard, key: string, field: Field): OperationOutcome;
68
+ export declare function removeCalculatedField(dashboard: TDashboard, key: string): OperationOutcome;
69
+ export declare function applyCalculatedFieldOperation(dashboard: TDashboard, operation: CalculatedFieldOperation): OperationOutcome;
70
+ /**
71
+ * The definitions a dashboard needs for the copies its cards bring (MC-D19):
72
+ * a dashboard field for every dashboard copy whose identity key the dashboard
73
+ * lacks, built from the copy itself (a copy holds its whole formula). In
74
+ * release 1 frozen copies are left alone (`frozen: false`); the backfill
75
+ * passes `frozen: true` for the frozen copies it doesn't turn into domain
76
+ * references. Library visuals store no definitions list.
77
+ */
78
+ export declare function adoptCalculatedFields(dashboard: TDashboard, cards: readonly TCard[], options: {
79
+ frozen: boolean;
80
+ newId?: () => string;
81
+ }): TDashboard;
82
+ /**
83
+ * The operations that turn one dashboard field list into another, by
84
+ * identity key, in order: removals, changes, then additions. The editor's
85
+ * field list computes the list it wants; the store writes it through these
86
+ * (MC-D10, MC-D11), so the write merges with the dashboard as it is.
87
+ */
88
+ export declare function calculatedFieldListOperations(before: readonly Field[], after: readonly Field[]): CalculatedFieldOperation[];
89
+ /** One problem a dashboard field list has, in words safe to show (release 1's save checks, MC-D12). */
90
+ export type CalculatedFieldListIssue = {
91
+ name: string;
92
+ message: string;
93
+ };
94
+ /**
95
+ * Release 1's save checks of `dashboard.calculatedFields` (MC-D12): identity
96
+ * keys and names unique, every `{field_N}` has its input, every input is
97
+ * used, a role and a data type on each. Reads only the list.
98
+ */
99
+ export declare function checkCalculatedFieldList(fields: readonly Field[] | undefined): CalculatedFieldListIssue[];
100
+ /**
101
+ * Whether operations the open card's edit makes would apply: they are tried
102
+ * on the dashboard with that card's copies left out (the editor holds its
103
+ * draft), so a refusal shows when the author makes the change, never at the
104
+ * commit (MC-D11). The message of the first refusal, or undefined.
105
+ */
106
+ export declare function refusalOfCalculatedFieldOperations(dashboard: TDashboard, operations: readonly CalculatedFieldOperation[], openCardId?: string | null): string | undefined;
107
+ /**
108
+ * The operations tried as the commit will apply them, with the open card's
109
+ * copies left out (the editor holds its draft): the dashboard they leave,
110
+ * whose fields list carries every change they propagate (a field another
111
+ * reads, ledger P4-23), so an edit made later in the same session starts
112
+ * from it; or the first refusal's message.
113
+ */
114
+ export declare function simulateCalculatedFieldOperations(dashboard: TDashboard, operations: readonly CalculatedFieldOperation[], openCardId?: string | null): {
115
+ ok: true;
116
+ dashboard: TDashboard;
117
+ } | {
118
+ ok: false;
119
+ message: string;
120
+ };
121
+ /** One card without its copies of a removed field, on every shelf and filter: what the author's delete of the field means for the card being edited. */
122
+ export declare function withoutRemovedFieldCopies(dashboard: TDashboard, cardId: string, key: string): TDashboard;
123
+ /**
124
+ * A compiled card's dashboard-field columns written as the editor's drop
125
+ * writes them (`getNewField`), each keeping the compiled column's id and
126
+ * alias (calculated fields one core MC-D9, ledger P4-02). The compiler
127
+ * resolves a card query's names against the dashboard's fields
128
+ * (`compileCardQuery`'s `dashboardFields`) and marks each column it placed
129
+ * with the field's identity; this finds the field by that identity, never by
130
+ * name. An aggregate the author stated is kept, marked as the compiler marks
131
+ * one; a sort on a placed column follows it to the copy.
132
+ */
133
+ export declare function placeDashboardFieldCopies(config: NonNullable<TCard['config']>, dashboardFields: readonly Field[]): NonNullable<TCard['config']>;
@@ -0,0 +1,71 @@
1
+ import { Immer } from 'immer';
2
+ import { TCard, TDashboard, TFrame, TSheet } from '../../../lib/types/common-types.js';
3
+ import { SheetLayoutChange } from '../../layouts/index.js';
4
+ import { SentenceClause } from './operation-sentences.js';
5
+ import { CardUpdate, CreatedEntity, DashboardOperation, DashboardRuntimeEffect, OperationFailureCode } from './operation-types.js';
6
+ /**
7
+ * The card operations of the dashboard reducer (MCP dashboard editing SPEC
8
+ * 3.3): add, remove, rename and retype. Pure: each returns a new dashboard
9
+ * that shares everything it did not touch, and never mints ids or reads the
10
+ * clock.
11
+ */
12
+ /** Drafts are finalized unfrozen, so callers own a plain document. */
13
+ export declare const reducerImmer: Immer;
14
+ export declare class OperationFailure extends Error {
15
+ readonly code: OperationFailureCode;
16
+ readonly fix?: string | undefined;
17
+ readonly details?: Record<string, unknown> | undefined;
18
+ constructor(code: OperationFailureCode, message: string, fix?: string | undefined, details?: Record<string, unknown> | undefined);
19
+ }
20
+ export type OperationOutcome = {
21
+ dashboard: TDashboard;
22
+ created?: CreatedEntity[];
23
+ /** Frames to load metadata for, beyond the frames of created and touched cards: a variable's, from the one writer (P2-28). */
24
+ queryFrames?: TFrame[];
25
+ /** Existing cards this operation changed in place (`DashboardOperationResult.touched`). */
26
+ touched?: string[];
27
+ runtimeEffects?: DashboardRuntimeEffect[];
28
+ clauses: SentenceClause[];
29
+ /**
30
+ * The operation made a frame that showed a library visual the dashboard's
31
+ * own (DE-D50). The confirmation reads this, never the sentence that says so.
32
+ */
33
+ detached?: boolean;
34
+ };
35
+ export type FrameCardLocation = {
36
+ sheetIndex: number;
37
+ frameIndex: number;
38
+ cardIndex: number;
39
+ sheet: TSheet;
40
+ frame: TFrame;
41
+ card: TCard;
42
+ };
43
+ /** A card in a frame on a grid sheet. Document-section cards are not frame cards. */
44
+ export declare function locateFrameCard(dashboard: TDashboard, cardId: string): FrameCardLocation | undefined;
45
+ export declare const sheetName: (sheet: TSheet | undefined) => string;
46
+ export declare function requireCard(dashboard: TDashboard, cardId: string): FrameCardLocation;
47
+ export declare function addCard(dashboard: TDashboard, operation: Extract<DashboardOperation, {
48
+ op: 'card.add';
49
+ }>): OperationOutcome;
50
+ /**
51
+ * The sheet after a layout change: the layout engine's frames, and its layouts
52
+ * and customized breakpoints when they changed (responsive layouts SPEC §3.1,
53
+ * §6.1). `sheet` is the sheet before the change.
54
+ */
55
+ export declare function withSheetLayoutChange(sheet: TSheet, change: SheetLayoutChange): TSheet;
56
+ /**
57
+ * Removes one card (DE-D42). With other tabs left, the frame stays and its
58
+ * first card becomes active, through the editor's own tab close rule
59
+ * (`withoutFrameCard`); a linked frame
60
+ * becomes local. The last card takes the frame and its layout entries on
61
+ * every breakpoint. Every input reference to the card goes with it.
62
+ */
63
+ export declare function removeCard(dashboard: TDashboard, cardId: string): OperationOutcome;
64
+ export declare function updateCard(dashboard: TDashboard, cardId: string, update: CardUpdate): OperationOutcome;
65
+ /** Replaces one card of a frame (and clears a link to a library visual, DE-D50); optionally resizes the frame's layouts. */
66
+ export declare function replaceFrameCard(dashboard: TDashboard, at: FrameCardLocation, card: TCard, options: {
67
+ resize: boolean;
68
+ }): {
69
+ dashboard: TDashboard;
70
+ detached: boolean;
71
+ };
@@ -1,4 +1,5 @@
1
1
  import { DataVariable, EmbeddedFilterDashboardInput, TDashboard, TFrame, TInlineFilter, TextCardRichContent } from '../../../lib/types/common-types.js';
2
+ import { CalculatedFieldOperation } from './calculated-field-operations.js';
2
3
  import { DocumentEdit } from '../../../lib/document/document-edits.js';
3
4
  import { ResolvedCardSettings } from '../card-settings/resolved.js';
4
5
  import { MeasureCalculationsUpdate } from '../measure-calculations/resolve.js';
@@ -73,10 +74,14 @@ export type FrameCommit = {
73
74
  frame: TFrame;
74
75
  /** Other frames on the sheet rewritten during the edit (calculated-field renames), applied with it. */
75
76
  rewrittenFrames?: TFrame[];
76
- /** Sheet calculated fields from the edited frame, persisted on the sheet. */
77
+ /** Sheet calculated fields from the edited frame, persisted on the sheet (sheet scope is retired; existing ones stay editable until release 2). */
77
78
  sheetCalculatedFields?: Field[];
78
- /** Dashboard calculated fields rewritten during the edit. */
79
- dashboardCalculatedFields?: Field[];
79
+ /**
80
+ * The editor's dashboard-field adds, changes and removals during the edit,
81
+ * in order, applied through the `calculatedField.*` operations after the
82
+ * frame (MC-D11): the commit never replaces the dashboard's list.
83
+ */
84
+ calculatedFieldOps?: CalculatedFieldOperation[];
80
85
  /** True when committed from the visual editor: resize the frame's layouts if its type changed. */
81
86
  resizeLayouts: boolean;
82
87
  };
@@ -206,7 +211,9 @@ export type DashboardOperation = ({
206
211
  edit: Extract<DocumentEdit, {
207
212
  type: 'updateText' | 'updateRegionText';
208
213
  }>;
209
- }) & {
214
+ }
215
+ /** A dashboard field added, changed (every copy follows) or removed (calculated fields one core MC-D10). */
216
+ | CalculatedFieldOperation) & {
210
217
  /** Set by the resolver: the public change this operation came from. Descriptions group by it. */
211
218
  changeIndex?: number;
212
219
  };
@@ -287,7 +294,13 @@ export type OperationFailureCode = 'sheet_not_found'
287
294
  /** A data variable the one writer refuses (data variables spec 2.11); `details.issues` has its issues. */
288
295
  | 'variable_invalid' | 'variable_not_found'
289
296
  /** A Document edit its writer refuses (`DocumentEditError`), or a sheet that is no Document. */
290
- | 'document_invalid';
297
+ | 'document_invalid'
298
+ /** A dashboard field with that identity key or name exists already (calculated fields one core). */
299
+ | 'calculated_field_taken' | 'calculated_field_not_found'
300
+ /** `calculatedField.remove` while a copy remains; `details.usedBy` names the cards and filters. */
301
+ | 'calculated_field_in_use'
302
+ /** A measure's formula moving between per row and over aggregates while something uses it (ledger P4-08). */
303
+ | 'calculated_field_stage_change';
291
304
  export type DashboardOperationResult = {
292
305
  ok: true;
293
306
  dashboard: TDashboard;
@@ -164,6 +164,25 @@ export type OutlineLayoutRow = {
164
164
  width: FrameWidth;
165
165
  }>;
166
166
  };
167
+ /** A dashboard field read back so an agent can send it again (MC-INV-3). */
168
+ export type OutlineCalculatedField = {
169
+ domainId: string;
170
+ dataset: string;
171
+ name: string;
172
+ label?: string;
173
+ description?: string;
174
+ /** Named {token}s over `inputs`, as `toNamedTokens` writes them. */
175
+ expression: string;
176
+ inputs: Record<string, {
177
+ dataset: string;
178
+ field: string;
179
+ aggregate?: string;
180
+ }>;
181
+ use: 'aggregate' | 'group_or_filter';
182
+ dataType: string;
183
+ /** Card ids and dashboard filter ids whose columns copy it. */
184
+ usedBy: string[];
185
+ };
167
186
  export type DashboardOutline = {
168
187
  dashboardId: string;
169
188
  title: string;
@@ -185,6 +204,8 @@ export type DashboardOutline = {
185
204
  variables: OutlineVariable[];
186
205
  /** What `dashboard.style` sets, read back in its words, and what the dashboard shows. */
187
206
  style: OutlineStyle;
207
+ /** The dashboard's own calculated fields, in the words `calculation.add` takes (calculated fields one core MC-INV-3). */
208
+ calculatedFields?: OutlineCalculatedField[];
188
209
  /** In the editor's words: what the dashboard holds that no change can state (the parity backlog, DV-D13). */
189
210
  editorOnly?: string[];
190
211
  /** Queries left out because the dashboard has more than `maxQueryCards` cards (DE-D34). */
@@ -273,18 +273,18 @@ export declare const exportCompletedDetailsSchema: z.ZodObject<{
273
273
  mechanism: "rendered" | "job" | "matrix_direct";
274
274
  scope?: "dashboard" | "card" | "visual" | undefined;
275
275
  rows?: number | undefined;
276
+ stage?: "create" | "acquire" | "deadline" | "render" | undefined;
276
277
  chunks?: number | undefined;
277
278
  bytes?: number | undefined;
278
- stage?: "create" | "acquire" | "deadline" | "render" | undefined;
279
279
  export_id?: string | undefined;
280
280
  }, {
281
281
  format: "csv" | "xlsx" | "pdf" | "png";
282
282
  mechanism: "rendered" | "job" | "matrix_direct";
283
283
  scope?: "dashboard" | "card" | "visual" | undefined;
284
284
  rows?: number | undefined;
285
+ stage?: "create" | "acquire" | "deadline" | "render" | undefined;
285
286
  chunks?: number | undefined;
286
287
  bytes?: number | undefined;
287
- stage?: "create" | "acquire" | "deadline" | "render" | undefined;
288
288
  export_id?: string | undefined;
289
289
  }>;
290
290
  export type ExportCompletedDetails = z.infer<typeof exportCompletedDetailsSchema>;
@@ -108,7 +108,7 @@ export declare const usageEventEnvelopeSchema: z.ZodObject<{
108
108
  release: string;
109
109
  org_id: string | null;
110
110
  tenant_id: string | null;
111
- actor_type: "system" | "tenant" | "tenant_user" | "anonymous" | "org_user" | "api_key";
111
+ actor_type: "system" | "tenant" | "anonymous" | "tenant_user" | "org_user" | "api_key";
112
112
  org_user_id: string | null;
113
113
  tenant_user_id: string | null;
114
114
  session_id: string | null;
@@ -137,7 +137,7 @@ export declare const usageEventEnvelopeSchema: z.ZodObject<{
137
137
  release: string;
138
138
  org_id: string | null;
139
139
  tenant_id: string | null;
140
- actor_type: "system" | "tenant" | "tenant_user" | "anonymous" | "org_user" | "api_key";
140
+ actor_type: "system" | "tenant" | "anonymous" | "tenant_user" | "org_user" | "api_key";
141
141
  org_user_id: string | null;
142
142
  tenant_user_id: string | null;
143
143
  session_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.600",
8
+ "version": "0.1.602",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",