react-semaphor 0.1.606 → 0.1.607
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.
- package/dist/analytics-protocol/index.js +1 -1
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/add-to-dashboard-Bu3M9DpP.js +12 -0
- package/dist/chunks/appearance-provider-C4lPZcaN.js +613 -0
- package/dist/chunks/appearance-runtime-provider-De2VZS4F.js +1 -0
- package/dist/chunks/assistant-chat-B7Fngg8U.js +53 -0
- package/dist/chunks/attachment-filter-line-wJRB0GSP.js +1 -0
- package/dist/chunks/{bookmark-impact-BW30cm5E.js → bookmark-impact-DjrrJomS.js} +1 -1
- package/dist/chunks/bookmark-state-x9hJS83D.js +1 -0
- package/dist/chunks/{brand-CL5xDiFH.js → brand-DgFcvKJI.js} +1 -1
- package/dist/chunks/{card-filter-builder-CzScSOQY.js → card-filter-builder-CvxygmsE.js} +8 -3
- package/dist/chunks/check-input-7DVPUuco.js +1 -0
- package/dist/chunks/{comparison-window-caption-tguyN24S.js → comparison-window-caption-zUZDe4tL.js} +1 -1
- package/dist/chunks/compiler-XErOfUUx.js +1 -0
- package/dist/chunks/context-Cwj8Axgd.js +2 -0
- package/dist/chunks/currency-presentation-binding-w9WDUk3b.js +1 -0
- package/dist/chunks/custom-visual-inputs-D8U98aBz.js +1 -0
- package/dist/chunks/{dashboard-Cyhj9EOl.js → dashboard-BEd6i29E.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CyOFddmD.js → dashboard-briefing-launcher-DMDYM9IA.js} +9 -14
- package/dist/chunks/{dashboard-controls-DpADfhr0.js → dashboard-controls-5B2vCIjJ.js} +8 -8
- package/dist/chunks/{dashboard-json-4xMChR2q.js → dashboard-json-C6r30x-5.js} +1 -1
- package/dist/chunks/dashboard-temporal-snapshot-Wki-YACw.js +1 -0
- package/dist/chunks/edit-dashboard-visual-F2w7v4iB.js +83 -0
- package/dist/chunks/{filter-line-WwUV5JzN.js → filter-line-COFQaF4_.js} +1 -1
- package/dist/chunks/filter-reach-preview-BWRGfSmb.js +1 -0
- package/dist/chunks/filter-value-text-BSAMEgve.js +1 -0
- package/dist/chunks/kpi-trend-rule-BcnKbY7d.js +1 -0
- package/dist/chunks/{layout-grid-Dtsioq4h.js → layout-grid-DahW4ClC.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-Bd-dXB8q.js +1 -0
- package/dist/chunks/{matrix-member-presentation-vVAv-aqg.js → matrix-member-presentation-CfvxPV-i.js} +1 -1
- package/dist/chunks/matrix-operation-contract-Cw7U53Ao.js +1 -0
- package/dist/chunks/metric-formatting-QDqXfQGY.js +1 -0
- package/dist/chunks/{numeric-range-options-C8tr-Bls.js → numeric-range-options-s6i_nDXg.js} +1 -1
- package/dist/chunks/{palette-565cA0nh.js → palette-CYvJHSqP.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-BX5gLcze.js +1 -0
- package/dist/chunks/{pivot-result-identity-B0eWVMXg.js → pivot-result-identity-DOISzHU4.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BHQ-ldpW.js → raw-temporal-value-Cssny3RJ.js} +1 -1
- package/dist/chunks/report-preferences-dialog-BNpB9byP.js +1 -0
- package/dist/chunks/{report-runtime-context-Cd1b5pku.js → report-runtime-context-B8HuY0bu.js} +1 -1
- package/dist/chunks/resolve-dashboard-input-context-B-0tONJg.js +8 -0
- package/dist/chunks/sandbox-host-Drf58_oU.js +197 -0
- package/dist/chunks/saved-dashboard-context-dbdbQ5bB.js +1 -0
- package/dist/chunks/{selection-filter-compiler-kYsRugss.js → selection-filter-compiler-DK8KkS9g.js} +1 -1
- package/dist/chunks/semaphor-ready-indicator-BSFsqsBJ.js +617 -0
- package/dist/chunks/set-oJDaJdtI.js +1 -0
- package/dist/chunks/slider-DAvAdfMC.js +599 -0
- package/dist/chunks/stored-dashboard-DmgJQcyZ.js +1 -0
- package/dist/chunks/table-cell-text-2x6r_oHO.js +1 -0
- package/dist/chunks/{table-export-sheet-xaczzWZF.js → table-export-sheet-CWqKiQu4.js} +1 -1
- package/dist/chunks/{token-types-1vzMWjI-.js → token-types-BSyWn2pb.js} +1 -1
- package/dist/chunks/{validators-Dg2kyF4_.js → validators-BPGmPz8-.js} +1 -1
- package/dist/chunks/{variable-draft-CRbSYdB6.js → variable-draft-DGA22H2g.js} +1 -1
- package/dist/chunks/visual-contract-DQPKg5QW.js +143 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1 -1
- package/dist/extensions/index.js +1 -0
- package/dist/format-utils/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/assistant/assistant-store.d.ts +19 -0
- package/dist/types/components/assistant/use-assistant.d.ts +4 -0
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +2 -3
- package/dist/types/components/visual/data-table/table-cell-text.d.ts +93 -0
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/extensions.d.ts +2 -0
- package/dist/types/index.js +1 -1
- package/dist/types/lib/charts/types.d.ts +3 -1
- package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -2
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +12 -12
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +25 -25
- package/dist/types/lib/stores/dashboard-store.d.ts +33 -2
- package/dist/types/lib/stores/editor-store.d.ts +8 -0
- package/dist/types/lib/types/common-types.d.ts +3 -0
- package/dist/types/lib/utils/card-definition.d.ts +12 -12
- package/dist/types/lib/utils/card-type-change.d.ts +9 -0
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +6 -6
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +248 -248
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +2 -2
- package/dist/types/shared/assistant-protocol/context.d.ts +26 -26
- package/dist/types/shared/assistant-protocol/parts.d.ts +4 -0
- package/dist/types/shared/assistant-protocol/request.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +16 -6
- package/dist/types/shared/dashboard-authoring/card-settings/custom-visual-write.d.ts +44 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/changes/custom-visual-change.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +61 -54
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +5 -1
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +5 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +60 -60
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +48 -48
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +8 -2
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +7 -0
- package/dist/types/shared/extensions/check-audits.d.ts +30 -0
- package/dist/types/shared/extensions/check-findings.d.ts +46 -0
- package/dist/types/shared/extensions/check-input.d.ts +23 -0
- package/dist/types/shared/extensions/check-renders.d.ts +44 -0
- package/dist/types/shared/extensions/check-runner.d.ts +19 -0
- package/dist/types/shared/extensions/index.d.ts +17 -0
- package/dist/types/shared/extensions/read-document.d.ts +18 -0
- package/dist/types/shared/extensions/sandbox-host.d.ts +63 -0
- package/dist/types/shared/extensions/saved-refs.d.ts +33 -0
- package/dist/types/shared/extensions/script-policy.d.ts +11 -0
- package/dist/types/shared/extensions/types.d.ts +186 -0
- package/dist/types/shared/extensions/visual-contract.d.ts +36 -0
- package/dist/types/shared/extensions/visual-payload.d.ts +75 -0
- package/dist/types/shared/extensions/visual-theme.d.ts +21 -0
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +13 -6
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +2 -2
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +24 -24
- package/dist/types/shared/usage-events/details.d.ts +4 -4
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +7 -2
- package/dist/chunks/add-to-dashboard-CEmZUf9o.js +0 -12
- package/dist/chunks/appearance-provider-fIhJSX6y.js +0 -613
- package/dist/chunks/appearance-runtime-provider-Bx8H-moR.js +0 -1
- package/dist/chunks/assistant-chat-SBKSrrEA.js +0 -51
- package/dist/chunks/attachment-filter-line-C_zHMhGh.js +0 -1
- package/dist/chunks/bookmark-state-DScd31KT.js +0 -1
- package/dist/chunks/context-CntvtZwC.js +0 -2
- package/dist/chunks/dashboard-temporal-snapshot-w3SMiPKj.js +0 -1
- package/dist/chunks/edit-dashboard-visual-DlvY7au4.js +0 -73
- package/dist/chunks/filter-reach-preview-DAEIyrEG.js +0 -1
- package/dist/chunks/filter-value-text-DqTHe_vu.js +0 -1
- package/dist/chunks/kpi-trend-rule-N1Xkwe_u.js +0 -1
- package/dist/chunks/matrix-analytical-definition-5T-2euHZ.js +0 -1
- package/dist/chunks/matrix-operation-contract-CWvcEsQ0.js +0 -1
- package/dist/chunks/pivot-result-contract-expectations-BNWhS8mv.js +0 -1
- package/dist/chunks/report-preferences-dialog-B2ZGPS9t.js +0 -1
- package/dist/chunks/resolve-dashboard-input-context-SlAAe4GF.js +0 -8
- package/dist/chunks/saved-dashboard-context-Bc2SVDr-.js +0 -1
- package/dist/chunks/semaphor-ready-indicator-Bj-cjkz-.js +0 -612
- package/dist/chunks/set-CACXVM2A.js +0 -1
- package/dist/chunks/slider-CWze9OEM.js +0 -4
- package/dist/chunks/stored-dashboard-CcNdU-mG.js +0 -1
|
@@ -351,11 +351,6 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
351
351
|
value: string;
|
|
352
352
|
kind: "exact_number";
|
|
353
353
|
} | null;
|
|
354
|
-
min: string | number | boolean | {
|
|
355
|
-
type: "integer" | "decimal";
|
|
356
|
-
value: string;
|
|
357
|
-
kind: "exact_number";
|
|
358
|
-
} | null;
|
|
359
354
|
column: {
|
|
360
355
|
kind: "field";
|
|
361
356
|
fieldId: string;
|
|
@@ -378,15 +373,15 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
378
373
|
kind: "matrixLevel";
|
|
379
374
|
levelId: string;
|
|
380
375
|
};
|
|
381
|
-
|
|
382
|
-
}, {
|
|
383
|
-
kind: "between";
|
|
384
|
-
max: string | number | boolean | {
|
|
376
|
+
min: string | number | boolean | {
|
|
385
377
|
type: "integer" | "decimal";
|
|
386
378
|
value: string;
|
|
387
379
|
kind: "exact_number";
|
|
388
380
|
} | null;
|
|
389
|
-
|
|
381
|
+
inclusive?: boolean | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
kind: "between";
|
|
384
|
+
max: string | number | boolean | {
|
|
390
385
|
type: "integer" | "decimal";
|
|
391
386
|
value: string;
|
|
392
387
|
kind: "exact_number";
|
|
@@ -413,6 +408,11 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
413
408
|
kind: "matrixLevel";
|
|
414
409
|
levelId: string;
|
|
415
410
|
};
|
|
411
|
+
min: string | number | boolean | {
|
|
412
|
+
type: "integer" | "decimal";
|
|
413
|
+
value: string;
|
|
414
|
+
kind: "exact_number";
|
|
415
|
+
} | null;
|
|
416
416
|
inclusive?: boolean | undefined;
|
|
417
417
|
}>, z.ZodObject<{
|
|
418
418
|
kind: z.ZodLiteral<"blank">;
|
|
@@ -1447,8 +1447,8 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1447
1447
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1448
1448
|
backgroundColor?: string | undefined;
|
|
1449
1449
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
1450
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1451
1450
|
textColor?: string | undefined;
|
|
1451
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1452
1452
|
}, {
|
|
1453
1453
|
dataBar?: {
|
|
1454
1454
|
color: string;
|
|
@@ -1458,8 +1458,8 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1458
1458
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1459
1459
|
backgroundColor?: string | undefined;
|
|
1460
1460
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
1461
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1462
1461
|
textColor?: string | undefined;
|
|
1462
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1463
1463
|
}>>;
|
|
1464
1464
|
}, "strict", z.ZodTypeAny, {
|
|
1465
1465
|
id: string;
|
|
@@ -1548,11 +1548,6 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1548
1548
|
value: string;
|
|
1549
1549
|
kind: "exact_number";
|
|
1550
1550
|
} | null;
|
|
1551
|
-
min: string | number | boolean | {
|
|
1552
|
-
type: "integer" | "decimal";
|
|
1553
|
-
value: string;
|
|
1554
|
-
kind: "exact_number";
|
|
1555
|
-
} | null;
|
|
1556
1551
|
column: {
|
|
1557
1552
|
kind: "field";
|
|
1558
1553
|
fieldId: string;
|
|
@@ -1575,6 +1570,11 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1575
1570
|
kind: "matrixLevel";
|
|
1576
1571
|
levelId: string;
|
|
1577
1572
|
};
|
|
1573
|
+
min: string | number | boolean | {
|
|
1574
|
+
type: "integer" | "decimal";
|
|
1575
|
+
value: string;
|
|
1576
|
+
kind: "exact_number";
|
|
1577
|
+
} | null;
|
|
1578
1578
|
inclusive?: boolean | undefined;
|
|
1579
1579
|
} | {
|
|
1580
1580
|
kind: "blank";
|
|
@@ -1727,8 +1727,8 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1727
1727
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1728
1728
|
backgroundColor?: string | undefined;
|
|
1729
1729
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
1730
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1731
1730
|
textColor?: string | undefined;
|
|
1731
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
1732
1732
|
} | undefined;
|
|
1733
1733
|
enabled?: boolean | undefined;
|
|
1734
1734
|
}, {
|
|
@@ -1818,11 +1818,6 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1818
1818
|
value: string;
|
|
1819
1819
|
kind: "exact_number";
|
|
1820
1820
|
} | null;
|
|
1821
|
-
min: string | number | boolean | {
|
|
1822
|
-
type: "integer" | "decimal";
|
|
1823
|
-
value: string;
|
|
1824
|
-
kind: "exact_number";
|
|
1825
|
-
} | null;
|
|
1826
1821
|
column: {
|
|
1827
1822
|
kind: "field";
|
|
1828
1823
|
fieldId: string;
|
|
@@ -1845,6 +1840,11 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1845
1840
|
kind: "matrixLevel";
|
|
1846
1841
|
levelId: string;
|
|
1847
1842
|
};
|
|
1843
|
+
min: string | number | boolean | {
|
|
1844
|
+
type: "integer" | "decimal";
|
|
1845
|
+
value: string;
|
|
1846
|
+
kind: "exact_number";
|
|
1847
|
+
} | null;
|
|
1848
1848
|
inclusive?: boolean | undefined;
|
|
1849
1849
|
} | {
|
|
1850
1850
|
kind: "blank";
|
|
@@ -1997,8 +1997,8 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1997
1997
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
1998
1998
|
backgroundColor?: string | undefined;
|
|
1999
1999
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
2000
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
2001
2000
|
textColor?: string | undefined;
|
|
2001
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
2002
2002
|
} | undefined;
|
|
2003
2003
|
enabled?: boolean | undefined;
|
|
2004
2004
|
}>;
|
|
@@ -2285,11 +2285,6 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
2285
2285
|
value: string;
|
|
2286
2286
|
kind: "exact_number";
|
|
2287
2287
|
} | null;
|
|
2288
|
-
min: string | number | boolean | {
|
|
2289
|
-
type: "integer" | "decimal";
|
|
2290
|
-
value: string;
|
|
2291
|
-
kind: "exact_number";
|
|
2292
|
-
} | null;
|
|
2293
2288
|
column: {
|
|
2294
2289
|
kind: "field";
|
|
2295
2290
|
fieldId: string;
|
|
@@ -2312,15 +2307,15 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
2312
2307
|
kind: "matrixLevel";
|
|
2313
2308
|
levelId: string;
|
|
2314
2309
|
};
|
|
2315
|
-
|
|
2316
|
-
}, {
|
|
2317
|
-
kind: "between";
|
|
2318
|
-
max: string | number | boolean | {
|
|
2310
|
+
min: string | number | boolean | {
|
|
2319
2311
|
type: "integer" | "decimal";
|
|
2320
2312
|
value: string;
|
|
2321
2313
|
kind: "exact_number";
|
|
2322
2314
|
} | null;
|
|
2323
|
-
|
|
2315
|
+
inclusive?: boolean | undefined;
|
|
2316
|
+
}, {
|
|
2317
|
+
kind: "between";
|
|
2318
|
+
max: string | number | boolean | {
|
|
2324
2319
|
type: "integer" | "decimal";
|
|
2325
2320
|
value: string;
|
|
2326
2321
|
kind: "exact_number";
|
|
@@ -2347,6 +2342,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
2347
2342
|
kind: "matrixLevel";
|
|
2348
2343
|
levelId: string;
|
|
2349
2344
|
};
|
|
2345
|
+
min: string | number | boolean | {
|
|
2346
|
+
type: "integer" | "decimal";
|
|
2347
|
+
value: string;
|
|
2348
|
+
kind: "exact_number";
|
|
2349
|
+
} | null;
|
|
2350
2350
|
inclusive?: boolean | undefined;
|
|
2351
2351
|
}>, z.ZodObject<{
|
|
2352
2352
|
kind: z.ZodLiteral<"blank">;
|
|
@@ -3381,8 +3381,8 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3381
3381
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3382
3382
|
backgroundColor?: string | undefined;
|
|
3383
3383
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3384
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3385
3384
|
textColor?: string | undefined;
|
|
3385
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3386
3386
|
}, {
|
|
3387
3387
|
dataBar?: {
|
|
3388
3388
|
color: string;
|
|
@@ -3392,8 +3392,8 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3392
3392
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3393
3393
|
backgroundColor?: string | undefined;
|
|
3394
3394
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3395
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3396
3395
|
textColor?: string | undefined;
|
|
3396
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3397
3397
|
}>>;
|
|
3398
3398
|
}, "strict", z.ZodTypeAny, {
|
|
3399
3399
|
id: string;
|
|
@@ -3482,11 +3482,6 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3482
3482
|
value: string;
|
|
3483
3483
|
kind: "exact_number";
|
|
3484
3484
|
} | null;
|
|
3485
|
-
min: string | number | boolean | {
|
|
3486
|
-
type: "integer" | "decimal";
|
|
3487
|
-
value: string;
|
|
3488
|
-
kind: "exact_number";
|
|
3489
|
-
} | null;
|
|
3490
3485
|
column: {
|
|
3491
3486
|
kind: "field";
|
|
3492
3487
|
fieldId: string;
|
|
@@ -3509,6 +3504,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3509
3504
|
kind: "matrixLevel";
|
|
3510
3505
|
levelId: string;
|
|
3511
3506
|
};
|
|
3507
|
+
min: string | number | boolean | {
|
|
3508
|
+
type: "integer" | "decimal";
|
|
3509
|
+
value: string;
|
|
3510
|
+
kind: "exact_number";
|
|
3511
|
+
} | null;
|
|
3512
3512
|
inclusive?: boolean | undefined;
|
|
3513
3513
|
} | {
|
|
3514
3514
|
kind: "blank";
|
|
@@ -3661,8 +3661,8 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3661
3661
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3662
3662
|
backgroundColor?: string | undefined;
|
|
3663
3663
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3664
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3665
3664
|
textColor?: string | undefined;
|
|
3665
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3666
3666
|
} | undefined;
|
|
3667
3667
|
enabled?: boolean | undefined;
|
|
3668
3668
|
}, {
|
|
@@ -3752,11 +3752,6 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3752
3752
|
value: string;
|
|
3753
3753
|
kind: "exact_number";
|
|
3754
3754
|
} | null;
|
|
3755
|
-
min: string | number | boolean | {
|
|
3756
|
-
type: "integer" | "decimal";
|
|
3757
|
-
value: string;
|
|
3758
|
-
kind: "exact_number";
|
|
3759
|
-
} | null;
|
|
3760
3755
|
column: {
|
|
3761
3756
|
kind: "field";
|
|
3762
3757
|
fieldId: string;
|
|
@@ -3779,6 +3774,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3779
3774
|
kind: "matrixLevel";
|
|
3780
3775
|
levelId: string;
|
|
3781
3776
|
};
|
|
3777
|
+
min: string | number | boolean | {
|
|
3778
|
+
type: "integer" | "decimal";
|
|
3779
|
+
value: string;
|
|
3780
|
+
kind: "exact_number";
|
|
3781
|
+
} | null;
|
|
3782
3782
|
inclusive?: boolean | undefined;
|
|
3783
3783
|
} | {
|
|
3784
3784
|
kind: "blank";
|
|
@@ -3931,8 +3931,8 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3931
3931
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
3932
3932
|
backgroundColor?: string | undefined;
|
|
3933
3933
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
3934
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3935
3934
|
textColor?: string | undefined;
|
|
3935
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
3936
3936
|
} | undefined;
|
|
3937
3937
|
enabled?: boolean | undefined;
|
|
3938
3938
|
}>, "many">;
|
|
@@ -4025,11 +4025,6 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4025
4025
|
value: string;
|
|
4026
4026
|
kind: "exact_number";
|
|
4027
4027
|
} | null;
|
|
4028
|
-
min: string | number | boolean | {
|
|
4029
|
-
type: "integer" | "decimal";
|
|
4030
|
-
value: string;
|
|
4031
|
-
kind: "exact_number";
|
|
4032
|
-
} | null;
|
|
4033
4028
|
column: {
|
|
4034
4029
|
kind: "field";
|
|
4035
4030
|
fieldId: string;
|
|
@@ -4052,6 +4047,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4052
4047
|
kind: "matrixLevel";
|
|
4053
4048
|
levelId: string;
|
|
4054
4049
|
};
|
|
4050
|
+
min: string | number | boolean | {
|
|
4051
|
+
type: "integer" | "decimal";
|
|
4052
|
+
value: string;
|
|
4053
|
+
kind: "exact_number";
|
|
4054
|
+
} | null;
|
|
4055
4055
|
inclusive?: boolean | undefined;
|
|
4056
4056
|
} | {
|
|
4057
4057
|
kind: "blank";
|
|
@@ -4204,8 +4204,8 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4204
4204
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
4205
4205
|
backgroundColor?: string | undefined;
|
|
4206
4206
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
4207
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
4208
4207
|
textColor?: string | undefined;
|
|
4208
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
4209
4209
|
} | undefined;
|
|
4210
4210
|
enabled?: boolean | undefined;
|
|
4211
4211
|
}[];
|
|
@@ -4298,11 +4298,6 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4298
4298
|
value: string;
|
|
4299
4299
|
kind: "exact_number";
|
|
4300
4300
|
} | null;
|
|
4301
|
-
min: string | number | boolean | {
|
|
4302
|
-
type: "integer" | "decimal";
|
|
4303
|
-
value: string;
|
|
4304
|
-
kind: "exact_number";
|
|
4305
|
-
} | null;
|
|
4306
4301
|
column: {
|
|
4307
4302
|
kind: "field";
|
|
4308
4303
|
fieldId: string;
|
|
@@ -4325,6 +4320,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4325
4320
|
kind: "matrixLevel";
|
|
4326
4321
|
levelId: string;
|
|
4327
4322
|
};
|
|
4323
|
+
min: string | number | boolean | {
|
|
4324
|
+
type: "integer" | "decimal";
|
|
4325
|
+
value: string;
|
|
4326
|
+
kind: "exact_number";
|
|
4327
|
+
} | null;
|
|
4328
4328
|
inclusive?: boolean | undefined;
|
|
4329
4329
|
} | {
|
|
4330
4330
|
kind: "blank";
|
|
@@ -4477,8 +4477,8 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4477
4477
|
fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
|
|
4478
4478
|
backgroundColor?: string | undefined;
|
|
4479
4479
|
icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
|
|
4480
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
4481
4480
|
textColor?: string | undefined;
|
|
4481
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
4482
4482
|
} | undefined;
|
|
4483
4483
|
enabled?: boolean | undefined;
|
|
4484
4484
|
}[];
|
|
@@ -197,7 +197,7 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
|
|
|
197
197
|
valueColumn: string;
|
|
198
198
|
labelColumn?: string | undefined;
|
|
199
199
|
};
|
|
200
|
-
scope: "
|
|
200
|
+
scope: "card" | "dashboard";
|
|
201
201
|
initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
|
|
202
202
|
requiredAtExecution: boolean;
|
|
203
203
|
defaultValue?: unknown;
|
|
@@ -240,7 +240,7 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
|
|
|
240
240
|
valueColumn: string;
|
|
241
241
|
labelColumn?: string | undefined;
|
|
242
242
|
};
|
|
243
|
-
scope: "
|
|
243
|
+
scope: "card" | "dashboard";
|
|
244
244
|
initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
|
|
245
245
|
requiredAtExecution: boolean;
|
|
246
246
|
defaultValue?: unknown;
|
|
@@ -283,7 +283,7 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
|
|
|
283
283
|
valueColumn: string;
|
|
284
284
|
labelColumn?: string | undefined;
|
|
285
285
|
};
|
|
286
|
-
scope: "
|
|
286
|
+
scope: "card" | "dashboard";
|
|
287
287
|
initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
|
|
288
288
|
requiredAtExecution: boolean;
|
|
289
289
|
defaultValue?: unknown;
|
|
@@ -326,7 +326,7 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
|
|
|
326
326
|
valueColumn: string;
|
|
327
327
|
labelColumn?: string | undefined;
|
|
328
328
|
};
|
|
329
|
-
scope: "
|
|
329
|
+
scope: "card" | "dashboard";
|
|
330
330
|
initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
|
|
331
331
|
requiredAtExecution: boolean;
|
|
332
332
|
defaultValue?: unknown;
|
|
@@ -14,29 +14,29 @@ export declare function captureMatrixExport(input: {
|
|
|
14
14
|
presentation: {
|
|
15
15
|
totals: {
|
|
16
16
|
columns: {
|
|
17
|
-
grand: {
|
|
18
|
-
visible: boolean;
|
|
19
|
-
position: "before" | "after";
|
|
20
|
-
label?: string | undefined;
|
|
21
|
-
};
|
|
22
17
|
levels: Readonly<Record<string, {
|
|
23
|
-
visible: boolean;
|
|
24
18
|
position: "before" | "after";
|
|
19
|
+
visible: boolean;
|
|
25
20
|
label?: string | undefined;
|
|
26
21
|
}>>;
|
|
27
|
-
skipRedundant?: boolean | undefined;
|
|
28
|
-
};
|
|
29
|
-
rows: {
|
|
30
22
|
grand: {
|
|
31
|
-
visible: boolean;
|
|
32
23
|
position: "before" | "after";
|
|
24
|
+
visible: boolean;
|
|
33
25
|
label?: string | undefined;
|
|
34
26
|
};
|
|
27
|
+
skipRedundant?: boolean | undefined;
|
|
28
|
+
};
|
|
29
|
+
rows: {
|
|
35
30
|
levels: Readonly<Record<string, {
|
|
36
|
-
visible: boolean;
|
|
37
31
|
position: "before" | "after";
|
|
32
|
+
visible: boolean;
|
|
38
33
|
label?: string | undefined;
|
|
39
34
|
}>>;
|
|
35
|
+
grand: {
|
|
36
|
+
position: "before" | "after";
|
|
37
|
+
visible: boolean;
|
|
38
|
+
label?: string | undefined;
|
|
39
|
+
};
|
|
40
40
|
skipRedundant?: boolean | undefined;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
@@ -128,8 +128,8 @@ export declare function captureMatrixExport(input: {
|
|
|
128
128
|
}[];
|
|
129
129
|
};
|
|
130
130
|
levelId: string;
|
|
131
|
-
axis: "columns" | "rows";
|
|
132
131
|
direction: "asc" | "desc";
|
|
132
|
+
axis: "columns" | "rows";
|
|
133
133
|
nulls: "last" | "first";
|
|
134
134
|
}[];
|
|
135
135
|
rankings: readonly import('../analytics-protocol/index.js').MatrixRanking[];
|
|
@@ -189,29 +189,29 @@ export declare function captureMatrixExport(input: {
|
|
|
189
189
|
presentation: {
|
|
190
190
|
totals: {
|
|
191
191
|
columns: {
|
|
192
|
-
grand: {
|
|
193
|
-
visible: boolean;
|
|
194
|
-
position: "before" | "after";
|
|
195
|
-
label?: string | undefined;
|
|
196
|
-
};
|
|
197
192
|
levels: Readonly<Record<string, {
|
|
198
|
-
visible: boolean;
|
|
199
193
|
position: "before" | "after";
|
|
194
|
+
visible: boolean;
|
|
200
195
|
label?: string | undefined;
|
|
201
196
|
}>>;
|
|
202
|
-
skipRedundant?: boolean | undefined;
|
|
203
|
-
};
|
|
204
|
-
rows: {
|
|
205
197
|
grand: {
|
|
206
|
-
visible: boolean;
|
|
207
198
|
position: "before" | "after";
|
|
199
|
+
visible: boolean;
|
|
208
200
|
label?: string | undefined;
|
|
209
201
|
};
|
|
202
|
+
skipRedundant?: boolean | undefined;
|
|
203
|
+
};
|
|
204
|
+
rows: {
|
|
210
205
|
levels: Readonly<Record<string, {
|
|
211
|
-
visible: boolean;
|
|
212
206
|
position: "before" | "after";
|
|
207
|
+
visible: boolean;
|
|
213
208
|
label?: string | undefined;
|
|
214
209
|
}>>;
|
|
210
|
+
grand: {
|
|
211
|
+
position: "before" | "after";
|
|
212
|
+
visible: boolean;
|
|
213
|
+
label?: string | undefined;
|
|
214
|
+
};
|
|
215
215
|
skipRedundant?: boolean | undefined;
|
|
216
216
|
};
|
|
217
217
|
};
|
|
@@ -303,8 +303,8 @@ export declare function captureMatrixExport(input: {
|
|
|
303
303
|
}[];
|
|
304
304
|
};
|
|
305
305
|
levelId: string;
|
|
306
|
-
axis: "columns" | "rows";
|
|
307
306
|
direction: "asc" | "desc";
|
|
307
|
+
axis: "columns" | "rows";
|
|
308
308
|
nulls: "last" | "first";
|
|
309
309
|
}[];
|
|
310
310
|
rankings: readonly import('../analytics-protocol/index.js').MatrixRanking[];
|
|
@@ -446,29 +446,29 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
446
446
|
presentation: {
|
|
447
447
|
totals: {
|
|
448
448
|
columns: {
|
|
449
|
-
grand: {
|
|
450
|
-
visible: boolean;
|
|
451
|
-
position: "before" | "after";
|
|
452
|
-
label?: string | undefined;
|
|
453
|
-
};
|
|
454
449
|
levels: Readonly<Record<string, {
|
|
455
|
-
visible: boolean;
|
|
456
450
|
position: "before" | "after";
|
|
451
|
+
visible: boolean;
|
|
457
452
|
label?: string | undefined;
|
|
458
453
|
}>>;
|
|
459
|
-
skipRedundant?: boolean | undefined;
|
|
460
|
-
};
|
|
461
|
-
rows: {
|
|
462
454
|
grand: {
|
|
463
|
-
visible: boolean;
|
|
464
455
|
position: "before" | "after";
|
|
456
|
+
visible: boolean;
|
|
465
457
|
label?: string | undefined;
|
|
466
458
|
};
|
|
459
|
+
skipRedundant?: boolean | undefined;
|
|
460
|
+
};
|
|
461
|
+
rows: {
|
|
467
462
|
levels: Readonly<Record<string, {
|
|
468
|
-
visible: boolean;
|
|
469
463
|
position: "before" | "after";
|
|
464
|
+
visible: boolean;
|
|
470
465
|
label?: string | undefined;
|
|
471
466
|
}>>;
|
|
467
|
+
grand: {
|
|
468
|
+
position: "before" | "after";
|
|
469
|
+
visible: boolean;
|
|
470
|
+
label?: string | undefined;
|
|
471
|
+
};
|
|
472
472
|
skipRedundant?: boolean | undefined;
|
|
473
473
|
};
|
|
474
474
|
};
|
|
@@ -560,8 +560,8 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
560
560
|
}[];
|
|
561
561
|
};
|
|
562
562
|
levelId: string;
|
|
563
|
-
axis: "columns" | "rows";
|
|
564
563
|
direction: "asc" | "desc";
|
|
564
|
+
axis: "columns" | "rows";
|
|
565
565
|
nulls: "last" | "first";
|
|
566
566
|
}[];
|
|
567
567
|
rankings: readonly import('../analytics-protocol/index.js').MatrixRanking[];
|
|
@@ -621,29 +621,29 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
621
621
|
presentation: {
|
|
622
622
|
totals: {
|
|
623
623
|
columns: {
|
|
624
|
-
grand: {
|
|
625
|
-
visible: boolean;
|
|
626
|
-
position: "before" | "after";
|
|
627
|
-
label?: string | undefined;
|
|
628
|
-
};
|
|
629
624
|
levels: Readonly<Record<string, {
|
|
630
|
-
visible: boolean;
|
|
631
625
|
position: "before" | "after";
|
|
626
|
+
visible: boolean;
|
|
632
627
|
label?: string | undefined;
|
|
633
628
|
}>>;
|
|
634
|
-
skipRedundant?: boolean | undefined;
|
|
635
|
-
};
|
|
636
|
-
rows: {
|
|
637
629
|
grand: {
|
|
638
|
-
visible: boolean;
|
|
639
630
|
position: "before" | "after";
|
|
631
|
+
visible: boolean;
|
|
640
632
|
label?: string | undefined;
|
|
641
633
|
};
|
|
634
|
+
skipRedundant?: boolean | undefined;
|
|
635
|
+
};
|
|
636
|
+
rows: {
|
|
642
637
|
levels: Readonly<Record<string, {
|
|
643
|
-
visible: boolean;
|
|
644
638
|
position: "before" | "after";
|
|
639
|
+
visible: boolean;
|
|
645
640
|
label?: string | undefined;
|
|
646
641
|
}>>;
|
|
642
|
+
grand: {
|
|
643
|
+
position: "before" | "after";
|
|
644
|
+
visible: boolean;
|
|
645
|
+
label?: string | undefined;
|
|
646
|
+
};
|
|
647
647
|
skipRedundant?: boolean | undefined;
|
|
648
648
|
};
|
|
649
649
|
};
|
|
@@ -735,8 +735,8 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
735
735
|
}[];
|
|
736
736
|
};
|
|
737
737
|
levelId: string;
|
|
738
|
-
axis: "columns" | "rows";
|
|
739
738
|
direction: "asc" | "desc";
|
|
739
|
+
axis: "columns" | "rows";
|
|
740
740
|
nulls: "last" | "first";
|
|
741
741
|
}[];
|
|
742
742
|
rankings: readonly import('../analytics-protocol/index.js').MatrixRanking[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TCardPreferences } from '../../../lib/types/common-types.js';
|
|
1
|
+
import { TCard, TCardPreferences } from '../../../lib/types/common-types.js';
|
|
2
2
|
/**
|
|
3
3
|
* The plain sentences the reducer returns for what it did (MCP dashboard
|
|
4
4
|
* editing SPEC 3.8). The reducer writes one clause per thing that changed;
|
|
@@ -18,11 +18,17 @@ export declare function joinClauses(clauses: readonly SentenceClause[]): string;
|
|
|
18
18
|
export declare const quoted: (text: string | undefined) => string;
|
|
19
19
|
/** The short type name a new card's sentence carries: "(bar)", "(detail table)", "(KPI)". */
|
|
20
20
|
export declare function cardTypeShortName(chartType: string | undefined): string;
|
|
21
|
+
/**
|
|
22
|
+
* A card's type as a sentence names it: the short name, and a custom visual
|
|
23
|
+
* by its manifest's name when its code is in hand ("Custom visual: Sankey").
|
|
24
|
+
*/
|
|
25
|
+
export declare function cardTypeLabel(card: Pick<TCard, 'type' | 'customVisual'> | undefined): string;
|
|
21
26
|
/** "x axis settings", "tooltip settings": a dropped chart preference as a person reads it. */
|
|
22
27
|
export declare function preferenceLabel(key: keyof TCardPreferences | string): string;
|
|
23
28
|
export declare function listPhrase(items: readonly string[]): string;
|
|
24
29
|
export declare const clauses: {
|
|
25
|
-
|
|
30
|
+
/** `typeName` as `cardTypeLabel` gives it ("bar", "KPI", "Custom visual: Sankey"). */
|
|
31
|
+
added(title: string | undefined, typeName: string, sheet: string, detail?: string, place?: string): SentenceClause;
|
|
26
32
|
/** Arrange (responsive layouts SPEC §6.5). */
|
|
27
33
|
arranged(sheet: string, keepOrder: boolean, empty: boolean): SentenceClause;
|
|
28
34
|
removed(title: string | undefined, sheet: string): SentenceClause;
|
|
@@ -13,6 +13,8 @@ import { DashboardRelationshipReachResolver } from '../../../lib/query-context/d
|
|
|
13
13
|
import { CardQueryPart, StatedLabel } from '../changes/card-query-part.js';
|
|
14
14
|
import { FramePlacement } from '../../layouts/index.js';
|
|
15
15
|
import { DashboardStyle } from '../dashboard-style/index.js';
|
|
16
|
+
import { CustomVisualCardSpec } from '../../extensions/types.js';
|
|
17
|
+
import { CustomVisualWording } from '../changes/custom-visual-change.js';
|
|
16
18
|
/**
|
|
17
19
|
* The resolved operations the dashboard reducer applies (MCP dashboard
|
|
18
20
|
* editing SPEC 3.3, 3.8). Every id an operation creates is in it; the reducer
|
|
@@ -67,6 +69,15 @@ export type CardUpdate =
|
|
|
67
69
|
kind: 'text';
|
|
68
70
|
richContent: TextCardRichContent;
|
|
69
71
|
clearsLegacy: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A custom visual's code, slots and settings as the one writer made them
|
|
75
|
+
* (custom visuals EXT-D14); `wording` is what changed, for the sentence.
|
|
76
|
+
*/
|
|
77
|
+
| {
|
|
78
|
+
kind: 'customVisual';
|
|
79
|
+
customVisual: CustomVisualCardSpec;
|
|
80
|
+
wording: CustomVisualWording;
|
|
70
81
|
};
|
|
71
82
|
/** Everything the editor's "Done", Save & Apply and Apply Local commit persists, as one operation (DE-D13). */
|
|
72
83
|
export type FrameCommit = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OutlineCustomVisual } from '../changes/custom-visual-change.js';
|
|
1
2
|
import { DashboardRelationshipReachResolver } from '../../../lib/query-context/dashboard-filter-mapping-resolution.js';
|
|
2
3
|
import { TDashboard } from '../../../lib/types/common-types.js';
|
|
3
4
|
import { DocumentRegionTextRole } from '../../../lib/document/document-edits.js';
|
|
@@ -47,6 +48,8 @@ export type OutlineViewer = {
|
|
|
47
48
|
* Without one, over the defaults alone.
|
|
48
49
|
*/
|
|
49
50
|
organizationAppearance?: AppearanceSpec | null;
|
|
51
|
+
/** Server side only: the names of this dashboard's saved custom visuals, by extension id (EXT-D13). */
|
|
52
|
+
customVisualNames?: Readonly<Record<string, string>>;
|
|
50
53
|
};
|
|
51
54
|
/**
|
|
52
55
|
* The dashboard's style (dashboard style SPEC §6): what it sets itself, in
|
|
@@ -73,6 +76,8 @@ export type OutlineCard = ({
|
|
|
73
76
|
timeWindowReadOnly?: AgentTimeWindowRefusal;
|
|
74
77
|
/** The filters pinned on the card, in order: filter.update and filter.remove take their ids (table column filters Phase 5). */
|
|
75
78
|
pinnedFilters?: OutlinePinnedFilter[];
|
|
79
|
+
/** A custom visual card's visual, without its HTML (EXT-D13; semaphor_get_extension_contract returns the HTML). */
|
|
80
|
+
visual?: OutlineCustomVisual;
|
|
76
81
|
} & CardTypeProperties &
|
|
77
82
|
/** How the card reads and shows, in the shape a change takes; absent when the outline is truncated (card appearance SPEC 3.2). */
|
|
78
83
|
Partial<CardSettingsView>) | OutlineTextCard | ({
|
|
@@ -87,6 +92,8 @@ Partial<CardSettingsView>) | OutlineTextCard | ({
|
|
|
87
92
|
message: string;
|
|
88
93
|
detail?: string;
|
|
89
94
|
};
|
|
95
|
+
/** A custom visual card's visual: it changes through card.update customVisual even when the query can't (EXT-D27). */
|
|
96
|
+
visual?: OutlineCustomVisual;
|
|
90
97
|
} & CardTypeProperties);
|
|
91
98
|
/** A text card's words, in the subset a change takes (building a report SPEC §2.3, read by the words owner, S-10). */
|
|
92
99
|
export type OutlineTextCard = {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The checks' audits (custom visuals Plan 1, Phase 4; spec §3.9), moved here
|
|
3
|
+
* from the bench (`scripts/custom-visuals-bench`), which now imports them:
|
|
4
|
+
* one copy. `auditFrame` and `auditOverflow` run inside a rendered visual's
|
|
5
|
+
* frame; `lintSource` reads the HTML. `checkFindings` turns their results
|
|
6
|
+
* into the fix list (EXT-D17).
|
|
7
|
+
*/
|
|
8
|
+
export declare function auditFrame({ cardBg, brandFamily }: {
|
|
9
|
+
cardBg: any;
|
|
10
|
+
brandFamily: any;
|
|
11
|
+
}): {
|
|
12
|
+
textCount: number;
|
|
13
|
+
brandFont: number;
|
|
14
|
+
otherFonts: {};
|
|
15
|
+
below45: number;
|
|
16
|
+
min: number;
|
|
17
|
+
worst: never[];
|
|
18
|
+
};
|
|
19
|
+
export declare function auditOverflow(): {
|
|
20
|
+
pageScroll: number;
|
|
21
|
+
clipped: never[];
|
|
22
|
+
scrollRegions: never[];
|
|
23
|
+
overlaps: never[];
|
|
24
|
+
tinyText: number;
|
|
25
|
+
};
|
|
26
|
+
export declare function lintSource(html: any): {
|
|
27
|
+
hardcodedColours: any;
|
|
28
|
+
externalScripts: any[];
|
|
29
|
+
formatsNumbersItself: boolean;
|
|
30
|
+
};
|