@pega/cosmos-react-demos 3.0.0-dev.4.1 → 3.0.0-dev.6.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 (753) 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.map +1 -1
  10. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +2 -1
  11. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  12. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  13. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  14. package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +77 -13
  15. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
  16. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +2 -7
  17. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  18. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +14 -100
  19. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  20. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  21. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  22. package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
  23. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  24. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  25. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  26. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  27. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  28. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +2 -5
  29. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  30. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  31. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  32. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  33. package/jsx/build/LifeCycle/LifeCycle.mocks.js +106 -18
  34. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  35. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +2 -4
  36. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  37. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
  38. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  39. package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
  40. package/jsx/build/LifeCycle/utils.js +5 -4
  41. package/jsx/build/LifeCycle/utils.js.map +1 -1
  42. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +24 -0
  43. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  44. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +315 -0
  45. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
  46. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +2 -7
  47. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  48. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +5 -180
  49. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  50. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +45 -0
  51. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  52. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +78 -0
  53. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
  54. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +1 -0
  55. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  56. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +3 -79
  57. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  58. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +11 -0
  59. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  60. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +129 -0
  61. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
  62. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +1 -0
  63. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  64. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +4 -129
  65. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  66. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  67. package/jsx/build/Workbench/Workbench.stories.jsx +1 -9
  68. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  69. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  70. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  71. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  72. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  73. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  74. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  75. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +59 -56
  76. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  77. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  78. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  79. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  80. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  81. package/jsx/core/Button/Button.stories.jsx +6 -6
  82. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  83. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  84. package/jsx/core/ColorPicker/ColorPicker.stories.jsx +2 -10
  85. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  86. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  87. package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  88. package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
  89. package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  90. package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
  91. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  92. package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
  93. package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
  94. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  95. package/jsx/core/Configuration/Configuration.stories.jsx +2 -18
  96. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  97. package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
  98. package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
  99. package/jsx/core/Configuration/Configuration.styles.js +12 -0
  100. package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
  101. package/jsx/core/CreditCard/CreditCard.stories.d.ts +10 -0
  102. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  103. package/jsx/core/CreditCard/CreditCard.stories.jsx +10 -0
  104. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
  105. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  106. package/jsx/core/DateTime/DateTime.stories.jsx +1 -0
  107. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  108. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  109. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  110. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +69 -1
  111. package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
  112. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  113. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +2 -70
  114. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  115. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
  116. package/jsx/core/HTML/HTML.stories.jsx +1 -1
  117. package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
  118. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  119. package/jsx/core/Icon/Icon.stories.jsx +5 -27
  120. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  121. package/jsx/core/Icon/Icon.styles.d.ts +4 -0
  122. package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
  123. package/jsx/core/Icon/Icon.styles.js +25 -0
  124. package/jsx/core/Icon/Icon.styles.js.map +1 -0
  125. package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
  126. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  127. package/jsx/core/Link/Link.stories.d.ts +1 -11
  128. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  129. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  130. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  131. package/jsx/core/Number/Number.stories.jsx +2 -0
  132. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  133. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  134. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +1 -11
  135. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  136. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  137. package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  138. package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
  139. package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  140. package/jsx/core/Tooltip/Tooltip.stories.d.ts +2 -5
  141. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  142. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  143. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  144. package/jsx/core/Tree/Tree.stories.jsx +2 -2
  145. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  146. package/jsx/cs/Article/Article.stories.d.ts +2 -10
  147. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  148. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  149. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +2 -11
  150. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  151. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  152. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +2 -36
  153. package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  154. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +6 -33
  155. package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
  156. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  157. package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  158. package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSCaseView.mocks.jsx} +30 -1
  159. package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +1 -0
  160. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +2 -2
  161. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  162. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +4 -4
  163. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  164. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -8
  165. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  166. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +3 -3
  167. package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  168. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  169. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  170. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
  171. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  172. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  173. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  174. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  175. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  176. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -7
  177. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  178. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +6 -30
  179. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  180. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  181. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  182. package/jsx/cs/TaskManager/TaskManager.mocks.js +7 -0
  183. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  184. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  185. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  186. package/jsx/cs/TaskManager/TaskManager.stories.jsx +25 -29
  187. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  188. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  189. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  190. package/jsx/cs/TaskManager/TaskManager.styles.js +8 -0
  191. package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
  192. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  193. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  194. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
  195. package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
  196. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  197. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  198. package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
  199. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  200. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  201. package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  202. package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
  203. package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  204. package/jsx/rte/Editor/Editor.mocks.d.ts +6 -0
  205. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
  206. package/jsx/rte/Editor/Editor.mocks.jsx +20 -0
  207. package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
  208. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  209. package/jsx/rte/Editor/Editor.stories.jsx +1 -19
  210. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  211. package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
  212. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  213. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  214. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  215. package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
  216. package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  217. package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
  218. package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
  219. package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
  220. package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  221. package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
  222. package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
  223. package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
  224. package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  225. package/jsx/social/Chat/RepeatingView.styles.js +22 -0
  226. package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
  227. package/jsx/social/Email/Email.mocks.d.ts +155 -2
  228. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  229. package/jsx/social/Email/Email.mocks.jsx +766 -0
  230. package/jsx/social/Email/Email.mocks.jsx.map +1 -0
  231. package/jsx/social/Email/Email.stories.d.ts +14 -14
  232. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  233. package/jsx/social/Email/Email.stories.jsx +108 -435
  234. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  235. package/jsx/social/Email/Email.styles.d.ts +4 -0
  236. package/jsx/social/Email/Email.styles.d.ts.map +1 -0
  237. package/jsx/social/Email/Email.styles.js +14 -0
  238. package/jsx/social/Email/Email.styles.js.map +1 -0
  239. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  240. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  241. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  242. package/jsx/social/Feed/Feed.stories.jsx +23 -18
  243. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  244. package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
  245. package/jsx/social/Feed/FeedPost.stories.jsx +30 -20
  246. package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
  247. package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
  248. package/jsx/social/Feed/FeedReply.stories.jsx +21 -16
  249. package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
  250. package/jsx/work/CaseView/MobileCaseView.stories.d.ts +2 -7
  251. package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  252. package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
  253. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  254. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  255. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
  256. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
  257. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -6
  258. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  259. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +2 -174
  260. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  261. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  262. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  263. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  264. package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  265. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  266. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  267. package/lib/build/AppHeader/AppHeader.stories.js +1 -1
  268. package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
  269. package/lib/build/AppShell/AppShell.mocks.d.ts +17 -0
  270. package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
  271. package/lib/build/AppShell/AppShell.mocks.js +16 -0
  272. package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
  273. package/lib/build/AppShell/AppShell.stories.d.ts +2 -0
  274. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  275. package/lib/build/AppShell/AppShell.stories.js +7 -22
  276. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  277. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  278. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +3 -2
  279. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  280. package/lib/build/DynamicContentEditor/FieldSelector.js +1 -1
  281. package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -1
  282. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +19 -2
  283. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
  284. package/lib/build/FlowModeller/FlowModeller.mocks.js +64 -12
  285. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
  286. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +2 -7
  287. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  288. package/lib/build/FlowModeller/FlowModeller.stories.js +19 -94
  289. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  290. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
  291. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
  292. package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
  293. package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
  294. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
  295. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
  296. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
  297. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
  298. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +2 -5
  299. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  300. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
  301. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  302. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
  303. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
  304. package/lib/build/LifeCycle/LifeCycle.mocks.js +106 -18
  305. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
  306. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +2 -4
  307. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  308. package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
  309. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  310. package/lib/build/LifeCycle/utils.d.ts.map +1 -1
  311. package/lib/build/LifeCycle/utils.js +5 -4
  312. package/lib/build/LifeCycle/utils.js.map +1 -1
  313. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +24 -0
  314. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
  315. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +136 -0
  316. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
  317. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +2 -7
  318. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  319. package/lib/build/ObjectSelect/ObjectSelect.stories.js +16 -140
  320. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  321. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +45 -0
  322. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
  323. package/lib/build/PageTemplates/GalleryPage.mocks.js +79 -0
  324. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
  325. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +1 -0
  326. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  327. package/lib/build/PageTemplates/GalleryPage.stories.js +4 -80
  328. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  329. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +11 -0
  330. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
  331. package/lib/build/PageTemplates/PageTemplates.mocks.js +96 -0
  332. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
  333. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +1 -0
  334. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  335. package/lib/build/PageTemplates/PageTemplates.stories.js +19 -109
  336. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  337. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  338. package/lib/build/Workbench/Workbench.stories.js +12 -20
  339. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  340. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
  341. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
  342. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +13 -0
  343. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
  344. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +16 -8
  345. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  346. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +59 -57
  347. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  348. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
  349. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
  350. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
  351. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
  352. package/lib/core/AppShell/AppShell.mocks.js +5 -5
  353. package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
  354. package/lib/core/AppShell/AppShell.stories.js +8 -8
  355. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  356. package/lib/core/Avatar/Avatar.stories.js +6 -6
  357. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  358. package/lib/core/Backdrop/Backdrop.stories.js +2 -2
  359. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  360. package/lib/core/Badges/Alert.stories.js +1 -1
  361. package/lib/core/Badges/Alert.stories.js.map +1 -1
  362. package/lib/core/Badges/Count.stories.js +1 -1
  363. package/lib/core/Badges/Count.stories.js.map +1 -1
  364. package/lib/core/Badges/Selection.stories.js +1 -1
  365. package/lib/core/Badges/Selection.stories.js.map +1 -1
  366. package/lib/core/Badges/Status.stories.js +2 -2
  367. package/lib/core/Badges/Status.stories.js.map +1 -1
  368. package/lib/core/Badges/Tag.stories.js +1 -1
  369. package/lib/core/Badges/Tag.stories.js.map +1 -1
  370. package/lib/core/Banner/Banner.mocks.js +1 -1
  371. package/lib/core/Banner/Banner.mocks.js.map +1 -1
  372. package/lib/core/Banner/Banner.stories.js +11 -11
  373. package/lib/core/Banner/Banner.stories.js.map +1 -1
  374. package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
  375. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  376. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  377. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  378. package/lib/core/Button/Button.stories.js +8 -8
  379. package/lib/core/Button/Button.stories.js.map +1 -1
  380. package/lib/core/Card/Card.stories.js +4 -4
  381. package/lib/core/Card/Card.stories.js.map +1 -1
  382. package/lib/core/Checkbox/Checkbox.stories.js +3 -3
  383. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  384. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +3 -3
  385. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  386. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  387. package/lib/core/ColorPicker/ColorPicker.stories.js +7 -15
  388. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  389. package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
  390. package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
  391. package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
  392. package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
  393. package/lib/core/ComboBox/ComboBox.stories.js +6 -6
  394. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  395. package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
  396. package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
  397. package/lib/core/Configuration/Configuration.mocks.js +6 -0
  398. package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
  399. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  400. package/lib/core/Configuration/Configuration.stories.js +13 -25
  401. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  402. package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
  403. package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
  404. package/lib/core/Configuration/Configuration.styles.js +12 -0
  405. package/lib/core/Configuration/Configuration.styles.js.map +1 -0
  406. package/lib/core/CreditCard/CreditCard.stories.d.ts +10 -0
  407. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
  408. package/lib/core/CreditCard/CreditCard.stories.js +11 -0
  409. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
  410. package/lib/core/Currency/Currency.stories.js +2 -2
  411. package/lib/core/Currency/Currency.stories.js.map +1 -1
  412. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  413. package/lib/core/DateTime/DateTime.stories.js +11 -9
  414. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  415. package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
  416. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  417. package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
  418. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  419. package/lib/core/Drawer/Drawer.stories.js +4 -4
  420. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  421. package/lib/core/Email/EmailDisplay.stories.js +1 -1
  422. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  423. package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
  424. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  425. package/lib/core/EmptyState/EmptyState.stories.js +1 -1
  426. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  427. package/lib/core/ErrorState/ErrorState.stories.js +1 -1
  428. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  429. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
  430. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  431. package/lib/core/FieldGroup/FieldGroup.stories.js +1 -1
  432. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  433. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
  434. package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  435. package/lib/core/FieldGroup/FieldGroupList.mocks.js +46 -2
  436. package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
  437. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  438. package/lib/core/FieldGroup/FieldGroupList.stories.js +13 -57
  439. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  440. package/lib/core/FieldValueList/FieldValueList.stories.js +4 -4
  441. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  442. package/lib/core/File/FileDisplay.stories.js +10 -10
  443. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  444. package/lib/core/File/FileInput.stories.js +2 -2
  445. package/lib/core/File/FileInput.stories.js.map +1 -1
  446. package/lib/core/Flex/FlexContainer.stories.js +7 -7
  447. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  448. package/lib/core/Flex/FlexItem.stories.js +3 -3
  449. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  450. package/lib/core/Form/Form.mocks.js +3 -3
  451. package/lib/core/Form/Form.mocks.js.map +1 -1
  452. package/lib/core/Form/Form.stories.js +8 -8
  453. package/lib/core/Form/Form.stories.js.map +1 -1
  454. package/lib/core/Grid/GridContainer.stories.js +9 -9
  455. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  456. package/lib/core/Grid/GridItem.stories.js +3 -3
  457. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  458. package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
  459. package/lib/core/HTML/HTML.stories.js +1 -1
  460. package/lib/core/HTML/HTML.stories.js.map +1 -1
  461. package/lib/core/Icon/Icon.mocks.js +1 -1
  462. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  463. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  464. package/lib/core/Icon/Icon.stories.js +12 -35
  465. package/lib/core/Icon/Icon.stories.js.map +1 -1
  466. package/lib/core/Icon/Icon.styles.d.ts +4 -0
  467. package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
  468. package/lib/core/Icon/Icon.styles.js +25 -0
  469. package/lib/core/Icon/Icon.styles.js.map +1 -0
  470. package/lib/core/IconPicker/IconPicker.stories.js +2 -2
  471. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  472. package/lib/core/Image/Image.stories.js +1 -1
  473. package/lib/core/Image/Image.stories.js.map +1 -1
  474. package/lib/core/Input/Input.stories.js +2 -2
  475. package/lib/core/Input/Input.stories.js.map +1 -1
  476. package/lib/core/Label/Label.stories.js +2 -2
  477. package/lib/core/Label/Label.stories.js.map +1 -1
  478. package/lib/core/Lightbox/Lightbox.stories.js +3 -3
  479. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  480. package/lib/core/Link/Link.stories.d.ts +1 -11
  481. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  482. package/lib/core/Link/Link.stories.js +3 -3
  483. package/lib/core/Link/Link.stories.js.map +1 -1
  484. package/lib/core/List/CommaSeparatedList.stories.js +1 -1
  485. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  486. package/lib/core/List/OrderedList.stories.js +1 -1
  487. package/lib/core/List/OrderedList.stories.js.map +1 -1
  488. package/lib/core/List/UnorderedList.stories.js +1 -1
  489. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  490. package/lib/core/ListToolbar/ListToolbar.mocks.js +5 -5
  491. package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -1
  492. package/lib/core/ListToolbar/ListToolbar.stories.js +2 -2
  493. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  494. package/lib/core/Location/Location.stories.js +4 -4
  495. package/lib/core/Location/Location.stories.js.map +1 -1
  496. package/lib/core/Menu/Menu.stories.js +5 -5
  497. package/lib/core/Menu/Menu.stories.js.map +1 -1
  498. package/lib/core/MenuButton/MenuButton.stories.js +9 -9
  499. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  500. package/lib/core/MetaList/MetaList.stories.js +3 -3
  501. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  502. package/lib/core/Modal/Modal.mocks.js +8 -8
  503. package/lib/core/Modal/Modal.mocks.js.map +1 -1
  504. package/lib/core/Modal/Modal.stories.js +29 -29
  505. package/lib/core/Modal/Modal.stories.js.map +1 -1
  506. package/lib/core/MultiStep/MultiStep.stories.js +3 -3
  507. package/lib/core/MultiStep/MultiStep.stories.js.map +1 -1
  508. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  509. package/lib/core/Number/Number.stories.js +5 -3
  510. package/lib/core/Number/Number.stories.js.map +1 -1
  511. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  512. package/lib/core/PageTemplates/PageTemplates.stories.js +28 -38
  513. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  514. package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
  515. package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
  516. package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
  517. package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
  518. package/lib/core/Pagination/Pagination.stories.js +1 -1
  519. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  520. package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
  521. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  522. package/lib/core/Phone/Phone.stories.js +2 -2
  523. package/lib/core/Phone/Phone.stories.js.map +1 -1
  524. package/lib/core/Popover/Popover.stories.js +2 -2
  525. package/lib/core/Popover/Popover.stories.js.map +1 -1
  526. package/lib/core/Progress/Progress.stories.js +3 -3
  527. package/lib/core/Progress/Progress.stories.js.map +1 -1
  528. package/lib/core/RadioButton/RadioButton.stories.js +3 -3
  529. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  530. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +3 -3
  531. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  532. package/lib/core/Rating/Rating.stories.js +2 -2
  533. package/lib/core/Rating/Rating.stories.js.map +1 -1
  534. package/lib/core/SearchInput/SearchInput.stories.js +2 -2
  535. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  536. package/lib/core/Select/Select.stories.js +2 -2
  537. package/lib/core/Select/Select.stories.js.map +1 -1
  538. package/lib/core/Sentiment/Sentiment.stories.js +2 -2
  539. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  540. package/lib/core/Slider/Slider.stories.js +1 -1
  541. package/lib/core/Slider/Slider.stories.js.map +1 -1
  542. package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
  543. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  544. package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
  545. package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
  546. package/lib/core/SummaryList/SummaryList.stories.js +5 -5
  547. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  548. package/lib/core/Switch/Switch.stories.js +3 -3
  549. package/lib/core/Switch/Switch.stories.js.map +1 -1
  550. package/lib/core/Table/Table.mocks.js +1 -1
  551. package/lib/core/Table/Table.mocks.js.map +1 -1
  552. package/lib/core/Table/Table.stories.js +9 -9
  553. package/lib/core/Table/Table.stories.js.map +1 -1
  554. package/lib/core/Tabs/Tabs.stories.js +3 -3
  555. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  556. package/lib/core/Text/Text.stories.js +2 -2
  557. package/lib/core/Text/Text.stories.js.map +1 -1
  558. package/lib/core/TextArea/TextArea.stories.js +2 -2
  559. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  560. package/lib/core/Toaster/Toaster.stories.js +2 -2
  561. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  562. package/lib/core/Tooltip/Tooltip.stories.d.ts +2 -5
  563. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  564. package/lib/core/Tooltip/Tooltip.stories.js +2 -2
  565. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  566. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  567. package/lib/core/Tree/Tree.stories.js +5 -5
  568. package/lib/core/Tree/Tree.stories.js.map +1 -1
  569. package/lib/core/URL/URL.stories.js +1 -1
  570. package/lib/core/URL/URL.stories.js.map +1 -1
  571. package/lib/cs/Article/Article.stories.d.ts +2 -10
  572. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  573. package/lib/cs/Article/Article.stories.js +9 -9
  574. package/lib/cs/Article/Article.stories.js.map +1 -1
  575. package/lib/cs/ArticleList/ArticleList.stories.d.ts +2 -11
  576. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  577. package/lib/cs/ArticleList/ArticleList.stories.js +11 -11
  578. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  579. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +2 -36
  580. package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
  581. package/lib/cs/CSCaseView/CSAppShell.stories.js +15 -28
  582. package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
  583. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +9 -0
  584. package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -1
  585. package/lib/cs/CSCaseView/CSCaseView.mocks.js +16 -0
  586. package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -1
  587. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +2 -2
  588. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  589. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +6 -6
  590. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  591. package/lib/cs/DialPad/DialPad.stories.js +1 -1
  592. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  593. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -8
  594. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  595. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +18 -18
  596. package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  597. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
  598. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  599. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
  600. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  601. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
  602. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
  603. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
  604. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
  605. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +2 -7
  606. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  607. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +7 -31
  608. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  609. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +6 -0
  610. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
  611. package/lib/cs/TaskManager/TaskManager.mocks.js +7 -0
  612. package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
  613. package/lib/cs/TaskManager/TaskManager.stories.d.ts +6 -5
  614. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  615. package/lib/cs/TaskManager/TaskManager.stories.js +33 -37
  616. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  617. package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
  618. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
  619. package/lib/cs/TaskManager/TaskManager.styles.js +8 -0
  620. package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
  621. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
  622. package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
  623. package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
  624. package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
  625. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
  626. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  627. package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
  628. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  629. package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
  630. package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
  631. package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
  632. package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
  633. package/lib/rte/Editor/Editor.mocks.d.ts +6 -0
  634. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
  635. package/lib/rte/Editor/Editor.mocks.js +23 -0
  636. package/lib/rte/Editor/Editor.mocks.js.map +1 -0
  637. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  638. package/lib/rte/Editor/Editor.stories.js +7 -27
  639. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  640. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
  641. package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
  642. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -3
  643. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  644. package/lib/rte/RichTextEditor/RichTextEditor.stories.js +5 -5
  645. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  646. package/lib/rte/RichTextEditor/RichTextViewer.stories.js +5 -5
  647. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  648. package/lib/social/Chat/Chat.stories.js +27 -27
  649. package/lib/social/Chat/Chat.stories.js.map +1 -1
  650. package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
  651. package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
  652. package/lib/social/Chat/RepeatingView.mocks.js +11 -0
  653. package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
  654. package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
  655. package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
  656. package/lib/social/Chat/RepeatingView.stories.js +18 -48
  657. package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
  658. package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
  659. package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
  660. package/lib/social/Chat/RepeatingView.styles.js +22 -0
  661. package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
  662. package/lib/social/Email/Email.mocks.d.ts +155 -2
  663. package/lib/social/Email/Email.mocks.d.ts.map +1 -1
  664. package/lib/social/Email/Email.mocks.js +372 -0
  665. package/lib/social/Email/Email.mocks.js.map +1 -1
  666. package/lib/social/Email/Email.stories.d.ts +14 -14
  667. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  668. package/lib/social/Email/Email.stories.js +120 -460
  669. package/lib/social/Email/Email.stories.js.map +1 -1
  670. package/lib/social/Email/Email.styles.d.ts +4 -0
  671. package/lib/social/Email/Email.styles.d.ts.map +1 -0
  672. package/lib/social/Email/Email.styles.js +14 -0
  673. package/lib/social/Email/Email.styles.js.map +1 -0
  674. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  675. package/lib/social/Feed/Feed.mocks.js +40 -40
  676. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  677. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  678. package/lib/social/Feed/Feed.stories.js +29 -24
  679. package/lib/social/Feed/Feed.stories.js.map +1 -1
  680. package/lib/social/Feed/FeedNewPost.stories.js +2 -2
  681. package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
  682. package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
  683. package/lib/social/Feed/FeedPost.stories.js +37 -27
  684. package/lib/social/Feed/FeedPost.stories.js.map +1 -1
  685. package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
  686. package/lib/social/Feed/FeedReply.stories.js +25 -20
  687. package/lib/social/Feed/FeedReply.stories.js.map +1 -1
  688. package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
  689. package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
  690. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +1 -1
  691. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  692. package/lib/work/CaseView/Attachments.mocks.js +15 -15
  693. package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
  694. package/lib/work/CaseView/CaseView.mocks.js +7 -7
  695. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  696. package/lib/work/CaseView/CaseView.stories.js +21 -21
  697. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  698. package/lib/work/CaseView/Details.mocks.js +1 -1
  699. package/lib/work/CaseView/Details.mocks.js.map +1 -1
  700. package/lib/work/CaseView/FileService.mock.js +1 -1
  701. package/lib/work/CaseView/FileService.mock.js.map +1 -1
  702. package/lib/work/CaseView/MobileCaseView.stories.d.ts +2 -7
  703. package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
  704. package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
  705. package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
  706. package/lib/work/CaseView/Pulse.mocks.js +2 -2
  707. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  708. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
  709. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
  710. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
  711. package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
  712. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -6
  713. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  714. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +4 -174
  715. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  716. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
  717. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
  718. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
  719. package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
  720. package/lib/work/Confirmation/Confirmation.stories.js +2 -2
  721. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  722. package/lib/work/Details/Details.stories.js +15 -15
  723. package/lib/work/Details/Details.stories.js.map +1 -1
  724. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  725. package/lib/work/Glimpse/Glimpse.stories.js +3 -3
  726. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  727. package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
  728. package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
  729. package/lib/work/SearchResults/SearchResults.stories.js +11 -11
  730. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  731. package/lib/work/Stages/Stages.stories.js +2 -2
  732. package/lib/work/Stages/Stages.stories.js.map +1 -1
  733. package/lib/work/Stakeholders/Stakeholders.mocks.js +2 -2
  734. package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
  735. package/lib/work/Stakeholders/Stakeholders.stories.js +1 -1
  736. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  737. package/lib/work/Tags/Tags.stories.js +1 -1
  738. package/lib/work/Tags/Tags.stories.js.map +1 -1
  739. package/lib/work/Tasks/TaskList.stories.js +3 -3
  740. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  741. package/lib/work/Tasks/Tasks.stories.js +11 -11
  742. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  743. package/lib/work/Timeline/Timeline.mocks.js +8 -8
  744. package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
  745. package/lib/work/Timeline/Timeline.stories.js +2 -2
  746. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  747. package/package.json +10 -11
  748. package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  749. package/jsx/build/ObjectSelect/ObjectSelect.mocks.js +0 -136
  750. package/jsx/build/ObjectSelect/ObjectSelect.mocks.js.map +0 -1
  751. package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
  752. package/jsx/social/Email/Email.mocks.js +0 -395
  753. package/jsx/social/Email/Email.mocks.js.map +0 -1
