@carbon/ai-chat-components 1.2.0 → 1.3.0-rc.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 (146) hide show
  1. package/custom-elements.json +408 -37
  2. package/es/components/card/src/card-footer.scss.js +1 -1
  3. package/es/components/card/src/card-steps.scss.js +1 -1
  4. package/es/components/card/src/card.scss.js +1 -1
  5. package/es/components/carousel/src/carousel.js +1 -0
  6. package/es/components/carousel/src/carousel.js.map +1 -1
  7. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  8. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  9. package/es/components/chat-history/src/history-content.d.ts +4 -4
  10. package/es/components/chat-history/src/history-content.js +20 -22
  11. package/es/components/chat-history/src/history-content.js.map +1 -1
  12. package/es/components/chat-history/src/history-panel-item.d.ts +18 -1
  13. package/es/components/chat-history/src/history-panel-item.js +60 -11
  14. package/es/components/chat-history/src/history-panel-item.js.map +1 -1
  15. package/es/components/chat-history/src/history-panel.d.ts +6 -0
  16. package/es/components/chat-history/src/history-panel.js +9 -0
  17. package/es/components/chat-history/src/history-panel.js.map +1 -1
  18. package/es/components/chat-history/src/history-toolbar.d.ts +1 -0
  19. package/es/components/chat-history/src/history-toolbar.js +10 -2
  20. package/es/components/chat-history/src/history-toolbar.js.map +1 -1
  21. package/es/components/chat-shell/src/chat-header.js +12 -5
  22. package/es/components/chat-shell/src/chat-header.js.map +1 -1
  23. package/es/components/chat-shell/src/corner-manager.d.ts +7 -3
  24. package/es/components/chat-shell/src/corner-manager.js +32 -17
  25. package/es/components/chat-shell/src/corner-manager.js.map +1 -1
  26. package/es/components/chat-shell/src/shell.d.ts +1 -0
  27. package/es/components/chat-shell/src/shell.js +21 -2
  28. package/es/components/chat-shell/src/shell.js.map +1 -1
  29. package/es/components/code-snippet/src/code-snippet.d.ts +7 -3
  30. package/es/components/code-snippet/src/code-snippet.js +47 -10
  31. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  32. package/es/components/code-snippet/src/layout-utils.d.ts +3 -1
  33. package/es/components/code-snippet/src/layout-utils.js.map +1 -1
  34. package/es/components/feedback/src/feedback-buttons.js +16 -3
  35. package/es/components/feedback/src/feedback-buttons.js.map +1 -1
  36. package/es/components/feedback/src/feedback.d.ts +18 -5
  37. package/es/components/feedback/src/feedback.js +104 -64
  38. package/es/components/feedback/src/feedback.js.map +1 -1
  39. package/es/components/feedback/src/feedback.scss.js +1 -1
  40. package/es/components/markdown/src/markdown-renderer.js +15 -10
  41. package/es/components/markdown/src/markdown-renderer.js.map +1 -1
  42. package/es/components/markdown/src/utils/html-helpers.js +4 -2
  43. package/es/components/markdown/src/utils/html-helpers.js.map +1 -1
  44. package/es/components/shared/dynamic-css-var-sheet.d.ts +32 -0
  45. package/es/components/shared/dynamic-css-var-sheet.js +184 -0
  46. package/es/components/shared/dynamic-css-var-sheet.js.map +1 -0
  47. package/es/components/table/src/table.js +10 -5
  48. package/es/components/table/src/table.js.map +1 -1
  49. package/es/components/table/src/table.scss.js +1 -1
  50. package/es/components/table/src/table.template.js +2 -1
  51. package/es/components/table/src/table.template.js.map +1 -1
  52. package/es/components/toolbar/src/toolbar.js +16 -6
  53. package/es/components/toolbar/src/toolbar.js.map +1 -1
  54. package/es/components/toolbar/src/toolbar.scss.js +1 -1
  55. package/es/components/truncated-text/src/truncated-text.d.ts +3 -0
  56. package/es/components/truncated-text/src/truncated-text.js +23 -8
  57. package/es/components/truncated-text/src/truncated-text.js.map +1 -1
  58. package/es/components/video-player/src/providers/kaltura-provider.js +2 -7
  59. package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  60. package/es/components/video-player/src/providers/native-video-provider.js +2 -6
  61. package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
  62. package/es/components/video-player/src/providers/vimeo-provider.js +5 -13
  63. package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  64. package/es/components/video-player/src/providers/youtube-provider.js +3 -6
  65. package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
  66. package/es/components/video-player/src/video-player.d.ts +3 -0
  67. package/es/components/video-player/src/video-player.js +19 -1
  68. package/es/components/video-player/src/video-player.js.map +1 -1
  69. package/es/components/video-player/src/video-player.scss.js +1 -1
  70. package/es/components/workspace-shell/src/workspace-shell-header.js +3 -3
  71. package/es/globals/utils/rtl-utils.d.ts +7 -0
  72. package/es/globals/utils/rtl-utils.js +30 -0
  73. package/es/globals/utils/rtl-utils.js.map +1 -0
  74. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  75. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  76. package/es-custom/components/card/src/card.scss.js +1 -1
  77. package/es-custom/components/carousel/src/carousel.js +1 -0
  78. package/es-custom/components/carousel/src/carousel.js.map +1 -1
  79. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  80. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  81. package/es-custom/components/chat-history/src/history-content.d.ts +4 -4
  82. package/es-custom/components/chat-history/src/history-content.js +20 -22
  83. package/es-custom/components/chat-history/src/history-content.js.map +1 -1
  84. package/es-custom/components/chat-history/src/history-panel-item.d.ts +18 -1
  85. package/es-custom/components/chat-history/src/history-panel-item.js +60 -11
  86. package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
  87. package/es-custom/components/chat-history/src/history-panel.d.ts +6 -0
  88. package/es-custom/components/chat-history/src/history-panel.js +9 -0
  89. package/es-custom/components/chat-history/src/history-panel.js.map +1 -1
  90. package/es-custom/components/chat-history/src/history-toolbar.d.ts +1 -0
  91. package/es-custom/components/chat-history/src/history-toolbar.js +10 -2
  92. package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
  93. package/es-custom/components/chat-shell/src/chat-header.js +12 -5
  94. package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
  95. package/es-custom/components/chat-shell/src/corner-manager.d.ts +7 -3
  96. package/es-custom/components/chat-shell/src/corner-manager.js +32 -17
  97. package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -1
  98. package/es-custom/components/chat-shell/src/shell.d.ts +1 -0
  99. package/es-custom/components/chat-shell/src/shell.js +21 -2
  100. package/es-custom/components/chat-shell/src/shell.js.map +1 -1
  101. package/es-custom/components/code-snippet/src/code-snippet.d.ts +7 -3
  102. package/es-custom/components/code-snippet/src/code-snippet.js +47 -10
  103. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  104. package/es-custom/components/code-snippet/src/layout-utils.d.ts +3 -1
  105. package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
  106. package/es-custom/components/feedback/src/feedback-buttons.js +16 -3
  107. package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
  108. package/es-custom/components/feedback/src/feedback.d.ts +18 -5
  109. package/es-custom/components/feedback/src/feedback.js +104 -64
  110. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  111. package/es-custom/components/feedback/src/feedback.scss.js +1 -1
  112. package/es-custom/components/markdown/src/markdown-renderer.js +15 -10
  113. package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
  114. package/es-custom/components/markdown/src/utils/html-helpers.js +4 -2
  115. package/es-custom/components/markdown/src/utils/html-helpers.js.map +1 -1
  116. package/es-custom/components/shared/dynamic-css-var-sheet.d.ts +32 -0
  117. package/es-custom/components/shared/dynamic-css-var-sheet.js +184 -0
  118. package/es-custom/components/shared/dynamic-css-var-sheet.js.map +1 -0
  119. package/es-custom/components/table/src/table.js +10 -5
  120. package/es-custom/components/table/src/table.js.map +1 -1
  121. package/es-custom/components/table/src/table.scss.js +1 -1
  122. package/es-custom/components/table/src/table.template.js +2 -1
  123. package/es-custom/components/table/src/table.template.js.map +1 -1
  124. package/es-custom/components/toolbar/src/toolbar.js +16 -6
  125. package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
  126. package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
  127. package/es-custom/components/truncated-text/src/truncated-text.d.ts +3 -0
  128. package/es-custom/components/truncated-text/src/truncated-text.js +23 -8
  129. package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
  130. package/es-custom/components/video-player/src/providers/kaltura-provider.js +2 -7
  131. package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  132. package/es-custom/components/video-player/src/providers/native-video-provider.js +2 -6
  133. package/es-custom/components/video-player/src/providers/native-video-provider.js.map +1 -1
  134. package/es-custom/components/video-player/src/providers/vimeo-provider.js +5 -13
  135. package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  136. package/es-custom/components/video-player/src/providers/youtube-provider.js +3 -6
  137. package/es-custom/components/video-player/src/providers/youtube-provider.js.map +1 -1
  138. package/es-custom/components/video-player/src/video-player.d.ts +3 -0
  139. package/es-custom/components/video-player/src/video-player.js +19 -1
  140. package/es-custom/components/video-player/src/video-player.js.map +1 -1
  141. package/es-custom/components/video-player/src/video-player.scss.js +1 -1
  142. package/es-custom/components/workspace-shell/src/workspace-shell-header.js +3 -3
  143. package/es-custom/globals/utils/rtl-utils.d.ts +7 -0
  144. package/es-custom/globals/utils/rtl-utils.js +30 -0
  145. package/es-custom/globals/utils/rtl-utils.js.map +1 -0
  146. package/package.json +5 -5
