@pega/cosmos-react-demos 4.0.0-dev.20.0 → 4.0.0-dev.22.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 (993) hide show
  1. package/jsx/build/AppShell/AppShell.stories.d.ts +5 -5
  2. package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
  3. package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
  4. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  5. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  6. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  7. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  8. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  9. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +1 -2
  10. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
  11. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  12. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  13. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
  14. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  15. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  16. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +1 -2
  17. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
  18. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  19. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  20. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
  21. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  22. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  23. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +1 -1
  24. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  25. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  26. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
  27. package/jsx/build/PageBanner/PageBanner.stories.d.ts +5 -5
  28. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
  29. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -1
  30. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
  31. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  32. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
  33. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  34. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  35. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  36. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
  37. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
  38. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -1
  39. package/jsx/build/Workbench/Workbench.stories.d.ts +4 -4
  40. package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
  41. package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
  42. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  43. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  44. package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
  45. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  46. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  47. package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -1
  48. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  49. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  50. package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
  51. package/jsx/core/AIButton/AIButton.stories.d.ts +7 -7
  52. package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -1
  53. package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -1
  54. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  55. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  56. package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -1
  57. package/jsx/core/AppShell/AppShell.stories.d.ts +5 -5
  58. package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
  59. package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
  60. package/jsx/core/Avatar/Avatar.stories.d.ts +9 -9
  61. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  62. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  63. package/jsx/core/Backdrop/Backdrop.stories.d.ts +5 -5
  64. package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  65. package/jsx/core/Backdrop/Backdrop.stories.jsx.map +1 -1
  66. package/jsx/core/Badges/Alert.stories.d.ts +4 -4
  67. package/jsx/core/Badges/Alert.stories.d.ts.map +1 -1
  68. package/jsx/core/Badges/Alert.stories.jsx.map +1 -1
  69. package/jsx/core/Badges/Count.stories.d.ts +4 -4
  70. package/jsx/core/Badges/Count.stories.d.ts.map +1 -1
  71. package/jsx/core/Badges/Count.stories.jsx.map +1 -1
  72. package/jsx/core/Badges/Keyboard.stories.d.ts +4 -4
  73. package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -1
  74. package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -1
  75. package/jsx/core/Badges/Selection.stories.d.ts +3 -3
  76. package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
  77. package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
  78. package/jsx/core/Badges/Status.stories.d.ts +5 -5
  79. package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
  80. package/jsx/core/Badges/Status.stories.jsx.map +1 -1
  81. package/jsx/core/Badges/Tag.stories.d.ts +3 -3
  82. package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
  83. package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
  84. package/jsx/core/Banner/Banner.stories.d.ts +7 -7
  85. package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
  86. package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
  87. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  88. package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  89. package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +1 -1
  90. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  91. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  92. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  93. package/jsx/core/Button/Button.stories.d.ts +9 -9
  94. package/jsx/core/Button/Button.stories.d.ts.map +1 -1
  95. package/jsx/core/Button/Button.stories.jsx.map +1 -1
  96. package/jsx/core/Card/Card.stories.d.ts +6 -6
  97. package/jsx/core/Card/Card.stories.d.ts.map +1 -1
  98. package/jsx/core/Card/Card.stories.jsx.map +1 -1
  99. package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -6
  100. package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  101. package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
  102. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  103. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  104. package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
  105. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  106. package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  107. package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
  108. package/jsx/core/ComboBox/ComboBox.stories.d.ts +9 -9
  109. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  110. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  111. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  112. package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  113. package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
  114. package/jsx/core/Configuration/Configuration.stories.d.ts +8 -8
  115. package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
  116. package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
  117. package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -4
  118. package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  119. package/jsx/core/CreditCard/CreditCard.stories.jsx +1 -2
  120. package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
  121. package/jsx/core/Currency/Currency.stories.d.ts +5 -5
  122. package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
  123. package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
  124. package/jsx/core/DangerButton/DangerButton.stories.d.ts +4 -4
  125. package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
  126. package/jsx/core/DangerButton/DangerButton.stories.jsx.map +1 -1
  127. package/jsx/core/DateTime/DateTime.stories.d.ts +13 -13
  128. package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
  129. package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
  130. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  131. package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  132. package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
  133. package/jsx/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  134. package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  135. package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
  136. package/jsx/core/Dialog/Dialog.stories.d.ts +5 -5
  137. package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
  138. package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
  139. package/jsx/core/Drawer/Drawer.stories.d.ts +5 -5
  140. package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -1
  141. package/jsx/core/Drawer/Drawer.stories.jsx.map +1 -1
  142. package/jsx/core/Email/EmailDisplay.stories.d.ts +4 -4
  143. package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  144. package/jsx/core/Email/EmailDisplay.stories.jsx.map +1 -1
  145. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  146. package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  147. package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
  148. package/jsx/core/EmptyState/EmptyState.stories.d.ts +4 -4
  149. package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  150. package/jsx/core/EmptyState/EmptyState.stories.jsx.map +1 -1
  151. package/jsx/core/ErrorState/ErrorState.stories.d.ts +4 -4
  152. package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  153. package/jsx/core/ErrorState/ErrorState.stories.jsx.map +1 -1
  154. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  155. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  156. package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -1
  157. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +4 -4
  158. package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  159. package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
  160. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +5 -5
  161. package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  162. package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
  163. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  164. package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  165. package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
  166. package/jsx/core/File/FileDisplay.stories.d.ts +6 -6
  167. package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
  168. package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
  169. package/jsx/core/File/FileInput.stories.d.ts +4 -4
  170. package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
  171. package/jsx/core/File/FileInput.stories.jsx.map +1 -1
  172. package/jsx/core/Flex/FlexContainer.stories.d.ts +10 -10
  173. package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  174. package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
  175. package/jsx/core/Flex/FlexItem.stories.d.ts +6 -6
  176. package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -1
  177. package/jsx/core/Flex/FlexItem.stories.jsx.map +1 -1
  178. package/jsx/core/Form/Form.stories.d.ts +8 -8
  179. package/jsx/core/Form/Form.stories.d.ts.map +1 -1
  180. package/jsx/core/Form/Form.stories.jsx.map +1 -1
  181. package/jsx/core/Grid/GridContainer.stories.d.ts +12 -12
  182. package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
  183. package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
  184. package/jsx/core/Grid/GridItem.stories.d.ts +6 -6
  185. package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
  186. package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
  187. package/jsx/core/HTML/HTML.stories.d.ts +4 -4
  188. package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
  189. package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
  190. package/jsx/core/Icon/Icon.stories.d.ts +6 -6
  191. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  192. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  193. package/jsx/core/IconPicker/IconPicker.stories.d.ts +4 -4
  194. package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  195. package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
  196. package/jsx/core/Image/Image.stories.d.ts +3 -3
  197. package/jsx/core/Image/Image.stories.d.ts.map +1 -1
  198. package/jsx/core/Image/Image.stories.jsx.map +1 -1
  199. package/jsx/core/Input/Input.stories.d.ts +6 -6
  200. package/jsx/core/Input/Input.stories.d.ts.map +1 -1
  201. package/jsx/core/Input/Input.stories.jsx.map +1 -1
  202. package/jsx/core/Label/Label.stories.d.ts +5 -5
  203. package/jsx/core/Label/Label.stories.d.ts.map +1 -1
  204. package/jsx/core/Label/Label.stories.jsx.map +1 -1
  205. package/jsx/core/Lightbox/Lightbox.stories.d.ts +3 -3
  206. package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  207. package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
  208. package/jsx/core/Link/Link.stories.d.ts +7 -7
  209. package/jsx/core/Link/Link.stories.d.ts.map +1 -1
  210. package/jsx/core/Link/Link.stories.jsx.map +1 -1
  211. package/jsx/core/List/CommaSeparatedList.stories.d.ts +4 -4
  212. package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  213. package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
  214. package/jsx/core/List/OrderedList.stories.d.ts +4 -4
  215. package/jsx/core/List/OrderedList.stories.d.ts.map +1 -1
  216. package/jsx/core/List/OrderedList.stories.jsx.map +1 -1
  217. package/jsx/core/List/UnorderedList.stories.d.ts +4 -4
  218. package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -1
  219. package/jsx/core/List/UnorderedList.stories.jsx.map +1 -1
  220. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
  221. package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  222. package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
  223. package/jsx/core/LiveLog/LiveLog.stories.d.ts +4 -4
  224. package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  225. package/jsx/core/LiveLog/LiveLog.stories.jsx.map +1 -1
  226. package/jsx/core/Location/Location.stories.d.ts +7 -7
  227. package/jsx/core/Location/Location.stories.d.ts.map +1 -1
  228. package/jsx/core/Location/Location.stories.jsx +6 -2
  229. package/jsx/core/Location/Location.stories.jsx.map +1 -1
  230. package/jsx/core/Menu/Menu.stories.d.ts +6 -6
  231. package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
  232. package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
  233. package/jsx/core/MenuButton/MenuButton.stories.d.ts +7 -7
  234. package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  235. package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
  236. package/jsx/core/MetaList/MetaList.stories.d.ts +4 -4
  237. package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -1
  238. package/jsx/core/MetaList/MetaList.stories.jsx.map +1 -1
  239. package/jsx/core/Modal/Modal.stories.d.ts +11 -11
  240. package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
  241. package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
  242. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -5
  243. package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  244. package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
  245. package/jsx/core/NoValue/NoValue.stories.d.ts +4 -4
  246. package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -1
  247. package/jsx/core/NoValue/NoValue.stories.jsx.map +1 -1
  248. package/jsx/core/Number/Number.stories.d.ts +7 -7
  249. package/jsx/core/Number/Number.stories.d.ts.map +1 -1
  250. package/jsx/core/Number/Number.stories.jsx.map +1 -1
  251. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +7 -7
  252. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  253. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  254. package/jsx/core/Pagination/Pagination.stories.d.ts +4 -4
  255. package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -1
  256. package/jsx/core/Pagination/Pagination.stories.jsx.map +1 -1
  257. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  258. package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  259. package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -1
  260. package/jsx/core/Phone/Phone.stories.d.ts +5 -5
  261. package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
  262. package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
  263. package/jsx/core/Popover/Popover.stories.d.ts +7 -7
  264. package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
  265. package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
  266. package/jsx/core/Progress/Progress.stories.d.ts +5 -5
  267. package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
  268. package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
  269. package/jsx/core/QRCode/QRCode.stories.d.ts +3 -3
  270. package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -1
  271. package/jsx/core/QRCode/QRCode.stories.jsx.map +1 -1
  272. package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -6
  273. package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  274. package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
  275. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  276. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  277. package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
  278. package/jsx/core/Rating/Rating.stories.d.ts +5 -5
  279. package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
  280. package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
  281. package/jsx/core/SearchInput/SearchInput.stories.d.ts +5 -5
  282. package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  283. package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
  284. package/jsx/core/Select/Select.stories.d.ts +5 -5
  285. package/jsx/core/Select/Select.stories.d.ts.map +1 -1
  286. package/jsx/core/Select/Select.stories.jsx.map +1 -1
  287. package/jsx/core/Sentiment/Sentiment.stories.d.ts +5 -5
  288. package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  289. package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
  290. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  291. package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  292. package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -1
  293. package/jsx/core/Slider/Slider.stories.d.ts +4 -4
  294. package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
  295. package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
  296. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +4 -4
  297. package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  298. package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
  299. package/jsx/core/SummaryList/SummaryList.stories.d.ts +5 -5
  300. package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  301. package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
  302. package/jsx/core/Switch/Switch.stories.d.ts +6 -6
  303. package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
  304. package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
  305. package/jsx/core/Table/Table.stories.d.ts +6 -6
  306. package/jsx/core/Table/Table.stories.d.ts.map +1 -1
  307. package/jsx/core/Table/Table.stories.jsx.map +1 -1
  308. package/jsx/core/Tabs/Tabs.stories.d.ts +4 -4
  309. package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
  310. package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
  311. package/jsx/core/Text/Text.stories.d.ts +5 -5
  312. package/jsx/core/Text/Text.stories.d.ts.map +1 -1
  313. package/jsx/core/Text/Text.stories.jsx.map +1 -1
  314. package/jsx/core/TextArea/TextArea.stories.d.ts +5 -5
  315. package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
  316. package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
  317. package/jsx/core/Toaster/Toaster.stories.d.ts +3 -3
  318. package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
  319. package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
  320. package/jsx/core/Tooltip/Tooltip.stories.d.ts +5 -5
  321. package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  322. package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
  323. package/jsx/core/Tree/Tree.stories.d.ts +5 -5
  324. package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
  325. package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
  326. package/jsx/core/URL/URL.stories.d.ts +4 -4
  327. package/jsx/core/URL/URL.stories.d.ts.map +1 -1
  328. package/jsx/core/URL/URL.stories.jsx.map +1 -1
  329. package/jsx/cs/Article/Article.stories.d.ts +3 -3
  330. package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
  331. package/jsx/cs/Article/Article.stories.jsx.map +1 -1
  332. package/jsx/cs/ArticleList/ArticleList.mocks.js +1 -1
  333. package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  334. package/jsx/cs/ArticleList/ArticleList.stories.d.ts +3 -3
  335. package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  336. package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
  337. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  338. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  339. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
  340. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  341. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  342. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
  343. package/jsx/cs/DialPad/DialPad.stories.d.ts +4 -4
  344. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  345. package/jsx/cs/DialPad/DialPad.stories.jsx.map +1 -1
  346. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
  347. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  348. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
  349. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +4 -4
  350. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  351. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
  352. package/jsx/cs/Picker/Picker.stories.d.ts +6 -6
  353. package/jsx/cs/Picker/Picker.stories.d.ts.map +1 -1
  354. package/jsx/cs/Picker/Picker.stories.jsx.map +1 -1
  355. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  356. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  357. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
  358. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  359. package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  360. package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
  361. package/jsx/dnd/StandardDragDropList/Demo.d.ts +1 -0
  362. package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  363. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  364. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  365. package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -1
  366. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  367. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  368. package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
  369. package/jsx/rte/Editor/Editor.stories.d.ts +8 -8
  370. package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
  371. package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
  372. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  373. package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  374. package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
  375. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  376. package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  377. package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
  378. package/jsx/social/Chat/Chat.stories.d.ts +11 -11
  379. package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
  380. package/jsx/social/Chat/Chat.stories.jsx +8 -2
  381. package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
  382. package/jsx/social/Email/Email.stories.d.ts +15 -15
  383. package/jsx/social/Email/Email.stories.d.ts.map +1 -1
  384. package/jsx/social/Email/Email.stories.jsx.map +1 -1
  385. package/jsx/social/Feed/Feed.mocks.d.ts +18 -13
  386. package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
  387. package/jsx/social/Feed/Feed.mocks.jsx +74 -8
  388. package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
  389. package/jsx/social/Feed/Feed.stories.d.ts +5 -5
  390. package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
  391. package/jsx/social/Feed/Feed.stories.jsx +12 -12
  392. package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
  393. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +8 -0
  394. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
  395. package/jsx/social/Feed/FeedNewPost.mocks.jsx +44 -0
  396. package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -0
  397. package/jsx/social/Feed/FeedPost.mocks.d.ts +4 -0
  398. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -0
  399. package/jsx/social/Feed/FeedPost.mocks.jsx +167 -0
  400. package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -0
  401. package/jsx/social/Feed/FeedReply.mocks.d.ts +13 -0
  402. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -0
  403. package/jsx/social/Feed/FeedReply.mocks.jsx +76 -0
  404. package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -0
  405. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  406. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  407. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
  408. package/jsx/tools/DevTools/DevTools.stories.d.ts +4 -4
  409. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  410. package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
  411. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  412. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  413. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
  414. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  415. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  416. package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
  417. package/jsx/work/Assignments/Assignments.stories.d.ts +4 -4
  418. package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -1
  419. package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -1
  420. package/jsx/work/CaseView/CaseView.mocks.d.ts +1 -1
  421. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  422. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  423. package/jsx/work/CaseView/CaseView.stories.d.ts +3 -3
  424. package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
  425. package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
  426. package/jsx/work/CaseView/Pulse.mocks.d.ts +1 -1
  427. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  428. package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
  429. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  430. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  431. package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
  432. package/jsx/work/Confirmation/Confirmation.stories.d.ts +4 -4
  433. package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  434. package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
  435. package/jsx/work/Details/Details.stories.d.ts +3 -3
  436. package/jsx/work/Details/Details.stories.d.ts.map +1 -1
  437. package/jsx/work/Details/Details.stories.jsx.map +1 -1
  438. package/jsx/work/Glimpse/Glimpse.stories.d.ts +3 -3
  439. package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  440. package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
  441. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  442. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  443. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  444. package/jsx/work/Predictions/Predictions.stories.d.ts +3 -3
  445. package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -1
  446. package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -1
  447. package/jsx/work/SearchResults/SearchResults.stories.d.ts +3 -3
  448. package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  449. package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
  450. package/jsx/work/Stages/Stages.stories.d.ts +4 -4
  451. package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
  452. package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
  453. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  454. package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  455. package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
  456. package/jsx/work/Tags/Tags.stories.d.ts +3 -3
  457. package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
  458. package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
  459. package/jsx/work/Tasks/TaskList.stories.d.ts +3 -3
  460. package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
  461. package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
  462. package/jsx/work/Tasks/Tasks.stories.d.ts +4 -4
  463. package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
  464. package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
  465. package/jsx/work/Timeline/Timeline.stories.d.ts +6 -6
  466. package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
  467. package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
  468. package/jsx/wss/AppShell/AppShell.stories.d.ts +5 -5
  469. package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  470. package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
  471. package/jsx/wss/CaseView/CaseView.stories.d.ts +3 -3
  472. package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  473. package/jsx/wss/CaseView/CaseView.stories.jsx +2 -2
  474. package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
  475. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  476. package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  477. package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  478. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  479. package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  480. package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -1
  481. package/lib/build/AppShell/AppShell.stories.d.ts +5 -5
  482. package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
  483. package/lib/build/AppShell/AppShell.stories.js.map +1 -1
  484. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  485. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  486. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  487. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
  488. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
  489. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +1 -2
  490. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
  491. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
  492. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
  493. package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
  494. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
  495. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
  496. package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -2
  497. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
  498. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
  499. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
  500. package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
  501. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
  502. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
  503. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +1 -1
  504. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
  505. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
  506. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
  507. package/lib/build/PageBanner/PageBanner.stories.d.ts +5 -5
  508. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
  509. package/lib/build/PageBanner/PageBanner.stories.js.map +1 -1
  510. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
  511. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
  512. package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
  513. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
  514. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  515. package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
  516. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
  517. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
  518. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -1
  519. package/lib/build/Workbench/Workbench.stories.d.ts +4 -4
  520. package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
  521. package/lib/build/Workbench/Workbench.stories.js.map +1 -1
  522. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
  523. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
  524. package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
  525. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
  526. package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
  527. package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -1
  528. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
  529. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
  530. package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
  531. package/lib/core/AIButton/AIButton.stories.d.ts +7 -7
  532. package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -1
  533. package/lib/core/AIButton/AIButton.stories.js.map +1 -1
  534. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
  535. package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
  536. package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -1
  537. package/lib/core/AppShell/AppShell.stories.d.ts +5 -5
  538. package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
  539. package/lib/core/AppShell/AppShell.stories.js.map +1 -1
  540. package/lib/core/Avatar/Avatar.stories.d.ts +9 -9
  541. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  542. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  543. package/lib/core/Backdrop/Backdrop.stories.d.ts +5 -5
  544. package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
  545. package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
  546. package/lib/core/Badges/Alert.stories.d.ts +4 -4
  547. package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
  548. package/lib/core/Badges/Alert.stories.js.map +1 -1
  549. package/lib/core/Badges/Count.stories.d.ts +4 -4
  550. package/lib/core/Badges/Count.stories.d.ts.map +1 -1
  551. package/lib/core/Badges/Count.stories.js.map +1 -1
  552. package/lib/core/Badges/Keyboard.stories.d.ts +4 -4
  553. package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
  554. package/lib/core/Badges/Keyboard.stories.js.map +1 -1
  555. package/lib/core/Badges/Selection.stories.d.ts +3 -3
  556. package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
  557. package/lib/core/Badges/Selection.stories.js.map +1 -1
  558. package/lib/core/Badges/Status.stories.d.ts +5 -5
  559. package/lib/core/Badges/Status.stories.d.ts.map +1 -1
  560. package/lib/core/Badges/Status.stories.js.map +1 -1
  561. package/lib/core/Badges/Tag.stories.d.ts +3 -3
  562. package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
  563. package/lib/core/Badges/Tag.stories.js.map +1 -1
  564. package/lib/core/Banner/Banner.stories.d.ts +7 -7
  565. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  566. package/lib/core/Banner/Banner.stories.js.map +1 -1
  567. package/lib/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
  568. package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
  569. package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
  570. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  571. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  572. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  573. package/lib/core/Button/Button.stories.d.ts +9 -9
  574. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  575. package/lib/core/Button/Button.stories.js.map +1 -1
  576. package/lib/core/Card/Card.stories.d.ts +6 -6
  577. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  578. package/lib/core/Card/Card.stories.js.map +1 -1
  579. package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -6
  580. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  581. package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
  582. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
  583. package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  584. package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
  585. package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
  586. package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
  587. package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
  588. package/lib/core/ComboBox/ComboBox.stories.d.ts +9 -9
  589. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  590. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  591. package/lib/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
  592. package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
  593. package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -1
  594. package/lib/core/Configuration/Configuration.stories.d.ts +8 -8
  595. package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
  596. package/lib/core/Configuration/Configuration.stories.js.map +1 -1
  597. package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -4
  598. package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
  599. package/lib/core/CreditCard/CreditCard.stories.js +1 -2
  600. package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
  601. package/lib/core/Currency/Currency.stories.d.ts +5 -5
  602. package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
  603. package/lib/core/Currency/Currency.stories.js.map +1 -1
  604. package/lib/core/DangerButton/DangerButton.stories.d.ts +4 -4
  605. package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
  606. package/lib/core/DangerButton/DangerButton.stories.js.map +1 -1
  607. package/lib/core/DateTime/DateTime.stories.d.ts +13 -13
  608. package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
  609. package/lib/core/DateTime/DateTime.stories.js.map +1 -1
  610. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
  611. package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
  612. package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
  613. package/lib/core/DateTime/DateTimePicker.stories.d.ts +5 -5
  614. package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
  615. package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
  616. package/lib/core/Dialog/Dialog.stories.d.ts +5 -5
  617. package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
  618. package/lib/core/Dialog/Dialog.stories.js.map +1 -1
  619. package/lib/core/Drawer/Drawer.stories.d.ts +5 -5
  620. package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
  621. package/lib/core/Drawer/Drawer.stories.js.map +1 -1
  622. package/lib/core/Email/EmailDisplay.stories.d.ts +4 -4
  623. package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
  624. package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
  625. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
  626. package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
  627. package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
  628. package/lib/core/EmptyState/EmptyState.stories.d.ts +4 -4
  629. package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
  630. package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
  631. package/lib/core/ErrorState/ErrorState.stories.d.ts +4 -4
  632. package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
  633. package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
  634. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
  635. package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
  636. package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
  637. package/lib/core/FieldGroup/FieldGroup.stories.d.ts +4 -4
  638. package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
  639. package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
  640. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +5 -5
  641. package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
  642. package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
  643. package/lib/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
  644. package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
  645. package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
  646. package/lib/core/File/FileDisplay.stories.d.ts +6 -6
  647. package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
  648. package/lib/core/File/FileDisplay.stories.js.map +1 -1
  649. package/lib/core/File/FileInput.stories.d.ts +4 -4
  650. package/lib/core/File/FileInput.stories.d.ts.map +1 -1
  651. package/lib/core/File/FileInput.stories.js.map +1 -1
  652. package/lib/core/Flex/FlexContainer.stories.d.ts +10 -10
  653. package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
  654. package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
  655. package/lib/core/Flex/FlexItem.stories.d.ts +6 -6
  656. package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
  657. package/lib/core/Flex/FlexItem.stories.js.map +1 -1
  658. package/lib/core/Form/Form.stories.d.ts +8 -8
  659. package/lib/core/Form/Form.stories.d.ts.map +1 -1
  660. package/lib/core/Form/Form.stories.js.map +1 -1
  661. package/lib/core/Grid/GridContainer.stories.d.ts +12 -12
  662. package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
  663. package/lib/core/Grid/GridContainer.stories.js.map +1 -1
  664. package/lib/core/Grid/GridItem.stories.d.ts +6 -6
  665. package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
  666. package/lib/core/Grid/GridItem.stories.js.map +1 -1
  667. package/lib/core/HTML/HTML.stories.d.ts +4 -4
  668. package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
  669. package/lib/core/HTML/HTML.stories.js.map +1 -1
  670. package/lib/core/Icon/Icon.stories.d.ts +6 -6
  671. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  672. package/lib/core/Icon/Icon.stories.js.map +1 -1
  673. package/lib/core/IconPicker/IconPicker.stories.d.ts +4 -4
  674. package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
  675. package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
  676. package/lib/core/Image/Image.stories.d.ts +3 -3
  677. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  678. package/lib/core/Image/Image.stories.js.map +1 -1
  679. package/lib/core/Input/Input.stories.d.ts +6 -6
  680. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  681. package/lib/core/Input/Input.stories.js.map +1 -1
  682. package/lib/core/Label/Label.stories.d.ts +5 -5
  683. package/lib/core/Label/Label.stories.d.ts.map +1 -1
  684. package/lib/core/Label/Label.stories.js.map +1 -1
  685. package/lib/core/Lightbox/Lightbox.stories.d.ts +3 -3
  686. package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
  687. package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
  688. package/lib/core/Link/Link.stories.d.ts +7 -7
  689. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  690. package/lib/core/Link/Link.stories.js.map +1 -1
  691. package/lib/core/List/CommaSeparatedList.stories.d.ts +4 -4
  692. package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
  693. package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
  694. package/lib/core/List/OrderedList.stories.d.ts +4 -4
  695. package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
  696. package/lib/core/List/OrderedList.stories.js.map +1 -1
  697. package/lib/core/List/UnorderedList.stories.d.ts +4 -4
  698. package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
  699. package/lib/core/List/UnorderedList.stories.js.map +1 -1
  700. package/lib/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
  701. package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
  702. package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
  703. package/lib/core/LiveLog/LiveLog.stories.d.ts +4 -4
  704. package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
  705. package/lib/core/LiveLog/LiveLog.stories.js.map +1 -1
  706. package/lib/core/Location/Location.stories.d.ts +7 -7
  707. package/lib/core/Location/Location.stories.d.ts.map +1 -1
  708. package/lib/core/Location/Location.stories.js +6 -2
  709. package/lib/core/Location/Location.stories.js.map +1 -1
  710. package/lib/core/Menu/Menu.stories.d.ts +6 -6
  711. package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
  712. package/lib/core/Menu/Menu.stories.js.map +1 -1
  713. package/lib/core/MenuButton/MenuButton.stories.d.ts +7 -7
  714. package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
  715. package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
  716. package/lib/core/MetaList/MetaList.stories.d.ts +4 -4
  717. package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
  718. package/lib/core/MetaList/MetaList.stories.js.map +1 -1
  719. package/lib/core/Modal/Modal.stories.d.ts +11 -11
  720. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  721. package/lib/core/Modal/Modal.stories.js.map +1 -1
  722. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -5
  723. package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
  724. package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
  725. package/lib/core/NoValue/NoValue.stories.d.ts +4 -4
  726. package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -1
  727. package/lib/core/NoValue/NoValue.stories.js.map +1 -1
  728. package/lib/core/Number/Number.stories.d.ts +7 -7
  729. package/lib/core/Number/Number.stories.d.ts.map +1 -1
  730. package/lib/core/Number/Number.stories.js.map +1 -1
  731. package/lib/core/PageTemplates/PageTemplates.stories.d.ts +7 -7
  732. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  733. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  734. package/lib/core/Pagination/Pagination.stories.d.ts +4 -4
  735. package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
  736. package/lib/core/Pagination/Pagination.stories.js.map +1 -1
  737. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
  738. package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
  739. package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
  740. package/lib/core/Phone/Phone.stories.d.ts +5 -5
  741. package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
  742. package/lib/core/Phone/Phone.stories.js.map +1 -1
  743. package/lib/core/Popover/Popover.stories.d.ts +7 -7
  744. package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
  745. package/lib/core/Popover/Popover.stories.js.map +1 -1
  746. package/lib/core/Progress/Progress.stories.d.ts +5 -5
  747. package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
  748. package/lib/core/Progress/Progress.stories.js.map +1 -1
  749. package/lib/core/QRCode/QRCode.stories.d.ts +3 -3
  750. package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -1
  751. package/lib/core/QRCode/QRCode.stories.js.map +1 -1
  752. package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -6
  753. package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
  754. package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
  755. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
  756. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
  757. package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
  758. package/lib/core/Rating/Rating.stories.d.ts +5 -5
  759. package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
  760. package/lib/core/Rating/Rating.stories.js.map +1 -1
  761. package/lib/core/SearchInput/SearchInput.stories.d.ts +5 -5
  762. package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
  763. package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
  764. package/lib/core/Select/Select.stories.d.ts +5 -5
  765. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  766. package/lib/core/Select/Select.stories.js.map +1 -1
  767. package/lib/core/Sentiment/Sentiment.stories.d.ts +5 -5
  768. package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
  769. package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
  770. package/lib/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
  771. package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
  772. package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -1
  773. package/lib/core/Slider/Slider.stories.d.ts +4 -4
  774. package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
  775. package/lib/core/Slider/Slider.stories.js.map +1 -1
  776. package/lib/core/SummaryItem/SummaryItem.stories.d.ts +4 -4
  777. package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
  778. package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
  779. package/lib/core/SummaryList/SummaryList.stories.d.ts +5 -5
  780. package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
  781. package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
  782. package/lib/core/Switch/Switch.stories.d.ts +6 -6
  783. package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
  784. package/lib/core/Switch/Switch.stories.js.map +1 -1
  785. package/lib/core/Table/Table.stories.d.ts +6 -6
  786. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  787. package/lib/core/Table/Table.stories.js.map +1 -1
  788. package/lib/core/Tabs/Tabs.stories.d.ts +4 -4
  789. package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
  790. package/lib/core/Tabs/Tabs.stories.js.map +1 -1
  791. package/lib/core/Text/Text.stories.d.ts +5 -5
  792. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  793. package/lib/core/Text/Text.stories.js.map +1 -1
  794. package/lib/core/TextArea/TextArea.stories.d.ts +5 -5
  795. package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
  796. package/lib/core/TextArea/TextArea.stories.js.map +1 -1
  797. package/lib/core/Toaster/Toaster.stories.d.ts +3 -3
  798. package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
  799. package/lib/core/Toaster/Toaster.stories.js.map +1 -1
  800. package/lib/core/Tooltip/Tooltip.stories.d.ts +5 -5
  801. package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
  802. package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
  803. package/lib/core/Tree/Tree.stories.d.ts +5 -5
  804. package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
  805. package/lib/core/Tree/Tree.stories.js.map +1 -1
  806. package/lib/core/URL/URL.stories.d.ts +4 -4
  807. package/lib/core/URL/URL.stories.d.ts.map +1 -1
  808. package/lib/core/URL/URL.stories.js.map +1 -1
  809. package/lib/cs/Article/Article.stories.d.ts +3 -3
  810. package/lib/cs/Article/Article.stories.d.ts.map +1 -1
  811. package/lib/cs/Article/Article.stories.js.map +1 -1
  812. package/lib/cs/ArticleList/ArticleList.mocks.js +1 -1
  813. package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -1
  814. package/lib/cs/ArticleList/ArticleList.stories.d.ts +3 -3
  815. package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
  816. package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
  817. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
  818. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
  819. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
  820. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
  821. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
  822. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
  823. package/lib/cs/DialPad/DialPad.stories.d.ts +4 -4
  824. package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -1
  825. package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
  826. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
  827. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
  828. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
  829. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +4 -4
  830. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
  831. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
  832. package/lib/cs/Picker/Picker.stories.d.ts +6 -6
  833. package/lib/cs/Picker/Picker.stories.d.ts.map +1 -1
  834. package/lib/cs/Picker/Picker.stories.js.map +1 -1
  835. package/lib/cs/TaskManager/TaskManager.stories.d.ts +5 -5
  836. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
  837. package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
  838. package/lib/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
  839. package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
  840. package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
  841. package/lib/dnd/StandardDragDropList/Demo.d.ts +1 -0
  842. package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
  843. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
  844. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
  845. package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
  846. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
  847. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
  848. package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
  849. package/lib/rte/Editor/Editor.stories.d.ts +8 -8
  850. package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
  851. package/lib/rte/Editor/Editor.stories.js.map +1 -1
  852. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
  853. package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
  854. package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
  855. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
  856. package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
  857. package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
  858. package/lib/social/Chat/Chat.stories.d.ts +11 -11
  859. package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
  860. package/lib/social/Chat/Chat.stories.js +8 -2
  861. package/lib/social/Chat/Chat.stories.js.map +1 -1
  862. package/lib/social/Email/Email.stories.d.ts +15 -15
  863. package/lib/social/Email/Email.stories.d.ts.map +1 -1
  864. package/lib/social/Email/Email.stories.js.map +1 -1
  865. package/lib/social/Feed/Feed.mocks.d.ts +18 -13
  866. package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
  867. package/lib/social/Feed/Feed.mocks.js +74 -8
  868. package/lib/social/Feed/Feed.mocks.js.map +1 -1
  869. package/lib/social/Feed/Feed.stories.d.ts +5 -5
  870. package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
  871. package/lib/social/Feed/Feed.stories.js +12 -12
  872. package/lib/social/Feed/Feed.stories.js.map +1 -1
  873. package/lib/social/Feed/FeedNewPost.mocks.d.ts +8 -0
  874. package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
  875. package/lib/social/Feed/FeedNewPost.mocks.js +46 -0
  876. package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -0
  877. package/lib/social/Feed/FeedPost.mocks.d.ts +4 -0
  878. package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -0
  879. package/lib/social/Feed/FeedPost.mocks.js +165 -0
  880. package/lib/social/Feed/FeedPost.mocks.js.map +1 -0
  881. package/lib/social/Feed/FeedReply.mocks.d.ts +13 -0
  882. package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -0
  883. package/lib/social/Feed/FeedReply.mocks.js +74 -0
  884. package/lib/social/Feed/FeedReply.mocks.js.map +1 -0
  885. package/lib/tools/Clipboard/Clipboard.stories.d.ts +4 -4
  886. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
  887. package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
  888. package/lib/tools/DevTools/DevTools.stories.d.ts +4 -4
  889. package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
  890. package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
  891. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
  892. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
  893. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
  894. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
  895. package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
  896. package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
  897. package/lib/work/Assignments/Assignments.stories.d.ts +4 -4
  898. package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -1
  899. package/lib/work/Assignments/Assignments.stories.js.map +1 -1
  900. package/lib/work/CaseView/CaseView.mocks.d.ts +1 -1
  901. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  902. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  903. package/lib/work/CaseView/CaseView.stories.d.ts +3 -3
  904. package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
  905. package/lib/work/CaseView/CaseView.stories.js.map +1 -1
  906. package/lib/work/CaseView/Pulse.mocks.d.ts +1 -1
  907. package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  908. package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
  909. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
  910. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
  911. package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
  912. package/lib/work/Confirmation/Confirmation.stories.d.ts +4 -4
  913. package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
  914. package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
  915. package/lib/work/Details/Details.stories.d.ts +3 -3
  916. package/lib/work/Details/Details.stories.d.ts.map +1 -1
  917. package/lib/work/Details/Details.stories.js.map +1 -1
  918. package/lib/work/Glimpse/Glimpse.stories.d.ts +3 -3
  919. package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
  920. package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
  921. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
  922. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  923. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  924. package/lib/work/Predictions/Predictions.stories.d.ts +3 -3
  925. package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -1
  926. package/lib/work/Predictions/Predictions.stories.js.map +1 -1
  927. package/lib/work/SearchResults/SearchResults.stories.d.ts +3 -3
  928. package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
  929. package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
  930. package/lib/work/Stages/Stages.stories.d.ts +4 -4
  931. package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
  932. package/lib/work/Stages/Stages.stories.js.map +1 -1
  933. package/lib/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
  934. package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
  935. package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
  936. package/lib/work/Tags/Tags.stories.d.ts +3 -3
  937. package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
  938. package/lib/work/Tags/Tags.stories.js.map +1 -1
  939. package/lib/work/Tasks/TaskList.stories.d.ts +3 -3
  940. package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
  941. package/lib/work/Tasks/TaskList.stories.js.map +1 -1
  942. package/lib/work/Tasks/Tasks.stories.d.ts +4 -4
  943. package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
  944. package/lib/work/Tasks/Tasks.stories.js.map +1 -1
  945. package/lib/work/Timeline/Timeline.stories.d.ts +6 -6
  946. package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
  947. package/lib/work/Timeline/Timeline.stories.js.map +1 -1
  948. package/lib/wss/AppShell/AppShell.stories.d.ts +5 -5
  949. package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
  950. package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
  951. package/lib/wss/CaseView/CaseView.stories.d.ts +3 -3
  952. package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
  953. package/lib/wss/CaseView/CaseView.stories.js +2 -2
  954. package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
  955. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
  956. package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  957. package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
  958. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
  959. package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
  960. package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -1
  961. package/package.json +17 -17
  962. package/jsx/social/Feed/FeedNewPost.stories.d.ts +0 -10
  963. package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
  964. package/jsx/social/Feed/FeedNewPost.stories.jsx +0 -81
  965. package/jsx/social/Feed/FeedNewPost.stories.jsx.map +0 -1
  966. package/jsx/social/Feed/FeedPost.stories.d.ts +0 -8
  967. package/jsx/social/Feed/FeedPost.stories.d.ts.map +0 -1
  968. package/jsx/social/Feed/FeedPost.stories.jsx +0 -266
  969. package/jsx/social/Feed/FeedPost.stories.jsx.map +0 -1
  970. package/jsx/social/Feed/FeedReply.stories.d.ts +0 -16
  971. package/jsx/social/Feed/FeedReply.stories.d.ts.map +0 -1
  972. package/jsx/social/Feed/FeedReply.stories.jsx +0 -112
  973. package/jsx/social/Feed/FeedReply.stories.jsx.map +0 -1
  974. package/jsx/social/Feed/FeedReplyInput.stories.d.ts +0 -10
  975. package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
  976. package/jsx/social/Feed/FeedReplyInput.stories.jsx +0 -60
  977. package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +0 -1
  978. package/lib/social/Feed/FeedNewPost.stories.d.ts +0 -10
  979. package/lib/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
  980. package/lib/social/Feed/FeedNewPost.stories.js +0 -83
  981. package/lib/social/Feed/FeedNewPost.stories.js.map +0 -1
  982. package/lib/social/Feed/FeedPost.stories.d.ts +0 -8
  983. package/lib/social/Feed/FeedPost.stories.d.ts.map +0 -1
  984. package/lib/social/Feed/FeedPost.stories.js +0 -259
  985. package/lib/social/Feed/FeedPost.stories.js.map +0 -1
  986. package/lib/social/Feed/FeedReply.stories.d.ts +0 -16
  987. package/lib/social/Feed/FeedReply.stories.d.ts.map +0 -1
  988. package/lib/social/Feed/FeedReply.stories.js +0 -108
  989. package/lib/social/Feed/FeedReply.stories.js.map +0 -1
  990. package/lib/social/Feed/FeedReplyInput.stories.d.ts +0 -10
  991. package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
  992. package/lib/social/Feed/FeedReplyInput.stories.js +0 -61
  993. package/lib/social/Feed/FeedReplyInput.stories.js.map +0 -1