@@ -13,18 +13,18 @@ export const userMentions = [
13
13
  },
14
14
  {
15
15
  name: 'Phone number',
16
- value: _jsx(PhoneDisplay, { value: '(111) 111-1111' }, void 0)
16
+ value: _jsx(PhoneDisplay, { value: '(111) 111-1111' })
17
17
  },
18
18
  {
19
19
  name: 'Email',
20
- value: _jsx(EmailDisplay, { value: 'turnc@example.com' }, void 0)
20
+ value: _jsx(EmailDisplay, { value: 'turnc@example.com' })
21
21
  },
22
22
  {
23
23
  name: 'Reports to',
24
24
  value: 'Helen Bush'
25
25
  }
26
26
  ],
27
- visual: _jsx(Avatar, { size: 'l', name: 'Cindy Turner' }, void 0)
27
+ visual: _jsx(Avatar, { size: 'l', name: 'Cindy Turner' })
28
28
  },
29
29
  {
30
30
  id: 'deans',
@@ -37,18 +37,18 @@ export const userMentions = [
37
37
  },
38
38
  {
39
39
  name: 'Phone number',
40
- value: _jsx(PhoneDisplay, { value: '(222) 222-2222' }, void 0)
40
+ value: _jsx(PhoneDisplay, { value: '(222) 222-2222' })
41
41
  },
42
42
  {
43
43
  name: 'Email',
44
- value: _jsx(EmailDisplay, { value: 'deans@example.com' }, void 0)
44
+ value: _jsx(EmailDisplay, { value: 'deans@example.com' })
45
45
  },
46
46
  {
47
47
  name: 'Reports to',
48
48
  value: 'Helen Bush'
49
49
  }
50
50
  ],