@@ -992,6 +992,130 @@
992
992
  }
993
993
  ]
994
994
  },
995
+ {
996
+ "kind": "javascript-module",
997
+ "path": "src/components/shared/dynamic-css-var-sheet.ts",
998
+ "declarations": [
999
+ {
1000
+ "kind": "function",
1001
+ "name": "adoptOnRoot",
1002
+ "return": {
1003
+ "type": {
1004
+ "text": "void"
1005
+ }
1006
+ },
1007
+ "parameters": [
1008
+ {
1009
+ "name": "root",
1010
+ "type": {
1011
+ "text": "Document | ShadowRoot"
1012
+ }
1013
+ }
1014
+ ],
1015
+ "description": "Adopt the shared dynamic stylesheet on a root so its rules apply within\nthat tree. Idempotent per root."
1016
+ },
1017
+ {
1018
+ "kind": "function",
1019
+ "name": "setVarsForSelector",
1020
+ "return": {
1021
+ "type": {
1022
+ "text": "void"
1023
+ }
1024
+ },
1025
+ "parameters": [
1026
+ {
1027
+ "name": "selector",
1028
+ "type": {
1029
+ "text": "string"
1030
+ }
1031
+ },
1032
+ {
1033
+ "name": "vars",
1034
+ "type": {
1035
+ "text": "Record<string, string>"
1036
+ }
1037
+ }
1038
+ ],
1039
+ "description": "Merge CSS declarations into the rule for a selector. Multiple subsystems\ncan write disjoint properties for the same selector without clobbering\neach other; existing properties are updated, new ones appended.\n\nThe keys can be CSS custom properties (e.g. `--cds-aichat-foo`) or any\nregular CSS property (`display`, `transform`, …)."
1040
+ },
1041
+ {
1042
+ "kind": "function",
1043
+ "name": "clearSelector",
1044
+ "return": {
1045
+ "type": {
1046
+ "text": "void"
1047
+ }
1048
+ },
1049
+ "parameters": [
1050
+ {
1051
+ "name": "selector",
1052
+ "type": {
1053
+ "text": "string"
1054
+ }
1055
+ }
1056
+ ],
1057
+ "description": "Remove the entire rule for a selector."
1058
+ },
1059
+ {
1060
+ "kind": "function",
1061
+ "name": "clearVarsForSelector",
1062
+ "return": {
1063
+ "type": {
1064
+ "text": "void"
1065
+ }
1066
+ },
1067
+ "parameters": [
1068
+ {
1069
+ "name": "selector",
1070
+ "type": {
1071
+ "text": "string"
1072
+ }
1073
+ },
1074
+ {
1075
+ "name": "props",
1076
+ "type": {
1077
+ "text": "string[]"
1078
+ }
1079
+ }
1080
+ ],
1081
+ "description": "Remove specific properties from a selector's rule, leaving any others\nintact. If the rule ends up empty, it is dropped."
1082
+ }
1083
+ ],
1084
+ "exports": [
1085
+ {
1086
+ "kind": "js",
1087
+ "name": "adoptOnRoot",
1088
+ "declaration": {
1089
+ "name": "adoptOnRoot",
1090
+ "module": "src/components/shared/dynamic-css-var-sheet.ts"
1091
+ }
1092
+ },
1093
+ {
1094
+ "kind": "js",
1095
+ "name": "setVarsForSelector",
1096
+ "declaration": {
1097
+ "name": "setVarsForSelector",
1098
+ "module": "src/components/shared/dynamic-css-var-sheet.ts"
1099
+ }
1100
+ },
1101
+ {
1102
+ "kind": "js",
1103
+ "name": "clearSelector",
1104
+ "declaration": {
1105
+ "name": "clearSelector",
1106
+ "module": "src/components/shared/dynamic-css-var-sheet.ts"
1107
+ }
1108
+ },
1109
+ {
1110
+ "kind": "js",
1111
+ "name": "clearVarsForSelector",
1112
+ "declaration": {
1113
+ "name": "clearVarsForSelector",
1114
+ "module": "src/components/shared/dynamic-css-var-sheet.ts"
1115
+ }
1116
+ }
1117
+ ]
1118
+ },
995
1119
  {
996
1120
  "kind": "javascript-module",
997
1121
  "path": "src/components/table/index.ts",
@@ -1392,6 +1516,32 @@
1392
1516
  }
