@middag-io/react 0.51.1 → 0.52.0

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 (118) hide show
  1. package/dist-lib/{DateField-lPZsiWfC.js → DateField-CduB6lUv.js} +21 -23
  2. package/dist-lib/{DateRangeField-B7zWB48D.js → DateRangeField-DlA_9i4w.js} +17 -13
  3. package/dist-lib/{FormField-BGqAQLtX.js → FormField-CDdY7-md.js} +2090 -2054
  4. package/dist-lib/{FormPanelBlock-CGgA83Mu.js → FormPanelBlock-zo8tCgtS.js} +1 -2
  5. package/dist-lib/base/blocks/CardGridBlock.d.ts.map +1 -1
  6. package/dist-lib/base/blocks/DenseTableBlock.d.ts.map +1 -1
  7. package/dist-lib/base/blocks/EmptyStateBlock.d.ts.map +1 -1
  8. package/dist-lib/base/blocks/FormPanelBlock.d.ts.map +1 -1
  9. package/dist-lib/base/blocks/MetricCardBlock.d.ts.map +1 -1
  10. package/dist-lib/base/form/FormField.d.ts +8 -1
  11. package/dist-lib/base/form/FormField.d.ts.map +1 -1
  12. package/dist-lib/base/form/fields/DateField.d.ts +1 -1
  13. package/dist-lib/base/form/fields/DateField.d.ts.map +1 -1
  14. package/dist-lib/base/form/fields/DateRangeField.d.ts +3 -1
  15. package/dist-lib/base/form/fields/DateRangeField.d.ts.map +1 -1
  16. package/dist-lib/base/form/fields/MultiSelectField.d.ts +3 -1
  17. package/dist-lib/base/form/fields/MultiSelectField.d.ts.map +1 -1
  18. package/dist-lib/base/form/fields/RadioField.d.ts +3 -1
  19. package/dist-lib/base/form/fields/RadioField.d.ts.map +1 -1
  20. package/dist-lib/base/form/fields/RatingField.d.ts +3 -1
  21. package/dist-lib/base/form/fields/RatingField.d.ts.map +1 -1
  22. package/dist-lib/base/form/fields/SliderField.d.ts +3 -1
  23. package/dist-lib/base/form/fields/SliderField.d.ts.map +1 -1
  24. package/dist-lib/base/form/fields/TagsField.d.ts.map +1 -1
  25. package/dist-lib/base/partials/DataTable/cell-renderers.d.ts.map +1 -1
  26. package/dist-lib/base/partials/DataTable/index.d.ts.map +1 -1
  27. package/dist-lib/base/partials/DataTable/types.d.ts +2 -2
  28. package/dist-lib/base/partials/DataTable/types.d.ts.map +1 -1
  29. package/dist-lib/base/partials/EmptyPlaceholder/index.d.ts.map +1 -1
  30. package/dist-lib/base/shell/BasicShell.d.ts +12 -1
  31. package/dist-lib/base/shell/BasicShell.d.ts.map +1 -1
  32. package/dist-lib/base/shell/BasicShell.js +126 -111
  33. package/dist-lib/base/shell/partials/InlineEditablePanel.js +193 -176
  34. package/dist-lib/base/shell/partials/InspectorContext.js +1 -1
  35. package/dist-lib/base/theme/tailwind-theme.css +13 -5
  36. package/dist-lib/base/theme/theme-bridge.css +8 -0
  37. package/dist-lib/base/theme/themes/classic.css +15 -11
  38. package/dist-lib/base/theme/tokens.css +36 -10
  39. package/dist-lib/base/utils/php-wire.d.ts +33 -0
  40. package/dist-lib/base/utils/php-wire.d.ts.map +1 -0
  41. package/dist-lib/base/utils/php-wire.js +19 -0
  42. package/dist-lib/chunks/{subpath-DjkzcIPp.js → subpath-Bb5vw3A_.js} +21 -23
  43. package/dist-lib/chunks/{subpath-fEhy6n_U.js → subpath-CZB5_RY7.js} +2 -0
  44. package/dist-lib/chunks/subpath-DVHs9lfh.js +29 -0
  45. package/dist-lib/contracts/block-data/data-display.d.ts +12 -287
  46. package/dist-lib/contracts/block-data/data-display.d.ts.map +1 -1
  47. package/dist-lib/contracts/block-data/interactive.d.ts +14 -22
  48. package/dist-lib/contracts/block-data/interactive.d.ts.map +1 -1
  49. package/dist-lib/contracts/block-data/shared.d.ts +2 -17
  50. package/dist-lib/contracts/block-data/shared.d.ts.map +1 -1
  51. package/dist-lib/contracts/generated/index.d.ts +2 -2
  52. package/dist-lib/contracts/generated/schemas.d.ts +1584 -192
  53. package/dist-lib/contracts/generated/schemas.d.ts.map +1 -1
  54. package/dist-lib/contracts/generated/types.d.ts +288 -8
  55. package/dist-lib/contracts/generated/types.d.ts.map +1 -1
  56. package/dist-lib/contracts/page-contract-schema.d.ts +15 -0
  57. package/dist-lib/contracts/page-contract-schema.d.ts.map +1 -1
  58. package/dist-lib/i18n/I18nProvider.js +1 -1
  59. package/dist-lib/i18n/instance.js +1 -1
  60. package/dist-lib/i18n/locales/en/ui.json +1 -0
  61. package/dist-lib/i18n/locales/pt-BR/ui.json +1 -0
  62. package/dist-lib/i18n/register-strings.js +1 -1
  63. package/dist-lib/index.d.ts +2 -2
  64. package/dist-lib/index.d.ts.map +1 -1
  65. package/dist-lib/lib/hooks/use-prefers-reduced-motion.d.ts +6 -0
  66. package/dist-lib/lib/hooks/use-prefers-reduced-motion.d.ts.map +1 -0
  67. package/dist-lib/lib/hooks/use-prefers-reduced-motion.js +21 -0
  68. package/dist-lib/middag-react.css +1 -1
  69. package/dist-lib/middag-react.js +10407 -10012
  70. package/dist-lib/primitives/reui/badge.d.ts +5 -0
  71. package/dist-lib/primitives/reui/badge.d.ts.map +1 -1
  72. package/dist-lib/primitives/reui/badge.js +14 -14
  73. package/dist-lib/primitives/reui/sidebar.d.ts.map +1 -1
  74. package/dist-lib/primitives/reui/sidebar.js +46 -34
  75. package/docs/public/schemas/fragment.json +1258 -19
  76. package/docs/public/schemas/page-contract.json +1258 -19
  77. package/docs/public/schemas/shared-props.json +1258 -19
  78. package/package.json +6 -1
  79. package/src/base/blocks/CardGridBlock.tsx +10 -2
  80. package/src/base/blocks/DenseTableBlock.tsx +18 -11
  81. package/src/base/blocks/DetailPanelBlock.tsx +1 -1
  82. package/src/base/blocks/EmptyStateBlock.tsx +5 -1
  83. package/src/base/blocks/FormPanelBlock.tsx +0 -1
  84. package/src/base/blocks/MetricCardBlock.tsx +9 -2
  85. package/src/base/form/FormField.tsx +40 -7
  86. package/src/base/form/fields/DateField.tsx +3 -3
  87. package/src/base/form/fields/DateRangeField.tsx +19 -14
  88. package/src/base/form/fields/MultiSelectField.tsx +9 -8
  89. package/src/base/form/fields/RadioField.tsx +4 -0
  90. package/src/base/form/fields/RatingField.tsx +4 -0
  91. package/src/base/form/fields/SliderField.tsx +4 -1
  92. package/src/base/form/fields/TagsField.tsx +3 -0
  93. package/src/base/partials/DataTable/cell-renderers.tsx +23 -12
  94. package/src/base/partials/DataTable/index.tsx +5 -2
  95. package/src/base/partials/DataTable/types.ts +2 -5
  96. package/src/base/partials/DetailSection/index.tsx +2 -2
  97. package/src/base/partials/EmptyPlaceholder/index.tsx +7 -3
  98. package/src/base/partials/MarkdownContent/index.tsx +1 -1
  99. package/src/base/shell/BasicShell.tsx +47 -8
  100. package/src/base/shell/partials/InspectorContext.tsx +1 -1
  101. package/src/base/theme/tailwind-theme.css +13 -5
  102. package/src/base/theme/theme-bridge.css +8 -0
  103. package/src/base/theme/themes/classic.css +15 -11
  104. package/src/base/theme/tokens.css +36 -10
  105. package/src/base/utils/php-wire.ts +54 -0
  106. package/src/contracts/block-data/data-display.ts +46 -337
  107. package/src/contracts/block-data/interactive.ts +18 -23
  108. package/src/contracts/block-data/shared.ts +2 -14
  109. package/src/contracts/generated/index.ts +2 -2
  110. package/src/contracts/generated/schemas.ts +312 -9
  111. package/src/contracts/generated/types.ts +314 -8
  112. package/src/i18n/locales/en/ui.json +1 -0
  113. package/src/i18n/locales/pt-BR/ui.json +1 -0
  114. package/src/lib/hooks/use-prefers-reduced-motion.ts +32 -0
  115. package/src/primitives/reui/badge.tsx +19 -14
  116. package/src/primitives/reui/sidebar.tsx +30 -3
  117. package/src/theme.css +11 -5
  118. package/dist-lib/chunks/subpath-DoiyWIYV.js +0 -25
