@pega/cosmos-react-demos 3.0.0-dev.3.0 → 3.0.0-dev.4.2

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 (557) hide show
  1. package/jsx/build/AppShell/AppShell.mocks.d.ts +17 -0
  2. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  3. package/jsx/build/AppShell/AppShell.mocks.js +15 -0
  4. package/jsx/build/AppShell/AppShell.mocks.js.map +1 -1
  5. package/jsx/build/AppShell/AppShell.stories.d.ts +2 -0
  6. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  7. package/jsx/build/AppShell/AppShell.stories.jsx +2 -17
  8. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  9. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +4 -1
  10. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  11. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +18 -2
  12. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  13. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  14. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  15. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +71 -7
  16. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  17. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +2 -7
  18. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  19. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +14 -100
  20. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  21. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  22. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  23. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  24. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  25. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +2 -5
  26. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  27. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  28. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +2 -4
  29. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  30. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  31. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +40 -0
  32. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  33. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +315 -0
  34. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  35. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +9 -0
  36. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  37. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +137 -0
  38. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
  39. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  40. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  41. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  42. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  43. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +45 -0
  44. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  45. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +78 -0
  46. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  47. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +1 -0
  48. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  49. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +3 -79
  50. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  51. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +11 -0
  52. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  53. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +129 -0
  54. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  55. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +1 -0
  56. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  57. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +4 -129
  58. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  59. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  60. package/jsx/build/Workbench/Workbench.stories.jsx +3 -14
  61. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  62. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  63. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  64. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  65. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  66. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  67. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  68. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +59 -56
  69. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  70. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  71. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  72. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  73. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  74. package/jsx/core/AppShell/AppShell.stories.d.ts +1 -0
  75. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  76. package/jsx/core/AppShell/AppShell.stories.jsx +3 -1
  77. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  78. package/jsx/core/Button/Button.stories.jsx +6 -6
  79. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  80. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  81. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  82. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  83. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  84. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  85. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  86. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  87. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  88. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  89. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  90. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  91. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  92. package/jsx/core/Configuration/Configuration.stories.jsx +2 -18
  93. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  94. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  95. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  96. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  97. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  98. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  99. package/jsx/core/DateTime/DateTime.stories.jsx +1 -0
  100. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  101. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  102. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  103. package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
  104. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  105. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  106. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  107. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
  108. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  109. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  110. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  111. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
  112. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  113. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  114. package/jsx/core/File/FileDisplay.stories.jsx +16 -38
  115. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  116. package/jsx/core/HTML/HTML.stories.d.ts +6 -0
  117. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
  118. package/jsx/core/HTML/HTML.stories.jsx +13 -0
  119. package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
  120. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  121. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  122. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  123. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  124. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  125. package/jsx/core/Icon/Icon.styles.js +25 -0
  126. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  127. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  128. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  129. package/jsx/core/Link/Link.stories.d.ts +1 -11
  130. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  131. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  132. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  133. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  134. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
  135. package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
  136. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +7 -0
  137. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  138. package/jsx/core/ListToolbar/ListToolbar.stories.jsx +87 -0
  139. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
  140. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  141. package/jsx/core/Number/Number.stories.jsx +2 -0
  142. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  143. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  144. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +1 -11
  145. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  146. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  147. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  148. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  149. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  150. package/jsx/core/Tooltip/Tooltip.stories.d.ts +2 -5
  151. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  152. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  153. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  154. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  155. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  156. package/jsx/cs/Article/Article.stories.d.ts +2 -10
  157. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  158. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  159. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +2 -11
  160. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  161. package/jsx/cs/ArticleList/ArticleList.stories.jsx +2 -1
  162. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  163. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +2 -36
  164. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  165. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +6 -33
  166. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  167. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  168. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  169. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
  170. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
  171. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +2 -2
  172. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  173. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +4 -4
  174. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  175. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -8
  176. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  177. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +3 -3
  178. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  179. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  180. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  181. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  182. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  183. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  184. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  185. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  186. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  187. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -7
  188. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  189. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +6 -30
  190. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  191. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  192. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  193. package/jsx/cs/TaskManager/TaskManager.mocks.js +7 -0
  194. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  195. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  196. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  197. package/jsx/cs/TaskManager/TaskManager.stories.jsx +25 -29
  198. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  199. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  200. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  201. package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
  202. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  203. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  204. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  205. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  206. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  207. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  208. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  209. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  210. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  211. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  212. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  213. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  214. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  215. package/jsx/rte/Editor/Editor.mocks.d.ts +6 -0
  216. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  217. package/jsx/rte/Editor/Editor.mocks.jsx +20 -0
  218. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  219. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  220. package/jsx/rte/Editor/Editor.stories.jsx +2 -20
  221. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  222. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  223. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  224. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  225. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  226. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  227. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  228. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  229. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  230. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  231. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  232. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  233. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  234. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  235. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  236. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  237. package/jsx/social/Email/Email.mocks.d.ts +155 -2
  238. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  239. package/jsx/social/Email/Email.mocks.jsx +756 -0
  240. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  241. package/jsx/social/Email/Email.stories.d.ts +14 -14
  242. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  243. package/jsx/social/Email/Email.stories.jsx +115 -407
  244. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  245. package/jsx/social/Email/Email.styles.d.ts +4 -0
  246. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  247. package/jsx/social/Email/Email.styles.js +14 -0
  248. package/jsx/social/Email/Email.styles.js.map +1 -0
  249. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  250. package/jsx/social/Feed/Feed.stories.jsx +23 -18
  251. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  252. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  253. package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
  254. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  255. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  256. package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
  257. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  258. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +2 -7
  259. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  260. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  261. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  262. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  263. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  264. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  265. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -6
  266. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  267. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +2 -174
  268. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  269. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  270. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  271. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  272. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  273. package/jsx/work/Timeline/Timeline.stories.d.ts +2 -0
  274. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  275. package/jsx/work/Timeline/Timeline.stories.jsx +28 -1
  276. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  277. package/lib/build/AppShell/AppShell.mocks.d.ts +17 -0
  278. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  279. package/lib/build/AppShell/AppShell.mocks.js +16 -0
  280. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  281. package/lib/build/AppShell/AppShell.stories.d.ts +2 -0
  282. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  283. package/lib/build/AppShell/AppShell.stories.js +3 -18
  284. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  285. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +4 -1
  286. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  287. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +18 -2
  288. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  289. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  290. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  291. package/lib/build/FlowModeller/FlowModeller.mocks.js +58 -6
  292. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  293. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +2 -7
  294. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  295. package/lib/build/FlowModeller/FlowModeller.stories.js +15 -90
  296. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  297. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  298. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  299. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  300. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  301. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +2 -5
  302. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  303. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  304. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +2 -4
  305. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  306. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  307. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +40 -0
  308. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
  309. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +272 -0
  310. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
  311. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +9 -0
  312. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
  313. package/lib/build/ObjectSelect/ObjectSelect.stories.js +123 -0
  314. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
  315. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
  316. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
  317. package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
  318. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
  319. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +45 -0
  320. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  321. package/lib/build/PageTemplates/GalleryPage.mocks.js +79 -0
  322. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  323. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +1 -0
  324. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  325. package/lib/build/PageTemplates/GalleryPage.stories.js +3 -79
  326. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  327. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +11 -0
  328. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  329. package/lib/build/PageTemplates/PageTemplates.mocks.js +96 -0
  330. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  331. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +1 -0
  332. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  333. package/lib/build/PageTemplates/PageTemplates.stories.js +5 -95
  334. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  335. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  336. package/lib/build/Workbench/Workbench.stories.js +3 -14
  337. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  338. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  339. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  340. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  341. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  342. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  343. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  344. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +56 -54
  345. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  346. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  347. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  348. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  349. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  350. package/lib/core/AppShell/AppShell.stories.d.ts +1 -0
  351. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  352. package/lib/core/AppShell/AppShell.stories.js +3 -1
  353. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  354. package/lib/core/Button/Button.stories.js +2 -2
  355. package/lib/core/Button/Button.stories.js.map +1 -1
  356. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  357. package/lib/core/ColorPicker/ColorPicker.stories.js +2 -10
  358. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  359. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  360. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  361. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  362. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  363. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  364. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  365. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  366. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  367. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  368. package/lib/core/Configuration/Configuration.stories.js +3 -15
  369. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  370. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  371. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  372. package/lib/core/Configuration/Configuration.styles.js +12 -0
  373. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  374. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  375. package/lib/core/DateTime/DateTime.stories.js +2 -0
  376. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  377. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
  378. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  379. package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
  380. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  381. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  382. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  383. package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
  384. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  385. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
  386. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  387. package/lib/core/FieldGroup/FieldGroupList.stories.js +52 -65
  388. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  389. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  390. package/lib/core/File/FileDisplay.stories.js +17 -29
  391. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  392. package/lib/core/HTML/HTML.stories.d.ts +6 -0
  393. package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
  394. package/lib/core/HTML/HTML.stories.js +14 -0
  395. package/lib/core/HTML/HTML.stories.js.map +1 -0
  396. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  397. package/lib/core/Icon/Icon.stories.js +6 -29
  398. package/lib/core/Icon/Icon.stories.js.map +1 -1
  399. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  400. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  401. package/lib/core/Icon/Icon.styles.js +25 -0
  402. package/lib/core/Icon/Icon.styles.js.map +1 -0
  403. package/lib/core/IconPicker/IconPicker.stories.js +1 -1
  404. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  405. package/lib/core/Link/Link.stories.d.ts +1 -11
  406. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  407. package/lib/core/Link/Link.stories.js.map +1 -1
  408. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
  409. package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
  410. package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
  411. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
  412. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +7 -0
  413. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
  414. package/lib/core/ListToolbar/ListToolbar.stories.js +79 -0
  415. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
  416. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  417. package/lib/core/Number/Number.stories.js +2 -0
  418. package/lib/core/Number/Number.stories.js.map +1 -1
  419. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  420. package/lib/core/PageTemplates/PageTemplates.stories.js +1 -11
  421. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  422. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  423. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  424. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  425. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  426. package/lib/core/Tooltip/Tooltip.stories.d.ts +2 -5
  427. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  428. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  429. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  430. package/lib/core/Tree/Tree.stories.js +2 -2
  431. package/lib/core/Tree/Tree.stories.js.map +1 -1
  432. package/lib/cs/Article/Article.stories.d.ts +2 -10
  433. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  434. package/lib/cs/Article/Article.stories.js.map +1 -1
  435. package/lib/cs/ArticleList/ArticleList.stories.d.ts +2 -11
  436. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  437. package/lib/cs/ArticleList/ArticleList.stories.js +2 -1
  438. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  439. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +2 -36
  440. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  441. package/lib/cs/CSCaseView/CSAppShell.stories.js +6 -19
  442. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  443. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  444. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  445. package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
  446. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
  447. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +2 -2
  448. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  449. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +4 -4
  450. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  451. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -8
  452. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  453. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +3 -3
  454. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  455. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  456. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  457. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  458. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  459. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  460. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  461. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  462. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  463. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -7
  464. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  465. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +6 -30
  466. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  467. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  468. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  469. package/lib/cs/TaskManager/TaskManager.mocks.js +7 -0
  470. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  471. package/lib/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  472. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  473. package/lib/cs/TaskManager/TaskManager.stories.js +25 -29
  474. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  475. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  476. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  477. package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
  478. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  479. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  480. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  481. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  482. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  483. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  484. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  485. package/lib/dnd/DragDropList/DragDropList.stories.js +14 -85
  486. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  487. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  488. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  489. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  490. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  491. package/lib/rte/Editor/Editor.mocks.d.ts +6 -0
  492. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  493. package/lib/rte/Editor/Editor.mocks.js +23 -0
  494. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  495. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  496. package/lib/rte/Editor/Editor.stories.js +2 -22
  497. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  498. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  499. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  500. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  501. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  502. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  503. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  504. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  505. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  506. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  507. package/lib/social/Chat/RepeatingView.stories.js +16 -46
  508. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  509. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  510. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  511. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  512. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  513. package/lib/social/Email/Email.mocks.d.ts +155 -2
  514. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  515. package/lib/social/Email/Email.mocks.js +361 -0
  516. package/lib/social/Email/Email.mocks.js.map +1 -1
  517. package/lib/social/Email/Email.stories.d.ts +14 -14
  518. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  519. package/lib/social/Email/Email.stories.js +117 -423
  520. package/lib/social/Email/Email.stories.js.map +1 -1
  521. package/lib/social/Email/Email.styles.d.ts +4 -0
  522. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  523. package/lib/social/Email/Email.styles.js +14 -0
  524. package/lib/social/Email/Email.styles.js.map +1 -0
  525. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  526. package/lib/social/Feed/Feed.stories.js +23 -18
  527. package/lib/social/Feed/Feed.stories.js.map +1 -1
  528. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  529. package/lib/social/Feed/FeedPost.stories.js +30 -20
  530. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  531. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  532. package/lib/social/Feed/FeedReply.stories.js +21 -16
  533. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  534. package/lib/work/CaseView/MobileCaseView.stories.d.ts +2 -7
  535. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  536. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  537. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  538. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  539. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  540. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  541. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -6
  542. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  543. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +2 -172
  544. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  545. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  546. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  547. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  548. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  549. package/lib/work/Timeline/Timeline.stories.d.ts +2 -0
  550. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  551. package/lib/work/Timeline/Timeline.stories.js +22 -2
  552. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  553. package/package.json +16 -17
  554. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  555. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  556. package/jsx/social/Email/Email.mocks.js +0 -395
  557. package/jsx/social/Email/Email.mocks.js.map +0 -1
