react-semaphor 0.1.569 → 0.1.570

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 (112) hide show
  1. package/dist/appearance/index.js +6 -3
  2. package/dist/appearance-runtime/index.js +1 -1
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +570 -432
  5. package/dist/briefings/index.js +2 -2
  6. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  7. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  8. package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
  9. package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
  10. package/dist/chunks/brand-B4BdpAB_.js +54 -0
  11. package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-0VvKmRst.js} +72 -72
  12. package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
  13. package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-DxGIr1vZ.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-B-quOOOQ.js} +183 -182
  15. package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-Caodx80b.js} +285 -280
  16. package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-Ct-AGDHF.js} +3 -3
  17. package/dist/chunks/{dates-BsPrWZIP.js → dates-B9mL8BHE.js} +13 -12
  18. package/dist/chunks/edit-Bpdh_P_a.js +226 -0
  19. package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-DeDTuYB5.js} +2256 -2268
  20. package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-BSY33ro5.js} +1425 -1282
  21. package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
  22. package/dist/chunks/index-BVKzKl5d.js +90 -0
  23. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  24. package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
  25. package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
  26. package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
  27. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  28. package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
  29. package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
  30. package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
  31. package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-Yvhv3WX2.js} +79 -79
  32. package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
  33. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  34. package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
  35. package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
  36. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  37. package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-ByFvqHEO.js} +33935 -34031
  38. package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-CjoVaK6J.js} +50 -50
  39. package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
  40. package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
  41. package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
  42. package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
  43. package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
  44. package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-9-huI1h4.js} +2 -2
  45. package/dist/dashboard/index.js +1 -1
  46. package/dist/dashboard-authoring/index.js +1911 -1859
  47. package/dist/format-utils/index.js +8 -8
  48. package/dist/index.js +332 -335
  49. package/dist/layouts/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +1 -1
  52. package/dist/types/appearance/index.d.ts +1 -0
  53. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  54. package/dist/types/brand-studio/index.d.ts +1 -1
  55. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  56. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  57. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  58. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  59. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  60. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  61. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  62. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  63. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  64. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  65. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  66. package/dist/types/lib/appearance/index.d.ts +2 -0
  67. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  68. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  69. package/dist/types/lib/appearance/types.d.ts +38 -1
  70. package/dist/types/lib/charts/types.d.ts +6 -2
  71. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  72. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  73. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  74. package/dist/types/lib/download-pdf.d.ts +0 -1
  75. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  76. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  77. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  78. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  79. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  80. package/dist/types/lib/types/common-types.d.ts +3 -2
  81. package/dist/types/lib/types/summary-types.d.ts +0 -5
  82. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  83. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  84. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
  85. package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
  86. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
  87. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  88. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
  89. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
  90. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
  91. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  92. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  93. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  94. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  95. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  96. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
  97. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  98. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  99. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  100. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  101. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  102. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  103. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  104. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +20 -0
  105. package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
  106. package/package.json +6 -3
  107. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  108. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  109. package/dist/chunks/assistant-chat-Dzf2Mbph.js +0 -8847
  110. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  111. package/dist/chunks/index-CLIro-EG.js +0 -425
  112. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