1393
1517
  ]
1394
1518
  },
1519
+ {
1520
+ "kind": "javascript-module",
1521
+ "path": "src/globals/utils/rtl-utils.ts",
1522
+ "declarations": [
1523
+ {
1524
+ "kind": "function",
1525
+ "name": "isDirectionRTL",
1526
+ "return": {
1527
+ "type": {
1528
+ "text": ""
1529
+ }
1530
+ },
1531
+ "description": "Determines if the document is in RTL (right-to-left) mode.\nChecks both document.dir and document.documentElement.dir for maximum compatibility."
1532
+ }
1533
+ ],
1534
+ "exports": [
1535
+ {
1536
+ "kind": "js",
1537
+ "name": "isDirectionRTL",
1538
+ "declaration": {
1539
+ "name": "isDirectionRTL",
1540
+ "module": "src/globals/utils/rtl-utils.ts"
1541
+ }
1542
+ }
1543
+ ]
1544
+ },
1395
1545
  {
1396
1546
  "kind": "javascript-module",
1397
1547
  "path": "src/globals/utils/uuid.ts",
@@ -3727,27 +3877,22 @@
3727
3877
  },
3728
3878
  {
3729
3879
  "kind": "field",
3730
- "name": "_hasResultsCount",
3880
+ "name": "resultsLabel",
3731
3881
  "type": {
3732
- "text": "boolean"
3882
+ "text": "string"
3733
3883
  },
3734
- "privacy": "private",
3735
- "default": "false",
3736
- "description": "Tracks whether the results-count slot has content"
3884
+ "default": "\"Results\"",
3885
+ "description": "Label to display before the results count",
3886
+ "attribute": "results-label"
3737
3887
  },
