react-semaphor 0.1.569 → 0.1.571

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-SkCraw2C.js +5940 -0
  9. package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
  10. package/dist/chunks/brand-BoUV0iHF.js +54 -0
  11. package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-D-aSYpyr.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-B_w_ekUz.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-_g1m2tJ3.js} +183 -182
  15. package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-CY0gbcCt.js} +285 -280
  16. package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-DsM79yem.js} +3 -3
  17. package/dist/chunks/{dates-BsPrWZIP.js → dates-RSEzJ9N7.js} +13 -12
  18. package/dist/chunks/edit-9df1zOWe.js +226 -0
  19. package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-cX0FM-4i.js} +2256 -2268
  20. package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-thzt25Rc.js} +1303 -1226
  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-B_GXs91t.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-CBQamwQY.js} +33931 -34031
  38. package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-Bkjf0XXw.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-DvglU8yj.js} +2 -2
  45. package/dist/dashboard/index.js +1 -1
  46. package/dist/dashboard-authoring/index.js +2064 -1946
  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 -52
  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 +8 -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 +20 -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 +19 -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
@@ -1369,7 +1369,7 @@ export declare const conditionalRuleSchema: z.ZodObject<{
1369
1369
  }[] | undefined;
1370
1370
  } | undefined;
1371
1371
  depth?: number | undefined;
1372
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
1372
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1373
1373
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1374
1374
  includeTotals?: boolean | undefined;
1375
1375
  includeSubtotals?: boolean | undefined;
@@ -1416,7 +1416,7 @@ export declare const conditionalRuleSchema: z.ZodObject<{
1416
1416
  }[] | undefined;
1417
1417
  } | undefined;
1418
1418
  depth?: number | undefined;
1419
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
1419
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1420
1420
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1421
1421
  includeTotals?: boolean | undefined;
1422
1422
  includeSubtotals?: boolean | undefined;
@@ -1444,22 +1444,22 @@ export declare const conditionalRuleSchema: z.ZodObject<{
1444
1444
  showValue: boolean;
1445
1445
  } | undefined;
1446
1446
  italic?: boolean | undefined;
1447
- backgroundColor?: string | undefined;
1448
- textColor?: string | undefined;
1449
1447
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1448
+ backgroundColor?: string | undefined;
1450
1449
  textDecoration?: "none" | "underline" | "line-through" | undefined;
1451
1450
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
1451
+ textColor?: string | undefined;
1452
1452
  }, {
1453
1453
  dataBar?: {
1454
1454
  color: string;
1455
1455
  showValue: boolean;
1456
1456
  } | undefined;
1457
1457
  italic?: boolean | undefined;
1458
- backgroundColor?: string | undefined;
1459
- textColor?: string | undefined;
1460
1458
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1459
+ backgroundColor?: string | undefined;
1461
1460
  textDecoration?: "none" | "underline" | "line-through" | undefined;
1462
1461
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
1462
+ textColor?: string | undefined;
1463
1463
  }>>;
1464
1464
  }, "strict", z.ZodTypeAny, {
1465
1465
  id: string;
@@ -1506,7 +1506,7 @@ export declare const conditionalRuleSchema: z.ZodObject<{
1506
1506
  }[] | undefined;
1507
1507
  } | undefined;
1508
1508
  depth?: number | undefined;
1509
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
1509
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1510
1510
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1511
1511
  includeTotals?: boolean | undefined;
1512
1512
  includeSubtotals?: boolean | undefined;
@@ -1724,11 +1724,11 @@ export declare const conditionalRuleSchema: z.ZodObject<{
1724
1724
  showValue: boolean;
1725
1725
  } | undefined;
1726
1726
  italic?: boolean | undefined;
1727
- backgroundColor?: string | undefined;
1728
- textColor?: string | undefined;
1729
1727
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1728
+ backgroundColor?: string | undefined;
1730
1729
  textDecoration?: "none" | "underline" | "line-through" | undefined;
1731
1730
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
1731
+ textColor?: string | undefined;
1732
1732
  } | undefined;
1733
1733
  enabled?: boolean | undefined;