@@ -3569,7 +3569,6 @@ declare const variablePresentationSchema: z.ZodObject<{
3569
3569
  percent?: boolean | undefined;
3570
3570
  decimals?: number | undefined;
3571
3571
  absolute?: boolean | undefined;
3572
- signWords?: [string, string, string] | undefined;
3573
3572
  temporal?: {
3574
3573
  mode: "style";
3575
3574
  dateStyle: "short" | "long" | "medium";
@@ -3581,11 +3580,11 @@ declare const variablePresentationSchema: z.ZodObject<{
3581
3580
  mode: "period_label";
3582
3581
  } | undefined;
3583
3582
  units?: [string, string] | undefined;
3583
+ signWords?: [string, string, string] | undefined;
3584
3584
  }, {
3585
3585
  percent?: boolean | undefined;
3586
3586
  decimals?: number | undefined;
3587
3587
  absolute?: boolean | undefined;
3588
- signWords?: [string, string, string] | undefined;
3589
3588
  temporal?: {
3590
3589
  mode: "style";
3591
3590
  dateStyle: "short" | "long" | "medium";
@@ -3597,6 +3596,7 @@ declare const variablePresentationSchema: z.ZodObject<{
3597
3596
  mode: "period_label";
3598
3597
  } | undefined;
3599
3598
  units?: [string, string] | undefined;
3599
+ signWords?: [string, string, string] | undefined;
3600
3600
  }>;
3601
3601
  /**
3602
3602
  * A chip's colours (data variables DV-D23, P3b-08): the highlight words card
@@ -3700,7 +3700,6 @@ declare const runPresentationSchema: z.ZodObject<{
3700
3700
  };
3701
3701
  color: string;
3702
3702
  }[] | undefined;
3703
- signWords?: [string, string, string] | undefined;
3704
3703
  temporal?: {
3705
3704
  mode: "style";
3706
3705
  dateStyle: "short" | "long" | "medium";
@@ -3712,6 +3711,7 @@ declare const runPresentationSchema: z.ZodObject<{
3712
3711
  mode: "period_label";
3713
3712
  } | undefined;
3714
3713
  units?: [string, string] | undefined;
3714
+ signWords?: [string, string, string] | undefined;
3715
3715
  }, {
3716
3716
  percent?: boolean | undefined;
3717
3717
  decimals?: number | undefined;
@@ -3723,7 +3723,6 @@ declare const runPresentationSchema: z.ZodObject<{
3723
3723
  };
3724
3724
  color: string;
3725
3725
  }[] | undefined;
3726
- signWords?: [string, string, string] | undefined;
3727
3726
  temporal?: {
3728
3727
  mode: "style";
3729
3728
  dateStyle: "short" | "long" | "medium";
@@ -3735,6 +3734,7 @@ declare const runPresentationSchema: z.ZodObject<{
3735
3734
  mode: "period_label";
3736
3735
  } | undefined;
3737
3736
  units?: [string, string] | undefined;
3737
+ signWords?: [string, string, string] | undefined;
3738
3738
  }>;
3739
3739
  declare const filterValueSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3740
3740
  /**
@@ -4344,11 +4344,11 @@ declare const variableGetSchema: z.ZodUnion<[z.ZodEnum<["only", "first", "list",
4344
4344
  limit: z.ZodOptional<z.ZodNumber>;
4345
4345
  separator: z.ZodOptional<z.ZodString>;
4346
4346
  }, "strict", z.ZodTypeAny, {
4347
- kind: "aggregate" | "first" | "only" | "list";
4347
+ kind: "aggregate" | "first" | "list" | "only";
4348
4348
  limit?: number | undefined;
4349
4349
  separator?: string | undefined;
4350
4350
  }, {
4351
- kind: "aggregate" | "first" | "only" | "list";
4351
+ kind: "aggregate" | "first" | "list" | "only";
4352
4352
  limit?: number | undefined;
4353
4353
  separator?: string | undefined;
4354
4354
  }>]>;
@@ -4441,12 +4441,12 @@ export declare const sheetChangeSchemas: readonly [z.ZodObject<{
4441
4441
  title: z.ZodString;
4442
4442
  }, "strict", z.ZodTypeAny, {
4443
4443
  title: string;
4444
- sheetId: string;
4445
4444
  op: "sheet.update";
4445
+ sheetId: string;
4446
4446
  }, {
4447
4447
  title: string;
4448
- sheetId: string;
4449
4448
  op: "sheet.update";
4449
+ sheetId: string;
4450
4450
  }>];
4451
4451
  /**
4452
4452
  * Cards in one spot as tabs, the first named shown, and a tab given its own
@@ -4472,6 +4472,95 @@ export declare const tabChangeSchemas: readonly [z.ZodObject<{
4472
4472
  cardId: string;
4473
4473
  op: "layout.untab";
4474
4474
  }>];
4475
+ /**
4476
+ * A dashboard's style in the one edit vocabulary (dashboard style SPEC §3.2,
4477
+ * §6): the Style panel's words, applied by `editDashboardStyle`. The schema
4478
+ * names the words; bounds, colours and palette sizes are the style owner's
4479
+ * to refuse, with their fix. Descriptions stay short: every caller pays for
4480
+ * them in every session (propose definition size).
4481
+ */
4482
+ export declare const dashboardStyleChangeSchema: z.ZodObject<{
4483
+ op: z.ZodLiteral<"dashboard.style">;
4484
+ reset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<["spacing", "canvasPadding", "canvas", "cards", "border", "shadow", "corners", "chartColors", "barCorners"]>, "many">]>>;
4485
+ spacing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').SpacingStep, ...import('../index.js').SpacingStep[]]>, z.ZodNumber]>>;
4486
+ canvasPadding: z.ZodOptional<z.ZodNumber>;
4487
+ cards: z.ZodOptional<z.ZodEnum<[import('../index.js').CardSurface, ...import('../index.js').CardSurface[]]>>;
4488
+ canvas: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
4489
+ light: z.ZodOptional<z.ZodTypeAny>;
4490
+ dark: z.ZodOptional<z.ZodTypeAny>;
4491
+ }, "strict", z.ZodTypeAny, {
4492
+ light?: any;
4493
+ dark?: any;
4494
+ }, {
4495
+ light?: any;
4496
+ dark?: any;
4497
+ }>]>>;
4498
+ border: z.ZodOptional<z.ZodEnum<["on", "off"]>>;
4499
+ shadow: z.ZodOptional<z.ZodEnum<["none", "subtle", "raised"]>>;
4500
+ corners: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').CornerStep, ...import('../index.js').CornerStep[]]>, z.ZodObject<{
4501
+ cards: z.ZodOptional<z.ZodNumber>;
4502
+ controls: z.ZodOptional<z.ZodNumber>;
4503
+ }, "strict", z.ZodTypeAny, {
4504
+ cards?: number | undefined;
4505
+ controls?: number | undefined;
4506
+ }, {
4507
+ cards?: number | undefined;
4508
+ controls?: number | undefined;
4509
+ }>]>>;
4510
+ chartColors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
4511
+ light: z.ZodOptional<z.ZodTypeAny>;
4512
+ dark: z.ZodOptional<z.ZodTypeAny>;
4513
+ }, "strict", z.ZodTypeAny, {
4514
+ light?: any;
4515
+ dark?: any;
4516
+ }, {
4517
+ light?: any;
4518
+ dark?: any;
4519
+ }>]>>;
4520
+ barCorners: z.ZodOptional<z.ZodNumber>;
4521
+ }, "strict", z.ZodTypeAny, {
4522
+ op: "dashboard.style";
4523
+ spacing?: number | import('../index.js').SpacingStep | undefined;
4524
+ canvasPadding?: number | undefined;
4525
+ canvas?: string | {
4526
+ light?: any;
4527
+ dark?: any;
4528
+ } | undefined;
4529
+ cards?: import('../index.js').CardSurface | undefined;
4530
+ border?: "on" | "off" | undefined;
4531
+ shadow?: "none" | "subtle" | "raised" | undefined;
4532
+ corners?: import('../index.js').CornerStep | {
4533
+ cards?: number | undefined;
4534
+ controls?: number | undefined;
4535
+ } | undefined;
4536
+ chartColors?: string[] | {
4537
+ light?: any;
4538
+ dark?: any;
4539
+ } | undefined;
4540
+ barCorners?: number | undefined;
4541
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
4542
+ }, {
4543
+ op: "dashboard.style";
4544
+ spacing?: number | import('../index.js').SpacingStep | undefined;
4545
+ canvasPadding?: number | undefined;
4546
+ canvas?: string | {
4547
+ light?: any;
4548
+ dark?: any;
4549
+ } | undefined;
4550
+ cards?: import('../index.js').CardSurface | undefined;
4551
+ border?: "on" | "off" | undefined;
4552
+ shadow?: "none" | "subtle" | "raised" | undefined;
4553
+ corners?: import('../index.js').CornerStep | {
4554
+ cards?: number | undefined;
4555
+ controls?: number | undefined;
4556
+ } | undefined;
4557
+ chartColors?: string[] | {
4558
+ light?: any;
4559
+ dark?: any;
4560
+ } | undefined;
4561
+ barCorners?: number | undefined;
4562
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
4563
+ }>;
4475
4564
  export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