51
- visual: _jsx(Avatar, { size: 'l', name: 'Seth DeAngelo' }, void 0)
51
+ visual: _jsx(Avatar, { size: 'l', name: 'Seth DeAngelo' })
52
52
  },
53
53
  {
54
54
  id: 'moorj',
@@ -61,18 +61,18 @@ export const userMentions = [
61
61
  },
62
62
  {
63
63
  name: 'Phone number',
64
- value: _jsx(PhoneDisplay, { value: '(333) 333-3333' }, void 0)
64
+ value: _jsx(PhoneDisplay, { value: '(333) 333-3333' })
65
65
  },
66
66
  {
67
67
  name: 'Email',
68
- value: _jsx(EmailDisplay, { value: 'moorj@example.com' }, void 0)
68
+ value: _jsx(EmailDisplay, { value: 'moorj@example.com' })
69
69
  },
70
70
  {
71
71
  name: 'Reports to',
72
72
  value: 'Helen Bush'
73
73
  }
74
74
  ],
75
- visual: _jsx(Avatar, { size: 'l', name: 'Janet Moore' }, void 0)
75
+ visual: _jsx(Avatar, { size: 'l', name: 'Janet Moore' })
76
76
  },
77
77
  {
78
78
  id: 'thomd',
@@ -85,18 +85,18 @@ export const userMentions = [
85
85
  },
86
86
  {
87
87
  name: 'Phone number',
88
- value: _jsx(PhoneDisplay, { value: '(444) 444-4444' }, void 0)
88
+ value: _jsx(PhoneDisplay, { value: '(444) 444-4444' })
89
89
  },
90
90
  {
91
91
  name: 'Email',
92
- value: _jsx(EmailDisplay, { value: 'thomd@example.com' }, void 0)
92
+ value: _jsx(EmailDisplay, { value: 'thomd@example.com' })
93
93
  },
94
94
  {
95
95
  name: 'Reports to',
96
96
  value: 'Bob Hathoway'
97
97
  }
98
98
  ],
99
- visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }, void 0)
99
+ visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' })
100
100
  },