1734
1734
  }, {
@@ -1776,7 +1776,7 @@ export declare const conditionalRuleSchema: z.ZodObject<{
1776
1776
  }[] | undefined;
1777
1777
  } | undefined;
1778
1778
  depth?: number | undefined;
1779
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
1779
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1780
1780
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1781
1781
  includeTotals?: boolean | undefined;
1782
1782
  includeSubtotals?: boolean | undefined;
@@ -1994,11 +1994,11 @@ export declare const conditionalRuleSchema: z.ZodObject<{
1994
1994
  showValue: boolean;
1995
1995
  } | undefined;
1996
1996
  italic?: boolean | undefined;
1997
- backgroundColor?: string | undefined;
1998
- textColor?: string | undefined;
1999
1997
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1998
+ backgroundColor?: string | undefined;
2000
1999
  textDecoration?: "none" | "underline" | "line-through" | undefined;
2001
2000
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
2001
+ textColor?: string | undefined;
2002
2002
  } | undefined;
2003
2003
  enabled?: boolean | undefined;
2004
2004
  }>;
@@ -3303,7 +3303,7 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3303
3303
  }[] | undefined;
3304
3304
  } | undefined;
3305
3305
  depth?: number | undefined;
3306
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
3306
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3307
3307
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3308
3308
  includeTotals?: boolean | undefined;
3309
3309
  includeSubtotals?: boolean | undefined;
@@ -3350,7 +3350,7 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3350
3350
  }[] | undefined;
3351
3351
  } | undefined;
3352
3352
  depth?: number | undefined;
3353
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
3353
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3354
3354
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3355
3355
  includeTotals?: boolean | undefined;
3356
3356
  includeSubtotals?: boolean | undefined;
@@ -3378,22 +3378,22 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3378
3378
  showValue: boolean;
3379
3379
  } | undefined;
3380
3380
  italic?: boolean | undefined;
3381
- backgroundColor?: string | undefined;
3382
- textColor?: string | undefined;
3383
3381
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3382
+ backgroundColor?: string | undefined;
3384
3383
  textDecoration?: "none" | "underline" | "line-through" | undefined;
3385
3384
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3385
+ textColor?: string | undefined;
3386
3386
  }, {
3387
3387
  dataBar?: {
3388
3388
  color: string;
3389
3389
  showValue: boolean;
3390
3390
  } | undefined;
3391
3391
  italic?: boolean | undefined;
3392
- backgroundColor?: string | undefined;
3393
- textColor?: string | undefined;
3394
3392
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3393
+ backgroundColor?: string | undefined;
3395
3394
  textDecoration?: "none" | "underline" | "line-through" | undefined;
3396
3395
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3396
+ textColor?: string | undefined;
3397
3397
  }>>;
3398
3398
  }, "strict", z.ZodTypeAny, {
3399
3399
  id: string;
@@ -3440,7 +3440,7 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3440
3440
  }[] | undefined;
3441
3441
  } | undefined;
3442
3442
  depth?: number | undefined;
3443
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
3443
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3444
3444
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3445
3445
  includeTotals?: boolean | undefined;
3446
3446
  includeSubtotals?: boolean | undefined;
@@ -3658,11 +3658,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3658
3658
  showValue: boolean;
3659
3659
  } | undefined;
3660
3660
  italic?: boolean | undefined;
3661
- backgroundColor?: string | undefined;
3662
- textColor?: string | undefined;
3663
3661
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3662
+ backgroundColor?: string | undefined;
3664
3663
  textDecoration?: "none" | "underline" | "line-through" | undefined;
3665
3664
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3665
+ textColor?: string | undefined;
3666
3666
  } | undefined;
3667
3667
  enabled?: boolean | undefined;
3668
3668
  }, {
@@ -3710,7 +3710,7 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3710
3710
  }[] | undefined;
3711
3711
  } | undefined;
3712
3712
  depth?: number | undefined;
3713
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
3713
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3714
3714
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3715
3715
  includeTotals?: boolean | undefined;
3716
3716
  includeSubtotals?: boolean | undefined;
@@ -3928,11 +3928,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3928
3928
  showValue: boolean;
3929
3929
  } | undefined;
