@vonage/vivid 4.28.0 → 4.30.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 (92) hide show
  1. package/custom-elements.json +707 -86
  2. package/lib/accordion-item/accordion-item.d.ts +3 -1
  3. package/lib/audio-player/audio-player.d.ts +4 -3
  4. package/lib/data-grid/data-grid.d.ts +2 -0
  5. package/lib/data-grid/locale.d.ts +1 -0
  6. package/lib/date-picker/date-picker.d.ts +4 -2
  7. package/lib/date-time-picker/date-time-picker.d.ts +6 -3
  8. package/lib/divider/definition.d.ts +1 -0
  9. package/lib/divider/divider.d.ts +5 -1
  10. package/lib/option/option.d.ts +4 -7
  11. package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +2 -1
  12. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +2 -2
  13. package/lib/rich-text-editor/image-placeholder/definition.d.ts +2 -0
  14. package/lib/rich-text-editor/image-placeholder/image-placeholder.d.ts +7 -0
  15. package/lib/rich-text-editor/image-placeholder/image-placeholder.template.d.ts +4 -0
  16. package/lib/rich-text-editor/menubar/consts.d.ts +2 -2
  17. package/lib/rich-text-editor/menubar/definition.d.ts +2 -2
  18. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  19. package/lib/rich-text-editor/menubar/menubar.template.d.ts +2 -2
  20. package/lib/rich-text-editor/rich-text-editor.d.ts +1 -0
  21. package/lib/selectable-box/selectable-box.d.ts +2 -0
  22. package/lib/split-button/split-button.d.ts +1 -1
  23. package/lib/tag/tag.d.ts +1 -1
  24. package/lib/time-picker/time-picker.d.ts +4 -2
  25. package/locales/de-DE.cjs +2 -1
  26. package/locales/de-DE.js +2 -1
  27. package/locales/en-GB.cjs +2 -1
  28. package/locales/en-GB.js +2 -1
  29. package/locales/en-US.cjs +2 -1
  30. package/locales/en-US.js +2 -1
  31. package/locales/ja-JP.cjs +2 -1
  32. package/locales/ja-JP.js +2 -1
  33. package/locales/zh-CN.cjs +2 -1
  34. package/locales/zh-CN.js +2 -1
  35. package/package.json +2 -1
  36. package/shared/calendar-picker.template.cjs +6 -5
  37. package/shared/calendar-picker.template.js +6 -5
  38. package/shared/definition.cjs +11 -2
  39. package/shared/definition.js +11 -2
  40. package/shared/definition16.cjs +33 -30
  41. package/shared/definition16.js +33 -30
  42. package/shared/definition17.cjs +137 -1
  43. package/shared/definition17.js +138 -2
  44. package/shared/definition23.cjs +12 -7
  45. package/shared/definition23.js +12 -7
  46. package/shared/definition28.cjs +1 -2
  47. package/shared/definition28.js +2 -2
  48. package/shared/definition36.cjs +1 -1
  49. package/shared/definition36.js +1 -1
  50. package/shared/definition44.cjs +194 -77
  51. package/shared/definition44.js +194 -77
  52. package/shared/definition45.cjs +12 -5
  53. package/shared/definition45.js +12 -5
  54. package/shared/definition47.cjs +11 -5
  55. package/shared/definition47.js +11 -5
  56. package/shared/definition5.cjs +86 -30
  57. package/shared/definition5.js +86 -30
  58. package/shared/definition50.cjs +1 -1
  59. package/shared/definition50.js +1 -1
  60. package/shared/definition56.cjs +1 -1
  61. package/shared/definition56.js +1 -1
  62. package/shared/definition58.cjs +10 -29
  63. package/shared/definition58.js +12 -31
  64. package/shared/definition61.cjs +11 -0
  65. package/shared/definition61.js +11 -0
  66. package/shared/definition64.cjs +1 -1
  67. package/shared/definition64.js +1 -1
  68. package/shared/definition67.cjs +27 -16
  69. package/shared/definition67.js +27 -16
  70. package/shared/divider.cjs +7 -2
  71. package/shared/divider.js +7 -2
  72. package/shared/option.cjs +36 -38
  73. package/shared/option.js +37 -39
  74. package/shared/picker-field/mixins/single-date-picker.d.ts +4 -2
  75. package/shared/picker-field/mixins/single-value-picker.d.ts +2 -1
  76. package/shared/picker-field/mixins/time-selection-picker.d.ts +4 -2
  77. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +4 -2
  78. package/shared/single-value-picker.cjs +40 -6
  79. package/shared/single-value-picker.js +40 -6
  80. package/shared/text-field.cjs +1 -1
  81. package/shared/text-field.js +1 -1
  82. package/shared/time-selection-picker.template.cjs +2 -2
  83. package/shared/time-selection-picker.template.js +2 -2
  84. package/shared/vivid-element.cjs +2 -1
  85. package/shared/vivid-element.js +2 -2
  86. package/styles/core/all.css +1 -1
  87. package/styles/core/theme.css +1 -1
  88. package/styles/core/typography.css +1 -1
  89. package/styles/tokens/theme-dark.css +4 -4
  90. package/styles/tokens/theme-light.css +4 -4
  91. package/styles/tokens/vivid-2-compat.css +1 -1
  92. package/vivid.api.json +294 -129
@@ -316,6 +316,22 @@
316
316
  "description": "",
317
317
  "name": "AccordionItem",