101
101
  {
102
102
  id: 'hathb',
@@ -109,18 +109,18 @@ export const userMentions = [
109
109
  },
110
110
  {
111
111
  name: 'Phone number',
112
- value: _jsx(PhoneDisplay, { value: '(555) 555-5555' }, void 0)
112
+ value: _jsx(PhoneDisplay, { value: '(555) 555-5555' })
113
113
  },
114
114
  {
115
115
  name: 'Email',
116
- value: _jsx(EmailDisplay, { value: 'hathb@example.com' }, void 0)
116
+ value: _jsx(EmailDisplay, { value: 'hathb@example.com' })
117
117
  },
118
118
  {
119
119
  name: 'Reports to',
120
120
  value: ''
121
121
  }
122
122
  ],
123
- visual: _jsx(Avatar, { size: 'l', name: 'Bob Hathoway' }, void 0)
123
+ visual: _jsx(Avatar, { size: 'l', name: 'Bob Hathoway' })
124
124
  }
125
125
  ];
126
126
  export const caseMentions = [
@@ -128,92 +128,92 @@ export const caseMentions = [
128
128
  id: 'c-001',
129
129
  primary: 'Complete user sign up form',
130
130
  secondary: ['US-111111'],
131
- visual: _jsx(Avatar, { size: 'l', name: 'c-001', icon: 'case' }, void 0)
131
+ visual: _jsx(Avatar, { size: 'l', name: 'c-001', icon: 'case' })
132
132
  },
133
133
  {
134
134
  id: 'c-002',
135
135
  primary: 'Button missing on home page',
136
136
  secondary: ['BUG-222222'],
137
- visual: _jsx(Avatar, { size: 'l', name: 'c-002', icon: 'case' }, void 0)
137
+ visual: _jsx(Avatar, { size: 'l', name: 'c-002', icon: 'case' })
138
138
  },
139
139
  {
140
140
  id: 'c-003',
141
141
  primary: 'Set up transaction broker',
142
142
  secondary: ['US-333333'],
143
- visual: _jsx(Avatar, { size: 'l', name: 'c-03', icon: 'case' }, void 0)
143
+ visual: _jsx(Avatar, { size: 'l', name: 'c-03', icon: 'case' })
144
144
  },
145
145
  {
146
146
  id: 'c-004',
147
147
  primary: 'Check in with security team',
148
148
  secondary: ['TASK-444444'],
149
- visual: _jsx(Avatar, { size: 'l', name: 'c-004', icon: 'case' }, void 0)
149
+ visual: _jsx(Avatar, { size: 'l', name: 'c-004', icon: 'case' })
150
150
  },
151
151
  {
152
152
  id: 'c-005',
153
153
  primary: 'Error occurs upon submitting form',
154
154
  secondary: ['BUG-555555'],
155
- visual: _jsx(Avatar, { size: 'l', name: 'c-005', icon: 'case' }, void 0)
155
+ visual: _jsx(Avatar, { size: 'l', name: 'c-005', icon: 'case' })
156
156
  }
157
157
  ];
158
158
  export const generatedLikes = [
159
159
  {
160
160
  primary: 'Cindy Turner',
161
161
  secondary: ['Lead Engineer'],
162
- visual: _jsx(Avatar, { size: 'l', name: 'Cindy Turner' }, void 0),
162
+ visual: _jsx(Avatar, { size: 'l', name: 'Cindy Turner' }),
163
163
  id: 'turnc'
164
164
  },
165
165
  {
166
166
  primary: 'Helen Bush',
167
167
  secondary: ['Product Manager', 'Product Owner'],
168
- visual: _jsx(Avatar, { size: 'l', name: 'Helen Bush' }, void 0),
168
+ visual: _jsx(Avatar, { size: 'l', name: 'Helen Bush' }),
169
169
  id: 'bushh'
170
170
  },
171
171
  {
172
172
  primary: 'Randy Paul',
173
173
  secondary: ['Frontend Developer', 'Backend Developer'],
174
- visual: _jsx(Avatar, { size: 'l', name: 'Randy Paul' }, void 0),
174
+ visual: _jsx(Avatar, { size: 'l', name: 'Randy Paul' }),
175
175
  id: 'paulr'
176
176
  },
177
177
  {
178
178
  primary: 'Janet Moore',
179
179
  secondary: ['Backend Developer'],
180
- visual: _jsx(Avatar, { size: 'l', name: 'Janet Moore' }, void 0),
180
+ visual: _jsx(Avatar, { size: 'l', name: 'Janet Moore' }),
181
181
  id: 'moorj'
182
182
  },
183
183
  {
184
184
  primary: 'Kate Mirin',
185
185
  secondary: ['Quality Engineer'],
186
- visual: _jsx(Avatar, { size: 'l', name: 'Kate Mirin' }, void 0),
186
+ visual: _jsx(Avatar, { size: 'l', name: 'Kate Mirin' }),
187
187
  id: 'mirik'
188
188
  },
189
189
  {
190
190
  primary: 'Bob Hathoway',
191
191
  secondary: ['Lead Designer', 'Product Owner'],
192
- visual: _jsx(Avatar, { size: 'l', name: 'Bob Hathoway' }, void 0),
192
+ visual: _jsx(Avatar, { size: 'l', name: 'Bob Hathoway' }),
193
193
  id: 'hathb'
194
194
  },
195
195
  {
196
196
  primary: 'Seth DeAngelo',
197
197
  secondary: ['Senior Software Engineer', 'Backend Developer'],
198
- visual: _jsx(Avatar, { size: 'l', name: 'Seth DeAngelo' }, void 0),
198
+ visual: _jsx(Avatar, { size: 'l', name: 'Seth DeAngelo' }),
199
199
  id: 'deans'
200
200
  },
201
201
  {
202
202
  primary: 'Dean Thomas',
203
203
  secondary: ['Designer'],
204
- visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }, void 0),
204
+ visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }),
205
205
  id: 'thomd'
206
206
  },
207
207
  {
208
208
  primary: 'Louie Santos',
209
209
  secondary: ['Marketing Specialist'],
210
- visual: _jsx(Avatar, { size: 'l', name: 'Louie Santos' }, void 0),
210
+ visual: _jsx(Avatar, { size: 'l', name: 'Louie Santos' }),
211
211
  id: 'santl'
212
212
  },
213
213
  {
214
214
  primary: 'Margaret Foster',
215
215
  secondary: ['Architect', 'Designer'],
216
- visual: _jsx(Avatar, { size: 'l', name: 'Margaret Foster' }, void 0),
216
+ visual: _jsx(Avatar, { size: 'l', name: 'Margaret Foster' }),
217
217
  id: 'fostm'
218
218
  }
219
219
  ];
@@ -221,56 +221,56 @@ export const availableRecipients = [
221
221
  {
222
222
  primary: 'Cindy Turner',
223
223
  secondary: ['Lead Engineer'],
224
- visual: _jsx(Avatar, { size: 'l', name: 'Cindy Turner' }, void 0),
224
+ visual: _jsx(Avatar, { size: 'l', name: 'Cindy Turner' }),
225
225
  value: 'turnc',
226
226
  id: 'turnc'
227
227
  },
228
228
  {
229
229
  primary: 'Helen Bush',
230
230
  secondary: ['Product Manager', 'Product Owner'],
231
- visual: _jsx(Avatar, { size: 'l', name: 'Helen Bush' }, void 0),
231
+ visual: _jsx(Avatar, { size: 'l', name: 'Helen Bush' }),
232
232
  value: 'bushh',
233
233
  id: 'bushh'
234
234
  },
235
235
  {
236
236
  primary: 'Randy Paul',
237
237
  secondary: ['Frontend Developer', 'Backend Developer'],
238
- visual: _jsx(Avatar, { size: 'l', name: 'Randy Paul' }, void 0),
238
+ visual: _jsx(Avatar, { size: 'l', name: 'Randy Paul' }),
239
239
  value: 'paulr',
240
240
  id: 'paulr'
241
241
  },
242
242
  {
243
243
  primary: 'Janet Moore',
244
244
  secondary: ['Backend Developer'],
245
- visual: _jsx(Avatar, { size: 'l', name: 'Janet Moore' }, void 0),
245
+ visual: _jsx(Avatar, { size: 'l', name: 'Janet Moore' }),
246
246
  value: 'moorj',
247
247
  id: 'moorj'
248
248
  },
249
249
  {
250
250
  primary: 'Kate Mirin',
251
251
  secondary: ['Quality Engineer'],
252
- visual: _jsx(Avatar, { size: 'l', name: 'Kate Mirin' }, void 0),
252
+ visual: _jsx(Avatar, { size: 'l', name: 'Kate Mirin' }),
253
253
  value: 'mirik',
254
254
  id: 'mirik'
255
255
  },
256
256
  {
257
257
  primary: 'Bob Hathoway',
258
258
  secondary: ['Lead Designer', 'Product Owner'],
259
- visual: _jsx(Avatar, { size: 'l', name: 'Bob Hathoway' }, void 0),
259
+ visual: _jsx(Avatar, { size: 'l', name: 'Bob Hathoway' }),
260
260
  value: 'hathb',
261
261
  id: 'hathb'
262
262
  },
263
263
  {
264
264
  primary: 'Seth DeAngelo',
265
265
  secondary: ['Senior Software Engineer', 'Backend Developer'],
266
- visual: _jsx(Avatar, { size: 'l', name: 'Seth DeAngelo' }, void 0),
266
+ visual: _jsx(Avatar, { size: 'l', name: 'Seth DeAngelo' }),
267
267
  value: 'deans',
268
268
  id: 'deans'
269
269
  },
270
270
  {
271
271
  primary: 'Dean Thomas',
272
272
  secondary: ['Designer'],
273
- visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }, void 0),
273
+ visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }),
274
274
  value: 'thomd',
275
275
  id: 'thomd'
276
276
  }
