@pega/cosmos-react-demos 5.0.0-dev.2.0 → 5.0.0-dev.3.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 (536) hide show
  1. package/jsx/core/AppShell/AppShell.mocks.d.ts +2 -2
  2. package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
  3. package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
  4. package/jsx/core/Avatar/Avatar.stories.jsx +1 -2
  5. package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
  6. package/jsx/core/Banner/Banner.mocks.d.ts +1 -1
  7. package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -1
  8. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
  9. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
  10. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
  11. package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
  12. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
  13. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  14. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +39 -11
  15. package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
  16. package/jsx/core/ComboBox/ComboBox.mocks.d.ts +2 -0
  17. package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
  18. package/jsx/core/ComboBox/{ComboBox.mocks.js → ComboBox.mocks.jsx} +5 -1
  19. package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +1 -0
  20. package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
  21. package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  22. package/jsx/core/ComboBox/ComboBox.stories.jsx +15 -7
  23. package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
  24. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +1 -1
  25. package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
  26. package/jsx/core/Configuration/Configuration.mocks.d.ts +1 -1
  27. package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -1
  28. package/jsx/core/Dialog/FormDialog.mocks.d.ts +2 -2
  29. package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
  30. package/jsx/core/Dialog/InfoDialog.mocks.d.ts +2 -2
  31. package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
  32. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +3 -3
  33. package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
  34. package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +1 -1
  35. package/jsx/core/Form/Form.mocks.d.ts +2 -2
  36. package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
  37. package/jsx/core/Icon/Icon.mocks.d.ts +23 -0
  38. package/jsx/core/Icon/Icon.mocks.d.ts.map +1 -1
  39. package/jsx/core/Icon/Icon.mocks.jsx +23 -0
  40. package/jsx/core/Icon/Icon.mocks.jsx.map +1 -1
  41. package/jsx/core/Icon/Icon.stories.d.ts +11 -1
  42. package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
  43. package/jsx/core/Icon/Icon.stories.jsx +41 -7
  44. package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
  45. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +2 -2
  46. package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
  47. package/jsx/core/LiveLog/LiveLog.mocks.d.ts +1 -1
  48. package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
  49. package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
  50. package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
  51. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +5 -5
  52. package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
  53. package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  54. package/jsx/core/PageTemplates/PageTemplates.stories.jsx +1 -1
  55. package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
  56. package/jsx/core/Popover/Popover.mocks.d.ts +1 -1
  57. package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -1
  58. package/jsx/core/Table/Table.mocks.d.ts +1 -1
  59. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +2 -2
  60. package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
  61. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +1 -1
  62. package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
  63. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +1 -1
  64. package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
  65. package/jsx/dnd/StandardDragDropList/Popover.d.ts +1 -1
  66. package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
  67. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +1 -1
  68. package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
  69. package/jsx/rte/Editor/Editor.mocks.d.ts +7 -0
  70. package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
  71. package/jsx/social/Email/Email.mocks.d.ts +1 -1
  72. package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
  73. package/jsx/social/Feed/Feed.mocks.d.ts +2 -2
  74. package/jsx/social/Feed/FeedNewPost.mocks.d.ts +1 -1
  75. package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
  76. package/jsx/social/Feed/FeedPost.mocks.d.ts +1 -1
  77. package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
  78. package/jsx/social/Feed/FeedReply.mocks.d.ts +1 -1
  79. package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
  80. package/jsx/work/CaseView/Attachments.mocks.d.ts +1 -1
  81. package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
  82. package/jsx/work/CaseView/CaseView.mocks.d.ts +9 -9
  83. package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  84. package/jsx/work/CaseView/CaseView.mocks.jsx +3 -3
  85. package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
  86. package/jsx/work/CaseView/Details.mocks.d.ts +1 -1
  87. package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
  88. package/jsx/work/CaseView/Pulse.mocks.d.ts +1 -1
  89. package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
  90. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +6 -6
  91. package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
  92. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
  93. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  94. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -252
  95. package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
  96. package/jsx/work/Predictions/Predictions.mocks.d.ts +1 -1
  97. package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -1
  98. package/jsx/work/Stages/Stages.mocks.d.ts +1 -1
  99. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +1 -1
  100. package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
  101. package/jsx/wss/AppShell/AppShell.mocks.d.ts +3 -3
  102. package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
  103. package/jsx/wss/CaseView/CaseView.mocks.d.ts +1 -1
  104. package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
  105. package/lib/core/Avatar/Avatar.stories.js +1 -2
  106. package/lib/core/Avatar/Avatar.stories.js.map +1 -1
  107. package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
  108. package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
  109. package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
  110. package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
  111. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
  112. package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
  113. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +39 -11
  114. package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  115. package/lib/core/ComboBox/ComboBox.mocks.d.ts +2 -0
  116. package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
  117. package/lib/core/ComboBox/ComboBox.mocks.js +3 -0
  118. package/lib/core/ComboBox/ComboBox.mocks.js.map +1 -1
  119. package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
  120. package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
  121. package/lib/core/ComboBox/ComboBox.stories.js +15 -7
  122. package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
  123. package/lib/core/Icon/Icon.mocks.d.ts +23 -0
  124. package/lib/core/Icon/Icon.mocks.d.ts.map +1 -1
  125. package/lib/core/Icon/Icon.mocks.js +23 -0
  126. package/lib/core/Icon/Icon.mocks.js.map +1 -1
  127. package/lib/core/Icon/Icon.stories.d.ts +11 -1
  128. package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
  129. package/lib/core/Icon/Icon.stories.js +41 -7
  130. package/lib/core/Icon/Icon.stories.js.map +1 -1
  131. package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
  132. package/lib/core/PageTemplates/PageTemplates.stories.js +1 -1
  133. package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
  134. package/lib/rte/Editor/Editor.mocks.d.ts +7 -0
  135. package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
  136. package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
  137. package/lib/work/CaseView/CaseView.mocks.js +3 -3
  138. package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
  139. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
  140. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
  141. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +3 -235
  142. package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
  143. package/package.json +12 -14
  144. package/jsx/build/AppShell/AppShell.mocks.d.ts +0 -44
  145. package/jsx/build/AppShell/AppShell.mocks.d.ts.map +0 -1
  146. package/jsx/build/AppShell/AppShell.mocks.jsx +0 -419
  147. package/jsx/build/AppShell/AppShell.mocks.jsx.map +0 -1
  148. package/jsx/build/AppShell/AppShell.stories.d.ts +0 -20
  149. package/jsx/build/AppShell/AppShell.stories.d.ts.map +0 -1
  150. package/jsx/build/AppShell/AppShell.stories.jsx +0 -201
  151. package/jsx/build/AppShell/AppShell.stories.jsx.map +0 -1
  152. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
  153. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
  154. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -101
  155. package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
  156. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +0 -11
  157. package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
  158. package/jsx/build/DynamicContentEditor/FieldSelector.jsx +0 -80
  159. package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +0 -1
  160. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
  161. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
  162. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
  163. package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
  164. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
  165. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
  166. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +0 -344
  167. package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +0 -1
  168. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
  169. package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
  170. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
  171. package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
  172. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
  173. package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
  174. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +0 -559
  175. package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +0 -1
  176. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
  177. package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
  178. package/jsx/build/FlowModeller/FlowModeller.stories.jsx +0 -501
  179. package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +0 -1
  180. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
  181. package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
  182. package/jsx/build/FlowModeller/FlowModeller.styles.js +0 -8
  183. package/jsx/build/FlowModeller/FlowModeller.styles.js.map +0 -1
  184. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
  185. package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
  186. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
  187. package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
  188. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
  189. package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
  190. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +0 -44
  191. package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +0 -1
  192. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
  193. package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
  194. package/jsx/build/LifeCycle/LifeCycle.mocks.js +0 -1256
  195. package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
  196. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
  197. package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
  198. package/jsx/build/LifeCycle/LifeCycle.stories.jsx +0 -873
  199. package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +0 -1
  200. package/jsx/build/LifeCycle/utils.d.ts +0 -123
  201. package/jsx/build/LifeCycle/utils.d.ts.map +0 -1
  202. package/jsx/build/LifeCycle/utils.js +0 -302
  203. package/jsx/build/LifeCycle/utils.js.map +0 -1
  204. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
  205. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
  206. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
  207. package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
  208. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
  209. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
  210. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx +0 -38
  211. package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +0 -1
  212. package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
  213. package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
  214. package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx +0 -78
  215. package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx.map +0 -1
  216. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
  217. package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
  218. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +0 -397
  219. package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +0 -1
  220. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
  221. package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
  222. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +0 -258
  223. package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +0 -1
  224. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
  225. package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
  226. package/jsx/build/ObjectSelect/ObjectSelect.styles.js +0 -27
  227. package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
  228. package/jsx/build/PageBanner/PageBanner.stories.d.ts +0 -15
  229. package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
  230. package/jsx/build/PageBanner/PageBanner.stories.jsx +0 -41
  231. package/jsx/build/PageBanner/PageBanner.stories.jsx.map +0 -1
  232. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
  233. package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
  234. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +0 -24
  235. package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +0 -1
  236. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
  237. package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
  238. package/jsx/build/PageTemplates/GalleryPage.stories.jsx +0 -49
  239. package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +0 -1
  240. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
  241. package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
  242. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +0 -144
  243. package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +0 -1
  244. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
  245. package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  246. package/jsx/build/PageTemplates/PageTemplates.stories.jsx +0 -255
  247. package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +0 -1
  248. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
  249. package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
  250. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +0 -42
  251. package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +0 -1
  252. package/jsx/build/Workbench/Workbench.mocks.d.ts +0 -9
  253. package/jsx/build/Workbench/Workbench.mocks.d.ts.map +0 -1
  254. package/jsx/build/Workbench/Workbench.mocks.js +0 -67
  255. package/jsx/build/Workbench/Workbench.mocks.js.map +0 -1
  256. package/jsx/build/Workbench/Workbench.stories.d.ts +0 -11
  257. package/jsx/build/Workbench/Workbench.stories.d.ts.map +0 -1
  258. package/jsx/build/Workbench/Workbench.stories.jsx +0 -288
  259. package/jsx/build/Workbench/Workbench.stories.jsx.map +0 -1
  260. package/jsx/core/ComboBox/ComboBox.mocks.js.map +0 -1
  261. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
  262. package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
  263. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +0 -432
  264. package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +0 -1
  265. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
  266. package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
  267. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +0 -173
  268. package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +0 -1
  269. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
  270. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
  271. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
  272. package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
  273. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
  274. package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
  275. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -330
  276. package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -1
  277. package/jsx/cs/DialPad/DialPad.stories.d.ts +0 -9
  278. package/jsx/cs/DialPad/DialPad.stories.d.ts.map +0 -1
  279. package/jsx/cs/DialPad/DialPad.stories.jsx +0 -20
  280. package/jsx/cs/DialPad/DialPad.stories.jsx.map +0 -1
  281. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
  282. package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
  283. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
  284. package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
  285. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
  286. package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
  287. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +0 -54
  288. package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
  289. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
  290. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
  291. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
  292. package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
  293. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
  294. package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
  295. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -87
  296. package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -1
  297. package/jsx/cs/Picker/Picker.stories.d.ts +0 -11
  298. package/jsx/cs/Picker/Picker.stories.d.ts.map +0 -1
  299. package/jsx/cs/Picker/Picker.stories.jsx +0 -64
  300. package/jsx/cs/Picker/Picker.stories.jsx.map +0 -1
  301. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
  302. package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
  303. package/jsx/cs/TaskManager/TaskManager.mocks.js +0 -228
  304. package/jsx/cs/TaskManager/TaskManager.mocks.js.map +0 -1
  305. package/jsx/cs/TaskManager/TaskManager.stories.d.ts +0 -15
  306. package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
  307. package/jsx/cs/TaskManager/TaskManager.stories.jsx +0 -419
  308. package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +0 -1
  309. package/jsx/cs/TaskManager/TaskManager.styles.d.ts +0 -3
  310. package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
  311. package/jsx/cs/TaskManager/TaskManager.styles.js +0 -9
  312. package/jsx/cs/TaskManager/TaskManager.styles.js.map +0 -1
  313. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
  314. package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
  315. package/jsx/tools/Clipboard/Clipboard.mocks.jsx +0 -81
  316. package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +0 -1
  317. package/jsx/tools/Clipboard/Clipboard.stories.d.ts +0 -6
  318. package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
  319. package/jsx/tools/Clipboard/Clipboard.stories.jsx +0 -67
  320. package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +0 -1
  321. package/jsx/tools/DevTools/DevTools.mocks.d.ts +0 -3
  322. package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
  323. package/jsx/tools/DevTools/DevTools.mocks.js +0 -3
  324. package/jsx/tools/DevTools/DevTools.mocks.js.map +0 -1
  325. package/jsx/tools/DevTools/DevTools.stories.d.ts +0 -10
  326. package/jsx/tools/DevTools/DevTools.stories.d.ts.map +0 -1
  327. package/jsx/tools/DevTools/DevTools.stories.jsx +0 -33
  328. package/jsx/tools/DevTools/DevTools.stories.jsx.map +0 -1
  329. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
  330. package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
  331. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +0 -80
  332. package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +0 -1
  333. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
  334. package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
  335. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +0 -184
  336. package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +0 -1
  337. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
  338. package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
  339. package/jsx/tools/PreviewShell/PreviewShell.styles.js +0 -6
  340. package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
  341. package/lib/build/AppShell/AppShell.mocks.d.ts +0 -44
  342. package/lib/build/AppShell/AppShell.mocks.d.ts.map +0 -1
  343. package/lib/build/AppShell/AppShell.mocks.js +0 -419
  344. package/lib/build/AppShell/AppShell.mocks.js.map +0 -1
  345. package/lib/build/AppShell/AppShell.stories.d.ts +0 -20
  346. package/lib/build/AppShell/AppShell.stories.d.ts.map +0 -1
  347. package/lib/build/AppShell/AppShell.stories.js +0 -200
  348. package/lib/build/AppShell/AppShell.stories.js.map +0 -1
  349. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
  350. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
  351. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +0 -85
  352. package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +0 -1
  353. package/lib/build/DynamicContentEditor/FieldSelector.d.ts +0 -14
  354. package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
  355. package/lib/build/DynamicContentEditor/FieldSelector.js +0 -81
  356. package/lib/build/DynamicContentEditor/FieldSelector.js.map +0 -1
  357. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
  358. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
  359. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
  360. package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
  361. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
  362. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
  363. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +0 -339
  364. package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +0 -1
  365. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
  366. package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
  367. package/lib/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
  368. package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
  369. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
  370. package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
  371. package/lib/build/FlowModeller/FlowModeller.mocks.js +0 -536
  372. package/lib/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
  373. package/lib/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
  374. package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
  375. package/lib/build/FlowModeller/FlowModeller.stories.js +0 -481
  376. package/lib/build/FlowModeller/FlowModeller.stories.js.map +0 -1
  377. package/lib/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
  378. package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
  379. package/lib/build/FlowModeller/FlowModeller.styles.js +0 -8
  380. package/lib/build/FlowModeller/FlowModeller.styles.js.map +0 -1
  381. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
  382. package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
  383. package/lib/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
  384. package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
  385. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
  386. package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
  387. package/lib/build/ItemLibrary/LibraryPicker.stories.js +0 -39
  388. package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +0 -1
  389. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
  390. package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
  391. package/lib/build/LifeCycle/LifeCycle.mocks.js +0 -1256
  392. package/lib/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
  393. package/lib/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
  394. package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
  395. package/lib/build/LifeCycle/LifeCycle.stories.js +0 -870
  396. package/lib/build/LifeCycle/LifeCycle.stories.js.map +0 -1
  397. package/lib/build/LifeCycle/utils.d.ts +0 -123
  398. package/lib/build/LifeCycle/utils.d.ts.map +0 -1
  399. package/lib/build/LifeCycle/utils.js +0 -302
  400. package/lib/build/LifeCycle/utils.js.map +0 -1
  401. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
  402. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
  403. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
  404. package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
  405. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
  406. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
  407. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js +0 -39
  408. package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +0 -1
  409. package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
  410. package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
  411. package/lib/build/ObjectPreview/ObjectPreview.mocks.js +0 -74
  412. package/lib/build/ObjectPreview/ObjectPreview.mocks.js.map +0 -1
  413. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
  414. package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
  415. package/lib/build/ObjectSelect/ObjectSelect.mocks.js +0 -370
  416. package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +0 -1
  417. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
  418. package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
  419. package/lib/build/ObjectSelect/ObjectSelect.stories.js +0 -240
  420. package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +0 -1
  421. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
  422. package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
  423. package/lib/build/ObjectSelect/ObjectSelect.styles.js +0 -27
  424. package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
  425. package/lib/build/PageBanner/PageBanner.stories.d.ts +0 -15
  426. package/lib/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
  427. package/lib/build/PageBanner/PageBanner.stories.js +0 -42
  428. package/lib/build/PageBanner/PageBanner.stories.js.map +0 -1
  429. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
  430. package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
  431. package/lib/build/PageTemplates/GalleryPage.mocks.js +0 -25
  432. package/lib/build/PageTemplates/GalleryPage.mocks.js.map +0 -1
  433. package/lib/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
  434. package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
  435. package/lib/build/PageTemplates/GalleryPage.stories.js +0 -50
  436. package/lib/build/PageTemplates/GalleryPage.stories.js.map +0 -1
  437. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
  438. package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
  439. package/lib/build/PageTemplates/PageTemplates.mocks.js +0 -107
  440. package/lib/build/PageTemplates/PageTemplates.mocks.js.map +0 -1
  441. package/lib/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
  442. package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
  443. package/lib/build/PageTemplates/PageTemplates.stories.js +0 -246
  444. package/lib/build/PageTemplates/PageTemplates.stories.js.map +0 -1
  445. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
  446. package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
  447. package/lib/build/PageTemplates/ShowcasePage.stories.js +0 -43
  448. package/lib/build/PageTemplates/ShowcasePage.stories.js.map +0 -1
  449. package/lib/build/Workbench/Workbench.mocks.d.ts +0 -9
  450. package/lib/build/Workbench/Workbench.mocks.d.ts.map +0 -1
  451. package/lib/build/Workbench/Workbench.mocks.js +0 -67
  452. package/lib/build/Workbench/Workbench.mocks.js.map +0 -1
  453. package/lib/build/Workbench/Workbench.stories.d.ts +0 -11
  454. package/lib/build/Workbench/Workbench.stories.d.ts.map +0 -1
  455. package/lib/build/Workbench/Workbench.stories.js +0 -273
  456. package/lib/build/Workbench/Workbench.stories.js.map +0 -1
  457. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
  458. package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
  459. package/lib/cs/CSAppShell/CSAppShell.mocks.js +0 -385
  460. package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +0 -1
  461. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
  462. package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
  463. package/lib/cs/CSAppShell/CSAppShell.stories.js +0 -172
  464. package/lib/cs/CSAppShell/CSAppShell.stories.js.map +0 -1
  465. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
  466. package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
  467. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
  468. package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
  469. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
  470. package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
  471. package/lib/cs/CallControlPanel/CallControlPanel.stories.js +0 -331
  472. package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +0 -1
  473. package/lib/cs/DialPad/DialPad.stories.d.ts +0 -9
  474. package/lib/cs/DialPad/DialPad.stories.d.ts.map +0 -1
  475. package/lib/cs/DialPad/DialPad.stories.js +0 -19
  476. package/lib/cs/DialPad/DialPad.stories.js.map +0 -1
  477. package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
  478. package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
  479. package/lib/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
  480. package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
  481. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
  482. package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
  483. package/lib/cs/InteractionNotification/InteractionNotification.stories.js +0 -55
  484. package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +0 -1
  485. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
  486. package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
  487. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
  488. package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
  489. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
  490. package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
  491. package/lib/cs/InteractionTimer/InteractionTimer.stories.js +0 -88
  492. package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +0 -1
  493. package/lib/cs/Picker/Picker.stories.d.ts +0 -11
  494. package/lib/cs/Picker/Picker.stories.d.ts.map +0 -1
  495. package/lib/cs/Picker/Picker.stories.js +0 -56
  496. package/lib/cs/Picker/Picker.stories.js.map +0 -1
  497. package/lib/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
  498. package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
  499. package/lib/cs/TaskManager/TaskManager.mocks.js +0 -228
  500. package/lib/cs/TaskManager/TaskManager.mocks.js.map +0 -1
  501. package/lib/cs/TaskManager/TaskManager.stories.d.ts +0 -15
  502. package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
  503. package/lib/cs/TaskManager/TaskManager.stories.js +0 -395
  504. package/lib/cs/TaskManager/TaskManager.stories.js.map +0 -1
  505. package/lib/cs/TaskManager/TaskManager.styles.d.ts +0 -3
  506. package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
  507. package/lib/cs/TaskManager/TaskManager.styles.js +0 -9
  508. package/lib/cs/TaskManager/TaskManager.styles.js.map +0 -1
  509. package/lib/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
  510. package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
  511. package/lib/tools/Clipboard/Clipboard.mocks.js +0 -74
  512. package/lib/tools/Clipboard/Clipboard.mocks.js.map +0 -1
  513. package/lib/tools/Clipboard/Clipboard.stories.d.ts +0 -6
  514. package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
  515. package/lib/tools/Clipboard/Clipboard.stories.js +0 -74
  516. package/lib/tools/Clipboard/Clipboard.stories.js.map +0 -1
  517. package/lib/tools/DevTools/DevTools.mocks.d.ts +0 -3
  518. package/lib/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
  519. package/lib/tools/DevTools/DevTools.mocks.js +0 -3
  520. package/lib/tools/DevTools/DevTools.mocks.js.map +0 -1
  521. package/lib/tools/DevTools/DevTools.stories.d.ts +0 -10
  522. package/lib/tools/DevTools/DevTools.stories.d.ts.map +0 -1
  523. package/lib/tools/DevTools/DevTools.stories.js +0 -29
  524. package/lib/tools/DevTools/DevTools.stories.js.map +0 -1
  525. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
  526. package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
  527. package/lib/tools/PreviewShell/PreviewShell.mocks.js +0 -77
  528. package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +0 -1
  529. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
  530. package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
  531. package/lib/tools/PreviewShell/PreviewShell.stories.js +0 -181
  532. package/lib/tools/PreviewShell/PreviewShell.stories.js.map +0 -1
  533. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
  534. package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
  535. package/lib/tools/PreviewShell/PreviewShell.styles.js +0 -6
  536. package/lib/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