318
318
  "cssProperties": [
319
+ {
320
+ "name": "--vvd-accordion-item-accent-primary",
321
+ "default": "var(--vvd-color-canvas-text)"
322
+ },
323
+ {
324
+ "name": "--vvd-accordion-item-accent-primary-text",
325
+ "default": "var(--vvd-color-canvas)"
326
+ },
327
+ {
328
+ "name": "--vvd-accordion-item-accent-primary-increment",
329
+ "default": "var(--vvd-color-neutral-800)"
330
+ },
331
+ {
332
+ "name": "--vvd-accordion-item-accent-fierce",
333
+ "default": "var(--vvd-color-neutral-700)"
334
+ },
319
335
  {
320
336
  "name": "--vvd-accordion-item-accent-faint",
321
337
  "default": "var(--vvd-color-neutral-50)"
@@ -358,6 +374,15 @@
358
374
  "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
359
375
  "privacy": "public"
360
376
  },
377
+ {
378
+ "kind": "field",
379
+ "name": "appearance",
380
+ "type": {
381
+ "text": "AccordionItemAppearance | undefined"
382
+ },
383
+ "description": "The appearance the button should have.",
384
+ "privacy": "public"
385
+ },
361
386
  {
362
387
  "kind": "field",
363
388
  "name": "expanded",
@@ -493,6 +518,14 @@
493
518
  "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
494
519
  "fieldName": "headinglevel"
495
520
  },
521
+ {
522
+ "name": "appearance",
523
+ "type": {
524
+ "text": "AccordionItemAppearance | undefined"
525
+ },
526
+ "description": "The appearance the button should have.",
527
+ "fieldName": "appearance"
528
+ },
496
529
  {
497
530
  "name": "expanded",
498
531
  "type": {
@@ -1371,14 +1404,14 @@
1371
1404
  "description": "Indicates the audio-player's src.",
1372
1405
  "privacy": "public"
1373
1406
  },
1374
- {
1375
- "kind": "field",
1376
- "name": "playbackRate"
1377
- },
1378
1407
  {
1379
1408
  "kind": "method",
1380
1409
  "name": "srcChanged"
1381
1410
  },
1411
+ {
1412
+ "kind": "field",
1413
+ "name": "playbackRate"
1414
+ },
1382
1415
  {
1383
1416
  "kind": "field",
1384
1417
  "name": "disabled",
@@ -1425,6 +1458,27 @@
1425
1458
  "text": "boolean"
1426
1459
  }
1427
1460
  },
1461
+ {
1462
+ "kind": "field",
1463
+ "name": "#audioBuffer",
1464
+ "privacy": "private",
1465
+ "type": {
1466
+ "text": "AudioBuffer | undefined"
1467
+ }
1468
+ },
1469
+ {
1470
+ "kind": "field",
1471
+ "name": "#fetchAbortController",
1472
+ "privacy": "private",
1473
+ "type": {
1474
+ "text": "AbortController | undefined"
1475
+ }
1476
+ },
1477
+ {
1478
+ "kind": "method",
1479
+ "name": "#fetchAndCacheAudioBuffer",
1480
+ "async": true
1481
+ },
1428
1482
  {
1429
1483
  "kind": "field",
1430
1484
  "name": "duration"
@@ -1448,6 +1502,25 @@
1448
1502
  "privacy": "private",
1449
1503
  "default": "new Audio()"
1450
1504
  },
1505
+ {
1506
+ "kind": "field",
1507
+ "name": "#isProgrammaticSliderUpdate",
1508
+ "privacy": "private",
1509
+ "type": {
1510
+ "text": "boolean"
1511
+ },
1512
+ "default": "false"
1513
+ },
1514
+ {
1515
+ "kind": "field",
1516
+ "name": "durationFallback",
1517
+ "type": {
1518
+ "text": "boolean"
1519
+ },
1520
+ "default": "false",
1521
+ "description": "Enables fallback logic to fetch and decode audio buffer for duration when metadata is missing.",
1522
+ "privacy": "public"
1523
+ },
1451
1524
  {
1452
1525
  "kind": "method",
1453
1526
  "name": "play"
@@ -1471,15 +1544,6 @@
1471
1544
  "name": "#pausedChanged",
1472
1545
  "privacy": "private"
1473
1546
  },
1474
- {
1475
- "kind": "field",
1476
- "name": "#currentTimeChanged",
1477
- "privacy": "private",
1478
- "type": {
1479
- "text": "boolean"
1480
- },
1481
- "default": "false"
1482
- },
1483
1547
  {
1484
1548
  "kind": "field",
1485
1549
  "name": "#updateProgress",
@@ -1626,6 +1690,15 @@
1626
1690
  "default": "null",
1627
1691
  "description": "Sets the available playback rates. When an empty string, no choices will be available",
1628
1692
  "fieldName": "playbackRates"
1693
+ },
1694
+ {
1695
+ "name": "duration-fallback",
1696
+ "type": {
1697
+ "text": "boolean"
1698
+ },
1699
+ "default": "false",
1700
+ "description": "Enables fallback logic to fetch and decode audio buffer for duration when metadata is missing.",
1701
+ "fieldName": "durationFallback"
1629
1702
  }
1630
1703
  ],
1631
1704
  "mixins": [
@@ -4924,6 +4997,35 @@
4924
4997
  "vividComponent": {
4925
4998
  "public": true,
4926
4999
  "name": "button"
5000
+ },
5001
+ "vividTesting": {
5002
+ "selectors": [
5003
+ {
5004
+ "name": "byLabel",
5005
+ "args": [
5006
+ "byLabel"
5007
+ ]
5008
+ }
5009
+ ],
5010
+ "actions": [
5011
+ {
5012
+ "name": "click",
5013
+ "args": [
5014
+ "click",
5015
+ "control"
5016
+ ]
5017
+ }
5018
+ ],
5019
+ "queries": [],
5020
+ "refs": [
5021
+ {
5022
+ "name": "control",
5023
+ "args": [
5024
+ "shadow",
5025
+ ".control"
5026
+ ]
5027
+ }
5028
+ ]
4927
5029
  }
4928
5030
  }
4929
5031
  ],
@@ -6126,6 +6228,19 @@
6126
6228
  "vividComponent": {
6127
6229
  "public": true,
6128
6230
  "name": "card"
6231
+ },
6232
+ "vividTesting": {
6233
+ "selectors": [],
6234
+ "actions": [],
6235
+ "queries": [
6236
+ {
6237
+ "name": "headline",
6238
+ "args": [
6239
+ "headline"
6240
+ ]
6241
+ }
6242
+ ],
6243
+ "refs": []
6129
6244
  }
6130
6245
  }
6131
6246
  ],
@@ -6892,6 +7007,42 @@
6892
7007
  "valueMapping": "event.currentTarget.checked"
6893
7008
  }
6894
7009
  ]
7010
+ },
7011
+ "vividTesting": {
7012
+ "selectors": [
7013
+ {
7014
+ "name": "byTestId",
7015
+ "args": [
7016
+ "byTestId"
7017
+ ]
7018
+ }
7019
+ ],
7020
+ "actions": [
7021
+ {
7022
+ "name": "check",
7023
+ "args": [
7024
+ "check",
7025
+ "control"
7026
+ ]
7027
+ }
7028
+ ],
7029
+ "queries": [
7030
+ {
7031
+ "name": "checked",
7032
+ "args": [
7033
+ "checked"
7034
+ ]
7035
+ }
7036
+ ],
7037
+ "refs": [
7038
+ {
7039
+ "name": "control",
7040
+ "args": [
7041
+ "shadow",
7042
+ ".control"
7043
+ ]
7044
+ }
7045
+ ]
6895
7046
  }
6896
7047
  }
6897
7048
  ],
@@ -8871,6 +9022,15 @@
8871
9022
  "description": "The index of the column that will receive focus the next time the\ngrid is focused. This value changes as focus moves to different rows\nwithin the grid. Changing this value when focus is already within\nthe grid moves focus to the specified column.",
8872
9023
  "privacy": "public"
8873
9024
  },
9025
+ {
9026
+ "kind": "field",
9027
+ "name": "fixedColumns",
9028
+ "type": {
9029
+ "text": "number | undefined"
9030
+ },
9031
+ "description": "Number of columns to be fixed when scrolling horizontally",
9032
+ "privacy": "public"
9033
+ },
8874
9034
  {
8875
9035
  "kind": "field",
8876
9036
  "name": "rowElementTag",
@@ -8924,6 +9084,14 @@
8924
9084
  "privacy": "private",
8925
9085
  "default": "false"
8926
9086
  },