@@ -292,14 +292,14 @@ export const feedPosts = [
292
292
  id: createUID(),
293
293
  fullname: 'Feed Bot',
294
294
  username: 'feed_bot',
295
- content: (_jsx(Link, { href: 'https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter', target: '_blank', children: _jsxs(Flex, { container: { direction: 'column' }, children: ["Check out this awesome event!", _jsx(Image, { src: 'https://pbs.twimg.com/media/EoKHAUKWEAM5hpz?format=jpg&name=medium', alt: 'Pegasystems' }, void 0)] }, void 0) }, void 0)),
295
+ content: (_jsx(Link, { href: 'https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter', target: '_blank', children: _jsxs(Flex, { container: { direction: 'column' }, children: ["Check out this awesome event!", _jsx(Image, { src: 'https://pbs.twimg.com/media/EoKHAUKWEAM5hpz?format=jpg&name=medium', alt: 'Pegasystems' })] }) })),
296
296
  replies: [],
297
297
  userStatus: 'active',
298
298
  renderFeed: false
299
299
  },
300
300
  {
301
301
  id: createUID(),
302
- content: (_jsx(Link, { href: 'https://www.pega.com/products/sales-automation', target: '_blank', children: _jsxs(Flex, { container: { direction: 'column' }, children: ["Sales Automation makes business happen.", _jsx(Image, { src: 'https://cf-images.us-east-1.prod.boltdns.net/v1/static/1900410236/893966f4-f7e1-41f0-9cc2-e3064273d3aa/72837f91-61a1-455b-a7e3-126972b61ddd/1280x720/match/image.jpg', alt: 'Pega Sales Automation' }, void 0)] }, void 0) }, void 0)),
302
+ content: (_jsx(Link, { href: 'https://www.pega.com/products/sales-automation', target: '_blank', children: _jsxs(Flex, { container: { direction: 'column' }, children: ["Sales Automation makes business happen.", _jsx(Image, { src: 'https://cf-images.us-east-1.prod.boltdns.net/v1/static/1900410236/893966f4-f7e1-41f0-9cc2-e3064273d3aa/72837f91-61a1-455b-a7e3-126972b61ddd/1280x720/match/image.jpg', alt: 'Pega Sales Automation' })] }) })),
303
303
  replies: [],
304
304
  renderFeed: false
305
305
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Feed.mocks.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACV,MAAM,yBAAyB,CAAC;AAGjC,kBAAkB;AAClB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;g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SAAS;QACnB,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,cAAc,CAAC,MAAM;QAChC,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,KAAK;KAClB;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,CACP,KAAC,IAAI,IACH,IAAI,EAAC,mJAAmJ,EACxJ,MAAM,EAAC,QAAQ,YAEf,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,8CAEtC,KAAC,KAAK,IACJ,GAAG,EAAC,oEAAoE,EACxE,GAAG,EAAC,aAAa,WACjB,YACG,WACF,CACR;QACD,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,KAAK;KAClB;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,OAAO,EAAE,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,gDAAgD,EAAC,MAAM,EAAC,QAAQ,YACzE,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,wDAEtC,KAAC,KAAK,IACJ,GAAG,EAAC,sKAAsK,EAC1K,GAAG,EAAC,uBAAuB,WAC3B,YACG,WACF,CACR;QACD,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,KAAK;KAClB;CACF,CAAC","sourcesContent":["import {\n Avatar,\n EmailDisplay,\n PhoneDisplay,\n Link,\n Flex,\n Image,\n createUID\n} from '@pega/cosmos-react-core';\nimport { FeedPostProps } from '@pega/cosmos-react-social';\n\n// cspell: disable\nexport const userMentions = [\n {\n id: 'turnc',\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(111) 111-1111' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='turnc@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Cindy Turner' />\n },\n {\n id: 'deans',\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(222) 222-2222' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='deans@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Seth DeAngelo' />\n },\n {\n id: 'moorj',\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(333) 333-3333' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='moorj@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Janet Moore' />\n },\n {\n id: 'thomd',\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(444) 444-4444' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='thomd@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Bob Hathoway'\n }\n ],\n visual: <Avatar size='l' name='Dean Thomas' />\n },\n {\n id: 'hathb',\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(555) 555-5555' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='hathb@example.com' />\n },\n {\n name: 'Reports to',\n value: ''\n }\n ],\n visual: <Avatar size='l' name='Bob Hathoway' />\n }\n];\n\nexport const caseMentions = [\n {\n id: 'c-001',\n primary: 'Complete user sign up form',\n secondary: ['US-111111'],\n visual: <Avatar size='l' name='c-001' icon='case' />\n },\n {\n id: 'c-002',\n primary: 'Button missing on home page',\n secondary: ['BUG-222222'],\n visual: <Avatar size='l' name='c-002' icon='case' />\n },\n {\n id: 'c-003',\n primary: 'Set up transaction broker',\n secondary: ['US-333333'],\n visual: <Avatar size='l' name='c-03' icon='case' />\n },\n {\n id: 'c-004',\n primary: 'Check in with security team',\n secondary: ['TASK-444444'],\n visual: <Avatar size='l' name='c-004' icon='case' />\n },\n {\n id: 'c-005',\n primary: 'Error occurs upon submitting form',\n secondary: ['BUG-555555'],\n visual: <Avatar size='l' name='c-005' icon='case' />\n }\n];\n\nexport const generatedLikes = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n id: 'thomd'\n },\n {\n primary: 'Louie Santos',\n secondary: ['Marketing Specialist'],\n visual: <Avatar size='l' name='Louie Santos' />,\n id: 'santl'\n },\n {\n primary: 'Margaret Foster',\n secondary: ['Architect', 'Designer'],\n visual: <Avatar size='l' name='Margaret Foster' />,\n id: 'fostm'\n }\n];\n\nexport const availableRecipients = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n value: 'turnc',\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n value: 'bushh',\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n value: 'paulr',\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n value: 'moorj',\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n value: 'mirik',\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n value: 'hathb',\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n value: 'deans',\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n value: 'thomd',\n id: 'thomd'\n }\n];\n\nexport interface FeedPostDemoProps {\n id?: string;\n fullname?: FeedPostProps['info']['fullname'];\n username?: FeedPostProps['info']['username'];\n content?: FeedPostProps['info']['content'];\n postType?: FeedPostProps['info']['postType'];\n recipients?: FeedPostProps['info']['recipients'];\n attachments?: FeedPostProps['info']['attachments'];\n replies?: FeedPostProps['replies'];\n timeElapsed?: FeedPostProps['info']['timeElapsed'];\n userStatus?: FeedPostProps['info']['userStatus'];\n likes?: FeedPostProps['interactionInfo']['likes'];\n likeCount?: FeedPostProps['interactionInfo']['likeCount'];\n onDelete?: () => void;\n renderFeed?: boolean;\n}\n\nexport const feedPosts: FeedPostDemoProps[] = [\n {\n id: createUID(),\n fullname: 'Feed Bot',\n username: 'feed_bot',\n content: 'How is everyone doing with their reports?',\n postType: 'private',\n replies: [],\n likes: generatedLikes,\n likeCount: generatedLikes.length,\n userStatus: 'active',\n renderFeed: false\n },\n {\n id: createUID(),\n fullname: 'Feed Bot',\n username: 'feed_bot',\n content: (\n <Link\n href='https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter'\n target='_blank'\n >\n <Flex container={{ direction: 'column' }}>\n Check out this awesome event!\n <Image\n src='https://pbs.twimg.com/media/EoKHAUKWEAM5hpz?format=jpg&name=medium'\n alt='Pegasystems'\n />\n </Flex>\n </Link>\n ),\n replies: [],\n userStatus: 'active',\n renderFeed: false\n },\n {\n id: createUID(),\n content: (\n <Link href='https://www.pega.com/products/sales-automation' target='_blank'>\n <Flex container={{ direction: 'column' }}>\n Sales Automation makes business happen.\n <Image\n src='https://cf-images.us-east-1.prod.boltdns.net/v1/static/1900410236/893966f4-f7e1-41f0-9cc2-e3064273d3aa/72837f91-61a1-455b-a7e3-126972b61ddd/1280x720/match/image.jpg'\n alt='Pega Sales Automation'\n />\n </Flex>\n </Link>\n ),\n replies: [],\n renderFeed: false\n }\n];\n"]}
1
+ {"version":3,"file":"Feed.mocks.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACV,MAAM,yBAAyB,CAAC;AAGjC,kBAAkB;AAClB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EA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QACf,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,2CAA2C;QACpD,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,cAAc,CAAC,MAAM;QAChC,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,KAAK;KAClB;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,CACP,KAAC,IAAI,IACH,IAAI,EAAC,mJAAmJ,EACxJ,MAAM,EAAC,QAAQ,YAEf,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,8CAEtC,KAAC,KAAK,IACJ,GAAG,EAAC,oEAAoE,EACxE,GAAG,EAAC,aAAa,GACjB,IACG,GACF,CACR;QACD,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,KAAK;KAClB;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,OAAO,EAAE,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,gDAAgD,EAAC,MAAM,EAAC,QAAQ,YACzE,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,wDAEtC,KAAC,KAAK,IACJ,GAAG,EAAC,sKAAsK,EAC1K,GAAG,EAAC,uBAAuB,GAC3B,IACG,GACF,CACR;QACD,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,KAAK;KAClB;CACF,CAAC","sourcesContent":["import {\n Avatar,\n EmailDisplay,\n PhoneDisplay,\n Link,\n Flex,\n Image,\n createUID\n} from '@pega/cosmos-react-core';\nimport { FeedPostProps } from '@pega/cosmos-react-social';\n\n// cspell: disable\nexport const userMentions = [\n {\n id: 'turnc',\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(111) 111-1111' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='turnc@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Cindy Turner' />\n },\n {\n id: 'deans',\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(222) 222-2222' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='deans@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Seth DeAngelo' />\n },\n {\n id: 'moorj',\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(333) 333-3333' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='moorj@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Janet Moore' />\n },\n {\n id: 'thomd',\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(444) 444-4444' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='thomd@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Bob Hathoway'\n }\n ],\n visual: <Avatar size='l' name='Dean Thomas' />\n },\n {\n id: 'hathb',\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(555) 555-5555' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='hathb@example.com' />\n },\n {\n name: 'Reports to',\n value: ''\n }\n ],\n visual: <Avatar size='l' name='Bob Hathoway' />\n }\n];\n\nexport const caseMentions = [\n {\n id: 'c-001',\n primary: 'Complete user sign up form',\n secondary: ['US-111111'],\n visual: <Avatar size='l' name='c-001' icon='case' />\n },\n {\n id: 'c-002',\n primary: 'Button missing on home page',\n secondary: ['BUG-222222'],\n visual: <Avatar size='l' name='c-002' icon='case' />\n },\n {\n id: 'c-003',\n primary: 'Set up transaction broker',\n secondary: ['US-333333'],\n visual: <Avatar size='l' name='c-03' icon='case' />\n },\n {\n id: 'c-004',\n primary: 'Check in with security team',\n secondary: ['TASK-444444'],\n visual: <Avatar size='l' name='c-004' icon='case' />\n },\n {\n id: 'c-005',\n primary: 'Error occurs upon submitting form',\n secondary: ['BUG-555555'],\n visual: <Avatar size='l' name='c-005' icon='case' />\n }\n];\n\nexport const generatedLikes = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n id: 'thomd'\n },\n {\n primary: 'Louie Santos',\n secondary: ['Marketing Specialist'],\n visual: <Avatar size='l' name='Louie Santos' />,\n id: 'santl'\n },\n {\n primary: 'Margaret Foster',\n secondary: ['Architect', 'Designer'],\n visual: <Avatar size='l' name='Margaret Foster' />,\n id: 'fostm'\n }\n];\n\nexport const availableRecipients = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n value: 'turnc',\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n value: 'bushh',\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n value: 'paulr',\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n value: 'moorj',\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n value: 'mirik',\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n value: 'hathb',\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n value: 'deans',\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n value: 'thomd',\n id: 'thomd'\n }\n];\n// cspell:enable\n\nexport interface FeedPostDemoProps {\n id?: string;\n fullname?: FeedPostProps['info']['fullname'];\n username?: FeedPostProps['info']['username'];\n content?: FeedPostProps['info']['content'];\n postType?: FeedPostProps['info']['postType'];\n recipients?: FeedPostProps['info']['recipients'];\n attachments?: FeedPostProps['info']['attachments'];\n replies?: FeedPostProps['replies'];\n timeElapsed?: FeedPostProps['info']['timeElapsed'];\n userStatus?: FeedPostProps['info']['userStatus'];\n likes?: FeedPostProps['interactionInfo']['likes'];\n likeCount?: FeedPostProps['interactionInfo']['likeCount'];\n onDelete?: () => void;\n renderFeed?: boolean;\n}\n\nexport const feedPosts: FeedPostDemoProps[] = [\n {\n id: createUID(),\n fullname: 'Feed Bot',\n username: 'feed_bot',\n content: 'How is everyone doing with their reports?',\n postType: 'private',\n replies: [],\n likes: generatedLikes,\n likeCount: generatedLikes.length,\n userStatus: 'active',\n renderFeed: false\n },\n {\n id: createUID(),\n fullname: 'Feed Bot',\n username: 'feed_bot',\n content: (\n <Link\n href='https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter'\n target='_blank'\n >\n <Flex container={{ direction: 'column' }}>\n Check out this awesome event!\n <Image\n src='https://pbs.twimg.com/media/EoKHAUKWEAM5hpz?format=jpg&name=medium'\n alt='Pegasystems'\n />\n </Flex>\n </Link>\n ),\n replies: [],\n userStatus: 'active',\n renderFeed: false\n },\n {\n id: createUID(),\n content: (\n <Link href='https://www.pega.com/products/sales-automation' target='_blank'>\n <Flex container={{ direction: 'column' }}>\n Sales Automation makes business happen.\n <Image\n src='https://cf-images.us-east-1.prod.boltdns.net/v1/static/1900410236/893966f4-f7e1-41f0-9cc2-e3064273d3aa/72837f91-61a1-455b-a7e3-126972b61ddd/1280x720/match/image.jpg'\n alt='Pega Sales Automation'\n />\n </Flex>\n </Link>\n ),\n replies: [],\n renderFeed: false\n }\n];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Feed.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAWxC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;;AAgB/C,wBAGU;AAEV,eAAO,MAAM,QAAQ;;iBAmLpB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAE5B,CAAC"}
1
+ {"version":3,"file":"Feed.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAWxC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;;AAgB/C,wBAGU;AAEV,eAAO,MAAM,QAAQ;;iBA0LpB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAE5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { createElement as _createElement } from "react";
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useState, useRef } from 'react';
3
+ import { useState, useRef, useCallback } from 'react';
4
4
  import { createUID, DateTimeDisplay, Lightbox, OneColumnPage } from '@pega/cosmos-react-core';
5
5
  import { Feed, MentionButtonConfig, HashtagButtonConfig } from '@pega/cosmos-react-social';
6
6
  import { Glimpse } from '@pega/cosmos-react-work';
@@ -55,27 +55,32 @@ export const FeedDemo = ({ markdownMap }) => {
55
55
  .map(tag => ({ id: tag, primary: tag })));
56
56
  }
57
57
  };