@@ -278,6 +278,20 @@ export const availableRecipients = [
278
278
  visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }),
279
279
  value: 'thomd',
280
280
  id: 'thomd'
281
+ },
282
+ {
283
+ primary: 'Louie Santos',
284
+ secondary: ['Marketing Specialist'],
285
+ visual: _jsx(Avatar, { size: 'l', name: 'Louie Santos' }),
286
+ value: 'santl',
287
+ id: 'santl'
288
+ },
289
+ {
290
+ primary: 'Margaret Foster',
291
+ secondary: ['Architect', 'Designer'],
292
+ visual: _jsx(Avatar, { size: 'l', name: 'Margaret Foster' }),
293
+ value: 'fostm',
294
+ id: 'fostm'
281
295
  }
282
296
  ];
283
297
  export const feedPosts = [
@@ -290,9 +304,7 @@ export const feedPosts = [
290
304
  postType: 'private',
291
305
  replies: [],
292
306
  likes: generatedLikes,
293
- likeCount: generatedLikes.length,
294
- userStatus: 'active',
295
- renderFeed: false
307
+ likeCount: generatedLikes.length
296
308
  },
297
309
  {
298
310
  id: createUID(),
@@ -300,15 +312,69 @@ export const feedPosts = [
300
312
  icon: 'robot-solid',
301
313
  username: 'feed_bot',
302
314
  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', 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' })] }) })),