9087
+ {
9088
+ "kind": "field",
9089
+ "name": "resizeObserver",
9090
+ "type": {
9091
+ "text": "ResizeObserver | undefined"
9092
+ },
9093
+ "privacy": "private"
9094
+ },
8927
9095
  {
8928
9096
  "kind": "field",
8929
9097
  "name": "observer",
@@ -9153,6 +9321,14 @@
9153
9321
  "description": "String that gets applied to the css gridTemplateColumns attribute of child rows",
9154
9322
  "fieldName": "gridTemplateColumns"
9155
9323
  },
9324
+ {
9325
+ "name": "fixed-columns",
9326
+ "type": {
9327
+ "text": "number | undefined"
9328
+ },
9329
+ "description": "Number of columns to be fixed when scrolling horizontally",
9330
+ "fieldName": "fixedColumns"
9331
+ },
9156
9332
  {
9157
9333
  "name": "selection-mode",
9158
9334
  "type": {
@@ -12619,6 +12795,48 @@
12619
12795
  "valueMapping": "event.currentTarget.open"
12620
12796
  }
12621
12797
  ]
12798
+ },
12799
+ "vividTesting": {
12800
+ "selectors": [
12801
+ {
12802
+ "name": "byHeadline",
12803
+ "args": [
12804
+ "byHeadline"
12805
+ ]
12806
+ }
12807
+ ],
12808
+ "actions": [
12809
+ {
12810
+ "name": "clickDismissButton",
12811
+ "args": [
12812
+ "click",
12813
+ "dismissButton"
12814
+ ]
12815
+ }
12816
+ ],
12817
+ "queries": [
12818
+ {
12819
+ "name": "open",
12820
+ "args": [
12821
+ "dialogOpen"
12822
+ ]
12823
+ },
12824
+ {
12825
+ "name": "headline",
12826
+ "args": [
12827
+ "headline"
12828
+ ]
12829
+ }
12830
+ ],
12831
+ "refs": [
12832
+ {
12833
+ "name": "dismissButton",
12834
+ "args": [
12835
+ "shadow",
12836
+ ".dismiss-button"
12837
+ ]
12838
+ }
12839
+ ]
12622
12840
  }
12623
12841
  }
12624
12842
  ],
@@ -12656,6 +12874,14 @@
12656
12874
  }
12657
12875
  ],
12658
12876
  "exports": [
12877
+ {
12878
+ "kind": "js",
12879
+ "name": "DividerAppearance",
12880
+ "declaration": {
12881
+ "name": "DividerAppearance",
12882
+ "module": "./divider"
12883
+ }
12884
+ },
12659
12885
  {
12660
12886
  "kind": "js",
12661
12887
  "name": "registerDivider",
@@ -12691,6 +12917,16 @@
12691
12917
  "kind": "class",
12692
12918
  "description": "",
12693
12919
  "name": "Divider",
12920
+ "cssProperties": [
12921
+ {
12922
+ "name": "--vvd-divider-accent-soft",
12923
+ "default": "var(--vvd-color-neutral-100)"
12924
+ },
12925
+ {
12926
+ "name": "--vvd-divider-accent-dim",
12927
+ "default": "var(--vvd-color-neutral-200)"
12928
+ }
12929
+ ],
12694
12930
  "members": [
12695
12931
  {
12696
12932
  "kind": "field",
@@ -12710,16 +12946,25 @@
12710
12946
  "description": "The orientation of the divider.",
12711
12947
  "privacy": "public"
12712
12948
  },
12949
+ {
12950
+ "kind": "field",
12951
+ "name": "appearance",
12952
+ "type": {
12953
+ "text": "DividerAppearance | undefined"
12954
+ },
12955
+ "description": "The appearance of the divider.",
12956
+ "privacy": "public"
12957
+ },
12713
12958
  {
12714
12959
  "kind": "field",
12715
12960
  "name": "_vividAriaBehaviour",
12716
- "default": "'delegate'",
12961
+ "default": "'host'",
12717
12962
  "type": {
12718
- "text": "'delegate'"
12963
+ "text": "'host'"
12719
12964
  },
12720
12965
  "inheritedFrom": {
12721
- "name": "DelegatesAria",
12722
- "module": "src/shared/aria/delegates-aria.ts"
12966
+ "name": "HostSemantics",
12967
+ "module": "src/shared/aria/host-semantics.ts"
12723
12968
  }
12724
12969
  },
12725
12970
  {
@@ -12766,12 +13011,20 @@
12766
13011
  },
12767
13012
  "description": "The orientation of the divider.",
12768
13013
  "fieldName": "orientation"
13014
+ },
13015
+ {
13016
+ "name": "appearance",
13017
+ "type": {
13018
+ "text": "DividerAppearance | undefined"
13019
+ },
13020
+ "description": "The appearance of the divider.",
13021
+ "fieldName": "appearance"
12769
13022
  }
12770
13023
  ],
12771
13024
  "mixins": [
12772
13025
  {
12773
- "name": "DelegatesAria",
12774
- "module": "/src/shared/aria/delegates-aria"
13026
+ "name": "HostSemantics",
13027
+ "module": "/src/shared/aria/host-semantics"
12775
13028
  }
12776
13029
  ],
12777
13030
  "superclass": {
@@ -19128,22 +19381,7 @@
19128
19381
  },
19129
19382
  {
19130
19383
  "kind": "field",
19131
- "name": "selectedAttribute",
19132
- "type": {
19133
- "text": "boolean"
19134
- },
19135
- "description": "The selected attribute value. This sets the initial selected value.",
19136
- "privacy": "public"
19137
- },
19138
- {
19139
- "kind": "method",
19140
- "name": "selectedAttributeChanged",
19141
- "privacy": "protected",
19142
- "return": {
19143
- "type": {
19144
- "text": "void"
19145
- }
19146
- }
19384
+ "name": "selectedAttribute"
19147
19385
  },
19148
19386
  {
19149
19387
  "kind": "field",
@@ -19166,30 +19404,18 @@
19166
19404
  },
19167
19405
  {
19168
19406
  "kind": "field",
19169
- "name": "dirtyValue",
19170
- "type": {
19171
- "text": "boolean"
19172
- },
19173
- "default": "false",
19174
- "description": "Track whether the value has been changed from the initial value"
19175
- },
19176
- {
19177
- "kind": "field",
19178
- "name": "initialValue",
19407
+ "name": "value",
19179
19408
  "type": {
19180
19409
  "text": "string"
19181
19410
  },
19182
- "privacy": "protected",
19183
- "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set."
19411
+ "default": "''",
19412
+ "description": "The value of the option.",
19413
+ "privacy": "public"
19184
19414
  },
19185
19415
  {
19186
19416
  "kind": "method",
19187
- "name": "initialValueChanged",
19188
- "return": {
19189
- "type": {
19190
- "text": "void"
19191
- }
19192
- }
19417
+ "name": "valueChanged",
19418
+ "privacy": "protected"
19193
19419
  },
19194
19420
  {
19195
19421
  "kind": "field",
@@ -19220,13 +19446,6 @@
19220
19446
  "kind": "field",
19221
19447
  "name": "text"
19222
19448
  },
19223
- {
19224
- "kind": "field",
19225
- "name": "value",
19226
- "type": {
19227
- "text": "string"
19228
- }
19229
- },
19230
19449
  {
19231
19450
  "kind": "field",
19232
19451
  "name": "form",
@@ -19260,7 +19479,7 @@
19260
19479
  {
19261
19480
  "kind": "field",
19262
19481
  "name": "proxy",
19263
- "default": "new Option(\n\t\t\tthis.text,\n\t\t\t// @ts-expect-error Propery is used before it is assigned\n\t\t\tthis.initialValue,\n\t\t\tthis.defaultSelected,\n\t\t\tthis.selected\n\t\t)",
19482
+ "default": "new Option(\n\t\t\tthis.text,\n\t\t\tthis.value,\n\t\t\tthis.defaultSelected,\n\t\t\tthis.selected\n\t\t)",
19264
19483
  "description": ""
19265
19484
  },
19266
19485
  {
@@ -19331,6 +19550,15 @@
19331
19550
  }
19332
19551
  ],
19333
19552
  "attributes": [
19553
+ {
19554
+ "name": "selected",
19555
+ "type": {
19556
+ "text": "boolean"
19557
+ },
19558
+ "default": "false",
19559
+ "description": "The defaultSelected state of the option.",
19560
+ "fieldName": "defaultSelected"
19561
+ },
19334
19562
  {
19335
19563
  "name": "disabled",
19336
19564
  "type": {
@@ -19340,20 +19568,21 @@
19340
19568
  "fieldName": "disabled"
19341
19569
  },
19342
19570
  {
19343
- "name": "selected",
19571
+ "name": "current-selected",
19344
19572
  "type": {
19345
19573
  "text": "boolean"
19346
19574
  },
19347
- "description": "The selected attribute value. This sets the initial selected value.",
19348
- "fieldName": "selectedAttribute"
19575
+ "description": "The checked state of the control.",
19576
+ "fieldName": "selected"
19349
19577
  },
19350
19578
  {
19351
19579
  "name": "value",
19352
19580
  "type": {
19353
19581
  "text": "string"
19354
19582
  },
19355
- "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
19356
- "fieldName": "initialValue"
19583
+ "default": "''",
19584
+ "description": "The value of the option.",
19585
+ "fieldName": "value"
19357
19586
  },
19358
19587
  {
19359
19588
  "name": "label",
@@ -24406,6 +24635,26 @@
24406
24635
  "valueMapping": "event.currentTarget.values"
24407
24636
  }
24408
24637
  ]
24638
+ },
24639
+ "vividTesting": {
24640
+ "selectors": [],
24641
+ "actions": [
24642
+ {
24643
+ "name": "toggleOptionsByValue",
24644
+ "args": [
24645
+ "toggleOptionsByValue"
24646
+ ]
24647
+ }
24648
+ ],
24649
+ "queries": [
24650
+ {
24651
+ "name": "values",
24652
+ "args": [
24653
+ "values"
24654
+ ]
24655
+ }
24656
+ ],
24657
+ "refs": []
24409
24658
  }
24410
24659
  }