58
- const generateNewPost = () => {
59
- setTimeout(() => {
60
- setExtraPosts(posts => [
61
- ...posts,
62
- {
63
- id: createUID(),
64
- fullname: 'Demo User',
65
- username: 'demo_user',
66
- content: 'This post was loaded after the Feed was scrolled to the bottom!',
67
- attachments: [],
68
- replies: [],
69
- renderFeed: false
70
- }
71
- ]);
72
- }, 1000);
73
- };
58
+ const [loading, setLoading] = useState(false);
59
+ const generateNewPost = useCallback(() => {
60
+ if (!loading) {
61
+ setLoading(true);
62
+ setTimeout(() => {
63
+ setLoading(false);
64
+ setExtraPosts(posts => [
65
+ ...posts,
66
+ {
67
+ id: createUID(),
68
+ fullname: 'Demo User',
69
+ username: 'demo_user',
70
+ content: 'This post was loaded after the Feed was scrolled to the bottom!',
71
+ attachments: [],
72
+ replies: [],
73
+ renderFeed: false
74
+ }
75
+ ]);
76
+ }, 1000);
77
+ }
78
+ }, [loading]);
74
79
  const onMentionClick = ({ id, type }) => {
75
80
  if (type === 'user') {
76
81
  const user = userMentions.find(mention => mention.id === id);
77
82
  if (user)
78
- return _jsx(Glimpse, { ...user }, void 0);
83
+ return _jsx(Glimpse, { ...user });
79
84
  }
80
85
  };
81
86
  const [lightboxImages, setLightboxImages] = useState(null);
@@ -89,7 +94,7 @@ export const FeedDemo = ({ markdownMap }) => {
89
94
  name: image.name,
90
95
  description: image.name,
91
96
  src: image.thumbnail,
92
- metadata: [image.type, _jsx(DateTimeDisplay, { value: new Date(), variant: 'date' }, void 0)]
97
+ metadata: [image.type, _jsx(DateTimeDisplay, { value: new Date(), variant: 'date' })]
93
98
  };
94
99
  });
95
100
  const idx = images.findIndex(image => image.name === name);
@@ -103,7 +108,7 @@ export const FeedDemo = ({ markdownMap }) => {
103
108
  return [...postsCopy];
104
109
  });
105
110
  };
106
- return (_jsxs(_Fragment, { children: [_jsx(Feed, { title: 'Pulse', userInfo: { username: 'demo_user', fullname: 'Demo User' }, searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, onMentionClick: onMentionClick, markdownMap: markdownMap, interactionRenderers: [MentionButtonConfig, HashtagButtonConfig], filters: filters, onFilterChange: toggleFilter, onLoadMore: generateNewPost, newPostRegion: _jsx(FeedNewPostDemo, { onPost: postEvent => {
111
+ return (_jsxs(_Fragment, { children: [_jsx(Feed, { title: 'Pulse', userInfo: { username: 'demo_user', fullname: 'Demo User' }, searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, onMentionClick: onMentionClick, markdownMap: markdownMap, interactionRenderers: [MentionButtonConfig, HashtagButtonConfig], filters: filters, onFilterChange: toggleFilter, loadingPosts: loading, onLoadMore: generateNewPost, newPostRegion: _jsx(FeedNewPostDemo, { onPost: postEvent => {
107
112
  const { value, attachments, recipients, clear } = postEvent;
108
113
  attachments.forEach(file => {
109
114
  delete file.onDelete;
@@ -130,14 +135,14 @@ export const FeedDemo = ({ markdownMap }) => {
130
135
  ]);
131
136
  clear();
132
137
  }
133
- }, renderFeed: false }, void 0), posts: extraPosts.map((post, i) => {
138
+ }, renderFeed: false }), posts: extraPosts.map((post, i) => {
134
139
  return _createElement(FeedPostDemo, { ...post, key: post.id, onDelete: () => deletePost(i) });
135
- }) }, void 0), lightboxImages && (_jsx(Lightbox, { items: lightboxImages, defaultIndex: defaultLBIndex.current, onAfterClose: () => {
140
+ }) }), lightboxImages && (_jsx(Lightbox, { items: lightboxImages, defaultIndex: defaultLBIndex.current, onAfterClose: () => {
136
141
  setLightboxImages(null);
137
- } }, void 0))] }, void 0));
142
+ } }))] }));
138
143
  };
139
144
  export const FeedWithAppShell = () => {
140
- return _jsx(AppShellDemo, { appHeader: true, main: _jsx(OneColumnPage, { title: 'Welcome', a: _jsx(FeedDemo, {}, void 0) }, void 0) }, void 0);
145
+ return _jsx(AppShellDemo, { appHeader: true, main: _jsx(OneColumnPage, { title: 'Welcome', a: _jsx(FeedDemo, {}) }) });
141
146
  };