3930
3930
  italic?: boolean | undefined;
3931
- backgroundColor?: string | undefined;
3932
- textColor?: string | undefined;
3933
3931
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3932
+ backgroundColor?: string | undefined;
3934
3933
  textDecoration?: "none" | "underline" | "line-through" | undefined;
3935
3934
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3935
+ textColor?: string | undefined;
3936
3936
  } | undefined;
3937
3937
  enabled?: boolean | undefined;
3938
3938
  }>, "many">;
@@ -3983,7 +3983,7 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
3983
3983
  }[] | undefined;
3984
3984
  } | undefined;
3985
3985
  depth?: number | undefined;
3986
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
3986
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3987
3987
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3988
3988
  includeTotals?: boolean | undefined;
3989
3989
  includeSubtotals?: boolean | undefined;
@@ -4201,11 +4201,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
4201
4201
  showValue: boolean;
4202
4202
  } | undefined;
4203
4203
  italic?: boolean | undefined;
4204
- backgroundColor?: string | undefined;
4205
- textColor?: string | undefined;
4206
4204
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
4205
+ backgroundColor?: string | undefined;
4207
4206
  textDecoration?: "none" | "underline" | "line-through" | undefined;
4208
4207
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
4208
+ textColor?: string | undefined;
4209
4209
  } | undefined;
4210
4210
  enabled?: boolean | undefined;
4211
4211
  }[];
@@ -4256,7 +4256,7 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
4256
4256
  }[] | undefined;
4257
4257
  } | undefined;
4258
4258
  depth?: number | undefined;
4259
- tableParts?: ("subtotal" | "header" | "footer" | "body" | "grandTotal")[] | undefined;
4259
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
4260
4260
  rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
4261
4261
  includeTotals?: boolean | undefined;
4262
4262
  includeSubtotals?: boolean | undefined;
@@ -4474,11 +4474,11 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
4474
4474
  showValue: boolean;
4475
4475
  } | undefined;
4476
4476
  italic?: boolean | undefined;
4477
- backgroundColor?: string | undefined;
4478
- textColor?: string | undefined;
4479
4477
  fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
4478
+ backgroundColor?: string | undefined;
4480
4479
  textDecoration?: "none" | "underline" | "line-through" | undefined;
4481
4480
  icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
4481
+ textColor?: string | undefined;
4482
4482
  } | undefined;
4483
4483
  enabled?: boolean | undefined;
4484
4484
  }[];
@@ -198,8 +198,8 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
198
198
  labelColumn?: string | undefined;
199
199
  };
200
200
  scope: "dashboard" | "card";
201
- requiredAtExecution: boolean;
202
201
  initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
202
+ requiredAtExecution: boolean;
203
203
  defaultValue?: unknown;
204
204
  hidden?: boolean | undefined;
205
205
  locked?: boolean | undefined;
@@ -241,8 +241,8 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
241
241
  labelColumn?: string | undefined;
242
242
  };
243
243
  scope: "dashboard" | "card";
244
- requiredAtExecution: boolean;
245
244
  initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
245
+ requiredAtExecution: boolean;
246
246
  defaultValue?: unknown;
247
247
  hidden?: boolean | undefined;
248
248
  locked?: boolean | undefined;
@@ -284,8 +284,8 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
284
284
  labelColumn?: string | undefined;
285
285
  };
286
286
  scope: "dashboard" | "card";
287
- requiredAtExecution: boolean;
288
287
  initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
288
+ requiredAtExecution: boolean;
289
289
  defaultValue?: unknown;
290
290
  hidden?: boolean | undefined;
291
291
  locked?: boolean | undefined;
@@ -327,8 +327,8 @@ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<
327
327
  labelColumn?: string | undefined;
328
328
  };
329
329
  scope: "dashboard" | "card";
330
- requiredAtExecution: boolean;
331
330
  initialValueStrategy: "saved_default" | "embed_required" | "builtin" | "schedule_snapshot";
331
+ requiredAtExecution: boolean;
332
332
  defaultValue?: unknown;
333
333
  hidden?: boolean | undefined;
334
334
  locked?: boolean | undefined;