24411
24660
  ],
@@ -25339,6 +25588,19 @@
25339
25588
  "valueMapping": "event.currentTarget.value"
25340
25589
  }
25341
25590
  ]
25591
+ },
25592
+ "vividTesting": {
25593
+ "selectors": [],
25594
+ "actions": [
25595
+ {
25596
+ "name": "selectOptionByText",
25597
+ "args": [
25598
+ "selectOptionByText"
25599
+ ]
25600
+ }
25601
+ ],
25602
+ "queries": [],
25603
+ "refs": []
25342
25604
  }
25343
25605
  }
25344
25606
  ],
@@ -25493,6 +25755,16 @@
25493
25755
  "description": "The type of control the box should have: checkbox or radio.",
25494
25756
  "privacy": "public"
25495
25757
  },
25758
+ {
25759
+ "kind": "field",
25760
+ "name": "controlPlacement",
25761
+ "type": {
25762
+ "text": "SelectableBoxControlPlacement"
25763
+ },
25764
+ "default": "'end-stacked'",
25765
+ "description": "Defines where the control (checkbox or radio) should be located.",
25766
+ "privacy": "public"
25767
+ },
25496
25768
  {
25497
25769
  "kind": "field",
25498
25770
  "name": "tight",
@@ -25595,6 +25867,15 @@
25595
25867
  "description": "The type of control the box should have: checkbox or radio.",
25596
25868
  "fieldName": "controlType"
25597
25869
  },