142
147
  FeedWithAppShell.parameters = {
143
148
  layout: 'fullscreen'
@@ -1 +1 @@
1
- {"version":3,"file":"Feed.stories.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":";;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EACL,SAAS,EACT,eAAe,EACf,QAAQ,EAGR,aAAa,EACd,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,IAAI,EAEJ,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,O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F,EACD,cAAc,IAAI,CACjB,KAAC,QAAQ,IACP,KAAK,EAAE,cAAc,EACrB,YAAY,EAAE,cAAc,CAAC,OAAO,EACpC,YAAY,EAAE,GAAG,EAAE;oBACjB,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAC1B,CAAC,WACD,CACH,YACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,OAAO,KAAC,YAAY,IAAC,SAAS,QAAC,IAAI,EAAE,KAAC,aAAa,IAAC,KAAK,EAAC,SAAS,EAAC,CAAC,EAAE,KAAC,QAAQ,aAAG,WAAI,WAAI,CAAC;AAC9F,CAAC,CAAC;AAEF,gBAAgB,CAAC,UAAU,GAAG;IAC5B,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState, useRef } from 'react';\n\nimport {\n createUID,\n DateTimeDisplay,\n Lightbox,\n LightboxProps,\n MenuItemProps,\n OneColumnPage\n} from '@pega/cosmos-react-core';\nimport { MDMap } from '@pega/cosmos-react-rte';\nimport {\n Feed,\n Filter,\n MentionButtonConfig,\n HashtagButtonConfig,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { Glimpse, GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\n\nimport { FeedPostDemo } from './FeedPost.stories';\nimport { FeedNewPostDemo } from './FeedNewPost.stories';\nimport { caseMentions, feedPosts, userMentions, FeedPostDemoProps } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/Feed',\n component: Feed\n} as Meta;\n\nexport const FeedDemo = ({ markdownMap }: { markdownMap?: MDMap }) => {\n const [extraPosts, setExtraPosts] = useState<FeedPostDemoProps[]>(() => feedPosts);\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n\n const [filters, setFilters] = useState<Filter[]>(\n Array.from({ length: 10 }, (_, index) => {\n return {\n id: `filter-${index + 1}`,\n label: `Filter ${index + 1}`\n };\n })\n );\n\n const toggleFilter = (filterId: string) => {\n const updatedFilters = [...filters];\n const filterToUpdate = updatedFilters.find(x => x.id === filterId);\n\n if (filterToUpdate) filterToUpdate.on = !filterToUpdate.on;\n\n setFilters(updatedFilters);\n };\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual }) => {\n return {\n id,\n primary,\n secondary,\n visual\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const generateNewPost = () => {\n setTimeout(() => {\n setExtraPosts(posts => [\n ...posts,\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n content: 'This post was loaded after the Feed was scrolled to the bottom!',\n attachments: [],\n replies: [],\n renderFeed: false\n }\n ]);\n }, 1000);\n };\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const [lightboxImages, setLightboxImages] = useState<LightboxProps['items'] | null>(null);\n const defaultLBIndex = useRef(0);\n\n const renderLightbox = (attachments: AttachedFiles[], name: string) => {\n const images: LightboxProps['items'] = attachments\n .filter(attachment => attachment.type.includes('image') && attachment.thumbnail)\n .map(image => {\n return {\n id: image.thumbnail as string,\n name: image.name,\n description: image.name,\n src: image.thumbnail as string,\n metadata: [image.type, <DateTimeDisplay value={new Date()} variant='date' />]\n };\n });\n\n const idx = images.findIndex(image => image.name === name);\n defaultLBIndex.current = idx > -1 ? idx : 0;\n setLightboxImages(images);\n };\n\n const deletePost = (index: number) => {\n setExtraPosts(posts => {\n const postsCopy = [...posts];\n postsCopy.splice(index, 1);\n return [...postsCopy];\n });\n };\n\n return (\n <>\n <Feed\n title='Pulse'\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n onMentionClick={onMentionClick}\n markdownMap={markdownMap}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n filters={filters}\n onFilterChange={toggleFilter}\n onLoadMore={generateNewPost}\n newPostRegion={\n <FeedNewPostDemo\n onPost={postEvent => {\n const { value, attachments, recipients, clear } = postEvent;\n\n attachments.forEach(file => {\n delete file.onDelete;\n file.onPreview = file.type.includes('image')\n ? () => renderLightbox(attachments, file.name)\n : undefined;\n file.onDownload = () => {};\n });\n\n if (value || attachments.length > 0) {\n setExtraPosts(posts => [\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n content: value,\n attachments,\n recipients,\n postType: recipients.length ? 'private' : 'public',\n replies: [],\n timeElapsed: 'Just now',\n renderFeed: false\n },\n ...posts\n ]);\n clear();\n }\n }}\n renderFeed={false}\n />\n }\n posts={extraPosts.map((post, i) => {\n return <FeedPostDemo {...post} key={post.id} onDelete={() => deletePost(i)} />;\n })}\n />\n {lightboxImages && (\n <Lightbox\n items={lightboxImages}\n defaultIndex={defaultLBIndex.current}\n onAfterClose={() => {\n setLightboxImages(null);\n }}\n />\n )}\n </>\n );\n};\n\nexport const FeedWithAppShell = () => {\n return <AppShellDemo appHeader main={<OneColumnPage title='Welcome' a={<FeedDemo />} />} />;\n};\n\nFeedWithAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
1
+ {"version":3,"file":"Feed.stories.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names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QAAQ,EAAE,WAAW;oCACrB,QAAQ,EAAE,WAAW;oCACrB,OAAO,EAAE,KAAK;oCACd,WAAW;oCACX,UAAU;oCACV,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;oCAClD,OAAO,EAAE,EAAE;oCACX,WAAW,EAAE,UAAU;oCACvB,UAAU,EAAE,KAAK;iCAClB;gCACD,GAAG,KAAK;6BACT,CAAC,CAAC;4BACH,KAAK,EAAE,CAAC;yBACT;oBACH,CAAC,EACD,UAAU,EAAE,KAAK,GACjB,EAEJ,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;oBAChC,OAAO,eAAC,YAAY,OAAK,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,GAAI,CAAC;gBACjF,CAAC,CAAC,GACF,EACD,cAAc,IAAI,CACjB,KAAC,QAAQ,IACP,KAAK,EAAE,cAAc,EACrB,YAAY,EAAE,cAAc,CAAC,OAAO,EACpC,YAAY,EAAE,GAAG,EAAE;oBACjB,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAC1B,CAAC,GACD,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,OAAO,KAAC,YAAY,IAAC,SAAS,QAAC,IAAI,EAAE,KAAC,aAAa,IAAC,KAAK,EAAC,SAAS,EAAC,CAAC,EAAE,KAAC,QAAQ,KAAG,GAAI,GAAI,CAAC;AAC9F,CAAC,CAAC;AAEF,gBAAgB,CAAC,UAAU,GAAG;IAC5B,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState, useRef, useCallback } from 'react';\n\nimport {\n createUID,\n DateTimeDisplay,\n Lightbox,\n LightboxProps,\n MenuItemProps,\n OneColumnPage\n} from '@pega/cosmos-react-core';\nimport { MDMap } from '@pega/cosmos-react-rte';\nimport {\n Feed,\n Filter,\n MentionButtonConfig,\n HashtagButtonConfig,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { Glimpse, GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\n\nimport { FeedPostDemo } from './FeedPost.stories';\nimport { FeedNewPostDemo } from './FeedNewPost.stories';\nimport { caseMentions, feedPosts, userMentions, FeedPostDemoProps } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/Feed',\n component: Feed\n} as Meta;\n\nexport const FeedDemo = ({ markdownMap }: { markdownMap?: MDMap }) => {\n const [extraPosts, setExtraPosts] = useState<FeedPostDemoProps[]>(() => feedPosts);\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n\n const [filters, setFilters] = useState<Filter[]>(\n Array.from({ length: 10 }, (_, index) => {\n return {\n id: `filter-${index + 1}`,\n label: `Filter ${index + 1}`\n };\n })\n );\n\n const toggleFilter = (filterId: string) => {\n const updatedFilters = [...filters];\n const filterToUpdate = updatedFilters.find(x => x.id === filterId);\n\n if (filterToUpdate) filterToUpdate.on = !filterToUpdate.on;\n\n setFilters(updatedFilters);\n };\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual }) => {\n return {\n id,\n primary,\n secondary,\n visual\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const [loading, setLoading] = useState(false);\n\n const generateNewPost = useCallback(() => {\n if (!loading) {\n setLoading(true);\n setTimeout(() => {\n setLoading(false);\n setExtraPosts(posts => [\n ...posts,\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n content: 'This post was loaded after the Feed was scrolled to the bottom!',\n attachments: [],\n replies: [],\n renderFeed: false\n }\n ]);\n }, 1000);\n }\n }, [loading]);\n\n const onMentionClick = ({ id, type }: { id: string; type: string }) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user) return <Glimpse {...user} />;\n }\n };\n\n const [lightboxImages, setLightboxImages] = useState<LightboxProps['items'] | null>(null);\n const defaultLBIndex = useRef(0);\n\n const renderLightbox = (attachments: AttachedFiles[], name: string) => {\n const images: LightboxProps['items'] = attachments\n .filter(attachment => attachment.type.includes('image') && attachment.thumbnail)\n .map(image => {\n return {\n id: image.thumbnail as string,\n name: image.name,\n description: image.name,\n src: image.thumbnail as string,\n metadata: [image.type, <DateTimeDisplay value={new Date()} variant='date' />]\n };\n });\n\n const idx = images.findIndex(image => image.name === name);\n defaultLBIndex.current = idx > -1 ? idx : 0;\n setLightboxImages(images);\n };\n\n const deletePost = (index: number) => {\n setExtraPosts(posts => {\n const postsCopy = [...posts];\n postsCopy.splice(index, 1);\n return [...postsCopy];\n });\n };\n\n return (\n <>\n <Feed\n title='Pulse'\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n onMentionClick={onMentionClick}\n markdownMap={markdownMap}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n filters={filters}\n onFilterChange={toggleFilter}\n loadingPosts={loading}\n onLoadMore={generateNewPost}\n newPostRegion={\n <FeedNewPostDemo\n onPost={postEvent => {\n const { value, attachments, recipients, clear } = postEvent;\n\n attachments.forEach(file => {\n delete file.onDelete;\n file.onPreview = file.type.includes('image')\n ? () => renderLightbox(attachments, file.name)\n : undefined;\n file.onDownload = () => {};\n });\n\n if (value || attachments.length > 0) {\n setExtraPosts(posts => [\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n content: value,\n attachments,\n recipients,\n postType: recipients.length ? 'private' : 'public',\n replies: [],\n timeElapsed: 'Just now',\n renderFeed: false\n },\n ...posts\n ]);\n clear();\n }\n }}\n renderFeed={false}\n />\n }\n posts={extraPosts.map((post, i) => {\n return <FeedPostDemo {...post} key={post.id} onDelete={() => deletePost(i)} />;\n })}\n />\n {lightboxImages && (\n <Lightbox\n items={lightboxImages}\n defaultIndex={defaultLBIndex.current}\n onAfterClose={() => {\n setLightboxImages(null);\n }}\n />\n )}\n </>\n );\n};\n\nexport const FeedWithAppShell = () => {\n return <AppShellDemo appHeader main={<OneColumnPage title='Welcome' a={<FeedDemo />} />} />;\n};\n\nFeedWithAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
@@ -76,7 +76,7 @@ export const FeedNewPostDemo = ({ onPost = () => { }, renderFeed = true }) => {
76
76
  onPost?.(postEvent);
77
77
  setAttachments([]);
78
78
  postEvent.clear();
79
- }, recipients: itemsToRender, onRecipientSearch: (newSearch) => setFilterValue(newSearch) }, void 0));
80
- return renderFeed ? (_jsx(Feed, { searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, userInfo: { username: 'demo_user', fullname: 'Demo User' }, newPostRegion: newPost }, void 0)) : (newPost);
79
+ }, recipients: itemsToRender, onRecipientSearch: (newSearch) => setFilterValue(newSearch) }));
80
+ return renderFeed ? (_jsx(Feed, { searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, userInfo: { username: 'demo_user', fullname: 'Demo User' }, newPostRegion: newPost })) : (newPost);
81
81
  };