4476
4565
  op: z.ZodLiteral<"card.add">;
4477
4566
  handle: z.ZodOptional<z.ZodString>;
@@ -4578,7 +4667,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4578
4667
  /** Card appearance: a card is born finished, with the settings `card.update` takes. */
4579
4668
  columns: z.ZodOptional<z.ZodTypeAny>;
4580
4669
  }, "strict", z.ZodTypeAny, {
4581
- type: "table" | "matrix" | "kpi" | "text" | "bar" | "line" | "area" | "pie" | "detail_table";
4670
+ type: "table" | "matrix" | "kpi" | "text" | "line" | "bar" | "area" | "pie" | "detail_table";
4582
4671
  title: string;
4583
4672
  op: "card.add";
4584
4673
  description?: string | undefined;
@@ -4600,15 +4689,15 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4600
4689
  })[];
4601
4690
  } | undefined;
4602
4691
  text?: any;
4603
- position?: "end" | "top" | {
4692
+ position?: "top" | "end" | {
4604
4693
  after: string;
4605
4694
  } | undefined;
4606
- query?: any;
4607
- sheetId?: string | undefined;
4608
4695
  width?: "quarter" | "full" | "half" | "third" | undefined;
4696
+ query?: any;
4609
4697
  handle?: string | undefined;
4698
+ sheetId?: string | undefined;
4610
4699
  }, {
4611
- type: "table" | "matrix" | "kpi" | "text" | "bar" | "line" | "area" | "pie" | "detail_table";
4700
+ type: "table" | "matrix" | "kpi" | "text" | "line" | "bar" | "area" | "pie" | "detail_table";
4612
4701
  title: string;
4613
4702
  op: "card.add";
4614
4703
  description?: string | undefined;
@@ -4630,13 +4719,13 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4630
4719
  })[];