@@ -0,0 +1,17 @@
1
+ import { DashboardStyleField } from './types.js';
2
+ type NumberField = 'spacing' | 'canvasPadding' | 'cardCorners' | 'controlCorners' | 'barCorners';
3
+ /** Each number field's bounds and its name in sentences and refusals (SPEC §3.1). */
4
+ export declare const DASHBOARD_STYLE_NUMBER_BOUNDS: Readonly<Record<NumberField, {
5
+ min: number;
6
+ max: number;
7
+ label: string;
8
+ }>>;
9
+ export declare const CHART_COLORS_BOUNDS: {
10
+ readonly min: 1;
11
+ readonly max: 12;
12
+ };
13
+ /** "Spacing is 0 to 24 px.", "Card corners are 0 to 24 px." */
14
+ export declare function boundsSentence(field: NumberField): string;
15
+ export declare function isNumberField(field: DashboardStyleField): field is NumberField;
16
+ export declare function isHexColor(value: unknown): value is string;
17
+ export {};
@@ -0,0 +1,20 @@
1
+ import { AppearanceSpec } from '../../../lib/appearance/types.js';
2
+ import { DashboardStyleEdit, StyleMode, StyleRefusal } from './types.js';
3
+ /**
4
+ * The dashboard style vocabulary applied to an organization's brand (SPEC §4.4,
5
+ * DS-INV-4): the edit lands on the canonical paths, aliases of those properties are
6
+ * removed, and the spec is saved sparse (API-3). Brand Studio's other fields keep
7
+ * their own writers. Pure.
8
+ */
9
+ export declare function editBrandStyle(input: {
10
+ spec: AppearanceSpec | null;
11
+ edit: DashboardStyleEdit;
12
+ mode?: StyleMode;
13
+ }): {
14
+ ok: true;
15
+ spec: AppearanceSpec | null;
16
+ sentences: string[];
17
+ } | {
18
+ ok: false;
19
+ refusal: StyleRefusal;
20
+ };
@@ -0,0 +1,7 @@
1
+ import { DashboardStyle, DashboardStyleEdit } from './types.js';
2
+ /**
3
+ * A dashboard's style in `DashboardStyleEdit` words, as the MCP outline reads it
4
+ * back (SPEC §6): sent as an edit to an unstyled dashboard, it stores the same
5
+ * style. `{}` for a dashboard that sets nothing. Pure.
6
+ */
7
+ export declare function dashboardStyleAsEdit(style: DashboardStyle | undefined): DashboardStyleEdit;
@@ -0,0 +1,19 @@
1
+ import { AppearanceLayers } from '../../../lib/appearance/types.js';
2
+ import { DashboardStyle, DashboardStyleEdit, StyleEditOutcome, StyleMode, StyleRefusal } from './types.js';
3
+ /**
4
+ * The one writer of a dashboard's style (SPEC §4.3): checks the edit, applies the
5
+ * reset, then the pickers, then the explicit fields (SPEC §3.2), drops every value
6
+ * equal to what the dashboard inherits for its mode (DSI-2), and describes what
7
+ * changed. Host layers are ignored. Pure.
8
+ */
9
+ export declare function editDashboardStyle(input: {
10
+ style: DashboardStyle | undefined;
11
+ edit: DashboardStyleEdit;
12
+ layers: AppearanceLayers;
13
+ /** The editor's mode: a reset of a per-mode field clears only it. Omitted (an agent), a reset clears both modes. */
14
+ mode?: StyleMode;
15
+ }): StyleEditOutcome;
16
+ /** The edit's refusal, with its fix, or undefined when every part is valid. */
17
+ export declare function checkStyleEdit(edit: DashboardStyleEdit): StyleRefusal | undefined;
18
+ /** The edit applied to a style: reset, then pickers, then explicit fields (SPEC §3.2). Inherited values are not yet dropped. */
19
+ export declare function applyStyleEdit(style: DashboardStyle, edit: DashboardStyleEdit, mode: StyleMode | undefined): DashboardStyle;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The one owner of a dashboard's own style (dashboard style DS-D10, SPEC §1): the
3
+ * renderer, the Style panel, Brand Studio, the MCP, save validation, the GitHub
4
+ * restore and the backfill read and write it through these entry points.
5
+ */
6
+ export { parseDashboardStyle } from './parse.js';
7
+ export { convertLegacyStyle, type LegacyConversionNote } from './legacy.js';
8
+ export { resolveDashboardStyle } from './view.js';
9
+ export { editDashboardStyle } from './edit.js';
10
+ export { dashboardStyleAsEdit } from './edit-words.js';
11
+ export { editBrandStyle } from './brand.js';
12
+ export { dashboardStyleLayers } from './layers.js';
13
+ export { CARD_SURFACES, CORNER_STEPS, SPACING_STEPS } from './pickers.js';
14
+ export { DASHBOARD_STYLE_NUMBER_BOUNDS, CHART_COLORS_BOUNDS } from './bounds.js';
15
+ export type { CanvasFill, CardShadow, CardSurface, CornerStep, DashboardStyle, DashboardStyleEdit, DashboardStyleReading, DashboardStyleView, DashboardStyleField, DashboardStyleValues, HexColor, PerMode, SpacingStep, StyleEditOutcome, StyleIssue, StyleIssueCode, StyleLayerId, StyleMode, StyleRefusal, StyleResetWord, } from './types.js';
@@ -0,0 +1,20 @@
1
+ import { AppearanceSpec } from '../../../lib/appearance/types.js';
2
+ import { TDashboard } from '../../../lib/types/common-types.js';
3
+ import { DashboardStyle } from './types.js';
4
+ /**
5
+ * A dashboard's style and the brand under it, as the dashboard renders them
6
+ * (dashboard style SPEC §4.6): for `UXProvider`, the MCP's `dashboard.style`
7
+ * change and the outline:
8
+ *
9
+ * - the style: `dashboardStyle` read leniently (a `globalStyle` is converted
10
+ * only by the backfill and the GitHub restore since the cut-over, DS-D7);
11
+ * - the brand the style inherits (DSI-2, `shows`): the stored one normalized.
12
+ * The hosted backfill rewrote stored brands, where this changes nothing; a
13
+ * self-hosted brand is never rewritten (DS-D22), so it renders through here (DS-D32).
14
+ *
15
+ * Pure.
16
+ */
17
+ export declare function dashboardStyleLayers(dashboard: Pick<TDashboard, 'dashboardStyle'>, storedOrganizationAppearance: AppearanceSpec | null | undefined): {
18
+ style: DashboardStyle | undefined;
19
+ organizationAppearance: AppearanceSpec | null;
20
+ };
@@ -0,0 +1,21 @@
1
+ import { AppearanceSpec } from '../../../lib/appearance/types.js';
2
+ import { DashboardStyle, DashboardStyleField } from './types.js';
3
+ export type LegacyConversionNote = {
4
+ field: DashboardStyleField;
5
+ kind: 'clamped' | 'dropped_colour' | 'brand_wins' | 'equal_to_inherited';
6
+ detail: string;
7
+ };
8
+ /**
9
+ * A dashboard's `globalStyle` (Customize Dashboard) as a `DashboardStyle` that draws
10
+ * what it draws today under its organization's brand (SPEC §4.5, DS-INV-3). Total:
11
+ * never throws, never skips; out-of-bounds values are clamped, colours that aren't
12
+ * hex dropped, fields the brand wins today and values equal to what the dashboard
13
+ * inherits removed, each with a note. Pass the brand as stored, before it is normalized.
14
+ */
15
+ export declare function convertLegacyStyle(input: {
16
+ globalStyle: unknown;
17
+ organizationAppearance: AppearanceSpec | null;
18
+ }): {
19
+ style: DashboardStyle | undefined;
20
+ notes: LegacyConversionNote[];
21
+ };
@@ -0,0 +1,18 @@
1
+ import { DashboardStyle, StyleIssue } from './types.js';
2
+ /**
3
+ * A stored or submitted `dashboardStyle`, checked against SPEC §3.1 (DSI-1, DSI-3):
4
+ * colours lower-cased, empty containers removed. Strict (save) fails on any issue;
5
+ * lenient (load, render) drops the invalid fields and reports them, and never throws.
6
+ * Neither checks DSI-2, which needs the brand; writers keep it.
7
+ */
8
+ export declare function parseDashboardStyle(value: unknown, mode: 'strict'): {
9
+ ok: true;
10
+ style: DashboardStyle | undefined;
11
+ } | {
12
+ ok: false;
13
+ issues: StyleIssue[];
14
+ };
15
+ export declare function parseDashboardStyle(value: unknown, mode: 'lenient'): {
16
+ style: DashboardStyle | undefined;
17
+ dropped: StyleIssue[];
18
+ };
@@ -0,0 +1,12 @@
1
+ import { CanvasFill, CardShadow, CardSurface, CornerStep, SpacingStep } from './types.js';
2
+ /** What each picker option writes (SPEC §3.2, DS-D17, DS-D18). */
3
+ export declare const SPACING_STEPS: Readonly<Record<SpacingStep, number>>;
4
+ export declare const CARD_SURFACES: Readonly<Record<CardSurface, {
5
+ cardBorder: 'on' | 'off';
6
+ cardShadow: CardShadow;
7
+ canvas: CanvasFill;
8
+ }>>;
9
+ export declare const CORNER_STEPS: Readonly<Record<CornerStep, {
10
+ cardCorners: number;
11
+ controlCorners: number;
12
+ }>>;
@@ -0,0 +1,122 @@
1
+ /**
2
+ * A dashboard's own style, in BI words (dashboard style SPEC §3.1): only the fields
3
+ * that differ from what it inherits from the defaults and the organization's brand.
4
+ * Stored as `TDashboard.dashboardStyle`; absent means nothing changed.
5
+ */
6
+ export type HexColor = `#${string}`;
7
+ export type PerMode<T> = {
8
+ light?: T;
9
+ dark?: T;
10
+ };
11
+ export type StyleMode = 'light' | 'dark';
12
+ /** `muted` and `background` name the scheme's colour tokens; anything else is a colour. */
13
+ export type CanvasFill = 'muted' | 'background' | HexColor;
14
+ export type CardShadow = 'none' | 'subtle' | 'raised';
15
+ export type DashboardStyle = {
16
+ /** Gap between cards, px, integer 0..24. */
17
+ spacing?: number;
18
+ /** Canvas edge to cards, px, integer 0..48. */
19
+ canvasPadding?: number;
20
+ canvas?: PerMode<CanvasFill>;
21
+ cardBorder?: 'on' | 'off';
22
+ cardShadow?: CardShadow;
23
+ /** px, integer 0..24. */
24
+ cardCorners?: number;
25
+ /** px, integer 0..12. */
26
+ controlCorners?: number;
27
+ /** 1..12 colours. */
28
+ chartColors?: PerMode<HexColor[]>;
29
+ /** px, integer 0..24. */
30
+ barCorners?: number;
31
+ };
32
+ export type DashboardStyleField = keyof DashboardStyle;
33
+ /** Every field filled, for one mode. */
34
+ export type DashboardStyleValues = {
35
+ spacing: number;
36
+ canvasPadding: number;
37
+ canvas: CanvasFill;
38
+ cardBorder: 'on' | 'off';
39
+ cardShadow: CardShadow;
40
+ cardCorners: number;
41
+ controlCorners: number;
42
+ chartColors: HexColor[];
43
+ barCorners: number;
44
+ };
45
+ export type StyleIssueCode = 'unknown_field' | 'out_of_range' | 'not_integer' | 'invalid_colour' | 'palette_size' | 'invalid_value';
46
+ export type StyleIssue = {
47
+ field: string;
48
+ code: StyleIssueCode;
49
+ message: string;
50
+ };
51
+ /** The pickers' options (SPEC §3.2): what each writes is in `pickers.ts`. */
52
+ export type SpacingStep = 'none' | 'compact' | 'default' | 'roomy';
53
+ export type CardSurface = 'outlined' | 'raised' | 'open';
54
+ export type CornerStep = 'square' | 'subtle' | 'rounded' | 'round';
55
+ export type StyleResetWord = 'spacing' | 'canvasPadding' | 'canvas' | 'cards' | 'border' | 'shadow' | 'corners' | 'chartColors' | 'barCorners';
56
+ /** The one change vocabulary the panel, Brand Studio and the MCP speak (SPEC §3.2). */
57
+ export type DashboardStyleEdit = {
58
+ reset?: 'all' | StyleResetWord[];
59
+ /** A step sets the gap and the canvas padding together; a number sets the gap only. */
60
+ spacing?: SpacingStep | number;
61
+ canvasPadding?: number;
62
+ /** Border, shadow and canvas (both modes) together. */
63
+ cards?: CardSurface;
64
+ canvas?: CanvasFill | PerMode<CanvasFill>;
65
+ border?: 'on' | 'off';
66
+ shadow?: CardShadow;
67
+ corners?: CornerStep | {
68
+ cards?: number;
69
+ controls?: number;
70
+ };
71
+ chartColors?: HexColor[] | PerMode<HexColor[]>;
72
+ barCorners?: number;
73
+ };
74
+ export type StyleLayerId = 'defaults' | 'organization' | 'dashboard' | 'token' | 'react';
75
+ /**
76
+ * What a dashboard shows for one field, read from a resolved appearance. A brand or
77
+ * host may hold values a dashboard style can't (an hsl canvas, a CSS shadow): those
78
+ * read as they are, and a CSS shadow that is no step reads `custom`.
79
+ */
80
+ export type DashboardStyleReading = Omit<DashboardStyleValues, 'canvas' | 'cardShadow' | 'chartColors'> & {
81
+ canvas: CanvasFill | (string & {});
82
+ cardShadow: CardShadow | 'custom';
83
+ chartColors: string[];
84
+ };
85
+ /** Everything a reader needs for one mode (SPEC §3.4). */
86
+ export type DashboardStyleView = {
87
+ mode: StyleMode;
88
+ /** Every layer: what viewers of this page see. */
89
+ shows: DashboardStyleReading;
90
+ /** Defaults, organization and dashboard: what the dashboard shows wherever no host overrides it. */
91
+ authored: DashboardStyleReading;
92
+ /** Defaults and organization: what Reset returns to. */
93
+ inherited: DashboardStyleReading;
94
+ /** The layer that won each field in `shows` (DSV-1). */
95
+ source: Record<DashboardStyleField, StyleLayerId>;
96
+ /** Fields whose source is the token or the React prop. */
97
+ hostSet: DashboardStyleField[];
98
+ /** Fields the dashboard sets (per-mode fields: for this mode). */
99
+ changed: DashboardStyleField[];
100
+ /** Fields set, counting each mode of a per-mode field. */
101
+ changeCount: number;
102
+ /** From `authored`; null when no option matches (DSV-2). */
103
+ pickers: {
104
+ spacing: SpacingStep | null;
105
+ cards: CardSurface | null;
106
+ corners: CornerStep | null;
107
+ };
108
+ };
109
+ export type StyleRefusal = {
110
+ field: string;
111
+ code: StyleIssueCode | 'empty_edit';
112
+ message: string;
113
+ fix: string;
114
+ };
115
+ export type StyleEditOutcome = {
116
+ ok: true;
117
+ style: DashboardStyle | undefined;
118
+ sentences: string[];
119
+ } | {
120
+ ok: false;
121
+ refusal: StyleRefusal;
122
+ };
@@ -0,0 +1,10 @@
1
+ import { AppearanceLayers, NormalizedAppearanceSpec } from '../../../lib/appearance/types.js';
2
+ import { DashboardStyleReading, DashboardStyleView, StyleMode } from './types.js';
3
+ /**
4
+ * A dashboard's style for one mode in BI words (SPEC §4.2): what it shows with every
5
+ * layer, without the host's layers, and without its own style; which layer won each
6
+ * field; and which picker options match. Pure; never throws.
7
+ */
8
+ export declare function resolveDashboardStyle(layers: AppearanceLayers, mode: StyleMode): DashboardStyleView;
9
+ /** Every field as a resolved appearance draws it for a mode. */
10
+ export declare function readStyle(spec: NormalizedAppearanceSpec, mode: StyleMode): DashboardStyleReading;
@@ -76,3 +76,4 @@ export * from './filter-reach-preview.js';
76
76
  export * from './filter-reach-copy.js';