82
82
  //# sourceMappingURL=FeedNewPost.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedNewPost.st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Ae,EAAE;YACf,mBAAmB,EAAE,sBAAsB;YAC3C,SAAS,EAAE,MAAM;SAClB,EACD,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,SAAS,CAAC,EAAE;YAClB,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC;YACpB,cAAc,CAAC,EAAE,CAAC,CAAC;YACnB,SAAS,CAAC,KAAK,EAAE,CAAC;QACpB,CAAC,EACD,UAAU,EAAE,aAAa,EACzB,iBAAiB,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,WACnE,CACH,CAAC;IAEF,OAAO,UAAU,CAAC,CAAC,CAAC,CAClB,KAAC,IAAI,IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,iBAAiB,EAAE,QAAQ,EAC3B,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,EAC1D,aAAa,EAAE,OAAO,WACtB,CACH,CAAC,CAAC,CAAC,CACF,OAAO,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState, useEffect } from 'react';\n\nimport { MenuItemProps, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedNewPost,\n FeedNewPostProps,\n RecipientOption,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { availableRecipients, caseMentions, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedNewPost',\n component: FeedNewPost\n} as Meta;\n\nexport const FeedNewPostDemo = ({\n onPost = () => {},\n renderFeed = true\n}: {\n onPost?: FeedNewPostProps['onPost'];\n renderFeed?: boolean;\n}) => {\n const key = useUID();\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n const [attachments, setAttachments] = useState<AttachedFiles[]>([]);\n const [filterValue, setFilterValue] = useState('');\n const [itemsToRender, setItemsToRender] = useState<RecipientOption[]>(availableRecipients);\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual }) => {\n return {\n id,\n primary,\n secondary,\n visual\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n if (file.size / 1000000 > 100) {\n file.meta = 'File size cannot exceed 100MB';\n file.error = true;\n }\n\n file.onDelete = () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setAttachments(current => [...current, ...files]);\n };\n\n useEffect(() => {\n // Synthetic delay to mimic async request\n const timeout = setTimeout(() => {\n const newItems = availableRecipients.filter(({ primary, secondary }) => {\n return (\n primary.toLowerCase().includes(filterValue) ||\n secondary.find(x => x.toLowerCase().includes(filterValue))\n );\n });\n\n setItemsToRender(newItems);\n }, 500);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [filterValue]);\n\n const newPost = (\n <FeedNewPost\n id={key}\n attachments={attachments}\n interactionInfo={{\n textAreaPlaceholder: 'Start a conversation',\n postLabel: 'Post'\n }}\n onFilesAdded={onFilesAdded}\n onPost={postEvent => {\n onPost?.(postEvent);\n setAttachments([]);\n postEvent.clear();\n }}\n recipients={itemsToRender}\n onRecipientSearch={(newSearch: string) => setFilterValue(newSearch)}\n />\n );\n\n return renderFeed ? (\n <Feed\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n newPostRegion={newPost}\n />\n ) : (\n newPost\n );\n};\n"]}
1
+ {"version":3,"file":"FeedNewPost.stories.js","sourceRoot":"","sources":["../../../src/social/Feed/FeedNewPost.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAiB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,IAAI,EACJ,WAAW,EAIZ,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE/E,eAAe;IACb,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,WAAW;CACf,CAAC;AAEV,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,MAAM,GAAG,GAAG,EAAE,GAAE,CAAC,EACjB,UAAU,GAAG,IAAI,EAIlB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACxE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACpE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAoB,mBAAmB,CAAC,CAAC;IAE3F,MAAM,QAAQ,GAAG,CAAC,EAChB,IAAI,EACJ,MAAM,EACN,WAAW,EAKZ,EAAE,EAAE;QACH,IAAI,IAAI,KAAK,SAAS,EAAE;YACtB,MAAM,i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GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,OAAO,GAAG,CACd,KAAC,WAAW,IACV,EAAE,EAAE,GAAG,EACP,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE;YACf,mBAAmB,EAAE,sBAAsB;YAC3C,SAAS,EAAE,MAAM;SAClB,EACD,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,SAAS,CAAC,EAAE;YAClB,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC;YACpB,cAAc,CAAC,EAAE,CAAC,CAAC;YACnB,SAAS,CAAC,KAAK,EAAE,CAAC;QACpB,CAAC,EACD,UAAU,EAAE,aAAa,EACzB,iBAAiB,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,GACnE,CACH,CAAC;IAEF,OAAO,UAAU,CAAC,CAAC,CAAC,CAClB,KAAC,IAAI,IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,iBAAiB,EAAE,QAAQ,EAC3B,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,EAC1D,aAAa,EAAE,OAAO,GACtB,CACH,CAAC,CAAC,CAAC,CACF,OAAO,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState, useEffect } from 'react';\n\nimport { MenuItemProps, useUID } from '@pega/cosmos-react-core';\nimport {\n Feed,\n FeedNewPost,\n FeedNewPostProps,\n RecipientOption,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { availableRecipients, caseMentions, userMentions } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/FeedNewPost',\n component: FeedNewPost\n} as Meta;\n\nexport const FeedNewPostDemo = ({\n onPost = () => {},\n renderFeed = true\n}: {\n onPost?: FeedNewPostProps['onPost'];\n renderFeed?: boolean;\n}) => {\n const key = useUID();\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n const [attachments, setAttachments] = useState<AttachedFiles[]>([]);\n const [filterValue, setFilterValue] = useState('');\n const [itemsToRender, setItemsToRender] = useState<RecipientOption[]>(availableRecipients);\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter((user: GlimpseProps) => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual }) => {\n return {\n id,\n primary,\n secondary,\n visual\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n if (file.size / 1000000 > 100) {\n file.meta = 'File size cannot exceed 100MB';\n file.error = true;\n }\n\n file.onDelete = () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setAttachments(current => [...current, ...files]);\n };\n\n useEffect(() => {\n // Synthetic delay to mimic async request\n const timeout = setTimeout(() => {\n const newItems = availableRecipients.filter(({ primary, secondary }) => {\n return (\n primary.toLowerCase().includes(filterValue) ||\n secondary.find(x => x.toLowerCase().includes(filterValue))\n );\n });\n\n setItemsToRender(newItems);\n }, 500);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [filterValue]);\n\n const newPost = (\n <FeedNewPost\n id={key}\n attachments={attachments}\n interactionInfo={{\n textAreaPlaceholder: 'Start a conversation',\n postLabel: 'Post'\n }}\n onFilesAdded={onFilesAdded}\n onPost={postEvent => {\n onPost?.(postEvent);\n setAttachments([]);\n postEvent.clear();\n }}\n recipients={itemsToRender}\n onRecipientSearch={(newSearch: string) => setFilterValue(newSearch)}\n />\n );\n\n return renderFeed ? (\n <Feed\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n newPostRegion={newPost}\n />\n ) : (\n newPost\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FeedPost.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAwBxC,OAAO,EAKL,iBAAiB,EAClB,MAAM,cAAc,CAAC;;AAEtB,wBAGU;AAEV,eAAO,MAAM,YAAY,kMActB,iBAAiB,gBA6RnB,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBAEhC,CAAC;AAEF,eAAO,MAAM,eAAe,mBA+C3B,CAAC"}
1
+ {"version":3,"file":"FeedPost.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAwBxC,OAAO,EAKL,iBAAiB,EAClB,MAAM,cAAc,CAAC;;AAEtB,wBAGU;AAEV,eAAO,MAAM,YAAY,kMActB,iBAAiB,gBA2SnB,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBAEhC,CAAC;AAEF,eAAO,MAAM,eAAe,mBA+C3B,CAAC"}