25870
+ {
25871
+ "name": "control-placement",
25872
+ "type": {
25873
+ "text": "SelectableBoxControlPlacement"
25874
+ },
25875
+ "default": "'end-stacked'",
25876
+ "description": "Defines where the control (checkbox or radio) should be located.",
25877
+ "fieldName": "controlPlacement"
25878
+ },
25598
25879
  {
25599
25880
  "name": "tight",
25600
25881
  "type": {
@@ -26738,6 +27019,10 @@
26738
27019
  "name": "--vvd-split-button-cta-faint",
26739
27020
  "default": "var(--vvd-color-cta-50)"
26740
27021
  },
27022
+ {
27023
+ "name": "--vvd-split-button-cta-fierce-primary",
27024
+ "default": "var(--vvd-color-cta-700)"
27025
+ },
26741
27026
  {
26742
27027
  "name": "--vvd-split-button-success-primary",
26743
27028
  "default": "var(--vvd-color-success-500)"
@@ -26770,6 +27055,10 @@
26770
27055
  "name": "--vvd-split-button-success-faint",
26771
27056
  "default": "var(--vvd-color-success-50)"
26772
27057
  },
27058
+ {
27059
+ "name": "--vvd-split-button-success-fierce-primary",
27060
+ "default": "var(--vvd-color-success-700)"
27061
+ },
26773
27062
  {
26774
27063
  "name": "--vvd-split-button-alert-primary",
26775
27064
  "default": "var(--vvd-color-alert-500)"
@@ -26802,6 +27091,10 @@
26802
27091
  "name": "--vvd-split-button-alert-faint",
26803
27092
  "default": "var(--vvd-color-alert-50)"
26804
27093
  },
27094
+ {
27095
+ "name": "--vvd-split-button-alert-fierce-primary",
27096
+ "default": "var(--vvd-color-alert-700)"
27097
+ },
26805
27098
  {
26806
27099
  "name": "--vvd-split-button-announcement-primary",
26807
27100
  "default": "var(--vvd-color-announcement-500)"
@@ -26834,6 +27127,10 @@
26834
27127
  "name": "--vvd-split-button-announcement-faint",
26835
27128
  "default": "var(--vvd-color-announcement-50)"
26836
27129
  },
27130
+ {
27131
+ "name": "--vvd-split-button-announcement-fierce-primary",
27132
+ "default": "var(--vvd-color-announcement-700)"
27133
+ },
26837
27134
  {
26838
27135
  "name": "--vvd-split-button-accent-primary",
26839
27136
  "default": "var(--vvd-color-canvas-text)"
@@ -26865,6 +27162,10 @@
26865
27162
  {
26866
27163
  "name": "--vvd-split-button-accent-faint",
26867
27164
  "default": "var(--vvd-color-neutral-50)"
27165
+ },
27166
+ {
27167
+ "name": "--vvd-split-button-accent-fierce-primary",
27168
+ "default": "var(--vvd-color-canvas-text)"
26868
27169
  }
26869
27170
  ],
26870
27171
  "slots": [
@@ -28827,13 +29128,21 @@
28827
29128
  "name": "Tag",
28828
29129
  "cssProperties": [
28829
29130
  {
28830
- "name": "--vvd-tag-cta-contrast",
28831
- "default": "var(--vvd-color-cta-800)"
29131
+ "name": "--vvd-tag-cta-primary",
29132
+ "default": "var(--vvd-color-cta-500)"
29133
+ },
29134
+ {
29135
+ "name": "--vvd-tag-cta-primary-text",
29136
+ "default": "var(--vvd-color-canvas)"
28832
29137
  },
28833
29138
  {
28834
29139
  "name": "--vvd-tag-cta-soft",
28835
29140
  "default": "var(--vvd-color-cta-100)"
28836
29141
  },
29142
+ {
29143
+ "name": "--vvd-tag-cta-contrast",
29144
+ "default": "var(--vvd-color-cta-800)"
29145
+ },
28837
29146
  {
28838
29147
  "name": "--vvd-tag-cta-pale",
28839
29148
  "default": "var(--vvd-color-cta-300)"
@@ -28842,6 +29151,10 @@
28842
29151
  "name": "--vvd-tag-cta-fierce",
28843
29152
  "default": "var(--vvd-color-cta-700)"
28844
29153
  },
29154
+ {
29155
+ "name": "--vvd-tag-cta-firm",
29156
+ "default": "var(--vvd-color-cta-600)"
29157
+ },
28845
29158
  {
28846
29159
  "name": "--vvd-tag-cta-firm-all",
28847
29160
  "default": "var(--vvd-color-cta-600)"
@@ -28855,13 +29168,21 @@
28855
29168
  "default": "var(--vvd-color-cta-200)"
28856
29169
  },
28857
29170
  {
28858
- "name": "--vvd-tag-accent-contrast",
28859
- "default": "var(--vvd-color-neutral-800)"
29171
+ "name": "--vvd-tag-accent-primary",
29172
+ "default": "var(--vvd-color-canvas-text)"
29173
+ },
29174
+ {
29175
+ "name": "--vvd-tag-accent-primary-text",
29176
+ "default": "var(--vvd-color-canvas)"
28860
29177
  },
28861
29178
  {
28862
29179
  "name": "--vvd-tag-accent-soft",
28863
29180
  "default": "var(--vvd-color-neutral-100)"
28864
29181
  },
29182
+ {
29183
+ "name": "--vvd-tag-accent-contrast",
29184
+ "default": "var(--vvd-color-neutral-800)"
29185
+ },
28865
29186
  {
28866
29187
  "name": "--vvd-tag-accent-pale",
28867
29188
  "default": "var(--vvd-color-neutral-300)"
@@ -28870,6 +29191,10 @@
28870
29191
  "name": "--vvd-tag-accent-fierce",
28871
29192
  "default": "var(--vvd-color-neutral-700)"
28872
29193
  },
29194
+ {
29195
+ "name": "--vvd-tag-accent-firm",
29196
+ "default": "var(--vvd-color-canvas-text)"
29197
+ },
28873
29198
  {
28874
29199
  "name": "--vvd-tag-accent-firm-all",
28875
29200
  "default": "var(--vvd-color-neutral-600)"
@@ -30215,6 +30540,28 @@
30215
30540
  "valueMapping": "event.currentTarget.value"
30216
30541
  }
30217
30542
  ]
30543
+ },
30544
+ "vividTesting": {
30545
+ "selectors": [],
30546
+ "actions": [
30547
+ {
30548
+ "name": "fill",
30549
+ "args": [
30550
+ "fill",
30551
+ "control"
30552
+ ]
30553
+ }
30554
+ ],
30555
+ "queries": [],
30556
+ "refs": [
30557
+ {
30558
+ "name": "control",
30559
+ "args": [
30560
+ "shadow",
30561
+ ".control"
30562
+ ]
30563
+ }
30564
+ ]
30218
30565
  }
30219
30566
  }
30220
30567
  ],
@@ -31172,6 +31519,29 @@
31172
31519
  "valueMapping": "event.currentTarget.value"
31173
31520
  }
31174
31521
  ]
31522
+ },
31523
+ "vividTesting": {
31524
+ "selectors": [],
31525
+ "actions": [
31526
+ {
31527
+ "name": "fill",
31528
+ "args": [
31529
+ "fill",
31530
+ "control"
31531
+ ]
31532
+ }
31533
+ ],
31534
+ "queries": [],
31535
+ "refs": [
31536
+ {
31537
+ "name": "control",
31538
+ "args": [
31539
+ "light",
31540
+ "input[slot=\"_control\"]",
31541
+ "HTMLInputElement"
31542
+ ]
31543
+ }
31544
+ ]
31175
31545
  }
31176
31546
  }
31177
31547
  ],
@@ -32444,6 +32814,10 @@
32444
32814
  "name": "#hide",
32445
32815
  "privacy": "private"
32446
32816
  },
32817
+ {
32818
+ "kind": "method",
32819
+ "name": "#updateAnchorExpanded"
32820
+ },
32447
32821
  {
32448
32822
  "kind": "method",
32449
32823
  "name": "#updateListeners"
@@ -32583,6 +32957,26 @@
32583
32957
  "vividComponent": {
32584
32958
  "public": true,
32585
32959
  "name": "tooltip"
32960
+ },
32961
+ "vividTesting": {
32962
+ "selectors": [
32963
+ {
32964
+ "name": "byText",
32965
+ "args": [
32966
+ "byText"
32967
+ ]
32968
+ }
32969
+ ],
32970
+ "actions": [],
32971
+ "queries": [
32972
+ {
32973
+ "name": "open",
32974
+ "args": [
32975
+ "open"
32976
+ ]
32977
+ }
32978
+ ],
32979
+ "refs": []
32586
32980
  }
32587
32981
  }
32588
32982
  ],
@@ -33771,13 +34165,30 @@
33771
34165
  "kind": "javascript-module",
33772
34166
  "path": "src/lib/rich-text-editor/facades/prose-mirror-vivid.schema.ts",
33773
34167
  "declarations": [
34168
+ {
34169
+ "kind": "function",
34170
+ "name": "dynamicSchema",
34171
+ "parameters": [
34172
+ {
34173
+ "name": "prefix",
34174
+ "default": "'vwc'"
34175
+ }
34176
+ ]
34177
+ },
33774
34178
  {
33775
34179
  "kind": "variable",
33776
- "name": "extendedSchema",
33777
- "default": "new Schema({\n\tnodes: basicSchema.spec.nodes,\n\tmarks: {\n\t\t...basicSchema.spec.marks.toObject(),\n\t\t...customMarks,\n\t},\n})"
34180
+ "name": "extendedSchema"
33778
34181
  }
33779
34182
  ],