4631
4720
  } | undefined;
4632
4721
  text?: any;
4633
- position?: "end" | "top" | {
4722
+ position?: "top" | "end" | {
4634
4723
  after: string;
4635
4724
  } | undefined;
4636
- query?: any;
4637
- sheetId?: string | undefined;
4638
4725
  width?: "quarter" | "full" | "half" | "third" | undefined;
4726
+ query?: any;
4639
4727
  handle?: string | undefined;
4728
+ sheetId?: string | undefined;
4640
4729
  }>, z.ZodObject<{
4641
4730
  op: z.ZodLiteral<"card.update">;
4642
4731
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
@@ -4976,7 +5065,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4976
5065
  }, "strict", z.ZodTypeAny, {
4977
5066
  cardId: string;
4978
5067
  op: "card.update";
4979
- type?: "table" | "matrix" | "kpi" | "bar" | "line" | "area" | "pie" | "detail_table" | undefined;
5068
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
4980
5069
  description?: string | null | undefined;
4981
5070
  columns?: any;
4982
5071
  matrix?: {
@@ -5244,7 +5333,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5244
5333
  }, {
5245
5334
  cardId: string;
5246
5335
  op: "card.update";
5247
- type?: "table" | "matrix" | "kpi" | "bar" | "line" | "area" | "pie" | "detail_table" | undefined;
5336
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
5248
5337
  description?: string | null | undefined;
5249
5338
  columns?: any;
5250
5339
  matrix?: {
@@ -5292,8 +5381,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5292
5381
  label: string;
5293
5382
  field: string;
5294
5383
  op: "filter.add";
5295
- defaultPeriod?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | undefined;
5296
5384
  selection?: "single" | "multiple" | undefined;
5385
+ defaultPeriod?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | undefined;
5297
5386
  defaultValues?: (string | number | boolean)[] | undefined;
5298
5387
  handle?: string | undefined;
5299
5388
  sheetIds?: string[] | undefined;
@@ -5303,8 +5392,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5303
5392
  label: string;
5304
5393
  field: string;
5305
5394
  op: "filter.add";
5306
- defaultPeriod?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | undefined;
5307
5395
  selection?: "single" | "multiple" | undefined;
5396
+ defaultPeriod?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | undefined;
5308
5397
  defaultValues?: (string | number | boolean)[] | undefined;
5309
5398
  handle?: string | undefined;
5310
5399
  sheetIds?: string[] | undefined;
@@ -5319,17 +5408,17 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5319
5408
  }, "strict", z.ZodTypeAny, {
5320
5409
  filterId: string;
5321
5410
  op: "filter.update";
5411
+ selection?: "single" | "multiple" | undefined;
5322
5412
  label?: string | undefined;
5323
5413
  defaultPeriod?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
5324
- selection?: "single" | "multiple" | undefined;
5325
5414
  defaultValues?: (string | number | boolean)[] | null | undefined;
5326
5415
  sheetIds?: string[] | null | undefined;
5327
5416
  }, {
5328
5417
  filterId: string;
5329
5418
  op: "filter.update";
5419
+ selection?: "single" | "multiple" | undefined;
5330
5420
  label?: string | undefined;
5331
5421
  defaultPeriod?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | null | undefined;
5332
- selection?: "single" | "multiple" | undefined;
5333
5422
  defaultValues?: (string | number | boolean)[] | null | undefined;
5334
5423
  sheetIds?: string[] | null | undefined;
5335
5424
  }>, z.ZodObject<{
@@ -5431,12 +5520,12 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5431
5520
  title: z.ZodString;
5432
5521
  }, "strict", z.ZodTypeAny, {
5433
5522
  title: string;
5434
- sheetId: string;
5435
5523
  op: "sheet.update";
5524
+ sheetId: string;
5436
5525
  }, {
5437
5526
  title: string;
5438
- sheetId: string;
5439
5527
  op: "sheet.update";
5528
+ sheetId: string;
5440
5529
  }>, z.ZodObject<{
5441
5530
  when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5442
5531
  color: z.ZodOptional<z.ZodString>;
@@ -5662,6 +5751,87 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5662
5751
  op: "dashboard.update";
5663
5752
  description?: string | null | undefined;
5664
5753
  title?: string | undefined;
5754
+ }>, z.ZodObject<{
5755
+ op: z.ZodLiteral<"dashboard.style">;
5756
+ reset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<["spacing", "canvasPadding", "canvas", "cards", "border", "shadow", "corners", "chartColors", "barCorners"]>, "many">]>>;
5757
+ spacing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').SpacingStep, ...import('../index.js').SpacingStep[]]>, z.ZodNumber]>>;
5758
+ canvasPadding: z.ZodOptional<z.ZodNumber>;
5759
+ cards: z.ZodOptional<z.ZodEnum<[import('../index.js').CardSurface, ...import('../index.js').CardSurface[]]>>;
5760
+ canvas: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
5761
+ light: z.ZodOptional<z.ZodTypeAny>;
5762
+ dark: z.ZodOptional<z.ZodTypeAny>;
5763
+ }, "strict", z.ZodTypeAny, {
5764
+ light?: any;
5765
+ dark?: any;
5766
+ }, {
5767
+ light?: any;
5768
+ dark?: any;
5769
+ }>]>>;
5770
+ border: z.ZodOptional<z.ZodEnum<["on", "off"]>>;
5771
+ shadow: z.ZodOptional<z.ZodEnum<["none", "subtle", "raised"]>>;
5772
+ corners: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').CornerStep, ...import('../index.js').CornerStep[]]>, z.ZodObject<{
5773
+ cards: z.ZodOptional<z.ZodNumber>;
5774
+ controls: z.ZodOptional<z.ZodNumber>;
5775
+ }, "strict", z.ZodTypeAny, {
5776
+ cards?: number | undefined;
5777
+ controls?: number | undefined;
5778
+ }, {
5779
+ cards?: number | undefined;
5780
+ controls?: number | undefined;
5781
+ }>]>>;
5782
+ chartColors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
5783
+ light: z.ZodOptional<z.ZodTypeAny>;
5784
+ dark: z.ZodOptional<z.ZodTypeAny>;
5785
+ }, "strict", z.ZodTypeAny, {
5786
+ light?: any;
5787
+ dark?: any;
5788
+ }, {
5789
+ light?: any;
5790
+ dark?: any;
5791
+ }>]>>;
5792
+ barCorners: z.ZodOptional<z.ZodNumber>;
5793
+ }, "strict", z.ZodTypeAny, {
5794
+ op: "dashboard.style";
5795
+ spacing?: number | import('../index.js').SpacingStep | undefined;
5796
+ canvasPadding?: number | undefined;
5797
+ canvas?: string | {
5798
+ light?: any;
5799
+ dark?: any;
5800
+ } | undefined;
5801
+ cards?: import('../index.js').CardSurface | undefined;
5802
+ border?: "on" | "off" | undefined;
5803
+ shadow?: "none" | "subtle" | "raised" | undefined;
5804
+ corners?: import('../index.js').CornerStep | {
5805
+ cards?: number | undefined;
5806
+ controls?: number | undefined;
5807
+ } | undefined;
5808
+ chartColors?: string[] | {
5809
+ light?: any;
5810
+ dark?: any;
5811
+ } | undefined;
5812
+ barCorners?: number | undefined;
5813
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
5814
+ }, {
5815
+ op: "dashboard.style";
5816
+ spacing?: number | import('../index.js').SpacingStep | undefined;
5817
+ canvasPadding?: number | undefined;
5818
+ canvas?: string | {
5819
+ light?: any;
5820
+ dark?: any;
5821
+ } | undefined;
5822
+ cards?: import('../index.js').CardSurface | undefined;
5823
+ border?: "on" | "off" | undefined;
5824
+ shadow?: "none" | "subtle" | "raised" | undefined;
5825
+ corners?: import('../index.js').CornerStep | {
5826
+ cards?: number | undefined;
5827
+ controls?: number | undefined;
5828
+ } | undefined;
5829
+ chartColors?: string[] | {
5830
+ light?: any;
5831
+ dark?: any;
5832
+ } | undefined;
5833
+ barCorners?: number | undefined;
5834
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
5665
5835
  }>, z.ZodObject<{
5666
5836
  op: z.ZodLiteral<"variable.add">;
5667
5837
  name: z.ZodString;
@@ -5672,11 +5842,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5672
5842
  limit: z.ZodOptional<z.ZodNumber>;
5673
5843
  separator: z.ZodOptional<z.ZodString>;
5674
5844
  }, "strict", z.ZodTypeAny, {
5675
- kind: "aggregate" | "first" | "only" | "list";
5845
+ kind: "aggregate" | "first" | "list" | "only";
5676
5846
  limit?: number | undefined;
5677
5847
  separator?: string | undefined;
5678
5848
  }, {
5679
- kind: "aggregate" | "first" | "only" | "list";
5849
+ kind: "aggregate" | "first" | "list" | "only";
5680
5850
  limit?: number | undefined;
5681
5851
  separator?: string | undefined;
5682
5852
  }>]>;