@@ -1,170 +1,28 @@
1
- import { useState, useRef, useContext, createRef } from 'react';
1
+ import { useState, useRef, useContext, useCallback } from 'react';
2
2
  import { action } from '@storybook/addon-actions';
3
- import { array, boolean } from '@storybook/addon-knobs';
4
- import styled, { css } from 'styled-components';
5
- import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, hasProp, Flex, Button, ModalManagerContext, Modal, menuHelpers, defaultThemeProp, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel } from '@pega/cosmos-react-core';
3
+ import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, Flex, Button, ModalManagerContext, menuHelpers, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel } from '@pega/cosmos-react-core';
6
4
  import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
7
- import { Email, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList } from '@pega/cosmos-react-social';
8
- import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, EntityListMockData, EmailMockData, viewAnalysisEmailHeaderMock, topicListMock } from './Email.mocks';
5
+ import { Email as EmailComponent, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList } from '@pega/cosmos-react-social';
6
+ import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, EntityListMockData, viewAnalysisEmailHeaderMock, topicListMock, emailActions, generateEmailConversationParticipants, templates, handleExternalEntry, emailDemoActions, launchEmailComposer, LaunchAction, baseComposerProps, sentiment, emailSummaryItems, mockEmails, mockSuggestedReplies, mockEmailBodyTemplates } from './Email.mocks';
7
+ import { StyledEmailCardContent, StyledViewAnalysis } from './Email.styles';
9
8
  registerIcon(filterIcon);
