@pega/cosmos-react-demos 4.0.0-dev.9.1 → 4.0.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 (1486) hide show
  1. package/jsx/build/AppShell/AppShell.mocks.d.ts +15 -3
  2. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  3. package/jsx/build/AppShell/AppShell.mocks.jsx +11 -0
  4. package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -1
  5. package/jsx/build/AppShell/AppShell.stories.d.ts +5 -5
  6. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  7. package/jsx/build/AppShell/AppShell.stories.jsx +13 -13
  8. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  9. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  10. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  11. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  12. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  13. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  14. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  15. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  16. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +3 -3
  17. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
  18. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  19. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +19 -23
  20. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
  21. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  22. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  23. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  24. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  25. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  26. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +1 -2
  27. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  28. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  29. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  30. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +0 -1
  31. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  32. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  33. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  34. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +1 -1
  35. package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts +7 -0
  36. package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +1 -0
  37. package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx +78 -0
  38. package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx.map +1 -0
  39. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  40. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +4 -6
  41. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
  42. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  43. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  44. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +1 -1
  45. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  46. package/jsx/build/PageBanner/PageBanner.stories.d.ts +5 -5
  47. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
  48. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -1
  49. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
  50. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  51. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  52. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  53. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  54. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +0 -2
  55. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  56. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
  57. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
  58. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -1
  59. package/jsx/build/Workbench/Workbench.stories.d.ts +4 -4
  60. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  61. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  62. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  63. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  64. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  65. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  66. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  67. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -1
  68. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  69. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  70. package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  71. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  72. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  73. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
  74. package/jsx/core/AIButton/AIButton.mocks.d.ts +22 -0
  75. package/jsx/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  76. package/jsx/core/AIButton/AIButton.mocks.js +136 -0
  77. package/jsx/core/AIButton/AIButton.mocks.js.map +1 -0
  78. package/jsx/core/AIButton/AIButton.stories.d.ts +23 -0
  79. package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -0
  80. package/jsx/core/AIButton/AIButton.stories.jsx +306 -0
  81. package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -0
  82. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  83. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  84. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -1
  85. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  86. package/jsx/core/AppShell/AppShell.mocks.jsx +3 -18
  87. package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
  88. package/jsx/core/AppShell/AppShell.stories.d.ts +5 -7
  89. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  90. package/jsx/core/AppShell/AppShell.stories.jsx +40 -74
  91. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  92. package/jsx/core/Avatar/Avatar.stories.d.ts +9 -9
  93. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  94. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  95. package/jsx/core/Backdrop/Backdrop.stories.d.ts +5 -5
  96. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  97. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +1 -1
  98. package/jsx/core/Badges/Alert.stories.d.ts +4 -4
  99. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -1
  100. package/jsx/core/Badges/Alert.stories.jsx.map +1 -1
  101. package/jsx/core/Badges/Count.stories.d.ts +4 -4
  102. package/jsx/core/Badges/Count.stories.d.ts.map +1 -1
  103. package/jsx/core/Badges/Count.stories.jsx.map +1 -1
  104. package/jsx/core/Badges/Keyboard.stories.d.ts +4 -4
  105. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -1
  106. package/jsx/core/Badges/Keyboard.stories.jsx +1 -1
  107. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -1
  108. package/jsx/core/Badges/Selection.stories.d.ts +3 -3
  109. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  110. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  111. package/jsx/core/Badges/Status.stories.d.ts +5 -5
  112. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  113. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  114. package/jsx/core/Badges/Tag.stories.d.ts +3 -3
  115. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  116. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  117. package/jsx/core/Banner/Banner.stories.d.ts +9 -8
  118. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  119. package/jsx/core/Banner/Banner.stories.jsx +32 -20
  120. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  121. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  122. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  123. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +1 -1
  124. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -4
  125. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  126. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +16 -4
  127. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  128. package/jsx/core/Button/Button.stories.d.ts +9 -10
  129. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  130. package/jsx/core/Button/Button.stories.jsx +0 -14
  131. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  132. package/jsx/core/Card/Card.stories.d.ts +6 -6
  133. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  134. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  135. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -6
  136. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  137. package/jsx/core/Checkbox/Checkbox.stories.jsx +3 -1
  138. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  139. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  140. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  141. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +10 -6
  142. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  143. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  144. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  145. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +1 -1
  146. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  147. package/jsx/core/ComboBox/ComboBox.stories.d.ts +11 -10
  148. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  149. package/jsx/core/ComboBox/ComboBox.stories.jsx +22 -10
  150. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  151. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  152. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  153. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
  154. package/jsx/core/Configuration/Configuration.stories.d.ts +8 -8
  155. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  156. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  157. package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -4
  158. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  159. package/jsx/core/CreditCard/CreditCard.stories.jsx +1 -2
  160. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  161. package/jsx/core/Currency/Currency.stories.d.ts +6 -6
  162. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  163. package/jsx/core/Currency/Currency.stories.jsx +1 -1
  164. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  165. package/jsx/core/DangerButton/DangerButton.stories.d.ts +6 -0
  166. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  167. package/jsx/core/DangerButton/DangerButton.stories.jsx +17 -0
  168. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +1 -0
  169. package/jsx/core/DateTime/DateTime.stories.d.ts +13 -13
  170. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  171. package/jsx/core/DateTime/DateTime.stories.jsx +11 -9
  172. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  173. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  174. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  175. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +5 -3
  176. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
  177. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  178. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  179. package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
  180. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  181. package/jsx/core/Dialog/Dialog.stories.d.ts +5 -4
  182. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
  183. package/jsx/core/Dialog/Dialog.stories.jsx +7 -80
  184. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
  185. package/jsx/core/Dialog/{Dialog.mocks.d.ts → FormDialog.mocks.d.ts} +4 -3
  186. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  187. package/jsx/core/Dialog/{Dialog.mocks.jsx → FormDialog.mocks.jsx} +62 -4
  188. package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -0
  189. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  190. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  191. package/jsx/core/Dialog/InfoDialog.mocks.jsx +64 -0
  192. package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -0
  193. package/jsx/core/Drawer/Drawer.stories.d.ts +5 -5
  194. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -1
  195. package/jsx/core/Drawer/Drawer.stories.jsx.map +1 -1
  196. package/jsx/core/Email/EmailDisplay.stories.d.ts +4 -4
  197. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  198. package/jsx/core/Email/EmailDisplay.stories.jsx.map +1 -1
  199. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  200. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  201. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +6 -5
  202. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
  203. package/jsx/core/EmptyState/EmptyState.stories.d.ts +4 -4
  204. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  205. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +1 -1
  206. package/jsx/core/ErrorState/ErrorState.stories.d.ts +4 -4
  207. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  208. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +1 -1
  209. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  210. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  211. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -1
  212. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +8 -3
  213. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  214. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +28 -3
  215. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  216. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  217. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  218. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +6 -1
  219. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  220. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +6 -5
  221. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  222. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +43 -11
  223. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  224. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +20 -0
  225. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
  226. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx +54 -0
  227. package/jsx/core/FieldValueList/FieldValueList.mocks.jsx.map +1 -0
  228. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  229. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  230. package/jsx/core/FieldValueList/FieldValueList.stories.jsx +5 -54
  231. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  232. package/jsx/core/File/FileDisplay.stories.d.ts +6 -6
  233. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  234. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  235. package/jsx/core/File/FileInput.stories.d.ts +4 -4
  236. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  237. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  238. package/jsx/core/Flex/FlexContainer.stories.d.ts +10 -10
  239. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  240. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  241. package/jsx/core/Flex/FlexItem.stories.d.ts +6 -6
  242. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -1
  243. package/jsx/core/Flex/FlexItem.stories.jsx.map +1 -1
  244. package/jsx/core/Form/Form.stories.d.ts +8 -8
  245. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  246. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  247. package/jsx/core/Grid/GridContainer.stories.d.ts +12 -12
  248. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  249. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  250. package/jsx/core/Grid/GridItem.stories.d.ts +6 -6
  251. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  252. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  253. package/jsx/core/HTML/HTML.stories.d.ts +4 -4
  254. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
  255. package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
  256. package/jsx/core/Icon/Icon.stories.d.ts +9 -6
  257. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  258. package/jsx/core/Icon/Icon.stories.jsx +26 -16
  259. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  260. package/jsx/core/IconPicker/IconPicker.stories.d.ts +4 -4
  261. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  262. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  263. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  264. package/jsx/core/Image/Image.stories.d.ts +3 -3
  265. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  266. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  267. package/jsx/core/Input/Input.stories.d.ts +6 -6
  268. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  269. package/jsx/core/Input/Input.stories.jsx +2 -2
  270. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  271. package/jsx/core/Label/Label.stories.d.ts +5 -5
  272. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  273. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  274. package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  275. package/jsx/core/Lightbox/Lightbox.mocks.js.map +1 -1
  276. package/jsx/core/Lightbox/Lightbox.stories.d.ts +3 -3
  277. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  278. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  279. package/jsx/core/Link/Link.stories.d.ts +7 -7
  280. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  281. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  282. package/jsx/core/List/CommaSeparatedList.stories.d.ts +4 -4
  283. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  284. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  285. package/jsx/core/List/OrderedList.stories.d.ts +4 -4
  286. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -1
  287. package/jsx/core/List/OrderedList.stories.jsx.map +1 -1
  288. package/jsx/core/List/UnorderedList.stories.d.ts +4 -4
  289. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -1
  290. package/jsx/core/List/UnorderedList.stories.jsx.map +1 -1
  291. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  292. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +47 -52
  293. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -1
  294. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
  295. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  296. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +3 -3
  297. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  298. package/jsx/core/LiveLog/LiveLog.stories.d.ts +4 -4
  299. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  300. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +1 -1
  301. package/jsx/core/Location/Location.stories.d.ts +7 -7
  302. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  303. package/jsx/core/Location/Location.stories.jsx +16 -10
  304. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  305. package/jsx/core/Menu/Menu.mocks.js.map +1 -1
  306. package/jsx/core/Menu/Menu.stories.d.ts +6 -5
  307. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  308. package/jsx/core/Menu/Menu.stories.jsx +33 -0
  309. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  310. package/jsx/core/MenuButton/MenuButton.stories.d.ts +9 -8
  311. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  312. package/jsx/core/MenuButton/MenuButton.stories.jsx +1 -1
  313. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  314. package/jsx/core/MetaList/MetaList.stories.d.ts +4 -4
  315. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -1
  316. package/jsx/core/MetaList/MetaList.stories.jsx.map +1 -1
  317. package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
  318. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  319. package/jsx/core/Modal/Modal.stories.d.ts +11 -11
  320. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  321. package/jsx/core/Modal/Modal.stories.jsx +5 -6
  322. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  323. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  324. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  325. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +295 -40
  326. package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
  327. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -3
  328. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  329. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +70 -175
  330. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
  331. package/jsx/core/NoValue/NoValue.stories.d.ts +6 -0
  332. package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -0
  333. package/jsx/core/NoValue/NoValue.stories.jsx +30 -0
  334. package/jsx/core/NoValue/NoValue.stories.jsx.map +1 -0
  335. package/jsx/core/Number/Number.stories.d.ts +8 -8
  336. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  337. package/jsx/core/Number/Number.stories.jsx +3 -3
  338. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  339. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +8 -8
  340. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  341. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  342. package/jsx/core/Pagination/Pagination.stories.d.ts +4 -4
  343. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -1
  344. package/jsx/core/Pagination/Pagination.stories.jsx.map +1 -1
  345. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  346. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  347. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -1
  348. package/jsx/core/Phone/Phone.stories.d.ts +5 -5
  349. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  350. package/jsx/core/Phone/Phone.stories.jsx +1 -1
  351. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  352. package/jsx/core/Popover/Popover.mocks.d.ts +9 -0
  353. package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -0
  354. package/jsx/core/Popover/Popover.mocks.jsx +114 -0
  355. package/jsx/core/Popover/Popover.mocks.jsx.map +1 -0
  356. package/jsx/core/Popover/Popover.stories.d.ts +11 -5
  357. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  358. package/jsx/core/Popover/Popover.stories.jsx +27 -0
  359. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  360. package/jsx/core/Progress/Progress.mocks.d.ts +2 -0
  361. package/jsx/core/Progress/Progress.mocks.d.ts.map +1 -0
  362. package/jsx/core/Progress/Progress.mocks.js +2 -0
  363. package/jsx/core/Progress/Progress.mocks.js.map +1 -0
  364. package/jsx/core/Progress/Progress.stories.d.ts +5 -5
  365. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  366. package/jsx/core/Progress/Progress.stories.jsx +2 -2
  367. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  368. package/jsx/core/QRCode/QRCode.stories.d.ts +3 -3
  369. package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -1
  370. package/jsx/core/QRCode/QRCode.stories.jsx.map +1 -1
  371. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -6
  372. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  373. package/jsx/core/RadioButton/RadioButton.stories.jsx +3 -1
  374. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  375. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  376. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  377. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +10 -6
  378. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  379. package/jsx/core/Rating/Rating.stories.d.ts +5 -5
  380. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  381. package/jsx/core/Rating/Rating.stories.jsx +1 -1
  382. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  383. package/jsx/core/SearchInput/SearchInput.stories.d.ts +5 -5
  384. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  385. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  386. package/jsx/core/Select/Select.stories.d.ts +5 -5
  387. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  388. package/jsx/core/Select/Select.stories.jsx +1 -1
  389. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  390. package/jsx/core/Sentiment/Sentiment.stories.d.ts +5 -5
  391. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  392. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  393. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  394. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  395. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -1
  396. package/jsx/core/Slider/Slider.stories.d.ts +5 -5
  397. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  398. package/jsx/core/Slider/Slider.stories.jsx +1 -1
  399. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  400. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  401. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  402. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  403. package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  404. package/jsx/core/SummaryList/SummaryList.mocks.jsx +10 -2
  405. package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
  406. package/jsx/core/SummaryList/SummaryList.stories.d.ts +5 -5
  407. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  408. package/jsx/core/SummaryList/SummaryList.stories.jsx +2 -2
  409. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  410. package/jsx/core/SummaryList/mockUsers.d.ts.map +1 -1
  411. package/jsx/core/SummaryList/mockUsers.js.map +1 -1
  412. package/jsx/core/Switch/Switch.stories.d.ts +6 -6
  413. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  414. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  415. package/jsx/core/Table/Table.mocks.jsx +1 -1
  416. package/jsx/core/Table/Table.mocks.jsx.map +1 -1
  417. package/jsx/core/Table/Table.stories.d.ts +6 -6
  418. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  419. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  420. package/jsx/core/Tabs/Tabs.stories.d.ts +4 -10
  421. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  422. package/jsx/core/Tabs/Tabs.stories.jsx +4 -43
  423. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  424. package/jsx/core/Text/Text.stories.d.ts +5 -5
  425. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  426. package/jsx/core/Text/Text.stories.jsx +1 -1
  427. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  428. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -5
  429. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  430. package/jsx/core/TextArea/TextArea.stories.jsx +2 -2
  431. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  432. package/jsx/core/Toaster/Toaster.stories.d.ts +3 -3
  433. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  434. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  435. package/jsx/core/Tooltip/Tooltip.stories.d.ts +5 -4
  436. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  437. package/jsx/core/Tooltip/Tooltip.stories.jsx +21 -1
  438. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  439. package/jsx/core/Tooltip/Tooltip.styles.d.ts +2 -0
  440. package/jsx/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  441. package/jsx/core/Tooltip/Tooltip.styles.js +23 -0
  442. package/jsx/core/Tooltip/Tooltip.styles.js.map +1 -0
  443. package/jsx/core/Tree/Tree.stories.d.ts +5 -5
  444. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  445. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  446. package/jsx/core/URL/URL.stories.d.ts +4 -4
  447. package/jsx/core/URL/URL.stories.d.ts.map +1 -1
  448. package/jsx/core/URL/URL.stories.jsx.map +1 -1
  449. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -1
  450. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  451. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +4 -6
  452. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
  453. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  454. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  455. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +6 -4
  456. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
  457. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  458. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  459. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  460. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  461. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +1 -0
  462. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  463. package/jsx/cs/DialPad/DialPad.stories.d.ts +4 -4
  464. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  465. package/jsx/cs/DialPad/DialPad.stories.jsx.map +1 -1
  466. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
  467. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  468. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  469. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +5 -4
  470. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  471. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +12 -5
  472. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  473. package/jsx/cs/Picker/Picker.stories.d.ts +11 -0
  474. package/jsx/cs/Picker/Picker.stories.d.ts.map +1 -0
  475. package/jsx/cs/Picker/Picker.stories.jsx +64 -0
  476. package/jsx/cs/Picker/Picker.stories.jsx.map +1 -0
  477. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  478. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  479. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  480. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  481. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  482. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  483. package/jsx/dnd/StandardDragDropList/Demo.d.ts +1 -0
  484. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  485. package/jsx/dnd/StandardDragDropList/Demo.jsx +6 -8
  486. package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
  487. package/jsx/dnd/StandardDragDropList/Popover.d.ts +1 -1
  488. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  489. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  490. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  491. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -1
  492. package/jsx/dnd/StandardDragDropList/mockData.d.ts +2 -2
  493. package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  494. package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
  495. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  496. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  497. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx +103 -0
  498. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
  499. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +11 -0
  500. package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  501. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx +82 -0
  502. package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +1 -0
  503. package/jsx/rte/Editor/Editor.mocks.d.ts +41 -27
  504. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
  505. package/jsx/rte/Editor/Editor.stories.d.ts +8 -8
  506. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  507. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  508. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  509. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  510. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +1 -1
  511. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  512. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  513. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  514. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  515. package/jsx/social/Chat/Chat.mocks.d.ts +23 -396
  516. package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
  517. package/jsx/social/Chat/Chat.mocks.js +542 -585
  518. package/jsx/social/Chat/Chat.mocks.js.map +1 -1
  519. package/jsx/social/Chat/Chat.stories.d.ts +27 -25
  520. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  521. package/jsx/social/Chat/Chat.stories.jsx +213 -204
  522. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  523. package/jsx/social/Email/Email.mocks.d.ts +1 -1
  524. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  525. package/jsx/social/Email/Email.mocks.jsx +3 -3
  526. package/jsx/social/Email/Email.mocks.jsx.map +1 -1
  527. package/jsx/social/Email/Email.stories.d.ts +15 -15
  528. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  529. package/jsx/social/Email/Email.stories.jsx +20 -22
  530. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  531. package/jsx/social/Feed/Feed.mocks.d.ts +19 -13
  532. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  533. package/jsx/social/Feed/Feed.mocks.jsx +76 -8
  534. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  535. package/jsx/social/Feed/Feed.stories.d.ts +5 -5
  536. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  537. package/jsx/social/Feed/Feed.stories.jsx +29 -19
  538. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  539. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +8 -0
  540. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
  541. package/jsx/social/Feed/FeedNewPost.mocks.jsx +44 -0
  542. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -0
  543. package/jsx/social/Feed/FeedPost.mocks.d.ts +4 -0
  544. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -0
  545. package/jsx/social/Feed/FeedPost.mocks.jsx +167 -0
  546. package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -0
  547. package/jsx/social/Feed/FeedReply.mocks.d.ts +13 -0
  548. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -0
  549. package/jsx/social/Feed/FeedReply.mocks.jsx +76 -0
  550. package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -0
  551. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  552. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -1
  553. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  554. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  555. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
  556. package/jsx/tools/DevTools/DevTools.stories.d.ts +4 -4
  557. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  558. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  559. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -1
  560. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  561. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +1 -4
  562. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
  563. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  564. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  565. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +3 -6
  566. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  567. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  568. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  569. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +1 -1
  570. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  571. package/jsx/work/Article/Article.mocks.d.ts.map +1 -0
  572. package/jsx/work/Article/Article.mocks.js +14 -0
  573. package/jsx/work/Article/Article.mocks.js.map +1 -0
  574. package/jsx/work/Article/Article.stories.d.ts +17 -0
  575. package/jsx/work/Article/Article.stories.d.ts.map +1 -0
  576. package/jsx/work/Article/Article.stories.jsx +201 -0
  577. package/jsx/work/Article/Article.stories.jsx.map +1 -0
  578. package/jsx/work/ArticleList/ArticleList.mocks.d.ts +140 -0
  579. package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +1 -0
  580. package/jsx/work/ArticleList/ArticleList.mocks.js +414 -0
  581. package/jsx/work/ArticleList/ArticleList.mocks.js.map +1 -0
  582. package/jsx/work/ArticleList/ArticleList.stories.d.ts +14 -0
  583. package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +1 -0
  584. package/jsx/work/ArticleList/ArticleList.stories.jsx +313 -0
  585. package/jsx/work/ArticleList/ArticleList.stories.jsx.map +1 -0
  586. package/jsx/work/Assignments/Assignments.stories.d.ts +11 -0
  587. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -0
  588. package/jsx/work/Assignments/Assignments.stories.jsx +64 -0
  589. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -0
  590. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  591. package/jsx/work/CaseView/Attachments.mocks.jsx +82 -72
  592. package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
  593. package/jsx/work/CaseView/CaseView.mocks.d.ts +38 -9
  594. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  595. package/jsx/work/CaseView/CaseView.mocks.jsx +243 -82
  596. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  597. package/jsx/work/CaseView/CaseView.stories.d.ts +4 -9
  598. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  599. package/jsx/work/CaseView/CaseView.stories.jsx +39 -10
  600. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  601. package/jsx/work/CaseView/Details.mocks.jsx +3 -3
  602. package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
  603. package/jsx/work/CaseView/FileService.mock.d.ts +2 -2
  604. package/jsx/work/CaseView/FileService.mock.d.ts.map +1 -1
  605. package/jsx/work/CaseView/FileService.mock.jsx +2 -6
  606. package/jsx/work/CaseView/FileService.mock.jsx.map +1 -1
  607. package/jsx/work/CaseView/Pulse.mocks.d.ts +1 -1
  608. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  609. package/jsx/work/CaseView/Pulse.mocks.jsx +1 -1
  610. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  611. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  612. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  613. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  614. package/jsx/work/Confirmation/Confirmation.stories.d.ts +5 -4
  615. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  616. package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -5
  617. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  618. package/jsx/work/Details/Details.stories.d.ts +6 -3
  619. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  620. package/jsx/work/Details/Details.stories.jsx +15 -3
  621. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  622. package/jsx/work/Glimpse/Glimpse.stories.d.ts +3 -8
  623. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  624. package/jsx/work/Glimpse/Glimpse.stories.jsx +17 -14
  625. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  626. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  627. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  628. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +82 -12
  629. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  630. package/jsx/work/Predictions/Predictions.mocks.d.ts +3 -0
  631. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  632. package/jsx/work/Predictions/Predictions.mocks.jsx +18 -0
  633. package/jsx/work/Predictions/Predictions.mocks.jsx.map +1 -0
  634. package/jsx/work/Predictions/Predictions.stories.d.ts +5 -0
  635. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -0
  636. package/jsx/work/Predictions/Predictions.stories.jsx +53 -0
  637. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -0
  638. package/jsx/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  639. package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  640. package/jsx/work/SearchResults/SearchResults.stories.d.ts +3 -3
  641. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  642. package/jsx/work/SearchResults/SearchResults.stories.jsx +2 -8
  643. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  644. package/jsx/work/Stages/Stages.stories.d.ts +4 -4
  645. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  646. package/jsx/work/Stages/Stages.stories.jsx +22 -8
  647. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  648. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  649. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +6 -2
  650. package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
  651. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  652. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  653. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  654. package/jsx/work/Tags/Tags.stories.d.ts +3 -3
  655. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  656. package/jsx/work/Tags/Tags.stories.jsx +7 -2
  657. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  658. package/jsx/work/Tasks/TaskList.stories.d.ts +3 -3
  659. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  660. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  661. package/jsx/work/Tasks/Tasks.mocks.d.ts +22 -0
  662. package/jsx/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  663. package/jsx/work/Tasks/Tasks.mocks.js +51 -0
  664. package/jsx/work/Tasks/Tasks.mocks.js.map +1 -0
  665. package/jsx/work/Tasks/Tasks.stories.d.ts +9 -7
  666. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  667. package/jsx/work/Tasks/Tasks.stories.jsx +42 -76
  668. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  669. package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  670. package/jsx/work/Timeline/Timeline.mocks.jsx +16 -1
  671. package/jsx/work/Timeline/Timeline.mocks.jsx.map +1 -1
  672. package/jsx/work/Timeline/Timeline.stories.d.ts +6 -6
  673. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  674. package/jsx/work/Timeline/Timeline.stories.jsx +1 -1
  675. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  676. package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -11
  677. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  678. package/jsx/wss/AppShell/AppShell.mocks.jsx +0 -11
  679. package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -1
  680. package/jsx/wss/AppShell/AppShell.stories.d.ts +5 -5
  681. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  682. package/jsx/wss/AppShell/AppShell.stories.jsx +36 -8
  683. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  684. package/jsx/wss/CaseView/CaseView.stories.d.ts +3 -3
  685. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  686. package/jsx/wss/CaseView/CaseView.stories.jsx +11 -6
  687. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  688. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  689. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  690. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +2 -2
  691. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  692. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  693. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  694. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -1
  695. package/lib/build/AppShell/AppShell.mocks.d.ts +15 -3
  696. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  697. package/lib/build/AppShell/AppShell.mocks.js +11 -0
  698. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  699. package/lib/build/AppShell/AppShell.stories.d.ts +5 -5
  700. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  701. package/lib/build/AppShell/AppShell.stories.js +19 -18
  702. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  703. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  704. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  705. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  706. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
  707. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -1
  708. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
  709. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  710. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  711. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +3 -3
  712. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  713. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  714. package/lib/build/FlowModeller/FlowModeller.mocks.js +3 -3
  715. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  716. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  717. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  718. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  719. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  720. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  721. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -2
  722. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  723. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  724. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  725. package/lib/build/LifeCycle/LifeCycle.stories.js +0 -1
  726. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  727. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  728. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  729. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +1 -1
  730. package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts +7 -0
  731. package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +1 -0
  732. package/lib/build/ObjectPreview/ObjectPreview.mocks.js +74 -0
  733. package/lib/build/ObjectPreview/ObjectPreview.mocks.js.map +1 -0
  734. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  735. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +5 -7
  736. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  737. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  738. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  739. package/lib/build/ObjectSelect/ObjectSelect.stories.js +3 -5
  740. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  741. package/lib/build/PageBanner/PageBanner.stories.d.ts +5 -5
  742. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
  743. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -1
  744. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
  745. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  746. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  747. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  748. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  749. package/lib/build/PageTemplates/PageTemplates.stories.js +0 -3
  750. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  751. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
  752. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
  753. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -1
  754. package/lib/build/Workbench/Workbench.stories.d.ts +4 -4
  755. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  756. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  757. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  758. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  759. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  760. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  761. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  762. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -1
  763. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
  764. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +53 -1
  765. package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
  766. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  767. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  768. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
  769. package/lib/core/AIButton/AIButton.mocks.d.ts +22 -0
  770. package/lib/core/AIButton/AIButton.mocks.d.ts.map +1 -0
  771. package/lib/core/AIButton/AIButton.mocks.js +139 -0
  772. package/lib/core/AIButton/AIButton.mocks.js.map +1 -0
  773. package/lib/core/AIButton/AIButton.stories.d.ts +23 -0
  774. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -0
  775. package/lib/core/AIButton/AIButton.stories.js +223 -0
  776. package/lib/core/AIButton/AIButton.stories.js.map +1 -0
  777. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  778. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  779. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -1
  780. package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  781. package/lib/core/AppShell/AppShell.mocks.js +3 -18
  782. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  783. package/lib/core/AppShell/AppShell.stories.d.ts +5 -7
  784. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  785. package/lib/core/AppShell/AppShell.stories.js +41 -41
  786. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  787. package/lib/core/Avatar/Avatar.stories.d.ts +9 -9
  788. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  789. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  790. package/lib/core/Backdrop/Backdrop.stories.d.ts +5 -5
  791. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  792. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  793. package/lib/core/Badges/Alert.stories.d.ts +4 -4
  794. package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
  795. package/lib/core/Badges/Alert.stories.js.map +1 -1
  796. package/lib/core/Badges/Count.stories.d.ts +4 -4
  797. package/lib/core/Badges/Count.stories.d.ts.map +1 -1
  798. package/lib/core/Badges/Count.stories.js.map +1 -1
  799. package/lib/core/Badges/Keyboard.stories.d.ts +4 -4
  800. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
  801. package/lib/core/Badges/Keyboard.stories.js +1 -1
  802. package/lib/core/Badges/Keyboard.stories.js.map +1 -1
  803. package/lib/core/Badges/Selection.stories.d.ts +3 -3
  804. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  805. package/lib/core/Badges/Selection.stories.js.map +1 -1
  806. package/lib/core/Badges/Status.stories.d.ts +5 -5
  807. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  808. package/lib/core/Badges/Status.stories.js.map +1 -1
  809. package/lib/core/Badges/Tag.stories.d.ts +3 -3
  810. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  811. package/lib/core/Badges/Tag.stories.js.map +1 -1
  812. package/lib/core/Banner/Banner.stories.d.ts +9 -8
  813. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  814. package/lib/core/Banner/Banner.stories.js +32 -20
  815. package/lib/core/Banner/Banner.stories.js.map +1 -1
  816. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  817. package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  818. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  819. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -4
  820. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  821. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +16 -4
  822. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  823. package/lib/core/Button/Button.stories.d.ts +9 -10
  824. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  825. package/lib/core/Button/Button.stories.js +0 -12
  826. package/lib/core/Button/Button.stories.js.map +1 -1
  827. package/lib/core/Card/Card.stories.d.ts +6 -6
  828. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  829. package/lib/core/Card/Card.stories.js.map +1 -1
  830. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -6
  831. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  832. package/lib/core/Checkbox/Checkbox.stories.js +3 -1
  833. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  834. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  835. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  836. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +9 -5
  837. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  838. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  839. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  840. package/lib/core/ColorPicker/ColorPicker.stories.js +1 -1
  841. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  842. package/lib/core/ComboBox/ComboBox.stories.d.ts +11 -10
  843. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  844. package/lib/core/ComboBox/ComboBox.stories.js +22 -10
  845. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  846. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  847. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  848. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -1
  849. package/lib/core/Configuration/Configuration.stories.d.ts +8 -8
  850. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  851. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  852. package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -4
  853. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  854. package/lib/core/CreditCard/CreditCard.stories.js +1 -2
  855. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  856. package/lib/core/Currency/Currency.stories.d.ts +6 -6
  857. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  858. package/lib/core/Currency/Currency.stories.js +1 -1
  859. package/lib/core/Currency/Currency.stories.js.map +1 -1
  860. package/lib/core/DangerButton/DangerButton.stories.d.ts +6 -0
  861. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -0
  862. package/lib/core/DangerButton/DangerButton.stories.js +18 -0
  863. package/lib/core/DangerButton/DangerButton.stories.js.map +1 -0
  864. package/lib/core/DateTime/DateTime.stories.d.ts +13 -13
  865. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  866. package/lib/core/DateTime/DateTime.stories.js +11 -9
  867. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  868. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  869. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  870. package/lib/core/DateTime/DateTimeDisplay.stories.js +5 -3
  871. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  872. package/lib/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  873. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  874. package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
  875. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  876. package/lib/core/Dialog/Dialog.stories.d.ts +5 -4
  877. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  878. package/lib/core/Dialog/Dialog.stories.js +8 -63
  879. package/lib/core/Dialog/Dialog.stories.js.map +1 -1
  880. package/lib/core/Dialog/{Dialog.mocks.d.ts → FormDialog.mocks.d.ts} +4 -3
  881. package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
  882. package/lib/core/Dialog/{Dialog.mocks.js → FormDialog.mocks.js} +61 -5
  883. package/lib/core/Dialog/FormDialog.mocks.js.map +1 -0
  884. package/lib/core/Dialog/InfoDialog.mocks.d.ts +4 -0
  885. package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
  886. package/lib/core/Dialog/InfoDialog.mocks.js +41 -0
  887. package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -0
  888. package/lib/core/Drawer/Drawer.stories.d.ts +5 -5
  889. package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
  890. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  891. package/lib/core/Email/EmailDisplay.stories.d.ts +4 -4
  892. package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  893. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  894. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  895. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  896. package/lib/core/EmojiPicker/EmojiPicker.stories.js +6 -5
  897. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  898. package/lib/core/EmptyState/EmptyState.stories.d.ts +4 -4
  899. package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  900. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  901. package/lib/core/ErrorState/ErrorState.stories.d.ts +4 -4
  902. package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  903. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  904. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  905. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  906. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  907. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +8 -3
  908. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  909. package/lib/core/FieldGroup/FieldGroup.stories.js +27 -2
  910. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  911. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
  912. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  913. package/lib/core/FieldGroup/FieldGroupList.mocks.js +6 -1
  914. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  915. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +6 -5
  916. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  917. package/lib/core/FieldGroup/FieldGroupList.stories.js +43 -11
  918. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  919. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +20 -0
  920. package/lib/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
  921. package/lib/core/FieldValueList/FieldValueList.mocks.js +51 -0
  922. package/lib/core/FieldValueList/FieldValueList.mocks.js.map +1 -0
  923. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  924. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  925. package/lib/core/FieldValueList/FieldValueList.stories.js +5 -50
  926. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  927. package/lib/core/File/FileDisplay.stories.d.ts +6 -6
  928. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  929. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  930. package/lib/core/File/FileInput.stories.d.ts +4 -4
  931. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  932. package/lib/core/File/FileInput.stories.js.map +1 -1
  933. package/lib/core/Flex/FlexContainer.stories.d.ts +10 -10
  934. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  935. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  936. package/lib/core/Flex/FlexItem.stories.d.ts +6 -6
  937. package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
  938. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  939. package/lib/core/Form/Form.stories.d.ts +8 -8
  940. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  941. package/lib/core/Form/Form.stories.js.map +1 -1
  942. package/lib/core/Grid/GridContainer.stories.d.ts +12 -12
  943. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  944. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  945. package/lib/core/Grid/GridItem.stories.d.ts +6 -6
  946. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  947. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  948. package/lib/core/HTML/HTML.stories.d.ts +4 -4
  949. package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
  950. package/lib/core/HTML/HTML.stories.js.map +1 -1
  951. package/lib/core/Icon/Icon.stories.d.ts +9 -6
  952. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  953. package/lib/core/Icon/Icon.stories.js +16 -8
  954. package/lib/core/Icon/Icon.stories.js.map +1 -1
  955. package/lib/core/IconPicker/IconPicker.stories.d.ts +4 -4
  956. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  957. package/lib/core/IconPicker/IconPicker.stories.js +1 -1
  958. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  959. package/lib/core/Image/Image.stories.d.ts +3 -3
  960. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  961. package/lib/core/Image/Image.stories.js.map +1 -1
  962. package/lib/core/Input/Input.stories.d.ts +6 -6
  963. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  964. package/lib/core/Input/Input.stories.js +2 -2
  965. package/lib/core/Input/Input.stories.js.map +1 -1
  966. package/lib/core/Label/Label.stories.d.ts +5 -5
  967. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  968. package/lib/core/Label/Label.stories.js.map +1 -1
  969. package/lib/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
  970. package/lib/core/Lightbox/Lightbox.mocks.js +0 -8
  971. package/lib/core/Lightbox/Lightbox.mocks.js.map +1 -1
  972. package/lib/core/Lightbox/Lightbox.stories.d.ts +3 -3
  973. package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  974. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  975. package/lib/core/Link/Link.stories.d.ts +7 -7
  976. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  977. package/lib/core/Link/Link.stories.js.map +1 -1
  978. package/lib/core/List/CommaSeparatedList.stories.d.ts +4 -4
  979. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  980. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  981. package/lib/core/List/OrderedList.stories.d.ts +4 -4
  982. package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
  983. package/lib/core/List/OrderedList.stories.js.map +1 -1
  984. package/lib/core/List/UnorderedList.stories.d.ts +4 -4
  985. package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
  986. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  987. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  988. package/lib/core/ListToolbar/ListToolbar.mocks.js +26 -33
  989. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -1
  990. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
  991. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  992. package/lib/core/ListToolbar/ListToolbar.stories.js +3 -3
  993. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  994. package/lib/core/LiveLog/LiveLog.stories.d.ts +4 -4
  995. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  996. package/lib/core/LiveLog/LiveLog.stories.js.map +1 -1
  997. package/lib/core/Location/Location.stories.d.ts +7 -7
  998. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  999. package/lib/core/Location/Location.stories.js +14 -8
  1000. package/lib/core/Location/Location.stories.js.map +1 -1
  1001. package/lib/core/Menu/Menu.mocks.js.map +1 -1
  1002. package/lib/core/Menu/Menu.stories.d.ts +6 -5
  1003. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  1004. package/lib/core/Menu/Menu.stories.js +27 -0
  1005. package/lib/core/Menu/Menu.stories.js.map +1 -1
  1006. package/lib/core/MenuButton/MenuButton.stories.d.ts +9 -8
  1007. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  1008. package/lib/core/MenuButton/MenuButton.stories.js +1 -1
  1009. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  1010. package/lib/core/MetaList/MetaList.stories.d.ts +4 -4
  1011. package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
  1012. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  1013. package/lib/core/Modal/Modal.mocks.d.ts +1 -1
  1014. package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
  1015. package/lib/core/Modal/Modal.stories.d.ts +11 -11
  1016. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  1017. package/lib/core/Modal/Modal.stories.js +7 -6
  1018. package/lib/core/Modal/Modal.stories.js.map +1 -1
  1019. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +36 -3
  1020. package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  1021. package/lib/core/MultiStepForm/MultiStepForm.mocks.js +269 -31
  1022. package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
  1023. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -3
  1024. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  1025. package/lib/core/MultiStepForm/MultiStepForm.stories.js +65 -173
  1026. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  1027. package/lib/core/NoValue/NoValue.stories.d.ts +6 -0
  1028. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -0
  1029. package/lib/core/NoValue/NoValue.stories.js +29 -0
  1030. package/lib/core/NoValue/NoValue.stories.js.map +1 -0
  1031. package/lib/core/Number/Number.stories.d.ts +8 -8
  1032. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  1033. package/lib/core/Number/Number.stories.js +3 -3
  1034. package/lib/core/Number/Number.stories.js.map +1 -1
  1035. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +8 -8
  1036. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  1037. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  1038. package/lib/core/Pagination/Pagination.stories.d.ts +4 -4
  1039. package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
  1040. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  1041. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  1042. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  1043. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  1044. package/lib/core/Phone/Phone.stories.d.ts +5 -5
  1045. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  1046. package/lib/core/Phone/Phone.stories.js +1 -1
  1047. package/lib/core/Phone/Phone.stories.js.map +1 -1
  1048. package/lib/core/Popover/Popover.mocks.d.ts +9 -0
  1049. package/lib/core/Popover/Popover.mocks.d.ts.map +1 -0
  1050. package/lib/core/Popover/Popover.mocks.js +105 -0
  1051. package/lib/core/Popover/Popover.mocks.js.map +1 -0
  1052. package/lib/core/Popover/Popover.stories.d.ts +11 -5
  1053. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  1054. package/lib/core/Popover/Popover.stories.js +27 -0
  1055. package/lib/core/Popover/Popover.stories.js.map +1 -1
  1056. package/lib/core/Progress/Progress.mocks.d.ts +2 -0
  1057. package/lib/core/Progress/Progress.mocks.d.ts.map +1 -0
  1058. package/lib/core/Progress/Progress.mocks.js +2 -0
  1059. package/lib/core/Progress/Progress.mocks.js.map +1 -0
  1060. package/lib/core/Progress/Progress.stories.d.ts +5 -5
  1061. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  1062. package/lib/core/Progress/Progress.stories.js +2 -2
  1063. package/lib/core/Progress/Progress.stories.js.map +1 -1
  1064. package/lib/core/QRCode/QRCode.stories.d.ts +3 -3
  1065. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -1
  1066. package/lib/core/QRCode/QRCode.stories.js.map +1 -1
  1067. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -6
  1068. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  1069. package/lib/core/RadioButton/RadioButton.stories.js +3 -1
  1070. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  1071. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  1072. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  1073. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +9 -5
  1074. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  1075. package/lib/core/Rating/Rating.stories.d.ts +5 -5
  1076. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  1077. package/lib/core/Rating/Rating.stories.js +1 -1
  1078. package/lib/core/Rating/Rating.stories.js.map +1 -1
  1079. package/lib/core/SearchInput/SearchInput.stories.d.ts +5 -5
  1080. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  1081. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  1082. package/lib/core/Select/Select.stories.d.ts +5 -5
  1083. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  1084. package/lib/core/Select/Select.stories.js +1 -1
  1085. package/lib/core/Select/Select.stories.js.map +1 -1
  1086. package/lib/core/Sentiment/Sentiment.stories.d.ts +5 -5
  1087. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  1088. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  1089. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  1090. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  1091. package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -1
  1092. package/lib/core/Slider/Slider.stories.d.ts +5 -5
  1093. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  1094. package/lib/core/Slider/Slider.stories.js +1 -1
  1095. package/lib/core/Slider/Slider.stories.js.map +1 -1
  1096. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
  1097. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  1098. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  1099. package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
  1100. package/lib/core/SummaryList/SummaryList.mocks.js +11 -2
  1101. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  1102. package/lib/core/SummaryList/SummaryList.stories.d.ts +5 -5
  1103. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  1104. package/lib/core/SummaryList/SummaryList.stories.js +2 -2
  1105. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  1106. package/lib/core/SummaryList/mockUsers.d.ts.map +1 -1
  1107. package/lib/core/SummaryList/mockUsers.js +2 -0
  1108. package/lib/core/SummaryList/mockUsers.js.map +1 -1
  1109. package/lib/core/Switch/Switch.stories.d.ts +6 -6
  1110. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  1111. package/lib/core/Switch/Switch.stories.js.map +1 -1
  1112. package/lib/core/Table/Table.mocks.js +1 -1
  1113. package/lib/core/Table/Table.mocks.js.map +1 -1
  1114. package/lib/core/Table/Table.stories.d.ts +6 -6
  1115. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  1116. package/lib/core/Table/Table.stories.js.map +1 -1
  1117. package/lib/core/Tabs/Tabs.stories.d.ts +4 -10
  1118. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  1119. package/lib/core/Tabs/Tabs.stories.js +4 -34
  1120. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  1121. package/lib/core/Text/Text.stories.d.ts +5 -5
  1122. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  1123. package/lib/core/Text/Text.stories.js +1 -1
  1124. package/lib/core/Text/Text.stories.js.map +1 -1
  1125. package/lib/core/TextArea/TextArea.stories.d.ts +5 -5
  1126. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  1127. package/lib/core/TextArea/TextArea.stories.js +2 -2
  1128. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  1129. package/lib/core/Toaster/Toaster.stories.d.ts +3 -3
  1130. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  1131. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  1132. package/lib/core/Tooltip/Tooltip.stories.d.ts +5 -4
  1133. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  1134. package/lib/core/Tooltip/Tooltip.stories.js +9 -1
  1135. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  1136. package/lib/core/Tooltip/Tooltip.styles.d.ts +2 -0
  1137. package/lib/core/Tooltip/Tooltip.styles.d.ts.map +1 -0
  1138. package/lib/core/Tooltip/Tooltip.styles.js +23 -0
  1139. package/lib/core/Tooltip/Tooltip.styles.js.map +1 -0
  1140. package/lib/core/Tree/Tree.stories.d.ts +5 -5
  1141. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  1142. package/lib/core/Tree/Tree.stories.js.map +1 -1
  1143. package/lib/core/URL/URL.stories.d.ts +4 -4
  1144. package/lib/core/URL/URL.stories.d.ts.map +1 -1
  1145. package/lib/core/URL/URL.stories.js.map +1 -1
  1146. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +1 -1
  1147. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
  1148. package/lib/cs/CSAppShell/CSAppShell.mocks.js +15 -15
  1149. package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
  1150. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  1151. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  1152. package/lib/cs/CSAppShell/CSAppShell.stories.js +6 -4
  1153. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  1154. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +2 -2
  1155. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
  1156. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  1157. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  1158. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +1 -0
  1159. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  1160. package/lib/cs/DialPad/DialPad.stories.d.ts +4 -4
  1161. package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  1162. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  1163. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
  1164. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  1165. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  1166. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +5 -4
  1167. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  1168. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +12 -5
  1169. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  1170. package/lib/cs/Picker/Picker.stories.d.ts +11 -0
  1171. package/lib/cs/Picker/Picker.stories.d.ts.map +1 -0
  1172. package/lib/cs/Picker/Picker.stories.js +56 -0
  1173. package/lib/cs/Picker/Picker.stories.js.map +1 -0
  1174. package/lib/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  1175. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  1176. package/lib/cs/TaskManager/TaskManager.stories.js +2 -2
  1177. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  1178. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  1179. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  1180. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  1181. package/lib/dnd/StandardDragDropList/Demo.d.ts +1 -0
  1182. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  1183. package/lib/dnd/StandardDragDropList/Demo.js +1 -1
  1184. package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
  1185. package/lib/dnd/StandardDragDropList/Popover.d.ts +1 -1
  1186. package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  1187. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  1188. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  1189. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
  1190. package/lib/dnd/StandardDragDropList/mockData.d.ts +2 -2
  1191. package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
  1192. package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
  1193. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
  1194. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
  1195. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js +87 -0
  1196. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
  1197. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts +14 -0
  1198. package/lib/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
  1199. package/lib/rte/DynamicContentEditor/FieldSelector.js +83 -0
  1200. package/lib/rte/DynamicContentEditor/FieldSelector.js.map +1 -0
  1201. package/lib/rte/Editor/Editor.mocks.d.ts +41 -27
  1202. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
  1203. package/lib/rte/Editor/Editor.stories.d.ts +8 -8
  1204. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  1205. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  1206. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  1207. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  1208. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +1 -1
  1209. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  1210. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  1211. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  1212. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  1213. package/lib/social/Chat/Chat.mocks.d.ts +23 -396
  1214. package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
  1215. package/lib/social/Chat/Chat.mocks.js +542 -585
  1216. package/lib/social/Chat/Chat.mocks.js.map +1 -1
  1217. package/lib/social/Chat/Chat.stories.d.ts +29 -33
  1218. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  1219. package/lib/social/Chat/Chat.stories.js +211 -177
  1220. package/lib/social/Chat/Chat.stories.js.map +1 -1
  1221. package/lib/social/Email/Email.mocks.d.ts +1 -1
  1222. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  1223. package/lib/social/Email/Email.mocks.js +4 -4
  1224. package/lib/social/Email/Email.mocks.js.map +1 -1
  1225. package/lib/social/Email/Email.stories.d.ts +15 -15
  1226. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  1227. package/lib/social/Email/Email.stories.js +23 -25
  1228. package/lib/social/Email/Email.stories.js.map +1 -1
  1229. package/lib/social/Feed/Feed.mocks.d.ts +19 -13
  1230. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  1231. package/lib/social/Feed/Feed.mocks.js +77 -9
  1232. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  1233. package/lib/social/Feed/Feed.stories.d.ts +5 -5
  1234. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  1235. package/lib/social/Feed/Feed.stories.js +29 -19
  1236. package/lib/social/Feed/Feed.stories.js.map +1 -1
  1237. package/lib/social/Feed/FeedNewPost.mocks.d.ts +8 -0
  1238. package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
  1239. package/lib/social/Feed/FeedNewPost.mocks.js +46 -0
  1240. package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -0
  1241. package/lib/social/Feed/FeedPost.mocks.d.ts +4 -0
  1242. package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -0
  1243. package/lib/social/Feed/FeedPost.mocks.js +165 -0
  1244. package/lib/social/Feed/FeedPost.mocks.js.map +1 -0
  1245. package/lib/social/Feed/FeedReply.mocks.d.ts +13 -0
  1246. package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -0
  1247. package/lib/social/Feed/FeedReply.mocks.js +74 -0
  1248. package/lib/social/Feed/FeedReply.mocks.js.map +1 -0
  1249. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
  1250. package/lib/tools/Clipboard/Clipboard.mocks.js +0 -1
  1251. package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -1
  1252. package/lib/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  1253. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  1254. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
  1255. package/lib/tools/DevTools/DevTools.stories.d.ts +4 -4
  1256. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  1257. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  1258. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -1
  1259. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
  1260. package/lib/tools/PreviewShell/PreviewShell.mocks.js +1 -2
  1261. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
  1262. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  1263. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  1264. package/lib/tools/PreviewShell/PreviewShell.stories.js +4 -5
  1265. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  1266. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  1267. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  1268. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
  1269. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  1270. package/lib/work/Article/Article.mocks.d.ts.map +1 -0
  1271. package/lib/work/Article/Article.mocks.js +14 -0
  1272. package/lib/work/Article/Article.mocks.js.map +1 -0
  1273. package/lib/work/Article/Article.stories.d.ts +17 -0
  1274. package/lib/work/Article/Article.stories.d.ts.map +1 -0
  1275. package/lib/work/Article/Article.stories.js +200 -0
  1276. package/lib/work/Article/Article.stories.js.map +1 -0
  1277. package/lib/work/ArticleList/ArticleList.mocks.d.ts +140 -0
  1278. package/lib/work/ArticleList/ArticleList.mocks.d.ts.map +1 -0
  1279. package/lib/work/ArticleList/ArticleList.mocks.js +414 -0
  1280. package/lib/work/ArticleList/ArticleList.mocks.js.map +1 -0
  1281. package/lib/work/ArticleList/ArticleList.stories.d.ts +14 -0
  1282. package/lib/work/ArticleList/ArticleList.stories.d.ts.map +1 -0
  1283. package/lib/work/ArticleList/ArticleList.stories.js +312 -0
  1284. package/lib/work/ArticleList/ArticleList.stories.js.map +1 -0
  1285. package/lib/work/Assignments/Assignments.stories.d.ts +11 -0
  1286. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -0
  1287. package/lib/work/Assignments/Assignments.stories.js +63 -0
  1288. package/lib/work/Assignments/Assignments.stories.js.map +1 -0
  1289. package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  1290. package/lib/work/CaseView/Attachments.mocks.js +96 -80
  1291. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  1292. package/lib/work/CaseView/CaseView.mocks.d.ts +38 -9
  1293. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  1294. package/lib/work/CaseView/CaseView.mocks.js +224 -98
  1295. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  1296. package/lib/work/CaseView/CaseView.stories.d.ts +4 -9
  1297. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  1298. package/lib/work/CaseView/CaseView.stories.js +39 -10
  1299. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  1300. package/lib/work/CaseView/Details.mocks.js +1 -1
  1301. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  1302. package/lib/work/CaseView/FileService.mock.d.ts +2 -2
  1303. package/lib/work/CaseView/FileService.mock.d.ts.map +1 -1
  1304. package/lib/work/CaseView/FileService.mock.js +2 -6
  1305. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  1306. package/lib/work/CaseView/Pulse.mocks.d.ts +1 -1
  1307. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  1308. package/lib/work/CaseView/Pulse.mocks.js +1 -1
  1309. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  1310. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  1311. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  1312. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  1313. package/lib/work/Confirmation/Confirmation.stories.d.ts +5 -4
  1314. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  1315. package/lib/work/Confirmation/Confirmation.stories.js +10 -5
  1316. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  1317. package/lib/work/Details/Details.stories.d.ts +6 -3
  1318. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  1319. package/lib/work/Details/Details.stories.js +15 -3
  1320. package/lib/work/Details/Details.stories.js.map +1 -1
  1321. package/lib/work/Glimpse/Glimpse.stories.d.ts +3 -8
  1322. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  1323. package/lib/work/Glimpse/Glimpse.stories.js +13 -15
  1324. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  1325. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  1326. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  1327. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +82 -12
  1328. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  1329. package/lib/work/Predictions/Predictions.mocks.d.ts +3 -0
  1330. package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -0
  1331. package/lib/work/Predictions/Predictions.mocks.js +6 -0
  1332. package/lib/work/Predictions/Predictions.mocks.js.map +1 -0
  1333. package/lib/work/Predictions/Predictions.stories.d.ts +5 -0
  1334. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -0
  1335. package/lib/work/Predictions/Predictions.stories.js +54 -0
  1336. package/lib/work/Predictions/Predictions.stories.js.map +1 -0
  1337. package/lib/work/SearchResults/SearchResults.mocks.d.ts +1 -1
  1338. package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
  1339. package/lib/work/SearchResults/SearchResults.stories.d.ts +3 -3
  1340. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  1341. package/lib/work/SearchResults/SearchResults.stories.js +2 -8
  1342. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  1343. package/lib/work/Stages/Stages.stories.d.ts +4 -4
  1344. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  1345. package/lib/work/Stages/Stages.stories.js +22 -8
  1346. package/lib/work/Stages/Stages.stories.js.map +1 -1
  1347. package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  1348. package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -2
  1349. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  1350. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  1351. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  1352. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  1353. package/lib/work/Tags/Tags.stories.d.ts +3 -3
  1354. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  1355. package/lib/work/Tags/Tags.stories.js +8 -2
  1356. package/lib/work/Tags/Tags.stories.js.map +1 -1
  1357. package/lib/work/Tasks/TaskList.stories.d.ts +3 -3
  1358. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  1359. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  1360. package/lib/work/Tasks/Tasks.mocks.d.ts +22 -0
  1361. package/lib/work/Tasks/Tasks.mocks.d.ts.map +1 -0
  1362. package/lib/work/Tasks/Tasks.mocks.js +51 -0
  1363. package/lib/work/Tasks/Tasks.mocks.js.map +1 -0
  1364. package/lib/work/Tasks/Tasks.stories.d.ts +9 -7
  1365. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  1366. package/lib/work/Tasks/Tasks.stories.js +41 -55
  1367. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  1368. package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -1
  1369. package/lib/work/Timeline/Timeline.mocks.js +16 -1
  1370. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  1371. package/lib/work/Timeline/Timeline.stories.d.ts +6 -6
  1372. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  1373. package/lib/work/Timeline/Timeline.stories.js +1 -1
  1374. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  1375. package/lib/wss/AppShell/AppShell.mocks.d.ts +0 -11
  1376. package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  1377. package/lib/wss/AppShell/AppShell.mocks.js +0 -11
  1378. package/lib/wss/AppShell/AppShell.mocks.js.map +1 -1
  1379. package/lib/wss/AppShell/AppShell.stories.d.ts +5 -5
  1380. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  1381. package/lib/wss/AppShell/AppShell.stories.js +36 -9
  1382. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  1383. package/lib/wss/CaseView/CaseView.stories.d.ts +3 -3
  1384. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  1385. package/lib/wss/CaseView/CaseView.stories.js +8 -7
  1386. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  1387. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  1388. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  1389. package/lib/wss/PageTemplates/PageTemplates.stories.js +2 -2
  1390. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
  1391. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  1392. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  1393. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -1
  1394. package/package.json +24 -22
  1395. package/jsx/core/Dialog/Dialog.mocks.d.ts.map +0 -1
  1396. package/jsx/core/Dialog/Dialog.mocks.jsx.map +0 -1
  1397. package/jsx/cs/Article/Article.mocks.d.ts.map +0 -1
  1398. package/jsx/cs/Article/Article.mocks.js +0 -14
  1399. package/jsx/cs/Article/Article.mocks.js.map +0 -1
  1400. package/jsx/cs/Article/Article.stories.d.ts +0 -6
  1401. package/jsx/cs/Article/Article.stories.d.ts.map +0 -1
  1402. package/jsx/cs/Article/Article.stories.jsx +0 -126
  1403. package/jsx/cs/Article/Article.stories.jsx.map +0 -1
  1404. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts +0 -21
  1405. package/jsx/cs/ArticleList/ArticleList.mocks.d.ts.map +0 -1
  1406. package/jsx/cs/ArticleList/ArticleList.mocks.js +0 -102
  1407. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +0 -1
  1408. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +0 -6
  1409. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +0 -1
  1410. package/jsx/cs/ArticleList/ArticleList.stories.jsx +0 -111
  1411. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +0 -1
  1412. package/jsx/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1413. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1414. package/jsx/social/Chat/RepeatingView.mocks.js +0 -11
  1415. package/jsx/social/Chat/RepeatingView.mocks.js.map +0 -1
  1416. package/jsx/social/Chat/RepeatingView.stories.d.ts +0 -9
  1417. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1418. package/jsx/social/Chat/RepeatingView.stories.jsx +0 -60
  1419. package/jsx/social/Chat/RepeatingView.stories.jsx.map +0 -1
  1420. package/jsx/social/Chat/RepeatingView.styles.d.ts +0 -2
  1421. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1422. package/jsx/social/Chat/RepeatingView.styles.js +0 -22
  1423. package/jsx/social/Chat/RepeatingView.styles.js.map +0 -1
  1424. package/jsx/social/Feed/FeedNewPost.stories.d.ts +0 -10
  1425. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
  1426. package/jsx/social/Feed/FeedNewPost.stories.jsx +0 -81
  1427. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +0 -1
  1428. package/jsx/social/Feed/FeedPost.stories.d.ts +0 -8
  1429. package/jsx/social/Feed/FeedPost.stories.d.ts.map +0 -1
  1430. package/jsx/social/Feed/FeedPost.stories.jsx +0 -257
  1431. package/jsx/social/Feed/FeedPost.stories.jsx.map +0 -1
  1432. package/jsx/social/Feed/FeedReply.stories.d.ts +0 -16
  1433. package/jsx/social/Feed/FeedReply.stories.d.ts.map +0 -1
  1434. package/jsx/social/Feed/FeedReply.stories.jsx +0 -104
  1435. package/jsx/social/Feed/FeedReply.stories.jsx.map +0 -1
  1436. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +0 -10
  1437. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
  1438. package/jsx/social/Feed/FeedReplyInput.stories.jsx +0 -60
  1439. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +0 -1
  1440. package/lib/core/Dialog/Dialog.mocks.d.ts.map +0 -1
  1441. package/lib/core/Dialog/Dialog.mocks.js.map +0 -1
  1442. package/lib/cs/Article/Article.mocks.d.ts.map +0 -1
  1443. package/lib/cs/Article/Article.mocks.js +0 -14
  1444. package/lib/cs/Article/Article.mocks.js.map +0 -1
  1445. package/lib/cs/Article/Article.stories.d.ts +0 -6
  1446. package/lib/cs/Article/Article.stories.d.ts.map +0 -1
  1447. package/lib/cs/Article/Article.stories.js +0 -85
  1448. package/lib/cs/Article/Article.stories.js.map +0 -1
  1449. package/lib/cs/ArticleList/ArticleList.mocks.d.ts +0 -21
  1450. package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +0 -1
  1451. package/lib/cs/ArticleList/ArticleList.mocks.js +0 -102
  1452. package/lib/cs/ArticleList/ArticleList.mocks.js.map +0 -1
  1453. package/lib/cs/ArticleList/ArticleList.stories.d.ts +0 -6
  1454. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +0 -1
  1455. package/lib/cs/ArticleList/ArticleList.stories.js +0 -84
  1456. package/lib/cs/ArticleList/ArticleList.stories.js.map +0 -1
  1457. package/lib/social/Chat/RepeatingView.mocks.d.ts +0 -14
  1458. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
  1459. package/lib/social/Chat/RepeatingView.mocks.js +0 -11
  1460. package/lib/social/Chat/RepeatingView.mocks.js.map +0 -1
  1461. package/lib/social/Chat/RepeatingView.stories.d.ts +0 -9
  1462. package/lib/social/Chat/RepeatingView.stories.d.ts.map +0 -1
  1463. package/lib/social/Chat/RepeatingView.stories.js +0 -59
  1464. package/lib/social/Chat/RepeatingView.stories.js.map +0 -1
  1465. package/lib/social/Chat/RepeatingView.styles.d.ts +0 -2
  1466. package/lib/social/Chat/RepeatingView.styles.d.ts.map +0 -1
  1467. package/lib/social/Chat/RepeatingView.styles.js +0 -22
  1468. package/lib/social/Chat/RepeatingView.styles.js.map +0 -1
  1469. package/lib/social/Feed/FeedNewPost.stories.d.ts +0 -10
  1470. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
  1471. package/lib/social/Feed/FeedNewPost.stories.js +0 -83
  1472. package/lib/social/Feed/FeedNewPost.stories.js.map +0 -1
  1473. package/lib/social/Feed/FeedPost.stories.d.ts +0 -8
  1474. package/lib/social/Feed/FeedPost.stories.d.ts.map +0 -1
  1475. package/lib/social/Feed/FeedPost.stories.js +0 -250
  1476. package/lib/social/Feed/FeedPost.stories.js.map +0 -1
  1477. package/lib/social/Feed/FeedReply.stories.d.ts +0 -16
  1478. package/lib/social/Feed/FeedReply.stories.d.ts.map +0 -1
  1479. package/lib/social/Feed/FeedReply.stories.js +0 -100
  1480. package/lib/social/Feed/FeedReply.stories.js.map +0 -1
  1481. package/lib/social/Feed/FeedReplyInput.stories.d.ts +0 -10
  1482. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
  1483. package/lib/social/Feed/FeedReplyInput.stories.js +0 -61
  1484. package/lib/social/Feed/FeedReplyInput.stories.js.map +0 -1
  1485. /package/jsx/{cs → work}/Article/Article.mocks.d.ts +0 -0
  1486. /package/lib/{cs → work}/Article/Article.mocks.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"CSAppShell.mocks.js","sourceRoot":"","sources":["../../../src/cs/CSAppShell/CSAppShell.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,aAAa,EAGb,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,qBAAqB,EACrB,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EAEN,WAAW,EAEX,aAAa,EACb,QAAQ,EACR,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAqC,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,iBAAiB,MAAM,iEAAiE,CAAC;AAEhG,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,sBAAsB,MAAM,uEAAuE,CAAC;AAE3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EACL,oBAAoB,EACpB,eAAe,EAChB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAc/E,MAAM,CAAC,MAAM,aAAa,GAAsC,CAAC,EAC/D,cAAc,EACd,OAAO,EACP,QAAQ,EACO,EAAE,EAAE;IACnB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACvD,MAAM,CAAC,SAAS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ACJ,KAAK,EAAE,WAAW;wBAClB,WAAW,EAAE,UAAU;qBACxB,GACD,GACG,EAEP,KAAC,gBAAgB,IACf,KAAK,EAAE,iBAAiB,EACxB,EAAE,EAAE,wBAAwB,EAC5B,WAAW,EAAE,WAAW,EACxB,YAAY,EAAC,WAAW,EACxB,UAAU,EAAE,KAAK,GACjB,IACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAsB,GAAG,EAAE;IAChE,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAEzD,MAAM,YAAY,GAAG,gBAAgB,CAAC;IAEtC,MAAM,aAAa,GAAG;QACpB,YAAY;QACZ,UAAU,EAAE,KAAC,kBAAkB,KAAG;QAClC,IAAI,EAAE,YAAY;KACnB,CAAC;IAEF,OAAO,CACL,KAAC,sBAAsB,IACrB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,GACxC,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n ChangeEvent,\n createContext,\n FunctionComponent,\n MouseEvent,\n useCallback,\n useContext,\n useState,\n useEffect,\n useMemo\n} from 'react';\n\nimport {\n AppShellDrawerContext,\n Banner,\n Button,\n Flex,\n Form,\n Input,\n Option,\n Select,\n MenuProps,\n menuHelpers,\n MenuItemProps,\n CheckboxGroup,\n Checkbox,\n ComboBox\n} from '@pega/cosmos-react-core';\nimport { type UserAvailabilityStatusOption, CTIPanel } from '@pega/cosmos-react-cs';\nimport ChatSettingsPanel from '@pega/cosmos-react-social/lib/components/Chat/ChatSettingsPanel';\nimport { UserAvailability } from '@pega/cosmos-react-social/lib/components/Chat/Chat.types';\nimport { AppshellEmailSummaryList, EmailSummaryList } from '@pega/cosmos-react-social';\nimport EmailNotificationPanel from '@pega/cosmos-react-social/lib/components/Email/EmailNotificationPanel';\n\nimport { emailSummaryItems } from '../../social/Email/Email.mocks';\nimport {\n CallControlPanelDemo,\n ExternalCTIDemo\n} from '../CallControlPanel/CallControlPanel.stories';\nimport { userStatusOptions } from '../CallControlPanel/CallControlPanel.mocks';\n\nexport type LoginError = string;\n\nexport interface LoginFormProps {\n ctiLinkOptions: { [key: string]: string };\n onLogin: (\n ctiLinkId: keyof LoginFormProps['ctiLinkOptions'],\n agentId: string,\n password: string\n ) => Promise<LoginError | undefined>;\n onCancel: () => void;\n}\n\nexport const CallLoginForm: FunctionComponent<LoginFormProps> = ({\n ctiLinkOptions,\n onLogin,\n onCancel\n}: LoginFormProps) => {\n const [agentId, setAgentId] = useState<string>('');\n const [password, setPassword] = useState<string>('');\n const [extension, setExtension] = useState<string>('');\n const [ctiLinkId, setCTILinkId] = useState<string>(Object.keys(ctiLinkOptions)[0]);\n const [errorMessage, setErrorMessage] = useState<string>();\n\n const canSubmit = agentId && password && ctiLinkId && extension;\n\n const actions = (\n <>\n <Button key='cancel' name='cancel' variant='secondary' onClick={onCancel}>\n Cancel\n </Button>\n <Button\n key='submit'\n name='submit'\n type='submit'\n variant='primary'\n disabled={!canSubmit}\n onClick={(e: MouseEvent) => {\n e.preventDefault();\n onLogin(ctiLinkId!, agentId, password).then(setErrorMessage);\n }}\n >\n Login\n </Button>\n </>\n );\n\n return (\n <Form\n actions={actions}\n banners={errorMessage ? <Banner variant='urgent' messages={[errorMessage]} /> : undefined}\n >\n <Select required label='CTI link' onChange={e => setCTILinkId(e.target.value)}>\n {Object.entries(ctiLinkOptions).map(([id, label]) => (\n <Option value={id}>{label}</Option>\n ))}\n </Select>\n <Input\n required\n label='Agent ID'\n value={agentId}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setAgentId(e.target.value)}\n />\n <Input\n type='password'\n required\n label='Password'\n value={password}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setPassword(e.target.value)}\n />\n <Input\n required\n label='Extension'\n value={extension}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setExtension(e.target.value)}\n />\n </Form>\n );\n};\n\nexport const CTIControlPanelContext = createContext<{\n type: 'internal' | 'external';\n draggable?: boolean;\n applyAppStyling: boolean;\n}>({\n type: 'internal',\n draggable: true,\n applyAppStyling: false\n});\n\nexport const CTIControlPanel: FunctionComponent = () => {\n const [agentStatus, setAgentStatus] = useState<UserAvailabilityStatusOption>(\n userStatusOptions[0] as UserAvailabilityStatusOption\n );\n const [callPanelVisible, setCallPanelVisible] = useState(false);\n const { type, draggable, applyAppStyling } = useContext(CTIControlPanelContext);\n const { openDrawer, closeDrawer } = useContext(AppShellDrawerContext);\n\n const drawerView = (\n <Flex container={{ direction: 'column', gap: 2, pad: 2 }} item={{ grow: 1 }}>\n <CallLoginForm\n ctiLinkOptions={{\n valid: 'It will be accepted',\n invalid: 'This will raise an error'\n }}\n onLogin={ctiLink => {\n if (ctiLink === 'invalid') return Promise.resolve('Login incorrect');\n setAgentStatus(userStatusOptions[0]);\n setCallPanelVisible(true);\n closeDrawer();\n return Promise.resolve(undefined);\n }}\n onCancel={closeDrawer}\n />\n </Flex>\n );\n const drawerHeader = 'Pega Call Log In';\n\n return (\n <>\n <CTIPanel\n visible={callPanelVisible}\n status={agentStatus}\n onClick={() => {\n if (agentStatus.status === 'logout')\n openDrawer({\n drawerHeader,\n drawerView,\n name: drawerHeader\n });\n else setCallPanelVisible(prev => !prev);\n }}\n >\n {type === 'internal' ? (\n <CallControlPanelDemo\n heading='Agent'\n status={agentStatus.id}\n onStatusChange={status => {\n setAgentStatus(status);\n if (status.status === 'logout') setCallPanelVisible(false);\n }}\n isDraggable={draggable}\n showStatus\n visible={callPanelVisible}\n />\n ) : (\n <ExternalCTIDemo\n heading='External CTI'\n isDraggable={draggable}\n showStatus\n visible={callPanelVisible}\n applyAppStyling={applyAppStyling}\n />\n )}\n </CTIPanel>\n </>\n );\n};\n\nexport const AppShellMockData = {\n notifications: [\n {\n id: '123',\n primary:\n \"Dean Thomas mentioned your team in a bug 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345',\n visual: 'Dean Thomas',\n unread: true\n },\n {\n id: '456',\n primary: \"Seth DeAngelo mentioned your team in a bug 'Text variant h1 renders as h3 in DOM'.\",\n visual: 'Seth DeAngelo',\n secondary: 'BUG-12345',\n unread: true\n },\n {\n id: '789',\n primary:\n \"Janet Moore mentioned your team in a bug 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-12345',\n visual: 'Janet Moore',\n unread: true\n },\n {\n id: '000',\n primary: 'You have been awarded Employee of the Month! Congratulations!',\n secondary: '',\n visual: 'Cindy Turner',\n unread: true\n }\n ],\n recents: [\n {\n id: '123',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '456',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '789',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '111',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '222',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '333',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '444',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '555',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '666',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n }\n ],\n 'Phone interaction': {\n caseId: 'Customer',\n heading: 'Ginger Ventura',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Gold'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Phone'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'Low'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'July 2018'\n },\n {\n id: '3',\n name: 'Address',\n value: '2213b Gormand street'\n }\n ]\n },\n 'Chat interaction': {\n caseId: 'Customer',\n heading: 'Sara Davis',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Silver'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Chat'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'High'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'March 2005'\n },\n {\n id: '3',\n name: 'Address',\n value: '340 River'\n }\n ]\n },\n 'Mail interaction': {\n caseId: 'Customer',\n heading: 'John Brown',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Bronze'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Mail'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'Medium'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'March 1995'\n },\n {\n id: '3',\n name: 'Address',\n value: '340 River'\n }\n ]\n }\n};\n\nexport const statuses = [\n { id: 'available', primary: 'Available', selected: false },\n {\n id: 'temporarilyUnavailable',\n primary: 'Temporarily unavailable',\n items: [\n { id: 'quick_break', primary: 'Quick break', selected: false },\n { id: 'personal_work', primary: 'Personal work', selected: false },\n { id: 'in_a_meeting', primary: 'In a meeting', selected: false }\n ]\n },\n { id: 'unavailable', primary: 'Unavailable', selected: false }\n];\n\nexport const ChatSettingsPanelMock: FunctionComponent = () => {\n const { openDrawer, closeDrawer } = useContext(AppShellDrawerContext);\n\n const [chatAlias, setChatAlias] = useState('');\n const [queues, setQueues] = useState<{ id: string; checked: boolean }[]>([\n { id: 'Billing', checked: false },\n { id: 'General', checked: false },\n { id: 'Technical', checked: false }\n ]);\n\n const [items, setItems] = useState<MenuProps['items']>((): MenuProps['items'] => {\n return menuHelpers.mapTree(statuses, item => ({\n ...item,\n selected: item.items ? undefined : !!item.selected\n }));\n });\n\n const selected = useMemo(() => menuHelpers.getSelected(items)[0], [items]);\n\n const selectItem = useCallback((id: MenuItemProps['id']) => {\n setItems(cur => menuHelpers.selectItem(cur, id, 'single-select'));\n }, []);\n\n const formActions = (\n <>\n <Button name='Cancel' variant='secondary' onClick={closeDrawer}>\n Cancel\n </Button>\n <Button name='Submit' variant='primary' onClick={closeDrawer}>\n Submit\n </Button>\n </>\n );\n\n const chatSettings = useMemo(\n () => (\n <Flex container={{ direction: 'column', gap: 2, pad: 2 }} item={{ grow: 1 }}>\n <Form actions={formActions}>\n <Flex container={{ direction: 'column', pad: 0.5 }}>\n <Input\n label='Chat alias'\n value={chatAlias}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setChatAlias(e.target.value);\n }}\n />\n </Flex>\n <Flex container={{ direction: 'column', pad: 1 }}>\n <CheckboxGroup label='Joined queues' name='queueslist' labelHidden={false}>\n {queues.map(({ id, checked }) => (\n <Checkbox\n label={id}\n id={id}\n name={id}\n checked={checked}\n onChange={e =>\n setQueues(\n queues.map(queue => {\n if (queue.id === id) {\n return {\n ...queue,\n checked: e.target.checked\n };\n }\n return queue;\n })\n )\n }\n />\n ))}\n </CheckboxGroup>\n </Flex>\n <Flex container={{ direction: 'column', pad: 0.5 }}>\n <ComboBox\n label='Status'\n mode='single-select'\n required\n selected={\n selected\n ? {\n items: {\n id: selected?.id,\n text: selected?.primary\n }\n }\n : undefined\n }\n menu={{\n items,\n variant: 'drill-down',\n onItemClick: selectItem\n }}\n />\n </Flex>\n </Form>\n </Flex>\n ),\n [items]\n );\n\n const drawerHeader = 'Chat settings';\n\n const drawerContent = {\n drawerHeader,\n drawerView: chatSettings,\n name: drawerHeader\n };\n\n useEffect(() => {\n if (selected) openDrawer(drawerContent);\n }, [selected]);\n\n return (\n <ChatSettingsPanel\n label={drawerHeader}\n status={\n menuHelpers.getParentItem(items, selected?.id)?.id === 'temporarilyUnavailable'\n ? (menuHelpers.getParentItem(items, selected?.id)?.id as UserAvailability)\n : (selected?.id as UserAvailability)\n }\n onClick={() => openDrawer(drawerContent)}\n />\n );\n};\n\nconst EmailNotifications = () => {\n const { closeDrawer } = useContext(AppShellDrawerContext);\n\n const [sortOptions, setSortOptions] = useState<MenuItemProps[]>([\n { id: 'Most recent', primary: 'Most recent', selected: true },\n { id: 'Most urgent', primary: 'Most urgent', selected: false },\n { id: 'All unread', primary: 'All unread', selected: false }\n ]);\n\n const selected = menuHelpers.getSelected(sortOptions)[0];\n\n const selectItem = (id: MenuItemProps['id']) => {\n setSortOptions(cur => menuHelpers.selectItem(cur, id, 'single-select') as MenuItemProps[]);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }} item={{ grow: 1 }}>\n <Flex container={{ justify: 'center', pad: [1, 0, 0] }}>\n <Button onClick={closeDrawer}>Get next email</Button>\n </Flex>\n <Flex container={{ direction: 'column', pad: [0, 2] }}>\n <ComboBox\n label='Sorted by'\n mode='single-select'\n selected={\n selected\n ? {\n items: {\n id: selected?.id,\n text: selected?.primary\n }\n }\n : undefined\n }\n menu={{\n items: sortOptions,\n onItemClick: selectItem\n }}\n />\n </Flex>\n\n <EmailSummaryList\n items={emailSummaryItems}\n as={AppshellEmailSummaryList}\n onItemClick={closeDrawer}\n emptyMessage='No emails'\n selectable={false}\n />\n </Flex>\n );\n};\n\nexport const EmailNotificationPanelMock: FunctionComponent = () => {\n const { openDrawer } = useContext(AppShellDrawerContext);\n\n const drawerHeader = 'My open emails';\n\n const drawerContent = {\n drawerHeader,\n drawerView: <EmailNotifications />,\n name: drawerHeader\n };\n\n return (\n <EmailNotificationPanel\n count={15}\n label={drawerHeader}\n onClick={() => openDrawer(drawerContent)}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"CSAppShell.mocks.js","sourceRoot":"","sources":["../../../src/cs/CSAppShell/CSAppShell.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,aAAa,EAGb,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,qBAAqB,EACrB,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EAEN,WAAW,EAEX,aAAa,EACb,QAAQ,EACR,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAqC,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,iBAAiB,MAAM,iEAAiE,CAAC;AAEhG,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,sBAAsB,MAAM,uEAAuE,CAAC;AAE3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EACL,oBAAoB,EACpB,eAAe,EAChB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAc/E,MAAM,CAAC,MAAM,aAAa,GAAsC,CAAC,EAC/D,cAAc,EACd,OAAO,EACP,QAAQ,EACO,EAAE,EAAE;IACnB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACrD,MA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CAAC,SAAS,EAEf,IAAI,EAAE;wBACJ,KAAK,EAAE,WAAW;wBAClB,WAAW,EAAE,UAAU;qBACxB,GACD,GACG,EAEP,KAAC,gBAAgB,IACf,KAAK,EAAE,iBAAiB,EACxB,EAAE,EAAE,wBAAwB,EAC5B,WAAW,EAAE,WAAW,EACxB,YAAY,EAAC,WAAW,EACxB,UAAU,EAAE,KAAK,GACjB,IACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAsB,GAAG,EAAE;IAChE,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAEzD,MAAM,YAAY,GAAG,gBAAgB,CAAC;IAEtC,MAAM,aAAa,GAAG;QACpB,YAAY;QACZ,UAAU,EAAE,KAAC,kBAAkB,KAAG;QAClC,IAAI,EAAE,YAAY;KACnB,CAAC;IAEF,OAAO,CACL,KAAC,sBAAsB,IACrB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,GACxC,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n ChangeEvent,\n createContext,\n FunctionComponent,\n MouseEvent,\n useCallback,\n useContext,\n useState,\n useEffect,\n useMemo\n} from 'react';\n\nimport {\n AppShellDrawerContext,\n Banner,\n Button,\n Flex,\n Form,\n Input,\n Option,\n Select,\n MenuProps,\n menuHelpers,\n MenuItemProps,\n CheckboxGroup,\n Checkbox,\n ComboBox\n} from '@pega/cosmos-react-core';\nimport { type UserAvailabilityStatusOption, CTIPanel } from '@pega/cosmos-react-cs';\nimport ChatSettingsPanel from '@pega/cosmos-react-social/lib/components/Chat/ChatSettingsPanel';\nimport { UserAvailability } from '@pega/cosmos-react-social/lib/components/Chat/Chat.types';\nimport { AppshellEmailSummaryList, EmailSummaryList } from '@pega/cosmos-react-social';\nimport EmailNotificationPanel from '@pega/cosmos-react-social/lib/components/Email/EmailNotificationPanel';\n\nimport { emailSummaryItems } from '../../social/Email/Email.mocks';\nimport {\n CallControlPanelDemo,\n ExternalCTIDemo\n} from '../CallControlPanel/CallControlPanel.stories';\nimport { userStatusOptions } from '../CallControlPanel/CallControlPanel.mocks';\n\nexport type LoginError = string;\n\nexport interface LoginFormProps {\n ctiLinkOptions: { [key: string]: string };\n onLogin: (\n ctiLinkId: keyof LoginFormProps['ctiLinkOptions'],\n agentId: string,\n password: string\n ) => Promise<LoginError | undefined>;\n onCancel: () => void;\n}\n\nexport const CallLoginForm: FunctionComponent<LoginFormProps> = ({\n ctiLinkOptions,\n onLogin,\n onCancel\n}: LoginFormProps) => {\n const [agentId, setAgentId] = useState<string>('');\n const [password, setPassword] = useState<string>('');\n const [extension, setExtension] = useState<string>('');\n const [ctiLinkId, setCTILinkId] = useState<string>(Object.keys(ctiLinkOptions)[0]);\n const [errorMessage, setErrorMessage] = useState<string>();\n\n const canSubmit = agentId && password && ctiLinkId && extension;\n\n const actions = (\n <>\n <Button key='cancel' name='cancel' variant='secondary' onClick={onCancel}>\n Cancel\n </Button>\n <Button\n key='submit'\n name='submit'\n type='submit'\n variant='primary'\n disabled={!canSubmit}\n onClick={(e: MouseEvent) => {\n e.preventDefault();\n onLogin(ctiLinkId!, agentId, password).then(setErrorMessage);\n }}\n >\n Login\n </Button>\n </>\n );\n\n return (\n <Form\n actions={actions}\n banners={errorMessage ? <Banner variant='urgent' messages={[errorMessage]} /> : undefined}\n >\n <Select required label='CTI link' onChange={e => setCTILinkId(e.target.value)}>\n {Object.entries(ctiLinkOptions).map(([id, label]) => (\n <Option value={id}>{label}</Option>\n ))}\n </Select>\n <Input\n required\n label='Agent ID'\n value={agentId}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setAgentId(e.target.value)}\n />\n <Input\n type='password'\n required\n label='Password'\n value={password}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setPassword(e.target.value)}\n />\n <Input\n required\n label='Extension'\n value={extension}\n onChange={(e: ChangeEvent<HTMLInputElement>) => setExtension(e.target.value)}\n />\n </Form>\n );\n};\n\nexport const CTIControlPanelContext = createContext<{\n type: 'internal' | 'external';\n draggable?: boolean;\n applyAppStyling: boolean;\n}>({\n type: 'internal',\n draggable: true,\n applyAppStyling: false\n});\n\nexport const CTIControlPanel: FunctionComponent = () => {\n const [agentStatus, setAgentStatus] = useState<UserAvailabilityStatusOption>(\n userStatusOptions[0] as UserAvailabilityStatusOption\n );\n const [callPanelVisible, setCallPanelVisible] = useState(false);\n const { type, draggable, applyAppStyling } = useContext(CTIControlPanelContext);\n const { openDrawer, closeDrawer } = useContext(AppShellDrawerContext);\n\n const drawerView = (\n <Flex container={{ direction: 'column', gap: 2, pad: 2 }}>\n <CallLoginForm\n ctiLinkOptions={{\n valid: 'It will be accepted',\n invalid: 'This will raise an error'\n }}\n onLogin={ctiLink => {\n if (ctiLink === 'invalid') return Promise.resolve('Login incorrect');\n setAgentStatus(userStatusOptions[0]);\n setCallPanelVisible(true);\n closeDrawer();\n return Promise.resolve(undefined);\n }}\n onCancel={closeDrawer}\n />\n </Flex>\n );\n const drawerHeader = 'Pega Call Log In';\n\n return (\n <CTIPanel\n visible={callPanelVisible}\n status={agentStatus}\n onClick={() => {\n if (agentStatus.status === 'logout')\n openDrawer({\n drawerHeader,\n drawerView,\n name: drawerHeader\n });\n else setCallPanelVisible(prev => !prev);\n }}\n >\n {type === 'internal' ? (\n <CallControlPanelDemo\n heading='Agent'\n status={agentStatus.id}\n onStatusChange={status => {\n setAgentStatus(status);\n if (status.status === 'logout') setCallPanelVisible(false);\n }}\n isDraggable={draggable}\n showStatus\n visible={callPanelVisible}\n />\n ) : (\n <ExternalCTIDemo\n heading='External CTI'\n isDraggable={draggable}\n showStatus\n visible={callPanelVisible}\n applyAppStyling={applyAppStyling}\n />\n )}\n </CTIPanel>\n );\n};\n\nexport const AppShellMockData = {\n notifications: [\n {\n id: '123',\n primary:\n \"Dean Thomas mentioned your team in a bug 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345',\n visual: 'Dean Thomas',\n unread: true\n },\n {\n id: '456',\n primary: \"Seth DeAngelo mentioned your team in a bug 'Text variant h1 renders as h3 in DOM'.\",\n visual: 'Seth DeAngelo',\n secondary: 'BUG-12345',\n unread: true\n },\n {\n id: '789',\n primary:\n \"Janet Moore mentioned your team in a bug 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-12345',\n visual: 'Janet Moore',\n unread: true\n },\n {\n id: '000',\n primary: 'You have been awarded Employee of the Month! Congratulations!',\n secondary: '',\n visual: 'Cindy Turner',\n unread: true\n }\n ],\n recents: [\n {\n id: '123',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '456',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '789',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '111',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '222',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '333',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '444',\n primary: \"BUG-12345: 'Button does not initiate onClick event handler'.\",\n secondary: 'BUG-12345'\n },\n {\n id: '555',\n primary: \"BUG-54321: 'Text variant h1 renders as h3 in DOM'.\",\n secondary: 'BUG-00000'\n },\n {\n id: '666',\n primary:\n \"BUG-00000: 'Tree expanded state does not match the state that was set on the component'.\",\n secondary: 'BUG-00000'\n }\n ],\n 'Phone interaction': {\n caseId: 'Customer',\n heading: 'Ginger Ventura',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Gold'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Phone'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'Low'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'July 2018'\n },\n {\n id: '3',\n name: 'Address',\n value: '2213b Gormand street'\n }\n ]\n },\n 'Chat interaction': {\n caseId: 'Customer',\n heading: 'Sara Davis',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Silver'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Chat'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'High'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'March 2005'\n },\n {\n id: '3',\n name: 'Address',\n value: '340 River'\n }\n ]\n },\n 'Mail interaction': {\n caseId: 'Customer',\n heading: 'John Brown',\n primaryFields: [\n {\n id: '0',\n name: 'Lifetime value',\n value: 'Bronze'\n },\n {\n id: '1',\n name: 'Interaction type',\n value: 'Mail'\n },\n {\n id: '2',\n name: 'Churn risk',\n value: 'Medium'\n },\n {\n id: '3',\n name: 'Status',\n value: 'Open'\n }\n ],\n secondaryFields: [\n {\n id: '0',\n name: 'Status',\n value: 'Verified'\n },\n {\n id: '1',\n name: 'Web login',\n value: 'Today'\n },\n {\n id: '2',\n name: 'Customer since',\n value: 'March 1995'\n },\n {\n id: '3',\n name: 'Address',\n value: '340 River'\n }\n ]\n }\n};\n\nexport const statuses = [\n { id: 'available', primary: 'Available', selected: false },\n {\n id: 'temporarilyUnavailable',\n primary: 'Temporarily unavailable',\n items: [\n { id: 'quick_break', primary: 'Quick break', selected: false },\n { id: 'personal_work', primary: 'Personal work', selected: false },\n { id: 'in_a_meeting', primary: 'In a meeting', selected: false }\n ]\n },\n { id: 'unavailable', primary: 'Unavailable', selected: false }\n];\n\nexport const ChatSettingsPanelMock: FunctionComponent = () => {\n const { openDrawer, closeDrawer } = useContext(AppShellDrawerContext);\n\n const [chatAlias, setChatAlias] = useState('');\n const [queues, setQueues] = useState<{ id: string; checked: boolean }[]>([\n { id: 'Billing', checked: false },\n { id: 'General', checked: false },\n { id: 'Technical', checked: false }\n ]);\n\n const [items, setItems] = useState<MenuProps['items']>((): MenuProps['items'] => {\n return menuHelpers.mapTree(statuses, item => ({\n ...item,\n selected: item.items ? undefined : !!item.selected\n }));\n });\n\n const selected = useMemo(() => menuHelpers.getSelected(items)[0], [items]);\n\n const selectItem = useCallback((id: MenuItemProps['id']) => {\n setItems(cur => menuHelpers.selectItem(cur, id, 'single-select'));\n }, []);\n\n const formActions = (\n <>\n <Button name='Cancel' variant='secondary' onClick={closeDrawer}>\n Cancel\n </Button>\n <Button name='Submit' variant='primary' onClick={closeDrawer}>\n Submit\n </Button>\n </>\n );\n\n const chatSettings = useMemo(\n () => (\n <Flex container={{ direction: 'column', gap: 2, pad: 2 }} item={{ grow: 1 }}>\n <Form actions={formActions}>\n <Flex container={{ direction: 'column', pad: 0.5 }}>\n <Input\n label='Chat alias'\n value={chatAlias}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n setChatAlias(e.target.value);\n }}\n />\n </Flex>\n <Flex container={{ direction: 'column', pad: 1 }}>\n <CheckboxGroup label='Joined queues' name='queueslist' labelHidden={false}>\n {queues.map(({ id, checked }) => (\n <Checkbox\n label={id}\n id={id}\n name={id}\n checked={checked}\n onChange={e =>\n setQueues(\n queues.map(queue => {\n if (queue.id === id) {\n return {\n ...queue,\n checked: e.target.checked\n };\n }\n return queue;\n })\n )\n }\n />\n ))}\n </CheckboxGroup>\n </Flex>\n <Flex container={{ direction: 'column', pad: 0.5 }}>\n <ComboBox\n label='Status'\n mode='single-select'\n required\n selected={\n selected\n ? {\n items: {\n id: selected?.id,\n text: selected?.primary\n }\n }\n : undefined\n }\n menu={{\n items,\n variant: 'drill-down',\n onItemClick: selectItem\n }}\n />\n </Flex>\n </Form>\n </Flex>\n ),\n [items]\n );\n\n const drawerHeader = 'Chat settings';\n\n const drawerContent = {\n drawerHeader,\n drawerView: chatSettings,\n name: drawerHeader\n };\n\n useEffect(() => {\n if (selected) openDrawer(drawerContent);\n }, [selected]);\n\n return (\n <ChatSettingsPanel\n label={drawerHeader}\n status={\n menuHelpers.getParentItem(items, selected?.id)?.id === 'temporarilyUnavailable'\n ? (menuHelpers.getParentItem(items, selected?.id)?.id as UserAvailability)\n : (selected?.id as UserAvailability)\n }\n onClick={() => openDrawer(drawerContent)}\n />\n );\n};\n\nconst EmailNotifications = () => {\n const { closeDrawer } = useContext(AppShellDrawerContext);\n\n const [sortOptions, setSortOptions] = useState<MenuItemProps[]>([\n { id: 'Most recent', primary: 'Most recent', selected: true },\n { id: 'Most urgent', primary: 'Most urgent', selected: false },\n { id: 'All unread', primary: 'All unread', selected: false }\n ]);\n\n const selected = menuHelpers.getSelected(sortOptions)[0];\n\n const selectItem = (id: MenuItemProps['id']) => {\n setSortOptions(cur => menuHelpers.selectItem(cur, id, 'single-select') as MenuItemProps[]);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }} item={{ grow: 1 }}>\n <Flex container={{ justify: 'center', pad: [1, 0, 0] }}>\n <Button onClick={closeDrawer}>Get next email</Button>\n </Flex>\n <Flex container={{ direction: 'column', pad: [0, 2] }}>\n <ComboBox\n label='Sorted by'\n mode='single-select'\n selected={\n selected\n ? {\n items: {\n id: selected?.id,\n text: selected?.primary\n }\n }\n : undefined\n }\n menu={{\n items: sortOptions,\n onItemClick: selectItem\n }}\n />\n </Flex>\n\n <EmailSummaryList\n items={emailSummaryItems}\n as={AppshellEmailSummaryList}\n onItemClick={closeDrawer}\n emptyMessage='No emails'\n selectable={false}\n />\n </Flex>\n );\n};\n\nexport const EmailNotificationPanelMock: FunctionComponent = () => {\n const { openDrawer } = useContext(AppShellDrawerContext);\n\n const drawerHeader = 'My open emails';\n\n const drawerContent = {\n drawerHeader,\n drawerView: <EmailNotifications />,\n name: drawerHeader\n };\n\n return (\n <EmailNotificationPanel\n count={15}\n label={drawerHeader}\n onClick={() => openDrawer(drawerContent)}\n />\n );\n};\n"]}
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { InteractionTimerStoryProps } from '../InteractionTimer/InteractionTimer.stories';
3
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { InteractionTimerStoryProps } from '../InteractionTimer/InteractionTimer.stories';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface CSAppShellProps {
6
6
  isDraggable?: boolean;
@@ -9,5 +9,5 @@ interface CSAppShellProps {
9
9
  ctiPanel: 'internal' | 'external';
10
10
  applyThemeToExternalCTI: boolean;
11
11
  }
12
- export declare const CSAppShell: Story<CSAppShellProps>;
12
+ export declare const CSAppShell: StoryFn<CSAppShellProps>;
13
13
  //# sourceMappingURL=CSAppShell.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CSAppShell.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/CSAppShell/CSAppShell.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAY/C,OAAO,EAEL,0BAA0B,EAC3B,MAAM,8CAA8C,CAAC;;AAYtD,wBAmBU;AAEV,UAAU,eAAe;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2BAA2B,CAAC,EAAE,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAC7E,SAAS,CAAC,EAAE,0BAA0B,CAAC,WAAW,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAClC,uBAAuB,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,eAAe,CAwL7C,CAAC"}
1
+ {"version":3,"file":"CSAppShell.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/CSAppShell/CSAppShell.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AActD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;;AAY/F,wBAmBU;AAEV,UAAU,eAAe;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2BAA2B,CAAC,EAAE,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAC7E,SAAS,CAAC,EAAE,0BAA0B,CAAC,WAAW,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC;IAClC,uBAAuB,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,eAAe,CA4L/C,CAAC"}
@@ -58,11 +58,11 @@ export const CSAppShell = (args) => {
58
58
  }
59
59
  else if (name === 'Chat interaction') {
60
60
  persistentUtilityContent = {
61
- content: _jsx(StandardChat, { chatWidth: '100%' }),
61
+ content: _jsx(StandardChat, { chatHeight: '100%', chatWidth: '100%' }),
62
62
  title: 'Chat'
63
63
  };
64
64
  }
65
- setMainContent(_jsx(CaseViewMock, { stages: false, tasks: _jsx(TaskManagerDemo, { verbatimStatus: 'pending' }), persistentUtility: persistentUtilityContent, heading: heading }));
65
+ setMainContent(_jsx(CaseViewMock, { caseId: 'C-123', stages: false, tasks: _jsx(TaskManagerDemo, { verbatimStatus: 'pending' }), persistentUtility: persistentUtilityContent, heading: heading }));
66
66
  }
67
67
  };
