react-semaphor 0.1.559 → 0.1.561

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 (168) hide show
  1. package/dist/analytics-protocol/index.js +389 -378
  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 +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/analytics-base-schemas-CB3oFAXk.js +658 -0
  7. package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-DiVHY3Hw.js} +209 -211
  8. package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
  9. package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
  10. package/dist/chunks/{braces-Rdxa3H-s.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-DDsIWJYT.js} +201 -201
  12. package/dist/chunks/{context-DVy4HOU0.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CgvTLndW.js} +1163 -1178
  16. package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-B4vfSzTF.js} +877 -941
  17. package/dist/chunks/{dashboard-json-DGpv17vL.js → dashboard-json-Y3MF59g7.js} +5 -5
  18. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
  19. package/dist/chunks/{edit-dashboard-visual-AQ2pQkFp.js → edit-dashboard-visual-DwjZcxj-.js} +9080 -9354
  20. package/dist/chunks/filter-reach-copy-bijwf_-b.js +3596 -0
  21. package/dist/chunks/{filter-value-text-B4l-xqJT.js → filter-value-text-DFnhwuEW.js} +3 -3
  22. package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
  23. package/dist/chunks/{index-B1Xr7W24.js → index-ClwbY3BL.js} +648 -674
  24. package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-BSiGEXVC.js} +221 -214
  30. package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-DMJtp3Vn.js → palette-DTnMhipt.js} +1 -1
  33. package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
  34. package/dist/chunks/{pivot-result-identity-CAj8SiRL.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-C2YUIwKG.js} +55 -55
  36. package/dist/chunks/{report-runtime-context-bYoExeWr.js → report-runtime-context-DoIUr3MP.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
  38. package/dist/chunks/{save-DSb1jTtG.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-8jqfI7hI.js} +59 -59
  40. package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-E2XWyibu.js} +40105 -41658
  42. package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-C29EUzDp.js} +570 -570
  43. package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-Dq8XPFpT.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_RvEUyO.js → table-export-sheet-CK8tvh4d.js} +1 -1
  46. package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
  47. package/dist/chunks/{token-types-LCYMJ3pa.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-Dr_WAxHQ.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-C87JPd-_.js → validators-BtaCFIEB.js} +1206 -1579
  51. package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2713 -1459
  54. package/dist/data-app-sdk/index.js +20 -20
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +10 -10
  57. package/dist/format-utils/index.js +262 -256
  58. package/dist/index.js +214 -215
  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/components/dashboard/summary-number-formatter.d.ts +6 -0
  63. package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
  64. package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
  65. package/dist/types/index.js +50 -51
  66. package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
  67. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  68. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  69. package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
  70. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
  71. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
  72. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
  73. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  74. package/dist/types/lib/stores/editor-store.d.ts +48 -10
  75. package/dist/types/lib/stores/table-actions.d.ts +9 -5
  76. package/dist/types/lib/table-formatting/index.d.ts +0 -2
  77. package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
  78. package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
  79. package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
  80. package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
  81. package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
  82. package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
  83. package/dist/types/lib/types/common-types.d.ts +40 -47
  84. package/dist/types/lib/types/explorer-types.d.ts +11 -43
  85. package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
  86. package/dist/types/lib/utils/card-definition.d.ts +9 -187
  87. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +169 -513
  88. package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
  89. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
  90. package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
  91. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
  92. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
  93. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
  94. package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
  95. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
  96. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  97. package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
  98. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
  99. package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
  100. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
  101. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
  102. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
  103. package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
  104. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  105. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  106. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  107. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  108. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  109. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  110. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  111. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  112. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  113. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  114. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  115. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  116. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  117. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  118. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  119. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  120. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  121. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +555 -38
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  124. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  125. package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
  127. package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
  128. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +7 -0
  129. package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
  130. package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
  131. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
  132. package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
  133. package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
  134. package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
  135. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
  136. package/dist/types/shared/dashboard-authoring/index.d.ts +8 -0
  137. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  138. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
  139. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  142. package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
  143. package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
  144. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  145. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +13 -2
  146. package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
  147. package/dist/types/shared/format-utils/index.d.ts +2 -0
  148. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
  149. package/dist/types/shared/format-utils/raw-temporal.d.ts +31 -1
  150. package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
  151. package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
  152. package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
  153. package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
  154. package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
  155. package/package.json +2 -2
  156. package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
  157. package/dist/chunks/bookmark-state-ssqrs5oP.js +0 -111
  158. package/dist/chunks/document-dashboard-inputs-ChVkcBuu.js +0 -3010
  159. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
  160. package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
  161. package/dist/chunks/global-date-filter-utils-DBzEOX9M.js +0 -12222
  162. package/dist/chunks/pivot-result-contract-expectations-DOYhqeZb.js +0 -1926
  163. package/dist/chunks/raw-temporal-presentation-BmT7z6NH.js +0 -584
  164. package/dist/chunks/resolve-dashboard-input-context-B_C_VAJH.js +0 -5520
  165. package/dist/chunks/table-settings-DXj_zXwS.js +0 -637
  166. package/dist/chunks/temporal-input-presentation-AhLSkGPf.js +0 -2939
  167. package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
  168. package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
