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