@@ -5718,7 +5888,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5718
5888
  percent?: boolean | undefined;
5719
5889
  decimals?: number | undefined;
5720
5890
  absolute?: boolean | undefined;
5721
- signWords?: [string, string, string] | undefined;
5722
5891
  temporal?: {
5723
5892
  mode: "style";
5724
5893
  dateStyle: "short" | "long" | "medium";
@@ -5730,11 +5899,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5730
5899
  mode: "period_label";
5731
5900
  } | undefined;
5732
5901
  units?: [string, string] | undefined;
5902
+ signWords?: [string, string, string] | undefined;
5733
5903
  }, {
5734
5904
  percent?: boolean | undefined;
5735
5905
  decimals?: number | undefined;
5736
5906
  absolute?: boolean | undefined;
5737
- signWords?: [string, string, string] | undefined;
5738
5907
  temporal?: {
5739
5908
  mode: "style";
5740
5909
  dateStyle: "short" | "long" | "medium";
@@ -5746,13 +5915,14 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5746
5915
  mode: "period_label";
5747
5916
  } | undefined;
5748
5917
  units?: [string, string] | undefined;
5918
+ signWords?: [string, string, string] | undefined;
5749
5919
  }>>;
5750
5920
  emptyText: z.ZodTypeAny;
5751
5921
  }, "strict", z.ZodTypeAny, {
5752
5922
  name: string;
5753
5923
  query: VariableQueryChange;
5754
- get: "aggregate" | "first" | "only" | "list" | {
5755
- kind: "aggregate" | "first" | "only" | "list";
5924
+ get: "aggregate" | "first" | "list" | "only" | {
5925
+ kind: "aggregate" | "first" | "list" | "only";
5756
5926
  limit?: number | undefined;
5757
5927
  separator?: string | undefined;
5758
5928
  };
@@ -5761,7 +5931,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5761
5931
  percent?: boolean | undefined;
5762
5932
  decimals?: number | undefined;
5763
5933
  absolute?: boolean | undefined;
5764
- signWords?: [string, string, string] | undefined;
5765
5934
  temporal?: {
5766
5935
  mode: "style";
5767
5936
  dateStyle: "short" | "long" | "medium";
@@ -5773,14 +5942,15 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5773
5942
  mode: "period_label";
5774
5943
  } | undefined;
5775
5944
  units?: [string, string] | undefined;
5945
+ signWords?: [string, string, string] | undefined;
5776
5946
  } | undefined;
5777
5947
  label?: any;
5778
5948
  emptyText?: any;
5779
5949
  }, {
5780
5950
  name: string;
5781
5951
  query: VariableQueryChange;
5782
- get: "aggregate" | "first" | "only" | "list" | {
5783
- kind: "aggregate" | "first" | "only" | "list";
5952
+ get: "aggregate" | "first" | "list" | "only" | {
5953
+ kind: "aggregate" | "first" | "list" | "only";
5784
5954
  limit?: number | undefined;
5785
5955
  separator?: string | undefined;
5786
5956
  };
@@ -5789,7 +5959,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5789
5959
  percent?: boolean | undefined;
5790
5960
  decimals?: number | undefined;
5791
5961
  absolute?: boolean | undefined;
5792
- signWords?: [string, string, string] | undefined;
5793
5962
  temporal?: {
5794
5963
  mode: "style";
5795
5964
  dateStyle: "short" | "long" | "medium";
@@ -5801,6 +5970,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5801
5970
  mode: "period_label";
5802
5971
  } | undefined;
5803
5972
  units?: [string, string] | undefined;
5973
+ signWords?: [string, string, string] | undefined;
5804
5974
  } | undefined;
5805
5975
  label?: any;
5806
5976
  emptyText?: any;
@@ -5815,11 +5985,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5815
5985
  limit: z.ZodOptional<z.ZodNumber>;
5816
5986
  separator: z.ZodOptional<z.ZodString>;
5817
5987
  }, "strict", z.ZodTypeAny, {
5818
- kind: "aggregate" | "first" | "only" | "list";
5988
+ kind: "aggregate" | "first" | "list" | "only";
5819
5989
  limit?: number | undefined;
5820
5990
  separator?: string | undefined;
5821
5991
  }, {
5822
- kind: "aggregate" | "first" | "only" | "list";
5992
+ kind: "aggregate" | "first" | "list" | "only";
5823
5993
  limit?: number | undefined;
5824
5994
  separator?: string | undefined;
5825
5995
  }>]>>;