10
9
  export default {
11
10
  title: 'Social/Email',
12
- component: Email
11
+ component: EmailComponent
13
12
  };
14
- const { emails: mockEmails, suggestedReplies: mockSuggestedReplies, emailBodyTemplates: mockEmailBodyTemplates } = EmailMockData;
15
- const handleExternalEntry = (filterValue) => {
16
- const pattern = /^[\w.\-_]+@[a-zA-Z]+(\.[a-zA-Z]{2,3}){1,2}$/;
17
- const matched = filterValue.match(pattern);
18
- return !!matched?.input;
19
- };
20
- const templates = mockEmailBodyTemplates.map(({ id, title }) => {
21
- return {
22
- id,
23
- title
24
- };
25
- });
26
- const baseComposerProps = {
27
- participants,
28
- externalValidator: handleExternalEntry,
29
- to: {
30
- reply: toParticipants.slice(0, 1),
31
- replyAll: toParticipants
32
- },
33
- cc: ccParticipants,
34
- subject: '',
35
- bodyContent: '',
36
- onSend: action('On Send'),
37
- onCancel: () => {
38
- action('cancelled email composing');
39
- },
40
- templates
41
- };
42
- var LaunchAction;
43
- (function (LaunchAction) {
44
- LaunchAction[LaunchAction["REPLY"] = 0] = "REPLY";
45
- LaunchAction[LaunchAction["REPLYALL"] = 1] = "REPLYALL";
46
- LaunchAction[LaunchAction["SUGGESTION"] = 2] = "SUGGESTION";
47
- LaunchAction[LaunchAction["FORWARD"] = 3] = "FORWARD";
48
- })(LaunchAction || (LaunchAction = {}));
49
- const composerModals = {};
50
- const getCompositeId = (id, launchAction) => {
51
- return `${id}-${launchAction}`;
52
- };
53
- const handleComposerCancel = (compositeID) => {
54
- composerModals[compositeID]?.dismissModal();
55
- composerModals[compositeID]?.unMountModal();
56
- delete composerModals[compositeID];
57
- };
58
- const launchEmailComposer = (id, launchAction, composerProps, create) => {
59
- const compositeId = getCompositeId(id, launchAction);
60
- const composerRef = createRef();
61
- const modalControls = create(() => {
62
- return (<Modal heading={composerProps.subject} options={{ id: { compositeId } }}>
63
- <EmailComposer {...composerProps} ref={composerRef} onCancel={() => handleComposerCancel(compositeId)}/>
64
- </Modal>);
65
- }, { center: true }, { minimizable: true, maximizable: true, dockable: true });
66
- composerModals[compositeId] = {
67
- dismissModal: modalControls.dismiss,
68
- unMountModal: modalControls.unmount,
69
- composerRef
70
- };
71
- };
72
- const emailActions = (<MenuButton text='Email actions' variant='simple' icon='more' iconOnly menu={{
73
- items: [
74
- {
75
- id: createUID(),
76
- primary: 'Reply',
77
- onClick: action('On reply')
78
- },
79
- {
80
- id: createUID(),
81
- primary: 'Reply all',
82
- onClick: action('On reply all')
83
- },
84
- {
85
- id: createUID(),
86
- primary: 'Forward',
87
- onClick: action('Forward')
88
- }
89
- ]
90
- }}/>);
91
- const emailDemoActions = (create, subject, onTemplateChange) => {
92
- const id = createUID();
93
- return (<MenuButton text='Email actions' variant='simple' icon='more' iconOnly menu={{
94
- items: [
95
- {
96
- id: createUID(),
97
- primary: 'Reply',
98
- onClick: () => launchEmailComposer(id, LaunchAction.REPLY, {
99
- ...baseComposerProps,
100
- onTemplateChange,
101
- responseType: 'reply',
102
- subject: `Re-${subject}` || ''
103
- }, create)
104
- },
105
- {
106
- id: createUID(),
107
- primary: 'Reply all',
108
- onClick: () => launchEmailComposer(id, LaunchAction.REPLYALL, {
109
- ...baseComposerProps,
110
- onTemplateChange,
111
- responseType: 'replyAll',
112
- cc: [],
113
- subject: `Re-${subject}` || ''
114
- }, create)
115
- },
116
- {
117
- id: createUID(),
118
- primary: 'Forward',
119
- onClick: () => launchEmailComposer(id, LaunchAction.FORWARD, {
120
- ...baseComposerProps,
121
- onTemplateChange,
122
- responseType: 'forward',
123
- subject: `Fw-${subject}` || ''
124
- }, create)
125
- }
126
- ]
127
- }}/>);
128
- };
129
- const generateEmailConversationParticipants = (emails, fields) => {
130
- let l;
131
- if (fields) {
132
- l = [...fields];
133
- }
134
- else {
135
- l = ['from', 'to', 'cc', 'bcc'];
136
- }
137
- const emailUsers = emails.map(emailItem => {
138
- return l.map(n => {
139
- if (hasProp(emailItem, n)) {
140
- return emailItem[n];
141
- }
142
- return [];
143
- });
144
- });
145
- return [...new Set(Array.from(emailUsers).flat(2))];
146
- };
147
- const StyledEmailCardContent = styled(CardContent)(({ theme }) => {
148
- return css `
149
- &&&& {
150
- padding: calc(2 * ${theme.base.spacing}) 0;
151
- }
152
- `;
153
- });
154
- StyledEmailCardContent.defaultProps = defaultThemeProp;
155
- export const email = () => {
13
+ export const Email = (args) => {
156
14
  return (<Card>
157
15
  <StyledEmailCardContent>
158
- <Email id={createUID()} timeStamp='2021-01-05T09:12' from={mockEmails['Laura Stevens']} cc={[mockEmails['Adam Gillchrist'], mockEmails['John Paul']]} bcc={[mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']]} to={[mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']]} body='<div> Hi, <br /> <br /> <div>Sure.. Here is your E-Ticket(H-765437) !! </div> <br /><br /> Regards, <br /> Laura Stevens </div>' subject='I have a quick question on travel' onReply={action('On reply')} onReplyAll={action('On reply all')} onForward={action('On forward')} onSuggestionClick={action('On Suggested reply clicked')} sentiment={{
16
+ <EmailComponent id={createUID()} timeStamp='2022-02-24T09:12' from={mockEmails['Laura Stevens']} cc={[mockEmails['Adam Gillchrist'], mockEmails['John Paul']]} bcc={[mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']]} to={[mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']]} body='<div> Hi Team, <br /> <br /> <div>Please find the below conversation &amp; let us know the best fare (including taxes) per person.</div><br />Regards, <br /> Laura Stevens </div>' forwardedContent={args.forwardedContent} subject='Regarding flight booking' onReply={action('On reply')} onReplyAll={action('On reply all')} onForward={action('On forward')} onSuggestionClick={action('On Suggested reply clicked')} sentiment={{
159
17
  variant: 'positive'
160
18
  }} actions={emailActions} suggestions={mockSuggestedReplies} attachments={[
161
19
  {
162
- id: createUID(),
20
+ id: 'attachment_0',
163
21
  value: 'https://pega.com/media/document.doc',
164
22
  displayText: 'Policy document'
165
23
  },
166
24
  {
167
- id: createUID(),
25
+ id: 'attachment_1',
168
26
  value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
169
27
  displayText: 'E-Ticket'
170
28
  }
@@ -178,9 +36,29 @@ export const email = () => {
178
36
  </StyledEmailCardContent>
179
37
  </Card>);
180
38
  };
181
- const StyledViewAnalysis = styled.div `
182
- width: 18rem;
183
- `;
39
+ Email.args = {
40
+ forwardedContent: `
41
+ <div id="pega-email-message-forward" style="font-family:OpenSans,sans-serif; border-left: 1px solid #c4c4c4; padding-left: 8px;">
42
+ <div>
43
+ <p class="pega-email-forward-header" style="font-size:smaller;color:#90909D;">--------------------Forwarded message--------------------<br />From: Person, Example &lt;example.person@pega.com&gt; &nbsp;<br />Date: Feb 23, 2022 9:29:59 PM&nbsp;<br />Subject: Regarding flight booking &nbsp;<br />To: Laura, Stevens &lt;laurastevens@example.com&gt;<br />&nbsp;</p>
44
+ </div>
45
+ <div class="pega-email-forward-content">
46
+ <div class="WordSection1">
47
+ <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Hi,&nbsp; </span></p>
48
+ <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">&nbsp;&nbsp; </span></p>
49
+ <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">I need to book a flight from Hyderabad to Chennai.&nbsp; </span></p>
50
+ <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Please let me know the fare including taxes per each person. </span></p>
51
+ <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">&nbsp;&nbsp; </span></p>
52
+ <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Thanks,&nbsp; </span></p>
53
+ <p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Goutham </span></p>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ `
58
+ };
59
+ Email.argTypes = {
60
+ forwardedContent: { control: { type: 'text' } }
61
+ };
184
62
  export const ViewAnalysis = () => {
185
63
  const headerProps = {
186
64
  icon: 'list-number',
@@ -214,11 +92,11 @@ export const ViewAnalysis = () => {
214
92
  </Grid>
215
93
  </StyledViewAnalysis>);
216
94
  };
217
- export const emailEntities = () => {
95
+ export const EmailEntities = (args) => {
218
96
  const nestedEntities = ['Place: Nagercoil, Hyderabad', 'Location: Nagercoil'];
219
97
  return (<Card>
220
98
  <StyledEmailCardContent>
221
- <Email id={createUID()} timeStamp='2021-01-05T09:12' from={mockEmails['Laura Stevens']} cc={[mockEmails['Adam Gillchrist'], mockEmails['John Paul']]} bcc={[mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']]} to={[mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']]} body='<div>Hi,<br/><p>I am one of the customer of Indian Overseas Bank, Nagercoil branch, with code 3967. I have a saving bank account here. My account number is 6785420965476.</p><br/><p>I have been given a debit cum ATM card from this bank and the same has been lost when I was traveling from Nagercoil to Trichy by Bus on Jan 04, 2021. I remember that my ATM card number was 1920 6746 8653 1256.</p><br/>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to give me an new debit card as early as possible.<br/><br/>Regards,<br/>Laura Stevens</div>' entityHighlightMapping={boolean('Entity Highlighting', true)
99
+ <EmailComponent id={createUID()} timeStamp='2021-01-05T09:12' from={mockEmails['Laura Stevens']} cc={[mockEmails['Adam Gillchrist'], mockEmails['John Paul']]} bcc={[mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']]} to={[mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']]} body='<div>Hi,<br/><p>I am one of the customer of Indian Overseas Bank, <b><i>Nagercoil</i></b> branch, with code <b><a href="www.google.com"><i>3967</i></a></b>. I have a saving bank account here. My account number is <i>6785420965476</i>.</p><br/><p>I have been given a debit cum ATM card from this bank and the same has been lost when I was traveling from Nagercoil to Trichy by Bus on Jan 04, 2021. I remember that my ATM card number was 1920 6746 8653 1256.</p><br/>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to give me an new debit card as early as possible.<br/><br/>Regards,<br/>Laura Stevens</div>' entityHighlightMapping={args.enableEntityHighlighting
222
100
  ? [
223
101
  {
224
102
  value: '3967',
@@ -277,16 +155,46 @@ export const emailEntities = () => {
277
155
  description: 'Date'
278
156
  }
279
157
  ]
158
+ : undefined} contextMenu={args.enableContextMenu
159
+ ? {
160
+ heading: 'Copy to',
161
+ items: [
162
+ {
163
+ id: 'item_0',
164
+ primary: 'Field 1',
165
+ selected: false
166
+ },
167
+ {
168
+ id: 'item_1',
169
+ primary: 'Field 2',
170
+ selected: true
171
+ },
172
+ {
173
+ id: 'item_2',
174
+ primary: 'Field 3',
175
+ selected: true
176
+ }
177
+ ],
178
+ onItemClick: action('On Copy')
179
+ }
280
180
  : undefined} subject='I lost my debit card' onReply={action('On reply')} onReplyAll={action('On reply all')} onForward={action('On forward')} onSuggestionClick={action('On Suggested reply clicked')} sentiment={{
281
181
  variant: 'neutral'
282
182
  }} actions={emailActions} suggestions={mockSuggestedReplies}/>
283
183
  </StyledEmailCardContent>
284
184
  </Card>);
285
185
  };
186
+ EmailEntities.args = {
187
+ enableEntityHighlighting: true,
188
+ enableContextMenu: true
189
+ };
190
+ EmailEntities.argTypes = {
191
+ enableEntityHighlighting: { control: { type: 'boolean' } },
192
+ enableContextMenu: { control: { type: 'boolean' } }
193
+ };
286
194
  export const emailConversation = () => {
287
195
  const emailArr = [
288
196
  {
289
- id: createUID(),
197
+ id: 'item_0',
290
198
  timeStamp: '2021-01-05T09:12',
291
199
  from: mockEmails['Laura Stevens'],
292
200
  cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
@@ -301,7 +209,7 @@ export const emailConversation = () => {
301
209
  suggestions: mockSuggestedReplies
302
210
  },
303
211
  {
304
- id: createUID(),
212
+ id: 'item_1',
305
213
  timeStamp: '2021-01-02T03:12',
306
214
  from: mockEmails['Sara Davis'],
307
215
  cc: [mockEmails['Adam Gillchrist'], mockEmails['John Paul']],
@@ -365,12 +273,12 @@ export const EmailComposerDemo = () => {
365
273
  </CardContent>
366
274
  </Card>);
367
275
  };
368
- export const EmailDemo = ({ hideSuggestions }) => {
276
+ export const EmailDemo = (args) => {
369
277
  const onTemplateChange = id => {
370
278
  const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === id);
371
279
  return selectedTemplate?.content;
372
280
  };
373
- const actions = array('Actions', ['Transfer', 'End conversation']).map(name => ({
281
+ const actions = ['Transfer', 'End conversation'].map(name => ({
374
282
  primary: name,
375
283
  id: name,
376
284
  onClick: action(`Clicked ${name}`)
@@ -378,22 +286,22 @@ export const EmailDemo = ({ hideSuggestions }) => {
378
286
  const { create } = useContext(ModalManagerContext);
379
287
  const emailsData = [
380
288
  {
381
- id: createUID(),
289
+ id: 'item_0',
382
290
  timeStamp: '2021-01-05T09:12',
383
291
  from: participants[0],
384
292
  to: participants.slice(0, 2),
385
293
  body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Laura Stevens </div>',
386
294
  unRead: true,
387
295
  subject: 'Pause service',
388
- suggestions: hideSuggestions ? undefined : mockSuggestedReplies,
296
+ suggestions: args.hideSuggestions ? undefined : mockSuggestedReplies,
389
297
  attachments: [
390
298
  {
391
- id: createUID(),
299
+ id: 'item_1_0',
392
300
  value: 'https://pega.com/media/document.doc',
393
301
  displayText: 'Policy document'
394
302
  },
395
303
  {
396
- id: createUID(),
304
+ id: 'item_1_1',
397
305
  value: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',
398
306
  displayText: 'E-Ticket'
399
307
  }
@@ -406,7 +314,7 @@ export const EmailDemo = ({ hideSuggestions }) => {
406
314
  })
407
315
  },
408
316
  {
409
- id: createUID(),
317
+ id: 'item_1',
410
318
  timeStamp: '2021-01-02T03:12',
411
319
  from: participants[3],
412
320
  to: participants.slice(2, 4),
@@ -449,7 +357,7 @@ export const EmailDemo = ({ hideSuggestions }) => {
449
357
  }, create);
450
358
  },
451
359
  actions: emailActionItems,
452
- tags: hideSuggestions
360
+ tags: args.hideSuggestions
453
361
  ? undefined
454
362
  : {
455
363
  items: ['Pause service', 'Lost or stolen'],
@@ -505,7 +413,7 @@ export const EmailDemo = ({ hideSuggestions }) => {
505
413
  return {
506
414
  from: generateEmailConversationParticipants(emails, ['from'])[0],
507
415
  to: emails[0].to,
508
- id: createUID(),
416
+ id: `item_${i}`,
509
417
  timeStamp: emails[0].timeStamp,
510
418
  unReadEmailCount: emails.filter(item => item.unRead).length,
511
419
  emails,
@@ -518,7 +426,7 @@ export const EmailDemo = ({ hideSuggestions }) => {
518
426
  {
519
427
  from: generateEmailConversationParticipants(emailsData, ['from'])[0],
520
428
  to: generateEmailConversationParticipants(emailsData, ['to']),
521
- id: createUID(),
429
+ id: 'item_0',
522
430
  timeStamp: new Date(emailsData[0].timeStamp),
523
431
  unReadEmailCount: emailsData.filter(item => item.unRead).length,
524
432
  emails: emailsData
@@ -539,15 +447,21 @@ export const EmailDemo = ({ hideSuggestions }) => {
539
447
  <MenuButton variant='simple' text='More actions' icon='more' iconOnly portal menu={{ items: actions }}/>
540
448
  </Flex>),
541
449
  subject: 'Pause service'
542
- }} autoCollapse={boolean('Auto collapse', true)} conversations={boolean('Single conversation', true) ? singleEmailConversation : emailConversations}/>);
450
+ }} autoCollapse={args.autoCollapse} conversations={args.singleConversation ? singleEmailConversation : emailConversations}/>);
451
+ };
452
+ EmailDemo.args = {
453
+ autoCollapse: true,
454
+ hideSuggestions: false,
455
+ singleConversation: true
456
+ };
457
+ EmailDemo.argTypes = {
458
+ autoCollapse: { control: { type: 'boolean' } },
459
+ hideSuggestions: { control: { type: 'boolean' } },
460
+ singleConversation: { control: { type: 'boolean' } }
543
461
  };
544
462
  EmailDemo.parameters = {
545
463
  layout: 'fullscreen'
546
464
  };
547
- const sentiment = {
548
- variant: 'negative',
549
- labelHidden: true
550
- };
551
465
  export const EmailSummaryItemDemo = () => {
552
466
  const [active, setActive] = useState(false);
553
467
  return (<EmailSummaryItem style={{ width: '25rem' }} id={createUID()} activeParticipants={[
@@ -565,258 +479,34 @@ export const EmailSummaryItemDemo = () => {
565
479
  setActive(true);
566
480
  }}/>);
567
481
  };
568
- const emailSummaryItems = [
569
- {
570
- id: createUID(),
571
- activeParticipants: [
572
- { shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
573
- { shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' }
574
- ],
575
- message: 'I have a quick question on travel',
576
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
577
- topic: 'Travel request',
578
- sentiment,
579
- active: true,
580
- urgency: 85,
581
- unreadEmailCount: 4
582
- },
583
- {
584
- id: createUID(),
585
- activeParticipants: [
586
- {
587
- shortName: 'Nathan',
588
- fullName: 'Nathan Swanson',
589
- emailAddress: 'nathan.swanson@example.com'
590
- }
591
- ],
592
- message: 'My luggage did not drive!',
593
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
594
- topic: 'Missing Luggage',
595
- sentiment,
596
- urgency: 10,
597
- unreadEmailCount: 2
598
- },
599
- {
600
- id: createUID(),
601
- activeParticipants: [
602
- { shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
603
- ],
604
- message: 'Re: How much is a flight to Florida. Is there a discount going on?',
605
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
606
- topic: 'Travel request',
607
- sentiment,
608
- urgency: 65,
609
- unreadEmailCount: 1
610
- },
611
- {
612
- id: createUID(),
613
- activeParticipants: [
614
- { shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
615
- ],
616
- message: 'Re: Should I purchase travel insurance? How often do we need it?',
617
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
618
- topic: 'Travel request',
619
- sentiment,
620
- urgency: 85,
621
- unreadEmailCount: 6
622
- },
623
- {
624
- id: createUID(),
625
- activeParticipants: [
626
- { shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
627
- ],
628
- message: 'My next vacation',
629
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
630
- topic: 'Travel request',
631
- sentiment,
632
- urgency: 45
633
- },
634
- {
635
- id: createUID(),
636
- activeParticipants: [
637
- { shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
638
- { shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
639
- { shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
640
- ],
641
- message: 'Airport questions',
642
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
643
- topic: 'Travel request',
644
- sentiment,
645
- urgency: 35
646
- },
647
- {
648
- id: createUID(),
649
- activeParticipants: [
650
- { shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
651
- { shortName: 'Robert', fullName: 'Robert ', emailAddress: 'robert.downey@example.com' }
652
- ],
653
- message: 'I have a quick question on travel',
654
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
655
- topic: 'Travel request',
656
- sentiment,
657
- urgency: 85
658
- },
659
- {
660
- id: createUID(),
661
- activeParticipants: [
662
- {
663
- shortName: 'Nathan',
664
- fullName: 'Nathan Swanson',
665
- emailAddress: 'nathan.swanson@example.com'
666
- }
667
- ],
668
- message: 'My luggage did not drive!',
669
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
670
- topic: 'Missing Luggage',
671
- sentiment,
672
- urgency: 10
673
- },
674
- {
675
- id: createUID(),
676
- activeParticipants: [
677
- { shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
678
- ],
679
- message: 'Re: How much is a flight to Florida',
680
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
681
- topic: 'Travel request',
682
- sentiment,
683
- urgency: 65
684
- },
685
- {
686
- id: createUID(),
687
- activeParticipants: [
688
- { shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
689
- ],
690
- message: 'Re: Should I purchase travel insurance',
691
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
692
- topic: 'Travel request',
693
- sentiment,
694
- urgency: 85
695
- },
696
- {
697
- id: createUID(),
698
- activeParticipants: [
699
- { shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
700
- ],
701
- message: 'My next vacation',
702
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
703
- topic: 'Travel request',
704
- sentiment,
705
- urgency: 45
706
- },
707
- {
708
- id: createUID(),
709
- activeParticipants: [
710
- { shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
711
- { shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
712
- { shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
713
- ],
714
- message: 'Airport questions',
715
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
716
- topic: 'Travel request',
717
- sentiment,
718
- urgency: 35
719
- },
720
- {
721
- id: createUID(),
722
- activeParticipants: [
723
- { shortName: 'Robert', fullName: 'Robert Downer', emailAddress: 'robert.downey@example.com' },
724
- { shortName: 'Robert', fullName: 'Robert ', emailAddress: 'robert.downey@example.com' }
725
- ],
726
- message: 'I have a quick question on travel',
727
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
728
- topic: 'Travel request',
729
- sentiment,
730
- urgency: 85
731
- },
732
- {
733
- id: createUID(),
734
- activeParticipants: [
735
- {
736
- shortName: 'Nathan',
737
- fullName: 'Nathan Swanson',
738
- emailAddress: 'nathan.swanson@example.com'
739
- }
740
- ],
741
- message: 'My luggage did not drive!',
742
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
743
- topic: 'Missing Luggage',
744
- sentiment,
745
- urgency: 10
746
- },
747
- {
748
- id: createUID(),
749
- activeParticipants: [
750
- { shortName: 'Simpson', fullName: 'Glenn Simpson', emailAddress: 'glenn.simpson@example.com' }
751
- ],
752
- message: 'Re: How much is a flight to Florida',
753
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
754
- topic: 'Travel request',
755
- sentiment,
756
- urgency: 65
757
- },
758
- {
759
- id: createUID(),
760
- activeParticipants: [
761
- { shortName: 'Green', fullName: 'Ralph Green', emailAddress: 'ralph.green@example.com' }
762
- ],
763
- message: 'Re: Should I purchase travel insurance',
764
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
765
- topic: 'Travel request',
766
- sentiment,
767
- urgency: 85
768
- },
769
- {
770
- id: createUID(),
771
- activeParticipants: [
772
- { shortName: 'Greene', fullName: 'Fred Greene', emailAddress: 'Fred.greene@example.com' }
773
- ],
774
- message: 'My next vacation',
775
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
776
- topic: 'Travel request',
777
- sentiment,
778
- urgency: 45
779
- },
780
- {
781
- id: createUID(),
782
- activeParticipants: [
783
- { shortName: 'Smith', fullName: 'Aya Smith', emailAddress: 'aya.smith@example.com' },
784
- { shortName: 'Support', fullName: 'Support', emailAddress: 'support@example.com' },
785
- { shortName: 'Downer', fullName: 'Robert Downer', emailAddress: 'robert.downer@example.com' }
786
- ],
787
- message: 'Airport questions',
788
- timeStamp: new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24)),
789
- topic: 'Travel request',
790
- sentiment,
791
- urgency: 35
792
- }
793
- ];
794
482
  export const EmailSummaryListDemo = () => {
483
+ const INITIAL_CHUNK_SIZE = 9;
484
+ const APPEND_CHUNK_SIZE = 1;
795
485
  const emailSummaryListRef = useRef(null);
796
- const [allEmailItems, setAllEmailItems] = useState(emailSummaryItems);
486
+ const [allEmailItems, setAllEmailItems] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
797
487
  const [categories, setCategories] = useState([
798
488
  {
799
- id: createUID(),
489
+ id: 'item_0',
800
490
  primary: 'Default worklist',
801
491
  selected: false
802
492
  },
803
493
  {
804
- id: createUID(),
494
+ id: 'item_1',
805
495
  primary: 'Authors',
806
496
  selected: false
807
497
  },
808
498
  {
809
- id: createUID(),
499
+ id: 'item_2',
810
500
  primary: 'Administrators',
811
501
  selected: false
812
502
  },
813
503
  {
814
- id: createUID(),
504
+ id: 'item_3',
815
505
  primary: 'Managers',
816
506
  selected: false
817
507
  },
818
508
  {
819
- id: createUID(),
509
+ id: 'item_4',
820
510
  primary: 'Users',
821
511
  selected: false
822
512
  }
@@ -832,7 +522,25 @@ export const EmailSummaryListDemo = () => {
832
522
  const onCategoryClick = (id) => {
833
523
  setCategories(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
834
524
  };
835
- return (<EmailSummaryList style={{ height: 'calc(100vh)', width: '25rem', margin: 'auto' }} ref={emailSummaryListRef} unreadEmailCount={99} categories={categories} items={allEmailItems} onItemClick={handleItemClick} onCategoryClick={onCategoryClick}/>);
525
+ const [loading, setLoading] = useState(false);
526
+ const [hasMore, setHasMore] = useState(true);
527
+ const loadMore = useCallback(() => {
528
+ if (!loading) {
529
+ setLoading(true);
530
+ setTimeout(() => {
531
+ setLoading(false);
532
+ setAllEmailItems(prevItems => {
533
+ const previousItemsLength = prevItems.length;
534
+ const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
535
+ if (newItems.length === 0) {
536
+ setHasMore(false);
537
+ }
538
+ return [...prevItems, ...newItems];
539
+ });
540
+ }, 1500);
541
+ }
542
+ }, [loading]);
543
+ return (<EmailSummaryList style={{ height: '100vh', width: '25rem', margin: 'auto' }} ref={emailSummaryListRef} unreadEmailCount={99} categories={categories} items={allEmailItems} onItemClick={handleItemClick} onCategoryClick={onCategoryClick} onLoadMore={hasMore ? loadMore : undefined} loading={loading} emptyMessage='No emails.'/>);
836
544
  };
837
545
  EmailSummaryListDemo.parameters = {
838
546
  layout: 'fullscreen'