303
- replies: [],
304
- userStatus: 'active',
305
- renderFeed: false
315
+ postType: 'private',
316
+ replies: []
306
317
  },
307
318
  {
308
319
  id: createUID(),
320
+ fullname: 'Feed Bot',
321
+ icon: 'robot-solid',
322
+ username: 'feed_bot',
309
323
  content: (_jsx(Link, { href: 'https://www.pega.com/products/sales-automation', 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' })] }) })),
310
- replies: [],
311
- renderFeed: false
324
+ postType: 'private',
325
+ replies: []
326
+ }
327
+ ];
328
+ export const feedUserGlimpseDetails = [
329
+ {
330
+ id: 'demoUser',
331
+ username: 'demo_user',
332
+ heading: {
333
+ primary: 'Demo User',
334
+ secondary: 'Mock data for the user of this demo',
335
+ visual: _jsx(Avatar, { size: 'l', name: 'Demo User' })
336
+ },
337
+ fields: [
338
+ {
339
+ name: 'Project',
340
+ value: 'Cosmos Demo'
341
+ },
342
+ {
343
+ name: 'Phone number',
344
+ value: _jsx(PhoneDisplay, { value: '(111) 111-1111' })
345
+ },
346
+ {
347
+ name: 'Email',
348
+ value: _jsx(EmailDisplay, { value: 'demo.user@example.com' })
349
+ }
350
+ ]
351
+ },
352
+ {
353
+ id: 'feedBot',
354
+ username: 'feed_bot',
355
+ heading: {
356
+ primary: 'Feed Bot',
357
+ secondary: 'A bot that leaves messages for this demo',
358
+ visual: _jsx(Avatar, { size: 'l', name: 'Feed Bot', icon: 'robot-solid' })
359
+ },
360
+ fields: [
361
+ {
362
+ name: 'Project',
363
+ value: 'Cosmos Demo'
364
+ },
365
+ {
366
+ name: 'Phone number',
367
+ value: _jsx(PhoneDisplay, { value: '(010) 101-0101' })
368
+ },
369
+ {
370
+ name: 'Email',
371
+ value: _jsx(EmailDisplay, { value: 'feed.bot@example.com' })
372
+ },
373
+ {
374
+ name: 'Reports to',
375
+ value: 'Demo User'
376
+ }
377
+ ]
312
378
  }
313
379
  ];
314
380
  //# sourceMappingURL=Feed.mocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Feed.mocks.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.mocks.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACV,MAAM,yBAAyB,CAAC;AAYjC,iBAAiB;AACjB,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,aAAa;aACrB;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,KAAC,YAAY,IAA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AAU;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,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,mJAAmJ,YAC5J,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,YACzD,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 { ReactNode } from 'react';\n\nimport {\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\ninterface Mention {\n id: string;\n primary: string;\n secondary?: string | string[];\n visual?: ReactNode;\n fields?: { name: string; value: ReactNode }[];\n href?: string;\n}\n\n// cspell:disable\nexport const userMentions: Mention[] = [\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: Mention[] = [\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 href: '#c-001'\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 href: '#c-002'\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 href: '#c-003'\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 href: '#c-004'\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 href: '#c-005'\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 icon?: FeedPostProps['info']['icon'];\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 postTimestamp?: FeedPostProps['info']['postTimestamp'];\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 icon: 'robot-solid',\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 icon: 'robot-solid',\n username: 'feed_bot',\n content: (\n <Link href='https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter'>\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'>\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","sour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MAAM,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,aAAa,GAAG;SAC/D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,aAAa;aACrB;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,KAAC,YAAY,IAAC,KAAK,EAAC,gBAAgB,GAAG;aAC/C;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,KAAC,YAAY,IAAC,KAAK,EAAC,sBAAsB,GAAG;aACrD;YACD;gBACE,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;aACnB;SACF;KACF;CACF,CAAC","sourcesContent":["import { ReactNode } from 'react';\n\nimport {\n Avatar,\n EmailDisplay,\n PhoneDisplay,\n Link,\n Flex,\n Image,\n OmitStrict,\n createUID\n} from '@pega/cosmos-react-core';\nimport { FeedPostProps } from '@pega/cosmos-react-social';\nimport { GlimpseProps } from '@pega/cosmos-react-work';\n\ninterface Mention {\n id: string;\n primary: string;\n secondary?: string | string[];\n visual?: ReactNode;\n fields?: { name: string; value: ReactNode }[];\n href?: string;\n}\n\n// cspell:disable\nexport const userMentions: Mention[] = [\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: Mention[] = [\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 href: '#c-001'\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 href: '#c-002'\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 href: '#c-003'\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 href: '#c-004'\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 href: '#c-005'\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 primary: 'Louie Santos',\n secondary: ['Marketing Specialist'],\n visual: <Avatar size='l' name='Louie Santos' />,\n value: 'santl',\n id: 'santl'\n },\n {\n primary: 'Margaret Foster',\n secondary: ['Architect', 'Designer'],\n visual: <Avatar size='l' name='Margaret Foster' />,\n value: 'fostm',\n id: 'fostm'\n }\n];\n// cspell:enable\n\nexport interface FeedPostDemoProps {\n id: string;\n fullname: FeedPostProps['fullname'];\n username: FeedPostProps['username'];\n content: FeedPostProps['content'];\n icon?: FeedPostProps['icon'];\n postType?: FeedPostProps['postType'];\n recipients?: FeedPostProps['recipients'];\n attachments?: FeedPostProps['attachments'];\n replies?: FeedPostProps['replies'];\n postTimestamp?: FeedPostProps['postTimestamp'];\n userStatus?: FeedPostProps['userStatus'];\n likes?: FeedPostProps['likes'];\n likeCount?: FeedPostProps['likeCount'];\n onDelete?: () => void;\n}\n\nexport const feedPosts: FeedPostDemoProps[] = [\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\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 },\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: (\n <Link href='https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter'>\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 postType: 'private',\n replies: []\n },\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: (\n <Link href='https://www.pega.com/products/sales-automation'>\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 postType: 'private',\n replies: []\n }\n];\n\nexport type FeedUserGlimpse = OmitStrict<GlimpseProps, 'onDismiss' | 'target'> & {\n username: string;\n};\n\nexport const feedUserGlimpseDetails: FeedUserGlimpse[] = [\n {\n id: 'demoUser',\n username: 'demo_user',\n heading: {\n primary: 'Demo User',\n secondary: 'Mock data for the user of this demo',\n visual: <Avatar size='l' name='Demo User' />\n },\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='demo.user@example.com' />\n }\n ]\n },\n {\n id: 'feedBot',\n username: 'feed_bot',\n heading: {\n primary: 'Feed Bot',\n secondary: 'A bot that leaves messages for this demo',\n visual: <Avatar size='l' name='Feed Bot' icon='robot-solid' />\n },\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(010) 101-0101' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='feed.bot@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Demo User'\n }\n ]\n }\n];\n"]}
@@ -1,11 +1,11 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { FeedProps } from '@pega/cosmos-react-social/lib/components/Feed/Feed';
3
- declare const _default: Meta;
1
+ import type { StoryFn } from '@storybook/react';
2
+ import type { FeedProps } from '@pega/cosmos-react-social';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  interface FeedDemoProps {
6
6
  markdownMap?: FeedProps['markdownMap'];
7
7
  onMentionPreview?: FeedProps['onMentionPreview'];
8
8
  }
9
- export declare const FeedDemo: Story<FeedDemoProps>;
10
- export declare const FeedWithAppShell: Story;
9
+ export declare const FeedDemo: StoryFn<FeedDemoProps>;
10
+ export declare const FeedWithAppShell: StoryFn;
11
11
  //# sourceMappingURL=Feed.stories.d.ts.map
@@ -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,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAkB/C,OAAO,EAAE,SAAS,EAAE,MAAM,oDAAoD,CAAC;;AAS/E,wBAGU;AAEV,UAAU,aAAa;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,aAAa,CA8NzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC"}
1
+ {"version":3,"file":"Feed.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,KAAK,EAAE,SAAS,EAAyB,MAAM,2BAA2B,CAAC;;AAWlF,wBAGU;AAEV,UAAU,aAAa;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,aAAa,CA6N3C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAE9B,CAAC"}
@@ -5,11 +5,11 @@ import { createUID, DateTimeDisplay, Lightbox, OneColumnPage } from '@pega/cosmo
5
5
  import { Feed, MentionButtonConfig, HashtagButtonConfig } from '@pega/cosmos-react-social';
6
6
  import { Glimpse } from '@pega/cosmos-react-work';
7
7
  import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
8
- import { FeedPostDemo } from './FeedPost.stories';
9
- import { FeedNewPostDemo } from './FeedNewPost.stories';
8
+ import { FeedPostDemo } from './FeedPost.mocks';
9
+ import { FeedNewPostDemo } from './FeedNewPost.mocks';
10
10
  import { caseMentions, feedPosts, userMentions } from './Feed.mocks';
11
11
  export default {
12
- title: 'Social/Feed/Feed',
12
+ title: 'Social/Feed',
13
13
  component: Feed
14
14
  };
15
15
  export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
@@ -67,12 +67,12 @@ export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
67
67
  ...posts,
68
68
  {
69
69
  id: createUID(),
70
- fullname: 'Demo User',
71
- username: 'demo_user',
70
+ fullname: 'Feed Bot',
71
+ icon: 'robot-solid',
72
+ username: 'feed_bot',
72
73
  content: 'This post was loaded after the Feed was scrolled to the bottom!',
73
74
  attachments: [],
74
- replies: [],
75
- renderFeed: false
75
+ replies: []
76
76
  }
77
77
  ]);