77
77
  export * from './variable-draft.js';
78
78
  export * from './variable-editability.js';
79
+ export * from './dashboard-style/index.js';
@@ -9,6 +9,7 @@ import { TChartType } from '../../../lib/charts/types.js';
9
9
  import { CalendarContext } from '../../report-runtime-context/index.js';
10
10
  import { CardQueryPart, StatedLabel } from '../changes/card-query-part.js';
11
11
  import { FramePlacement } from '../../layouts/index.js';
12
+ import { DashboardStyle } from '../dashboard-style/index.js';
12
13
  /**
13
14
  * The resolved operations the dashboard reducer applies (MCP dashboard
14
15
  * editing SPEC 3.3, 3.8). Every id an operation creates is in it; the reducer
@@ -135,6 +136,16 @@ export type DashboardOperation = ({
135
136
  title?: string;
136
137
  description?: string | null;
137
138
  }
139
+ /**
140
+ * The dashboard's own style as `editDashboardStyle` left it (dashboard style
141
+ * SPEC §4.3), absent when nothing is left, with that writer's sentences:
142
+ * apply sets it as resolved and says what the panel says.
143
+ */
144
+ | {
145
+ op: 'dashboard.style';
146
+ style?: DashboardStyle;
147
+ sentences: string[];
148
+ }
138
149
  /** A sheet at the end, its id from the resolver (building a report SPEC §4.1); the editor adds Document sheets too. */
