@pega/cosmos-react-demos 5.0.0-dev.2.1 → 5.0.0-dev.4.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.
- package/jsx/core/AppShell/AppShell.mocks.d.ts +2 -2
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.jsx +1 -2
- package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +39 -11
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts +2 -0
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/jsx/core/ComboBox/{ComboBox.mocks.js → ComboBox.mocks.jsx} +5 -1
- package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +15 -7
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts +1 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts +2 -2
- package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts +2 -2
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +3 -3
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +1 -1
- package/jsx/core/Form/Form.mocks.d.ts +2 -2
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.mocks.d.ts +23 -0
- package/jsx/core/Icon/Icon.mocks.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.mocks.jsx +23 -0
- package/jsx/core/Icon/Icon.mocks.jsx.map +1 -1
- package/jsx/core/Icon/Icon.stories.d.ts +11 -1
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +41 -7
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +2 -2
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +5 -5
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.mocks.d.ts +1 -1
- package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -1
- package/jsx/core/Table/Table.mocks.d.ts +1 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +2 -2
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts +7 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts +1 -1
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +2 -2
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +9 -9
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +3 -3
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +0 -9
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +6 -6
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -252
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts +1 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +3 -3
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +1 -1
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js +1 -2
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +39 -11
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +2 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.js +3 -0
- package/lib/core/ComboBox/ComboBox.mocks.js.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js +15 -7
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/Icon/Icon.mocks.d.ts +23 -0
- package/lib/core/Icon/Icon.mocks.d.ts.map +1 -1
- package/lib/core/Icon/Icon.mocks.js +23 -0
- package/lib/core/Icon/Icon.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +11 -1
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +41 -7
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/rte/Editor/Editor.mocks.d.ts +7 -0
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +3 -3
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +0 -11
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +3 -235
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/package.json +12 -14
- package/jsx/build/AppShell/AppShell.mocks.d.ts +0 -44
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx +0 -419
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts +0 -20
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +0 -201
- package/jsx/build/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -101
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +0 -11
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx +0 -80
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +0 -344
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +0 -559
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +0 -501
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.js +0 -8
- package/jsx/build/FlowModeller/FlowModeller.styles.js.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +0 -44
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +0 -1256
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +0 -873
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/utils.d.ts +0 -123
- package/jsx/build/LifeCycle/utils.d.ts.map +0 -1
- package/jsx/build/LifeCycle/utils.js +0 -302
- package/jsx/build/LifeCycle/utils.js.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx +0 -38
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +0 -1
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx +0 -78
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +0 -397
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +0 -258
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js +0 -27
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
- package/jsx/build/PageBanner/PageBanner.stories.d.ts +0 -15
- package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
- package/jsx/build/PageBanner/PageBanner.stories.jsx +0 -41
- package/jsx/build/PageBanner/PageBanner.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +0 -24
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +0 -49
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +0 -144
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +0 -255
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +0 -42
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/jsx/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.js +0 -67
- package/jsx/build/Workbench/Workbench.mocks.js.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +0 -11
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +0 -288
- package/jsx/build/Workbench/Workbench.stories.jsx.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.js.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +0 -432
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +0 -173
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -330
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/jsx/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.jsx +0 -20
- package/jsx/cs/DialPad/DialPad.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +0 -54
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -87
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -1
- package/jsx/cs/Picker/Picker.stories.d.ts +0 -11
- package/jsx/cs/Picker/Picker.stories.d.ts.map +0 -1
- package/jsx/cs/Picker/Picker.stories.jsx +0 -64
- package/jsx/cs/Picker/Picker.stories.jsx.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +0 -228
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +0 -15
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +0 -419
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts +0 -3
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.styles.js +0 -9
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx +0 -81
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +0 -6
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.stories.jsx +0 -67
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +0 -1
- package/jsx/tools/DevTools/DevTools.mocks.d.ts +0 -3
- package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
- package/jsx/tools/DevTools/DevTools.mocks.js +0 -3
- package/jsx/tools/DevTools/DevTools.mocks.js.map +0 -1
- package/jsx/tools/DevTools/DevTools.stories.d.ts +0 -10
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +0 -1
- package/jsx/tools/DevTools/DevTools.stories.jsx +0 -33
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +0 -80
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +0 -184
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.styles.js +0 -6
- package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +0 -44
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.js +0 -419
- package/lib/build/AppShell/AppShell.mocks.js.map +0 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +0 -20
- package/lib/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.stories.js +0 -200
- package/lib/build/AppShell/AppShell.stories.js.map +0 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +0 -85
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +0 -1
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts +0 -14
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/lib/build/DynamicContentEditor/FieldSelector.js +0 -81
- package/lib/build/DynamicContentEditor/FieldSelector.js.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +0 -339
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +0 -536
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +0 -481
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.styles.js +0 -8
- package/lib/build/FlowModeller/FlowModeller.styles.js.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +0 -39
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +0 -1256
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +0 -870
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +0 -1
- package/lib/build/LifeCycle/utils.d.ts +0 -123
- package/lib/build/LifeCycle/utils.d.ts.map +0 -1
- package/lib/build/LifeCycle/utils.js +0 -302
- package/lib/build/LifeCycle/utils.js.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js +0 -39
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +0 -1
- package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
- package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
- package/lib/build/ObjectPreview/ObjectPreview.mocks.js +0 -74
- package/lib/build/ObjectPreview/ObjectPreview.mocks.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +0 -370
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +0 -240
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.styles.js +0 -27
- package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
- package/lib/build/PageBanner/PageBanner.stories.d.ts +0 -15
- package/lib/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
- package/lib/build/PageBanner/PageBanner.stories.js +0 -42
- package/lib/build/PageBanner/PageBanner.stories.js.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.mocks.js +0 -25
- package/lib/build/PageTemplates/GalleryPage.mocks.js.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +0 -50
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.js +0 -107
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +0 -246
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +0 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.js +0 -43
- package/lib/build/PageTemplates/ShowcasePage.stories.js.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/lib/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.js +0 -67
- package/lib/build/Workbench/Workbench.mocks.js.map +0 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +0 -11
- package/lib/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.stories.js +0 -273
- package/lib/build/Workbench/Workbench.stories.js.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js +0 -385
- package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js +0 -172
- package/lib/cs/CSAppShell/CSAppShell.stories.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +0 -331
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.js +0 -19
- package/lib/cs/DialPad/DialPad.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +0 -55
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +0 -88
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +0 -1
- package/lib/cs/Picker/Picker.stories.d.ts +0 -11
- package/lib/cs/Picker/Picker.stories.d.ts.map +0 -1
- package/lib/cs/Picker/Picker.stories.js +0 -56
- package/lib/cs/Picker/Picker.stories.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +0 -228
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +0 -15
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +0 -395
- package/lib/cs/TaskManager/TaskManager.stories.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.styles.d.ts +0 -3
- package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.styles.js +0 -9
- package/lib/cs/TaskManager/TaskManager.styles.js.map +0 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
- package/lib/tools/Clipboard/Clipboard.mocks.js +0 -74
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +0 -1
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +0 -6
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
- package/lib/tools/Clipboard/Clipboard.stories.js +0 -74
- package/lib/tools/Clipboard/Clipboard.stories.js.map +0 -1
- package/lib/tools/DevTools/DevTools.mocks.d.ts +0 -3
- package/lib/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
- package/lib/tools/DevTools/DevTools.mocks.js +0 -3
- package/lib/tools/DevTools/DevTools.mocks.js.map +0 -1
- package/lib/tools/DevTools/DevTools.stories.d.ts +0 -10
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +0 -1
- package/lib/tools/DevTools/DevTools.stories.js +0 -29
- package/lib/tools/DevTools/DevTools.stories.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +0 -77
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.js +0 -181
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.styles.js +0 -6
- package/lib/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState, useMemo } from 'react';
|
|
2
|
-
import { createUID, TwoColumnPage, registerIcon } from '@pega/cosmos-react-core';
|
|
3
|
-
import * as chatSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/chat-solid.icon';
|
|
4
|
-
import { CaseViewMock } from '../../work/CaseView/CaseView.mocks';
|
|
5
|
-
import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
|
|
6
|
-
import { TasksDemo } from '../../work/Tasks/Tasks.stories';
|
|
7
|
-
import { FeedDemo } from '../../social/Feed/Feed.stories';
|
|
8
|
-
import { EmailShellDemo } from '../../social/Email/Email.stories';
|
|
9
|
-
import { StandardChat } from '../../social/Chat/Chat.stories';
|
|
10
|
-
import { TaskManagerDemo } from '../TaskManager/TaskManager.stories';
|
|
11
|
-
import { InteractionTimerDemo as InteractionTimerStory } from '../InteractionTimer/InteractionTimer.stories';
|
|
12
|
-
import { AppShellMockData, ChatSettingsPanelMock, CTIControlPanel, CTIControlPanelContext, EmailNotificationPanelMock } from './CSAppShell.mocks';
|
|
13
|
-
registerIcon(chatSolidIcon);
|
|
14
|
-
export default {
|
|
15
|
-
title: 'Customer Service/CS App Shell',
|
|
16
|
-
parameters: {
|
|
17
|
-
layout: 'fullscreen'
|
|
18
|
-
},
|
|
19
|
-
args: {
|
|
20
|
-
isDraggable: true,
|
|
21
|
-
hasInteractionNotifications: true,
|
|
22
|
-
enableSla: true,
|
|
23
|
-
ctiPanel: 'internal',
|
|
24
|
-
applyThemeToExternalCTI: false
|
|
25
|
-
},
|
|
26
|
-
argTypes: {
|
|
27
|
-
isDraggable: { control: { type: 'boolean' } },
|
|
28
|
-
hasInteractionNotifications: { control: { type: 'boolean' } },
|
|
29
|
-
enableSla: { control: { type: 'boolean' } },
|
|
30
|
-
ctiPanel: { options: ['internal', 'external'], control: { type: 'inline-radio' } },
|
|
31
|
-
applyThemeToExternalCTI: { control: { type: 'boolean' } }
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
export const CSAppShell = (args) => {
|
|
35
|
-
const CaseData = AppShellMockData;
|
|
36
|
-
const home = <TwoColumnPage a={<FeedDemo />} b={<TasksDemo />} title='Welcome, Sara Davis'/>;
|
|
37
|
-
const [mainContent, setMainContent] = useState(home);
|
|
38
|
-
const [caseID, setCaseID] = useState(1001);
|
|
39
|
-
const [cases, setCases] = useState([]);
|
|
40
|
-
const [links, setLinks] = useState([
|
|
41
|
-
{
|
|
42
|
-
id: '01',
|
|
43
|
-
name: 'Home',
|
|
44
|
-
href: '#home',
|
|
45
|
-
icon: 'home-solid'
|
|
46
|
-
}
|
|
47
|
-
]);
|
|
48
|
-
const renderCaseView = (name) => {
|
|
49
|
-
if (name) {
|
|
50
|
-
const { heading } = CaseData[name];
|
|
51
|
-
let persistentUtilityContent;
|
|
52
|
-
if (name === 'Mail interaction') {
|
|
53
|
-
persistentUtilityContent = {
|
|
54
|
-
content: <EmailShellDemo hideSuggestions/>,
|
|
55
|
-
title: 'Email'
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
else if (name === 'Chat interaction') {
|
|
59
|
-
persistentUtilityContent = {
|
|
60
|
-
content: <StandardChat chatHeight='100%' chatWidth='100%'/>,
|
|
61
|
-
title: 'Chat'
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
setMainContent(<CaseViewMock caseId='C-123' stages={false} tasks={<TaskManagerDemo verbatimStatus='pending'/>} persistentUtility={persistentUtilityContent} heading={heading}/>);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const setActiveItem = (key) => {
|
|
68
|
-
setCases((prevCases = []) => {
|
|
69
|
-
return prevCases.map(caseItem => {
|
|
70
|
-
return { ...caseItem, active: caseItem.id === key };
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
setLinks((prevLinks = []) => {
|
|
74
|
-
return prevLinks.map(link => {
|
|
75
|
-
return {
|
|
76
|
-
...link,
|
|
77
|
-
active: link.name === key
|
|
78
|
-
};
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
const createInteraction = (createLink) => {
|
|
83
|
-
const { primary, secondary, icon, customerName } = createLink;
|
|
84
|
-
const key = createUID();
|
|
85
|
-
const createdAt = new Date().getTime();
|
|
86
|
-
const interactionTimerId = createUID();
|
|
87
|
-
const newCase = {
|
|
88
|
-
visual: (<InteractionTimerStory id={interactionTimerId} icon={icon} showTimer={args.enableSla} hasNotifications={args.hasInteractionNotifications} meta={args.enableSla ? '0:00' : createLink.meta} interactionType={primary}/>),
|
|
89
|
-
primary: customerName || 'Unknown customer',
|
|
90
|
-
secondary,
|
|
91
|
-
createdAt,
|
|
92
|
-
id: key,
|
|
93
|
-
active: true,
|
|
94
|
-
onClick: () => {
|
|
95
|
-
setActiveItem(key);
|
|
96
|
-
renderCaseView(primary);
|
|
97
|
-
},
|
|
98
|
-
onDismiss: (e) => {
|
|
99
|
-
setActiveItem('Home');
|
|
100
|
-
e.stopPropagation();
|
|
101
|
-
setCases((prevCases = []) => prevCases.filter(caseItem => caseItem.id !== key));
|
|
102
|
-
setMainContent(home);
|
|
103
|
-
},
|
|
104
|
-
'aria-labelledby': interactionTimerId
|
|
105
|
-
};
|
|
106
|
-
setCases((prevCases = []) => [...prevCases, newCase]);
|
|
107
|
-
setActiveItem(key);
|
|
108
|
-
setCaseID(caseID + 1);
|
|
109
|
-
renderCaseView(primary);
|
|
110
|
-
};
|
|
111
|
-
const createLinks = [
|
|
112
|
-
{
|
|
113
|
-
primary: 'Phone interaction',
|
|
114
|
-
secondary: 'Received 20s ago',
|
|
115
|
-
icon: 'phone-solid',
|
|
116
|
-
meta: 'FH',
|
|
117
|
-
customerName: 'Ginger Ventura'
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
primary: 'Chat interaction',
|
|
121
|
-
secondary: 'Sent 2h ago',
|
|
122
|
-
icon: 'chat-solid',
|
|
123
|
-
meta: 'SC',
|
|
124
|
-
customerName: 'Sara Davis'
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
primary: 'Mail interaction',
|
|
128
|
-
secondary: 'Received 20s ago',
|
|
129
|
-
icon: 'mail-solid',
|
|
130
|
-
meta: 'JB',
|
|
131
|
-
customerName: 'John Brown'
|
|
132
|
-
}
|
|
133
|
-
].map(item => {
|
|
134
|
-
const { primary, icon } = item;
|
|
135
|
-
return {
|
|
136
|
-
name: primary,
|
|
137
|
-
icon,
|
|
138
|
-
href: '',
|
|
139
|
-
onClick: () => {
|
|
140
|
-
createInteraction(item);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
});
|
|
144
|
-
useEffect(() => {
|
|
145
|
-
createInteraction({
|
|
146
|
-
primary: 'Phone interaction',
|
|
147
|
-
secondary: 'Received 20s ago',
|
|
148
|
-
icon: 'phone-solid',
|
|
149
|
-
meta: 'GV',
|
|
150
|
-
customerName: 'Ginger Ventura'
|
|
151
|
-
});
|
|
152
|
-
}, []);
|
|
153
|
-
const utils = [<EmailNotificationPanelMock />, <ChatSettingsPanelMock />, <CTIControlPanel />];
|
|
154
|
-
const appInfo = {
|
|
155
|
-
href: 'https://www.pega.com/',
|
|
156
|
-
imageSrc: 'https://www.clipartmax.com/png/middle/345-3454195_account-executive-civilian-pega-logo-png.png',
|
|
157
|
-
fullImageSrc: 'Full Image Source',
|
|
158
|
-
appName: 'CS AppShell'
|
|
159
|
-
};
|
|
160
|
-
return (<CTIControlPanelContext.Provider value={useMemo(() => ({
|
|
161
|
-
type: args.ctiPanel,
|
|
162
|
-
draggable: args.isDraggable,
|
|
163
|
-
applyAppStyling: args.applyThemeToExternalCTI
|
|
164
|
-
}), [args.isDraggable, args.applyThemeToExternalCTI, args.ctiPanel])}>
|
|
165
|
-
<AppShellDemo main={mainContent} appInfo={appInfo} cases={cases} createLinks={createLinks} caseLinks={links} utils={utils} onLinkClick={(name) => {
|
|
166
|
-
if (name === 'Home') {
|
|
167
|
-
setMainContent(home);
|
|
168
|
-
}
|
|
169
|
-
setActiveItem(name);
|
|
170
|
-
}} collapsedHoverMenus/>
|
|
171
|
-
</CTIControlPanelContext.Provider>);
|
|
172
|
-
};
|
|
173
|
-
//# sourceMappingURL=CSAppShell.stories.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CSAppShell.stories.jsx","sourceRoot":"","sources":["../../../src/cs/CSAppShell/CSAppShell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,KAAK,aAAa,MAAM,mEAAmE,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,oBAAoB,IAAI,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAG7G,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAE5B,YAAY,CAAC,aAAa,CAAC,CAAC;AAE5B,eAAe;IACb,KAAK,EAAE,+BAA+B;IACtC,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,IAAI;QACjB,2BAA2B,EAAE,IAAI;QACjC,SAAS,EAAE,IAAI;QACf,QAAQ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ACnC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useEffect, useState, useMemo } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { createUID, TwoColumnPage, registerIcon } from '@pega/cosmos-react-core';\nimport type { AppShellProps } from '@pega/cosmos-react-core';\nimport * as chatSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/chat-solid.icon';\n\nimport { CaseViewMock } from '../../work/CaseView/CaseView.mocks';\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\nimport { TasksDemo } from '../../work/Tasks/Tasks.stories';\nimport { FeedDemo } from '../../social/Feed/Feed.stories';\nimport { EmailShellDemo } from '../../social/Email/Email.stories';\nimport { StandardChat } from '../../social/Chat/Chat.stories';\nimport { TaskManagerDemo } from '../TaskManager/TaskManager.stories';\nimport { InteractionTimerDemo as InteractionTimerStory } from '../InteractionTimer/InteractionTimer.stories';\nimport type { InteractionTimerStoryProps } from '../InteractionTimer/InteractionTimer.stories';\n\nimport {\n AppShellMockData,\n ChatSettingsPanelMock,\n CTIControlPanel,\n CTIControlPanelContext,\n EmailNotificationPanelMock\n} from './CSAppShell.mocks';\n\nregisterIcon(chatSolidIcon);\n\nexport default {\n title: 'Customer Service/CS App Shell',\n parameters: {\n layout: 'fullscreen'\n },\n args: {\n isDraggable: true,\n hasInteractionNotifications: true,\n enableSla: true,\n ctiPanel: 'internal',\n applyThemeToExternalCTI: false\n },\n argTypes: {\n isDraggable: { control: { type: 'boolean' } },\n hasInteractionNotifications: { control: { type: 'boolean' } },\n enableSla: { control: { type: 'boolean' } },\n ctiPanel: { options: ['internal', 'external'], control: { type: 'inline-radio' } },\n applyThemeToExternalCTI: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface CSAppShellProps {\n isDraggable?: boolean;\n hasInteractionNotifications?: InteractionTimerStoryProps['hasNotifications'];\n enableSla?: InteractionTimerStoryProps['showTimer'];\n ctiPanel: 'internal' | 'external';\n applyThemeToExternalCTI: boolean;\n}\n\nexport const CSAppShell: StoryFn<CSAppShellProps> = (args: CSAppShellProps) => {\n const CaseData = AppShellMockData as any;\n\n const home = <TwoColumnPage a={<FeedDemo />} b={<TasksDemo />} title='Welcome, Sara Davis' />;\n\n const [mainContent, setMainContent] = useState(home);\n const [caseID, setCaseID] = useState(1001);\n const [cases, setCases] = useState<AppShellProps['cases']>([]);\n const [links, setLinks] = useState<AppShellProps['links']>([\n {\n id: '01',\n name: 'Home',\n href: '#home',\n icon: 'home-solid'\n }\n ]);\n\n const renderCaseView = (name: string) => {\n if (name) {\n const { heading } = CaseData[name];\n\n let persistentUtilityContent;\n if (name === 'Mail interaction') {\n persistentUtilityContent = {\n content: <EmailShellDemo hideSuggestions />,\n title: 'Email'\n };\n } else if (name === 'Chat interaction') {\n persistentUtilityContent = {\n content: <StandardChat chatHeight='100%' chatWidth='100%' />,\n title: 'Chat'\n };\n }\n setMainContent(\n <CaseViewMock\n caseId='C-123'\n stages={false}\n tasks={<TaskManagerDemo verbatimStatus='pending' />}\n persistentUtility={persistentUtilityContent}\n heading={heading}\n />\n );\n }\n };\n\n const setActiveItem = (key: string) => {\n setCases((prevCases = []) => {\n return prevCases.map(caseItem => {\n return { ...caseItem, active: caseItem.id === key };\n });\n });\n setLinks((prevLinks = []) => {\n return prevLinks.map(link => {\n return {\n ...link,\n active: link.name === key\n };\n });\n });\n };\n\n const createInteraction = (createLink: {\n primary: string;\n secondary?: string;\n icon: string;\n meta: string;\n customerName?: string;\n }) => {\n const { primary, secondary, icon, customerName } = createLink;\n const key: string = createUID();\n const createdAt = new Date().getTime();\n const interactionTimerId = createUID();\n const newCase = {\n visual: (\n <InteractionTimerStory\n id={interactionTimerId}\n icon={icon}\n showTimer={args.enableSla}\n hasNotifications={args.hasInteractionNotifications}\n meta={args.enableSla ? '0:00' : createLink.meta}\n interactionType={primary}\n />\n ),\n primary: customerName || 'Unknown customer',\n secondary,\n createdAt,\n id: key,\n active: true,\n onClick: () => {\n setActiveItem(key);\n renderCaseView(primary);\n },\n onDismiss: (e: any) => {\n setActiveItem('Home');\n e.stopPropagation();\n setCases((prevCases = []) => prevCases.filter(caseItem => caseItem.id !== key));\n setMainContent(home);\n },\n 'aria-labelledby': interactionTimerId\n };\n setCases((prevCases = []) => [...prevCases, newCase]);\n setActiveItem(key);\n setCaseID(caseID + 1);\n renderCaseView(primary);\n };\n\n const createLinks = [\n {\n primary: 'Phone interaction',\n secondary: 'Received 20s ago',\n icon: 'phone-solid',\n meta: 'FH',\n customerName: 'Ginger Ventura'\n },\n {\n primary: 'Chat interaction',\n secondary: 'Sent 2h ago',\n icon: 'chat-solid',\n meta: 'SC',\n customerName: 'Sara Davis'\n },\n {\n primary: 'Mail interaction',\n secondary: 'Received 20s ago',\n icon: 'mail-solid',\n meta: 'JB',\n customerName: 'John Brown'\n }\n ].map(item => {\n const { primary, icon } = item;\n return {\n name: primary,\n icon,\n href: '',\n onClick: () => {\n createInteraction(item);\n }\n };\n });\n\n useEffect(() => {\n createInteraction({\n primary: 'Phone interaction',\n secondary: 'Received 20s ago',\n icon: 'phone-solid',\n meta: 'GV',\n customerName: 'Ginger Ventura'\n });\n }, []);\n\n const utils = [<EmailNotificationPanelMock />, <ChatSettingsPanelMock />, <CTIControlPanel />];\n\n const appInfo = {\n href: 'https://www.pega.com/',\n imageSrc:\n 'https://www.clipartmax.com/png/middle/345-3454195_account-executive-civilian-pega-logo-png.png',\n fullImageSrc: 'Full Image Source',\n appName: 'CS AppShell'\n };\n\n return (\n <CTIControlPanelContext.Provider\n value={useMemo(\n () => ({\n type: args.ctiPanel,\n draggable: args.isDraggable,\n applyAppStyling: args.applyThemeToExternalCTI\n }),\n [args.isDraggable, args.applyThemeToExternalCTI, args.ctiPanel]\n )}\n >\n <AppShellDemo\n main={mainContent}\n appInfo={appInfo}\n cases={cases}\n createLinks={createLinks}\n caseLinks={links}\n utils={utils}\n onLinkClick={(name: string) => {\n if (name === 'Home') {\n setMainContent(home);\n }\n setActiveItem(name);\n }}\n collapsedHoverMenus\n />\n </CTIControlPanelContext.Provider>\n );\n};\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { UserAvailabilityStatusOption } from '@pega/cosmos-react-cs';
|
|
2
|
-
export declare const contactsList: {
|
|
3
|
-
phoneNumber: string;
|
|
4
|
-
primary: string;
|
|
5
|
-
secondary: string;
|
|
6
|
-
favorite: boolean;
|
|
7
|
-
}[];
|
|
8
|
-
export declare const transferReasons: {
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
}[];
|
|
12
|
-
export declare const interactionOptions: {
|
|
13
|
-
id: string;
|
|
14
|
-
label: string;
|
|
15
|
-
}[];
|
|
16
|
-
export declare const userStatusOptions: UserAvailabilityStatusOption[];
|
|
17
|
-
type StyleVariableName = '--app-bg-color' | '--header-border-color' | '--text-color' | '--msg-border-radius' | '--msg-you-bg-color' | '--msg-you-text-color' | '--msg-me-bg-color' | '--msg-me-text-color' | '--input-height' | '--input-background-color' | '--input-border-color' | '--input-border-width' | '--input-border-radius' | '--input-focus-border-color' | '--input-focus-box-shadow' | '--input-text-color' | '--button-text-color' | '--button-height' | '--button-bg-color' | '--button-border-color' | '--button-border-radius' | '--button-hover-bg-color' | '--footer-bg-color';
|
|
18
|
-
export type ExternalStyles = Partial<Record<StyleVariableName, string>>;
|
|
19
|
-
export declare const createExternalIframeContent: (styles?: ExternalStyles | undefined) => string;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=CallControlPanel.mocks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CallControlPanel.mocks.d.ts","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E,eAAO,MAAM,YAAY;;;;;GAmExB,CAAC;AAEF,eAAO,MAAM,eAAe;;;GAa3B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;GAa9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,4BAA4B,EA4B3D,CAAC;AAEF,KAAK,iBAAiB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,cAAc,GACd,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,qBAAqB,GACrB,gBAAgB,GAChB,0BAA0B,GAC1B,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,4BAA4B,GAC5B,0BAA0B,GAC1B,oBAAoB,GACpB,qBAAqB,GACrB,iBAAiB,GACjB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,CAAC;AAExB,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE,eAAO,MAAM,2BAA2B,YAAY,cAAc,GAAG,SAAS,WA6H7E,CAAC"}
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
export const contactsList = [
|
|
2
|
-
{
|
|
3
|
-
phoneNumber: '343445656',
|
|
4
|
-
primary: 'Gregory Rhodes',
|
|
5
|
-
secondary: 'Supervisor',
|
|
6
|
-
favorite: true
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
phoneNumber: '123243434',
|
|
10
|
-
primary: 'Ella Bridges',
|
|
11
|
-
secondary: 'Representative',
|
|
12
|
-
favorite: true
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
phoneNumber: '4545455',
|
|
16
|
-
primary: 'Carrie Hanson',
|
|
17
|
-
secondary: 'Representative',
|
|
18
|
-
favorite: false
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
phoneNumber: '48436346',
|
|
22
|
-
primary: 'Chris Wallas',
|
|
23
|
-
secondary: 'Supervisor',
|
|
24
|
-
favorite: false
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
phoneNumber: '34455656',
|
|
28
|
-
primary: 'Craig Marsh',
|
|
29
|
-
secondary: 'Supervisor',
|
|
30
|
-
favorite: false
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
phoneNumber: '45565678',
|
|
34
|
-
primary: 'Derrick Sutton',
|
|
35
|
-
secondary: 'Representative',
|
|
36
|
-
favorite: false
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
phoneNumber: '54367578',
|
|
40
|
-
primary: 'Lizzie Johnson',
|
|
41
|
-
secondary: 'Supervisor',
|
|
42
|
-
favorite: false
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
phoneNumber: '65345789',
|
|
46
|
-
primary: 'Ivan Fuller',
|
|
47
|
-
secondary: 'Representative',
|
|
48
|
-
favorite: false
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
phoneNumber: '764455478',
|
|
52
|
-
primary: 'Sam Smith',
|
|
53
|
-
secondary: 'Supervisor',
|
|
54
|
-
favorite: false
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
phoneNumber: '876464003',
|
|
58
|
-
primary: 'Joe Doe',
|
|
59
|
-
secondary: 'Representative',
|
|
60
|
-
favorite: false
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
phoneNumber: '426464003',
|
|
64
|
-
primary: 'Jane Doe',
|
|
65
|
-
secondary: 'Representative',
|
|
66
|
-
favorite: false
|
|
67
|
-
}
|
|
68
|
-
];
|
|
69
|
-
export const transferReasons = [
|
|
70
|
-
{
|
|
71
|
-
id: 'offline',
|
|
72
|
-
label: 'Offline'
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: 'busy',
|
|
76
|
-
label: 'Busy'
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 'on_break',
|
|
80
|
-
label: 'On break'
|
|
81
|
-
}
|
|
82
|
-
];
|
|
83
|
-
export const interactionOptions = [
|
|
84
|
-
{
|
|
85
|
-
id: '4545455',
|
|
86
|
-
label: 'Gregory Rhodes'
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: '123243434',
|
|
90
|
-
label: 'Ella Bridges'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: '23254324',
|
|
94
|
-
label: 'Carrie Hanson'
|
|
95
|
-
}
|
|
96
|
-
];
|
|
97
|
-
export const userStatusOptions = [
|
|
98
|
-
{
|
|
99
|
-
id: 'available',
|
|
100
|
-
label: 'Available',
|
|
101
|
-
status: 'available'
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 'not_available',
|
|
105
|
-
label: 'Not available',
|
|
106
|
-
status: 'busy',
|
|
107
|
-
disabled: true
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
id: 'after_call_work',
|
|
111
|
-
label: 'After call work',
|
|
112
|
-
status: 'after_work'
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: 'reconnecting',
|
|
116
|
-
label: 'Reconnecting',
|
|
117
|
-
status: 'unavailable',
|
|
118
|
-
disabled: true
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
id: 'offline',
|
|
122
|
-
label: 'Offline',
|
|
123
|
-
status: 'logout'
|
|
124
|
-
}
|
|
125
|
-
];
|
|
126
|
-
export const createExternalIframeContent = (styles = {}) => `
|
|
127
|
-
<!DOCTYPE html>
|
|
128
|
-
<html>
|
|
129
|
-
<head>
|
|
130
|
-
<style>
|
|
131
|
-
:root {
|
|
132
|
-
${Object.entries(styles)
|
|
133
|
-
.map(([key, value]) => `${key}: ${value};`)
|
|
134
|
-
.join('\n')}
|
|
135
|
-
}
|
|
136
|
-
</style>
|
|
137
|
-
<style>
|
|
138
|
-
html {
|
|
139
|
-
height: 100vh;
|
|
140
|
-
background-color: var(--app-bg-color, #F5F0EF);
|
|
141
|
-
color: var(--text-color, black);
|
|
142
|
-
}
|
|
143
|
-
body {
|
|
144
|
-
max-width: 100vw;
|
|
145
|
-
height: 100%;
|
|
146
|
-
display: flex;
|
|
147
|
-
flex-direction: column;
|
|
148
|
-
margin: 0;
|
|
149
|
-
}
|
|
150
|
-
header {
|
|
151
|
-
height: 3rem;
|
|
152
|
-
font-size: 10px;
|
|
153
|
-
border-bottom: 2px solid var(--header-border-color, black);
|
|
154
|
-
padding: 0 8px;
|
|
155
|
-
}
|
|
156
|
-
main {
|
|
157
|
-
display: flex;
|
|
158
|
-
flex-direction: column;
|
|
159
|
-
flex-grow: 1;
|
|
160
|
-
max-height: calc(100% - 3rem);
|
|
161
|
-
}
|
|
162
|
-
ul {
|
|
163
|
-
flex-grow: 1;
|
|
164
|
-
overflow: auto;
|
|
165
|
-
display: flex;
|
|
166
|
-
flex-direction: column;
|
|
167
|
-
list-style: none;
|
|
168
|
-
padding-inline: 10px;
|
|
169
|
-
gap: 6px;
|
|
170
|
-
margin-block-end: 0;
|
|
171
|
-
}
|
|
172
|
-
li {
|
|
173
|
-
padding: 8px;
|
|
174
|
-
}
|
|
175
|
-
li.you {
|
|
176
|
-
align-self: start;
|
|
177
|
-
background-color: var(--msg-you-bg-color, lightblue);
|
|
178
|
-
color: var(--msg-you-text-color, black);
|
|
179
|
-
border-radius: 0 var(--msg-border-radius, 4px) var(--msg-border-radius, 4px);
|
|
180
|
-
}
|
|
181
|
-
li.you:before {
|
|
182
|
-
content: "\\00B7";
|
|
183
|
-
margin-inline-end: 4px;
|
|
184
|
-
}
|
|
185
|
-
li.me {
|
|
186
|
-
align-self: end;
|
|
187
|
-
background-color: var(--msg-me-bg-color, pink);
|
|
188
|
-
color: var(--msg-me-text-color, black);
|
|
189
|
-
border-radius: var(--msg-border-radius, 4px) 0 var(--msg-border-radius, 4px) var(--msg-border-radius, 4px);
|
|
190
|
-
}
|
|
191
|
-
li.me:after {
|
|
192
|
-
content: "\\00B7";
|
|
193
|
-
margin-inline-start: 4px;
|
|
194
|
-
}
|
|
195
|
-
div {
|
|
196
|
-
display: flex;
|
|
197
|
-
justify-content: stretch;
|
|
198
|
-
align-items: center;
|
|
199
|
-
gap: 8px;
|
|
200
|
-
padding: 8px;
|
|
201
|
-
background-color: var(--footer-bg-color, transparent);
|
|
202
|
-
}
|
|
203
|
-
input {
|
|
204
|
-
outline: none;
|
|
205
|
-
color: var(--input-text-color, black);
|
|
206
|
-
height: var(--input-height, 2rem);
|
|
207
|
-
background-color: var(--input-background-color, white);
|
|
208
|
-
border-color: var(--input-border-color, black);
|
|
209
|
-
border-width: var(--input-border-width, 1px);
|
|
210
|
-
border-radius: var(--input-border-radius, 4px);
|
|
211
|
-
flex-grow: 1;
|
|
212
|
-
}
|
|
213
|
-
input:focus {
|
|
214
|
-
border-color: var(--input-focus-border-color, lightblue);
|
|
215
|
-
box-shadow: var(--input-focus-box-shadow, none);
|
|
216
|
-
}
|
|
217
|
-
button {
|
|
218
|
-
padding: 0 8px;
|
|
219
|
-
color: var(--button-text-color, black);
|
|
220
|
-
height: var(--button-height, 2rem);
|
|
221
|
-
background-color: var(--button-bg-color, white);
|
|
222
|
-
border: 1px solid var(--button-border-color, blue);
|
|
223
|
-
border-radius: var(--button-border-radius, 4px);
|
|
224
|
-
}
|
|
225
|
-
button:hover {
|
|
226
|
-
background-color: var(--button-hover-bg-color, gray);
|
|
227
|
-
}
|
|
228
|
-
</style>
|
|
229
|
-
</head>
|
|
230
|
-
<body>
|
|
231
|
-
<header><h1>Customer: Julian Brewster</h1></header>
|
|
232
|
-
<main>
|
|
233
|
-
<ul>
|
|
234
|
-
<li class="you">Hey!</li>
|
|
235
|
-
<li class="you">I want to check my account balance.</li>
|
|
236
|
-
<li class="me">Hello Mr Brewster.</li>
|
|
237
|
-
<li class="me">You have two accounts open. Which one do you want to check?</li>
|
|
238
|
-
<li class="you">The default one.</li>
|
|
239
|
-
<li class="me">Your account balance is $12345.45.</li>
|
|
240
|
-
<li class="me">Is there anything I can help you, Mr Brewster?</li>
|
|
241
|
-
<li class="you">I want to close the other account.</li>
|
|
242
|
-
<li class="me">Alright. What account the money should be transferred to?</li>
|
|
243
|
-
</ul>
|
|
244
|
-
<div>
|
|
245
|
-
<input name="message" autocomplete="off" />
|
|
246
|
-
<button>Send</button>
|
|
247
|
-
</div>
|
|
248
|
-
</main>
|
|
249
|
-
</body>
|
|
250
|
-
</html>
|
|
251
|
-
`;
|
|
252
|
-
//# sourceMappingURL=CallControlPanel.mocks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CallControlPanel.mocks.js","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;QACE,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,IAAI;KACf;IACD;QACE,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,WAAW,EAAE,WA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MAAM,EAAE,QAAQ;KACjB;CACF,CAAC;AA6BF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,SAAqC,EAAE,EAAE,EAAE,CAAC;;;;;;UAM9E,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;KACrB,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,KAAK,GAAG,CAAC;KAC1C,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHpB,CAAC","sourcesContent":["import type { UserAvailabilityStatusOption } from '@pega/cosmos-react-cs';\n\nexport const contactsList = [\n {\n phoneNumber: '343445656',\n primary: 'Gregory Rhodes',\n secondary: 'Supervisor',\n favorite: true\n },\n {\n phoneNumber: '123243434',\n primary: 'Ella Bridges',\n secondary: 'Representative',\n favorite: true\n },\n {\n phoneNumber: '4545455',\n primary: 'Carrie Hanson',\n secondary: 'Representative',\n favorite: false\n },\n {\n phoneNumber: '48436346',\n primary: 'Chris Wallas',\n secondary: 'Supervisor',\n favorite: false\n },\n {\n phoneNumber: '34455656',\n primary: 'Craig Marsh',\n secondary: 'Supervisor',\n favorite: false\n },\n {\n phoneNumber: '45565678',\n primary: 'Derrick Sutton',\n secondary: 'Representative',\n favorite: false\n },\n {\n phoneNumber: '54367578',\n primary: 'Lizzie Johnson',\n secondary: 'Supervisor',\n favorite: false\n },\n {\n phoneNumber: '65345789',\n primary: 'Ivan Fuller',\n secondary: 'Representative',\n favorite: false\n },\n {\n phoneNumber: '764455478',\n primary: 'Sam Smith',\n secondary: 'Supervisor',\n favorite: false\n },\n {\n phoneNumber: '876464003',\n primary: 'Joe Doe',\n secondary: 'Representative',\n favorite: false\n },\n {\n phoneNumber: '426464003',\n primary: 'Jane Doe',\n secondary: 'Representative',\n favorite: false\n }\n];\n\nexport const transferReasons = [\n {\n id: 'offline',\n label: 'Offline'\n },\n {\n id: 'busy',\n label: 'Busy'\n },\n {\n id: 'on_break',\n label: 'On break'\n }\n];\n\nexport const interactionOptions = [\n {\n id: '4545455',\n label: 'Gregory Rhodes'\n },\n {\n id: '123243434',\n label: 'Ella Bridges'\n },\n {\n id: '23254324',\n label: 'Carrie Hanson'\n }\n];\n\nexport const userStatusOptions: UserAvailabilityStatusOption[] = [\n {\n id: 'available',\n label: 'Available',\n status: 'available'\n },\n {\n id: 'not_available',\n label: 'Not available',\n status: 'busy',\n disabled: true\n },\n {\n id: 'after_call_work',\n label: 'After call work',\n status: 'after_work'\n },\n {\n id: 'reconnecting',\n label: 'Reconnecting',\n status: 'unavailable',\n disabled: true\n },\n {\n id: 'offline',\n label: 'Offline',\n status: 'logout'\n }\n];\n\ntype StyleVariableName =\n | '--app-bg-color'\n | '--header-border-color'\n | '--text-color'\n | '--msg-border-radius'\n | '--msg-you-bg-color'\n | '--msg-you-text-color'\n | '--msg-me-bg-color'\n | '--msg-me-text-color'\n | '--input-height'\n | '--input-background-color'\n | '--input-border-color'\n | '--input-border-width'\n | '--input-border-radius'\n | '--input-focus-border-color'\n | '--input-focus-box-shadow'\n | '--input-text-color'\n | '--button-text-color'\n | '--button-height'\n | '--button-bg-color'\n | '--button-border-color'\n | '--button-border-radius'\n | '--button-hover-bg-color'\n | '--footer-bg-color';\n\nexport type ExternalStyles = Partial<Record<StyleVariableName, string>>;\n\nexport const createExternalIframeContent = (styles: ExternalStyles | undefined = {}) => `\n<!DOCTYPE html>\n<html>\n <head>\n <style>\n :root {\n ${Object.entries(styles)\n .map(([key, value]) => `${key}: ${value};`)\n .join('\\n')}\n }\n </style>\n <style>\n html {\n height: 100vh;\n background-color: var(--app-bg-color, #F5F0EF);\n color: var(--text-color, black);\n }\n body {\n max-width: 100vw;\n height: 100%;\n display: flex;\n flex-direction: column;\n margin: 0;\n }\n header {\n height: 3rem;\n font-size: 10px;\n border-bottom: 2px solid var(--header-border-color, black);\n padding: 0 8px;\n }\n main {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n max-height: calc(100% - 3rem);\n }\n ul {\n flex-grow: 1;\n overflow: auto;\n display: flex;\n flex-direction: column;\n list-style: none;\n padding-inline: 10px;\n gap: 6px;\n margin-block-end: 0;\n }\n li {\n padding: 8px;\n }\n li.you {\n align-self: start;\n background-color: var(--msg-you-bg-color, lightblue);\n color: var(--msg-you-text-color, black);\n border-radius: 0 var(--msg-border-radius, 4px) var(--msg-border-radius, 4px);\n }\n li.you:before {\n content: \"\\\\00B7\";\n margin-inline-end: 4px;\n }\n li.me {\n align-self: end;\n background-color: var(--msg-me-bg-color, pink);\n color: var(--msg-me-text-color, black);\n border-radius: var(--msg-border-radius, 4px) 0 var(--msg-border-radius, 4px) var(--msg-border-radius, 4px);\n }\n li.me:after {\n content: \"\\\\00B7\";\n margin-inline-start: 4px;\n }\n div {\n display: flex;\n justify-content: stretch;\n align-items: center;\n gap: 8px;\n padding: 8px;\n background-color: var(--footer-bg-color, transparent);\n }\n input {\n outline: none;\n color: var(--input-text-color, black);\n height: var(--input-height, 2rem);\n background-color: var(--input-background-color, white);\n border-color: var(--input-border-color, black);\n border-width: var(--input-border-width, 1px);\n border-radius: var(--input-border-radius, 4px);\n flex-grow: 1;\n }\n input:focus {\n border-color: var(--input-focus-border-color, lightblue);\n box-shadow: var(--input-focus-box-shadow, none);\n }\n button {\n padding: 0 8px;\n color: var(--button-text-color, black);\n height: var(--button-height, 2rem);\n background-color: var(--button-bg-color, white);\n border: 1px solid var(--button-border-color, blue);\n border-radius: var(--button-border-radius, 4px);\n }\n button:hover {\n background-color: var(--button-hover-bg-color, gray);\n }\n </style>\n </head>\n <body>\n <header><h1>Customer: Julian Brewster</h1></header>\n <main>\n <ul>\n <li class=\"you\">Hey!</li>\n <li class=\"you\">I want to check my account balance.</li>\n <li class=\"me\">Hello Mr Brewster.</li>\n <li class=\"me\">You have two accounts open. Which one do you want to check?</li>\n <li class=\"you\">The default one.</li>\n <li class=\"me\">Your account balance is $12345.45.</li>\n <li class=\"me\">Is there anything I can help you, Mr Brewster?</li>\n <li class=\"you\">I want to close the other account.</li>\n <li class=\"me\">Alright. What account the money should be transferred to?</li>\n </ul>\n <div>\n <input name=\"message\" autocomplete=\"off\" />\n <button>Send</button>\n </div>\n </main>\n </body>\n</html>\n`;\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { StoryFn } from '@storybook/react';
|
|
2
|
-
import type { UserAvailabilityStatusOption, CallControlPanelProps } from '@pega/cosmos-react-cs';
|
|
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 CallControlPanelStoryProps {
|
|
6
|
-
heading: string;
|
|
7
|
-
isDraggable?: boolean;
|
|
8
|
-
showStatus: boolean;
|
|
9
|
-
status?: UserAvailabilityStatusOption['id'];
|
|
10
|
-
onStatusChange?: (newStatus: UserAvailabilityStatusOption) => void;
|
|
11
|
-
visible?: CallControlPanelProps['visible'];
|
|
12
|
-
}
|
|
13
|
-
export declare const CallControlPanelDemo: StoryFn<CallControlPanelStoryProps>;
|
|
14
|
-
export declare const ExternalCTIDemo: StoryFn<CallControlPanelStoryProps & {
|
|
15
|
-
applyAppStyling: boolean;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=CallControlPanel.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CallControlPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/cs/CallControlPanel/CallControlPanel.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKtD,OAAO,KAAK,EAKV,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;;AAW/B,wBAaU;AAEV,UAAU,0BAA0B;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,4BAA4B,CAAC,IAAI,CAAC,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACnE,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;CAC5C;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,0BAA0B,CAkRpE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,0BAA0B,GAAG;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,CAuE9F,CAAC"}
|