3738
3888
  {
3739
- "kind": "method",
3740
- "name": "_handleResultsCountSlotChange",
3741
- "privacy": "private",
3742
- "parameters": [
3743
- {
3744
- "name": "e",
3745
- "type": {
3746
- "text": "Event"
3747
- }
3748
- }
3749
- ],
3750
- "description": "Handle slot change to detect if results-count has content"
3889
+ "kind": "field",
3890
+ "name": "resultsCount",
3891
+ "type": {
3892
+ "text": "string | number | undefined"
3893
+ },
3894
+ "description": "The results count to display",
3895
+ "attribute": "results-count"
3751
3896
  }
3752
3897
  ],
3753
3898
  "attributes": [
@@ -3759,6 +3904,23 @@
3759
3904
  "default": "\"content\"",
3760
3905
  "description": "Sets default slot value to content",
3761
3906
  "fieldName": "slot"
3907
+ },
3908
+ {
3909
+ "name": "results-label",
3910
+ "type": {
3911
+ "text": "string"
3912
+ },
3913
+ "default": "\"Results\"",
3914
+ "description": "Label to display before the results count",
3915
+ "fieldName": "resultsLabel"
3916
+ },
3917
+ {
3918
+ "name": "results-count",
3919
+ "type": {
3920
+ "text": "string | number | undefined"
3921
+ },
3922
+ "description": "The results count to display",
3923
+ "fieldName": "resultsCount"
3762
3924
  }