@@ -1,536 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState, useEffect, forwardRef } from 'react';
3
- import { Table, Text, Button, Icon, Flex, createUID, Card, CardContent, CardHeader, useI18n, Popover, CardFooter } from '@pega/cosmos-react-core';
4
- import { FlowModellerHelper, START_NODETYPE, STOP_NODETYPE } from '@pega/cosmos-react-build';
5
- export const DecisionTable = forwardRef(function DecisionTable({ updatedData, connectors, onDeleteRow, onAddRow, node, readOnly }, ref) {
6
- const [tableData, setTableData] = useState(connectors);
7
- const t = useI18n();
8
- const onAddCondition = () => {
9
- const label = 'Otherwise';
10
- const updatedGraphData = FlowModellerHelper.addConnector(updatedData, node.id, label).graphData;
11
- // Add a label to the base connector when the number of connectors are more than one
12
- if (tableData.length === 1) {
13
- const defaultConnector = tableData[0];
14
- if (defaultConnector?.label === '') {
15
- defaultConnector.label = 'Default';
16
- }
17
- for (let i = 0; i < updatedGraphData.connectors.length; i += 1) {
18
- const connector = updatedGraphData.connectors[i];
19
- if (connector.id === defaultConnector.id) {
20
- connector.label = defaultConnector.label;
21
- break;
22
- }
23
- }
24
- }
25
- if (updatedGraphData)
26
- onAddRow(updatedGraphData);
27
- };
28
- const onDeleteCondition = (connector, e) => {
29
- const updatedGraphData = FlowModellerHelper.deleteConnector(updatedData, connector);
30
- if (updatedGraphData.error) {
31
- onDeleteRow(updatedGraphData.graphData, connector, t('delete_connector_error'), updatedGraphData.deletes, e);
32
- }
33
- else {
34
- onDeleteRow(updatedGraphData.graphData, connector, '', updatedGraphData.deletes, e);
35
- }
36
- };
37
- const columns = [
38
- {
39
- renderer: ({ label }) => _jsx(Text, { children: label }),
40
- label: 'Label'
41
- },
42
- { renderer: () => _jsx(Text, { children: "No value" }), label: 'Value' },
43
- {
44
- renderer: connector => {
45
- return (_jsx(Button, { variant: 'simple', ref: ref, disabled: readOnly ||
46
- (node.type.name === 'Decision' && connectors.length < 3) ||
47
- (node.type.name === 'Assignment' && connectors.length < 2), id: connector.id, icon: true, onClick: (e) => onDeleteCondition(connector, e), label: t('delete'), children: _jsx(Icon, { name: 'trash' }) }));
48
- },
49
- label: 'Action'
50
- }
51
- ];
52
- useEffect(() => {
53
- setTableData(connectors);
54
- }, [connectors]);
55
- return (_jsxs(_Fragment, { children: [_jsx(Table, { title: 'Outcomes', hoverHighlight: true, data: tableData, columns: columns }), _jsx(Flex, { container: { pad: [1, 0] }, children: _jsx(Button, { disabled: readOnly, variant: 'simple', onClick: onAddCondition, children: "Add condition" }) })] }));
56
- });
57
- export const DeletePopover = forwardRef(function DeletePopover({ targetId, showPopover, onCancel, onDelete }, ref) {
58
- const [elementTarget, setElementTarget] = useState();
59
- const t = useI18n();
60
- useEffect(() => {
61
- const element = document.querySelector(`button[id='${targetId}']`);
62
- if (element) {
63
- setElementTarget(element);
64
- }
65
- });
66
- return elementTarget && showPopover ? (_jsx(Popover, { target: elementTarget, ref: ref, show: showPopover, children: _jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(Text, { variant: 'h4', children: "Delete Outcome" }), _jsx(Button, { variant: 'simple', icon: true, label: t('close'), onClick: onCancel, children: _jsx(Icon, { name: 'times' }) })] }), _jsx(CardContent, { children: "Are you sure you want to delete this outcome and all its steps?" }), _jsxs(CardFooter, { container: { justify: 'between' }, children: [_jsx(Button, { onClick: onCancel, children: "Cancel" }), _jsx(Button, { variant: 'primary', onClick: onDelete, children: "Delete" })] })] }) })) : null;
67
- });
68
- export const FlowShapeType = Object.freeze({
69
- START: START_NODETYPE,
70
- STOP: STOP_NODETYPE,
71
- DECISION: {
72
- id: 'decision',
73
- name: 'Decision',
74
- color: 'darkYellow',
75
- icon: 'diamond',
76
- minConnectors: 2,
77
- defaults: {
78
- node: {
79
- label: 'Decision',
80
- description: 'Adjust the conditions using the property panel'
81
- },
82
- connector: [
83
- {
84
- label: 'Default'
85
- },
86
- {
87
- label: 'Otherwise'
88
- }
89
- ]
90
- }
91
- },
92
- QUESTION: {
93
- id: 'question',
94
- name: 'Question',
95
- color: 'japaneseLaurel',
96
- icon: 'chat-help',
97
- minConnectors: 3,
98
- defaults: {
99
- node: {
100
- label: 'Question'
101
- },
102
- connector: [
103
- {
104
- label: 'Question 1'
105
- },
106
- {
107
- label: 'Question 2'
108
- },
109
- {
110
- label: 'Question 3'
111
- }
112
- ]
113
- }
114
- },
115
- ASSIGNMENT: {
116
- id: 'assignment',
117
- name: 'Assignment',
118
- color: 'japaneseLaurel',
119
- icon: 'clipboard-data',
120
- minConnectors: 1,
121
- defaults: {
122
- node: {
123
- label: 'Assignment'
124
- },
125
- connector: [{ label: '' }]
126
- }
127
- },
128
- MESSAGE: {
129
- id: 'message',
130
- name: 'Message',
131
- color: 'orange',
132
- icon: 'chat',
133
- minConnectors: 1,
134
- defaults: {
135
- node: {
136
- label: 'Message'
137
- },
138
- connector: [{ label: '' }]
139
- }
140
- },
141
- SEND_EMAIL: {
142
- id: 'send_email',
143
- name: 'Send email',
144
- color: 'yellow',
145
- icon: 'mail',
146
- minConnectors: 1,
147
- defaults: {
148
- node: {
149
- label: 'Send email'
150
- },
151
- connector: [{ label: '' }]
152
- }
153
- },
154
- GENERATE_PDF: {
155
- id: 'generate_pdf',
156
- name: 'Generate PDF',
157
- color: 'congressBlue',
158
- icon: 'polaris',
159
- minConnectors: 1,
160
- defaults: {
161
- node: {
162
- label: 'Generate PDF'
163
- },
164
- connector: [{ label: '' }]
165
- }
166
- },
167
- GOTO: {
168
- id: 'goto',
169
- name: 'Go to',
170
- color: 'red',
171
- icon: 'arrow-left-right',
172
- minConnectors: 0,
173
- defaults: {
174
- node: {
175
- label: 'Go to',
176
- description: ''
177
- },
178
- connector: []
179
- }
180
- }
181
- });
182
- export const exampleCRMNodesData = [
183
- {
184
- id: '100',
185
- label: 'START',
186
- type: FlowShapeType.START
187
- },
188
- {
189
- id: '101',
190
- label: 'Is B2B',
191
- description: '',
192
- reference: '',
193
- type: FlowShapeType.DECISION,
194
- additionalData: [],
195
- error: ''
196
- },
197
- {
198
- id: '102',
199
- label: 'Update Org Domains',
200
- description: '',
201
- reference: '',
202
- type: FlowShapeType.ASSIGNMENT,
203
- additionalData: [],
204
- error: ''
205
- },
206
- {
207
- id: '127',
208
- label: 'Goto',
209
- description: '',
210
- reference: '',
211
- type: FlowShapeType.GOTO,
212
- additionalData: [],
213
- error: ''
214
- },
215
- {
216
- id: '103',
217
- label: 'CreateC2OFromContact',
218
- description: '',
219
- reference: '',
220
- type: FlowShapeType.ASSIGNMENT,
221
- additionalData: [],
222
- error: ''
223
- },
224
- {
225
- id: '104',
226
- label: 'CreateC2AFromContact',
227
- description: '',
228
- reference: '',
229
- type: FlowShapeType.ASSIGNMENT,
230
- additionalData: [],
231
- error: ''
232
- },
233
- {
234
- id: '105',
235
- label: 'Is B2C',
236
- description: '',
237
- reference: '',
238
- type: FlowShapeType.DECISION,
239
- additionalData: [],
240
- error: ''
241
- },
242
- {
243
- id: '106',
244
- label: 'CreatePrimaryIndividualAccount',
245
- description: '',
246
- reference: '',
247
- type: FlowShapeType.ASSIGNMENT,
248
- additionalData: [],
249
- error: ''
250
- },
251
- {
252
- id: '107',
253
- label: 'Capture Event',
254
- description: '',
255
- reference: '',
256
- type: FlowShapeType.ASSIGNMENT,
257
- additionalData: [],
258
- error: ''
259
- },
260
- {
261
- id: '108',
262
- label: 'Update Private Data',
263
- description: '',
264
- reference: '',
265
- type: FlowShapeType.ASSIGNMENT,
266
- additionalData: [],
267
- error: ''
268
- },
269
- {
270
- id: '109',
271
- label: 'Attach Business Card',
272
- description: '',
273
- reference: '',
274
- type: FlowShapeType.ASSIGNMENT,
275
- additionalData: [],
276
- error: ''
277
- },
278
- {
279
- id: '110',
280
- label: 'Has Address',
281
- description: '',
282
- reference: '',
283
- type: FlowShapeType.DECISION,
284
- additionalData: [],
285
- error: ''
286
- },
287
- {
288
- id: '111',
289
- label: 'Remove WO Related NBA',
290
- description: '',
291
- reference: '',
292
- type: FlowShapeType.ASSIGNMENT,
293
- additionalData: [],
294
- error: ''
295
- },
296
- {
297
- id: '112',
298
- label: 'Bulk Processing',
299
- description: '',
300
- reference: '',
301
- type: FlowShapeType.DECISION,
302
- additionalData: [],
303
- error: ''
304
- },
305
- {
306
- id: '113',
307
- label: 'Queue For Agent',
308
- description: '',
309
- reference: '',
310
- type: FlowShapeType.ASSIGNMENT,
311
- additionalData: [],
312
- error: ''
313
- },
314
- {
315
- id: '114',
316
- label: 'Retrieve Lat Long',
317
- description: '',
318
- reference: '',
319
- type: FlowShapeType.ASSIGNMENT,
320
- additionalData: [],
321
- error: ''
322
- },
323
- {
324
- id: '115',
325
- label: 'Remove WO Related NBA',
326
- description: '',
327
- reference: '',
328
- type: FlowShapeType.ASSIGNMENT,
329
- additionalData: [],
330
- error: ''
331
- },
332
- {
333
- id: '121',
334
- label: 'END',
335
- type: FlowShapeType.STOP
336
- }
337
- ];
338
- export const exampleCRMConnectorsData = [
339
- {
340
- id: '100-101',
341
- label: '',
342
- fromNodeId: '100',
343
- toNodeId: '101'
344
- },
345
- {
346
- id: '101-102',
347
- label: 'isSellingModeB2BOrB2BB2C',
348
- fromNodeId: '101',
349
- toNodeId: '102'
350
- },
351
- {
352
- id: '102-103',
353
- label: '',
354
- fromNodeId: '102',
355
- toNodeId: '103'
356
- },
357
- {
358
- id: '103-104',
359
- label: '',
360
- fromNodeId: '103',
361
- toNodeId: '104'
362
- },
363
- {
364
- id: '104-105',
365
- label: '',
366
- fromNodeId: '104',
367
- toNodeId: '105'
368
- },
369
- {
370
- id: '101-127',
371
- label: 'Else',
372
- fromNodeId: '101',
373
- toNodeId: '127'
374
- },
375
- {
376
- id: '127-105',
377
- label: '',
378
- fromNodeId: '127',
379
- toNodeId: '105'
380
- },
381
- {
382
- id: '105-106',
383
- label: 'isSellingModeB2COrB2BB2C',
384
- fromNodeId: '105',
385
- toNodeId: '106'
386
- },
387
- {
388
- id: '106-107',
389
- label: '',
390
- fromNodeId: '106',
391
- toNodeId: '107'
392
- },
393
- {
394
- id: '105-107',
395
- label: 'Else',
396
- fromNodeId: '105',
397
- toNodeId: '107'
398
- },
399
- {
400
- id: '107-108',
401
- label: '',
402
- fromNodeId: '107',
403
- toNodeId: '108'
404
- },
405
- {
406
- id: '108-109',
407
- label: '',
408
- fromNodeId: '108',
409
- toNodeId: '109'
410
- },
411
- {
412
- id: '109-110',
413
- label: '',
414
- fromNodeId: '109',
415
- toNodeId: '110'
416
- },
417
- {
418
- id: '110-112',
419
- label: 'crmHasAddress',
420
- fromNodeId: '110',
421
- toNodeId: '112'
422
- },
423
- {
424
- id: '112-113',
425
- label: 'Bulk Processing',
426
- fromNodeId: '112',
427
- toNodeId: '113'
428
- },
429
- {
430
- id: '112-114',
431
- label: 'Manual',
432
- fromNodeId: '112',
433
- toNodeId: '114'
434
- },
435
- {
436
- id: '114-115',
437
- label: '',
438
- fromNodeId: '114',
439
- toNodeId: '115'
440
- },
441
- {
442
- id: '115-121',
443
- label: '',
444
- fromNodeId: '115',
445
- toNodeId: '121'
446
- },
447
- {
448
- id: '113-121',
449
- label: '',
450
- fromNodeId: '113',
451
- toNodeId: '121'
452
- },
453
- {
454
- id: '110-111',
455
- label: 'Else',
456
- fromNodeId: '110',
457
- toNodeId: '111'
458
- },
459
- {
460
- id: '111-121',
461
- label: '',
462
- fromNodeId: '111',
463
- toNodeId: '121'
464
- }
465
- ];
466
- export const emptyNodesData = [
467
- {
468
- id: '100',
469
- label: 'START',
470
- type: FlowShapeType.START
471
- },
472
- {
473
- id: '120',
474
- label: 'STOP',
475
- type: FlowShapeType.STOP
476
- }
477
- ];
478
- export const emptyConnectorsData = [
479
- {
480
- id: '100-120',
481
- label: 'happy path',
482
- fromNodeId: '100',
483
- toNodeId: '120'
484
- }
485
- ];
486
- export const nodeActions = [
487
- {
488
- id: 'action-2',
489
- text: 'Reassign'
490
- }
491
- ];
492
- export const nodeLibrary = [
493
- {
494
- id: createUID(),
495
- primary: 'Assignment',
496
- type: FlowShapeType.ASSIGNMENT
497
- },
498
- {
499
- id: createUID(),
500
- primary: 'Decision',
501
- type: FlowShapeType.DECISION
502
- },
503
- {
504
- id: createUID(),
505
- primary: 'Send a message',
506
- type: FlowShapeType.MESSAGE
507
- },
508
- {
509
- id: createUID(),
510
- primary: 'Ask a question',
511
- type: FlowShapeType.QUESTION
512
- },
513
- {
514
- id: createUID(),
515
- primary: 'Go to',
516
- type: FlowShapeType.GOTO
517
- },
518
- {
519
- id: createUID(),
520
- primary: 'Automations',
521
- type: FlowShapeType.AUTOMATION,
522
- items: [
523
- {
524
- id: createUID(),
525
- primary: 'Send email',
526
- type: FlowShapeType.SEND_EMAIL
527
- },
528
- {
529
- id: createUID(),
530
- primary: 'Generate PDF',
531
- type: FlowShapeType.GENERATE_PDF
532
- }
533
- ]
534
- }
535
- ];
536
- //# sourceMappingURL=FlowModeller.mocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FlowModeller.mocks.js","sourceRoot":"","sources":["../../../src/build/FlowModeller/FlowModeller.mocks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAO,UAAU,EAAM,MAAM,OAAO,CAAC;AAEjE,OAAO,EACL,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,SAAS,EAGT,IAAI,EACJ,WAAW,EACX,UAAU,EACV,OAAO,EACP,OAAO,EACP,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,kBAAkB,EAIlB,cAAc,EACd,aAAa,EAEd,MAAM,0BAA0B,CAAC;AAuBlC,MAAM,CAAC,MAAM,aAAa,GAA0C,UAAU,CAC5E,SAAS,aAAa,CACpB,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAsB,EACtF,GAA2B;IAE3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAmB,UAAU,CAAC,CAAC;IACzE,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,KAAK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AAE;QACf,OAAO,EAAE,gBAAgB;QACzB,IAAI,EAAE,aAAa,CAAC,QAAQ;KAC7B;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,aAAa,CAAC,IAAI;KACzB;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE,aAAa,CAAC,UAAU;QAC9B,KAAK,EAAE;YACL;gBACE,EAAE,EAAE,SAAS,EAAE;gBACf,OAAO,EAAE,YAAY;gBACrB,IAAI,EAAE,aAAa,CAAC,UAAU;aAC/B;YACD;gBACE,EAAE,EAAE,SAAS,EAAE;gBACf,OAAO,EAAE,cAAc;gBACvB,IAAI,EAAE,aAAa,CAAC,YAAY;aACjC;SACF;KACF;CACF,CAAC","sourcesContent":["import { useState, useEffect, Ref, forwardRef, FC } from 'react';\n\nimport {\n Table,\n ColumnProps,\n Text,\n Button,\n Icon,\n Flex,\n createUID,\n Action,\n ForwardProps,\n Card,\n CardContent,\n CardHeader,\n useI18n,\n Popover,\n CardFooter\n} from '@pega/cosmos-react-core';\nimport {\n NodeProps,\n ConnectorProps,\n FlowModellerHelper,\n NodeType,\n NodeLibraryItem,\n DeleteNodeOutcome,\n START_NODETYPE,\n STOP_NODETYPE,\n GraphData\n} from '@pega/cosmos-react-build';\n\ninterface DecisionTableProps {\n updatedData: GraphData<NodeProps, ConnectorProps>;\n connectors: ConnectorProps[];\n node: NodeProps;\n onDeleteRow: (\n data: GraphData<NodeProps, ConnectorProps>,\n connector: ConnectorProps,\n error: string,\n deleteItems?: DeleteNodeOutcome['deletes'],\n e?: MouseEvent\n ) => void;\n onAddRow: (data: GraphData<NodeProps, ConnectorProps>) => void;\n readOnly?: boolean;\n}\ninterface DeletePopoverProps {\n targetId: string | null;\n showPopover: boolean;\n onCancel: () => void;\n onDelete: () => void;\n}\n\nexport const DecisionTable: FC<DecisionTableProps & ForwardProps> = forwardRef(\n function DecisionTable(\n { updatedData, connectors, onDeleteRow, onAddRow, node, readOnly }: DecisionTableProps,\n ref: Ref<HTMLButtonElement>\n ) {\n const [tableData, setTableData] = useState<ConnectorProps[]>(connectors);\n const t = useI18n();\n\n const onAddCondition = () => {\n const label = 'Otherwise';\n const updatedGraphData = FlowModellerHelper.addConnector(\n updatedData,\n node.id,\n label\n ).graphData;\n\n // Add a label to the base connector when the number of connectors are more than one\n if (tableData.length === 1) {\n const defaultConnector: ConnectorProps = tableData[0];\n if (defaultConnector?.label === '') {\n defaultConnector.label = 'Default';\n }\n for (let i = 0; i < updatedGraphData.connectors.length; i += 1) {\n const connector: ConnectorProps = updatedGraphData.connectors[i];\n if (connector.id === defaultConnector.id) {\n connector.label = defaultConnector.label;\n break;\n }\n }\n }\n\n if (updatedGraphData) onAddRow(updatedGraphData);\n };\n\n const onDeleteCondition = (connector: ConnectorProps, e: MouseEvent) => {\n const updatedGraphData = FlowModellerHelper.deleteConnector(updatedData, connector);\n if (updatedGraphData.error) {\n onDeleteRow(\n updatedGraphData!.graphData,\n connector,\n t('delete_connector_error'),\n updatedGraphData!.deletes,\n e\n );\n } else {\n onDeleteRow(updatedGraphData!.graphData, connector, '', updatedGraphData!.deletes, e);\n }\n };\n\n const columns: ColumnProps<ConnectorProps>[] = [\n {\n renderer: ({ label }) => <Text>{label}</Text>,\n label: 'Label'\n },\n { renderer: () => <Text>No value</Text>, label: 'Value' },\n {\n renderer: connector => {\n return (\n <Button\n variant='simple'\n ref={ref}\n disabled={\n readOnly ||\n (node.type.name === 'Decision' && connectors.length < 3) ||\n (node.type.name === 'Assignment' && connectors.length < 2)\n }\n id={connector.id}\n icon\n onClick={(e: MouseEvent) => onDeleteCondition(connector, e)}\n label={t('delete')}\n >\n <Icon name='trash' />\n </Button>\n );\n },\n label: 'Action'\n }\n ];\n\n useEffect(() => {\n setTableData(connectors);\n }, [connectors]);\n\n return (\n <>\n <Table title='Outcomes' hoverHighlight data={tableData} columns={columns} />\n <Flex container={{ pad: [1, 0] }}>\n <Button disabled={readOnly} variant='simple' onClick={onAddCondition}>\n Add condition\n </Button>\n </Flex>\n </>\n );\n }\n);\n\nexport const DeletePopover: FC<DeletePopoverProps & ForwardProps> = forwardRef(\n function DeletePopover({ targetId, showPopover, onCancel, onDelete }, ref: Ref<HTMLDivElement>) {\n const [elementTarget, setElementTarget] = useState<Element>();\n const t = useI18n();\n\n useEffect(() => {\n const element = document.querySelector(`button[id='${targetId}']`);\n if (element) {\n setElementTarget(element);\n }\n });\n\n return elementTarget && showPopover ? (\n <Popover target={elementTarget} ref={ref} show={showPopover}>\n <Card>\n <CardHeader>\n <Text variant='h4'>Delete Outcome</Text>\n <Button variant='simple' icon label={t('close')} onClick={onCancel}>\n <Icon name='times' />\n </Button>\n </CardHeader>\n <CardContent>Are you sure you want to delete this outcome and all its steps?</CardContent>\n <CardFooter container={{ justify: 'between' }}>\n <Button onClick={onCancel}>Cancel</Button>\n <Button variant='primary' onClick={onDelete}>\n Delete\n </Button>\n </CardFooter>\n </Card>\n </Popover>\n ) : null;\n }\n);\n\nexport const FlowShapeType: Record<string, NodeType> = Object.freeze({\n START: START_NODETYPE,\n STOP: STOP_NODETYPE,\n DECISION: {\n id: 'decision',\n name: 'Decision',\n color: 'darkYellow',\n icon: 'diamond',\n minConnectors: 2,\n defaults: {\n node: {\n label: 'Decision',\n description: 'Adjust the conditions using the property panel'\n },\n connector: [\n {\n label: 'Default'\n },\n {\n label: 'Otherwise'\n }\n ]\n }\n },\n QUESTION: {\n id: 'question',\n name: 'Question',\n color: 'japaneseLaurel',\n icon: 'chat-help',\n minConnectors: 3,\n defaults: {\n node: {\n label: 'Question'\n },\n connector: [\n {\n label: 'Question 1'\n },\n {\n label: 'Question 2'\n },\n {\n label: 'Question 3'\n }\n ]\n }\n },\n ASSIGNMENT: {\n id: 'assignment',\n name: 'Assignment',\n color: 'japaneseLaurel',\n icon: 'clipboard-data',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Assignment'\n },\n connector: [{ label: '' }]\n }\n },\n MESSAGE: {\n id: 'message',\n name: 'Message',\n color: 'orange',\n icon: 'chat',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Message'\n },\n connector: [{ label: '' }]\n }\n },\n SEND_EMAIL: {\n id: 'send_email',\n name: 'Send email',\n color: 'yellow',\n icon: 'mail',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Send email'\n },\n connector: [{ label: '' }]\n }\n },\n GENERATE_PDF: {\n id: 'generate_pdf',\n name: 'Generate PDF',\n color: 'congressBlue',\n icon: 'polaris',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Generate PDF'\n },\n connector: [{ label: '' }]\n }\n },\n GOTO: {\n id: 'goto',\n name: 'Go to',\n color: 'red',\n icon: 'arrow-left-right',\n minConnectors: 0,\n defaults: {\n node: {\n label: 'Go to',\n description: ''\n },\n connector: []\n }\n }\n});\n\nexport const exampleCRMNodesData: NodeProps[] = [\n {\n id: '100',\n label: 'START',\n type: FlowShapeType.START\n },\n {\n id: '101',\n label: 'Is B2B',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '102',\n label: 'Update Org Domains',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '127',\n label: 'Goto',\n description: '',\n reference: '',\n type: FlowShapeType.GOTO,\n additionalData: [],\n error: ''\n },\n {\n id: '103',\n label: 'CreateC2OFromContact',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '104',\n label: 'CreateC2AFromContact',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '105',\n label: 'Is B2C',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '106',\n label: 'CreatePrimaryIndividualAccount',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '107',\n label: 'Capture Event',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '108',\n label: 'Update Private Data',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '109',\n label: 'Attach Business Card',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '110',\n label: 'Has Address',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '111',\n label: 'Remove WO Related NBA',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '112',\n label: 'Bulk Processing',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '113',\n label: 'Queue For Agent',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '114',\n label: 'Retrieve Lat Long',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '115',\n label: 'Remove WO Related NBA',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '121',\n label: 'END',\n type: FlowShapeType.STOP\n }\n];\n\nexport const exampleCRMConnectorsData: ConnectorProps[] = [\n {\n id: '100-101',\n label: '',\n fromNodeId: '100',\n toNodeId: '101'\n },\n {\n id: '101-102',\n label: 'isSellingModeB2BOrB2BB2C',\n fromNodeId: '101',\n toNodeId: '102'\n },\n {\n id: '102-103',\n label: '',\n fromNodeId: '102',\n toNodeId: '103'\n },\n {\n id: '103-104',\n label: '',\n fromNodeId: '103',\n toNodeId: '104'\n },\n {\n id: '104-105',\n label: '',\n fromNodeId: '104',\n toNodeId: '105'\n },\n {\n id: '101-127',\n label: 'Else',\n fromNodeId: '101',\n toNodeId: '127'\n },\n {\n id: '127-105',\n label: '',\n fromNodeId: '127',\n toNodeId: '105'\n },\n {\n id: '105-106',\n label: 'isSellingModeB2COrB2BB2C',\n fromNodeId: '105',\n toNodeId: '106'\n },\n {\n id: '106-107',\n label: '',\n fromNodeId: '106',\n toNodeId: '107'\n },\n {\n id: '105-107',\n label: 'Else',\n fromNodeId: '105',\n toNodeId: '107'\n },\n {\n id: '107-108',\n label: '',\n fromNodeId: '107',\n toNodeId: '108'\n },\n {\n id: '108-109',\n label: '',\n fromNodeId: '108',\n toNodeId: '109'\n },\n {\n id: '109-110',\n label: '',\n fromNodeId: '109',\n toNodeId: '110'\n },\n {\n id: '110-112',\n label: 'crmHasAddress',\n fromNodeId: '110',\n toNodeId: '112'\n },\n {\n id: '112-113',\n label: 'Bulk Processing',\n fromNodeId: '112',\n toNodeId: '113'\n },\n {\n id: '112-114',\n label: 'Manual',\n fromNodeId: '112',\n toNodeId: '114'\n },\n {\n id: '114-115',\n label: '',\n fromNodeId: '114',\n toNodeId: '115'\n },\n {\n id: '115-121',\n label: '',\n fromNodeId: '115',\n toNodeId: '121'\n },\n {\n id: '113-121',\n label: '',\n fromNodeId: '113',\n toNodeId: '121'\n },\n {\n id: '110-111',\n label: 'Else',\n fromNodeId: '110',\n toNodeId: '111'\n },\n {\n id: '111-121',\n label: '',\n fromNodeId: '111',\n toNodeId: '121'\n }\n];\n\nexport const emptyNodesData: NodeProps[] = [\n {\n id: '100',\n label: 'START',\n type: FlowShapeType.START\n },\n {\n id: '120',\n label: 'STOP',\n type: FlowShapeType.STOP\n }\n];\n\nexport const emptyConnectorsData: ConnectorProps[] = [\n {\n id: '100-120',\n label: 'happy path',\n fromNodeId: '100',\n toNodeId: '120'\n }\n];\n\nexport const nodeActions: Action[] = [\n {\n id: 'action-2',\n text: 'Reassign'\n }\n];\n\nexport const nodeLibrary: NodeLibraryItem[] = [\n {\n id: createUID(),\n primary: 'Assignment',\n type: FlowShapeType.ASSIGNMENT\n },\n {\n id: createUID(),\n primary: 'Decision',\n type: FlowShapeType.DECISION\n },\n {\n id: createUID(),\n primary: 'Send a message',\n type: FlowShapeType.MESSAGE\n },\n {\n id: createUID(),\n primary: 'Ask a question',\n type: FlowShapeType.QUESTION\n },\n {\n id: createUID(),\n primary: 'Go to',\n type: FlowShapeType.GOTO\n },\n {\n id: createUID(),\n primary: 'Automations',\n type: FlowShapeType.AUTOMATION,\n items: [\n {\n id: createUID(),\n primary: 'Send email',\n type: FlowShapeType.SEND_EMAIL\n },\n {\n id: createUID(),\n primary: 'Generate PDF',\n type: FlowShapeType.GENERATE_PDF\n }\n ]\n }\n];\n"]}
@@ -1,11 +0,0 @@
1
- import type { StoryFn } from '@storybook/react';
2
- import type { FlowModellerProps } from '@pega/cosmos-react-build';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
- export default _default;
5
- interface FlowChartDemoProps extends Partial<FlowModellerProps> {
6
- showErrorState?: boolean;
7
- readOnly?: boolean;
8
- }
9
- export declare const EmptyFlowChartView: StoryFn<FlowChartDemoProps>;
10
- export declare const CRMFlowChartView: StoryFn<FlowChartDemoProps>;
11
- //# sourceMappingURL=FlowModeller.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FlowModeller.stories.d.ts","sourceRoot":"","sources":["../../../src/build/FlowModeller/FlowModeller.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EASV,iBAAiB,EAElB,MAAM,0BAA0B,CAAC;;AA2BlC,wBAMU;AACV,UAAU,kBAAmB,SAAQ,OAAO,CAAC,iBAAiB,CAAC;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,CAuT1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,kBAAkB,CA8UxD,CAAC"}