@pega/cosmos-react-demos 5.0.0-dev.1.0 → 5.0.0-dev.10.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/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
- package/jsx/core/AIButton/AIButton.mocks.d.ts +1 -1
- package/jsx/core/AIButton/AIButton.mocks.d.ts.map +1 -1
- package/jsx/core/AIButton/AIButton.mocks.js.map +1 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +2 -2
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +1 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.mocks.d.ts +3 -3
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.jsx +1 -2
- package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
- package/jsx/core/Badges/Status.stories.jsx +2 -2
- package/jsx/core/Badges/Status.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +39 -11
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +0 -3
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +4 -10
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +1 -2
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts +3 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/jsx/core/ComboBox/{ComboBox.mocks.js → ComboBox.mocks.jsx} +5 -1
- package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +15 -13
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +2 -2
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx +1 -3
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts +1 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.jsx +0 -1
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx +0 -1
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +0 -10
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +10 -5
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts +3 -3
- package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -1
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts +2 -2
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +6 -2
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -4
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +1 -1
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx +3 -1
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/File/FileInput.stories.d.ts +1 -0
- package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
- package/jsx/core/File/FileInput.stories.jsx +33 -6
- package/jsx/core/File/FileInput.stories.jsx.map +1 -1
- package/jsx/{work/CaseView → core/File}/FileService.mock.d.ts +2 -2
- package/jsx/core/File/FileService.mock.d.ts.map +1 -0
- package/jsx/core/File/FileService.mock.jsx.map +1 -0
- package/jsx/core/File/MockFileInput.d.ts +6 -0
- package/jsx/core/File/MockFileInput.d.ts.map +1 -0
- package/jsx/core/File/MockFileInput.jsx +24 -0
- package/jsx/core/File/MockFileInput.jsx.map +1 -0
- package/jsx/core/Form/Form.mocks.d.ts +2 -2
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.jsx +64 -14
- package/jsx/core/Form/Form.mocks.jsx.map +1 -1
- package/jsx/core/Icon/Icon.mocks.d.ts +24 -1
- package/jsx/core/Icon/Icon.mocks.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.mocks.jsx +23 -0
- package/jsx/core/Icon/Icon.mocks.jsx.map +1 -1
- package/jsx/core/Icon/Icon.stories.d.ts +11 -1
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +41 -7
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx +0 -1
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +5 -5
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +5 -2
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +45 -7
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +1 -1
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +0 -1
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Menu/Menu.mocks.d.ts +1 -1
- package/jsx/core/Menu/Menu.mocks.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.mocks.js.map +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +1 -0
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx +20 -3
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +7 -7
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx +6 -2
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx +0 -1
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.mocks.d.ts +2 -2
- package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.mocks.jsx.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +0 -3
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +4 -10
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx +0 -1
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/Slider/Slider.stories.d.ts +1 -0
- package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.jsx +24 -4
- package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts +2 -2
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
- package/jsx/core/Table/Table.mocks.d.ts +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +0 -1
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Tree/Tree.mocks.js.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +3 -3
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +2 -2
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +3 -3
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +3 -3
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +4 -4
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +2 -2
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
- package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts +3 -3
- package/jsx/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -1
- package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +1 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts +7 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.mocks.jsx +0 -1
- package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +5 -1
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx +54 -9
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +5 -17
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +1 -21
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +4 -0
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +100 -42
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts +6 -6
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts +4 -0
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +48 -21
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +6 -6
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx +24 -0
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +70 -16
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +2 -2
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.jsx +32 -17
- package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.jsx +24 -17
- package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -1
- package/jsx/work/Article/Article.mocks.d.ts +4 -0
- package/jsx/work/Article/Article.mocks.d.ts.map +1 -1
- package/jsx/work/Article/Article.mocks.js +7 -3
- package/jsx/work/Article/Article.mocks.js.map +1 -1
- package/jsx/work/Article/Article.stories.d.ts +1 -0
- package/jsx/work/Article/Article.stories.d.ts.map +1 -1
- package/jsx/work/Article/Article.stories.jsx +77 -34
- package/jsx/work/Article/Article.stories.jsx.map +1 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts +11 -0
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -0
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +62 -0
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +1 -0
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts +39 -20
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
- package/jsx/work/ArticleList/ArticleList.mocks.js +164 -78
- package/jsx/work/ArticleList/ArticleList.mocks.js.map +1 -1
- package/jsx/work/ArticleList/ArticleList.stories.d.ts +1 -0
- package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/work/ArticleList/ArticleList.stories.jsx +219 -32
- package/jsx/work/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +1 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +25 -15
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +69 -14
- 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 +0 -9
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +2 -2
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +6 -6
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts +2 -0
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +29 -5
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -252
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/{cs → work}/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
- package/jsx/{cs → work}/InteractionNotification/InteractionNotification.stories.jsx +6 -4
- package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +1 -0
- package/jsx/work/Predictions/Predictions.mocks.d.ts +1 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +3 -3
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +3 -3
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.mocks.d.ts +1 -1
- package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.mocks.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +3 -3
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +1 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +4 -11
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +4 -3
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +11 -20
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
- package/lib/core/AIButton/AIButton.mocks.d.ts +1 -1
- package/lib/core/AIButton/AIButton.mocks.d.ts.map +1 -1
- package/lib/core/AIButton/AIButton.mocks.js.map +1 -1
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +2 -2
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +1 -1
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -1
- package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js +1 -2
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Badges/Status.stories.js +2 -2
- package/lib/core/Badges/Status.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +39 -11
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js +0 -3
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +4 -10
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js +1 -2
- package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +3 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.js +3 -0
- package/lib/core/ComboBox/ComboBox.mocks.js.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js +15 -13
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.stories.js +1 -3
- package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -1
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/lib/core/CreditCard/CreditCard.stories.js +0 -1
- package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.js +0 -1
- package/lib/core/Currency/Currency.stories.js.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js +0 -10
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js +10 -5
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
- package/lib/core/Dialog/FormDialog.mocks.d.ts +1 -1
- package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
- package/lib/core/Dialog/FormDialog.mocks.js.map +1 -1
- package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
- package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js +6 -2
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js +3 -1
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/File/FileInput.stories.d.ts +1 -0
- package/lib/core/File/FileInput.stories.d.ts.map +1 -1
- package/lib/core/File/FileInput.stories.js +20 -7
- package/lib/core/File/FileInput.stories.js.map +1 -1
- package/lib/{work/CaseView → core/File}/FileService.mock.d.ts +2 -2
- package/lib/core/File/FileService.mock.d.ts.map +1 -0
- package/lib/core/File/FileService.mock.js.map +1 -0
- package/lib/core/File/MockFileInput.d.ts +6 -0
- package/lib/core/File/MockFileInput.d.ts.map +1 -0
- package/lib/core/File/MockFileInput.js +25 -0
- package/lib/core/File/MockFileInput.js.map +1 -0
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js +48 -3
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.mocks.d.ts +24 -1
- package/lib/core/Icon/Icon.mocks.d.ts.map +1 -1
- package/lib/core/Icon/Icon.mocks.js +23 -0
- package/lib/core/Icon/Icon.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +11 -1
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +41 -7
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js +0 -1
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +3 -3
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +5 -2
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.js +32 -8
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
- package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
- package/lib/core/LiveLog/LiveLog.mocks.js.map +1 -1
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +0 -1
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Menu/Menu.mocks.d.ts +1 -1
- package/lib/core/Menu/Menu.mocks.d.ts.map +1 -1
- package/lib/core/Menu/Menu.mocks.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +1 -0
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js +14 -3
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +2 -2
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js +6 -2
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.js +0 -1
- package/lib/core/Phone/Phone.stories.js.map +1 -1
- package/lib/core/Popover/Popover.mocks.d.ts +1 -1
- package/lib/core/Popover/Popover.mocks.d.ts.map +1 -1
- package/lib/core/Popover/Popover.mocks.js.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js +0 -3
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +4 -10
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js +0 -1
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/Slider/Slider.stories.d.ts +1 -0
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.js +11 -5
- package/lib/core/Slider/Slider.stories.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.d.ts +2 -2
- package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.js +0 -1
- package/lib/core/TextArea/TextArea.stories.js.map +1 -1
- package/lib/core/Tree/Tree.mocks.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +1 -1
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -1
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +2 -2
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -1
- package/lib/dnd/StandardDragDropList/Popover.d.ts +2 -2
- package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/Popover.js.map +1 -1
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +3 -3
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -1
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +2 -2
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
- package/lib/rte/DynamicContentEditor/FieldSelector.d.ts +3 -3
- package/lib/rte/DynamicContentEditor/FieldSelector.d.ts.map +1 -1
- package/lib/rte/DynamicContentEditor/FieldSelector.js.map +1 -1
- package/lib/rte/Editor/Editor.mocks.d.ts +7 -1
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.mocks.js +0 -1
- package/lib/rte/Editor/Editor.mocks.js.map +1 -1
- package/lib/rte/Editor/Editor.stories.d.ts +5 -1
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js +40 -9
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +5 -17
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +1 -21
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +4 -0
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +101 -38
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.mocks.d.ts +5 -5
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +4 -0
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +48 -26
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Feed/Feed.mocks.d.ts +4 -4
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +24 -0
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +70 -16
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.d.ts +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -1
- package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.mocks.js +32 -17
- package/lib/social/Feed/FeedPost.mocks.js.map +1 -1
- package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.mocks.js +23 -16
- package/lib/social/Feed/FeedReply.mocks.js.map +1 -1
- package/lib/work/Article/Article.mocks.d.ts +4 -0
- package/lib/work/Article/Article.mocks.d.ts.map +1 -1
- package/lib/work/Article/Article.mocks.js +7 -3
- package/lib/work/Article/Article.mocks.js.map +1 -1
- package/lib/work/Article/Article.stories.d.ts +1 -0
- package/lib/work/Article/Article.stories.d.ts.map +1 -1
- package/lib/work/Article/Article.stories.js +78 -34
- package/lib/work/Article/Article.stories.js.map +1 -1
- package/lib/work/ArticleList/ArticleBuddy.stories.d.ts +11 -0
- package/lib/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -0
- package/lib/work/ArticleList/ArticleBuddy.stories.js +63 -0
- package/lib/work/ArticleList/ArticleBuddy.stories.js.map +1 -0
- package/lib/work/ArticleList/ArticleList.mocks.d.ts +39 -20
- package/lib/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
- package/lib/work/ArticleList/ArticleList.mocks.js +164 -78
- package/lib/work/ArticleList/ArticleList.mocks.js.map +1 -1
- package/lib/work/ArticleList/ArticleList.stories.d.ts +1 -0
- package/lib/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/work/ArticleList/ArticleList.stories.js +219 -32
- package/lib/work/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js +1 -1
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +16 -6
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +67 -14
- 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 +0 -11
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts +2 -0
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +13 -5
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +3 -235
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/{cs → work}/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
- package/lib/work/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
- package/lib/{cs → work}/InteractionNotification/InteractionNotification.stories.js +6 -4
- package/lib/work/InteractionNotification/InteractionNotification.stories.js.map +1 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +3 -3
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts +2 -2
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.d.ts +1 -1
- package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/wss/PageTemplates/PageTemplates.stories.js +4 -3
- package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +4 -3
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
- package/lib/wss/QuickCreate/QuickCreate.stories.js +11 -18
- package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -1
- package/package.json +16 -25
- package/jsx/build/AppShell/AppShell.mocks.d.ts +0 -44
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx +0 -419
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts +0 -20
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +0 -201
- package/jsx/build/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -101
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +0 -11
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx +0 -80
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +0 -344
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +0 -559
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +0 -501
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.js +0 -8
- package/jsx/build/FlowModeller/FlowModeller.styles.js.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +0 -44
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +0 -1256
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +0 -873
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/utils.d.ts +0 -123
- package/jsx/build/LifeCycle/utils.d.ts.map +0 -1
- package/jsx/build/LifeCycle/utils.js +0 -302
- package/jsx/build/LifeCycle/utils.js.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx +0 -38
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +0 -1
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx +0 -78
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +0 -397
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +0 -258
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js +0 -27
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
- package/jsx/build/PageBanner/PageBanner.stories.d.ts +0 -15
- package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
- package/jsx/build/PageBanner/PageBanner.stories.jsx +0 -41
- package/jsx/build/PageBanner/PageBanner.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +0 -24
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +0 -49
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +0 -144
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +0 -255
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +0 -42
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/jsx/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.js +0 -67
- package/jsx/build/Workbench/Workbench.mocks.js.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +0 -11
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +0 -288
- package/jsx/build/Workbench/Workbench.stories.jsx.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.js.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +0 -432
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +0 -173
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -330
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/jsx/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.jsx +0 -20
- package/jsx/cs/DialPad/DialPad.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -87
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -1
- package/jsx/cs/Picker/Picker.stories.d.ts +0 -11
- package/jsx/cs/Picker/Picker.stories.d.ts.map +0 -1
- package/jsx/cs/Picker/Picker.stories.jsx +0 -64
- package/jsx/cs/Picker/Picker.stories.jsx.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +0 -228
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +0 -15
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +0 -420
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts +0 -3
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.styles.js +0 -9
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx +0 -81
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +0 -6
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.stories.jsx +0 -67
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +0 -1
- package/jsx/tools/DevTools/DevTools.mocks.d.ts +0 -3
- package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
- package/jsx/tools/DevTools/DevTools.mocks.js +0 -3
- package/jsx/tools/DevTools/DevTools.mocks.js.map +0 -1
- package/jsx/tools/DevTools/DevTools.stories.d.ts +0 -10
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +0 -1
- package/jsx/tools/DevTools/DevTools.stories.jsx +0 -33
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +0 -80
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +0 -184
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.styles.js +0 -6
- package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
- package/jsx/work/CaseView/FileService.mock.d.ts.map +0 -1
- package/jsx/work/CaseView/FileService.mock.jsx.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +0 -44
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.js +0 -419
- package/lib/build/AppShell/AppShell.mocks.js.map +0 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +0 -20
- package/lib/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.stories.js +0 -200
- package/lib/build/AppShell/AppShell.stories.js.map +0 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +0 -85
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +0 -1
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts +0 -14
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/lib/build/DynamicContentEditor/FieldSelector.js +0 -81
- package/lib/build/DynamicContentEditor/FieldSelector.js.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +0 -339
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +0 -536
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +0 -481
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.styles.js +0 -8
- package/lib/build/FlowModeller/FlowModeller.styles.js.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +0 -39
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +0 -1256
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +0 -870
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +0 -1
- package/lib/build/LifeCycle/utils.d.ts +0 -123
- package/lib/build/LifeCycle/utils.d.ts.map +0 -1
- package/lib/build/LifeCycle/utils.js +0 -302
- package/lib/build/LifeCycle/utils.js.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js +0 -39
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +0 -1
- package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
- package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
- package/lib/build/ObjectPreview/ObjectPreview.mocks.js +0 -74
- package/lib/build/ObjectPreview/ObjectPreview.mocks.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +0 -370
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +0 -240
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.styles.js +0 -27
- package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
- package/lib/build/PageBanner/PageBanner.stories.d.ts +0 -15
- package/lib/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
- package/lib/build/PageBanner/PageBanner.stories.js +0 -42
- package/lib/build/PageBanner/PageBanner.stories.js.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.mocks.js +0 -25
- package/lib/build/PageTemplates/GalleryPage.mocks.js.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +0 -50
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.js +0 -107
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +0 -246
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +0 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.js +0 -43
- package/lib/build/PageTemplates/ShowcasePage.stories.js.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/lib/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.js +0 -67
- package/lib/build/Workbench/Workbench.mocks.js.map +0 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +0 -11
- package/lib/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.stories.js +0 -273
- package/lib/build/Workbench/Workbench.stories.js.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js +0 -385
- package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js +0 -172
- package/lib/cs/CSAppShell/CSAppShell.stories.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +0 -331
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.js +0 -19
- package/lib/cs/DialPad/DialPad.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +0 -88
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +0 -1
- package/lib/cs/Picker/Picker.stories.d.ts +0 -11
- package/lib/cs/Picker/Picker.stories.d.ts.map +0 -1
- package/lib/cs/Picker/Picker.stories.js +0 -56
- package/lib/cs/Picker/Picker.stories.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +0 -228
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +0 -15
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +0 -396
- package/lib/cs/TaskManager/TaskManager.stories.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.styles.d.ts +0 -3
- package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.styles.js +0 -9
- package/lib/cs/TaskManager/TaskManager.styles.js.map +0 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
- package/lib/tools/Clipboard/Clipboard.mocks.js +0 -74
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +0 -1
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +0 -6
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
- package/lib/tools/Clipboard/Clipboard.stories.js +0 -74
- package/lib/tools/Clipboard/Clipboard.stories.js.map +0 -1
- package/lib/tools/DevTools/DevTools.mocks.d.ts +0 -3
- package/lib/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
- package/lib/tools/DevTools/DevTools.mocks.js +0 -3
- package/lib/tools/DevTools/DevTools.mocks.js.map +0 -1
- package/lib/tools/DevTools/DevTools.stories.d.ts +0 -10
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +0 -1
- package/lib/tools/DevTools/DevTools.stories.js +0 -29
- package/lib/tools/DevTools/DevTools.stories.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +0 -77
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.js +0 -181
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.styles.js +0 -6
- package/lib/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
- package/lib/work/CaseView/FileService.mock.d.ts.map +0 -1
- package/lib/work/CaseView/FileService.mock.js.map +0 -1
- /package/jsx/{work/CaseView → core/File}/FileService.mock.jsx +0 -0
- /package/lib/{work/CaseView → core/File}/FileService.mock.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useCallback } from 'react';
|
|
2
|
-
import { Avatar, useUID } from '@pega/cosmos-react-core';
|
|
3
|
-
import { FeedReply } from '@pega/cosmos-react-social';
|
|
2
|
+
import { Avatar, useElement, useUID } from '@pega/cosmos-react-core';
|
|
3
|
+
import { AutopilotGlimpse, FeedReply } from '@pega/cosmos-react-social';
|
|
4
4
|
import { Glimpse } from '@pega/cosmos-react-work';
|
|
5
5
|
import { feedUserGlimpseDetails } from './Feed.mocks';
|
|
6
6
|
export const FeedReplyDemo = ({ fullname, username, content, attachments, postTimestamp = new Date(2022, 0, 1), userStatus }) => {
|
|
@@ -11,8 +11,8 @@ export const FeedReplyDemo = ({ fullname, username, content, attachments, postTi
|
|
|
11
11
|
const [replyContent, setReplyContent] = useState(content);
|
|
12
12
|
const [edited, setEdited] = useState(false);
|
|
13
13
|
const [editTimestamp, setEditTimestamp] = useState(new Date());
|
|
14
|
-
const [
|
|
15
|
-
const [glimpseTarget, setGlimpseTarget] =
|
|
14
|
+
const [glimpseContent, setGlimpseContent] = useState();
|
|
15
|
+
const [glimpseTarget, setGlimpseTarget] = useElement(null);
|
|
16
16
|
const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);
|
|
17
17
|
const getInitialLikes = () => {
|
|
18
18
|
if (likes.length)
|
|
@@ -38,6 +38,24 @@ export const FeedReplyDemo = ({ fullname, username, content, attachments, postTi
|
|
|
38
38
|
}, 1000);
|
|
39
39
|
}
|
|
40
40
|
}, [likesLoading]);
|
|
41
|
+
const onUserClick = ({ username: glimpseUsername }, clickEvent) => {
|
|
42
|
+
if (clickEvent) {
|
|
43
|
+
setGlimpseTarget(clickEvent.target);
|
|
44
|
+
if (glimpseUsername === 'autopilot') {
|
|
45
|
+
setGlimpseContent(<AutopilotGlimpse target={clickEvent.target} onDismiss={() => {
|
|
46
|
+
setGlimpseTarget(null);
|
|
47
|
+
}} placement='right'/>);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const userDetails = feedUserGlimpseDetails.find(x => x.username === glimpseUsername);
|
|
51
|
+
if (userDetails) {
|
|
52
|
+
setGlimpseContent(<Glimpse {...userDetails} target={clickEvent.target} onDismiss={() => {
|
|
53
|
+
setGlimpseTarget(null);
|
|
54
|
+
}} placement='right'/>);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
41
59
|
return (<>
|
|
42
60
|
<FeedReply id={key} key={key} postTimestamp={postTimestamp} content={replyContent} attachments={attachments} username={username} fullname={fullname} liked={liked} userStatus={userStatus} likes={likes} likeCount={likeCount >= 10 ? likeCount + 1 : likeCount} maxContentHeight={40} menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => { } }]} onEditSubmit={({ value }) => {
|
|
43
61
|
setReplyContent(value);
|
|
@@ -58,19 +76,8 @@ export const FeedReplyDemo = ({ fullname, username, content, attachments, postTi
|
|
|
58
76
|
setLikeCount(curr => curr + 1);
|
|
59
77
|
}
|
|
60
78
|
setLiked(curr => !curr);
|
|
61
|
-
}} onLikeCountInteraction={getInitialLikes} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} likesLoading={likesLoading} onUserClick={
|
|
62
|
-
|
|
63
|
-
setGlimpseTarget(clickEvent.target);
|
|
64
|
-
setGlimpseData(curr => {
|
|
65
|
-
if (curr)
|
|
66
|
-
return undefined;
|
|
67
|
-
return feedUserGlimpseDetails.find(x => x.username === glimpseUsername);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}}/>
|
|
71
|
-
{glimpseTarget && glimpseData && (<Glimpse {...glimpseData} target={glimpseTarget} onDismiss={() => {
|
|
72
|
-
setGlimpseData(undefined);
|
|
73
|
-
}} placement='right'/>)}
|
|
79
|
+
}} onLikeCountInteraction={getInitialLikes} onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined} likesLoading={likesLoading} onUserClick={onUserClick}/>
|
|
80
|
+
{glimpseTarget && glimpseContent}
|
|
74
81
|
</>);
|
|
75
82
|
};
|
|
76
83
|
//# sourceMappingURL=FeedReply.mocks.jsx.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedReply.mocks.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeedReply.mocks.jsx","sourceRoot":"","sources":["../../../src/social/Feed/FeedReply.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAWtD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,aAAa,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EACpC,UAAU,EACS,EAAE,EAAE;IACvB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,C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Ac,EAAE,CAAC,CAAC,CAAC;oBACtC,OAAO,WAAW,CAAC;gBACrB,CAAC,CAAC,CAAC;gBACH,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;aAChC;iBAAM;gBACL,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC;gBAC1C,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;aAChC;YACD,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC,CAAC,CACF,sBAAsB,CAAC,CAAC,eAAe,CAAC,CACxC,eAAe,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CACpE,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,EAE3B;MAAA,CAAC,aAAa,IAAI,cAAc,CAClC;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useCallback } from 'react';\nimport type { ReactNode } from 'react';\n\nimport { Avatar, useElement, useUID } from '@pega/cosmos-react-core';\nimport type { MenuItemProps } from '@pega/cosmos-react-core';\nimport { AutopilotGlimpse, FeedReply } from '@pega/cosmos-react-social';\nimport type { FeedReplyProps } from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\n\nimport { feedUserGlimpseDetails } from './Feed.mocks';\n\ninterface FeedReplyDemoProps {\n fullname: FeedReplyProps['fullname'];\n username: FeedReplyProps['username'];\n content: FeedReplyProps['content'];\n attachments?: FeedReplyProps['attachments'];\n postTimestamp?: FeedReplyProps['postTimestamp'];\n userStatus?: FeedReplyProps['userStatus'];\n}\n\nexport const FeedReplyDemo = ({\n fullname,\n username,\n content,\n attachments,\n postTimestamp = new Date(2022, 0, 1),\n userStatus\n}: FeedReplyDemoProps) => {\n const key = useUID();\n const [likes, setLikes] = useState<MenuItemProps[]>([]);\n const [liked, setLiked] = useState(false);\n const [likeCount, setLikeCount] = useState(0);\n const [replyContent, setReplyContent] = useState(content);\n const [edited, setEdited] = useState(false);\n const [editTimestamp, setEditTimestamp] = useState(new Date());\n const [glimpseContent, setGlimpseContent] = useState<ReactNode | undefined>();\n const [glimpseTarget, setGlimpseTarget] = useElement<HTMLElement>(null);\n const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);\n\n const getInitialLikes = () => {\n if (likes.length) return;\n\n setLikes([]);\n };\n\n const [likesLoading, setLikesLoading] = useState(false);\n\n const generateNewLike = useCallback(() => {\n if (!likesLoading) {\n setLikesLoading(true);\n setTimeout(() => {\n setLikesLoading(false);\n setLikes(oldLikes => [\n ...oldLikes,\n {\n primary: 'Generated Like',\n secondary: ['This like was added after the onLoadMore callback triggered'],\n visual: <Avatar size='l' name='Generated Like' />,\n id: 'generatedLike'\n }\n ]);\n setAdditionalLikeAdded(true);\n }, 1000);\n }\n }, [likesLoading]);\n\n const onUserClick: FeedReplyProps['onUserClick'] = (\n { username: glimpseUsername },\n clickEvent\n ) => {\n if (clickEvent) {\n setGlimpseTarget(clickEvent.target as HTMLElement);\n if (glimpseUsername === 'autopilot') {\n setGlimpseContent(\n <AutopilotGlimpse\n target={clickEvent.target as HTMLElement}\n onDismiss={() => {\n setGlimpseTarget(null);\n }}\n placement='right'\n />\n );\n } else {\n const userDetails = feedUserGlimpseDetails.find(x => x.username === glimpseUsername);\n if (userDetails) {\n setGlimpseContent(\n <Glimpse\n {...userDetails}\n target={clickEvent.target as HTMLElement}\n onDismiss={() => {\n setGlimpseTarget(null);\n }}\n placement='right'\n />\n );\n }\n }\n }\n };\n\n return (\n <>\n <FeedReply\n id={key}\n key={key}\n postTimestamp={postTimestamp}\n content={replyContent}\n attachments={attachments}\n username={username}\n fullname={fullname}\n liked={liked}\n userStatus={userStatus}\n likes={likes}\n likeCount={likeCount >= 10 ? likeCount + 1 : likeCount}\n maxContentHeight={40}\n menuItems={[{ primary: 'Custom action', id: 'custom', onClick: () => {} }]}\n onEditSubmit={({ value }) => {\n setReplyContent(value);\n setEdited(true);\n setEditTimestamp(new Date());\n }}\n edited={edited}\n editTimestamp={editTimestamp}\n onCommentClick={() => {}}\n onLikeClick={({ user }) => {\n const userLikedIndex = likes.findIndex(x => x.id === user.id);\n if (userLikedIndex !== -1) {\n setLikes(oldLikes => {\n const oldLikesArr = [...oldLikes];\n oldLikesArr.splice(userLikedIndex, 1);\n return oldLikesArr;\n });\n setLikeCount(curr => curr - 1);\n } else {\n setLikes(oldLikes => [user, ...oldLikes]);\n setLikeCount(curr => curr + 1);\n }\n setLiked(curr => !curr);\n }}\n onLikeCountInteraction={getInitialLikes}\n onLoadMoreLikes={!additionalLikeAdded ? generateNewLike : undefined}\n likesLoading={likesLoading}\n onUserClick={onUserClick}\n />\n {glimpseTarget && glimpseContent}\n </>\n );\n};\n"]}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
export declare const ArticleMockData: {
|
|
2
2
|
fullArticleContent: {
|
|
3
|
+
articleId: string;
|
|
3
4
|
header: string;
|
|
4
5
|
abstract: string;
|
|
5
6
|
content: string;
|
|
6
7
|
meta: {
|
|
7
8
|
category: string;
|
|
8
9
|
publishedDate: string;
|
|
10
|
+
};
|
|
11
|
+
feedback: {
|
|
9
12
|
likes: number;
|
|
10
13
|
disLikes: number;
|
|
14
|
+
reaction: undefined;
|
|
11
15
|
};
|
|
12
16
|
};
|
|
13
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Article.mocks.d.ts","sourceRoot":"","sources":["../../../src/work/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"Article.mocks.d.ts","sourceRoot":"","sources":["../../../src/work/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAkB3B,CAAC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
export const ArticleMockData = {
|
|
2
2
|
fullArticleContent: {
|
|
3
|
+
articleId: '1',
|
|
3
4
|
header: 'How to change monthly billing cycle',
|
|
4
5
|
abstract: 'How to change monthly billing cycle. This will give you clear guidelines to change billing cycle',
|
|
5
6
|
content: "<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><div><b>Before you change your billing cycle, be aware that:</b> </div><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>",
|
|
6
7
|
meta: {
|
|
7
8
|
category: 'Banking and Retail',
|
|
8
|
-
publishedDate: '2023-04-06'
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
publishedDate: '2023-04-06'
|
|
10
|
+
},
|
|
11
|
+
feedback: {
|
|
12
|
+
likes: 312,
|
|
13
|
+
disLikes: 42,
|
|
14
|
+
reaction: undefined
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Article.mocks.js","sourceRoot":"","sources":["../../../src/work/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,kBAAkB,EAAE;QAClB,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EACN,kGAAkG;QACpG,OAAO,EACL,k9EAAk9E;QACp9E,IAAI,EAAE;YACJ,QAAQ,EAAE,oBAAoB;YAC9B,aAAa,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"Article.mocks.js","sourceRoot":"","sources":["../../../src/work/Article/Article.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,kBAAkB,EAAE;QAClB,SAAS,EAAE,GAAG;QACd,MAAM,EAAE,qCAAqC;QAC7C,QAAQ,EACN,kGAAkG;QACpG,OAAO,EACL,k9EAAk9E;QACp9E,IAAI,EAAE;YACJ,QAAQ,EAAE,oBAAoB;YAC9B,aAAa,EAAE,YAAY;SAC5B;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,SAAS;SACpB;KACF;CACF,CAAC","sourcesContent":["export const ArticleMockData = {\n fullArticleContent: {\n articleId: '1',\n header: 'How to change monthly billing cycle',\n abstract:\n 'How to change monthly billing cycle. This will give you clear guidelines to change billing cycle',\n content:\n \"<p>Changing your monthly billing cycle can help you better manage your monthly bills and when you pay them. U+Comm offers 3 main billing cycles with due dates falling on the 1st, 15th, or the 28th of each month. This provides our customers with flexibility when choosing a billing cycle and corresponding due date that matches your personal finance planning.If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p><div>Find more details from this article <a data-article-id='5' href='#'>How to sell a product</a></div><div>Find some suggestions from this article <a data-article-id='8' href='#'>How to convince a customer</a></div><div><b>Before you change your billing cycle, be aware that:</b> </div><ul><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li><li>Your billing cycle can't be changed if your account is in a delinquent status, or if the account will fall delinquent before the requested change date.</li><li>If you have a payment arrangement set up, the payment arrangement must be made before the billing cycle is changed.</li><li>If you have AutoPay, you may see two AutoPay drafts in one month due to the billing cycle change.</li><li>When a billing cycle change is made, prorated charges will occur.</li></ul><p>If you change an existing bill cycle, there will generally be a number of days prorated to compensate from the gap from the end of the previous bill cycle to when the new bill cycle is started. This proration will be included in your next (new) billing cycle statement, and will cause an increase in that month’s payment due. But rest assured, you’re not being charged ‘extra’, but paying for the days that were between the old and new billing cycle dates.</p>\",\n meta: {\n category: 'Banking and Retail',\n publishedDate: '2023-04-06'\n },\n feedback: {\n likes: 312,\n disLikes: 42,\n reaction: undefined\n }\n }\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Article.stories.d.ts","sourceRoot":"","sources":["../../../src/work/Article/Article.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;
|
|
1
|
+
{"version":3,"file":"Article.stories.d.ts","sourceRoot":"","sources":["../../../src/work/Article/Article.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAatD,wBAOU;AAEV,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAsNlD,CAAC;AA4BF,eAAO,MAAM,iBAAiB,EAAE,OA8C/B,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import { registerIcon, createUID, HTML } from '@pega/cosmos-react-core';
|
|
3
|
+
import { registerIcon, createUID, HTML, Flex } from '@pega/cosmos-react-core';
|
|
4
4
|
import * as openIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/open.icon';
|
|
5
5
|
import * as starIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/star.icon';
|
|
6
6
|
import * as caretLeftIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/caret-left.icon';
|
|
7
|
-
import
|
|
8
|
-
import * as thumbsDownSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/thumbs-down-solid.icon';
|
|
9
|
-
import { Article, ArticleFooter } from '@pega/cosmos-react-work';
|
|
7
|
+
import { Article, ArticleFooter, ArticleRating } from '@pega/cosmos-react-work';
|
|
10
8
|
import { ArticleMockData } from './Article.mocks';
|
|
11
|
-
registerIcon(openIcon, starIcon, caretLeftIcon
|
|
9
|
+
registerIcon(openIcon, starIcon, caretLeftIcon);
|
|
12
10
|
export default {
|
|
13
11
|
title: 'Work/Article',
|
|
14
12
|
component: Article,
|
|
@@ -18,40 +16,50 @@ export default {
|
|
|
18
16
|
}
|
|
19
17
|
};
|
|
20
18
|
export const ArticleStory = (args) => {
|
|
21
|
-
const [feedbackStatus, setFeedbackStatus] = useState();
|
|
22
|
-
const [showFeedbackThanks, setShowFeedbackThanks] = useState(false);
|
|
23
19
|
const [loading, setLoading] = useState(true);
|
|
20
|
+
const [likeCount, setLikeCount] = useState(ArticleMockData.fullArticleContent.feedback.likes);
|
|
21
|
+
const [dislikeCount, setDislikeCount] = useState(ArticleMockData.fullArticleContent.feedback.disLikes);
|
|
22
|
+
const [reaction, setReaction] = useState(ArticleMockData.fullArticleContent.feedback.reaction);
|
|
24
23
|
const { showHeader, backButtonText, showPrimaryActions, showSecondaryActions, showFooter, enableFeedback, showTags, showRelatedLinks, showMoreLikeThis, showAttachments } = args;
|
|
25
24
|
const onBackToArticlesClick = (event) => {
|
|
26
25
|
event.preventDefault();
|
|
27
26
|
};
|
|
28
|
-
const onFeedbackClick = button => {
|
|
29
|
-
if (button === 'like') {
|
|
30
|
-
if (feedbackStatus === 'liked') {
|
|
31
|
-
setFeedbackStatus(undefined);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
setFeedbackStatus('liked');
|
|
35
|
-
setShowFeedbackThanks(true);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
else if (feedbackStatus === 'disliked') {
|
|
39
|
-
setFeedbackStatus(undefined);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
setFeedbackStatus('disliked');
|
|
43
|
-
setShowFeedbackThanks(true);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
27
|
useEffect(() => {
|
|
47
28
|
setTimeout(() => {
|
|
48
29
|
setLoading(false);
|
|
49
30
|
}, 2000);
|
|
50
31
|
}, []);
|
|
32
|
+
const onReaction = (id, reactionParam) => {
|
|
33
|
+
action('onReaction')(id);
|
|
34
|
+
if (reactionParam === 'liked') {
|
|
35
|
+
setReaction('liked');
|
|
36
|
+
setLikeCount(prev => prev + 1);
|
|
37
|
+
if (reaction === 'disliked') {
|
|
38
|
+
setDislikeCount(prev => prev - 1);
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (reactionParam === 'disliked') {
|
|
43
|
+
setReaction('disliked');
|
|
44
|
+
setDislikeCount(prev => prev + 1);
|
|
45
|
+
if (reaction === 'liked') {
|
|
46
|
+
setLikeCount(prev => prev - 1);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (reactionParam === undefined) {
|
|
50
|
+
if (reaction === 'liked') {
|
|
51
|
+
setLikeCount(prev => prev - 1);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
setDislikeCount(prev => prev - 1);
|
|
55
|
+
}
|
|
56
|
+
setReaction(undefined);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
51
59
|
return (<div style={{
|
|
52
60
|
maxWidth: '25rem'
|
|
53
61
|
}}>
|
|
54
|
-
<Article header={showHeader
|
|
62
|
+
<Article articleId={ArticleMockData.fullArticleContent.articleId} header={showHeader
|
|
55
63
|
? {
|
|
56
64
|
title: 'Knowledge articles',
|
|
57
65
|
icon: 'book-open'
|
|
@@ -93,18 +101,19 @@ export const ArticleStory = (args) => {
|
|
|
93
101
|
]
|
|
94
102
|
: undefined} content={<HTML content={ArticleMockData.fullArticleContent.content}/>} title={ArticleMockData.fullArticleContent.header} meta={{
|
|
95
103
|
category: ArticleMockData.fullArticleContent.meta.category,
|
|
96
|
-
publishedDate: ArticleMockData.fullArticleContent.meta.publishedDate
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
publishedDate: ArticleMockData.fullArticleContent.meta.publishedDate
|
|
105
|
+
}} feedback={{
|
|
106
|
+
likes: (likeCount * 100) / (likeCount + dislikeCount),
|
|
107
|
+
dislikes: (dislikeCount * 100) / (likeCount + dislikeCount),
|
|
108
|
+
reaction,
|
|
109
|
+
onReaction
|
|
101
110
|
}} footer={showFooter
|
|
102
111
|
? {
|
|
103
112
|
feedback: enableFeedback
|
|
104
113
|
? {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
114
|
+
onReaction,
|
|
115
|
+
showThanksMessage: !!reaction,
|
|
116
|
+
reaction
|
|
108
117
|
}
|
|
109
118
|
: undefined,
|
|
110
119
|
tags: showTags
|
|
@@ -198,4 +207,38 @@ ArticleStory.argTypes = {
|
|
|
198
207
|
showMoreLikeThis: { control: { type: 'boolean' } },
|
|
199
208
|
showAttachments: { control: { type: 'boolean' } }
|
|
200
209
|
};
|
|
210
|
+
export const ArticleRatingDemo = () => {
|
|
211
|
+
const [likeCount, setLikeCount] = useState(5);
|
|
212
|
+
const [dislikeCount, setDislikeCount] = useState(2);
|
|
213
|
+
const [reaction, setReaction] = useState();
|
|
214
|
+
const onReaction = reactionParam => {
|
|
215
|
+
if (reactionParam === 'liked') {
|
|
216
|
+
setReaction('liked');
|
|
217
|
+
setLikeCount(prev => prev + 1);
|
|
218
|
+
if (reaction === 'disliked') {
|
|
219
|
+
setDislikeCount(prev => prev - 1);
|
|
220
|
+
}
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
if (reactionParam === 'disliked') {
|
|
224
|
+
setReaction('disliked');
|
|
225
|
+
setDislikeCount(prev => prev + 1);
|
|
226
|
+
if (reaction === 'liked') {
|
|
227
|
+
setLikeCount(prev => prev - 1);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
if (reactionParam === undefined) {
|
|
231
|
+
if (reaction === 'liked') {
|
|
232
|
+
setLikeCount(prev => prev - 1);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
setDislikeCount(prev => prev - 1);
|
|
236
|
+
}
|
|
237
|
+
setReaction(undefined);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
return (<Flex container={{ pad: [1, 1] }}>
|
|
241
|
+
<ArticleRating likes={(likeCount * 100) / (likeCount + dislikeCount)} dislikes={(dislikeCount * 100) / (likeCount + dislikeCount)} onReaction={onReaction} reaction={reaction}/>
|
|
242
|
+
</Flex>);
|
|
243
|
+
};
|
|
201
244
|
//# sourceMappingURL=Article.stories.jsx.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Article.stories.jsx","sourceRoot":"","sources":["../../../src/work/Article/Article.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,aAAa,MAAM,mEAAmE,CAAC;AACnG,OAAO,KAAK,iBAAiB,MAAM,wEAAwE,CAAC;AAC5G,OAAO,KAAK,mBAAmB,MAAM,0EAA0E,CAAC;AAChH,OAAO,EAAE,OAAO,EAAE,aAAa,EAAsB,MAAM,yBAAyB,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;AAExF,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,EAAE,aAAa,EAAE;IAChC,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAeV,MAAM,CAAC,MAAM,YAAY,GAA8B,CAAC,IAAsB,EAAE,EAAE;IAChF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GACvC,QAAQ,EAAsD,CAAC;IACjE,MAAM,CAAC,kBAAkB,EAAE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,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACpD,oBAAoB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtD,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC5C,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAClD,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAClD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CAClD,CAAC","sourcesContent":["import { useEffect, useState } from 'react';\nimport type { MouseEvent } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { registerIcon, createUID, HTML } from '@pega/cosmos-react-core';\nimport * as openIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/open.icon';\nimport * as starIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/star.icon';\nimport * as caretLeftIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/caret-left.icon';\nimport * as thumbsUpSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/thumbs-up-solid.icon';\nimport * as thumbsDownSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/thumbs-down-solid.icon';\nimport { Article, ArticleFooter, ArticleFooterProps } from '@pega/cosmos-react-work';\n\nimport { ArticleMockData } from './Article.mocks';\n\nregisterIcon(openIcon, starIcon, caretLeftIcon, thumbsUpSolidIcon, thumbsDownSolidIcon);\n\nexport default {\n title: 'Work/Article',\n component: Article,\n subcomponents: { ArticleFooter },\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport interface ArticleDemoProps {\n showHeader: boolean;\n backButtonText: string;\n showPrimaryActions: boolean;\n showSecondaryActions: boolean;\n showFooter: boolean;\n enableFeedback: boolean;\n showTags: boolean;\n showRelatedLinks: boolean;\n showMoreLikeThis: boolean;\n showAttachments: boolean;\n}\n\nexport const ArticleStory: StoryFn<ArticleDemoProps> = (args: ArticleDemoProps) => {\n const [feedbackStatus, setFeedbackStatus] =\n useState<Required<ArticleFooterProps>['feedback']['status']>();\n const [showFeedbackThanks, setShowFeedbackThanks] = useState<boolean>(false);\n const [loading, setLoading] = useState<boolean>(true);\n\n const {\n showHeader,\n backButtonText,\n showPrimaryActions,\n showSecondaryActions,\n showFooter,\n enableFeedback,\n showTags,\n showRelatedLinks,\n showMoreLikeThis,\n showAttachments\n } = args;\n\n const onBackToArticlesClick = (event: MouseEvent) => {\n event.preventDefault();\n };\n\n const onFeedbackClick: Required<ArticleFooterProps>['feedback']['onFeedbackClick'] = button => {\n if (button === 'like') {\n if (feedbackStatus === 'liked') {\n setFeedbackStatus(undefined);\n } else {\n setFeedbackStatus('liked');\n setShowFeedbackThanks(true);\n }\n } else if (feedbackStatus === 'disliked') {\n setFeedbackStatus(undefined);\n } else {\n setFeedbackStatus('disliked');\n setShowFeedbackThanks(true);\n }\n };\n\n useEffect(() => {\n setTimeout(() => {\n setLoading(false);\n }, 2000);\n }, []);\n\n return (\n <div\n style={{\n maxWidth: '25rem'\n }}\n >\n <Article\n header={\n showHeader\n ? {\n title: 'Knowledge articles',\n icon: 'book-open'\n }\n : undefined\n }\n backNavigation={{\n title: backButtonText,\n onClick: onBackToArticlesClick\n }}\n primaryActions={\n showPrimaryActions\n ? [\n {\n icon: 'star',\n label: 'Follow',\n id: createUID(),\n onClick: id => {\n action('Follow')(id);\n }\n },\n {\n icon: 'open',\n label: 'Open',\n id: createUID(),\n onClick: id => {\n action('Open')(id);\n }\n }\n ]\n : undefined\n }\n secondaryActions={\n showSecondaryActions\n ? [\n {\n text: 'Send in email',\n id: 'action1',\n onClick: action('Action')\n },\n {\n text: 'Send in chat',\n id: 'action2',\n onClick: action('Action')\n }\n ]\n : undefined\n }\n content={<HTML content={ArticleMockData.fullArticleContent.content} />}\n title={ArticleMockData.fullArticleContent.header}\n meta={{\n category: ArticleMockData.fullArticleContent.meta.category,\n publishedDate: ArticleMockData.fullArticleContent.meta.publishedDate,\n feedback: {\n likes: ArticleMockData.fullArticleContent.meta.likes,\n dislikes: ArticleMockData.fullArticleContent.meta.disLikes\n }\n }}\n footer={\n showFooter\n ? {\n feedback: enableFeedback\n ? {\n showThanksMessage: showFeedbackThanks,\n status: feedbackStatus,\n onFeedbackClick\n }\n : undefined,\n tags: showTags\n ? {\n list: [\n {\n id: 'Retail banking',\n tagName: '#Retail_banking'\n },\n {\n id: 'Billing',\n tagName: '#Billing'\n },\n {\n id: '223444',\n tagName: '#CSR_Skills'\n },\n {\n id: '223446',\n tagName: '#Premium_Customers'\n },\n {\n id: '223447',\n tagName: '#Rare_Customers'\n },\n {\n id: '223448',\n tagName: '#Finance_Customers'\n }\n ],\n onTagClick: action('Tag clicked')\n }\n : undefined,\n relatedLinks: showRelatedLinks\n ? [\n { title: 'Retail banking for beginners', href: 'https://pega.com' },\n { title: 'How to handle premium customers', href: 'https://pega.com' }\n ]\n : undefined,\n relatedArticles: showMoreLikeThis\n ? [\n {\n title: 'What are the implications of change in billing cycle',\n onClick: action('Related article'),\n id: createUID()\n },\n {\n title: 'What is the best billing cycle for premium customers',\n onClick: action('Related article'),\n id: createUID()\n },\n {\n title: 'How to enable automatic bill payment',\n onClick: action('Related article'),\n id: createUID()\n }\n ]\n : undefined,\n attachments: showAttachments\n ? [\n { name: 'Billing cycle FAQ.doc', onDownload: action('On Download') },\n { name: 'Training video.mp4', onDownload: action('On Download') },\n { name: 'Terms and conditions.pdf', onDownload: action('On Download') }\n ]\n : undefined\n }\n : undefined\n }\n loading={loading}\n />\n </div>\n );\n};\n\nArticleStory.args = {\n showHeader: true,\n backButtonText: 'Back to all articles',\n showPrimaryActions: true,\n showSecondaryActions: true,\n showFooter: true,\n enableFeedback: true,\n showTags: true,\n showRelatedLinks: true,\n showMoreLikeThis: true,\n showAttachments: true\n};\n\nArticleStory.argTypes = {\n showHeader: { control: { type: 'boolean' } },\n backButtonText: { control: { type: 'text' } },\n showPrimaryActions: { control: { type: 'boolean' } },\n showSecondaryActions: { control: { type: 'boolean' } },\n showFooter: { control: { type: 'boolean' } },\n enableFeedback: { control: { type: 'boolean' } },\n showTags: { control: { type: 'boolean' } },\n showRelatedLinks: { control: { type: 'boolean' } },\n showMoreLikeThis: { control: { type: 'boolean' } },\n showAttachments: { control: { type: 'boolean' } }\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Article.stories.jsx","sourceRoot":"","sources":["../../../src/work/Article/Article.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AACxF,OAAO,KAAK,aAAa,MAAM,mEAAmE,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGhF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEhD,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,EAAE,aAAa,EAAE;IAChC,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACM,CAAC;AAeV,MAAM,CAAC,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,EAAE;YAC/B,IAAI,QAAQ,KAAK,OAAO,EAAE;gBACxB,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;aAChC;iBAAM;gBACL,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;aACnC;YACD,WAAW,CAAC,SAAS,CAAC,CAAC;SACxB;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAC/B;MAAA,CAAC,aAAa,CACZ,KAAK,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC,SAAS,GAAG,YAAY,CAAC,CAAC,CACtD,QAAQ,CAAC,CAAC,CAAC,YAAY,GAAG,GAAG,CAAC,GAAG,CAAC,SAAS,GAAG,YAAY,CAAC,CAAC,CAC5D,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAEvB;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useEffect, useState } from 'react';\nimport type { MouseEvent } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { registerIcon, createUID, HTML, Flex } from '@pega/cosmos-react-core';\nimport * as openIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/open.icon';\nimport * as starIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/star.icon';\nimport * as caretLeftIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/caret-left.icon';\nimport { Article, ArticleFooter, ArticleRating } from '@pega/cosmos-react-work';\nimport type { ArticleProps, ArticleRatingProps } from '@pega/cosmos-react-work';\n\nimport { ArticleMockData } from './Article.mocks';\n\nregisterIcon(openIcon, starIcon, caretLeftIcon);\n\nexport default {\n title: 'Work/Article',\n component: Article,\n subcomponents: { ArticleFooter },\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport interface ArticleDemoProps {\n showHeader: boolean;\n backButtonText: string;\n showPrimaryActions: boolean;\n showSecondaryActions: boolean;\n showFooter: boolean;\n enableFeedback: boolean;\n showTags: boolean;\n showRelatedLinks: boolean;\n showMoreLikeThis: boolean;\n showAttachments: boolean;\n}\n\nexport const ArticleStory: StoryFn<ArticleDemoProps> = (args: ArticleDemoProps) => {\n const [loading, setLoading] = useState<boolean>(true);\n\n const [likeCount, setLikeCount] = useState(ArticleMockData.fullArticleContent.feedback.likes);\n const [dislikeCount, setDislikeCount] = useState(\n ArticleMockData.fullArticleContent.feedback.disLikes\n );\n const [reaction, setReaction] = useState<ArticleRatingProps['reaction']>(\n ArticleMockData.fullArticleContent.feedback.reaction\n );\n\n const {\n showHeader,\n backButtonText,\n showPrimaryActions,\n showSecondaryActions,\n showFooter,\n enableFeedback,\n showTags,\n showRelatedLinks,\n showMoreLikeThis,\n showAttachments\n } = args;\n\n const onBackToArticlesClick = (event: MouseEvent) => {\n event.preventDefault();\n };\n\n useEffect(() => {\n setTimeout(() => {\n setLoading(false);\n }, 2000);\n }, []);\n\n const onReaction: Required<ArticleProps>['feedback']['onReaction'] = (id, reactionParam) => {\n action('onReaction')(id);\n if (reactionParam === 'liked') {\n setReaction('liked');\n setLikeCount(prev => prev + 1);\n\n if (reaction === 'disliked') {\n setDislikeCount(prev => prev - 1);\n }\n return;\n }\n\n if (reactionParam === 'disliked') {\n setReaction('disliked');\n setDislikeCount(prev => prev + 1);\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n }\n }\n\n if (reactionParam === undefined) {\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n } else {\n setDislikeCount(prev => prev - 1);\n }\n setReaction(undefined);\n }\n };\n\n return (\n <div\n style={{\n maxWidth: '25rem'\n }}\n >\n <Article\n articleId={ArticleMockData.fullArticleContent.articleId}\n header={\n showHeader\n ? {\n title: 'Knowledge articles',\n icon: 'book-open'\n }\n : undefined\n }\n backNavigation={{\n title: backButtonText,\n onClick: onBackToArticlesClick\n }}\n primaryActions={\n showPrimaryActions\n ? [\n {\n icon: 'star',\n label: 'Follow',\n id: createUID(),\n onClick: id => {\n action('Follow')(id);\n }\n },\n {\n icon: 'open',\n label: 'Open',\n id: createUID(),\n onClick: id => {\n action('Open')(id);\n }\n }\n ]\n : undefined\n }\n secondaryActions={\n showSecondaryActions\n ? [\n {\n text: 'Send in email',\n id: 'action1',\n onClick: action('Action')\n },\n {\n text: 'Send in chat',\n id: 'action2',\n onClick: action('Action')\n }\n ]\n : undefined\n }\n content={<HTML content={ArticleMockData.fullArticleContent.content} />}\n title={ArticleMockData.fullArticleContent.header}\n meta={{\n category: ArticleMockData.fullArticleContent.meta.category,\n publishedDate: ArticleMockData.fullArticleContent.meta.publishedDate\n }}\n feedback={{\n likes: (likeCount * 100) / (likeCount + dislikeCount),\n dislikes: (dislikeCount * 100) / (likeCount + dislikeCount),\n reaction,\n onReaction\n }}\n footer={\n showFooter\n ? {\n feedback: enableFeedback\n ? {\n onReaction,\n showThanksMessage: !!reaction,\n reaction\n }\n : undefined,\n tags: showTags\n ? {\n list: [\n {\n id: 'Retail banking',\n tagName: '#Retail_banking'\n },\n {\n id: 'Billing',\n tagName: '#Billing'\n },\n {\n id: '223444',\n tagName: '#CSR_Skills'\n },\n {\n id: '223446',\n tagName: '#Premium_Customers'\n },\n {\n id: '223447',\n tagName: '#Rare_Customers'\n },\n {\n id: '223448',\n tagName: '#Finance_Customers'\n }\n ],\n onTagClick: action('Tag clicked')\n }\n : undefined,\n relatedLinks: showRelatedLinks\n ? [\n { title: 'Retail banking for beginners', href: 'https://pega.com' },\n { title: 'How to handle premium customers', href: 'https://pega.com' }\n ]\n : undefined,\n relatedArticles: showMoreLikeThis\n ? [\n {\n title: 'What are the implications of change in billing cycle',\n onClick: action('Related article'),\n id: createUID()\n },\n {\n title: 'What is the best billing cycle for premium customers',\n onClick: action('Related article'),\n id: createUID()\n },\n {\n title: 'How to enable automatic bill payment',\n onClick: action('Related article'),\n id: createUID()\n }\n ]\n : undefined,\n attachments: showAttachments\n ? [\n { name: 'Billing cycle FAQ.doc', onDownload: action('On Download') },\n { name: 'Training video.mp4', onDownload: action('On Download') },\n { name: 'Terms and conditions.pdf', onDownload: action('On Download') }\n ]\n : undefined\n }\n : undefined\n }\n loading={loading}\n />\n </div>\n );\n};\n\nArticleStory.args = {\n showHeader: true,\n backButtonText: 'Back to all articles',\n showPrimaryActions: true,\n showSecondaryActions: true,\n showFooter: true,\n enableFeedback: true,\n showTags: true,\n showRelatedLinks: true,\n showMoreLikeThis: true,\n showAttachments: true\n};\n\nArticleStory.argTypes = {\n showHeader: { control: { type: 'boolean' } },\n backButtonText: { control: { type: 'text' } },\n showPrimaryActions: { control: { type: 'boolean' } },\n showSecondaryActions: { control: { type: 'boolean' } },\n showFooter: { control: { type: 'boolean' } },\n enableFeedback: { control: { type: 'boolean' } },\n showTags: { control: { type: 'boolean' } },\n showRelatedLinks: { control: { type: 'boolean' } },\n showMoreLikeThis: { control: { type: 'boolean' } },\n showAttachments: { control: { type: 'boolean' } }\n};\n\nexport const ArticleRatingDemo: StoryFn = () => {\n const [likeCount, setLikeCount] = useState(5);\n const [dislikeCount, setDislikeCount] = useState(2);\n const [reaction, setReaction] = useState<ArticleRatingProps['reaction']>();\n\n const onReaction: ArticleRatingProps['onReaction'] = reactionParam => {\n if (reactionParam === 'liked') {\n // no reaction\n // already disliked and liking now\n setReaction('liked');\n setLikeCount(prev => prev + 1);\n if (reaction === 'disliked') {\n setDislikeCount(prev => prev - 1);\n }\n return;\n }\n\n if (reactionParam === 'disliked') {\n // Dislike clicked\n setReaction('disliked');\n setDislikeCount(prev => prev + 1);\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n }\n }\n\n if (reactionParam === undefined) {\n if (reaction === 'liked') {\n setLikeCount(prev => prev - 1);\n } else {\n setDislikeCount(prev => prev - 1);\n }\n setReaction(undefined);\n }\n };\n\n return (\n <Flex container={{ pad: [1, 1] }}>\n <ArticleRating\n likes={(likeCount * 100) / (likeCount + dislikeCount)}\n dislikes={(dislikeCount * 100) / (likeCount + dislikeCount)}\n onReaction={onReaction}\n reaction={reaction}\n />\n </Flex>\n );\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/react';
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
interface ArticleBuddyDemoProps {
|
|
5
|
+
showDisclaimer: boolean;
|
|
6
|
+
showReferences: boolean;
|
|
7
|
+
showActions: boolean;
|
|
8
|
+
showError: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ArticleBuddyDemo: StoryFn<ArticleBuddyDemoProps>;
|
|
11
|
+
//# sourceMappingURL=ArticleBuddy.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArticleBuddy.stories.d.ts","sourceRoot":"","sources":["../../../src/work/ArticleList/ArticleBuddy.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAWtD,wBAGU;AAEV,UAAU,qBAAqB;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB;AAOD,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,qBAAqB,CAgE3D,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { HTML } from '@pega/cosmos-react-core';
|
|
3
|
+
import { ArticleBuddy } from '@pega/cosmos-react-work';
|
|
4
|
+
import { ArticleBuddyMockData } from './ArticleList.mocks';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Work/ArticleList',
|
|
7
|
+
component: ArticleBuddy
|
|
8
|
+
};
|
|
9
|
+
export const ArticleBuddyDemo = (args) => {
|
|
10
|
+
const [searchVal, setSearchVal] = useState('');
|
|
11
|
+
const [loading, setLoading] = useState(false);
|
|
12
|
+
const [searchResult, setSearchResult] = useState();
|
|
13
|
+
const updateBuddyArticles = (mockBuddyArticle) => {
|
|
14
|
+
const actionItems = [
|
|
15
|
+
{ id: '1', text: 'Share' },
|
|
16
|
+
{ id: '2', text: 'Copy' }
|
|
17
|
+
];
|
|
18
|
+
return {
|
|
19
|
+
title: mockBuddyArticle.title,
|
|
20
|
+
content: mockBuddyArticle.content,
|
|
21
|
+
references: mockBuddyArticle.references,
|
|
22
|
+
disclaimer: mockBuddyArticle.disclaimer,
|
|
23
|
+
actions: actionItems
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const fetchSearchResult = () => {
|
|
27
|
+
return new Promise(resolve => {
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
resolve({
|
|
30
|
+
data: updateBuddyArticles(ArticleBuddyMockData)
|
|
31
|
+
});
|
|
32
|
+
}, 1000);
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
const getResults = async () => {
|
|
36
|
+
setLoading(true);
|
|
37
|
+
const res = await fetchSearchResult();
|
|
38
|
+
setSearchResult(res.data);
|
|
39
|
+
setLoading(false);
|
|
40
|
+
};
|
|
41
|
+
const queryParams = {
|
|
42
|
+
placeholder: 'Ask your question here...',
|
|
43
|
+
value: searchVal,
|
|
44
|
+
onChange: (e) => setSearchVal(e.target.value)
|
|
45
|
+
};
|
|
46
|
+
return (<ArticleBuddy query={queryParams} onSubmit={getResults} onClear={() => {
|
|
47
|
+
setSearchVal('');
|
|
48
|
+
}} title={searchResult?.title} actions={args.showActions ? searchResult?.actions : []} content={!args.showError && searchResult?.content ? (<HTML content={ArticleBuddyMockData.content}/>) : undefined} disclaimer={args.showDisclaimer ? ArticleBuddyMockData.disclaimer : undefined} references={args.showReferences ? searchResult?.references : undefined} loading={loading} error={args.showError}/>);
|
|
49
|
+
};
|
|
50
|
+
ArticleBuddyDemo.args = {
|
|
51
|
+
showDisclaimer: true,
|
|
52
|
+
showActions: true,
|
|
53
|
+
showReferences: true,
|
|
54
|
+
showError: false
|
|
55
|
+
};
|
|
56
|
+
ArticleBuddyDemo.argTypes = {
|
|
57
|
+
showDisclaimer: { control: { type: 'boolean' } },
|
|
58
|
+
showActions: { control: { type: 'boolean' } },
|
|
59
|
+
showReferences: { control: { type: 'boolean' } },
|
|
60
|
+
showError: { control: { type: 'boolean' } }
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=ArticleBuddy.stories.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArticleBuddy.stories.jsx","sourceRoot":"","sources":["../../../src/work/ArticleList/ArticleBuddy.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,YAAY;CAChB,CAAC;AAcV,MAAM,CAAC,MAAM,gBAAgB,GAAmC,CAAC,IAA2B,EAAE,EAAE;IAC9F,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,EAAqB,CAAC;IAEtE,MAAM,mBAAmB,GAAG,CAAC,gBAAmC,EAAE,EAAE;QAClE,MAAM,WAAW,G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 'react';\nimport type { ChangeEvent } from 'react';\n\nimport { HTML } from '@pega/cosmos-react-core';\nimport type { OmitStrict, TextAreaProps } from '@pega/cosmos-react-core';\nimport { ArticleBuddy } from '@pega/cosmos-react-work';\nimport type { ArticleBuddyProps } from '@pega/cosmos-react-work';\n\nimport { ArticleBuddyMockData } from './ArticleList.mocks';\n\nexport default {\n title: 'Work/ArticleList',\n component: ArticleBuddy\n} as Meta;\n\ninterface ArticleBuddyDemoProps {\n showDisclaimer: boolean;\n showReferences: boolean;\n showActions: boolean;\n showError: boolean;\n}\n\ntype MockBuddyArticles = OmitStrict<\n ArticleBuddyProps,\n 'query' | 'loading' | 'onSubmit' | 'onClear'\n>;\n\nexport const ArticleBuddyDemo: StoryFn<ArticleBuddyDemoProps> = (args: ArticleBuddyDemoProps) => {\n const [searchVal, setSearchVal] = useState('');\n const [loading, setLoading] = useState(false);\n const [searchResult, setSearchResult] = useState<MockBuddyArticles>();\n\n const updateBuddyArticles = (mockBuddyArticle: MockBuddyArticles) => {\n const actionItems = [\n { id: '1', text: 'Share' },\n { id: '2', text: 'Copy' }\n ];\n return {\n title: mockBuddyArticle.title,\n content: mockBuddyArticle.content,\n references: mockBuddyArticle.references,\n disclaimer: mockBuddyArticle.disclaimer,\n actions: actionItems\n };\n };\n\n const fetchSearchResult: () => Promise<{\n data: MockBuddyArticles;\n }> = () => {\n return new Promise(resolve => {\n setTimeout(() => {\n resolve({\n data: updateBuddyArticles(ArticleBuddyMockData)\n });\n }, 1000);\n });\n };\n\n const getResults = async () => {\n setLoading(true);\n const res = await fetchSearchResult();\n setSearchResult(res.data);\n setLoading(false);\n };\n\n const queryParams: TextAreaProps = {\n placeholder: 'Ask your question here...',\n value: searchVal,\n onChange: (e: ChangeEvent<HTMLTextAreaElement>) => setSearchVal(e.target.value)\n };\n\n return (\n <ArticleBuddy\n query={queryParams}\n onSubmit={getResults}\n onClear={() => {\n setSearchVal('');\n }}\n title={searchResult?.title}\n actions={args.showActions ? searchResult?.actions : []}\n content={\n !args.showError && searchResult?.content ? (\n <HTML content={ArticleBuddyMockData.content} />\n ) : undefined\n }\n disclaimer={args.showDisclaimer ? ArticleBuddyMockData.disclaimer : undefined}\n references={args.showReferences ? searchResult?.references : undefined}\n loading={loading}\n error={args.showError}\n />\n );\n};\n\nArticleBuddyDemo.args = {\n showDisclaimer: true,\n showActions: true,\n showReferences: true,\n showError: false\n};\n\nArticleBuddyDemo.argTypes = {\n showDisclaimer: { control: { type: 'boolean' } },\n showActions: { control: { type: 'boolean' } },\n showReferences: { control: { type: 'boolean' } },\n showError: { control: { type: 'boolean' } }\n};\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ArticleBuddyProps } from '@pega/cosmos-react-work';
|
|
1
2
|
export declare const suggestedMock: {
|
|
2
3
|
count: number;
|
|
3
4
|
articles: ({
|
|
@@ -8,10 +9,12 @@ export declare const suggestedMock: {
|
|
|
8
9
|
meta: {
|
|
9
10
|
category: string;
|
|
10
11
|
publishedDate: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
};
|
|
13
|
+
feedback: {
|
|
14
|
+
likes: number;
|
|
15
|
+
dislikes: number;
|
|
16
|
+
liked: boolean;
|
|
17
|
+
disliked: boolean;
|
|
15
18
|
};
|
|
16
19
|
isFollowed: boolean;
|
|
17
20
|
isLiked: boolean;
|
|
@@ -24,10 +27,12 @@ export declare const suggestedMock: {
|
|
|
24
27
|
meta: {
|
|
25
28
|
category: string;
|
|
26
29
|
publishedDate: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
};
|
|
31
|
+
feedback: {
|
|
32
|
+
likes: number;
|
|
33
|
+
dislikes: number;
|
|
34
|
+
liked: boolean;
|
|
35
|
+
disliked: boolean;
|
|
31
36
|
};
|
|
32
37
|
isFollowed: boolean;
|
|
33
38
|
isLiked: boolean;
|
|
@@ -47,10 +52,12 @@ export declare const followedMock: {
|
|
|
47
52
|
meta: {
|
|
48
53
|
category: string;
|
|
49
54
|
publishedDate: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
};
|
|
56
|
+
feedback: {
|
|
57
|
+
likes: number;
|
|
58
|
+
dislikes: number;
|
|
59
|
+
liked: boolean;
|
|
60
|
+
disliked: boolean;
|
|
54
61
|
};
|
|
55
62
|
isFollowed: boolean;
|
|
56
63
|
isLiked: boolean;
|
|
@@ -66,10 +73,12 @@ export declare const followedMock: {
|
|
|
66
73
|
meta: {
|
|
67
74
|
category: string;
|
|
68
75
|
publishedDate: string;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
};
|
|
77
|
+
feedback: {
|
|
78
|
+
likes: number;
|
|
79
|
+
dislikes: number;
|
|
80
|
+
liked: boolean;
|
|
81
|
+
disliked: boolean;
|
|
73
82
|
};
|
|
74
83
|
isFollowed: boolean;
|
|
75
84
|
isLiked: boolean;
|
|
@@ -105,10 +114,12 @@ export declare const searchMock: {
|
|
|
105
114
|
meta: {
|
|
106
115
|
category: string;
|
|
107
116
|
publishedDate: string;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
117
|
+
};
|
|
118
|
+
feedback: {
|
|
119
|
+
likes: number;
|
|
120
|
+
dislikes: number;
|
|
121
|
+
liked: boolean;
|
|
122
|
+
disliked: boolean;
|
|
112
123
|
};
|
|
113
124
|
isFollowed: boolean;
|
|
114
125
|
isLiked: boolean;
|
|
@@ -137,4 +148,12 @@ export declare const searchMock: {
|
|
|
137
148
|
primary: string;
|
|
138
149
|
}[];
|
|
139
150
|
};
|
|
151
|
+
export declare const ArticleBuddyMockData: Pick<ArticleBuddyProps, 'title' | 'references' | 'disclaimer'> & {
|
|
152
|
+
content: string;
|
|
153
|
+
};
|
|
154
|
+
export declare const ArticleBuddyActions: {
|
|
155
|
+
id: string;
|
|
156
|
+
text: string;
|
|
157
|
+
onClick: () => void;
|
|
158
|
+
}[];
|
|
140
159
|
//# sourceMappingURL=ArticleList.mocks.d.ts.map
|