3763
3925
  ],
3764
3926
  "superclass": {
@@ -4453,6 +4615,17 @@
4453
4615
  "description": "Overflow tooltip label",
4454
4616
  "attribute": "overflow-menu-label"
4455
4617
  },
4618
+ {
4619
+ "kind": "field",
4620
+ "name": "showActions",
4621
+ "type": {
4622
+ "text": "boolean"
4623
+ },
4624
+ "default": "false",
4625
+ "description": "`true` to always show the actions menu for this item.\nWhen set, the actions menu will be visible without requiring hover or selection.\nCan be set directly on the item or inherited from the parent panel's `show-actions` attribute.",
4626
+ "attribute": "show-actions",
4627
+ "reflects": true
4628
+ },
4456
4629
  {
4457
4630
  "kind": "field",
4458
4631
  "name": "input",
@@ -4474,6 +4647,61 @@
4474
4647
  "text": "HTMLElement"
4475
4648
  }
4476
4649
  },
4650
+ {
4651
+ "kind": "field",
4652
+ "name": "_overflowMenuBodyElement",
4653
+ "type": {
4654
+ "text": "HTMLElement | undefined"
4655
+ },
4656
+ "privacy": "private"
4657
+ },
4658
+ {
4659
+ "kind": "field",
4660
+ "name": "_overflowMenuBodyFlippedClass",
4661
+ "privacy": "private",
4662
+ "default": "`${prefix}--history-overflow-menu-body--flipped`"
4663
+ },
4664
+ {
4665
+ "kind": "field",
4666
+ "name": "_overflowMenuBodyFlippedSelector",
4667
+ "privacy": "private",
4668
+ "default": "`cds-overflow-menu-body.${this._overflowMenuBodyFlippedClass}`"
4669
+ },
4670
+ {
4671
+ "kind": "method",
4672
+ "name": "_adoptOverflowMenuBodyStyles",
4673
+ "privacy": "private",
4674
+ "parameters": [
4675
+ {
4676
+ "name": "overflowMenuBody",
4677
+ "type": {
4678
+ "text": "HTMLElement"
4679
+ }
4680
+ }
4681
+ ]
4682
+ },
4683
+ {
4684
+ "kind": "method",
4685
+ "name": "_adoptOverflowMenuBodyStylesAfterPortal",
4686
+ "privacy": "private",
4687
+ "parameters": [
4688
+ {
4689
+ "name": "overflowMenuBody",
4690
+ "type": {
4691
+ "text": "HTMLElement"
4692
+ }
4693
+ }
4694
+ ]
4695
+ },
4696
+ {
4697
+ "kind": "field",
4698
+ "name": "_parentObserver",
4699
+ "type": {
4700
+ "text": "MutationObserver | undefined"
4701
+ },
4702
+ "privacy": "private",
4703
+ "description": "MutationObserver to watch for changes to parent panel's always-show-actions attribute"
4704
+ },
4477
4705
  {
4478
4706
  "kind": "method",
4479
4707
  "name": "_adjustMenuPosition",
@@ -4578,6 +4806,15 @@
4578
4806
  "default": "\"Options\"",
4579
4807
  "description": "Overflow tooltip label",
4580
4808
  "fieldName": "overflowMenuLabel"
4809
+ },
4810
+ {
4811
+ "name": "show-actions",
4812
+ "type": {
4813
+ "text": "boolean"
4814
+ },
4815
+ "default": "false",
4816
+ "description": "`true` to always show the actions menu for this item.\nWhen set, the actions menu will be visible without requiring hover or selection.\nCan be set directly on the item or inherited from the parent panel's `show-actions` attribute.",
4817
+ "fieldName": "showActions"
4581
4818
  }