78
78
  }, 1000);
@@ -121,7 +121,7 @@ export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
121
121
  return [...postsCopy];
122
122
  });
123
123
  };
124
- return (_jsxs(_Fragment, { children: [_jsx(Feed, { title: 'Pulse', userInfo: { username: 'demo_user', fullname: 'Demo User' }, searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, onMentionClick: onMentionClick, onMentionPreview: onMentionPreview, markdownMap: markdownMap, interactionRenderers: [MentionButtonConfig, HashtagButtonConfig], filters: filters, onFilterChange: toggleFilter, loadingPosts: loading, onLoadMore: generateNewPost, newPostRegion: _jsx(FeedNewPostDemo, { onPost: postEvent => {
124
+ return (_jsxs(_Fragment, { children: [_jsx(Feed, { title: 'Pulse', userInfo: { username: 'demo_user', fullname: 'Demo User', userStatus: 'active' }, searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, onMentionClick: onMentionClick, onMentionPreview: onMentionPreview, markdownMap: markdownMap, interactionRenderers: [MentionButtonConfig, HashtagButtonConfig], filters: filters, onFilterChange: toggleFilter, loadingPosts: loading, onLoadMore: generateNewPost, newPostRegion: _jsx(FeedNewPostDemo, { onSubmit: postEvent => {
125
125
  const { value, attachments, recipients, clear } = postEvent;
126
126
  attachments.forEach(file => {
127
127
  delete file.onDelete;
@@ -136,19 +136,19 @@ export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
136
136
  id: createUID(),
137
137
  fullname: 'Demo User',
138
138
  username: 'demo_user',
139
+ userStatus: 'active',
139
140
  content: value,
140
141
  attachments,
141
142
  recipients,
142
- postType: recipients.length ? 'private' : 'public',
143
+ postType: recipients?.length ? 'private' : 'public',
143
144
  replies: [],
144
- postTimestamp: new Date(),
145
- renderFeed: false
145
+ postTimestamp: new Date()
146
146
  },
147
147
  ...posts
148
148
  ]);
149
149
  clear();
150
150
  }
151
- }, renderFeed: false }), posts: extraPosts.map((post, i) => {
151
+ } }), posts: extraPosts.map((post, i) => {
152
152
  return _createElement(FeedPostDemo, { ...post, key: post.id, onDelete: () => deletePost(i) });
153
153
  }) }), lightboxImages && (_jsx(Lightbox, { items: lightboxImages, defaultIndex: defaultLBIndex.current, onAfterClose: () => {
154
154
  setLightboxImages(null);
@@ -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,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EACL,SAAS,EACT,eAAe,EACf,QAAQ,EAGR,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EAEJ,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAExF,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,IAAI;CACR,CAAC;AAOV,MAAM,CAAC,MAAM,QAAQ,GAAyB,CAAC,EAC7C,WAAW,EACX,gBAAgB,EACF,EAAE,EAAE;IAClB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAsB,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACnF,MAAM,CAAC,aAAa,EAAE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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,aAAa,EAAE,IAAI,IAAI,EAAE;oCACzB,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,GAAU,GAAG,EAAE;IAC1C,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, Story } from '@storybook/react';\nimport { useState, useRef, useCallback, useEffect } from 'react';\n\nimport {\n createUID,\n DateTimeDisplay,\n Lightbox,\n LightboxProps,\n MenuItemProps,\n OneColumnPage\n} from '@pega/cosmos-react-core';\nimport {\n Feed,\n Filter,\n MentionButtonConfig,\n HashtagButtonConfig,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { FeedProps } from '@pega/cosmos-react-social/lib/components/Feed/Feed';\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\ninterface FeedDemoProps {\n markdownMap?: FeedProps['markdownMap'];\n onMentionPreview?: FeedProps['onMentionPreview'];\n}\n\nexport const FeedDemo: Story<FeedDemoProps> = ({\n markdownMap,\n onMentionPreview\n}: FeedDemoProps) => {\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 => {\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, href }) => {\n return {\n id,\n primary,\n secondary:\n secondary !== undefined && !Array.isArray(secondary) ? [secondary] : secondary,\n visual,\n href\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 let timeoutId: ReturnType<typeof setTimeout>;\n\n const generateNewPost = useCallback(() => {\n if (!loading) {\n setLoading(true);\n timeoutId = 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 useEffect(() => {\n return () => clearTimeout(timeoutId);\n }, []);\n\n const onMentionClick = ({\n id,\n type,\n target,\n closeGlimpse\n }: { id: string; type: string; closeGlimpse?: () => void } & Partial<\n Pick<GlimpseProps, 'target'>\n >) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user && target && closeGlimpse) {\n const { primary, secondary, visual, ...restUser } = user;\n\n return (\n <Glimpse\n {...restUser}\n heading={{\n primary,\n secondary: Array.isArray(secondary) ? secondary.join(', ') : secondary,\n visual\n }}\n target={target}\n onDismiss={() => {\n closeGlimpse();\n }}\n placement='right'\n />\n );\n }\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 onMentionPreview={onMentionPreview}\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 postTimestamp: new Date(),\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: Story = () => {\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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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,GAAY,GAAG,EAAE;IAC5C,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 type { Meta, StoryFn } from '@storybook/react';\nimport { useState, useRef, useCallback, useEffect } from 'react';\n\nimport { createUID, DateTimeDisplay, Lightbox, OneColumnPage } from '@pega/cosmos-react-core';\nimport type { LightboxProps, MenuItemProps } from '@pega/cosmos-react-core';\nimport { Feed, MentionButtonConfig, HashtagButtonConfig } from '@pega/cosmos-react-social';\nimport type { FeedProps, Filter, AttachedFiles } from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\nimport type { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\n\nimport { FeedPostDemo } from './FeedPost.mocks';\nimport { FeedNewPostDemo } from './FeedNewPost.mocks';\nimport { caseMentions, feedPosts, userMentions } from './Feed.mocks';\nimport type { FeedPostDemoProps } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed',\n component: Feed\n} as Meta;\n\ninterface FeedDemoProps {\n markdownMap?: FeedProps['markdownMap'];\n onMentionPreview?: FeedProps['onMentionPreview'];\n}\n\nexport const FeedDemo: StoryFn<FeedDemoProps> = ({\n markdownMap,\n onMentionPreview\n}: FeedDemoProps) => {\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 => {\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, href }) => {\n return {\n id,\n primary,\n secondary:\n secondary !== undefined && !Array.isArray(secondary) ? [secondary] : secondary,\n visual,\n href\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 let timeoutId: ReturnType<typeof setTimeout>;\n\n const generateNewPost = useCallback(() => {\n if (!loading) {\n setLoading(true);\n timeoutId = setTimeout(() => {\n setLoading(false);\n setExtraPosts(posts => [\n ...posts,\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: 'This post was loaded after the Feed was scrolled to the bottom!',\n attachments: [],\n replies: []\n }\n ]);\n }, 1000);\n }\n }, [loading]);\n\n useEffect(() => {\n return () => clearTimeout(timeoutId);\n }, []);\n\n const onMentionClick = ({\n id,\n type,\n target,\n closeGlimpse\n }: { id: string; type: string; closeGlimpse?: () => void } & Partial<\n Pick<GlimpseProps, 'target'>\n >) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user && target && closeGlimpse) {\n const { primary, secondary, visual, ...restUser } = user;\n\n return (\n <Glimpse\n {...restUser}\n heading={{\n primary,\n secondary: Array.isArray(secondary) ? secondary.join(', ') : secondary,\n visual\n }}\n target={target}\n onDismiss={() => {\n closeGlimpse();\n }}\n placement='right'\n />\n );\n }\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', userStatus: 'active' }}\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n onMentionClick={onMentionClick}\n onMentionPreview={onMentionPreview}\n markdownMap={markdownMap}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n filters={filters}\n onFilterChange={toggleFilter}\n loadingPosts={loading}\n onLoadMore={generateNewPost}\n newPostRegion={\n <FeedNewPostDemo\n onSubmit={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 userStatus: 'active',\n content: value,\n attachments,\n recipients,\n postType: recipients?.length ? 'private' : 'public',\n replies: [],\n postTimestamp: new Date()\n },\n ...posts\n ]);\n clear();\n }\n }}\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: StoryFn = () => {\n return <AppShellDemo appHeader main={<OneColumnPage title='Welcome' a={<FeedDemo />} />} />;\n};\n\nFeedWithAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { FeedNewPostProps } from '@pega/cosmos-react-social';
3
+ interface FeedNewPostDemoProps {
4
+ onSubmit?: FeedNewPostProps['onSubmit'];
5
+ }
6
+ export declare const FeedNewPostDemo: ({ onSubmit }: FeedNewPostDemoProps) => JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=FeedNewPost.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedNewPost.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedNewPost.mocks.tsx"],"names":[],"mappings":";AAGA,OAAO,EAEL,gBAAgB,EAGjB,MAAM,2BAA2B,CAAC;AAInC,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,eAAe,iBAA6B,oBAAoB,gBAyD5E,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useState, useEffect } from 'react';
3
+ import { useUID } from '@pega/cosmos-react-core';
4
+ import { FeedNewPost } from '@pega/cosmos-react-social';
5
+ import { availableRecipients } from './Feed.mocks';
6
+ export const FeedNewPostDemo = ({ onSubmit = () => { } }) => {
7
+ const key = useUID();
8
+ const [attachments, setAttachments] = useState([]);
9
+ const [filterValue, setFilterValue] = useState('');
10
+ const [itemsToRender, setItemsToRender] = useState(availableRecipients);
11
+ const onFilesAdded = (files) => {
12
+ files.forEach(file => {
13
+ if (file.type.split('/')[0] === 'image')
14
+ file.thumbnail = URL.createObjectURL(file);
15
+ if (file.size / 1000000 > 100) {
16
+ file.meta = 'File size cannot exceed 100MB';
17
+ file.error = true;
18
+ }
19
+ file.onDelete = () => {
20
+ setAttachments(current => {
21
+ return current.filter(x => x.name !== file.name);
22
+ });
23
+ };
24
+ });
25
+ setAttachments(current => [...current, ...files]);
26
+ };
27
+ useEffect(() => {
28
+ // Synthetic delay to mimic async request
29
+ const timeout = setTimeout(() => {
30
+ const newItems = availableRecipients.filter(({ primary, secondary }) => {
31
+ return (primary.toLowerCase().includes(filterValue) ||
32
+ secondary.find(x => x.toLowerCase().includes(filterValue)));
33
+ });
34
+ setItemsToRender(newItems);
35
+ }, 500);
36
+ return () => {
37
+ clearTimeout(timeout);
38
+ };
39
+ }, [filterValue]);
40
+ return (_jsx(FeedNewPost, { id: key, attachments: attachments, onFilesAdded: onFilesAdded, onSubmit: postEvent => {
41
+ onSubmit?.(postEvent);
42
+ setAttachments([]);
43
+ postEvent.clear();
44
+ }, recipients: itemsToRender, onRecipientSearch: (newSearch) => setFilterValue(newSearch) }));
45
+ };
46
+ //# sourceMappingURL=FeedNewPost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AC,SAAiB,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,GACnE,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useEffect } from 'react';\n\nimport { useUID } from '@pega/cosmos-react-core';\nimport {\n FeedNewPost,\n FeedNewPostProps,\n RecipientOption,\n AttachedFiles\n} from '@pega/cosmos-react-social';\n\nimport { availableRecipients } from './Feed.mocks';\n\ninterface FeedNewPostDemoProps {\n onSubmit?: FeedNewPostProps['onSubmit'];\n}\n\nexport const FeedNewPostDemo = ({ onSubmit = () => {} }: FeedNewPostDemoProps) => {\n const key = useUID();\n const [attachments, setAttachments] = useState<AttachedFiles[]>([]);\n const [filterValue, setFilterValue] = useState('');\n const [itemsToRender, setItemsToRender] = useState<RecipientOption[]>(availableRecipients);\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 return (\n <FeedNewPost\n id={key}\n attachments={attachments}\n onFilesAdded={onFilesAdded}\n onSubmit={postEvent => {\n onSubmit?.(postEvent);\n setAttachments([]);\n postEvent.clear();\n }}\n recipients={itemsToRender}\n onRecipientSearch={(newSearch: string) => setFilterValue(newSearch)}\n />\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { FeedPostDemoProps } from './Feed.mocks';
3
+ export declare const FeedPostDemo: ({ id, fullname, username, icon, content, postType, recipients, attachments: postAttachments, replies, postTimestamp, userStatus, likes: userLikes, likeCount: userLikeCount, onDelete }: FeedPostDemoProps) => JSX.Element;
4
+ //# sourceMappingURL=FeedPost.mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedPost.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.mocks.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAmB,MAAM,cAAc,CAAC;AAEvE,eAAO,MAAM,YAAY,4LAetB,iBAAiB,gBAgPnB,CAAC"}
@@ -0,0 +1,165 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback, useState } from 'react';
3
+ import { Avatar, useUID } from '@pega/cosmos-react-core';
4
+ import { FeedPost } from '@pega/cosmos-react-social';
5
+ import { Glimpse } from '@pega/cosmos-react-work';
6
+ import { FeedReplyDemo } from './FeedReply.mocks';
7
+ import { availableRecipients, feedUserGlimpseDetails } from './Feed.mocks';
8
+ export const FeedPostDemo = ({ id, fullname, username, icon, content, postType, recipients, attachments: postAttachments, replies, postTimestamp = new Date(2022, 0, 1), userStatus, likes: userLikes, likeCount: userLikeCount, onDelete = () => { } }) => {
9
+ const defaultReplies = Array.from(Array(12).keys(), index => {
10
+ return (_jsx(FeedReplyDemo, { fullname: fullname, username: username, content: `This is reply number ${index + 1}!` }, `reply-story-${index + 1}`));
11
+ });
12
+ const key = useUID();
13
+ const [postContent, setPostContent] = useState(content);
14
+ const [likes, setLikes] = useState([]);
15
+ const [liked, setLiked] = useState(false);
16
+ const [likeCount, setLikeCount] = useState(userLikeCount || 0);
17
+ const [recipientsList, setRecipientsList] = useState([]);
18
+ const [edited, setEdited] = useState(false);
19
+ const [editTimestamp, setEditTimestamp] = useState(new Date());
20
+ const [glimpseData, setGlimpseData] = useState();
21
+ const [glimpseTarget, setGlimpseTarget] = useState();
22
+ const [extraReplies, setExtraReplies] = useState([]);
23
+ const [replyAttachments, setReplyAttachments] = useState([]);
24
+ const [replyCount, setReplyCount] = useState(replies ? replies.length : defaultReplies.length);
25
+ const [repliesLoading, setRepliesLoading] = useState(false);
26
+ const [repliesShown, setRepliesShown] = useState(3);
27
+ const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);
28
+ const [allRecipientsVisible, setAllRecipientsVisible] = useState(!!recipients);
29
+ const onShowMoreReplies = () => {
30
+ setRepliesLoading(true);
31
+ setTimeout(() => {
32
+ setRepliesShown(curr => {
33
+ if (curr + 3 <= defaultReplies.length)
34
+ return curr + 3;
35
+ return defaultReplies.length;
36
+ });
37
+ setRepliesLoading(false);
38
+ }, 1000);
39
+ };
40
+ const onShowLessReplies = () => {
41
+ setRepliesLoading(true);
42
+ setTimeout(() => {
43
+ setRepliesShown(3);
44
+ setRepliesLoading(false);
45
+ }, 1000);
46
+ };
47
+ const onFilesAdded = (files) => {
48
+ files.forEach(file => {
49
+ if (file.type.split('/')[0] === 'image')
50
+ file.thumbnail = URL.createObjectURL(file);
51
+ file.onDelete = () => {
52
+ setReplyAttachments?.(current => {
53
+ return current.filter(x => x.name !== file.name);
54
+ });
55
+ };
56
+ });
57
+ setReplyAttachments(files);
58
+ };
59
+ const getInitialLikes = () => {
60
+ if (likes.length)
61
+ return;
62
+ setLikes(userLikes || []);
63
+ };
64
+ const [likesLoading, setLikesLoading] = useState(false);
65
+ const generateNewLike = useCallback(() => {
66
+ if (!likesLoading) {
67
+ setLikesLoading(true);
68
+ setTimeout(() => {
69
+ setLikesLoading(false);
70
+ setLikes(oldLikes => [
71
+ ...oldLikes,
72
+ {
73
+ primary: 'Generated Like',
74
+ secondary: ['This like was loaded after the onLoadMoreLikes callback was triggered'],
75
+ visual: _jsx(Avatar, { size: 'l', name: 'Generated Like' }),
76
+ id: 'generatedLike'
77
+ }
78
+ ]);
79
+ setAdditionalLikeAdded(true);
80
+ }, 1000);
81
+ }
82
+ }, [likesLoading]);
83
+ const getInitialRecipients = () => {
84
+ if (recipientsList.length)
85
+ return;
86
+ setRecipientsList(recipients ||
87
+ availableRecipients.slice(0, !allRecipientsVisible ? 10 : availableRecipients.length));
88
+ };
89
+ const [recipientsLoading, setRecipientsLoading] = useState(false);
90
+ const getAllRecipients = () => {
91
+ if (!recipientsLoading) {
92
+ setRecipientsLoading(true);
93
+ setTimeout(() => {
94
+ setRecipientsLoading(false);
95
+ setRecipientsList(oldRecipients => [
96
+ ...oldRecipients,
97
+ {
98
+ primary: 'Additional Recipient',
99
+ secondary: [
100
+ 'This recipient was loaded after the onLoadMoreRecipients callback was triggered'
101
+ ],
102
+ visual: _jsx(Avatar, { size: 'l', name: 'Additional Recipient' }),
103
+ value: 'additionalRecipient',
104
+ id: 'additionalRecipient'
105
+ }
106
+ ]);
107
+ setAllRecipientsVisible(true);
108
+ }, 1000);
109
+ }
110
+ };
111
+ return (_jsxs(_Fragment, { children: [_jsx(FeedPost, { id: id, fullname: fullname, username: username, icon: icon, postTimestamp: postTimestamp, content: postContent, postType: postType, recipients: recipientsList, recipientsCount: recipients ? recipients.length : availableRecipients.length + 1, attachments: postAttachments, liked: liked, userStatus: userStatus, likes: likes, likeCount: likeCount >= 10 ? likeCount + 1 : likeCount, maxContentHeight: 80, onLikeClick: ({ user }) => {
112
+ const userLikedIndex = likes.findIndex(x => x.id === user.id);
113
+ if (userLikedIndex !== -1) {
114
+ setLikes(oldLikes => {
115
+ const oldLikesArr = [...oldLikes];
116
+ oldLikesArr.splice(userLikedIndex, 1);
117
+ return oldLikesArr;
118
+ });
119
+ setLikeCount(curr => curr - 1);
120
+ }
121
+ else {
122
+ setLikes(oldLikes => [user, ...oldLikes]);
123
+ setLikeCount(curr => curr + 1);
124
+ }
125
+ setLiked(curr => !curr);
126
+ }, onCommentClick: () => { }, onLikeCountInteraction: getInitialLikes, likesLoading: likesLoading, onLoadMoreLikes: !additionalLikeAdded ? generateNewLike : undefined, onRecipientInteraction: getInitialRecipients, recipientsLoading: recipientsLoading, onLoadMoreRecipients: !allRecipientsVisible ? getAllRecipients : undefined, onUserClick: ({ username: glimpseUsername }, clickEvent) => {
127
+ if (clickEvent) {
128
+ setGlimpseTarget(clickEvent.target);
129
+ setGlimpseData(curr => {
130
+ if (curr)
131
+ return undefined;
132
+ return feedUserGlimpseDetails.find(x => x.username === glimpseUsername);
133
+ });
134
+ }
135
+ }, menuItems: [
136
+ { primary: 'Custom action', id: 'custom', onClick: () => { } },
137
+ { primary: 'Delete', id: 'delete', onClick: onDelete }
138
+ ], onEditSubmit: ({ value }) => {
139
+ setPostContent(value);
140
+ setEdited(true);
141
+ setEditTimestamp(new Date());
142
+ }, edited: edited, editTimestamp: editTimestamp, replies: replies
143
+ ? [...replies, ...extraReplies]
144
+ : [...defaultReplies.slice(-repliesShown), ...extraReplies], replyCount: replyCount, repliesLoading: repliesLoading, onShowMoreReplies: onShowMoreReplies, onShowLessReplies: repliesShown > 3 ? onShowLessReplies : undefined, replyInput: {
145
+ attachments: replyAttachments,
146
+ onFilesAdded,
147
+ onSubmit: replyEvent => {
148
+ setReplyAttachments([]);
149
+ replyEvent.attachments.forEach(file => {
150
+ delete file.onDelete;
151
+ file.onPreview = () => { };
152
+ file.onDownload = () => { };
153
+ });
154
+ setExtraReplies(oldReplies => [
155
+ ...oldReplies,
156
+ _jsx(FeedReplyDemo, { fullname: 'Demo User', username: 'demo_user', userStatus: 'active', content: replyEvent.value, attachments: replyEvent.attachments, postTimestamp: new Date() }, `replies-${oldReplies.length}`)
157
+ ]);
158
+ setReplyCount(oldReplyCount => oldReplyCount + 1);
159
+ replyEvent.clear();
160
+ }
161
+ } }, key), glimpseTarget && glimpseData && (_jsx(Glimpse, { ...glimpseData, target: glimpseTarget, onDismiss: () => {
162
+ setGlimpseData(undefined);
163
+ }, placement: 'right' }))] }));
164
+ };
165
+ //# sourceMappingURL=FeedPost.mocks.js.map