68
68
  const setActiveItem = (key) => {
@@ -84,8 +84,9 @@ export const CSAppShell = (args) => {
84
84
  const { primary, secondary, icon, customerName } = createLink;
85
85
  const key = createUID();
86
86
  const createdAt = new Date().getTime();
87
+ const interactionTimerId = createUID();
87
88
  const newCase = {
88
- visual: (_jsx(InteractionTimerStory, { icon: icon, showTimer: args.enableSla, hasNotifications: args.hasInteractionNotifications, meta: args.enableSla ? '0:00' : createLink.meta, interactionType: primary })),
89
+ visual: (_jsx(InteractionTimerStory, { id: interactionTimerId, icon: icon, showTimer: args.enableSla, hasNotifications: args.hasInteractionNotifications, meta: args.enableSla ? '0:00' : createLink.meta, interactionType: primary })),
89
90
  primary: customerName || 'Unknown customer',
90
91
  secondary,
91
92
  createdAt,
@@ -100,7 +101,8 @@ export const CSAppShell = (args) => {
100
101
  e.stopPropagation();
101
102
  setCases((prevCases = []) => prevCases.filter(caseItem => caseItem.id !== key));
102
103
  setMainContent(home);
103
- }
104
+ },
105
+ 'aria-labelledby': interactionTimerId
104
106
  };
105
107
  setCases((prevCases = []) => [...prevCases, newCase]);
106
108
  setActiveItem(key);
@@ -1 +1 @@
1
- {"version":3,"file":"CSAppShell.stories.js","sourceRoot":"","sources":["../../../src/cs/CSAppShell/CSAppShell.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAiB,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,KAAK,aAAa,MAAM,mEAAmE,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OA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\nimport { AppShellProps, createUID, TwoColumnPage, registerIcon } from '@pega/cosmos-react-core';\nimport * as chatSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/chat-solid.icon';\n\nimport { CaseViewMock } from '../../work/CaseView/CaseView.mocks';\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\nimport { TasksDemo } from '../../work/Tasks/Tasks.stories';\nimport { FeedDemo } from '../../social/Feed/Feed.stories';\nimport { EmailShellDemo } from '../../social/Email/Email.stories';\nimport { StandardChat } from '../../social/Chat/Chat.stories';\nimport { TaskManagerDemo } from '../TaskManager/TaskManager.stories';\nimport {\n InteractionTimerDemo as InteractionTimerStory,\n InteractionTimerStoryProps\n} from '../InteractionTimer/InteractionTimer.stories';\n\nimport {\n AppShellMockData,\n ChatSettingsPanelMock,\n CTIControlPanel,\n CTIControlPanelContext,\n EmailNotificationPanelMock\n} from './CSAppShell.mocks';\n\nregisterIcon(chatSolidIcon);\n\nexport default {\n title: 'Customer Service/CS App Shell',\n parameters: {\n layout: 'fullscreen'\n },\n args: {\n isDraggable: true,\n hasInteractionNotifications: true,\n enableSla: true,\n ctiPanel: 'internal',\n applyThemeToExternalCTI: false\n },\n argTypes: {\n isDraggable: { control: { type: 'boolean' } },\n hasInteractionNotifications: { control: { type: 'boolean' } },\n enableSla: { control: { type: 'boolean' } },\n ctiPanel: { options: ['internal', 'external'], control: { type: 'inline-radio' } },\n applyThemeToExternalCTI: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface CSAppShellProps {\n isDraggable?: boolean;\n hasInteractionNotifications?: InteractionTimerStoryProps['hasNotifications'];\n enableSla?: InteractionTimerStoryProps['showTimer'];\n ctiPanel: 'internal' | 'external';\n applyThemeToExternalCTI: boolean;\n}\n\nexport const CSAppShell: Story<CSAppShellProps> = (args: CSAppShellProps) => {\n const CaseData = AppShellMockData as any;\n\n const home = <TwoColumnPage a={<FeedDemo />} b={<TasksDemo />} title='Welcome, Sara Davis' />;\n\n const [mainContent, setMainContent] = useState(home);\n const [caseID, setCaseID] = useState(1001);\n const [cases, setCases] = useState<AppShellProps['cases']>([]);\n const [links, setLinks] = useState<AppShellProps['links']>([\n {\n id: '01',\n name: 'Home',\n href: '#home',\n icon: 'home-solid'\n }\n ]);\n\n const renderCaseView = (name: string) => {\n if (name) {\n const { heading } = CaseData[name];\n\n let persistentUtilityContent;\n if (name === 'Mail interaction') {\n persistentUtilityContent = {\n content: <EmailShellDemo hideSuggestions />,\n title: 'Email'\n };\n } else if (name === 'Chat interaction') {\n persistentUtilityContent = {\n content: <StandardChat chatWidth='100%' />,\n title: 'Chat'\n };\n }\n setMainContent(\n <CaseViewMock\n stages={false}\n tasks={<TaskManagerDemo verbatimStatus='pending' />}\n persistentUtility={persistentUtilityContent}\n heading={heading}\n />\n );\n }\n };\n\n const setActiveItem = (key: string) => {\n setCases((prevCases = []) => {\n return prevCases.map(caseItem => {\n return { ...caseItem, active: caseItem.id === key };\n });\n });\n setLinks((prevLinks = []) => {\n return prevLinks.map(link => {\n return {\n ...link,\n active: link.name === key\n };\n });\n });\n };\n\n const createInteraction = (createLink: {\n primary: string;\n secondary?: string;\n icon: string;\n meta: string;\n customerName?: string;\n }) => {\n const { primary, secondary, icon, customerName } = createLink;\n const key: string = createUID();\n const createdAt = new Date().getTime();\n const newCase = {\n visual: (\n <InteractionTimerStory\n icon={icon}\n showTimer={args.enableSla}\n hasNotifications={args.hasInteractionNotifications}\n meta={args.enableSla ? '0:00' : createLink.meta}\n interactionType={primary}\n />\n ),\n primary: customerName || 'Unknown customer',\n secondary,\n createdAt,\n id: key,\n active: true,\n onClick: () => {\n setActiveItem(key);\n renderCaseView(primary);\n },\n onDismiss: (e: any) => {\n setActiveItem('Home');\n e.stopPropagation();\n setCases((prevCases = []) => prevCases.filter(caseItem => caseItem.id !== key));\n setMainContent(home);\n }\n };\n setCases((prevCases = []) => [...prevCases, newCase]);\n setActiveItem(key);\n setCaseID(caseID + 1);\n renderCaseView(primary);\n };\n\n const createLinks = [\n {\n primary: 'Phone interaction',\n secondary: 'Received 20s ago',\n icon: 'phone-solid',\n meta: 'FH',\n customerName: 'Ginger Ventura'\n },\n {\n primary: 'Chat interaction',\n secondary: 'Sent 2h ago',\n icon: 'chat-solid',\n meta: 'SC',\n customerName: 'Sara Davis'\n },\n {\n primary: 'Mail interaction',\n secondary: 'Received 20s ago',\n icon: 'mail-solid',\n meta: 'JB',\n customerName: 'John Brown'\n }\n ].map(item => {\n const { primary, icon } = item;\n return {\n name: primary,\n icon,\n href: '',\n onClick: () => {\n createInteraction(item);\n }\n };\n });\n\n useEffect(() => {\n createInteraction({\n primary: 'Phone interaction',\n secondary: 'Received 20s ago',\n icon: 'phone-solid',\n meta: 'GV',\n customerName: 'Ginger Ventura'\n });\n }, []);\n\n const utils = [<EmailNotificationPanelMock />, <ChatSettingsPanelMock />, <CTIControlPanel />];\n\n const appInfo = {\n href: 'https://www.pega.com/',\n imageSrc:\n 'https://www.clipartmax.com/png/middle/345-3454195_account-executive-civilian-pega-logo-png.png',\n fullImageSrc: 'Full Image Source',\n appName: 'CS AppShell'\n };\n\n return (\n <CTIControlPanelContext.Provider\n value={useMemo(\n () => ({\n type: args.ctiPanel,\n draggable: args.isDraggable,\n applyAppStyling: args.applyThemeToExternalCTI\n }),\n [args.isDraggable, args.applyThemeToExternalCTI, args.ctiPanel]\n )}\n >\n <AppShellDemo\n main={mainContent}\n appInfo={appInfo}\n cases={cases}\n createLinks={createLinks}\n caseLinks={links}\n utils={utils}\n onLinkClick={(name: string) => {\n if (name === 'Home') {\n setMainContent(home);\n }\n setActiveItem(name);\n }}\n collapsedHoverMenus\n />\n </CTIControlPanelContext.Provider>\n );\n};\n"]}
1
+ {"version":3,"file":"CSAppShell.stories.js","sourceRoot":"","sources":["../../../src/cs/CSAppShell/CSAppShell.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,SAA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AAI,CAAC,WAAW;YAC3B,eAAe,EAAE,IAAI,CAAC,uBAAuB;SAC9C,CAAC,EACF,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAChE,YAED,KAAC,YAAY,IACX,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,CAAC,IAAY,EAAE,EAAE;gBAC5B,IAAI,IAAI,KAAK,MAAM,EAAE;oBACnB,cAAc,CAAC,IAAI,CAAC,CAAC;iBACtB;gBACD,aAAa,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC,EACD,mBAAmB,SACnB,GAC8B,CACnC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useEffect, useState, useMemo } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { createUID, TwoColumnPage, registerIcon } from '@pega/cosmos-react-core';\nimport type { AppShellProps } from '@pega/cosmos-react-core';\nimport * as chatSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/chat-solid.icon';\n\nimport { CaseViewMock } from '../../work/CaseView/CaseView.mocks';\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\nimport { TasksDemo } from '../../work/Tasks/Tasks.stories';\nimport { FeedDemo } from '../../social/Feed/Feed.stories';\nimport { EmailShellDemo } from '../../social/Email/Email.stories';\nimport { StandardChat } from '../../social/Chat/Chat.stories';\nimport { TaskManagerDemo } from '../TaskManager/TaskManager.stories';\nimport { InteractionTimerDemo as InteractionTimerStory } from '../InteractionTimer/InteractionTimer.stories';\nimport type { InteractionTimerStoryProps } from '../InteractionTimer/InteractionTimer.stories';\n\nimport {\n AppShellMockData,\n ChatSettingsPanelMock,\n CTIControlPanel,\n CTIControlPanelContext,\n EmailNotificationPanelMock\n} from './CSAppShell.mocks';\n\nregisterIcon(chatSolidIcon);\n\nexport default {\n title: 'Customer Service/CS App Shell',\n parameters: {\n layout: 'fullscreen'\n },\n args: {\n isDraggable: true,\n hasInteractionNotifications: true,\n enableSla: true,\n ctiPanel: 'internal',\n applyThemeToExternalCTI: false\n },\n argTypes: {\n isDraggable: { control: { type: 'boolean' } },\n hasInteractionNotifications: { control: { type: 'boolean' } },\n enableSla: { control: { type: 'boolean' } },\n ctiPanel: { options: ['internal', 'external'], control: { type: 'inline-radio' } },\n applyThemeToExternalCTI: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface CSAppShellProps {\n isDraggable?: boolean;\n hasInteractionNotifications?: InteractionTimerStoryProps['hasNotifications'];\n enableSla?: InteractionTimerStoryProps['showTimer'];\n ctiPanel: 'internal' | 'external';\n applyThemeToExternalCTI: boolean;\n}\n\nexport const CSAppShell: StoryFn<CSAppShellProps> = (args: CSAppShellProps) => {\n const CaseData = AppShellMockData as any;\n\n const home = <TwoColumnPage a={<FeedDemo />} b={<TasksDemo />} title='Welcome, Sara Davis' />;\n\n const [mainContent, setMainContent] = useState(home);\n const [caseID, setCaseID] = useState(1001);\n const [cases, setCases] = useState<AppShellProps['cases']>([]);\n const [links, setLinks] = useState<AppShellProps['links']>([\n {\n id: '01',\n name: 'Home',\n href: '#home',\n icon: 'home-solid'\n }\n ]);\n\n const renderCaseView = (name: string) => {\n if (name) {\n const { heading } = CaseData[name];\n\n let persistentUtilityContent;\n if (name === 'Mail interaction') {\n persistentUtilityContent = {\n content: <EmailShellDemo hideSuggestions />,\n title: 'Email'\n };\n } else if (name === 'Chat interaction') {\n persistentUtilityContent = {\n content: <StandardChat chatHeight='100%' chatWidth='100%' />,\n title: 'Chat'\n };\n }\n setMainContent(\n <CaseViewMock\n caseId='C-123'\n stages={false}\n tasks={<TaskManagerDemo verbatimStatus='pending' />}\n persistentUtility={persistentUtilityContent}\n heading={heading}\n />\n );\n }\n };\n\n const setActiveItem = (key: string) => {\n setCases((prevCases = []) => {\n return prevCases.map(caseItem => {\n return { ...caseItem, active: caseItem.id === key };\n });\n });\n setLinks((prevLinks = []) => {\n return prevLinks.map(link => {\n return {\n ...link,\n active: link.name === key\n };\n });\n });\n };\n\n const createInteraction = (createLink: {\n primary: string;\n secondary?: string;\n icon: string;\n meta: string;\n customerName?: string;\n }) => {\n const { primary, secondary, icon, customerName } = createLink;\n const key: string = createUID();\n const createdAt = new Date().getTime();\n const interactionTimerId = createUID();\n const newCase = {\n visual: (\n <InteractionTimerStory\n id={interactionTimerId}\n icon={icon}\n showTimer={args.enableSla}\n hasNotifications={args.hasInteractionNotifications}\n meta={args.enableSla ? '0:00' : createLink.meta}\n interactionType={primary}\n />\n ),\n primary: customerName || 'Unknown customer',\n secondary,\n createdAt,\n id: key,\n active: true,\n onClick: () => {\n setActiveItem(key);\n renderCaseView(primary);\n },\n onDismiss: (e: any) => {\n setActiveItem('Home');\n e.stopPropagation();\n setCases((prevCases = []) => prevCases.filter(caseItem => caseItem.id !== key));\n setMainContent(home);\n },\n 'aria-labelledby': interactionTimerId\n };\n setCases((prevCases = []) => [...prevCases, newCase]);\n setActiveItem(key);\n setCaseID(caseID + 1);\n renderCaseView(primary);\n };\n\n const createLinks = [\n {\n primary: 'Phone interaction',\n secondary: 'Received 20s ago',\n icon: 'phone-solid',\n meta: 'FH',\n customerName: 'Ginger Ventura'\n },\n {\n primary: 'Chat interaction',\n secondary: 'Sent 2h ago',\n icon: 'chat-solid',\n meta: 'SC',\n customerName: 'Sara Davis'\n },\n {\n primary: 'Mail interaction',\n secondary: 'Received 20s ago',\n icon: 'mail-solid',\n meta: 'JB',\n customerName: 'John Brown'\n }\n ].map(item => {\n const { primary, icon } = item;\n return {\n name: primary,\n icon,\n href: '',\n onClick: () => {\n createInteraction(item);\n }\n };\n });\n\n useEffect(() => {\n createInteraction({\n primary: 'Phone interaction',\n secondary: 'Received 20s ago',\n icon: 'phone-solid',\n meta: 'GV',\n customerName: 'Ginger Ventura'\n });\n }, []);\n\n const utils = [<EmailNotificationPanelMock />, <ChatSettingsPanelMock />, <CTIControlPanel />];\n\n const appInfo = {\n href: 'https://www.pega.com/',\n imageSrc:\n 'https://www.clipartmax.com/png/middle/345-3454195_account-executive-civilian-pega-logo-png.png',\n fullImageSrc: 'Full Image Source',\n appName: 'CS AppShell'\n };\n\n return (\n <CTIControlPanelContext.Provider\n value={useMemo(\n () => ({\n type: args.ctiPanel,\n draggable: args.isDraggable,\n applyAppStyling: args.applyThemeToExternalCTI\n }),\n [args.isDraggable, args.applyThemeToExternalCTI, args.ctiPanel]\n )}\n >\n <AppShellDemo\n main={mainContent}\n appInfo={appInfo}\n cases={cases}\n createLinks={createLinks}\n caseLinks={links}\n utils={utils}\n onLinkClick={(name: string) => {\n if (name === 'Home') {\n setMainContent(home);\n }\n setActiveItem(name);\n }}\n collapsedHoverMenus\n />\n </CTIControlPanelContext.Provider>\n );\n};\n"]}
@@ -14,8 +14,8 @@ export declare const interactionOptions: {
14
14
  label: string;
15
15
  }[];
16
16
  export declare const userStatusOptions: UserAvailabilityStatusOption[];
17
- declare type StyleVariableName = '--app-bg-color' | '--header-border-color' | '--text-color' | '--msg-border-radius' | '--msg-you-bg-color' | '--msg-you-text-color' | '--msg-me-bg-color' | '--msg-me-text-color' | '--input-height' | '--input-background-color' | '--input-border-color' | '--input-border-width' | '--input-border-radius' | '--input-focus-border-color' | '--input-focus-box-shadow' | '--input-text-color' | '--button-text-color' | '--button-height' | '--button-bg-color' | '--button-border-color' | '--button-border-radius' | '--button-hover-bg-color' | '--footer-bg-color';
18
- export declare type ExternalStyles = Partial<Record<StyleVariableName, string>>;
17
+ type StyleVariableName = '--app-bg-color' | '--header-border-color' | '--text-color' | '--msg-border-radius' | '--msg-you-bg-color' | '--msg-you-text-color' | '--msg-me-bg-color' | '--msg-me-text-color' | '--input-height' | '--input-background-color' | '--input-border-color' | '--input-border-width' | '--input-border-radius' | '--input-focus-border-color' | '--input-focus-box-shadow' | '--input-text-color' | '--button-text-color' | '--button-height' | '--button-bg-color' | '--button-border-color' | '--button-border-radius' | '--button-hover-bg-color' | '--footer-bg-color';
18
+ export type ExternalStyles = Partial<Record<StyleVariableName, string>>;
19
19
  export declare const createExternalIframeContent: (styles?: ExternalStyles | undefined) => string;
20
20
  export {};
21
21
  //# sourceMappingURL=CallControlPanel.mocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CallControlPanel.mocks.d.ts","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E,eAAO,MAAM,YAAY;;;;;GAmExB,CAAC;AAEF,eAAO,MAAM,eAAe;;;GAa3B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;GAa9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,4BAA4B,EA4B3D,CAAC;AAEF,aAAK,iBAAiB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,cAAc,GACd,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,gBAAgB,GAChB,0BAA0B,GAC1B,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,4BAA4B,GAC5B,0BAA0B,GAC1B,oBAAoB,GACpB,qBAAqB,GACrB,iBAAiB,GACjB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,CAAC;AAExB,oBAAY,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE,eAAO,MAAM,2BAA2B,YAAY,cAAc,GAAG,SAAS,WA6H7E,CAAC"}
1
+ {"version":3,"file":"CallControlPanel.mocks.d.ts","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E,eAAO,MAAM,YAAY;;;;;GAmExB,CAAC;AAEF,eAAO,MAAM,eAAe;;;GAa3B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;GAa9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,4BAA4B,EA4B3D,CAAC;AAEF,KAAK,iBAAiB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,cAAc,GACd,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,gBAAgB,GAChB,0BAA0B,GAC1B,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,4BAA4B,GAC5B,0BAA0B,GAC1B,oBAAoB,GACpB,qBAAqB,GACrB,iBAAiB,GACjB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,CAAC;AAExB,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE,eAAO,MAAM,2BAA2B,YAAY,cAAc,GAAG,SAAS,WA6H7E,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { UserAvailabilityStatusOption, CallControlPanelProps } from '@pega/cosmos-react-cs';
3
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { UserAvailabilityStatusOption, CallControlPanelProps } from '@pega/cosmos-react-cs';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface CallControlPanelStoryProps {
6
6
  heading: string;
@@ -10,8 +10,8 @@ interface CallControlPanelStoryProps {
10
10
  onStatusChange?: (newStatus: UserAvailabilityStatusOption) => void;
11
11
  visible?: CallControlPanelProps['visible'];
12
12
  }
13
- export declare const CallControlPanelDemo: Story<CallControlPanelStoryProps>;
14
- export declare const ExternalCTIDemo: Story<CallControlPanelStoryProps & {
13
+ export declare const CallControlPanelDemo: StoryFn<CallControlPanelStoryProps>;
14
+ export declare const ExternalCTIDemo: StoryFn<CallControlPanelStoryProps & {
15
15
  applyAppStyling: boolean;
16
16
  }>;
17
17
  //# sourceMappingURL=CallControlPanel.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CallControlPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAOL,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;;AAW/B,wBAaU;AAEV,UAAU,0BAA0B;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,4BAA4B,CAAC,IAAI,CAAC,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACnE,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;CAC5C;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,0BAA0B,CAiRlE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,0BAA0B,GAAG;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,CAuE5F,CAAC"}
1
+ {"version":3,"file":"CallControlPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKtD,OAAO,KAAK,EAKV,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;;AAW/B,wBAaU;AAEV,UAAU,0BAA0B;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,4BAA4B,CAAC,IAAI,CAAC,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACnE,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;CAC5C;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,0BAA0B,CAkRpE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,0BAA0B,GAAG;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,CAuE9F,CAAC"}
@@ -230,6 +230,7 @@ export const CallControlPanelDemo = (args) => {
230
230
  onConsultAction,
231
231
  onConferenceAction,
232
232
  transferOptions: transferReasons,
233
+ defaultTransfer: transferReasons[1].id,
233
234
  interactionOptions,
234
235
  onTransferAction: (id, data) => {
235
236
  action('onTransferAction')(id, data);
@@ -1 +1 @@
1
- {"version":3,"file":"CallControlPanel.stories.js","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,WAAW,EAOZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,YAAY,EACZ,2BAA2B,EAE3B,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAElC,eAAe;IACb,KAAK,EAAE,mCAAmC;IAC1C,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AS,EAAE,EAAE;CAClD,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { useEffect, useRef, useState } from 'react';\nimport { Meta, Story } from '@storybook/react';\nimport { lighten, readableColor } from 'polished';\n\nimport { createUID, tryCatch, useTheme } from '@pega/cosmos-react-core';\nimport {\n CallControlPanel,\n ExternalCTI,\n CallProps,\n IncomingCallProps,\n CallParticipant,\n TransferData,\n UserAvailabilityStatusOption,\n CallControlPanelProps\n} from '@pega/cosmos-react-cs';\n\nimport {\n contactsList,\n createExternalIframeContent,\n ExternalStyles,\n interactionOptions,\n transferReasons,\n userStatusOptions\n} from './CallControlPanel.mocks';\n\nexport default {\n title: 'Customer Service/CallControlPanel',\n component: CallControlPanel,\n args: {\n heading: 'Agent',\n isDraggable: true,\n showStatus: true\n },\n argTypes: {\n heading: { control: { type: 'text' } },\n isDraggable: { control: { type: 'boolean' } },\n showStatus: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface CallControlPanelStoryProps {\n heading: string;\n isDraggable?: boolean;\n showStatus: boolean;\n status?: UserAvailabilityStatusOption['id'];\n onStatusChange?: (newStatus: UserAvailabilityStatusOption) => void;\n visible?: CallControlPanelProps['visible'];\n}\n\nexport const CallControlPanelDemo: Story<CallControlPanelStoryProps> = (\n args: CallControlPanelStoryProps\n) => {\n const [currentStatus, setCurrentStatus] = useState<UserAvailabilityStatusOption['id']>(\n args.status || 'available'\n );\n const inStatusSince = useRef(Date.now());\n const [calls, setCalls] = useState<(CallProps | IncomingCallProps)[]>([]);\n\n const [contacts, setContacts] = useState(contactsList);\n const callsList = useRef(calls);\n callsList.current = calls;\n\n const [showInteractionTransfer, setShowInteractionTransfer] = useState(false);\n\n const onMuteToggle = (id: CallProps['id']) => {\n const thisCallIndex = callsList.current.findIndex(call => call.id === id);\n if (thisCallIndex < 0) return;\n const thisCall = callsList.current[thisCallIndex];\n callsList.current.splice(thisCallIndex, 1, {\n ...thisCall,\n muted: !(thisCall as CallProps).muted\n });\n setCalls([...callsList.current]);\n };\n\n const onMergeCall = (id: CallProps['id']) => {\n const thisCall = callsList.current.find(call => call.id === id) as CallProps;\n const activeCallIndex = callsList.current.findIndex(call => !(call as CallProps).onHoldSince);\n const currentCall = callsList.current[activeCallIndex] as CallProps;\n\n if (!thisCall || !activeCallIndex) return;\n callsList.current.splice(activeCallIndex, 1, {\n ...currentCall,\n participants: [...currentCall.participants, ...thisCall.participants],\n onHoldSince: undefined\n });\n setCalls([...callsList.current.filter(call => call.id !== id)]);\n };\n\n const onHandOffCall = (id: CallProps['id']) => {\n setCalls([\n ...callsList.current.filter(call => call.id !== id && (call as CallProps).onHoldSince)\n ]);\n };\n\n const onPauseToggle = (id: CallProps['id']) => {\n const thisCall = callsList.current.find(call => call.id === id);\n if (!thisCall) return;\n const wasPaused = !!(thisCall as CallProps).onHoldSince;\n callsList.current = callsList.current.map(call => {\n if (thisCall.id === call.id)\n return {\n ...call,\n onHoldSince: wasPaused ? undefined : Date.now(),\n onMergeCall: wasPaused ? onMergeCall : undefined,\n onHandOffCall: wasPaused ? onHandOffCall : undefined\n };\n return {\n ...call,\n onPauseToggle: wasPaused ? undefined : onPauseToggle,\n onMergeCall: wasPaused ? onMergeCall : undefined,\n onHandOffCall: wasPaused ? onHandOffCall : undefined\n };\n });\n setCalls([...callsList.current]);\n };\n\n const onEndCall = (id: CallProps['id']) => {\n setCalls(callsList.current.filter(item => item.id !== id));\n setCurrentStatus('available');\n };\n\n const onHangUp = (callId: CallProps['id'], participantId: CallParticipant['id']) => {\n const currentCallIndex = callsList.current.findIndex(call => call.id === callId);\n if (currentCallIndex < 0) return;\n const currentCall = callsList.current[currentCallIndex] as CallProps;\n callsList.current.splice(currentCallIndex, 1, {\n ...currentCall,\n participants: [\n ...currentCall.participants.filter(participant => participant.id !== participantId)\n ]\n });\n setCalls([...callsList.current]);\n };\n\n const onConferenceAction = (id: CallProps['id'], data: TransferData) => {\n const caller = contactsList.find(person => person.phoneNumber === data.phoneNumber);\n const conferenceCall: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n onMergeCall,\n transferOptions: transferReasons,\n interactionOptions,\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onHandOffCall,\n onEndCall,\n participants: [\n {\n name: caller?.primary || '',\n info: caller?.secondary || '',\n id: caller?.primary || '',\n onHangUp\n }\n ]\n };\n\n const currentCall = callsList.current[0] as CallProps;\n callsList.current.splice(0, 1, {\n ...callsList.current[0],\n participants: [...currentCall.participants, ...conferenceCall.participants],\n onHoldSince: undefined\n });\n setCalls([...callsList.current.filter(call => call.id !== conferenceCall.id)]);\n };\n\n const onConsultAction = (id: CallProps['id'], data: TransferData) => {\n const caller = contactsList.find(person => person.phoneNumber === data.phoneNumber);\n const consultCall: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n transferOptions: transferReasons,\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onMergeCall,\n onHandOffCall,\n onDTMFPress: action('onDTMFPress'),\n onTransferAction: (callId, transferData) => {\n action('onTransferAction')(callId, transferData);\n if (transferData.interaction) setShowInteractionTransfer(true);\n onEndCall(id);\n },\n onConsultAction,\n onConferenceAction,\n onEndCall,\n participants: [\n {\n name: caller?.primary || '',\n info: caller?.secondary || '',\n id: caller?.primary || '',\n onHangUp\n }\n ]\n };\n\n const updatedCalls: (CallProps | IncomingCallProps)[] = callsList.current.map(call => {\n return { ...call, onHoldSince: Date.now(), onMergeCall, onPauseToggle: undefined };\n });\n updatedCalls.push(consultCall);\n setCalls(updatedCalls);\n };\n\n useEffect(() => {\n const timeoutId = setTimeout(() => {\n const caller = contactsList[0];\n const consultCall: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n transferOptions: transferReasons,\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onMergeCall,\n onHandOffCall,\n onDTMFPress: action('onDTMFPress'),\n onTransferAction: (callId, transferData) => {\n action('onTransferAction')(callId, transferData);\n if (transferData.interaction) setShowInteractionTransfer(true);\n onEndCall(callId);\n },\n onConsultAction,\n onConferenceAction,\n onEndCall,\n participants: [\n {\n name: caller?.primary || '',\n info: caller?.secondary || '',\n id: caller?.primary || '',\n onHangUp\n }\n ]\n };\n\n const incomingCall: IncomingCallProps = {\n id: createUID(),\n onAcceptCall: () => {\n setCalls([consultCall]);\n },\n participant: {\n name: contactsList[0].primary,\n info: contactsList[0].secondary,\n id: contactsList[0].primary\n }\n };\n setCalls([incomingCall, ...callsList.current]);\n }, 4000);\n return () => clearTimeout(timeoutId);\n }, []);\n\n return (\n <CallControlPanel\n visible={args.visible ?? true}\n heading={args.heading}\n userStatus={\n args.showStatus\n ? {\n statusOptions: userStatusOptions,\n status: currentStatus,\n inStatusSince: inStatusSince.current,\n onChange: value => {\n setCurrentStatus(value);\n args.onStatusChange?.(\n userStatusOptions.find(s => s.id === value) ?? userStatusOptions[0]\n );\n }\n }\n : undefined\n }\n interactionTransfer={\n showInteractionTransfer\n ? {\n onCancel: () => setShowInteractionTransfer(false),\n onComplete: () => setShowInteractionTransfer(false)\n }\n : undefined\n }\n calls={calls}\n draggable={args.isDraggable}\n onAddCall={(phoneNumber: string) => {\n const call: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n slaConfig: [30, 50],\n onConsultAction,\n onConferenceAction,\n transferOptions: transferReasons,\n interactionOptions,\n onTransferAction: (id, data) => {\n action('onTransferAction')(id, data);\n if (data.interaction) setShowInteractionTransfer(true);\n onEndCall(id);\n },\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onMergeCall,\n onDTMFPress: action('onDTMFPress'),\n onEndCall: () => onEndCall(call.id),\n participants: [\n {\n id: contactsList.find(person => person.phoneNumber === phoneNumber)?.primary || '',\n name:\n contactsList.find(person => person.phoneNumber === phoneNumber)?.primary ||\n 'Unknown',\n onHangUp\n }\n ]\n };\n\n setCalls([call]);\n setCurrentStatus('not_available');\n }}\n contactsList={contacts}\n onFavoriteToggle={(phoneNumber: string, favorite: boolean) => {\n const element = contacts.find(item => item.phoneNumber === phoneNumber);\n element!.favorite = !favorite;\n setContacts([...contacts]);\n }}\n />\n );\n};\n\nexport const ExternalCTIDemo: Story<CallControlPanelStoryProps & { applyAppStyling: boolean }> = (\n args: CallControlPanelStoryProps & { applyAppStyling: boolean }\n) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [error, setError] = useState('');\n\n const { base, components } = useTheme();\n\n const styling: ExternalStyles | undefined = args.applyAppStyling\n ? {\n '--app-bg-color': base.palette['app-background'],\n '--header-border-color': base.palette['secondary-background'],\n '--text-color': base.palette['foreground-color'],\n '--msg-me-bg-color': base.palette.interactive,\n '--msg-me-text-color': tryCatch(() => readableColor(base.palette.interactive)),\n '--msg-you-bg-color': base.palette['primary-background'],\n '--msg-you-text-color': tryCatch(() => readableColor(base.palette['primary-background'])),\n '--msg-border-radius': '16px',\n '--button-text-color': tryCatch(() => readableColor(components.button.color)),\n '--button-bg-color': components.button.color,\n '--button-border-color': 'transparent',\n '--button-border-radius': `calc(${components.button['border-radius']} * ${base['border-radius']})`,\n '--button-hover-bg-color': tryCatch(() => lighten(0.1, components.button.color)),\n '--button-height': components.input.height,\n '--input-height': components.input.height,\n '--input-background-color': components.input['background-color'],\n '--input-text-color': base.palette['foreground-color'],\n '--input-border-radius': `calc(0.5 * ${base['border-radius']})`,\n '--input-focus-border-color': 'transparent',\n '--input-focus-box-shadow': components.button['focus-shadow'],\n '--footer-bg-color': base.palette['app-background']\n }\n : undefined;\n\n useEffect(() => {\n if (containerRef.current) {\n containerRef.current.innerHTML = `\n <iframe id='external-cti' srcdoc='${createExternalIframeContent(\n styling\n )}' width='100%' height='500px'></iframe>\n `;\n }\n }, [containerRef.current, styling]);\n\n return (\n <ExternalCTI\n heading={args.heading}\n draggable={args.isDraggable}\n visible={args.visible}\n ref={containerRef}\n attachInteractionProps={{\n onAddInteraction: ({ comments }, { close }) => {\n if (comments === 'error') {\n setError('The service is currently unavailable');\n } else {\n close();\n }\n },\n reasonOptions: transferReasons,\n defaultInteraction: interactionOptions.find(({ id }) => id === '23254324')?.id,\n interactionOptions,\n heading: 'Attach interaction to call',\n ...(error && {\n message: {\n variant: 'urgent',\n messages: [error]\n }\n })\n }}\n />\n );\n};\n\nExternalCTIDemo.args = {\n heading: 'External CTI',\n isDraggable: true,\n applyAppStyling: false\n};\n\nExternalCTIDemo.argTypes = {\n heading: { control: { type: 'text' } },\n isDraggable: { control: { type: 'boolean' } },\n applyAppStyling: { control: { type: 'boolean' } }\n};\n"]}
1
+ {"version":3,"file":"CallControlPanel.stories.js","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAUtE,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAGlC,eAAe;IACb,KAAK,EAAE,mCAAmC;IAC1C,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,IAAI;KACjB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACtC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7C,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;KAC7C;CACM,CAAC;AAWV,MAAM,CAAC,MAAM,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AAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;gBAC5C,IAAI,QAAQ,KAAK,OAAO,EAAE;oBACxB,QAAQ,CAAC,sCAAsC,CAAC,CAAC;iBAClD;qBAAM;oBACL,KAAK,EAAE,CAAC;iBACT;YACH,CAAC;YACD,aAAa,EAAE,eAAe;YAC9B,kBAAkB,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,UAAU,CAAC,EAAE,EAAE;YAC9E,kBAAkB;YAClB,OAAO,EAAE,4BAA4B;YACrC,GAAG,CAAC,KAAK,IAAI;gBACX,OAAO,EAAE;oBACP,OAAO,EAAE,QAAQ;oBACjB,QAAQ,EAAE,CAAC,KAAK,CAAC;iBAClB;aACF,CAAC;SACH,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,IAAI,GAAG;IACrB,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,eAAe,CAAC,QAAQ,GAAG;IACzB,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAClD,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { useEffect, useRef, useState } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport { lighten, readableColor } from 'polished';\n\nimport { createUID, tryCatch, useTheme } from '@pega/cosmos-react-core';\nimport { CallControlPanel, ExternalCTI } from '@pega/cosmos-react-cs';\nimport type {\n CallProps,\n IncomingCallProps,\n CallParticipant,\n TransferData,\n UserAvailabilityStatusOption,\n CallControlPanelProps\n} from '@pega/cosmos-react-cs';\n\nimport {\n contactsList,\n createExternalIframeContent,\n interactionOptions,\n transferReasons,\n userStatusOptions\n} from './CallControlPanel.mocks';\nimport type { ExternalStyles } from './CallControlPanel.mocks';\n\nexport default {\n title: 'Customer Service/CallControlPanel',\n component: CallControlPanel,\n args: {\n heading: 'Agent',\n isDraggable: true,\n showStatus: true\n },\n argTypes: {\n heading: { control: { type: 'text' } },\n isDraggable: { control: { type: 'boolean' } },\n showStatus: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface CallControlPanelStoryProps {\n heading: string;\n isDraggable?: boolean;\n showStatus: boolean;\n status?: UserAvailabilityStatusOption['id'];\n onStatusChange?: (newStatus: UserAvailabilityStatusOption) => void;\n visible?: CallControlPanelProps['visible'];\n}\n\nexport const CallControlPanelDemo: StoryFn<CallControlPanelStoryProps> = (\n args: CallControlPanelStoryProps\n) => {\n const [currentStatus, setCurrentStatus] = useState<UserAvailabilityStatusOption['id']>(\n args.status || 'available'\n );\n const inStatusSince = useRef(Date.now());\n const [calls, setCalls] = useState<(CallProps | IncomingCallProps)[]>([]);\n\n const [contacts, setContacts] = useState(contactsList);\n const callsList = useRef(calls);\n callsList.current = calls;\n\n const [showInteractionTransfer, setShowInteractionTransfer] = useState(false);\n\n const onMuteToggle = (id: CallProps['id']) => {\n const thisCallIndex = callsList.current.findIndex(call => call.id === id);\n if (thisCallIndex < 0) return;\n const thisCall = callsList.current[thisCallIndex];\n callsList.current.splice(thisCallIndex, 1, {\n ...thisCall,\n muted: !(thisCall as CallProps).muted\n });\n setCalls([...callsList.current]);\n };\n\n const onMergeCall = (id: CallProps['id']) => {\n const thisCall = callsList.current.find(call => call.id === id) as CallProps;\n const activeCallIndex = callsList.current.findIndex(call => !(call as CallProps).onHoldSince);\n const currentCall = callsList.current[activeCallIndex] as CallProps;\n\n if (!thisCall || !activeCallIndex) return;\n callsList.current.splice(activeCallIndex, 1, {\n ...currentCall,\n participants: [...currentCall.participants, ...thisCall.participants],\n onHoldSince: undefined\n });\n setCalls([...callsList.current.filter(call => call.id !== id)]);\n };\n\n const onHandOffCall = (id: CallProps['id']) => {\n setCalls([\n ...callsList.current.filter(call => call.id !== id && (call as CallProps).onHoldSince)\n ]);\n };\n\n const onPauseToggle = (id: CallProps['id']) => {\n const thisCall = callsList.current.find(call => call.id === id);\n if (!thisCall) return;\n const wasPaused = !!(thisCall as CallProps).onHoldSince;\n callsList.current = callsList.current.map(call => {\n if (thisCall.id === call.id)\n return {\n ...call,\n onHoldSince: wasPaused ? undefined : Date.now(),\n onMergeCall: wasPaused ? onMergeCall : undefined,\n onHandOffCall: wasPaused ? onHandOffCall : undefined\n };\n return {\n ...call,\n onPauseToggle: wasPaused ? undefined : onPauseToggle,\n onMergeCall: wasPaused ? onMergeCall : undefined,\n onHandOffCall: wasPaused ? onHandOffCall : undefined\n };\n });\n setCalls([...callsList.current]);\n };\n\n const onEndCall = (id: CallProps['id']) => {\n setCalls(callsList.current.filter(item => item.id !== id));\n setCurrentStatus('available');\n };\n\n const onHangUp = (callId: CallProps['id'], participantId: CallParticipant['id']) => {\n const currentCallIndex = callsList.current.findIndex(call => call.id === callId);\n if (currentCallIndex < 0) return;\n const currentCall = callsList.current[currentCallIndex] as CallProps;\n callsList.current.splice(currentCallIndex, 1, {\n ...currentCall,\n participants: [\n ...currentCall.participants.filter(participant => participant.id !== participantId)\n ]\n });\n setCalls([...callsList.current]);\n };\n\n const onConferenceAction = (id: CallProps['id'], data: TransferData) => {\n const caller = contactsList.find(person => person.phoneNumber === data.phoneNumber);\n const conferenceCall: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n onMergeCall,\n transferOptions: transferReasons,\n interactionOptions,\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onHandOffCall,\n onEndCall,\n participants: [\n {\n name: caller?.primary || '',\n info: caller?.secondary || '',\n id: caller?.primary || '',\n onHangUp\n }\n ]\n };\n\n const currentCall = callsList.current[0] as CallProps;\n callsList.current.splice(0, 1, {\n ...callsList.current[0],\n participants: [...currentCall.participants, ...conferenceCall.participants],\n onHoldSince: undefined\n });\n setCalls([...callsList.current.filter(call => call.id !== conferenceCall.id)]);\n };\n\n const onConsultAction = (id: CallProps['id'], data: TransferData) => {\n const caller = contactsList.find(person => person.phoneNumber === data.phoneNumber);\n const consultCall: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n transferOptions: transferReasons,\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onMergeCall,\n onHandOffCall,\n onDTMFPress: action('onDTMFPress'),\n onTransferAction: (callId, transferData) => {\n action('onTransferAction')(callId, transferData);\n if (transferData.interaction) setShowInteractionTransfer(true);\n onEndCall(id);\n },\n onConsultAction,\n onConferenceAction,\n onEndCall,\n participants: [\n {\n name: caller?.primary || '',\n info: caller?.secondary || '',\n id: caller?.primary || '',\n onHangUp\n }\n ]\n };\n\n const updatedCalls: (CallProps | IncomingCallProps)[] = callsList.current.map(call => {\n return { ...call, onHoldSince: Date.now(), onMergeCall, onPauseToggle: undefined };\n });\n updatedCalls.push(consultCall);\n setCalls(updatedCalls);\n };\n\n useEffect(() => {\n const timeoutId = setTimeout(() => {\n const caller = contactsList[0];\n const consultCall: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n transferOptions: transferReasons,\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onMergeCall,\n onHandOffCall,\n onDTMFPress: action('onDTMFPress'),\n onTransferAction: (callId, transferData) => {\n action('onTransferAction')(callId, transferData);\n if (transferData.interaction) setShowInteractionTransfer(true);\n onEndCall(callId);\n },\n onConsultAction,\n onConferenceAction,\n onEndCall,\n participants: [\n {\n name: caller?.primary || '',\n info: caller?.secondary || '',\n id: caller?.primary || '',\n onHangUp\n }\n ]\n };\n\n const incomingCall: IncomingCallProps = {\n id: createUID(),\n onAcceptCall: () => {\n setCalls([consultCall]);\n },\n participant: {\n name: contactsList[0].primary,\n info: contactsList[0].secondary,\n id: contactsList[0].primary\n }\n };\n setCalls([incomingCall, ...callsList.current]);\n }, 4000);\n return () => clearTimeout(timeoutId);\n }, []);\n\n return (\n <CallControlPanel\n visible={args.visible ?? true}\n heading={args.heading}\n userStatus={\n args.showStatus\n ? {\n statusOptions: userStatusOptions,\n status: currentStatus,\n inStatusSince: inStatusSince.current,\n onChange: value => {\n setCurrentStatus(value);\n args.onStatusChange?.(\n userStatusOptions.find(s => s.id === value) ?? userStatusOptions[0]\n );\n }\n }\n : undefined\n }\n interactionTransfer={\n showInteractionTransfer\n ? {\n onCancel: () => setShowInteractionTransfer(false),\n onComplete: () => setShowInteractionTransfer(false)\n }\n : undefined\n }\n calls={calls}\n draggable={args.isDraggable}\n onAddCall={(phoneNumber: string) => {\n const call: CallProps = {\n id: createUID(),\n startedAt: Date.now(),\n slaConfig: [30, 50],\n onConsultAction,\n onConferenceAction,\n transferOptions: transferReasons,\n defaultTransfer: transferReasons[1].id,\n interactionOptions,\n onTransferAction: (id, data) => {\n action('onTransferAction')(id, data);\n if (data.interaction) setShowInteractionTransfer(true);\n onEndCall(id);\n },\n muted: false,\n onMuteToggle,\n onPauseToggle,\n onMergeCall,\n onDTMFPress: action('onDTMFPress'),\n onEndCall: () => onEndCall(call.id),\n participants: [\n {\n id: contactsList.find(person => person.phoneNumber === phoneNumber)?.primary || '',\n name:\n contactsList.find(person => person.phoneNumber === phoneNumber)?.primary ||\n 'Unknown',\n onHangUp\n }\n ]\n };\n\n setCalls([call]);\n setCurrentStatus('not_available');\n }}\n contactsList={contacts}\n onFavoriteToggle={(phoneNumber: string, favorite: boolean) => {\n const element = contacts.find(item => item.phoneNumber === phoneNumber);\n element!.favorite = !favorite;\n setContacts([...contacts]);\n }}\n />\n );\n};\n\nexport const ExternalCTIDemo: StoryFn<CallControlPanelStoryProps & { applyAppStyling: boolean }> = (\n args: CallControlPanelStoryProps & { applyAppStyling: boolean }\n) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [error, setError] = useState('');\n\n const { base, components } = useTheme();\n\n const styling: ExternalStyles | undefined = args.applyAppStyling\n ? {\n '--app-bg-color': base.palette['app-background'],\n '--header-border-color': base.palette['secondary-background'],\n '--text-color': base.palette['foreground-color'],\n '--msg-me-bg-color': base.palette.interactive,\n '--msg-me-text-color': tryCatch(() => readableColor(base.palette.interactive)),\n '--msg-you-bg-color': base.palette['primary-background'],\n '--msg-you-text-color': tryCatch(() => readableColor(base.palette['primary-background'])),\n '--msg-border-radius': '16px',\n '--button-text-color': tryCatch(() => readableColor(components.button.color)),\n '--button-bg-color': components.button.color,\n '--button-border-color': 'transparent',\n '--button-border-radius': `calc(${components.button['border-radius']} * ${base['border-radius']})`,\n '--button-hover-bg-color': tryCatch(() => lighten(0.1, components.button.color)),\n '--button-height': components.input.height,\n '--input-height': components.input.height,\n '--input-background-color': components.input['background-color'],\n '--input-text-color': base.palette['foreground-color'],\n '--input-border-radius': `calc(0.5 * ${base['border-radius']})`,\n '--input-focus-border-color': 'transparent',\n '--input-focus-box-shadow': components.button['focus-shadow'],\n '--footer-bg-color': base.palette['app-background']\n }\n : undefined;\n\n useEffect(() => {\n if (containerRef.current) {\n containerRef.current.innerHTML = `\n <iframe id='external-cti' srcdoc='${createExternalIframeContent(\n styling\n )}' width='100%' height='500px'></iframe>\n `;\n }\n }, [containerRef.current, styling]);\n\n return (\n <ExternalCTI\n heading={args.heading}\n draggable={args.isDraggable}\n visible={args.visible}\n ref={containerRef}\n attachInteractionProps={{\n onAddInteraction: ({ comments }, { close }) => {\n if (comments === 'error') {\n setError('The service is currently unavailable');\n } else {\n close();\n }\n },\n reasonOptions: transferReasons,\n defaultInteraction: interactionOptions.find(({ id }) => id === '23254324')?.id,\n interactionOptions,\n heading: 'Attach interaction to call',\n ...(error && {\n message: {\n variant: 'urgent',\n messages: [error]\n }\n })\n }}\n />\n );\n};\n\nExternalCTIDemo.args = {\n heading: 'External CTI',\n isDraggable: true,\n applyAppStyling: false\n};\n\nExternalCTIDemo.argTypes = {\n heading: { control: { type: 'text' } },\n isDraggable: { control: { type: 'boolean' } },\n applyAppStyling: { control: { type: 'boolean' } }\n};\n"]}
@@ -1,9 +1,9 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { DialPadKeyboardProps } from '@pega/cosmos-react-cs';
3
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { DialPadKeyboardProps } from '@pega/cosmos-react-cs';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface DialPadDemoProps {
6
6
  mode: DialPadKeyboardProps['mode'];
7
7
  }
8
- export declare const DialPadDemo: Story<DialPadDemoProps>;
8
+ export declare const DialPadDemo: StoryFn<DialPadDemoProps>;
9
9
  //# sourceMappingURL=DialPad.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialPad.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/DialPad/DialPad.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAW,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;;AAEtE,wBAGU;AAEV,UAAU,gBAAgB;IACxB,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,gBAAgB,CAa/C,CAAC"}
1
+ {"version":3,"file":"DialPad.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/DialPad/DialPad.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;;AAElE,wBAGU;AAEV,UAAU,gBAAgB;IACxB,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,gBAAgB,CAajD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DialPad.stories.js","sourceRoot":"","sources":["../../../src/cs/DialPad/DialPad.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAwB,MAAM,uBAAuB,CAAC;AAEtE,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;CACX,CAAC;AAMV,MAAM,CAAC,MAAM,WAAW,GAA4B,CAAC,IAAsB,EAAE,EAAE;IAC7E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEnD,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAC/B,KAAC,OAAO,IACN,KAAK,EAAE,WAAW,EAClB,WAAW,EAAE,MAAM,CAAC,qBAAqB,CAAC,EAC1C,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,GACf,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,SAAS;CAChB,CAAC;AAEF,WAAW,CAAC,QAAQ,GAAG;IACrB,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE;CAC1E,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { Meta, Story } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { DialPad, DialPadKeyboardProps } from '@pega/cosmos-react-cs';\n\nexport default {\n title: 'Customer Service/DialPad',\n component: DialPad\n} as Meta;\n\ninterface DialPadDemoProps {\n mode: DialPadKeyboardProps['mode'];\n}\n\nexport const DialPadDemo: Story<DialPadDemoProps> = (args: DialPadDemoProps) => {\n const [phoneNumber, setPhoneNumber] = useState('');\n\n return (\n <div style={{ maxWidth: '25rem' }}>\n <DialPad\n value={phoneNumber}\n onCallClick={action('Call button clicked')}\n onChange={setPhoneNumber}\n mode={args.mode}\n />\n </div>\n );\n};\n\nDialPadDemo.args = {\n mode: 'default'\n};\n\nDialPadDemo.argTypes = {\n mode: { options: ['default', 'DTMF'], control: { type: 'inline-radio' } }\n};\n"]}
1
+ {"version":3,"file":"DialPad.stories.js","sourceRoot":"","sources":["../../../src/cs/DialPad/DialPad.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;CACX,CAAC;AAMV,MAAM,CAAC,MAAM,WAAW,GAA8B,CAAC,IAAsB,EAAE,EAAE;IAC/E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEnD,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAC/B,KAAC,OAAO,IACN,KAAK,EAAE,WAAW,EAClB,WAAW,EAAE,MAAM,CAAC,qBAAqB,CAAC,EAC1C,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,GACf,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,SAAS;CAChB,CAAC;AAEF,WAAW,CAAC,QAAQ,GAAG;IACrB,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE;CAC1E,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { DialPad } from '@pega/cosmos-react-cs';\nimport type { DialPadKeyboardProps } from '@pega/cosmos-react-cs';\n\nexport default {\n title: 'Customer Service/DialPad',\n component: DialPad\n} as Meta;\n\ninterface DialPadDemoProps {\n mode: DialPadKeyboardProps['mode'];\n}\n\nexport const DialPadDemo: StoryFn<DialPadDemoProps> = (args: DialPadDemoProps) => {\n const [phoneNumber, setPhoneNumber] = useState('');\n\n return (\n <div style={{ maxWidth: '25rem' }}>\n <DialPad\n value={phoneNumber}\n onCallClick={action('Call button clicked')}\n onChange={setPhoneNumber}\n mode={args.mode}\n />\n </div>\n );\n};\n\nDialPadDemo.args = {\n mode: 'default'\n};\n\nDialPadDemo.argTypes = {\n mode: { options: ['default', 'DTMF'], control: { type: 'inline-radio' } }\n};\n"]}
@@ -1,5 +1,5 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ import type { StoryFn } from '@storybook/react';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
4
  interface InteractionNotificationDemoProps {
5
5
  icon: string;
@@ -8,5 +8,5 @@ interface InteractionNotificationDemoProps {
8
8
  timerAvailable: boolean;
9
9
  answerTimeout: number;
10
10
  }
11
- export declare const InteractionNotificationDemo: Story<InteractionNotificationDemoProps>;
11
+ export declare const InteractionNotificationDemo: StoryFn<InteractionNotificationDemoProps>;
12
12
  //# sourceMappingURL=InteractionNotification.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionNotification.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/InteractionNotification/InteractionNotification.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAM/C,wBAGU;AAEV,UAAU,gCAAgC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,gCAAgC,CA+C/E,CAAC"}
1
+ {"version":3,"file":"InteractionNotification.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/InteractionNotification/InteractionNotification.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAMtD,wBAGU;AAEV,UAAU,gCAAgC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,2BAA2B,EAAE,OAAO,CAAC,gCAAgC,CA+CjF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionNotification.stories.js","sourceRoot":"","sources":["../../../src/cs/InteractionNotification/InteractionNotification.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAe;IACb,KAAK,EAAE,0CAA0C;IACjD,SAAS,EAAE,uBAAuB;CAC3B,CAAC;AAUV,MAAM,CAAC,MAAM,2BAA2B,GAA4C,CAClF,IAAsC,EACtC,EAAE;IACF,MAAM,2BAA2B,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,CAAC;IAC9B,MAAM,CAAC,GAAG,O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I,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IAClE,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC5C,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAClD,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC/C,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { Meta, Story } from '@storybook/react';\nimport { useRef } from 'react';\n\nimport { InteractionNotification } from '@pega/cosmos-react-cs';\nimport { icons, useI18n, useToaster } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Customer Service/InteractionNotification',\n component: InteractionNotification\n} as Meta;\n\ninterface InteractionNotificationDemoProps {\n icon: string;\n secondaryText: string;\n declineAvailable: boolean;\n timerAvailable: boolean;\n answerTimeout: number;\n}\n\nexport const InteractionNotificationDemo: Story<InteractionNotificationDemoProps> = (\n args: InteractionNotificationDemoProps\n) => {\n const incomingNotificationTimeout = useRef(Date.now());\n const { push } = useToaster();\n const t = useI18n();\n\n return (\n <InteractionNotification\n icon={args.icon}\n title='Incoming call'\n primaryText='John Brown'\n secondaryText={args.secondaryText}\n status={{\n variant: 'success',\n text: 'VERIFIED PLATINUM CUSTOMER'\n }}\n fields={[\n {\n id: 'reason',\n name: 'Reason for calling',\n value: 'Billing question'\n },\n {\n id: 'openCases',\n name: 'Open cases',\n value: '1'\n },\n {\n id: 'lastInteraction',\n name: 'Last interaction',\n value: new Date().toLocaleDateString()\n }\n ]}\n incomingNotificationTimeout={\n args.timerAvailable\n ? {\n startTime: incomingNotificationTimeout.current,\n answerTimeout: args.answerTimeout,\n onTimerEnd: () => push({ content: t('interaction_time_expired') })\n }\n : undefined\n }\n onAccept={action('accept')}\n onDecline={args.declineAvailable ? action('decline') : undefined}\n />\n );\n};\n\nInteractionNotificationDemo.args = {\n icon: 'phone-in-solid',\n secondaryText: '(123) 456-7890',\n declineAvailable: true,\n timerAvailable: true,\n answerTimeout: 30\n};\n\nInteractionNotificationDemo.argTypes = {\n icon: { options: icons, control: { type: 'select', icons: true } },\n secondaryText: { options: { type: 'text' } },\n declineAvailable: { options: { type: 'boolean' } },\n timerAvailable: { options: { type: 'boolean' } },\n answerTimeout: { options: { type: 'number' } }\n};\n"]}
1
+ {"version":3,"file":"InteractionNotification.stories.js","sourceRoot":"","sources":["../../../src/cs/InteractionNotification/InteractionNotification.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAe;IACb,KAAK,EAAE,0CAA0C;IACjD,SAAS,EAAE,uBAAuB;CAC3B,CAAC;AAUV,MAAM,CAAC,MAAM,2BAA2B,GAA8C,CACpF,IAAsC,EACtC,EAAE;IACF,MAAM,2BAA2B,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,CAAC;IAC9B,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,OAAO,CACL,KAAC,uBAAuB,IACtB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,YAAY,EACxB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,MAAM,EAAE;YACN,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,4BAA4B;SAC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AE,SAAS,EAAE,EAAE;IAClD,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC/C,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport { useRef } from 'react';\n\nimport { InteractionNotification } from '@pega/cosmos-react-cs';\nimport { icons, useI18n, useToaster } from '@pega/cosmos-react-core';\n\nexport default {\n title: 'Customer Service/InteractionNotification',\n component: InteractionNotification\n} as Meta;\n\ninterface InteractionNotificationDemoProps {\n icon: string;\n secondaryText: string;\n declineAvailable: boolean;\n timerAvailable: boolean;\n answerTimeout: number;\n}\n\nexport const InteractionNotificationDemo: StoryFn<InteractionNotificationDemoProps> = (\n args: InteractionNotificationDemoProps\n) => {\n const incomingNotificationTimeout = useRef(Date.now());\n const { push } = useToaster();\n const t = useI18n();\n\n return (\n <InteractionNotification\n icon={args.icon}\n title='Incoming call'\n primaryText='John Brown'\n secondaryText={args.secondaryText}\n status={{\n variant: 'success',\n text: 'VERIFIED PLATINUM CUSTOMER'\n }}\n fields={[\n {\n id: 'reason',\n name: 'Reason for calling',\n value: 'Billing question'\n },\n {\n id: 'openCases',\n name: 'Open cases',\n value: '1'\n },\n {\n id: 'lastInteraction',\n name: 'Last interaction',\n value: new Date().toLocaleDateString()\n }\n ]}\n incomingNotificationTimeout={\n args.timerAvailable\n ? {\n startTime: incomingNotificationTimeout.current,\n answerTimeout: args.answerTimeout,\n onTimerEnd: () => push({ content: t('interaction_time_expired') })\n }\n : undefined\n }\n onAccept={action('accept')}\n onDecline={args.declineAvailable ? action('decline') : undefined}\n />\n );\n};\n\nInteractionNotificationDemo.args = {\n icon: 'phone-in-solid',\n secondaryText: '(123) 456-7890',\n declineAvailable: true,\n timerAvailable: true,\n answerTimeout: 30\n};\n\nInteractionNotificationDemo.argTypes = {\n icon: { options: icons, control: { type: 'select', icons: true } },\n secondaryText: { options: { type: 'text' } },\n declineAvailable: { options: { type: 'boolean' } },\n timerAvailable: { options: { type: 'boolean' } },\n answerTimeout: { options: { type: 'number' } }\n};\n"]}
@@ -1,10 +1,11 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { InteractionTimerProps } from '@pega/cosmos-react-cs';
3
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { InteractionTimerProps } from '@pega/cosmos-react-cs';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  export interface InteractionTimerStoryProps extends InteractionTimerProps {
6
+ id?: string;
6
7
  showTimer?: boolean;
7
8
  interactionType?: string;
8
9
  }
9
- export declare const InteractionTimerDemo: Story<InteractionTimerStoryProps>;
10
+ export declare const InteractionTimerDemo: StoryFn<InteractionTimerStoryProps>;
10
11
  //# sourceMappingURL=InteractionTimer.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionTimer.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/InteractionTimer/InteractionTimer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAoB,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;;AAShF,wBAGU;AAEV,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,0BAA0B,CA0FlE,CAAC"}
1
+ {"version":3,"file":"InteractionTimer.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/InteractionTimer/InteractionTimer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;;AASnE,wBAGU;AAEV,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,0BAA0B,CAsGpE,CAAC"}