4582
4819
  ],
4583
4820
  "mixins": [
@@ -4717,6 +4954,17 @@
4717
4954
  "default": "true",
4718
4955
  "description": "Sets default property from side nav",
4719
4956
  "attribute": "expanded"
4957
+ },
4958
+ {
4959
+ "kind": "field",
4960
+ "name": "showActions",
4961
+ "type": {
4962
+ "text": "boolean"
4963
+ },
4964
+ "default": "false",
4965
+ "description": "`true` to always show the actions menu on all child history panel items.\nWhen set, the actions menu will be visible without requiring hover or selection.\nIndividual items can override this with their own `show-actions` attribute.",
4966
+ "attribute": "show-actions",
4967
+ "reflects": true
4720
4968
  }
4721
4969
  ],
4722
4970
  "attributes": [
@@ -4737,6 +4985,15 @@
4737
4985
  "default": "true",
4738
4986
  "description": "Sets default property from side nav",
4739
4987
  "fieldName": "expanded"
4988
+ },
4989
+ {
4990
+ "name": "show-actions",
4991
+ "type": {
4992
+ "text": "boolean"
4993
+ },
4994
+ "default": "false",
4995
+ "description": "`true` to always show the actions menu on all child history panel items.\nWhen set, the actions menu will be visible without requiring hover or selection.\nIndividual items can override this with their own `show-actions` attribute.",
4996
+ "fieldName": "showActions"
4740
4997
  }
4741
4998
  ],
4742
4999
  "superclass": {
@@ -4964,6 +5221,15 @@
4964
5221
  "attribute": "search-off",
4965
5222
  "reflects": true
4966
5223
  },
5224
+ {
5225
+ "kind": "field",
5226
+ "name": "closeButtonLabelText",
5227
+ "type": {
5228
+ "text": "string"
5229
+ },
5230
+ "default": "\"Clear search\"",
5231
+ "attribute": "close-button-label-text"
5232
+ },
4967
5233
  {
4968
5234
  "kind": "field",
4969
5235
  "name": "_handleNewChatButtonClick",
@@ -4993,6 +5259,14 @@
4993
5259
  "name": "search-off",
4994
5260
  "description": "`true` to remove search from toolbar.",
4995
5261
  "fieldName": "searchOff"
5262
+ },
5263
+ {
5264
+ "name": "close-button-label-text",
5265
+ "type": {
5266
+ "text": "string"
5267
+ },
5268
+ "default": "\"Clear search\"",
5269
+ "fieldName": "closeButtonLabelText"
4996
5270
  }
4997
5271
  ],