33780
34183
  "exports": [
34184
+ {
34185
+ "kind": "js",
34186
+ "name": "dynamicSchema",
34187
+ "declaration": {
34188
+ "name": "dynamicSchema",
34189
+ "module": "src/lib/rich-text-editor/facades/prose-mirror-vivid.schema.ts"
34190
+ }
34191
+ },
33781
34192
  {
33782
34193
  "kind": "js",
33783
34194
  "name": "default",
@@ -33848,6 +34259,15 @@
33848
34259
  "name": "#handleChangeEvent",
33849
34260
  "privacy": "private"
33850
34261
  },
34262
+ {
34263
+ "kind": "field",
34264
+ "name": "#vwcPrefix",
34265
+ "privacy": "private",
34266
+ "type": {
34267
+ "text": "string"
34268
+ },
34269
+ "default": "'vwc'"
34270
+ },
33851
34271
  {
33852
34272
  "kind": "method",
33853
34273
  "name": "init",
@@ -33857,6 +34277,10 @@
33857
34277
  "type": {
33858
34278
  "text": "HTMLElement"
33859
34279
  }
34280
+ },
34281
+ {
34282
+ "name": "vwcPrefix",
34283
+ "default": "'vwc'"
33860
34284
  }
33861
34285
  ]
33862
34286
  },
@@ -34008,7 +34432,7 @@
34008
34432
  },
34009
34433
  "parameters": [
34010
34434
  {
34011
- "name": "{\n\t\tfile,\n\t\tposition,\n\t\talt,\n\t}",
34435
+ "name": "{\n\t\tfile,\n\t\tposition,\n\t\talt,\n\t\terror,\n\t}",
34012
34436
  "type": {
34013
34437
  "text": "RichTextEditorInlineImageProps"
34014
34438
  }
@@ -34046,6 +34470,157 @@
34046
34470
  }
34047
34471
  ]
34048
34472
  },
