@pega/cosmos-react-demos 4.0.0-dev.13.0 → 4.0.0-dev.14.1
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 +5 -3
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts +1 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +2 -4
- package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +2 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +17 -21
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +4 -4
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
- package/jsx/build/PageBanner/PageBanner.stories.d.ts +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +1 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +1 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +1 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts +1 -1
- package/jsx/core/Backdrop/Backdrop.stories.d.ts +1 -1
- package/jsx/core/Badges/Alert.stories.d.ts +1 -1
- package/jsx/core/Badges/Count.stories.d.ts +1 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +1 -1
- package/jsx/core/Badges/Selection.stories.d.ts +1 -1
- package/jsx/core/Badges/Status.stories.d.ts +1 -1
- package/jsx/core/Badges/Tag.stories.d.ts +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +1 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/jsx/core/Button/Button.stories.d.ts +1 -1
- package/jsx/core/Card/Card.stories.d.ts +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +1 -1
- package/jsx/core/Configuration/Configuration.stories.d.ts +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +1 -1
- package/jsx/core/Currency/Currency.stories.d.ts +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts +1 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +2 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.jsx +7 -80
- package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
- package/jsx/core/Dialog/{Dialog.mocks.d.ts → FormDialog.mocks.d.ts} +2 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
- package/jsx/core/Dialog/{Dialog.mocks.jsx → FormDialog.mocks.jsx} +58 -2
- package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -0
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts +4 -0
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
- package/jsx/core/Dialog/InfoDialog.mocks.jsx +63 -0
- package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -0
- package/jsx/core/Drawer/Drawer.stories.d.ts +1 -1
- package/jsx/core/Email/EmailDisplay.stories.d.ts +1 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +1 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx +6 -5
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
- package/jsx/core/EmptyState/EmptyState.stories.d.ts +1 -1
- package/jsx/core/ErrorState/ErrorState.stories.d.ts +1 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +1 -1
- package/jsx/core/File/FileDisplay.stories.d.ts +1 -1
- package/jsx/core/File/FileInput.stories.d.ts +1 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -1
- package/jsx/core/Flex/FlexItem.stories.d.ts +1 -1
- package/jsx/core/Form/Form.stories.d.ts +1 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +1 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +1 -1
- package/jsx/core/HTML/HTML.stories.d.ts +1 -1
- package/jsx/core/Icon/Icon.stories.d.ts +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.d.ts +1 -1
- package/jsx/core/Image/Image.stories.d.ts +1 -1
- package/jsx/core/Input/Input.stories.d.ts +1 -1
- package/jsx/core/Label/Label.stories.d.ts +1 -1
- package/jsx/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
- package/jsx/core/Lightbox/Lightbox.mocks.js.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.d.ts +1 -1
- package/jsx/core/Link/Link.stories.d.ts +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +1 -1
- package/jsx/core/List/OrderedList.stories.d.ts +1 -1
- package/jsx/core/List/UnorderedList.stories.d.ts +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +2 -2
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
- package/jsx/core/LiveLog/LiveLog.stories.d.ts +1 -1
- package/jsx/core/Location/Location.stories.d.ts +1 -1
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +9 -5
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Menu/Menu.mocks.js.map +1 -1
- package/jsx/core/Menu/Menu.stories.d.ts +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +1 -1
- package/jsx/core/MetaList/MetaList.stories.d.ts +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx +3 -5
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +1 -1
- package/jsx/core/Number/Number.stories.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/Pagination/Pagination.stories.d.ts +1 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts +1 -1
- package/jsx/core/Popover/Popover.mocks.d.ts +9 -0
- package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -0
- package/jsx/core/Popover/Popover.mocks.jsx +114 -0
- package/jsx/core/Popover/Popover.mocks.jsx.map +1 -0
- package/jsx/core/Popover/Popover.stories.d.ts +7 -1
- package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx +27 -0
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/Progress/Progress.stories.d.ts +1 -1
- package/jsx/core/QRCode/QRCode.stories.d.ts +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -1
- package/jsx/core/Rating/Rating.stories.d.ts +1 -1
- package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
- package/jsx/core/Rating/Rating.stories.jsx +1 -1
- package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -1
- package/jsx/core/Select/Select.stories.d.ts +1 -1
- package/jsx/core/Sentiment/Sentiment.stories.d.ts +1 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +1 -1
- package/jsx/core/Slider/Slider.stories.d.ts +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +1 -1
- package/jsx/core/SummaryList/mockUsers.d.ts.map +1 -1
- package/jsx/core/SummaryList/mockUsers.js.map +1 -1
- package/jsx/core/Switch/Switch.stories.d.ts +1 -1
- package/jsx/core/Table/Table.stories.d.ts +1 -1
- package/jsx/core/Table/Table.stories.jsx.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +1 -1
- package/jsx/core/Text/Text.stories.d.ts +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +1 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts +1 -1
- package/jsx/core/URL/URL.stories.d.ts +1 -1
- package/jsx/cs/Article/Article.stories.d.ts +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +3 -5
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +1 -1
- package/jsx/cs/DialPad/DialPad.stories.d.ts +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.jsx +6 -8
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts +36 -29
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +2 -2
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +10 -0
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +7 -9
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts +1 -1
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +13 -5
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx +2 -2
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts +1 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +13 -5
- package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +11 -3
- package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx +2 -2
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +1 -1
- package/jsx/tools/DevTools/DevTools.stories.d.ts +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +5 -6
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +59 -39
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +9 -7
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts +1 -1
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +11 -4
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts +2 -7
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx +16 -13
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +1 -1
- package/jsx/work/Predictions/Predictions.stories.d.ts +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +2 -8
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.stories.d.ts +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +3 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +1 -1
- package/jsx/work/Tags/Tags.stories.d.ts +1 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts +1 -1
- package/jsx/work/Tasks/Tasks.mocks.d.ts +22 -0
- package/jsx/work/Tasks/Tasks.mocks.d.ts.map +1 -0
- package/jsx/work/Tasks/Tasks.mocks.js +51 -0
- package/jsx/work/Tasks/Tasks.mocks.js.map +1 -0
- package/jsx/work/Tasks/Tasks.stories.d.ts +6 -4
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +36 -52
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +1 -1
- package/jsx/wss/AppShell/AppShell.stories.d.ts +1 -1
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/wss/CaseView/CaseView.stories.d.ts +1 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +1 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +1 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +5 -3
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.stories.js +8 -9
- package/lib/build/AppShell/AppShell.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +2 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +5 -5
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +2 -6
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
- package/lib/build/PageBanner/PageBanner.stories.d.ts +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +1 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +1 -1
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +1 -1
- package/lib/core/Avatar/Avatar.stories.d.ts +1 -1
- package/lib/core/Backdrop/Backdrop.stories.d.ts +1 -1
- package/lib/core/Badges/Alert.stories.d.ts +1 -1
- package/lib/core/Badges/Count.stories.d.ts +1 -1
- package/lib/core/Badges/Keyboard.stories.d.ts +1 -1
- package/lib/core/Badges/Selection.stories.d.ts +1 -1
- package/lib/core/Badges/Status.stories.d.ts +1 -1
- package/lib/core/Badges/Tag.stories.d.ts +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/lib/core/Button/Button.stories.d.ts +1 -1
- package/lib/core/Card/Card.stories.d.ts +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +1 -1
- package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -1
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts +1 -1
- package/lib/core/Configuration/Configuration.stories.d.ts +1 -1
- package/lib/core/CreditCard/CreditCard.stories.d.ts +1 -1
- package/lib/core/Currency/Currency.stories.d.ts +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +1 -1
- package/lib/core/DateTime/DateTime.stories.js +0 -1
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.d.ts +1 -1
- package/lib/core/Dialog/Dialog.stories.d.ts +2 -1
- package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
- package/lib/core/Dialog/Dialog.stories.js +8 -63
- package/lib/core/Dialog/Dialog.stories.js.map +1 -1
- package/lib/core/Dialog/{Dialog.mocks.d.ts → FormDialog.mocks.d.ts} +2 -1
- package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -0
- package/lib/core/Dialog/{Dialog.mocks.js → FormDialog.mocks.js} +57 -3
- package/lib/core/Dialog/FormDialog.mocks.js.map +1 -0
- package/lib/core/Dialog/InfoDialog.mocks.d.ts +4 -0
- package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -0
- package/lib/core/Dialog/InfoDialog.mocks.js +40 -0
- package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -0
- package/lib/core/Drawer/Drawer.stories.d.ts +1 -1
- package/lib/core/Email/EmailDisplay.stories.d.ts +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.js +6 -5
- package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.d.ts +1 -1
- package/lib/core/ErrorState/ErrorState.stories.d.ts +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +1 -1
- package/lib/core/File/FileDisplay.stories.d.ts +1 -1
- package/lib/core/File/FileInput.stories.d.ts +1 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +1 -1
- package/lib/core/Flex/FlexItem.stories.d.ts +1 -1
- package/lib/core/Form/Form.stories.d.ts +1 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +1 -1
- package/lib/core/Grid/GridItem.stories.d.ts +1 -1
- package/lib/core/HTML/HTML.stories.d.ts +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +1 -1
- package/lib/core/IconPicker/IconPicker.stories.d.ts +1 -1
- package/lib/core/Image/Image.stories.d.ts +1 -1
- package/lib/core/Input/Input.stories.d.ts +1 -1
- package/lib/core/Label/Label.stories.d.ts +1 -1
- package/lib/core/Lightbox/Lightbox.mocks.d.ts.map +1 -1
- package/lib/core/Lightbox/Lightbox.mocks.js +0 -8
- package/lib/core/Lightbox/Lightbox.mocks.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.d.ts +1 -1
- package/lib/core/Link/Link.stories.d.ts +1 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +1 -1
- package/lib/core/List/OrderedList.stories.d.ts +1 -1
- package/lib/core/List/UnorderedList.stories.d.ts +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.js +2 -2
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
- package/lib/core/LiveLog/LiveLog.stories.d.ts +1 -1
- package/lib/core/Location/Location.stories.d.ts +1 -1
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +9 -5
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Menu/Menu.mocks.js.map +1 -1
- package/lib/core/Menu/Menu.stories.d.ts +1 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +1 -1
- package/lib/core/MetaList/MetaList.stories.d.ts +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +1 -1
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js +5 -5
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +1 -1
- package/lib/core/Number/Number.stories.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/Pagination/Pagination.stories.d.ts +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +1 -1
- package/lib/core/Phone/Phone.stories.d.ts +1 -1
- package/lib/core/Popover/Popover.mocks.d.ts +9 -0
- package/lib/core/Popover/Popover.mocks.d.ts.map +1 -0
- package/lib/core/Popover/Popover.mocks.js +105 -0
- package/lib/core/Popover/Popover.mocks.js.map +1 -0
- package/lib/core/Popover/Popover.stories.d.ts +7 -1
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.js +27 -0
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/Progress/Progress.stories.d.ts +1 -1
- package/lib/core/QRCode/QRCode.stories.d.ts +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +1 -1
- package/lib/core/Rating/Rating.stories.d.ts +1 -1
- package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
- package/lib/core/Rating/Rating.stories.js +1 -1
- package/lib/core/Rating/Rating.stories.js.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -1
- package/lib/core/Select/Select.stories.d.ts +1 -1
- package/lib/core/Sentiment/Sentiment.stories.d.ts +1 -1
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts +1 -1
- package/lib/core/Slider/Slider.stories.d.ts +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +1 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +1 -1
- package/lib/core/SummaryList/mockUsers.d.ts.map +1 -1
- package/lib/core/SummaryList/mockUsers.js +2 -0
- package/lib/core/SummaryList/mockUsers.js.map +1 -1
- package/lib/core/Switch/Switch.stories.d.ts +1 -1
- package/lib/core/Table/Table.stories.d.ts +1 -1
- package/lib/core/Table/Table.stories.js.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +1 -1
- package/lib/core/Text/Text.stories.d.ts +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +1 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +1 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +1 -1
- package/lib/core/Tree/Tree.stories.d.ts +1 -1
- package/lib/core/URL/URL.stories.d.ts +1 -1
- package/lib/cs/Article/Article.stories.d.ts +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js +4 -2
- package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js +14 -14
- package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +1 -1
- package/lib/cs/DialPad/DialPad.stories.d.ts +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +2 -2
- package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.js +1 -1
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/mockData.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
- package/lib/rte/Editor/Editor.mocks.d.ts +36 -29
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.d.ts +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +2 -2
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +10 -0
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +1 -1
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +14 -14
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.mocks.js +1 -1
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +1 -1
- package/lib/social/Email/Email.stories.js +1 -2
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Feed/Feed.mocks.d.ts +1 -1
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +1 -1
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +1 -1
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +13 -5
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts +1 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.js +2 -2
- package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedPost.stories.d.ts +1 -1
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.stories.js +13 -5
- package/lib/social/Feed/FeedPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.stories.js +11 -3
- package/lib/social/Feed/FeedReply.stories.js.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +2 -2
- package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -1
- package/lib/tools/Clipboard/Clipboard.mocks.js +0 -1
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -1
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +1 -1
- package/lib/tools/DevTools/DevTools.stories.d.ts +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +5 -6
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +83 -61
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +10 -7
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +1 -1
- package/lib/work/Confirmation/Confirmation.stories.d.ts +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts +1 -1
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +7 -2
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts +2 -7
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.js +12 -14
- package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +1 -1
- package/lib/work/Predictions/Predictions.stories.d.ts +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js +2 -8
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.stories.d.ts +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js +3 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +1 -1
- package/lib/work/Tags/Tags.stories.d.ts +1 -1
- package/lib/work/Tasks/TaskList.stories.d.ts +1 -1
- package/lib/work/Tasks/Tasks.mocks.d.ts +22 -0
- package/lib/work/Tasks/Tasks.mocks.d.ts.map +1 -0
- package/lib/work/Tasks/Tasks.mocks.js +51 -0
- package/lib/work/Tasks/Tasks.mocks.js.map +1 -0
- package/lib/work/Tasks/Tasks.stories.d.ts +6 -4
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +36 -53
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +1 -1
- package/lib/wss/AppShell/AppShell.stories.d.ts +1 -1
- package/lib/wss/AppShell/AppShell.stories.js +0 -1
- package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
- package/lib/wss/CaseView/CaseView.stories.d.ts +1 -1
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +1 -1
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +1 -1
- package/package.json +20 -18
- package/jsx/core/Dialog/Dialog.mocks.d.ts.map +0 -1
- package/jsx/core/Dialog/Dialog.mocks.jsx.map +0 -1
- package/lib/core/Dialog/Dialog.mocks.d.ts.map +0 -1
- package/lib/core/Dialog/Dialog.mocks.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import { DragDropListProps } from '@pega/cosmos-react-dnd';
|
|
3
|
-
declare const _default: Meta
|
|
3
|
+
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
interface DragDropListDemoProps {
|
|
6
6
|
pullMode?: DragDropListProps['pullMode'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Demo.d.ts","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/Demo.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,WAAW,EAKZ,MAAM,YAAY,CAAC;AAIpB,UAAU,6BAA6B;IACrC,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;oCAE0B,6BAA6B,KAAG,WAAW;AAAtE,
|
|
1
|
+
{"version":3,"file":"Demo.d.ts","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/Demo.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,WAAW,EAKZ,MAAM,YAAY,CAAC;AAIpB,UAAU,6BAA6B;IACrC,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;oCAE0B,6BAA6B,KAAG,WAAW;AAAtE,wBAkOE"}
|
|
@@ -127,7 +127,7 @@ export default ({ items }) => {
|
|
|
127
127
|
const itemsToRender = useMemo(() => {
|
|
128
128
|
return createListItems(mockRawItems, onAddToGroup);
|
|
129
129
|
}, [mockRawItems, onAddToGroup, createListItems]);
|
|
130
|
-
return (_jsxs(_Fragment, { children: [_jsx(DragDropManager, { children: useMemo(() => (_jsx(StandardDragDropList, { accept: [...contentTypes, 'Field', 'View', 'Group'], heading: 'Mock view', items: itemsToRender, onChange: onChange, footer: _jsx(
|
|
130
|
+
return (_jsxs(_Fragment, { children: [_jsx(DragDropManager, { children: useMemo(() => (_jsx(StandardDragDropList, { accept: [...contentTypes, 'Field', 'View', 'Group'], heading: 'Mock view', items: itemsToRender, onChange: onChange, footer: _jsx(Button, { onClick: showSelectionMenu, variant: 'link', children: _jsxs(Flex, { container: { inline: true, alignItems: 'center', gap: 1 }, children: [_jsx(Icon, { name: 'plus' }), _jsx("span", { children: "Add" })] }) }) })), [itemsToRender, showSelectionMenu, onChange]) }), configTarget && configItemId && (_jsx(ItemConfig, { itemId: configItemId, target: configTarget, onCancel: () => {
|
|
131
131
|
setConfigTarget(null);
|
|
132
132
|
setConfigItemId(null);
|
|
133
133
|
setErrors(currentErrors => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Demo.js","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/Demo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnE,OAAO,EACL,oBAAoB,EAGpB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,EACL,YAAY,EAEZ,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACV,MAAM,YAAY,CAAC;AACpB,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,aAAqC,MAAM,iBAAiB,CAAC;AAMpE,eAAe,CAAC,EAAE,KAAK,EAAiC,EAAe,EAAE;IACvE,qHAAqH;IACrH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAgB,KAAK,CAAC,CAAC;IAEvE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAA2B,IAAI,CAAC,CAAC;IAEjF,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAEzD,MAAM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U,IACT,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,GAAG,EAAE;oBACb,eAAe,CAAC,IAAI,CAAC,CAAC;oBACtB,eAAe,CAAC,IAAI,CAAC,CAAC;oBACtB,SAAS,CAAC,aAAa,CAAC,EAAE;wBACxB,MAAM,gBAAgB,GAAG,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,YAAY,CAAC,CAAC;wBAEpF,OAAO,gBAAgB;4BACrB,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,YAAY,CAAC;4BAC7D,CAAC,CAAC;gCACE,GAAG,aAAa;gCAChB,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,2BAA2B,EAAE;6BAClE,CAAC;oBACR,CAAC,CAAC,CAAC;gBACL,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE;oBACb,eAAe,CAAC,IAAI,CAAC,CAAC;oBACtB,eAAe,CAAC,IAAI,CAAC,CAAC;gBACxB,CAAC,GACD,CACH,EACA,mBAAmB,IAAI,CACtB,KAAC,aAAa,IACZ,MAAM,EAAE,mBAAmB,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,EAAE,GAAG,EAAE;oBACb,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAC7B,cAAc,CAAC,IAAI,CAAC,CAAC;oBACrB,sBAAsB,CAAC,SAAS,CAAC,CAAC;gBACpC,CAAC,EACD,QAAQ,EAAE,YAAY,GACtB,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { MouseEvent, useCallback, useMemo, useState } from 'react';\n\nimport {\n StandardDragDropList,\n type StandardDragDropListItemProps,\n StandardDragDropListProps,\n DragDropManager\n} from '@pega/cosmos-react-dnd';\nimport { Button, Flex, Icon, useElement } from '@pega/cosmos-react-core';\nimport { MultiSelectInputProps } from '@pega/cosmos-react-core/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types';\n\nimport {\n contentTypes,\n MockRawItem,\n mockQuery,\n mockFields,\n mockGroups,\n mockViews\n} from './mockData';\nimport ItemConfig from './ItemConfig';\nimport SelectionMenu, { SelectionMenuProps } from './SelectionMenu';\n\ninterface StandardDragDropListDemoProps {\n items: MockRawItem[];\n}\n\nexport default ({ items }: StandardDragDropListDemoProps): JSX.Element => {\n // The state of the list's content is maintained here and the raw item objects are transformed below prior to render.\n const [mockRawItems, setMockRawItems] = useState<MockRawItem[]>(items);\n\n const [configItemId, setConfigItemId] = useState<MockRawItem['id'] | null>(null);\n\n const [configTarget, setConfigTarget] = useElement(null);\n\n const [selectionMenuTarget, setSelectionMenuTarget] = useElement(null);\n\n const [selectionConstraint, setSelectionConstraint] =\n useState<SelectionMenuProps['constraint']>();\n\n const [addToItemId, setAddToItemId] = useState<MockRawItem['id'] | null>(null);\n\n const [errors, setErrors] = useState<{ rawItemId: MockRawItem['id']; message: string }[]>([]);\n\n const onAddContent = useCallback(\n async (selected: NonNullable<MultiSelectInputProps['selected']>) => {\n setSelectionMenuTarget(null);\n setSelectionConstraint(undefined);\n\n if (selected.length === 0) return;\n\n const addedItems = await mockQuery({ id: selected.map(({ id }) => id) });\n\n setMockRawItems(cur => {\n if (addToItemId) {\n return cur.map(item => {\n if (item.id === addToItemId && item.items) {\n return {\n ...item,\n items: [\n ...item.items,\n ...addedItems.map(nestedItem => ({\n ...nestedItem,\n id: `${addToItemId}:${nestedItem.id}`\n }))\n ]\n };\n }\n return item;\n });\n }\n\n return [...cur, ...addedItems.filter(newItem => !cur.find(({ id }) => id === newItem.id))];\n });\n },\n [addToItemId, setSelectionMenuTarget]\n );\n\n const onItemConfigure = useCallback(\n (id: StandardDragDropListItemProps['id'], e: MouseEvent<HTMLButtonElement>) => {\n setConfigTarget(e.currentTarget);\n setConfigItemId(id);\n },\n [setConfigTarget]\n );\n\n const onItemRemove = useCallback((id: StandardDragDropListItemProps['id']) => {\n setMockRawItems(cur =>\n cur.filter(rawItem => {\n if (rawItem.id === id) return false;\n // See if it's there before setting a new array instance.\n if (rawItem.items && rawItem.items.find(ri => ri.id === id)) {\n rawItem.items = rawItem.items.filter(ri => ri.id !== id);\n }\n return true;\n })\n );\n }, []);\n\n const onAddToGroup = useCallback(\n (groupId: StandardDragDropListItemProps['id'], e: MouseEvent<Element>) => {\n setAddToItemId(groupId);\n setSelectionMenuTarget(e.currentTarget);\n setSelectionConstraint({ types: ['Field'] });\n },\n [setSelectionMenuTarget]\n );\n\n const showSelectionMenu = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => {\n setSelectionMenuTarget(e.currentTarget);\n },\n [setSelectionMenuTarget]\n );\n\n const onChange: StandardDragDropListProps['onChange'] = useCallback(updatedItems => {\n setMockRawItems(cur => {\n const findRawItem = (id: string) => {\n for (let i = 0; i < cur.length; i += 1) {\n if (cur[i].id === id) return cur[i];\n\n if (cur[i].items) {\n const subItem = cur[i].items!.find(s => s.id === id);\n if (subItem) return subItem;\n }\n }\n\n return [...mockFields, ...mockViews, ...mockGroups].find(rawItem => rawItem.id === id)!;\n };\n\n return updatedItems.map(item => {\n const rawItem = findRawItem(item.id);\n\n if (item.items) {\n const rawSubItems = item.items.map(subItem => {\n return findRawItem(subItem.id);\n });\n\n return { ...rawItem, items: rawSubItems };\n }\n\n return rawItem;\n });\n });\n }, []);\n\n const createListItems = useCallback(\n (mci: MockRawItem[], onATG: typeof onAddToGroup): StandardDragDropListProps['items'] => {\n return mci.map(rawItem => {\n const itemError = errors?.find(error => error.rawItemId === rawItem.id);\n\n const primary =\n rawItem.type === 'View'\n ? {\n text: rawItem.label,\n href: '/some-url',\n onClick: (e: MouseEvent) => {\n e.preventDefault();\n // Navigate or present a dialog/panel for clicked item...\n }\n }\n : rawItem.label;\n\n const baseItem: StandardDragDropListItemProps = {\n // type property is being spread in via the mock content item.\n ...rawItem,\n primary,\n secondary: rawItem.subType ?? rawItem.type,\n status: itemError ? { type: 'error', message: itemError.message } : undefined,\n onConfigure: onItemConfigure,\n onRemove: onItemRemove,\n items: undefined\n };\n\n return rawItem.type === 'Group'\n ? {\n ...baseItem,\n items: rawItem.items ? createListItems(rawItem.items, onATG) : [],\n accept: 'Field',\n onAddTo: onATG\n }\n : baseItem;\n });\n },\n [errors, onItemConfigure, onItemRemove]\n );\n\n // Here we transform MockRawItems -> StandardDragDropListProps['items']\n const itemsToRender: StandardDragDropListProps['items'] = useMemo(() => {\n return createListItems(mockRawItems, onAddToGroup);\n }, [mockRawItems, onAddToGroup, createListItems]);\n\n return (\n <>\n <DragDropManager>\n {useMemo(\n () => (\n <StandardDragDropList\n accept={[...contentTypes, 'Field', 'View', 'Group']}\n heading='Mock view'\n items={itemsToRender}\n onChange={onChange}\n footer={\n <>\n <Button onClick={showSelectionMenu} variant='link'>\n <Flex container={{ inline: true, alignItems: 'center', gap: 1 }}>\n <Icon name='plus' />\n <span>Add</span>\n </Flex>\n </Button>\n </>\n }\n />\n ),\n [itemsToRender, showSelectionMenu, onChange]\n )}\n </DragDropManager>\n {configTarget && configItemId && (\n <ItemConfig\n itemId={configItemId}\n target={configTarget}\n onCancel={() => {\n setConfigTarget(null);\n setConfigItemId(null);\n setErrors(currentErrors => {\n const currentItemError = currentErrors?.find(err => err.rawItemId === configItemId);\n\n return currentItemError\n ? currentErrors.filter(err => err.rawItemId !== configItemId)\n : [\n ...currentErrors,\n { rawItemId: configItemId, message: 'Misconfiguration detected' }\n ];\n });\n }}\n onSubmit={() => {\n setConfigTarget(null);\n setConfigItemId(null);\n }}\n />\n )}\n {selectionMenuTarget && (\n <SelectionMenu\n target={selectionMenuTarget}\n constraint={selectionConstraint}\n onCancel={() => {\n setSelectionMenuTarget(null);\n setAddToItemId(null);\n setSelectionConstraint(undefined);\n }}\n onSubmit={onAddContent}\n />\n )}\n </>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Demo.js","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/Dem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AE,OAAO,EAAE,2BAA2B,EAAE;6BAClE,CAAC;oBACR,CAAC,CAAC,CAAC;gBACL,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE;oBACb,eAAe,CAAC,IAAI,CAAC,CAAC;oBACtB,eAAe,CAAC,IAAI,CAAC,CAAC;gBACxB,CAAC,GACD,CACH,EACA,mBAAmB,IAAI,CACtB,KAAC,aAAa,IACZ,MAAM,EAAE,mBAAmB,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,EAAE,GAAG,EAAE;oBACb,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAC7B,cAAc,CAAC,IAAI,CAAC,CAAC;oBACrB,sBAAsB,CAAC,SAAS,CAAC,CAAC;gBACpC,CAAC,EACD,QAAQ,EAAE,YAAY,GACtB,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { MouseEvent, useCallback, useMemo, useState } from 'react';\n\nimport {\n StandardDragDropList,\n type StandardDragDropListItemProps,\n StandardDragDropListProps,\n DragDropManager\n} from '@pega/cosmos-react-dnd';\nimport { Button, Flex, Icon, useElement } from '@pega/cosmos-react-core';\nimport { MultiSelectInputProps } from '@pega/cosmos-react-core/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types';\n\nimport {\n contentTypes,\n MockRawItem,\n mockQuery,\n mockFields,\n mockGroups,\n mockViews\n} from './mockData';\nimport ItemConfig from './ItemConfig';\nimport SelectionMenu, { SelectionMenuProps } from './SelectionMenu';\n\ninterface StandardDragDropListDemoProps {\n items: MockRawItem[];\n}\n\nexport default ({ items }: StandardDragDropListDemoProps): JSX.Element => {\n // The state of the list's content is maintained here and the raw item objects are transformed below prior to render.\n const [mockRawItems, setMockRawItems] = useState<MockRawItem[]>(items);\n\n const [configItemId, setConfigItemId] = useState<MockRawItem['id'] | null>(null);\n\n const [configTarget, setConfigTarget] = useElement(null);\n\n const [selectionMenuTarget, setSelectionMenuTarget] = useElement(null);\n\n const [selectionConstraint, setSelectionConstraint] =\n useState<SelectionMenuProps['constraint']>();\n\n const [addToItemId, setAddToItemId] = useState<MockRawItem['id'] | null>(null);\n\n const [errors, setErrors] = useState<{ rawItemId: MockRawItem['id']; message: string }[]>([]);\n\n const onAddContent = useCallback(\n async (selected: NonNullable<MultiSelectInputProps['selected']>) => {\n setSelectionMenuTarget(null);\n setSelectionConstraint(undefined);\n\n if (selected.length === 0) return;\n\n const addedItems = await mockQuery({ id: selected.map(({ id }) => id) });\n\n setMockRawItems(cur => {\n if (addToItemId) {\n return cur.map(item => {\n if (item.id === addToItemId && item.items) {\n return {\n ...item,\n items: [\n ...item.items,\n ...addedItems.map(nestedItem => ({\n ...nestedItem,\n id: `${addToItemId}:${nestedItem.id}`\n }))\n ]\n };\n }\n return item;\n });\n }\n\n return [...cur, ...addedItems.filter(newItem => !cur.find(({ id }) => id === newItem.id))];\n });\n },\n [addToItemId, setSelectionMenuTarget]\n );\n\n const onItemConfigure = useCallback(\n (id: StandardDragDropListItemProps['id'], e: MouseEvent<HTMLButtonElement>) => {\n setConfigTarget(e.currentTarget);\n setConfigItemId(id);\n },\n [setConfigTarget]\n );\n\n const onItemRemove = useCallback((id: StandardDragDropListItemProps['id']) => {\n setMockRawItems(cur =>\n cur.filter(rawItem => {\n if (rawItem.id === id) return false;\n // See if it's there before setting a new array instance.\n if (rawItem.items && rawItem.items.find(ri => ri.id === id)) {\n rawItem.items = rawItem.items.filter(ri => ri.id !== id);\n }\n return true;\n })\n );\n }, []);\n\n const onAddToGroup = useCallback(\n (groupId: StandardDragDropListItemProps['id'], e: MouseEvent<Element>) => {\n setAddToItemId(groupId);\n setSelectionMenuTarget(e.currentTarget);\n setSelectionConstraint({ types: ['Field'] });\n },\n [setSelectionMenuTarget]\n );\n\n const showSelectionMenu = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => {\n setSelectionMenuTarget(e.currentTarget);\n },\n [setSelectionMenuTarget]\n );\n\n const onChange: StandardDragDropListProps['onChange'] = useCallback(updatedItems => {\n setMockRawItems(cur => {\n const findRawItem = (id: string) => {\n for (let i = 0; i < cur.length; i += 1) {\n if (cur[i].id === id) return cur[i];\n\n if (cur[i].items) {\n const subItem = cur[i].items!.find(s => s.id === id);\n if (subItem) return subItem;\n }\n }\n\n return [...mockFields, ...mockViews, ...mockGroups].find(rawItem => rawItem.id === id)!;\n };\n\n return updatedItems.map(item => {\n const rawItem = findRawItem(item.id);\n\n if (item.items) {\n const rawSubItems = item.items.map(subItem => {\n return findRawItem(subItem.id);\n });\n\n return { ...rawItem, items: rawSubItems };\n }\n\n return rawItem;\n });\n });\n }, []);\n\n const createListItems = useCallback(\n (mci: MockRawItem[], onATG: typeof onAddToGroup): StandardDragDropListProps['items'] => {\n return mci.map(rawItem => {\n const itemError = errors?.find(error => error.rawItemId === rawItem.id);\n\n const primary =\n rawItem.type === 'View'\n ? {\n text: rawItem.label,\n href: '/some-url',\n onClick: (e: MouseEvent) => {\n e.preventDefault();\n // Navigate or present a dialog/panel for clicked item...\n }\n }\n : rawItem.label;\n\n const baseItem: StandardDragDropListItemProps = {\n // type property is being spread in via the mock content item.\n ...rawItem,\n primary,\n secondary: rawItem.subType ?? rawItem.type,\n status: itemError ? { type: 'error', message: itemError.message } : undefined,\n onConfigure: onItemConfigure,\n onRemove: onItemRemove,\n items: undefined\n };\n\n return rawItem.type === 'Group'\n ? {\n ...baseItem,\n items: rawItem.items ? createListItems(rawItem.items, onATG) : [],\n accept: 'Field',\n onAddTo: onATG\n }\n : baseItem;\n });\n },\n [errors, onItemConfigure, onItemRemove]\n );\n\n // Here we transform MockRawItems -> StandardDragDropListProps['items']\n const itemsToRender: StandardDragDropListProps['items'] = useMemo(() => {\n return createListItems(mockRawItems, onAddToGroup);\n }, [mockRawItems, onAddToGroup, createListItems]);\n\n return (\n <>\n <DragDropManager>\n {useMemo(\n () => (\n <StandardDragDropList\n accept={[...contentTypes, 'Field', 'View', 'Group']}\n heading='Mock view'\n items={itemsToRender}\n onChange={onChange}\n footer={\n <Button onClick={showSelectionMenu} variant='link'>\n <Flex container={{ inline: true, alignItems: 'center', gap: 1 }}>\n <Icon name='plus' />\n <span>Add</span>\n </Flex>\n </Button>\n }\n />\n ),\n [itemsToRender, showSelectionMenu, onChange]\n )}\n </DragDropManager>\n {configTarget && configItemId && (\n <ItemConfig\n itemId={configItemId}\n target={configTarget}\n onCancel={() => {\n setConfigTarget(null);\n setConfigItemId(null);\n setErrors(currentErrors => {\n const currentItemError = currentErrors?.find(err => err.rawItemId === configItemId);\n\n return currentItemError\n ? currentErrors.filter(err => err.rawItemId !== configItemId)\n : [\n ...currentErrors,\n { rawItemId: configItemId, message: 'Misconfiguration detected' }\n ];\n });\n }}\n onSubmit={() => {\n setConfigTarget(null);\n setConfigItemId(null);\n }}\n />\n )}\n {selectionMenuTarget && (\n <SelectionMenu\n target={selectionMenuTarget}\n constraint={selectionConstraint}\n onCancel={() => {\n setSelectionMenuTarget(null);\n setAddToItemId(null);\n setSelectionConstraint(undefined);\n }}\n onSubmit={onAddContent}\n />\n )}\n </>\n );\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
declare const _default: Meta
|
|
2
|
+
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const StandardDragDropListDemo: Story;
|
|
5
5
|
//# sourceMappingURL=StandardDragDropList.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/mockData.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACrD,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/mockData.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG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,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;iBACrF;qBAAM,IAAI,IAAI,KAAK,MAAM,EAAE;oBAC1B,YAAY,GAAG,SAAS,CAAC;iBAC1B;qBAAM,IAAI,IAAI,KAAK,OAAO,EAAE;oBAC3B,YAAY,GAAG,UAAU,CAAC;iBAC3B;aACF;iBAAM;gBACL,YAAY,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC;aAC7D;YAED,IAAI,MAAM,EAAE;gBACV,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;aACzE;YAED,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAC7C,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["import { createUID } from '@pega/cosmos-react-core';\n\nexport type ContentType = 'Field' | 'View' | 'Group';\nexport type FieldType = typeof fieldTypes[number];\n\n// A simple mock of an object type before it is transformed to a ContentItem\nexport interface MockRawItem {\n id: string;\n label: string;\n type: ContentType;\n subType?: FieldType;\n items?: MockRawItem[];\n}\n\n// Used as the arg type to the simulated query function.\nexport interface MockQueryParams {\n id?: MockRawItem['id'] | MockRawItem['id'][];\n filter?: string;\n type?: ContentType;\n subType?: FieldType;\n limit?: number;\n offset?: number;\n delay?: number;\n}\n\nconst getRandomInt = (min: number, max: number) => {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\n\nconst fieldTypes = [\n 'Text (single line)',\n 'Text (paragraph)',\n 'Integer',\n 'Decimal',\n 'Currency',\n 'Boolean',\n 'Date & time',\n 'Date only',\n 'Time only',\n 'Email',\n 'Phone',\n 'URL',\n 'Picklist'\n] as const;\n\nexport const contentTypes = [...fieldTypes, 'View', 'Group'] as const;\n\nexport const mockFields: MockRawItem[] = Array.from({ length: 500 }, (_, i) => {\n return {\n id: createUID(),\n label: `Field-${i + 1}`,\n type: 'Field',\n subType: fieldTypes[getRandomInt(0, fieldTypes.length - 1)]\n };\n});\n\nexport const mockViews: MockRawItem[] = Array.from({ length: 50 }, (_, i) => {\n return {\n id: createUID(),\n label: `View-${i + 1}`,\n type: 'View'\n };\n});\n\nexport const mockGroups: MockRawItem[] = Array.from({ length: 3 }, (_, i) => {\n return {\n id: createUID(),\n label: `Group-${i + 1}`,\n type: 'Group',\n items: i === 0 ? mockFields.slice(-3) : mockFields.slice((i + 1) * -3, i * -3)\n };\n});\n\n// Simulated query functionality to assist with loading states and fetching specifc content item types.\nexport const mockQuery = ({\n id,\n filter,\n type,\n subType,\n limit = 100,\n offset = 0,\n delay = 0\n}: MockQueryParams = {}): Promise<MockRawItem[]> => {\n return new Promise(resolve => {\n setTimeout(() => {\n let contentItems: MockRawItem[] = [];\n\n if (id) {\n resolve(\n [...mockFields, ...mockViews, ...mockGroups].filter(item => {\n return Array.isArray(id) ? id.includes(item.id) : item.id === id;\n })\n );\n return;\n }\n\n if (type) {\n if (type === 'Field') {\n contentItems = subType ? mockFields.filter(f => f.subType === subType) : mockFields;\n } else if (type === 'View') {\n contentItems = mockViews;\n } else if (type === 'Group') {\n contentItems = mockGroups;\n }\n } else {\n contentItems = [...mockFields, ...mockViews, ...mockGroups];\n }\n\n if (filter) {\n contentItems = contentItems.filter(item => item.label.includes(filter));\n }\n\n resolve(contentItems.slice(offset, limit));\n }, delay);\n });\n};\n"]}
|
|
1
|
+
{"version":3,"file":"mockData.js","sourceRoot":"","sources":["../../../src/dnd/StandardDragDropList/mockData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAyBpD,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,G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AAY,GAAG,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;iBACrF;qBAAM,IAAI,IAAI,KAAK,MAAM,EAAE;oBAC1B,YAAY,GAAG,SAAS,CAAC;iBAC1B;qBAAM,IAAI,IAAI,KAAK,OAAO,EAAE;oBAC3B,YAAY,GAAG,UAAU,CAAC;iBAC3B;aACF;iBAAM;gBACL,YAAY,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC;aAC7D;YAED,IAAI,MAAM,EAAE;gBACV,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;aACzE;YAED,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAC7C,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["import { createUID } from '@pega/cosmos-react-core';\n\nexport type ContentType = 'Field' | 'View' | 'Group';\nexport type FieldType = (typeof fieldTypes)[number];\n\n// A simple mock of an object type before it is transformed to a ContentItem\nexport interface MockRawItem {\n id: string;\n label: string;\n type: ContentType;\n subType?: FieldType;\n items?: MockRawItem[];\n}\n\n// Used as the arg type to the simulated query function.\nexport interface MockQueryParams {\n id?: MockRawItem['id'] | MockRawItem['id'][];\n filter?: string;\n type?: ContentType;\n subType?: FieldType;\n limit?: number;\n offset?: number;\n delay?: number;\n}\n\nconst getRandomInt = (min: number, max: number) => {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\n\nconst fieldTypes = [\n 'Text (single line)',\n 'Text (paragraph)',\n 'Integer',\n 'Decimal',\n 'Currency',\n 'Boolean',\n 'Date & time',\n 'Date only',\n 'Time only',\n 'Email',\n 'Phone',\n 'URL',\n 'Picklist'\n] as const;\n\nexport const contentTypes = [...fieldTypes, 'View', 'Group'] as const;\n\nexport const mockFields: MockRawItem[] = Array.from({ length: 500 }, (_, i) => {\n return {\n id: createUID(),\n label: `Field-${i + 1}`,\n type: 'Field',\n subType: fieldTypes[getRandomInt(0, fieldTypes.length - 1)]\n };\n});\n\nexport const mockViews: MockRawItem[] = Array.from({ length: 50 }, (_, i) => {\n return {\n id: createUID(),\n label: `View-${i + 1}`,\n type: 'View'\n };\n});\n\nexport const mockGroups: MockRawItem[] = Array.from({ length: 3 }, (_, i) => {\n return {\n id: createUID(),\n label: `Group-${i + 1}`,\n type: 'Group',\n items: i === 0 ? mockFields.slice(-3) : mockFields.slice((i + 1) * -3, i * -3)\n };\n});\n\n// Simulated query functionality to assist with loading states and fetching specifc content item types.\nexport const mockQuery = ({\n id,\n filter,\n type,\n subType,\n limit = 100,\n offset = 0,\n delay = 0\n}: MockQueryParams = {}): Promise<MockRawItem[]> => {\n return new Promise(resolve => {\n setTimeout(() => {\n let contentItems: MockRawItem[] = [];\n\n if (id) {\n resolve(\n [...mockFields, ...mockViews, ...mockGroups].filter(item => {\n return Array.isArray(id) ? id.includes(item.id) : item.id === id;\n })\n );\n return;\n }\n\n if (type) {\n if (type === 'Field') {\n contentItems = subType ? mockFields.filter(f => f.subType === subType) : mockFields;\n } else if (type === 'View') {\n contentItems = mockViews;\n } else if (type === 'Group') {\n contentItems = mockGroups;\n }\n } else {\n contentItems = [...mockFields, ...mockViews, ...mockGroups];\n }\n\n if (filter) {\n contentItems = contentItems.filter(item => item.label.includes(filter));\n }\n\n resolve(contentItems.slice(offset, limit));\n }, delay);\n });\n};\n"]}
|
|
@@ -51,8 +51,10 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
51
51
|
slot: string;
|
|
52
52
|
readonly tagName: string;
|
|
53
53
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
54
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
54
55
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
55
56
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
57
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
56
58
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
57
59
|
getAttribute(qualifiedName: string): string | null;
|
|
58
60
|
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
@@ -62,11 +64,14 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
62
64
|
getBoundingClientRect(): DOMRect;
|
|
63
65
|
getClientRects(): DOMRectList;
|
|
64
66
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
65
|
-
getElementsByTagName<
|
|
66
|
-
getElementsByTagName<
|
|
67
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
68
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
69
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
70
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
67
71
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
68
72
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
69
73
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
74
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
70
75
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
71
76
|
hasAttribute(qualifiedName: string): boolean;
|
|
72
77
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
@@ -124,24 +129,24 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
124
129
|
normalize(): void;
|
|
125
130
|
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
126
131
|
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
132
|
+
readonly ELEMENT_NODE: 1;
|
|
133
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
134
|
+
readonly TEXT_NODE: 3;
|
|
135
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
136
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
137
|
+
readonly ENTITY_NODE: 6;
|
|
138
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
139
|
+
readonly COMMENT_NODE: 8;
|
|
140
|
+
readonly DOCUMENT_NODE: 9;
|
|
141
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
142
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
143
|
+
readonly NOTATION_NODE: 12;
|
|
144
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
145
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
146
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
147
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
148
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
149
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
145
150
|
dispatchEvent(event: Event): boolean;
|
|
146
151
|
ariaAtomic: string | null;
|
|
147
152
|
ariaAutoComplete: string | null;
|
|
@@ -149,7 +154,6 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
149
154
|
ariaChecked: string | null;
|
|
150
155
|
ariaColCount: string | null;
|
|
151
156
|
ariaColIndex: string | null;
|
|
152
|
-
ariaColIndexText: string | null;
|
|
153
157
|
ariaColSpan: string | null;
|
|
154
158
|
ariaCurrent: string | null;
|
|
155
159
|
ariaDisabled: string | null;
|
|
@@ -173,7 +177,6 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
173
177
|
ariaRoleDescription: string | null;
|
|
174
178
|
ariaRowCount: string | null;
|
|
175
179
|
ariaRowIndex: string | null;
|
|
176
|
-
ariaRowIndexText: string | null;
|
|
177
180
|
ariaRowSpan: string | null;
|
|
178
181
|
ariaSelected: string | null;
|
|
179
182
|
ariaSetSize: string | null;
|
|
@@ -198,17 +201,18 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
198
201
|
readonly lastElementChild: Element | null;
|
|
199
202
|
append(...nodes: (string | Node)[]): void;
|
|
200
203
|
prepend(...nodes: (string | Node)[]): void;
|
|
201
|
-
querySelector<
|
|
202
|
-
querySelector<
|
|
204
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
205
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
206
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
207
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
203
208
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
204
|
-
querySelectorAll<
|
|
205
|
-
querySelectorAll<
|
|
209
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
210
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
211
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
212
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
206
213
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
207
214
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
208
215
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
209
|
-
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
210
|
-
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
211
|
-
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
212
216
|
readonly style: CSSStyleDeclaration;
|
|
213
217
|
contentEditable: string;
|
|
214
218
|
enterKeyHint: string;
|
|
@@ -229,7 +233,9 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
229
233
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
230
234
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
231
235
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
236
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
232
237
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
238
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
233
239
|
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
234
240
|
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
235
241
|
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
@@ -262,6 +268,7 @@ export declare const createPegaCustomElement: (win: typeof globalThis) => {
|
|
|
262
268
|
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
263
269
|
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
264
270
|
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
271
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
265
272
|
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
273
|
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
274
|
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.mocks.d.ts","sourceRoot":"","sources":["../../../src/rte/Editor/Editor.mocks.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,qBAAqB,CAAC;AAYxC,eAAO,MAAM,uBAAuB,QAAS,iBAAiB
|
|
1
|
+
{"version":3,"file":"Editor.mocks.d.ts","sourceRoot":"","sources":["../../../src/rte/Editor/Editor.mocks.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,qBAAqB,CAAC;AAYxC,eAAO,MAAM,uBAAuB,QAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB7D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import { RichTextEditorProps } from '@pega/cosmos-react-rte';
|
|
3
|
-
declare const _default: Meta
|
|
3
|
+
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const RichTextEditorMDDemo: Story<RichTextEditorProps>;
|
|
6
6
|
//# sourceMappingURL=RichTextEditor.stories.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
declare const _default: Meta
|
|
2
|
+
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const RichTextViewerDemo: Story;
|
|
5
5
|
export declare const RichTextViewerHTMLDemo: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValueListProps, MenuProps } from '@pega/cosmos-react-core';
|
|
2
2
|
import { ChatBodyProps } from '@pega/cosmos-react-social';
|
|
3
3
|
export declare const BotConversation: ChatBodyProps['liveChat'];
|
|
4
4
|
export declare const ClaimsAgentConversation: ChatBodyProps['liveChat'];
|
|
@@ -62,5 +62,5 @@ export declare const pagePushList: ({
|
|
|
62
62
|
title: string;
|
|
63
63
|
}[];
|
|
64
64
|
})[];
|
|
65
|
-
export declare const contextItems:
|
|
65
|
+
export declare const contextItems: FieldValueListProps['fields'];
|
|
66
66
|
//# sourceMappingURL=Chat.mocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,
|
|
1
|
+
{"version":3,"file":"Chat.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,mBAAmB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,UAAU,CAwGrD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,UAAU,CAqG7D,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,UAAU,CAqG1D,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,UAAU,CA2N3D,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;CAqCxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,SAAS,CAAC,OAAO,CAyDlD,CAAC;AAEF,eAAO,MAAM,eAAe;;;GAqC3B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4DxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,mBAAmB,CAAC,QAAQ,CAyBtD,CAAC"}
|
|
@@ -546,6 +546,16 @@ export const ChatMockData = {
|
|
|
546
546
|
id: createUID(),
|
|
547
547
|
message: 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',
|
|
548
548
|
confidence: 75
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
id: 'suggested_reply_3',
|
|
552
|
+
message: 'Hello! How can I assist you today?',
|
|
553
|
+
confidence: 40
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
id: 'suggested_reply_4',
|
|
557
|
+
message: 'Thanks for contacting our support team',
|
|
558
|
+
confidence: 20
|
|
549
559
|
}
|
|
550
560
|
]
|
|
551
561
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.mocks.js","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsC,MAAM,yBAAyB,CAAC;AAGxF,MAAM,CAAC,MAAM,eAAe,GAA8B;IACxD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,6CAA6C;QACtD,SAAS,EAAE,SAAS;KACrB;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,UAAU;QACtB,SAAS,EAAE,IAAI;QACf,UAAU,EAAE;YACV,IAAI,EAAE,gBAAgB;SACvB;QACD,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,qDAAqD;KAC/D;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,wBAAwB;KAClC;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,mBAAmB;KAC7B;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,MA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,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,QAAQ;KAClB;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE,QAAQ;KAClB;IACD;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,QAAQ;KAClB;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,kCAAkC;QACzC,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC","sourcesContent":["import { createUID, FieldValueListItemProps, MenuProps } from '@pega/cosmos-react-core';\nimport { ChatBodyProps } from '@pega/cosmos-react-social';\n\nexport const BotConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: 'Hi, Welcome to u-plus. How can I help you ?',\n timestamp: '1:44 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:45 PM',\n senderId: 'gingerVentura',\n message: 'Hi, I would like to know the validity of my policy.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: 'You have two policies.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: '1457589, 1473284.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: 'Which among these policies do you want to know the validity of?',\n timestamp: '1:45 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:47 PM',\n senderId: 'gingerVentura',\n message: 'Please give me validity of policy with number 1457589.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n timestamp: '1:48 PM',\n message: 'Policy with number 1457589 is expiring on 12th December, 2023.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n timestamp: '1:49 PM',\n message: 'Is there anything else that you need help with?'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:51 PM',\n senderId: 'gingerVentura',\n message: 'Yes, I would like to know about the claims process.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n timestamp: '1:52 PM',\n message: 'Sure, I am transferring this chat to the concerned department.'\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:52 PM',\n message: 'Chat routed to a live agent.'\n }\n];\n\nexport const ClaimsAgentConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:54 PM',\n message: 'John Brown joined this conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'John Brown'\n },\n senderId: 'agent1',\n message: 'Hi Ginger Ventura, I see that you want to know about the claims process.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'John Brown'\n },\n senderId: 'agent1',\n message: 'Please go to link to get detailed information about claims process.',\n timestamp: '1:55 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'UPlus - Claims process'\n }\n ]\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:56 PM',\n message: 'Vernon Lee joined this conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message:\n 'Hi Ginger Ventura, I am the supervisor. You may also contact the nearest branch for a physical copy of the claims process.',\n timestamp: '1:57 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:57 PM',\n senderId: 'gingerVentura',\n message:\n 'Thanks for the information. I would also like to update the mobile number of my policy.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'John Brown'\n },\n senderId: 'agent1',\n message: 'Sure, I need to transfer you to a specialist to get you the needed help.',\n timestamp: '1:58 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:58 PM',\n senderId: 'gingerVentura',\n message: 'Okay.'\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:59 PM',\n message: 'Transfer request initiated'\n }\n];\nexport const LiveChatConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'system',\n timestamp: '2:01 PM',\n message: 'Edward Green joined the conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Hi Ginger Ventura, Please provide your phone number that needs to be updated.',\n timestamp: '2:02PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '2:03 PM',\n senderId: 'gingerVentura',\n message: 'Please update the policy with 9812764132.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Your mobile number is updated successfully.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'This number will be used for all communcation regarding your policy',\n timestamp: '2:05 PM',\n status: 'delivered'\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '2:04 PM',\n message: 'Vernon Lee joined this conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'Please download the updated policy',\n attachments: [\n {\n id: createUID(),\n name: 'Policy',\n icon: 'document-pdf',\n meta: 'PDF 1.2 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n },\n {\n id: createUID(),\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-pdf',\n meta: 'PDF 0.7 MB'\n }\n ],\n timestamp: '2:05 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '2:06 PM',\n senderId: 'gingerVentura',\n message: 'Thank you'\n }\n];\n\nexport const SimulatedConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'You are welcome, Is there anything else you need help with?',\n timestamp: '2:07 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '2:09 PM',\n senderId: 'gingerVentura',\n message: 'Can you please let me know the information about the newly launched policies?'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'We have new plans in term insurance and health insurance.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Do you want me to share the information on both?',\n timestamp: '2:10 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message: 'Yes, please.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message: 'I am also interested in knowing endowment plans as well.',\n timestamp: '2:11 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Okay, Let me find the relevant information for you.',\n timestamp: '2:12 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'We have a newly launched pension plan as well. Would you be interested in it?',\n timestamp: '2:12 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message:\n 'I am not looking for a pension plan at the moment. However, share the details of this plan also.',\n timestamp: '2:13 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'Sure, I share the details in a moment.',\n timestamp: '2:14 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'You can find details of the term insurance in this link',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://pegasystems.github.io/uplus-wss/insurance/index.html',\n thumbnail: 'https://pegasystems.github.io/uplus-wss/insurance/img/offer-promo-1.jpg',\n title: 'Ask the expert'\n }\n ]\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Health insurance details can be found here',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://pegasystems.github.io/uplus-wss/insurance/offer.html',\n thumbnail: 'https://pegasystems.github.io/uplus-wss/insurance/img/offer-main.jpg',\n title: 'Ask the expert'\n }\n ],\n timestamp: '2:15 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'Visit this link for details on pension plan',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://pegasystems.github.io/uplus-wss/retail_bank/index.html',\n thumbnail: 'https://pegasystems.github.io/uplus-wss/retail_bank/img/offer-main.jpg',\n title: 'Ask the expert'\n }\n ],\n timestamp: '2:15 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Here are the details of endowment plans',\n attachments: [\n {\n id: createUID(),\n name: 'Policy',\n icon: 'document-pdf',\n meta: 'PDF 1.2 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n }\n ],\n timestamp: '2:16 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message: 'Great, Thank you',\n timestamp: '2:17 PM'\n },\n {\n id: createUID(),\n type: 'system',\n message: 'Customer left this conversation',\n timestamp: '2:19 PM'\n }\n];\n\nexport const ChatMockData = {\n chatMessages: SimulatedConversation,\n defaultAttachments: [\n {\n name: 'Policy.doc',\n progress: 100,\n onDelete: () => {}\n },\n {\n name: 'E-Ticket',\n thumbnail: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',\n onDelete: () => {}\n }\n ],\n suggestedReplies: [\n {\n id: createUID(),\n message: 'Hello, Good morning Ginger Ventura. How can I help you today',\n confidence: 94\n },\n {\n id: createUID(),\n message:\n 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',\n confidence: 75\n }\n ]\n};\n\nexport const phrasesDisplayNames: MenuProps['items'] = [\n {\n id: '1',\n primary: 'Account',\n items: [\n {\n id: '1-1',\n primary: 'Account balance'\n }\n ]\n },\n {\n id: '2',\n primary: 'Agreement',\n items: [\n {\n id: '2-1',\n primary: 'End of a case/interaction'\n },\n {\n id: '2-2',\n primary: 'Mid interaction'\n }\n ]\n },\n {\n id: '3',\n primary: 'Apologize',\n items: [\n {\n id: '3-1',\n primary: 'Apologize - ask customer to'\n },\n {\n id: '3-2',\n primary: 'Thanks for patience'\n }\n ]\n },\n {\n id: '4',\n primary: 'Ask for transfer',\n items: [\n {\n id: '4-1',\n primary: 'Agent not available'\n },\n {\n id: '4-2',\n primary: 'Agent not available - call back'\n },\n {\n id: '4-3',\n primary: 'Agent not available - stall'\n }\n ]\n }\n];\n\nexport const phrasesMessages = [\n {\n id: '1-1',\n message: 'Ms. Ginger ventura your account balance is $5226.32'\n },\n {\n id: '2-1',\n message: 'My pleasure! Is there anything else I can do for you today?'\n },\n {\n id: '2-2',\n message: 'You are welcome!'\n },\n {\n id: '3-1',\n message:\n \"Ms.Ventura. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\"\n },\n {\n id: '3-2',\n message: 'Thanks for your patience. I am working on your request. I will be with you shortly.'\n },\n {\n id: '4-1',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n },\n {\n id: '4-2',\n message:\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\"\n },\n {\n id: '4-3',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n }\n];\n\nexport const pagePushList = [\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n senderId: 'agent3',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n message: 'You may also reach us via',\n timestamp: '1:45 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ]\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n senderId: 'agent3',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n message: 'Online Portal',\n timestamp: '1:45 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ]\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n senderId: 'agent3',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n message: 'Contact center',\n timestamp: '1:45 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ]\n }\n];\n\nexport const contextItems: FieldValueListItemProps[] = [\n {\n id: 'Location',\n name: 'Location',\n value: 'New York, NY',\n variant: 'inline'\n },\n {\n id: 'Initiated from',\n name: 'Initiated from',\n value: 'Uplus.com/Products',\n variant: 'inline'\n },\n {\n id: 'Shopping cart',\n name: 'Shopping cart',\n value: '$155.25',\n variant: 'inline'\n },\n {\n id: 'Items in shopping cart',\n name: 'Items in shopping cart',\n value: 'Product name 01, Product name 02',\n variant: 'inline'\n }\n];\n"]}
|
|
1
|
+
{"version":3,"file":"Chat.mocks.js","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkC,MAAM,yBAAyB,CAAC;AAGpF,MAAM,CAAC,MAAM,eAAe,GAA8B;IACxD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,6CAA6C;QACt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QAC9B,KAAK,EAAE,kCAAkC;QACzC,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC","sourcesContent":["import { createUID, FieldValueListProps, MenuProps } from '@pega/cosmos-react-core';\nimport { ChatBodyProps } from '@pega/cosmos-react-social';\n\nexport const BotConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: 'Hi, Welcome to u-plus. How can I help you ?',\n timestamp: '1:44 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:45 PM',\n senderId: 'gingerVentura',\n message: 'Hi, I would like to know the validity of my policy.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: 'You have two policies.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: '1457589, 1473284.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n message: 'Which among these policies do you want to know the validity of?',\n timestamp: '1:45 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:47 PM',\n senderId: 'gingerVentura',\n message: 'Please give me validity of policy with number 1457589.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n timestamp: '1:48 PM',\n message: 'Policy with number 1457589 is expiring on 12th December, 2023.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n timestamp: '1:49 PM',\n message: 'Is there anything else that you need help with?'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:51 PM',\n senderId: 'gingerVentura',\n message: 'Yes, I would like to know about the claims process.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'bot',\n direction: 'in',\n senderId: 'bot1',\n timestamp: '1:52 PM',\n message: 'Sure, I am transferring this chat to the concerned department.'\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:52 PM',\n message: 'Chat routed to a live agent.'\n }\n];\n\nexport const ClaimsAgentConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:54 PM',\n message: 'John Brown joined this conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'John Brown'\n },\n senderId: 'agent1',\n message: 'Hi Ginger Ventura, I see that you want to know about the claims process.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'John Brown'\n },\n senderId: 'agent1',\n message: 'Please go to link to get detailed information about claims process.',\n timestamp: '1:55 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'UPlus - Claims process'\n }\n ]\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:56 PM',\n message: 'Vernon Lee joined this conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message:\n 'Hi Ginger Ventura, I am the supervisor. You may also contact the nearest branch for a physical copy of the claims process.',\n timestamp: '1:57 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:57 PM',\n senderId: 'gingerVentura',\n message:\n 'Thanks for the information. I would also like to update the mobile number of my policy.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'John Brown'\n },\n senderId: 'agent1',\n message: 'Sure, I need to transfer you to a specialist to get you the needed help.',\n timestamp: '1:58 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '1:58 PM',\n senderId: 'gingerVentura',\n message: 'Okay.'\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '1:59 PM',\n message: 'Transfer request initiated'\n }\n];\nexport const LiveChatConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'system',\n timestamp: '2:01 PM',\n message: 'Edward Green joined the conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Hi Ginger Ventura, Please provide your phone number that needs to be updated.',\n timestamp: '2:02PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '2:03 PM',\n senderId: 'gingerVentura',\n message: 'Please update the policy with 9812764132.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Your mobile number is updated successfully.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'This number will be used for all communcation regarding your policy',\n timestamp: '2:05 PM',\n status: 'delivered'\n },\n {\n id: createUID(),\n type: 'system',\n timestamp: '2:04 PM',\n message: 'Vernon Lee joined this conversation'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'Please download the updated policy',\n attachments: [\n {\n id: createUID(),\n name: 'Policy',\n icon: 'document-pdf',\n meta: 'PDF 1.2 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n },\n {\n id: createUID(),\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-pdf',\n meta: 'PDF 0.7 MB'\n }\n ],\n timestamp: '2:05 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '2:06 PM',\n senderId: 'gingerVentura',\n message: 'Thank you'\n }\n];\n\nexport const SimulatedConversation: ChatBodyProps['liveChat'] = [\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'You are welcome, Is there anything else you need help with?',\n timestamp: '2:07 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n timestamp: '2:09 PM',\n senderId: 'gingerVentura',\n message: 'Can you please let me know the information about the newly launched policies?'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'We have new plans in term insurance and health insurance.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Do you want me to share the information on both?',\n timestamp: '2:10 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message: 'Yes, please.'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message: 'I am also interested in knowing endowment plans as well.',\n timestamp: '2:11 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Okay, Let me find the relevant information for you.',\n timestamp: '2:12 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'We have a newly launched pension plan as well. Would you be interested in it?',\n timestamp: '2:12 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message:\n 'I am not looking for a pension plan at the moment. However, share the details of this plan also.',\n timestamp: '2:13 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'Sure, I share the details in a moment.',\n timestamp: '2:14 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'You can find details of the term insurance in this link',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://pegasystems.github.io/uplus-wss/insurance/index.html',\n thumbnail: 'https://pegasystems.github.io/uplus-wss/insurance/img/offer-promo-1.jpg',\n title: 'Ask the expert'\n }\n ]\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Health insurance details can be found here',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://pegasystems.github.io/uplus-wss/insurance/offer.html',\n thumbnail: 'https://pegasystems.github.io/uplus-wss/insurance/img/offer-main.jpg',\n title: 'Ask the expert'\n }\n ],\n timestamp: '2:15 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'in',\n avatarInfo: {\n name: 'Vernon Lee'\n },\n senderId: 'agent2',\n message: 'Visit this link for details on pension plan',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://pegasystems.github.io/uplus-wss/retail_bank/index.html',\n thumbnail: 'https://pegasystems.github.io/uplus-wss/retail_bank/img/offer-main.jpg',\n title: 'Ask the expert'\n }\n ],\n timestamp: '2:15 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n senderId: 'agent3',\n message: 'Here are the details of endowment plans',\n attachments: [\n {\n id: createUID(),\n name: 'Policy',\n icon: 'document-pdf',\n meta: 'PDF 1.2 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n }\n ],\n timestamp: '2:16 PM'\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'customer',\n direction: 'in',\n avatarInfo: {\n name: 'Ginger Ventura'\n },\n senderId: 'gingerVentura',\n message: 'Great, Thank you',\n timestamp: '2:17 PM'\n },\n {\n id: createUID(),\n type: 'system',\n message: 'Customer left this conversation',\n timestamp: '2:19 PM'\n }\n];\n\nexport const ChatMockData = {\n chatMessages: SimulatedConversation,\n defaultAttachments: [\n {\n name: 'Policy.doc',\n progress: 100,\n onDelete: () => {}\n },\n {\n name: 'E-Ticket',\n thumbnail: 'https://pbs.twimg.com/media/ENNN5PAXkAE-hag.jpg',\n onDelete: () => {}\n }\n ],\n suggestedReplies: [\n {\n id: createUID(),\n message: 'Hello, Good morning Ginger Ventura. How can I help you today',\n confidence: 94\n },\n {\n id: createUID(),\n message:\n 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',\n confidence: 75\n },\n {\n id: 'suggested_reply_3',\n message: 'Hello! How can I assist you today?',\n confidence: 40\n },\n {\n id: 'suggested_reply_4',\n message: 'Thanks for contacting our support team',\n confidence: 20\n }\n ]\n};\n\nexport const phrasesDisplayNames: MenuProps['items'] = [\n {\n id: '1',\n primary: 'Account',\n items: [\n {\n id: '1-1',\n primary: 'Account balance'\n }\n ]\n },\n {\n id: '2',\n primary: 'Agreement',\n items: [\n {\n id: '2-1',\n primary: 'End of a case/interaction'\n },\n {\n id: '2-2',\n primary: 'Mid interaction'\n }\n ]\n },\n {\n id: '3',\n primary: 'Apologize',\n items: [\n {\n id: '3-1',\n primary: 'Apologize - ask customer to'\n },\n {\n id: '3-2',\n primary: 'Thanks for patience'\n }\n ]\n },\n {\n id: '4',\n primary: 'Ask for transfer',\n items: [\n {\n id: '4-1',\n primary: 'Agent not available'\n },\n {\n id: '4-2',\n primary: 'Agent not available - call back'\n },\n {\n id: '4-3',\n primary: 'Agent not available - stall'\n }\n ]\n }\n];\n\nexport const phrasesMessages = [\n {\n id: '1-1',\n message: 'Ms. Ginger ventura your account balance is $5226.32'\n },\n {\n id: '2-1',\n message: 'My pleasure! Is there anything else I can do for you today?'\n },\n {\n id: '2-2',\n message: 'You are welcome!'\n },\n {\n id: '3-1',\n message:\n \"Ms.Ventura. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\"\n },\n {\n id: '3-2',\n message: 'Thanks for your patience. I am working on your request. I will be with you shortly.'\n },\n {\n id: '4-1',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n },\n {\n id: '4-2',\n message:\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\"\n },\n {\n id: '4-3',\n message:\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.'\n }\n];\n\nexport const pagePushList = [\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n senderId: 'agent3',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n message: 'You may also reach us via',\n timestamp: '1:45 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ]\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n senderId: 'agent3',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n message: 'Online Portal',\n timestamp: '1:45 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ]\n },\n {\n id: createUID(),\n type: 'message',\n senderType: 'agent',\n senderId: 'agent3',\n direction: 'out',\n avatarInfo: {\n name: 'Edward green'\n },\n message: 'Contact center',\n timestamp: '1:45 PM',\n mediaPageLinks: [\n {\n id: createUID(),\n href: 'https://collaborate.pega.com/',\n title: 'Ask the expert'\n }\n ]\n }\n];\n\nexport const contextItems: FieldValueListProps['fields'] = [\n {\n id: 'Location',\n name: 'Location',\n value: 'New York, NY',\n variant: 'inline'\n },\n {\n id: 'Initiated from',\n name: 'Initiated from',\n value: 'Uplus.com/Products',\n variant: 'inline'\n },\n {\n id: 'Shopping cart',\n name: 'Shopping cart',\n value: '$155.25',\n variant: 'inline'\n },\n {\n id: 'Items in shopping cart',\n name: 'Items in shopping cart',\n value: 'Product name 01, Product name 02',\n variant: 'inline'\n }\n];\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import { OmitStrict } from '@pega/cosmos-react-core';
|
|
3
3
|
import { ChatHeaderProps, MessageProps, SystemMessageProps, MessageHeaderProps } from '@pega/cosmos-react-social';
|
|
4
|
-
declare const _default: Meta
|
|
4
|
+
declare const _default: Meta;
|
|
5
5
|
export default _default;
|
|
6
6
|
/** *********************** ChatHeader component - START *********************** */
|
|
7
7
|
interface ChatHeaderDemoProps extends OmitStrict<ChatHeaderProps, 'actions' | 'sentiment' | 'context'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Chat/Chat.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EA4BL,UAAU,EACX,MAAM,yBAA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