@@ -38,6 +38,28 @@
38
38
  "additionalProperties": {
39
39
  "type": "string"
40
40
  }
41
+ },
42
+ "help": {
43
+ "type": "object",
44
+ "required": [
45
+ "title",
46
+ "body"
47
+ ],
48
+ "properties": {
49
+ "title": {
50
+ "type": "string"
51
+ },
52
+ "body": {
53
+ "type": "string"
54
+ },
55
+ "learnMore": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "additionalProperties": false
60
+ },
61
+ "inspector": {
62
+ "$ref": "#/$defs/InspectorDescriptor"
41
63
  }
42
64
  },
43
65
  "additionalProperties": false
@@ -2234,26 +2256,1243 @@
2234
2256
  },
2235
2257
  "additionalProperties": false
2236
2258
  },
2237
- "ActionIntent": {
2238
- "type": "string",
2239
- "enum": [
2240
- "primary",
2241
- "secondary",
2242
- "danger",
2243
- "success",
2244
- "warning",
2245
- "info",
2246
- "link",
2247
- "ghost"
2248
- ]
2259
+ "ConditionalAction": {
2260
+ "type": "object",
2261
+ "required": [
2262
+ "id",
2263
+ "label",
2264
+ "target",
2265
+ "intent"
2266
+ ],
2267
+ "properties": {
2268
+ "id": {
2269
+ "type": "string"
2270
+ },
2271
+ "label": {
2272
+ "$ref": "#/$defs/Label"
2273
+ },
2274
+ "target": {
2275
+ "$ref": "#/$defs/ActionTarget"
2276
+ },
2277
+ "intent": {
2278
+ "$ref": "#/$defs/ActionIntent"
2279
+ },
2280
+ "icon": {
2281
+ "type": "string"
2282
+ },
2283
+ "confirmation": {
2284
+ "$ref": "#/$defs/Confirmation"
2285
+ },
2286
+ "capability": {
2287
+ "type": "string"
2288
+ },
2289
+ "disabled": {
2290
+ "const": true
2291
+ },
2292
+ "loading": {
2293
+ "const": true
2294
+ },
2295
+ "variant": {
2296
+ "$ref": "#/$defs/ConditionalActionVariant"
2297
+ },
2298
+ "visible_when": {
2299
+ "$ref": "#/$defs/FormCondition"
2300
+ },
2301
+ "disabled_when": {
2302
+ "$ref": "#/$defs/FormCondition"
2303
+ },
2304
+ "loading_when": {
2305
+ "$ref": "#/$defs/FormCondition"
2306
+ },
2307
+ "disabled_reason_field": {
2308
+ "type": "string"
2309
+ }
2310
+ },
2311
+ "additionalProperties": false
2249
2312
  },
2250
- "ActionTargetKind": {
2251
- "type": "string",
2252
- "enum": [
2253
- "link",
2254
- "route",
2255
- "request",
2256
- "panel"
2313
+ "EmptyStateDef": {
2314
+ "type": "object",
2315
+ "properties": {
2316
+ "icon": {
2317
+ "type": "string"
2318
+ },
2319
+ "title": {
2320
+ "type": "string"
2321
+ },
2322
+ "description": {
2323
+ "type": "string"
2324
+ },
2325
+ "cta": {
2326
+ "type": "object",
2327
+ "required": [
2328
+ "label",
2329
+ "href"
2330
+ ],
2331
+ "properties": {
2332
+ "label": {
2333
+ "type": "string"
2334
+ },
2335
+ "href": {
2336
+ "type": "string"
2337
+ }
2338
+ },
2339
+ "additionalProperties": false
2340
+ }
2341
+ },
2342
+ "additionalProperties": false
2343
+ },
2344
+ "CardGridBlockData": {
2345
+ "type": "object",
2346
+ "required": [
2347
+ "columns",
2348
+ "rows"
2349
+ ],
2350
+ "properties": {
2351
+ "columns": {
2352
+ "type": "array",
2353
+ "items": {
2354
+ "$ref": "#/$defs/CardGridColumnDef"
2355
+ }
2356
+ },
2357
+ "rows": {
2358
+ "type": "array",
2359
+ "items": {
2360
+ "anyOf": [
2361
+ {
2362
+ "type": "object",
2363
+ "additionalProperties": true
2364
+ },
2365
+ {
2366
+ "type": "array",
2367
+ "maxItems": 0
2368
+ }
2369
+ ]
2370
+ }
2371
+ },
2372
+ "variant": {
2373
+ "$ref": "#/$defs/CardGridVariant"
2374
+ },
2375
+ "emptyState": {
2376
+ "$ref": "#/$defs/EmptyStateDef"
2377
+ },
2378
+ "editHref": {
2379
+ "type": "string"
2380
+ },
2381
+ "rowActions": {
2382
+ "type": "array",
2383
+ "items": {
2384
+ "$ref": "#/$defs/ConditionalAction"
2385
+ }
2386
+ }
2387
+ },
2388
+ "additionalProperties": false
2389
+ },
2390
+ "CardGridColumnDef": {
2391
+ "type": "object",
2392
+ "required": [
2393
+ "key",
2394
+ "label"
2395
+ ],
2396
+ "properties": {
2397
+ "key": {
2398
+ "type": "string"
2399
+ },
2400
+ "label": {
2401
+ "type": "string"
2402
+ },
2403
+ "kind": {
2404
+ "enum": [
2405
+ "text",
2406
+ "status",
2407
+ "badge",
2408
+ "boolean",
2409
+ "timestamp",
2410
+ "number"
2411
+ ]
2412
+ }
2413
+ },
2414
+ "additionalProperties": false
2415
+ },
2416
+ "EntityRef": {
2417
+ "type": "object",
2418
+ "required": [
2419
+ "type",
2420
+ "id"
2421
+ ],
2422
+ "properties": {
2423
+ "type": {
2424
+ "type": "string"
2425
+ },
2426
+ "id": {
2427
+ "type": "string"
2428
+ }
2429
+ },
2430
+ "additionalProperties": false
2431
+ },
2432
+ "DenseTableColumnDef": {
2433
+ "type": "object",
2434
+ "required": [
2435
+ "key",
2436
+ "label"
2437
+ ],
2438
+ "properties": {
2439
+ "key": {
2440
+ "type": "string"
2441
+ },
2442
+ "label": {
2443
+ "type": "string"
2444
+ },
2445
+ "sortable": {
2446
+ "type": "boolean"
2447
+ },
2448
+ "searchable": {
2449
+ "type": "boolean"
2450
+ },
2451
+ "variant": {
2452
+ "anyOf": [
2453
+ {
2454
+ "$ref": "#/$defs/ColumnVariant"
2455
+ },
2456
+ {
2457
+ "type": "string"
2458
+ }
2459
+ ]
2460
+ },
2461
+ "timestampFormat": {
2462
+ "$ref": "#/$defs/TimestampFormat"
2463
+ },
2464
+ "href": {
2465
+ "type": "string"
2466
+ },
2467
+ "entity": {
2468
+ "$ref": "#/$defs/EntityRef"
2469
+ },
2470
+ "minWidth": {
2471
+ "type": "number"
2472
+ },
2473
+ "maxWidth": {
2474
+ "type": "number"
2475
+ },
2476
+ "statusMap": {
2477
+ "anyOf": [
2478
+ {
2479
+ "type": "object",
2480
+ "additionalProperties": {
2481
+ "$ref": "#/$defs/StatusIntent"
2482
+ }
2483
+ },
2484
+ {
2485
+ "type": "array",
2486
+ "maxItems": 0
2487
+ }
2488
+ ]
2489
+ },
2490
+ "format": {
2491
+ "$ref": "#/$defs/ValueFormat"
2492
+ },
2493
+ "formatOptions": {
2494
+ "anyOf": [
2495
+ {
2496
+ "type": "object",
2497
+ "additionalProperties": true
2498
+ },
2499
+ {
2500
+ "type": "array",
2501
+ "maxItems": 0
2502
+ }
2503
+ ]
2504
+ },
2505
+ "options": {
2506
+ "anyOf": [
2507
+ {
2508
+ "type": "object",
2509
+ "additionalProperties": true
2510
+ },
2511
+ {
2512
+ "type": "array",
2513
+ "maxItems": 0
2514
+ }
2515
+ ]
2516
+ }
2517
+ },
2518
+ "additionalProperties": false
2519
+ },
2520
+ "DenseTablePagination": {
2521
+ "type": "object",
2522
+ "required": [
2523
+ "page",
2524
+ "perPage",
2525
+ "total",
2526
+ "lastPage"
2527
+ ],
2528
+ "properties": {
2529
+ "page": {
2530
+ "type": "integer"
2531
+ },
2532
+ "perPage": {
2533
+ "type": "integer"
2534
+ },
2535
+ "total": {
2536
+ "type": "integer"
2537
+ },
2538
+ "lastPage": {
2539
+ "type": "integer"
2540
+ }
2541
+ },
2542
+ "additionalProperties": false
2543
+ },
2544
+ "DenseTableSort": {
2545
+ "type": "object",
2546
+ "required": [
2547
+ "column",
2548
+ "direction"
2549
+ ],
2550
+ "properties": {
2551
+ "column": {
2552
+ "type": [
2553
+ "string",
2554
+ "null"
2555
+ ]
2556
+ },
2557
+ "direction": {
2558
+ "enum": [
2559
+ "asc",
2560
+ "desc",
2561
+ null
2562
+ ]
2563
+ }
2564
+ },
2565
+ "additionalProperties": false
2566
+ },
2567
+ "DenseTableFilterDef": {
2568
+ "type": "object",
2569
+ "required": [
2570
+ "key",
2571
+ "label",
2572
+ "type"
2573
+ ],
2574
+ "properties": {
2575
+ "key": {
2576
+ "type": "string"
2577
+ },
2578
+ "label": {
2579
+ "type": "string"
2580
+ },
2581
+ "type": {
2582
+ "enum": [
2583
+ "select",
2584
+ "multiselect",
2585
+ "date_range"
2586
+ ]
2587
+ },
2588
+ "options": {
2589
+ "type": "array",
2590
+ "items": {
2591
+ "type": "object",
2592
+ "required": [
2593
+ "value",
2594
+ "label"
2595
+ ],
2596
+ "properties": {
2597
+ "value": {
2598
+ "type": "string"
2599
+ },
2600
+ "label": {
2601
+ "type": "string"
2602
+ }
2603
+ },
2604
+ "additionalProperties": false
2605
+ }
2606
+ }
2607
+ },
2608
+ "additionalProperties": false
2609
+ },
2610
+ "DenseTableBlockData": {
2611
+ "type": "object",
2612
+ "required": [
2613
+ "columns",
2614
+ "rows"
2615
+ ],
2616
+ "properties": {
2617
+ "columns": {
2618
+ "type": "array",
2619
+ "items": {
2620
+ "$ref": "#/$defs/DenseTableColumnDef"
2621
+ }
2622
+ },
2623
+ "rows": {
2624
+ "type": "array",
2625
+ "items": {
2626
+ "anyOf": [
2627
+ {
2628
+ "type": "object",
2629
+ "additionalProperties": true
2630
+ },
2631
+ {
2632
+ "type": "array",
2633
+ "maxItems": 0
2634
+ }
2635
+ ]
2636
+ }
2637
+ },
2638
+ "pagination": {
2639
+ "$ref": "#/$defs/DenseTablePagination"
2640
+ },
2641
+ "sort": {
2642
+ "$ref": "#/$defs/DenseTableSort"
2643
+ },
2644
+ "filters": {
2645
+ "anyOf": [
2646
+ {
2647
+ "type": "object",
2648
+ "required": [
2649
+ "available",
2650
+ "applied"
2651
+ ],
2652
+ "properties": {
2653
+ "available": {
2654
+ "type": "array",
2655
+ "items": {
2656
+ "$ref": "#/$defs/DenseTableFilterDef"
2657
+ }
2658
+ },
2659
+ "applied": {
2660
+ "anyOf": [
2661
+ {
2662
+ "type": "object",
2663
+ "additionalProperties": {
2664
+ "anyOf": [
2665
+ {
2666
+ "type": "string"
2667
+ },
2668
+ {
2669
+ "type": "array",
2670
+ "items": {
2671
+ "type": "string"
2672
+ }
2673
+ }
2674
+ ]
2675
+ }
2676
+ },
2677
+ {
2678
+ "type": "array",
2679
+ "maxItems": 0
2680
+ }
2681
+ ]
2682
+ }
2683
+ },
2684
+ "additionalProperties": false
2685
+ },
2686
+ {
2687
+ "type": "array",
2688
+ "maxItems": 0
2689
+ }
2690
+ ]
2691
+ },
2692
+ "rowHref": {
2693
+ "type": "string"
2694
+ },
2695
+ "rowActions": {
2696
+ "type": "array",
2697
+ "items": {
2698
+ "$ref": "#/$defs/ConditionalAction"
2699
+ }
2700
+ },
2701
+ "bulkActions": {
2702
+ "type": "array",
2703
+ "items": {
2704
+ "$ref": "#/$defs/Action"
2705
+ }
2706
+ },
2707
+ "searchPlaceholder": {
2708
+ "type": "string"
2709
+ },
2710
+ "emptyState": {
2711
+ "$ref": "#/$defs/EmptyStateDef"
2712
+ },
2713
+ "saveViewAction": {
2714
+ "$ref": "#/$defs/Action"
2715
+ },
2716
+ "saveViewActive": {
2717
+ "type": "boolean"
2718
+ },
2719
+ "options": {
2720
+ "$ref": "#/$defs/TableDisplayOptions"
2721
+ }
2722
+ },
2723
+ "additionalProperties": false
2724
+ },
2725
+ "RichStatusValue": {
2726
+ "type": "object",
2727
+ "required": [
2728
+ "label",
2729
+ "appearance"
2730
+ ],
2731
+ "properties": {
2732
+ "label": {
2733
+ "type": "string"
2734
+ },
2735
+ "appearance": {
2736
+ "enum": [
2737
+ "success",
2738
+ "warning",
2739
+ "danger",
2740
+ "info",
2741
+ "neutral"
2742
+ ]
2743
+ },
2744
+ "icon": {
2745
+ "type": "string"
2746
+ }
2747
+ },
2748
+ "additionalProperties": false
2749
+ },
2750
+ "AnnotatedValue": {
2751
+ "type": "object",
2752
+ "required": [
2753
+ "text"
2754
+ ],
2755
+ "properties": {
2756
+ "text": {
2757
+ "type": "string"
2758
+ },
2759
+ "badge": {
2760
+ "type": "object",
2761
+ "required": [
2762
+ "label",
2763
+ "color"
2764
+ ],
2765
+ "properties": {
2766
+ "label": {
2767
+ "type": "string"
2768
+ },
2769
+ "color": {
2770
+ "type": "string"
2771
+ }
2772
+ },
2773
+ "additionalProperties": false
2774
+ },
2775
+ "sublabel": {
2776
+ "type": "string"
2777
+ },
2778
+ "appearance": {
2779
+ "enum": [
2780
+ "success",
2781
+ "warning",
2782
+ "danger",
2783
+ "info",
2784
+ "neutral"
2785
+ ]
2786
+ }
2787
+ },
2788
+ "additionalProperties": false
2789
+ },
2790
+ "ProgressValue": {
2791
+ "type": "object",
2792
+ "required": [
2793
+ "value"
2794
+ ],
2795
+ "properties": {
2796
+ "value": {
2797
+ "type": "number"
2798
+ },
2799
+ "max": {
2800
+ "type": "number"
2801
+ },
2802
+ "label": {
2803
+ "type": "string"
2804
+ },
2805
+ "appearance": {
2806
+ "enum": [
2807
+ "success",
2808
+ "warning",
2809
+ "danger",
2810
+ "info",
2811
+ "neutral"
2812
+ ]
2813
+ }
2814
+ },
2815
+ "additionalProperties": false
2816
+ },
2817
+ "LinkGroupItem": {
2818
+ "type": "object",
2819
+ "required": [
2820
+ "icon",
2821
+ "href",
2822
+ "label"
2823
+ ],
2824
+ "properties": {
2825
+ "icon": {
2826
+ "type": "string"
2827
+ },
2828
+ "href": {
2829
+ "type": [
2830
+ "string",
2831
+ "null"
2832
+ ]
2833
+ },
2834
+ "label": {
2835
+ "type": "string"
2836
+ },
2837
+ "external": {
2838
+ "type": "boolean"
2839
+ }
2840
+ },
2841
+ "additionalProperties": false
2842
+ },
2843
+ "MetricCardBlockData": {
2844
+ "type": "object",
2845
+ "required": [
2846
+ "value",
2847
+ "label"
2848
+ ],
2849
+ "properties": {
2850
+ "value": {
2851
+ "type": [
2852
+ "string",
2853
+ "number"
2854
+ ]
2855
+ },
2856
+ "delta": {
2857
+ "type": "string"
2858
+ },
2859
+ "deltaDirection": {
2860
+ "$ref": "#/$defs/DeltaDirection"
2861
+ },
2862
+ "label": {
2863
+ "type": "string"
2864
+ },
2865
+ "icon": {
2866
+ "type": "string"
2867
+ },
2868
+ "href": {
2869
+ "type": "string"
2870
+ },
2871
+ "locale": {
2872
+ "type": "string"
2873
+ },
2874
+ "compact": {
2875
+ "type": "boolean"
2876
+ }
2877
+ },
2878
+ "additionalProperties": false
2879
+ },
2880
+ "EmptyStateBlockData": {
2881
+ "type": "object",
2882
+ "properties": {
2883
+ "variant": {
2884
+ "$ref": "#/$defs/EmptyStateVariant"
2885
+ },
2886
+ "icon": {
2887
+ "type": "string"
2888
+ },
2889
+ "lottieUrl": {
2890
+ "type": "string"
2891
+ },
2892
+ "description": {
2893
+ "type": "string"
2894
+ },
2895
+ "cta": {
2896
+ "type": "object",
2897
+ "required": [
2898
+ "label"
2899
+ ],
2900
+ "properties": {
2901
+ "label": {
2902
+ "type": "string"
2903
+ },
2904
+ "href": {
2905
+ "type": "string"
2906
+ },
2907
+ "method": {
2908
+ "enum": [
2909
+ "get",
2910
+ "post"
2911
+ ]
2912
+ }
2913
+ },
2914
+ "additionalProperties": false
2915
+ },
2916
+ "ctaSecondary": {
2917
+ "type": "object",
2918
+ "required": [
2919
+ "label",
2920
+ "href"
2921
+ ],
2922
+ "properties": {
2923
+ "label": {
2924
+ "type": "string"
2925
+ },
2926
+ "href": {
2927
+ "type": "string"
2928
+ }
2929
+ },
2930
+ "additionalProperties": false
2931
+ }
2932
+ },
2933
+ "additionalProperties": false
2934
+ },
2935
+ "StatusStripItem": {
2936
+ "type": "object",
2937
+ "required": [
2938
+ "key",
2939
+ "label",
2940
+ "value",
2941
+ "appearance"
2942
+ ],
2943
+ "properties": {
2944
+ "key": {
2945
+ "type": "string"
2946
+ },
2947
+ "label": {
2948
+ "type": "string"
2949
+ },
2950
+ "value": {
2951
+ "type": "string"
2952
+ },
2953
+ "appearance": {
2954
+ "enum": [
2955
+ "success",
2956
+ "warning",
2957
+ "danger",
2958
+ "info",
2959
+ "neutral"
2960
+ ]
2961
+ },
2962
+ "tooltip": {
2963
+ "type": "string"
2964
+ },
2965
+ "href": {
2966
+ "type": "string"
2967
+ }
2968
+ },
2969
+ "additionalProperties": false
2970
+ },
2971
+ "StatusStripBlockData": {
2972
+ "type": "object",
2973
+ "required": [
2974
+ "items"
2975
+ ],
2976
+ "properties": {
2977
+ "score": {
2978
+ "type": "number"
2979
+ },
2980
+ "tone": {
2981
+ "$ref": "#/$defs/StatusStripTone"
2982
+ },
2983
+ "items": {
2984
+ "type": "array",
2985
+ "items": {
2986
+ "$ref": "#/$defs/StatusStripItem"
2987
+ }
2988
+ }
2989
+ },
2990
+ "additionalProperties": false
2991
+ },
2992
+ "DetailPanelFieldDef": {
2993
+ "type": "object",
2994
+ "required": [
2995
+ "key",
2996
+ "label",
2997
+ "value"
2998
+ ],
2999
+ "properties": {
3000
+ "key": {
3001
+ "type": "string"
3002
+ },
3003
+ "label": {
3004
+ "type": "string"
3005
+ },
3006
+ "value": {
3007
+ "type": [
3008
+ "string",
3009
+ "number",
3010
+ "boolean",
3011
+ "null"
3012
+ ]
3013
+ },
3014
+ "kind": {
3015
+ "enum": [
3016
+ "text",
3017
+ "status",
3018
+ "timestamp",
3019
+ "boolean",
3020
+ "link",
3021
+ "code",
3022
+ "email"
3023
+ ]
3024
+ },
3025
+ "copyable": {
3026
+ "type": "boolean"
3027
+ },
3028
+ "href": {
3029
+ "type": "string"
3030
+ },
3031
+ "entity": {
3032
+ "type": "object",
3033
+ "required": [
3034
+ "type",
3035
+ "id"
3036
+ ],
3037
+ "properties": {
3038
+ "type": {
3039
+ "type": "string"
3040
+ },
3041
+ "id": {
3042
+ "type": [
3043
+ "string",
3044
+ "number"
3045
+ ]
3046
+ }
3047
+ },
3048
+ "additionalProperties": false
3049
+ }
3050
+ },
3051
+ "additionalProperties": false
3052
+ },
3053
+ "DetailPanelSectionDef": {
3054
+ "type": "object",
3055
+ "required": [
3056
+ "id",
3057
+ "title",
3058
+ "fields"
3059
+ ],
3060
+ "properties": {
3061
+ "id": {
3062
+ "type": "string"
3063
+ },
3064
+ "title": {
3065
+ "type": "string"
3066
+ },
3067
+ "fields": {
3068
+ "type": "array",
3069
+ "items": {
3070
+ "$ref": "#/$defs/DetailPanelFieldDef"
3071
+ }
3072
+ },
3073
+ "defaultCollapsed": {
3074
+ "type": "boolean"
3075
+ },
3076
+ "actions": {
3077
+ "type": "array",
3078
+ "items": {
3079
+ "$ref": "#/$defs/Action"
3080
+ }
3081
+ }
3082
+ },
3083
+ "additionalProperties": false
3084
+ },
3085
+ "DetailPanelBlockData": {
3086
+ "type": "object",
3087
+ "required": [
3088
+ "sections"
3089
+ ],
3090
+ "properties": {
3091
+ "sections": {
3092
+ "type": "array",
3093
+ "items": {
3094
+ "$ref": "#/$defs/DetailPanelSectionDef"
3095
+ }
3096
+ },
3097
+ "columns": {
3098
+ "enum": [
3099
+ 1,
3100
+ 2
3101
+ ]
3102
+ }
3103
+ },
3104
+ "additionalProperties": false
3105
+ },
3106
+ "ActivityTimelineEntry": {
3107
+ "type": "object",
3108
+ "required": [
3109
+ "id",
3110
+ "actor",
3111
+ "action",
3112
+ "icon",
3113
+ "color",
3114
+ "timestamp"
3115
+ ],
3116
+ "properties": {
3117
+ "id": {
3118
+ "type": "string"
3119
+ },
3120
+ "actor": {
3121
+ "type": "string"
3122
+ },
3123
+ "actorHref": {
3124
+ "type": "string"
3125
+ },
3126
+ "action": {
3127
+ "type": "string"
3128
+ },
3129
+ "detail": {
3130
+ "type": "string"
3131
+ },
3132
+ "icon": {
3133
+ "type": "string"
3134
+ },
3135
+ "color": {
3136
+ "enum": [
3137
+ "success",
3138
+ "info",
3139
+ "warning",
3140
+ "destructive",
3141
+ "neutral"
3142
+ ]
3143
+ },
3144
+ "timestamp": {
3145
+ "type": "number"
3146
+ },
3147
+ "read": {
3148
+ "type": "boolean"
3149
+ },
3150
+ "markReadHref": {
3151
+ "type": "string"
3152
+ }
3153
+ },
3154
+ "additionalProperties": false
3155
+ },
3156
+ "ActivityTimelineBlockData": {
3157
+ "type": "object",
3158
+ "required": [
3159
+ "groups"
3160
+ ],
3161
+ "properties": {
3162
+ "groups": {
3163
+ "type": "array",
3164
+ "items": {
3165
+ "type": "object",
3166
+ "required": [
3167
+ "label",
3168
+ "entries"
3169
+ ],
3170
+ "properties": {
3171
+ "label": {
3172
+ "type": "string"
3173
+ },
3174
+ "entries": {
3175
+ "type": "array",
3176
+ "items": {
3177
+ "$ref": "#/$defs/ActivityTimelineEntry"
3178
+ }
3179
+ }
3180
+ },
3181
+ "additionalProperties": false
3182
+ }
3183
+ },
3184
+ "hasMore": {
3185
+ "type": "boolean"
3186
+ },
3187
+ "loadMoreHref": {
3188
+ "type": "string"
3189
+ },
3190
+ "limit": {
3191
+ "type": "integer"
3192
+ }
3193
+ },
3194
+ "additionalProperties": false
3195
+ },
3196
+ "MarkdownPanelBlockData": {
3197
+ "type": "object",
3198
+ "required": [
3199
+ "content"
3200
+ ],
3201
+ "properties": {
3202
+ "content": {
3203
+ "type": "string"
3204
+ },
3205
+ "maxHeight": {
3206
+ "type": "number"
3207
+ }
3208
+ },
3209
+ "additionalProperties": false
3210
+ },
3211
+ "LinkListItem": {
3212
+ "type": "object",
3213
+ "required": [
3214
+ "label",
3215
+ "href"
3216
+ ],
3217
+ "properties": {
3218
+ "label": {
3219
+ "type": "string"
3220
+ },
3221
+ "href": {
3222
+ "type": [
3223
+ "string",
3224
+ "null"
3225
+ ]
3226
+ },
3227
+ "icon": {
3228
+ "type": "string"
3229
+ },
3230
+ "description": {
3231
+ "type": "string"
3232
+ },
3233
+ "external": {
3234
+ "type": "boolean"
3235
+ },
3236
+ "trailing": {
3237
+ "type": "string"
3238
+ },
3239
+ "active": {
3240
+ "type": "boolean"
3241
+ }
3242
+ },
3243
+ "additionalProperties": false
3244
+ },
3245
+ "LinkListBlockData": {
3246
+ "type": "object",
3247
+ "required": [
3248
+ "items"
3249
+ ],
3250
+ "properties": {
3251
+ "items": {
3252
+ "type": "array",
3253
+ "items": {
3254
+ "$ref": "#/$defs/LinkListItem"
3255
+ }
3256
+ }
3257
+ },
3258
+ "additionalProperties": false
3259
+ },
3260
+ "ChartBlockData": {
3261
+ "type": "object",
3262
+ "required": [
3263
+ "chartType",
3264
+ "categoryKey",
3265
+ "series",
3266
+ "data"
3267
+ ],
3268
+ "properties": {
3269
+ "chartType": {
3270
+ "$ref": "#/$defs/ChartType"
3271
+ },
3272
+ "categoryKey": {
3273
+ "type": "string"
3274
+ },
3275
+ "series": {
3276
+ "type": "array",
3277
+ "items": {
3278
+ "$ref": "#/$defs/ChartSeries"
3279
+ }
3280
+ },
3281
+ "data": {
3282
+ "type": "array",
3283
+ "items": {
3284
+ "anyOf": [
3285
+ {
3286
+ "type": "object",
3287
+ "additionalProperties": true
3288
+ },
3289
+ {
3290
+ "type": "array",
3291
+ "maxItems": 0
3292
+ }
3293
+ ]
3294
+ }
3295
+ },
3296
+ "options": {
3297
+ "type": "object",
3298
+ "properties": {
3299
+ "showLegend": {
3300
+ "type": "boolean"
3301
+ },
3302
+ "showGrid": {
3303
+ "type": "boolean"
3304
+ }
3305
+ },
3306
+ "additionalProperties": false
3307
+ }
3308
+ },
3309
+ "additionalProperties": false
3310
+ },
3311
+ "TabsBlockData": {
3312
+ "type": "object",
3313
+ "required": [
3314
+ "tabs"
3315
+ ],
3316
+ "properties": {
3317
+ "tabs": {
3318
+ "type": "array",
3319
+ "items": {
3320
+ "$ref": "#/$defs/Tab"
3321
+ }
3322
+ },
3323
+ "defaultTab": {
3324
+ "type": "string"
3325
+ }
3326
+ },
3327
+ "additionalProperties": false
3328
+ },
3329
+ "ActionGridBlockData": {
3330
+ "type": "object",
3331
+ "required": [
3332
+ "items"
3333
+ ],
3334
+ "properties": {
3335
+ "items": {
3336
+ "type": "array",
3337
+ "items": {
3338
+ "$ref": "#/$defs/ActionGridItem"
3339
+ }
3340
+ },
3341
+ "flash": {
3342
+ "anyOf": [
3343
+ {
3344
+ "type": "object",
3345
+ "required": [
3346
+ "success",
3347
+ "message"
3348
+ ],
3349
+ "properties": {
3350
+ "success": {
3351
+ "type": "boolean"
3352
+ },
3353
+ "message": {
3354
+ "type": "string"
3355
+ }
3356
+ },
3357
+ "additionalProperties": false
3358
+ },
3359
+ {
3360
+ "type": "null"
3361
+ }
3362
+ ]
3363
+ }
3364
+ },
3365
+ "additionalProperties": false
3366
+ },
3367
+ "ActionGridItem": {
3368
+ "type": "object",
3369
+ "required": [
3370
+ "id",
3371
+ "label",
3372
+ "target",
3373
+ "intent",
3374
+ "title",
3375
+ "description"
3376
+ ],
3377
+ "properties": {
3378
+ "id": {
3379
+ "type": "string"
3380
+ },
3381
+ "label": {
3382
+ "$ref": "#/$defs/Label"
3383
+ },
3384
+ "target": {
3385
+ "$ref": "#/$defs/ActionTarget"
3386
+ },
3387
+ "intent": {
3388
+ "$ref": "#/$defs/ActionIntent"
3389
+ },
3390
+ "icon": {
3391
+ "type": "string"
3392
+ },
3393
+ "confirmation": {
3394
+ "$ref": "#/$defs/Confirmation"
3395
+ },
3396
+ "capability": {
3397
+ "type": "string"
3398
+ },
3399
+ "disabled": {
3400
+ "const": true
3401
+ },
3402
+ "loading": {
3403
+ "const": true
3404
+ },
3405
+ "title": {
3406
+ "type": "string"
3407
+ },
3408
+ "description": {
3409
+ "type": "string"
3410
+ }
3411
+ },
3412
+ "additionalProperties": false
3413
+ },
3414
+ "ActionIntent": {
3415
+ "type": "string",
3416
+ "enum": [
3417
+ "primary",
3418
+ "secondary",
3419
+ "danger",
3420
+ "success",
3421
+ "warning",
3422
+ "info",
3423
+ "link",
3424
+ "ghost"
3425
+ ]
3426
+ },
3427
+ "ActionTargetKind": {
3428
+ "type": "string",
3429
+ "enum": [
3430
+ "link",
3431
+ "route",
3432
+ "request",
3433
+ "panel"
3434
+ ]
3435
+ },
3436
+ "CardGridVariant": {
3437
+ "type": "string",
3438
+ "enum": [
3439
+ "default",
3440
+ "store",
3441
+ "connector"
3442
+ ]
3443
+ },
3444
+ "ConditionalActionVariant": {
3445
+ "type": "string",
3446
+ "enum": [
3447
+ "icon",
3448
+ "button"
3449
+ ]
3450
+ },
3451
+ "DeltaDirection": {
3452
+ "type": "string",
3453
+ "enum": [
3454
+ "positive",
3455
+ "negative",
3456
+ "neutral"
3457
+ ]
3458
+ },
3459
+ "EmptyStateVariant": {
3460
+ "type": "string",
3461
+ "enum": [
3462
+ "first-use",
3463
+ "no-results",
3464
+ "error",
3465
+ "permission"
3466
+ ]
3467
+ },
3468
+ "StatusIntent": {
3469
+ "type": "string",
3470
+ "enum": [
3471
+ "success",
3472
+ "warning",
3473
+ "destructive",
3474
+ "secondary",
3475
+ "info",
3476
+ "default"
3477
+ ]
3478
+ },
3479
+ "StatusStripTone": {
3480
+ "type": "string",
3481
+ "enum": [
3482
+ "success",
3483
+ "warning",
3484
+ "danger",
3485
+ "neutral"
3486
+ ]
3487
+ },
3488
+ "TimestampFormat": {
3489
+ "type": "string",
3490
+ "enum": [
3491
+ "relative",
3492
+ "datetime",
3493
+ "date",
3494
+ "time",
3495
+ "iso"
2257
3496
  ]
2258
3497
  },
2259
3498
  "ChartType": {