34473
+ {
34474
+ "kind": "javascript-module",
34475
+ "path": "src/lib/rich-text-editor/image-placeholder/definition.ts",
34476
+ "declarations": [
34477
+ {
34478
+ "kind": "variable",
34479
+ "name": "imagePlaceholderDefinition"
34480
+ },
34481
+ {
34482
+ "kind": "variable",
34483
+ "name": "registerImagePlaceholder",
34484
+ "description": "Registers the menubar element with the design system.",
34485
+ "parameters": [
34486
+ {
34487
+ "description": "the prefix to use for the component name",
34488
+ "name": "prefix"
34489
+ }
34490
+ ]
34491
+ }
34492
+ ],
34493
+ "exports": [
34494
+ {
34495
+ "kind": "js",
34496
+ "name": "imagePlaceholderDefinition",
34497
+ "declaration": {
34498
+ "name": "imagePlaceholderDefinition",
34499
+ "module": "src/lib/rich-text-editor/image-placeholder/definition.ts"
34500
+ }
34501
+ },
34502
+ {
34503
+ "kind": "js",
34504
+ "name": "registerImagePlaceholder",
34505
+ "declaration": {
34506
+ "name": "registerImagePlaceholder",
34507
+ "module": "src/lib/rich-text-editor/image-placeholder/definition.ts"
34508
+ }
34509
+ }
34510
+ ]
34511
+ },
34512
+ {
34513
+ "kind": "javascript-module",
34514
+ "path": "src/lib/rich-text-editor/image-placeholder/image-placeholder.ts",
34515
+ "declarations": [
34516
+ {
34517
+ "kind": "class",
34518
+ "description": "",
34519
+ "name": "ImagePlaceholder",
34520
+ "members": [
34521
+ {
34522
+ "kind": "field",
34523
+ "name": "fileName",
34524
+ "type": {
34525
+ "text": "string | undefined"
34526
+ }
34527
+ },
34528
+ {
34529
+ "kind": "field",
34530
+ "name": "size",
34531
+ "type": {
34532
+ "text": "string | undefined"
34533
+ }
34534
+ },
34535
+ {
34536
+ "kind": "field",
34537
+ "name": "errorMessage",
34538
+ "type": {
34539
+ "text": "string | undefined"
34540
+ }
34541
+ },
34542
+ {
34543
+ "kind": "field",
34544
+ "name": "icon",
34545
+ "type": {
34546
+ "text": "string | undefined"
34547
+ }
34548
+ },
34549
+ {
34550
+ "kind": "field",
34551
+ "name": "VIVID_VERSION",
34552
+ "static": true,
34553
+ "default": "__PACKAGE_VERSION__",
34554
+ "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
34555
+ "type": {
34556
+ "text": "string"
34557
+ },
34558
+ "inheritedFrom": {
34559
+ "name": "VividElement",
34560
+ "module": "src/shared/foundation/vivid-element/vivid-element.ts"
34561
+ }
34562
+ },
34563
+ {
34564
+ "kind": "field",
34565
+ "name": "componentName",
34566
+ "type": {
34567
+ "text": "string"
34568
+ },
34569
+ "static": true,
34570
+ "description": "Core component name, without prefix",
34571
+ "inheritedFrom": {
34572
+ "name": "VividElement",
34573
+ "module": "src/shared/foundation/vivid-element/vivid-element.ts"
34574
+ }
34575
+ }
34576
+ ],
34577
+ "attributes": [
34578
+ {
34579
+ "name": "file-name",
34580
+ "type": {
34581
+ "text": "string | undefined"
34582
+ },
34583
+ "fieldName": "fileName"
34584
+ },
34585
+ {
34586
+ "name": "size",
34587
+ "type": {
34588
+ "text": "string | undefined"
34589
+ },
34590
+ "fieldName": "size"
34591
+ },
34592
+ {
34593
+ "name": "error-message",
34594
+ "type": {
34595
+ "text": "string | undefined"
34596
+ },
34597
+ "fieldName": "errorMessage"
34598
+ },
34599
+ {
34600
+ "name": "icon",
34601
+ "type": {
34602
+ "text": "string | undefined"
34603
+ },
34604
+ "fieldName": "icon"
34605
+ }
34606
+ ],
34607
+ "superclass": {
34608
+ "name": "VividElement",
34609
+ "module": "/src/shared/foundation/vivid-element/vivid-element"
34610
+ }
34611
+ }
34612
+ ],
34613
+ "exports": [
34614
+ {
34615
+ "kind": "js",
34616
+ "name": "ImagePlaceholder",
34617
+ "declaration": {
34618
+ "name": "ImagePlaceholder",
34619
+ "module": "src/lib/rich-text-editor/image-placeholder/image-placeholder.ts"
34620
+ }
34621
+ }
34622
+ ]
34623
+ },
34049
34624
  {
34050
34625
  "kind": "javascript-module",
34051
34626
  "path": "src/lib/rich-text-editor/menubar/consts.ts",
@@ -34070,9 +34645,9 @@
34070
34645
  "kind": "variable",
34071
34646
  "name": "MENU_BAR_ITEMS",
34072
34647
  "type": {
34073
- "text": "{\n\t[key: string]: {\n\t\tregisterStateProperty?: (menuBar: MenuBar) => void;\n\t\trender: (context: VividElementDefinitionContext) => ViewTemplate<any, any>;\n\t};\n}"
34648
+ "text": "{\n\t[key: string]: {\n\t\tregisterStateProperty?: (menubar: Menubar) => void;\n\t\trender: (context: VividElementDefinitionContext) => ViewTemplate<any, any>;\n\t};\n}"
34074
34649
  },
34075
- "default": "{\n\ttextBlock: {\n\t\tregisterStateProperty: function (menuBar: MenuBar) {\n\t\t\tmenuBar.addEventListener('text-styles-changed', textBlockEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst selectTag = context.tagFor(Select);\n\t\t\tconst optionTag = context.tagFor(ListboxOption);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\n\t\t\treturn html`\n\t\t<${tooltipTag} text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textBlockType}\" placement=\"top\">\n\t\t\t<${selectTag}\n scale=\"condensed\"\n shape=\"rounded\"\n appearance=\"ghost\"\n\t\t\t\tslot=\"anchor\"\n\t\t\t\ttrigger=\"auto\"\n\t\t\t\tid=\"text-block\"\n\t\t\t\taria-label=\"Text Block\"\n\t\t\t\tplacement=\"bottom-end\"\n\t\t\t\tvalue=\"${(_, { parent }) => parent.textBlockType}\"\n\t\t\t\t@change=\"${(_, { parent, event }) =>\n\t\t\t\t\tnotifyMenuBarChange(\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\t'text-block-selected',\n\t\t\t\t\t\t(event.target as HTMLSelectElement).value\n\t\t\t\t\t)}\"\n\t\t\t>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Title\"\n\t\t\t\t\tvalue=\"title\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"title\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Subtitle\"\n\t\t\t\t\tvalue=\"subtitle\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"subtitle\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Body\"\n\t\t\t\t\tvalue=\"body\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"body\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t</${selectTag}>\n\t\t</${tooltipTag}>\n\t\t`;\n\t\t},\n\t},\n\ttextDecoration: {\n\t\tregisterStateProperty: function (menuBar) {\n\t\t\tmenuBar.addEventListener(\n\t\t\t\t'text-styles-changed',\n\t\t\t\ttextDecorationEventHandler\n\t\t\t);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\treturn html`\n\t\t\t\t<span id=\"text-decoration\">\n\t\t\t\t\t${repeat(\n\t\t\t\t\t\t(_) => TEXT_DECORATION_ITEMS,\n\t\t\t\t\t\thtml`\n <${tooltipTag} text=\"${(\n\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\" placement=\"top\">\n <${buttonTag}\n class=\"selection-button\"\n slot=\"anchor\"\n aria-label=\"${(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"rounded\"\n icon=\"${(x) => x.icon}\"\n @click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnotifyMenuBarChange(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'text-decoration-selected',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\"')}\"\n ></${buttonTag}>\n </${tooltipTag}>\n\t\t\t\t`\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t`;\n\t\t},\n\t},\n\ttextSize: {\n\t\tregisterStateProperty: function (menuBar) {\n\t\t\tmenuBar.addEventListener('text-styles-changed', textSizeEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst menuTag = context.tagFor(Menu);\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\tconst menuItemTag = context.tagFor(MenuItem);\n\t\t\treturn html`\n <${menuTag}\n\t\t\t\t\t\tauto-dismiss\n trigger=\"auto\"\n id=\"text-size\"\n aria-label=\"Text Size\"\n placement=\"bottom-end\"\n >\n\t\t\t\t\t\t<${tooltipTag} slot=\"anchor\" text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textSize}\" placement=\"top\">\n <${buttonTag}\n slot=\"anchor\"\n aria-label=\"Open text size menu\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"pill\"\n icon=\"text-size-line\"\n ></${buttonTag}>\n\t\t\t\t\t\t</${tooltipTag}>\n\t\t\t\t\t\t${repeat(\n\t\t\t\t\t\t\t(_) => TEXT_SIZES,\n\t\t\t\t\t\t\thtml`\n\t\t\t\t\t\t\t<${menuItemTag}\n\t\t\t\t\t\t\t\tcheck-appearance=\"tick-only\"\n\t\t\t\t\t\t\t\tcontrol-type=\"checkbox\"\n\t\t\t\t\t\t\t\ttext=\"${(x) => x.text}\"\n\t\t\t\t\t\t\t\tvalue=\"${(x) => x.value}\"\n\t\t\t\t\t\t\t\tinternal-part\n\t\t\t\t\t\t\t\tclass=\"menubar-selector-menuitem\"\n\t\t\t\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t\t\t\t\t@click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\tnotifyMenuBarChange(\n\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t'text-size-selected',\n\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t)}\"\n ></${menuItemTag}>\n\t\t\t\t\t\t\t`\n\t\t\t\t\t\t)}\n </${menuTag}>\n `;\n\t\t},\n\t},\n\tdivider: {\n\t\trender: function (context) {\n\t\t\tconst dividerTag = context.tagFor(Divider);\n\t\t\treturn html`\n\t\t\t\t<${dividerTag} class=\"divider\" orientation=\"vertical\"></${dividerTag}>\n\t\t\t`;\n\t\t},\n\t},\n}"
34650
+ "default": "{\n\ttextBlock: {\n\t\tregisterStateProperty: function (menubar: Menubar) {\n\t\t\tmenubar.addEventListener('text-styles-changed', textBlockEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst selectTag = context.tagFor(Select);\n\t\t\tconst optionTag = context.tagFor(ListboxOption);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\n\t\t\treturn html`\n\t\t<${tooltipTag} text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textBlockType}\" placement=\"top\">\n\t\t\t<${selectTag}\n scale=\"condensed\"\n shape=\"rounded\"\n appearance=\"ghost\"\n\t\t\t\tslot=\"anchor\"\n\t\t\t\ttrigger=\"auto\"\n\t\t\t\tid=\"text-block\"\n\t\t\t\taria-label=\"Text Block\"\n\t\t\t\tplacement=\"bottom-end\"\n\t\t\t\tvalue=\"${(_, { parent }) => parent.textBlockType}\"\n\t\t\t\t@change=\"${(_, { parent, event }) =>\n\t\t\t\t\tnotifyMenubarChange(\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\t'text-block-selected',\n\t\t\t\t\t\t(event.target as HTMLSelectElement).value\n\t\t\t\t\t)}\"\n\t\t\t>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Title\"\n\t\t\t\t\tvalue=\"title\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"title\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Subtitle\"\n\t\t\t\t\tvalue=\"subtitle\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"subtitle\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Body\"\n\t\t\t\t\tvalue=\"body\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"body\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t</${selectTag}>\n\t\t</${tooltipTag}>\n\t\t`;\n\t\t},\n\t},\n\ttextDecoration: {\n\t\tregisterStateProperty: function (menubar) {\n\t\t\tmenubar.addEventListener(\n\t\t\t\t'text-styles-changed',\n\t\t\t\ttextDecorationEventHandler\n\t\t\t);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\treturn html`\n\t\t\t\t<span id=\"text-decoration\">\n\t\t\t\t\t${repeat(\n\t\t\t\t\t\t(_) => TEXT_DECORATION_ITEMS,\n\t\t\t\t\t\thtml`\n <${tooltipTag} text=\"${(\n\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\" placement=\"top\">\n <${buttonTag}\n class=\"selection-button\"\n slot=\"anchor\"\n aria-label=\"${(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"rounded\"\n icon=\"${(x) => x.icon}\"\n @click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnotifyMenubarChange(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'text-decoration-selected',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\"')}\"\n ></${buttonTag}>\n </${tooltipTag}>\n\t\t\t\t`\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t`;\n\t\t},\n\t},\n\ttextSize: {\n\t\tregisterStateProperty: function (menubar) {\n\t\t\tmenubar.addEventListener('text-styles-changed', textSizeEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst menuTag = context.tagFor(Menu);\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\tconst menuItemTag = context.tagFor(MenuItem);\n\t\t\treturn html`\n <${menuTag}\n\t\t\t\t\t\tauto-dismiss\n trigger=\"auto\"\n id=\"text-size\"\n aria-label=\"Text Size\"\n placement=\"bottom-end\"\n >\n\t\t\t\t\t\t<${tooltipTag} slot=\"anchor\" text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textSize}\" placement=\"top\">\n <${buttonTag}\n slot=\"anchor\"\n aria-label=\"Open text size menu\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"pill\"\n icon=\"text-size-line\"\n ></${buttonTag}>\n\t\t\t\t\t\t</${tooltipTag}>\n\t\t\t\t\t\t${repeat(\n\t\t\t\t\t\t\t(_) => TEXT_SIZES,\n\t\t\t\t\t\t\thtml`\n\t\t\t\t\t\t\t<${menuItemTag}\n\t\t\t\t\t\t\t\tcheck-appearance=\"tick-only\"\n\t\t\t\t\t\t\t\tcontrol-type=\"checkbox\"\n\t\t\t\t\t\t\t\ttext=\"${(x) => x.text}\"\n\t\t\t\t\t\t\t\tvalue=\"${(x) => x.value}\"\n\t\t\t\t\t\t\t\tinternal-part\n\t\t\t\t\t\t\t\tclass=\"menubar-selector-menuitem\"\n\t\t\t\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t\t\t\t\t@click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\tnotifyMenubarChange(\n\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t'text-size-selected',\n\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t)}\"\n ></${menuItemTag}>\n\t\t\t\t\t\t\t`\n\t\t\t\t\t\t)}\n </${menuTag}>\n `;\n\t\t},\n\t},\n\tdivider: {\n\t\trender: function (context) {\n\t\t\tconst dividerTag = context.tagFor(Divider);\n\t\t\treturn html`\n\t\t\t\t<${dividerTag} class=\"divider\" orientation=\"vertical\"></${dividerTag}>\n\t\t\t`;\n\t\t},\n\t},\n}"
34076
34651
  }