@@ -5832,8 +6002,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5832
6002
  label?: any;
5833
6003
  emptyText?: any;
5834
6004
  query?: VariableQueryChange | undefined;
5835
- get?: "aggregate" | "first" | "only" | "list" | {
5836
- kind: "aggregate" | "first" | "only" | "list";
6005
+ get?: "aggregate" | "first" | "list" | "only" | {
6006
+ kind: "aggregate" | "first" | "list" | "only";
5837
6007
  limit?: number | undefined;
5838
6008
  separator?: string | undefined;
5839
6009
  } | undefined;
@@ -5845,8 +6015,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5845
6015
  label?: any;
5846
6016
  emptyText?: any;
5847
6017
  query?: VariableQueryChange | undefined;
5848
- get?: "aggregate" | "first" | "only" | "list" | {
5849
- kind: "aggregate" | "first" | "only" | "list";
6018
+ get?: "aggregate" | "first" | "list" | "only" | {
6019
+ kind: "aggregate" | "first" | "list" | "only";
5850
6020
  limit?: number | undefined;
5851
6021
  separator?: string | undefined;
5852
6022
  } | undefined;
@@ -5897,8 +6067,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5897
6067
  } | {
5898
6068
  sectionId: string;
5899
6069
  };
5900
- sheetId: string;
5901
6070
  op: "document.text.update";
6071
+ sheetId: string;
5902
6072
  text?: TextRun[] | undefined;
5903
6073
  style?: {
5904
6074
  size?: number | undefined;
@@ -5911,8 +6081,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5911
6081
  } | {
5912
6082
  sectionId: string;
5913
6083
  };
5914
- sheetId: string;
5915
6084
  op: "document.text.update";
6085
+ sheetId: string;
5916
6086
  text?: TextRun[] | undefined;
5917
6087
  style?: {
5918
6088
  size?: number | undefined;
@@ -1,4 +1,5 @@
1
1
  import { ProposedChange } from './dashboard-change.js';
2
+ import { StyleRefusal } from '../dashboard-style/index.js';
2
3
  export type ChangeProblemCode = 'invalid_change' | 'invalid_change_target' | 'copy_required' | 'not_permitted' | 'dashboard_not_found' | 'card_not_found' | 'filter_not_found' | 'sheet_not_found' | 'sheet_required' | 'sheet_not_a_grid' | 'field_not_found'
3
4
  /**
4
5
  * The card's datasets aren't joined by the domain's relationships, so the
@@ -43,7 +44,9 @@ export type ChangeProblemCode = 'invalid_change' | 'invalid_change_target' | 'co
43
44
  /** Tabs that can't be made: fewer than two cards, cards on two sheets, a Document section's card, a custom visual's input (building a report SPEC §7). */
44
45
  | 'layout_invalid'
45
46
  /** Text words the subset can't hold, or a token that isn't one of the card's variables (building a report SPEC §2.4, S-9). */
46
- | 'text_invalid' | DataVariableProblemCode;
47
+ | 'text_invalid'
48
+ /** A `dashboard.style` change the style owner refuses, with its own code and fix (dashboard style SPEC §4.3). */
49
+ | StyleRefusal['code'] | DataVariableProblemCode;
47
50
  export type ChangeWarningCode =
48
51
  /** In-scope cards the filter doesn't reach. */
49
52
  'filter_not_reaching_cards'
@@ -2,6 +2,7 @@ import { TCard, TDashboard } from '../../../lib/types/common-types.js';
2
2
  import { DataSource, Field } from '../../../lib/types/explorer-types.js';
3
3
  import { TChartType } from '../../../lib/charts/types.js';
4
4
  import { CalendarContext } from '../../report-runtime-context/index.js';
5
+ import { AppearanceSpec } from '../../../lib/appearance/types.js';
5
6
  import { DashboardRelationshipReachResolver } from '../../../lib/query-context/dashboard-filter-mapping-resolution.js';
6
7
  import { DashboardOperation, OperationContext, OperationDescription } from '../operations/apply-dashboard-operations.js';
7
8
  import { CardQueryPart } from './card-query-part.js';
@@ -98,6 +99,14 @@ export type ChangeServices = {
98
99
  card: TCard;
99
100
  dashboard: TDashboard;
100
101
  }): Promise<ComparisonDates>;
102
+ /**
103
+ * The organization's brand as stored (dashboard style SPEC §4.6): a
104
+ * `globalStyle`-only dashboard's style is converted against it, and the
105
+ * style inherits it normalized (`dashboardStyleLayers`), so a value equal to
106
+ * it isn't stored (DSI-2). Called only when a change states a style;
107
+ * without it, the dashboard inherits the defaults alone.
108
+ */
109
+ readOrganizationAppearance?(): Promise<AppearanceSpec | null>;
101
110
  };
102
111
  export type ChangeRef = {
103
112
  ref: string;