4998
5272
  "superclass": {
@@ -5597,7 +5871,7 @@
5597
5871
  "declarations": [
5598
5872
  {
5599
5873
  "kind": "class",
5600
- "description": "Manages rounded corner calculations and CSS variable updates for the chat shell.\nHandles the logic for determining effective corner styles and applying them\nto CSS custom properties.",
5874
+ "description": "Manages rounded corner calculations and CSS variable updates for the chat shell.\nHandles the logic for determining effective corner styles and applying them\nto CSS custom properties via the shared dynamic stylesheet (CSP-safe).",
5601
5875
  "name": "CornerManager",
5602
5876
  "members": [
5603
5877
  {
@@ -5627,6 +5901,16 @@
5627
5901
  ],
5628
5902
  "description": "Update corner configuration and apply CSS variables"
5629
5903
  },
5904
+ {
5905
+ "kind": "method",
5906
+ "name": "destroy",
5907
+ "return": {
5908
+ "type": {
5909
+ "text": "void"
5910
+ }
5911
+ },
5912
+ "description": "Drop the shell's corner-radius rules from the dynamic stylesheet."
5913
+ },
5630
5914
  {
5631
5915
  "kind": "method",
5632
5916
  "name": "hasAnyRoundedCorner",
@@ -6843,6 +7127,15 @@
6843
7127
  "attribute": "content-max-width",
6844
7128
  "reflects": true
6845
7129
  },
7130
+ {
7131
+ "kind": "field",
7132
+ "name": "_shellSelector",
7133
+ "type": {
7134
+ "text": "string"
7135
+ },
7136
+ "privacy": "private",
7137
+ "readonly": true
7138
+ },
6846
7139
  {
6847
7140
  "kind": "field",
6848
7141
  "name": "hasHeaderAfterContent",
@@ -8796,6 +9089,15 @@
8796
9089
  "default": "defaultLineCountText",
8797
9090
  "description": "The function used to format the line count text.\nReceives the line count and returns a formatted string.\nDefaults to `${count} lines` in en-US."
8798
9091
  },
9092
+ {
9093
+ "kind": "field",
9094
+ "name": "_snippetSelector",
9095
+ "type": {
9096
+ "text": "string"
9097
+ },
9098
+ "privacy": "private",
9099
+ "readonly": true
9100
+ },
8799
9101
  {
8800
9102
  "kind": "method",
8801
9103
  "name": "adoptLightDomCode",
@@ -8890,13 +9192,13 @@
8890
9192
  }
8891
9193
  }
8892
9194
  ],
8893
- "description": "Calculates the CSS custom properties for the snippet container based on expanded state and min/max row constraints.\nCSP-compliant: returns properties to be set via element.style.setProperty()"
9195
+ "description": "Calculates the CSS custom properties for the snippet container based on expanded state and min/max row constraints.\nReturned by reference for `_applyContainerStyles`, which writes them via the shared dynamic stylesheet\n(see `dynamic-css-var-sheet`) so a strict CSP can drop `style-src-attr 'unsafe-inline'`."
8894
9196
  },
8895
9197
  {
8896
9198
  "kind": "method",
8897
9199
  "name": "_applyContainerStyles",
8898
9200
  "privacy": "private",
8899
- "description": "Applies CSS custom properties to the snippet container element.\nCSP-compliant: uses setProperty() instead of inline style attribute."
9201
+ "description": "Applies CSS custom properties to the snippet container element via the\nshared dynamic stylesheet so a strict CSP can drop\nstyle-src-attr 'unsafe-inline'. The container is tagged with a\nper-instance data attribute so each snippet's rule is independent."
8900
9202
  },
8901
9203
  {
8902
9204
  "kind": "method",
@@ -9874,23 +10176,23 @@
9874
10176
  },
9875
10177
  {
9876
10178
  "kind": "field",
9877
- "name": "placeholder",
10179
+ "name": "disclaimerCheckbox",
9878
10180
  "type": {
9879
- "text": "string"
10181
+ "text": "string | undefined"
9880
10182
  },
9881
- "default": "\"Provide additional feedback...\"",
9882
- "description": "The placeholder to show in the text area. A default value will be used if no value is provided here.",
9883
- "attribute": "text-area-placeholder",
10183
+ "description": "The label text to display with the disclaimer checkbox. If this value is not provided, no checkbox or label text will be displayed.",
10184
+ "attribute": "disclaimer-checkbox",
9884
10185
  "reflects": true
9885
10186
  },
9886
10187
  {
9887
10188
  "kind": "field",
9888
- "name": "secondaryLabel",
10189
+ "name": "placeholder",
9889
10190
  "type": {
9890
- "text": "string | undefined"
10191
+ "text": "string"
9891
10192
  },
9892
- "description": "The label for the secondary button. A default value will be used if no value is provided here.",
9893
- "attribute": "secondary-label",
10193
+ "default": "\"Provide additional feedback...\"",
10194
+ "description": "The placeholder to show in the text area. A default value will be used if no value is provided here.",
10195
+ "attribute": "text-area-placeholder",
9894
10196
  "reflects": true
9895
10197
  },
9896
10198
  {
@@ -9935,6 +10237,15 @@
9935
10237
  "attribute": "show-body",
9936
10238
  "reflects": true
9937
10239
  },