34077
34652
  ],
34078
34653
  "exports": [
@@ -34108,11 +34683,11 @@
34108
34683
  "declarations": [
34109
34684
  {
34110
34685
  "kind": "variable",
34111
- "name": "menuBarDefinition"
34686
+ "name": "menubarDefinition"
34112
34687
  },
34113
34688
  {
34114
34689
  "kind": "variable",
34115
- "name": "registerMenuBar",
34690
+ "name": "registerMenubar",
34116
34691
  "description": "Registers the menubar element with the design system.",
34117
34692
  "parameters": [
34118
34693
  {
@@ -34125,17 +34700,17 @@
34125
34700
  "exports": [
34126
34701
  {
34127
34702
  "kind": "js",
34128
- "name": "menuBarDefinition",
34703
+ "name": "menubarDefinition",
34129
34704
  "declaration": {
34130
- "name": "menuBarDefinition",
34705
+ "name": "menubarDefinition",
34131
34706
  "module": "src/lib/rich-text-editor/menubar/definition.ts"
34132
34707
  }
34133
34708
  },
34134
34709
  {
34135
34710
  "kind": "js",
34136
- "name": "registerMenuBar",
34711
+ "name": "registerMenubar",
34137
34712
  "declaration": {
34138
- "name": "registerMenuBar",
34713
+ "name": "registerMenubar",
34139
34714
  "module": "src/lib/rich-text-editor/menubar/definition.ts"
34140
34715
  }
34141
34716
  }
@@ -34148,7 +34723,7 @@
34148
34723
  {
34149
34724
  "kind": "class",
34150
34725
  "description": "",
34151
- "name": "MenuBar",
34726
+ "name": "Menubar",
34152
34727
  "members": [
34153
34728
  {
34154
34729
  "kind": "field",
@@ -34224,9 +34799,9 @@
34224
34799
  "exports": [
34225
34800
  {
34226
34801
  "kind": "js",
34227
- "name": "MenuBar",
34802
+ "name": "Menubar",
34228
34803
  "declaration": {
34229
- "name": "MenuBar",
34804
+ "name": "Menubar",
34230
34805
  "module": "src/lib/rich-text-editor/menubar/menubar.ts"
34231
34806
  }
34232
34807
  }
@@ -34968,7 +35543,20 @@
34968
35543
  "default": "false",
34969
35544
  "fieldName": "required"
34970
35545
  }
34971
- ]
35546
+ ],
35547
+ "vividTesting": {
35548
+ "selectors": [],
35549
+ "actions": [],
35550
+ "queries": [
35551
+ {
35552
+ "name": "value",
35553
+ "args": [
35554
+ "value"
35555
+ ]
35556
+ }
35557
+ ],
35558
+ "refs": []
35559
+ }
34972
35560
  },
34973
35561
  {
34974
35562
  "kind": "mixin",
@@ -35748,6 +36336,19 @@
35748
36336
  "name": "FASTElement",
35749
36337
  "package": "@microsoft/fast-element"
35750
36338
  },
36339
+ "vividTesting": {
36340
+ "selectors": [],
36341
+ "actions": [
36342
+ {
36343
+ "name": "hover",
36344
+ "args": [
36345
+ "hover"
36346
+ ]
36347
+ }
36348
+ ],
36349
+ "queries": [],
36350
+ "refs": []
36351
+ },
35751
36352
  "customElement": true
35752
36353
  }
35753
36354
  ],
@@ -36446,7 +37047,27 @@
36446
37047
  "description": "The label for the form element.",
36447
37048
  "fieldName": "label"
36448
37049
  }
36449
- ]
37050
+ ],
37051
+ "vividTesting": {
37052
+ "selectors": [
37053
+ {
37054
+ "name": "byLabel",
37055
+ "args": [
37056
+ "byLabel"
37057
+ ]
37058
+ }
37059
+ ],
37060
+ "actions": [],
37061
+ "queries": [
37062
+ {
37063
+ "name": "visibleError",
37064
+ "args": [
37065
+ "visibleError"
37066
+ ]
37067
+ }
37068
+ ],
37069
+ "refs": []
37070
+ }
36450
37071
  }
36451
37072
  ],
36452
37073
  "exports": [