@@ -0,0 +1,12 @@
1
+ import { TCard, TCardPreferences } from '../../../lib/types/common-types.js';
2
+ import { ConditionalRule } from './types.js';
3
+ /**
4
+ * A card's stored rules. A rule that doesn't parse is left out rather than
5
+ * failing the card: the save check refuses one (CR-D9), and a renderer shows
6
+ * the rest.
7
+ */
8
+ export declare function readCardConditionalRules(card: {
9
+ preferences?: Pick<TCardPreferences, 'conditionalFormatting'> | null;
10
+ } | undefined): readonly ConditionalRule[];
11
+ /** The card with these rules as its store; no rules removes the store. */
12
+ export declare function withCardConditionalRules<T extends Pick<TCard, 'preferences'>>(card: T, rules: readonly ConditionalRule[]): T;
@@ -0,0 +1,151 @@
1
+ import { MatrixAxis, MatrixPath } from '../../analytics-protocol/matrix-path-contract.js';
2
+ import { SemaphorResultColumn } from '../../analytics-protocol/contracts.js';
3
+ import { QueryColumnKeyMap } from '../../format-utils/pivot-result-identity.js';
4
+ /** How a rule names a column. Survives alias and aggregate changes. */
5
+ export type CardColumnRef =
6
+ /** A config card's column, by card column id (`config.*Columns[].id`). */
7
+ {
8
+ kind: 'field';
9
+ fieldId: string;
10
+ }
11
+ /** One measure under one pivot tuple: the names and order of `pivotIdentity`. */
12
+ | {
13
+ kind: 'pivot';
14
+ metricId: string;
15
+ members: Array<{
16
+ fieldId: string;
17
+ value: string | null;
18
+ }>;
19
+ }
20
+ /** A SQL or Python card's column, by result key. */
21
+ | {
22
+ kind: 'result';
23
+ key: string;
24
+ }
25
+ /** A SQL KPI's value: the first numeric result column (column formats CF-D24). */
26
+ | {
27
+ kind: 'sqlKpiValue';
28
+ }
29
+ /** A Matrix measure. */
30
+ | {
31
+ kind: 'matrixMeasure';
32
+ measureId: string;
33
+ }
34
+ /** A Matrix row or column level: formats only; rules scope levels with `target.matrix.levelId`. */
35
+ | {
36
+ kind: 'matrixLevel';
37
+ levelId: string;
38
+ };
39
+ export type TablePart = 'body' | 'header' | 'footer' | 'subtotal' | 'grandTotal';
40
+ export type MatrixFormattingRole = 'member' | 'subtotal' | 'grand_total' | 'others';
41
+ export type ComparisonOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
42
+ /** A rule's style, unchanged from the table rules it replaces. */
43
+ export type ConditionalStyle = {
44
+ backgroundColor?: string;
45
+ textColor?: string;
46
+ fontWeight?: 'normal' | 'medium' | 'semibold' | 'bold';
47
+ italic?: boolean;
48
+ textDecoration?: 'none' | 'underline' | 'line-through';
49
+ icon?: 'arrowUp' | 'arrowDown' | 'warning' | 'check' | 'x';
50
+ dataBar?: {
51
+ color: string;
52
+ showValue: boolean;
53
+ };
54
+ };
55
+ /**
56
+ * A rule's condition on one column's value. `TColumn` is how the column is
57
+ * named: a `CardColumnRef` when stored, a result key once a renderer has
58
+ * resolved it (`resolveConditionalRules`).
59
+ */
60
+ export type ConditionalCondition<TColumn = CardColumnRef> = {
61
+ kind: 'comparison';
62
+ column: TColumn;
63
+ operator: ComparisonOperator;
64
+ value: unknown;
65
+ } | {
66
+ kind: 'between';
67
+ column: TColumn;
68
+ min: unknown;
69
+ max: unknown;
70
+ inclusive?: boolean;
71
+ } | {
72
+ kind: 'blank';
73
+ column: TColumn;
74
+ isBlank: boolean;
75
+ } | {
76
+ kind: 'contains';
77
+ column: TColumn;
78
+ value: string;
79
+ caseSensitive?: boolean;
80
+ exact?: boolean;
81
+ } | {
82
+ kind: 'topBottom';
83
+ column: TColumn;
84
+ direction: 'top' | 'bottom';
85
+ count: number;
86
+ } | {
87
+ kind: 'colorScale';
88
+ column: TColumn;
89
+ range: 'auto' | 'manual';
90
+ min?: number;
91
+ mid?: number;
92
+ max?: number;
93
+ colors: {
94
+ min: string;
95
+ mid?: string;
96
+ max: string;
97
+ };
98
+ } | {
99
+ kind: 'dataBar';
100
+ column: TColumn;
101
+ range: 'auto' | 'manual';
102
+ min?: number;
103
+ max?: number;
104
+ color: string;
105
+ showValue?: boolean;
106
+ };
107
+ export type ConditionalTarget<TColumn = CardColumnRef> = {
108
+ level: 'cell' | 'row';
109
+ /**
110
+ * cell: the columns styled; absent means the condition's column.
111
+ * row: the columns styled in a matching row; absent means the whole row.
112
+ */
113
+ columns?: TColumn[];
114
+ tableParts?: TablePart[];
115
+ matrix?: {
116
+ axis: MatrixAxis;
117
+ levelId?: string;
118
+ oppositePath?: Array<MatrixPath[number]>;
119
+ };
120
+ rowRoles?: MatrixFormattingRole[];
121
+ depth?: number;
122
+ includeTotals?: boolean;
123
+ includeSubtotals?: boolean;
124
+ };
125
+ export type ConditionalRule<TColumn = CardColumnRef> = {
126
+ id: string;
127
+ name?: string;
128
+ enabled?: boolean;
129
+ condition: ConditionalCondition<TColumn>;
130
+ target: ConditionalTarget<TColumn>;
131
+ style?: ConditionalStyle;
132
+ };
133
+ /** `preferences.conditionalFormatting` on every card that has rules. */
134
+ export type CardConditionalFormatting = {
135
+ version: 1;
136
+ rules: ConditionalRule[];
137
+ };
138
+ /** A rule a renderer resolved to the result keys of its rows. */
139
+ export type ResolvedConditionalRule = ConditionalRule<string>;
140
+ /**
141
+ * What a renderer knows about its result, to resolve a `CardColumnRef`.
142
+ * Pass what the result carries: `columnKeyMap` resolves `field` refs,
143
+ * `resultColumns` (with `pivotIdentity`) resolves `pivot` refs, and `keys`
144
+ * (the rows' result keys in display order; for a SQL KPI, its displayed
145
+ * numeric keys, value first) checks `result` refs and names the SQL KPI value.
146
+ */
147
+ export type CardOutputColumns = {
148
+ columnKeyMap?: QueryColumnKeyMap;
149
+ resultColumns?: readonly SemaphorResultColumn[];
150
+ keys?: readonly string[];
151
+ };
@@ -0,0 +1,35 @@
1
+ import { TCard } from '../../../lib/types/common-types.js';
2
+ export type RuleChange = {
3
+ ruleId: string;
4
+ /** `moved`: into `preferences.conditionalFormatting`; `removed`: no home and never rendered. */
5
+ action: 'moved' | 'removed';
6
+ from: string;
7
+ };
8
+ export type UnresolvedRuleReason =
9
+ /** The draft trigger the rule panel starts a rule with. */
10
+ 'unassigned_trigger'
11
+ /** No card column carries the reference, and it is no simple pivot key. */
12
+ | 'no_matching_column'
13
+ /** Several card columns carry the reference. */
14
+ | 'ambiguous_column'
15
+ /** A pivot key in a form other than the simple one (CR-D12). */
16
+ | 'pivot_key_form'
17
+ /** An enabled cell rule naming no columns styles every column today; the store has no such form. */
18
+ | 'every_column';
19
+ export type UnresolvedRule = {
20
+ ruleId: string;
21
+ name?: string;
22
+ enabled: boolean;
23
+ /** Within the card, e.g. `preferences.tablePrefs.conditionalFormatting.rules[3].condition.columnId`. */
24
+ path: string;
25
+ /** The stored reference. */
26
+ reference: string;
27
+ reason: UnresolvedRuleReason;
28
+ };
29
+ export type UpgradeConditionalFormattingResult = {
30
+ card: TCard;
31
+ changes: RuleChange[];
32
+ unresolved: UnresolvedRule[];
33
+ };
34
+ /** Rewrites one card's retired rules into `preferences.conditionalFormatting`. Returns the input card when nothing changes. */
35
+ export declare function upgradeConditionalFormatting(card: TCard): UpgradeConditionalFormattingResult;