10240
+ {
10241
+ "kind": "field",
10242
+ "name": "_isSubmitDisabled",
10243
+ "type": {
10244
+ "text": "boolean"
10245
+ },
10246
+ "default": "false",
10247
+ "description": "Indicates if the submit feedback button is disabled."
10248
+ },
9938
10249
  {
9939
10250
  "kind": "method",
9940
10251
  "name": "_setInitialValues",
@@ -9985,6 +10296,19 @@
9985
10296
  }
9986
10297
  ],
9987
10298
  "description": "Called when a category button is clicked."
10299
+ },
10300
+ {
10301
+ "kind": "method",
10302
+ "name": "_handleDisclaimerCheckboxChange",
10303
+ "parameters": [
10304
+ {
10305
+ "name": "event",
10306
+ "type": {
10307
+ "text": "Event"
10308
+ }
10309
+ }
10310
+ ],
10311
+ "description": "Called when the disclaimer checkbox state changes."
9988
10312
  }
9989
10313
  ],
9990
10314
  "events": [
@@ -10062,6 +10386,14 @@
10062
10386
  "description": "The legal disclaimer text to show at the bottom of the popup. This text may contain rich markdown content. If this\nvalue is not provided, no text will be shown.",
10063
10387
  "fieldName": "disclaimer"
10064
10388
  },
10389
+ {
10390
+ "name": "disclaimer-checkbox",
10391
+ "type": {
10392
+ "text": "string | undefined"
10393
+ },
10394
+ "description": "The label text to display with the disclaimer checkbox. If this value is not provided, no checkbox or label text will be displayed.",
10395
+ "fieldName": "disclaimerCheckbox"
10396
+ },
10065
10397
  {
10066
10398
  "name": "text-area-placeholder",
10067
10399
  "type": {
@@ -10071,14 +10403,6 @@
10071
10403
  "description": "The placeholder to show in the text area. A default value will be used if no value is provided here.",
10072
10404
  "fieldName": "placeholder"
10073
10405
  },
10074
- {
10075
- "name": "secondary-label",
10076
- "type": {
10077
- "text": "string | undefined"
10078
- },
10079
- "description": "The label for the secondary button. A default value will be used if no value is provided here.",
10080
- "fieldName": "secondaryLabel"
10081
- },
10082
10406
  {
10083
10407
  "name": "primary-label",
10084
10408
  "type": {
@@ -12300,6 +12624,27 @@
12300
12624
  },
12301
12625
  "privacy": "private"
12302
12626
  },
12627
+ {
12628
+ "kind": "field",
12629
+ "name": "_truncatedInstanceId",
12630
+ "privacy": "private",
12631
+ "readonly": true,
12632
+ "default": "`tt-${++truncatedInstanceCounter}`"
12633
+ },
12634
+ {
12635
+ "kind": "field",
12636
+ "name": "_truncatedSelector",
12637
+ "type": {
12638
+ "text": "string"
12639
+ },
12640
+ "privacy": "private",
12641
+ "readonly": true
12642
+ },
12643
+ {
12644
+ "kind": "method",
12645
+ "name": "_syncTruncatedVars",
12646
+ "privacy": "private"
12647
+ },
12303
12648
  {
12304
12649
  "kind": "method",
12305
12650
  "name": "_updateMaxHeight",
@@ -12655,6 +13000,32 @@
12655
13000
  "privacy": "private",
12656
13001
  "default": "false"
12657
13002
  },
13003
+ {
13004
+ "kind": "field",
13005
+ "name": "instanceId",
13006
+ "privacy": "private",
13007
+ "readonly": true,
13008
+ "default": "`vp-${++instanceCounter}`"
13009
+ },
13010
+ {
13011
+ "kind": "field",
13012
+ "name": "instanceSelector",
13013
+ "type": {
13014
+ "text": "string"
13015
+ },
13016
+ "privacy": "private",
13017
+ "readonly": true
13018
+ },
13019
+ {
13020
+ "kind": "method",
13021
+ "name": "syncAspectRatioVar",
13022
+ "privacy": "private",
13023
+ "return": {
13024
+ "type": {
13025
+ "text": "void"
13026
+ }
13027
+ }
13028
+ },
12658
13029
  {
12659
13030
  "kind": "method",
12660
13031
  "name": "createProvider",