139
150
  | {
140
151
  op: 'sheet.add';
@@ -11,6 +11,8 @@ import { CardQuery, MatrixColumns } from '../changes/dashboard-change.js';
11
11
  import { OutlineFilter } from './outline-filters.js';
12
12
  import { CalendarContext } from '../../report-runtime-context/index.js';
13
13
  import { AgentTimeWindowRefusal } from '../../analytics-protocol/agent-time-window.js';
14
+ import { AppearanceSpec } from '../../../lib/appearance/types.js';
15
+ import { DashboardStyleEdit, DashboardStyleReading } from '../dashboard-style/index.js';
14
16
  /**
15
17
  * A dashboard in the change vocabulary (MCP dashboard editing SPEC 3.6,
16
18
  * DE-D29, DE-D34): every sheet, every card the shared traversal lists
@@ -39,6 +41,21 @@ export type OutlineViewer = {
39
41
  * Without one, such cards are listed under `relationshipPending`.
40
42
  */
41
43
  relationshipReach?: DashboardRelationshipReachResolver;
44
+ /**
45
+ * Server side only: the organization's brand as stored (dashboard style
46
+ * SPEC §4.6). `shows` reads over it normalized, as the dashboard renders.
47
+ * Without one, over the defaults alone.
48
+ */
49
+ organizationAppearance?: AppearanceSpec | null;
50
+ };
51
+ /**
52
+ * The dashboard's style (dashboard style SPEC §6): what it sets itself, in
53
+ * `dashboard.style`'s words (empty when it sets nothing and follows the
54
+ * brand), and what it shows in light mode with the brand under it.
55
+ */
56
+ export type OutlineStyle = {
57
+ set: DashboardStyleEdit;
58
+ shows: DashboardStyleReading;
42
59
  };
43
60
  export type OutlineCard = ({
44
61
  cardId: string;
@@ -164,6 +181,8 @@ export type DashboardOutline = {
164
181
  filters: OutlineFilter[];
165
182
  /** Every variable text may name: inputs, report values and data variables with their words and uses (DV-D13). */
166
183
  variables: OutlineVariable[];
184
+ /** What `dashboard.style` sets, read back in its words, and what the dashboard shows. */
185
+ style: OutlineStyle;
167
186
  /** In the editor's words: what the dashboard holds that no change can state (the parity backlog, DV-D13). */
168
187
  editorOnly?: string[];
169
188
  /** Queries left out because the dashboard has more than `maxQueryCards` cards (DE-D34). */