@pega/cosmos-react-demos 4.0.0-dev.20.0 → 4.0.0-dev.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsx/build/AppShell/AppShell.stories.d.ts +5 -5
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +1 -2
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +1 -2
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
- package/jsx/build/PageBanner/PageBanner.stories.d.ts +5 -5
- package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
- package/jsx/build/PageBanner/PageBanner.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +4 -4
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
- package/jsx/core/AIButton/AIButton.stories.d.ts +7 -7
- package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -1
- package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +5 -5
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts +9 -9
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
- package/jsx/core/Backdrop/Backdrop.stories.d.ts +5 -5
- package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
- package/jsx/core/Backdrop/Backdrop.stories.jsx.map +1 -1
- package/jsx/core/Badges/Alert.stories.d.ts +4 -4
- package/jsx/core/Badges/Alert.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Alert.stories.jsx.map +1 -1
- package/jsx/core/Badges/Count.stories.d.ts +4 -4
- package/jsx/core/Badges/Count.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Count.stories.jsx.map +1 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +4 -4
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -1
- package/jsx/core/Badges/Selection.stories.d.ts +3 -3
- package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Selection.stories.jsx.map +1 -1
- package/jsx/core/Badges/Status.stories.d.ts +5 -5
- package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Status.stories.jsx.map +1 -1
- package/jsx/core/Badges/Tag.stories.d.ts +3 -3
- package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Tag.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +7 -7
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.jsx.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
- package/jsx/core/Button/Button.stories.d.ts +9 -9
- package/jsx/core/Button/Button.stories.d.ts.map +1 -1
- package/jsx/core/Button/Button.stories.jsx.map +1 -1
- package/jsx/core/Card/Card.stories.d.ts +6 -6
- package/jsx/core/Card/Card.stories.d.ts.map +1 -1
- package/jsx/core/Card/Card.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -6
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +9 -9
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
- package/jsx/core/Configuration/Configuration.stories.d.ts +8 -8
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -4
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.jsx +1 -2
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
- package/jsx/core/Currency/Currency.stories.d.ts +5 -5
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DangerButton/DangerButton.stories.d.ts +4 -4
- package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
- package/jsx/core/DangerButton/DangerButton.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +13 -13
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts +5 -5
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +5 -5
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -1
- package/jsx/core/Drawer/Drawer.stories.d.ts +5 -5
- package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -1
- package/jsx/core/Drawer/Drawer.stories.jsx.map +1 -1
- package/jsx/core/Email/EmailDisplay.stories.d.ts +4 -4
- package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -1
- package/jsx/core/Email/EmailDisplay.stories.jsx.map +1 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -1
- package/jsx/core/EmptyState/EmptyState.stories.d.ts +4 -4
- package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/jsx/core/EmptyState/EmptyState.stories.jsx.map +1 -1
- package/jsx/core/ErrorState/ErrorState.stories.d.ts +4 -4
- package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
- package/jsx/core/ErrorState/ErrorState.stories.jsx.map +1 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +4 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +5 -5
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
- package/jsx/core/File/FileDisplay.stories.d.ts +6 -6
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/File/FileInput.stories.d.ts +4 -4
- package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
- package/jsx/core/File/FileInput.stories.jsx.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +10 -10
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
- package/jsx/core/Flex/FlexItem.stories.d.ts +6 -6
- package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -1
- package/jsx/core/Flex/FlexItem.stories.jsx.map +1 -1
- package/jsx/core/Form/Form.stories.d.ts +8 -8
- package/jsx/core/Form/Form.stories.d.ts.map +1 -1
- package/jsx/core/Form/Form.stories.jsx.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +12 -12
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.jsx.map +1 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +6 -6
- package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridItem.stories.jsx.map +1 -1
- package/jsx/core/HTML/HTML.stories.d.ts +4 -4
- package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
- package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
- package/jsx/core/Icon/Icon.stories.d.ts +6 -6
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.d.ts +4 -4
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
- package/jsx/core/Image/Image.stories.d.ts +3 -3
- package/jsx/core/Image/Image.stories.d.ts.map +1 -1
- package/jsx/core/Image/Image.stories.jsx.map +1 -1
- package/jsx/core/Input/Input.stories.d.ts +6 -6
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Label/Label.stories.d.ts +5 -5
- package/jsx/core/Label/Label.stories.d.ts.map +1 -1
- package/jsx/core/Label/Label.stories.jsx.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.d.ts +3 -3
- package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
- package/jsx/core/Link/Link.stories.d.ts +7 -7
- package/jsx/core/Link/Link.stories.d.ts.map +1 -1
- package/jsx/core/Link/Link.stories.jsx.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +4 -4
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
- package/jsx/core/List/OrderedList.stories.d.ts +4 -4
- package/jsx/core/List/OrderedList.stories.d.ts.map +1 -1
- package/jsx/core/List/OrderedList.stories.jsx.map +1 -1
- package/jsx/core/List/UnorderedList.stories.d.ts +4 -4
- package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -1
- package/jsx/core/List/UnorderedList.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
- package/jsx/core/LiveLog/LiveLog.stories.d.ts +4 -4
- package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
- package/jsx/core/LiveLog/LiveLog.stories.jsx.map +1 -1
- package/jsx/core/Location/Location.stories.d.ts +7 -7
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +6 -2
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Menu/Menu.stories.d.ts +6 -6
- package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +7 -7
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
- package/jsx/core/MetaList/MetaList.stories.d.ts +4 -4
- package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -1
- package/jsx/core/MetaList/MetaList.stories.jsx.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +11 -11
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -5
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
- package/jsx/core/NoValue/NoValue.stories.d.ts +4 -4
- package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -1
- package/jsx/core/NoValue/NoValue.stories.jsx.map +1 -1
- package/jsx/core/Number/Number.stories.d.ts +7 -7
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +7 -7
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/Pagination/Pagination.stories.d.ts +4 -4
- package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -1
- package/jsx/core/Pagination/Pagination.stories.jsx.map +1 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts +5 -5
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts +7 -7
- package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/Progress/Progress.stories.d.ts +5 -5
- package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
- package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
- package/jsx/core/QRCode/QRCode.stories.d.ts +3 -3
- package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -1
- package/jsx/core/QRCode/QRCode.stories.jsx.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -6
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/Rating/Rating.stories.d.ts +5 -5
- package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
- package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +5 -5
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts +5 -5
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/Sentiment/Sentiment.stories.d.ts +5 -5
- package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
- package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -1
- package/jsx/core/Slider/Slider.stories.d.ts +4 -4
- package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +4 -4
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +5 -5
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
- package/jsx/core/Switch/Switch.stories.d.ts +6 -6
- package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
- package/jsx/core/Switch/Switch.stories.jsx.map +1 -1
- package/jsx/core/Table/Table.stories.d.ts +6 -6
- package/jsx/core/Table/Table.stories.d.ts.map +1 -1
- package/jsx/core/Table/Table.stories.jsx.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +4 -4
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
- package/jsx/core/Text/Text.stories.d.ts +5 -5
- package/jsx/core/Text/Text.stories.d.ts.map +1 -1
- package/jsx/core/Text/Text.stories.jsx.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +5 -5
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +3 -3
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +5 -5
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.jsx.map +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts +5 -5
- package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
- package/jsx/core/URL/URL.stories.d.ts +4 -4
- package/jsx/core/URL/URL.stories.d.ts.map +1 -1
- package/jsx/core/URL/URL.stories.jsx.map +1 -1
- package/jsx/cs/Article/Article.stories.d.ts +3 -3
- package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
- package/jsx/cs/Article/Article.stories.jsx.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.mocks.js +1 -1
- package/jsx/cs/ArticleList/ArticleList.mocks.js.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts +3 -3
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
- package/jsx/cs/DialPad/DialPad.stories.d.ts +4 -4
- package/jsx/cs/DialPad/DialPad.stories.d.ts.map +1 -1
- package/jsx/cs/DialPad/DialPad.stories.jsx.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +4 -4
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
- package/jsx/cs/Picker/Picker.stories.d.ts +6 -6
- package/jsx/cs/Picker/Picker.stories.d.ts.map +1 -1
- package/jsx/cs/Picker/Picker.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +5 -5
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +8 -8
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +11 -11
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +8 -2
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts +15 -15
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +18 -13
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx +74 -8
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +5 -5
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +12 -12
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +8 -0
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
- package/jsx/social/Feed/FeedNewPost.mocks.jsx +44 -0
- package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -0
- package/jsx/social/Feed/FeedPost.mocks.d.ts +4 -0
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -0
- package/jsx/social/Feed/FeedPost.mocks.jsx +167 -0
- package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -0
- package/jsx/social/Feed/FeedReply.mocks.d.ts +13 -0
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -0
- package/jsx/social/Feed/FeedReply.mocks.jsx +76 -0
- package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +4 -4
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -1
- package/jsx/tools/DevTools/DevTools.stories.d.ts +4 -4
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -1
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
- package/jsx/work/Assignments/Assignments.stories.d.ts +4 -4
- package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -1
- package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +3 -3
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +4 -4
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts +3 -3
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts +3 -3
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/work/Predictions/Predictions.stories.d.ts +3 -3
- package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -1
- package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +3 -3
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.stories.d.ts +4 -4
- package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Tags/Tags.stories.d.ts +3 -3
- package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
- package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts +3 -3
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +4 -4
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +6 -6
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.stories.d.ts +5 -5
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/wss/CaseView/CaseView.stories.d.ts +3 -3
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.stories.jsx +2 -2
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +5 -5
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +8 -8
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +1 -2
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +5 -5
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -3
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -2
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -6
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +3 -3
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +1 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +6 -6
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
- package/lib/build/PageBanner/PageBanner.stories.d.ts +5 -5
- package/lib/build/PageBanner/PageBanner.stories.d.ts.map +1 -1
- package/lib/build/PageBanner/PageBanner.stories.js.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +4 -4
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +5 -5
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +5 -5
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.js.map +1 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +4 -4
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/lib/build/Workbench/Workbench.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +5 -5
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +4 -4
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +3 -3
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
- package/lib/core/AIButton/AIButton.stories.d.ts +7 -7
- package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -1
- package/lib/core/AIButton/AIButton.stories.js.map +1 -1
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +4 -4
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +5 -5
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Avatar/Avatar.stories.d.ts +9 -9
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Backdrop/Backdrop.stories.d.ts +5 -5
- package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
- package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
- package/lib/core/Badges/Alert.stories.d.ts +4 -4
- package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
- package/lib/core/Badges/Alert.stories.js.map +1 -1
- package/lib/core/Badges/Count.stories.d.ts +4 -4
- package/lib/core/Badges/Count.stories.d.ts.map +1 -1
- package/lib/core/Badges/Count.stories.js.map +1 -1
- package/lib/core/Badges/Keyboard.stories.d.ts +4 -4
- package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
- package/lib/core/Badges/Keyboard.stories.js.map +1 -1
- package/lib/core/Badges/Selection.stories.d.ts +3 -3
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
- package/lib/core/Badges/Selection.stories.js.map +1 -1
- package/lib/core/Badges/Status.stories.d.ts +5 -5
- package/lib/core/Badges/Status.stories.d.ts.map +1 -1
- package/lib/core/Badges/Status.stories.js.map +1 -1
- package/lib/core/Badges/Tag.stories.d.ts +3 -3
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
- package/lib/core/Badges/Tag.stories.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +7 -7
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts +4 -4
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/Button/Button.stories.d.ts +9 -9
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.js.map +1 -1
- package/lib/core/Card/Card.stories.d.ts +6 -6
- package/lib/core/Card/Card.stories.d.ts.map +1 -1
- package/lib/core/Card/Card.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -6
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -5
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.d.ts +9 -9
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts +3 -3
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -1
- package/lib/core/Configuration/Configuration.stories.d.ts +8 -8
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.stories.js.map +1 -1
- package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -4
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/lib/core/CreditCard/CreditCard.stories.js +1 -2
- package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
- package/lib/core/Currency/Currency.stories.d.ts +5 -5
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.js.map +1 -1
- package/lib/core/DangerButton/DangerButton.stories.d.ts +4 -4
- package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
- package/lib/core/DangerButton/DangerButton.stories.js.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +13 -13
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +5 -5
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.d.ts +5 -5
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
- package/lib/core/Dialog/Dialog.stories.d.ts +5 -5
- package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
- package/lib/core/Dialog/Dialog.stories.js.map +1 -1
- package/lib/core/Drawer/Drawer.stories.d.ts +5 -5
- package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
- package/lib/core/Drawer/Drawer.stories.js.map +1 -1
- package/lib/core/Email/EmailDisplay.stories.d.ts +4 -4
- package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
- package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +6 -6
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.d.ts +4 -4
- package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
- package/lib/core/ErrorState/ErrorState.stories.d.ts +4 -4
- package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +5 -5
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +4 -4
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +5 -5
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +4 -4
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
- package/lib/core/File/FileDisplay.stories.d.ts +6 -6
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/File/FileInput.stories.d.ts +4 -4
- package/lib/core/File/FileInput.stories.d.ts.map +1 -1
- package/lib/core/File/FileInput.stories.js.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +10 -10
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
- package/lib/core/Flex/FlexItem.stories.d.ts +6 -6
- package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
- package/lib/core/Flex/FlexItem.stories.js.map +1 -1
- package/lib/core/Form/Form.stories.d.ts +8 -8
- package/lib/core/Form/Form.stories.d.ts.map +1 -1
- package/lib/core/Form/Form.stories.js.map +1 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +12 -12
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridContainer.stories.js.map +1 -1
- package/lib/core/Grid/GridItem.stories.d.ts +6 -6
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridItem.stories.js.map +1 -1
- package/lib/core/HTML/HTML.stories.d.ts +4 -4
- package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
- package/lib/core/HTML/HTML.stories.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +6 -6
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.d.ts +4 -4
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
- package/lib/core/Image/Image.stories.d.ts +3 -3
- package/lib/core/Image/Image.stories.d.ts.map +1 -1
- package/lib/core/Image/Image.stories.js.map +1 -1
- package/lib/core/Input/Input.stories.d.ts +6 -6
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Label/Label.stories.d.ts +5 -5
- package/lib/core/Label/Label.stories.d.ts.map +1 -1
- package/lib/core/Label/Label.stories.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.d.ts +3 -3
- package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/Link/Link.stories.d.ts +7 -7
- package/lib/core/Link/Link.stories.d.ts.map +1 -1
- package/lib/core/Link/Link.stories.js.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +4 -4
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
- package/lib/core/List/OrderedList.stories.d.ts +4 -4
- package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
- package/lib/core/List/OrderedList.stories.js.map +1 -1
- package/lib/core/List/UnorderedList.stories.d.ts +4 -4
- package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
- package/lib/core/List/UnorderedList.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +5 -5
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
- package/lib/core/LiveLog/LiveLog.stories.d.ts +4 -4
- package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
- package/lib/core/LiveLog/LiveLog.stories.js.map +1 -1
- package/lib/core/Location/Location.stories.d.ts +7 -7
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +6 -2
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Menu/Menu.stories.d.ts +6 -6
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +7 -7
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
- package/lib/core/MetaList/MetaList.stories.d.ts +4 -4
- package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
- package/lib/core/MetaList/MetaList.stories.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +11 -11
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -5
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
- package/lib/core/NoValue/NoValue.stories.d.ts +4 -4
- package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -1
- package/lib/core/NoValue/NoValue.stories.js.map +1 -1
- package/lib/core/Number/Number.stories.d.ts +7 -7
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +7 -7
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/Pagination/Pagination.stories.d.ts +4 -4
- package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
- package/lib/core/Pagination/Pagination.stories.js.map +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +4 -4
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts +5 -5
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.js.map +1 -1
- package/lib/core/Popover/Popover.stories.d.ts +7 -7
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/Progress/Progress.stories.d.ts +5 -5
- package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
- package/lib/core/Progress/Progress.stories.js.map +1 -1
- package/lib/core/QRCode/QRCode.stories.d.ts +3 -3
- package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -1
- package/lib/core/QRCode/QRCode.stories.js.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -6
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +5 -5
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/Rating/Rating.stories.d.ts +5 -5
- package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
- package/lib/core/Rating/Rating.stories.js.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.d.ts +5 -5
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts +5 -5
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.d.ts +5 -5
- package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts +4 -4
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
- package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -1
- package/lib/core/Slider/Slider.stories.d.ts +4 -4
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.js.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +4 -4
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +5 -5
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
- package/lib/core/Switch/Switch.stories.d.ts +6 -6
- package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
- package/lib/core/Switch/Switch.stories.js.map +1 -1
- package/lib/core/Table/Table.stories.d.ts +6 -6
- package/lib/core/Table/Table.stories.d.ts.map +1 -1
- package/lib/core/Table/Table.stories.js.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +4 -4
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.js.map +1 -1
- package/lib/core/Text/Text.stories.d.ts +5 -5
- package/lib/core/Text/Text.stories.d.ts.map +1 -1
- package/lib/core/Text/Text.stories.js.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +5 -5
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.js.map +1 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +3 -3
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/lib/core/Toaster/Toaster.stories.js.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +5 -5
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/lib/core/Tree/Tree.stories.d.ts +5 -5
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.js.map +1 -1
- package/lib/core/URL/URL.stories.d.ts +4 -4
- package/lib/core/URL/URL.stories.d.ts.map +1 -1
- package/lib/core/URL/URL.stories.js.map +1 -1
- package/lib/cs/Article/Article.stories.d.ts +3 -3
- package/lib/cs/Article/Article.stories.d.ts.map +1 -1
- package/lib/cs/Article/Article.stories.js.map +1 -1
- package/lib/cs/ArticleList/ArticleList.mocks.js +1 -1
- package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +3 -3
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +4 -4
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -5
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
- package/lib/cs/DialPad/DialPad.stories.d.ts +4 -4
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -1
- package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +3 -3
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +4 -4
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
- package/lib/cs/Picker/Picker.stories.d.ts +6 -6
- package/lib/cs/Picker/Picker.stories.d.ts.map +1 -1
- package/lib/cs/Picker/Picker.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +5 -5
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +4 -4
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts +1 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -3
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +3 -3
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
- package/lib/rte/Editor/Editor.stories.d.ts +8 -8
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -4
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +6 -6
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +11 -11
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +8 -2
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +15 -15
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Feed/Feed.mocks.d.ts +18 -13
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +74 -8
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +5 -5
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +12 -12
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.d.ts +8 -0
- package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -0
- package/lib/social/Feed/FeedNewPost.mocks.js +46 -0
- package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -0
- package/lib/social/Feed/FeedPost.mocks.d.ts +4 -0
- package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -0
- package/lib/social/Feed/FeedPost.mocks.js +165 -0
- package/lib/social/Feed/FeedPost.mocks.js.map +1 -0
- package/lib/social/Feed/FeedReply.mocks.d.ts +13 -0
- package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -0
- package/lib/social/Feed/FeedReply.mocks.js +74 -0
- package/lib/social/Feed/FeedReply.mocks.js.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +4 -4
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -1
- package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -1
- package/lib/tools/DevTools/DevTools.stories.d.ts +4 -4
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -1
- package/lib/tools/DevTools/DevTools.stories.js.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +7 -7
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +4 -4
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
- package/lib/work/Assignments/Assignments.stories.d.ts +4 -4
- package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -1
- package/lib/work/Assignments/Assignments.stories.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +3 -3
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- 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/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -3
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.d.ts +4 -4
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts +3 -3
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts +3 -3
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -4
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/work/Predictions/Predictions.stories.d.ts +3 -3
- package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -1
- package/lib/work/Predictions/Predictions.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +3 -3
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.stories.d.ts +4 -4
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
- package/lib/work/Stages/Stages.stories.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +3 -3
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Tags/Tags.stories.d.ts +3 -3
- package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
- package/lib/work/Tags/Tags.stories.js.map +1 -1
- package/lib/work/Tasks/TaskList.stories.d.ts +3 -3
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/lib/work/Tasks/TaskList.stories.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts +4 -4
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +6 -6
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.stories.js.map +1 -1
- package/lib/wss/AppShell/AppShell.stories.d.ts +5 -5
- package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
- package/lib/wss/CaseView/CaseView.stories.d.ts +3 -3
- package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/wss/CaseView/CaseView.stories.js +2 -2
- package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +3 -3
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +3 -3
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
- package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -1
- package/package.json +17 -17
- package/jsx/social/Feed/FeedNewPost.stories.d.ts +0 -10
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx +0 -81
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts +0 -8
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +0 -266
- package/jsx/social/Feed/FeedPost.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +0 -16
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +0 -112
- package/jsx/social/Feed/FeedReply.stories.jsx.map +0 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts +0 -10
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx +0 -60
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +0 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts +0 -10
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedNewPost.stories.js +0 -83
- package/lib/social/Feed/FeedNewPost.stories.js.map +0 -1
- package/lib/social/Feed/FeedPost.stories.d.ts +0 -8
- package/lib/social/Feed/FeedPost.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedPost.stories.js +0 -259
- package/lib/social/Feed/FeedPost.stories.js.map +0 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +0 -16
- package/lib/social/Feed/FeedReply.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedReply.stories.js +0 -108
- package/lib/social/Feed/FeedReply.stories.js.map +0 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +0 -10
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +0 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +0 -61
- package/lib/social/Feed/FeedReplyInput.stories.js.map +0 -1
|
@@ -278,6 +278,20 @@ export const availableRecipients = [
|
|
|
278
278
|
visual: _jsx(Avatar, { size: 'l', name: 'Dean Thomas' }),
|
|
279
279
|
value: 'thomd',
|
|
280
280
|
id: 'thomd'
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
primary: 'Louie Santos',
|
|
284
|
+
secondary: ['Marketing Specialist'],
|
|
285
|
+
visual: _jsx(Avatar, { size: 'l', name: 'Louie Santos' }),
|
|
286
|
+
value: 'santl',
|
|
287
|
+
id: 'santl'
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
primary: 'Margaret Foster',
|
|
291
|
+
secondary: ['Architect', 'Designer'],
|
|
292
|
+
visual: _jsx(Avatar, { size: 'l', name: 'Margaret Foster' }),
|
|
293
|
+
value: 'fostm',
|
|
294
|
+
id: 'fostm'
|
|
281
295
|
}
|
|
282
296
|
];
|
|
283
297
|
export const feedPosts = [
|
|
@@ -290,9 +304,7 @@ export const feedPosts = [
|
|
|
290
304
|
postType: 'private',
|
|
291
305
|
replies: [],
|
|
292
306
|
likes: generatedLikes,
|
|
293
|
-
likeCount: generatedLikes.length
|
|
294
|
-
userStatus: 'active',
|
|
295
|
-
renderFeed: false
|
|
307
|
+
likeCount: generatedLikes.length
|
|
296
308
|
},
|
|
297
309
|
{
|
|
298
310
|
id: createUID(),
|
|
@@ -300,15 +312,69 @@ export const feedPosts = [
|
|
|
300
312
|
icon: 'robot-solid',
|
|
301
313
|
username: 'feed_bot',
|
|
302
314
|
content: (_jsx(Link, { href: 'https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter', children: _jsxs(Flex, { container: { direction: 'column' }, children: ["Check out this awesome event!", _jsx(Image, { src: 'https://pbs.twimg.com/media/EoKHAUKWEAM5hpz?format=jpg&name=medium', alt: 'Pegasystems' })] }) })),
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
renderFeed: false
|
|
315
|
+
postType: 'private',
|
|
316
|
+
replies: []
|
|
306
317
|
},
|
|
307
318
|
{
|
|
308
319
|
id: createUID(),
|
|
320
|
+
fullname: 'Feed Bot',
|
|
321
|
+
icon: 'robot-solid',
|
|
322
|
+
username: 'feed_bot',
|
|
309
323
|
content: (_jsx(Link, { href: 'https://www.pega.com/products/sales-automation', children: _jsxs(Flex, { container: { direction: 'column' }, children: ["Sales Automation makes business happen.", _jsx(Image, { src: 'https://cf-images.us-east-1.prod.boltdns.net/v1/static/1900410236/893966f4-f7e1-41f0-9cc2-e3064273d3aa/72837f91-61a1-455b-a7e3-126972b61ddd/1280x720/match/image.jpg', alt: 'Pega Sales Automation' })] }) })),
|
|
310
|
-
|
|
311
|
-
|
|
324
|
+
postType: 'private',
|
|
325
|
+
replies: []
|
|
326
|
+
}
|
|
327
|
+
];
|
|
328
|
+
export const feedUserGlimpseDetails = [
|
|
329
|
+
{
|
|
330
|
+
id: 'demoUser',
|
|
331
|
+
username: 'demo_user',
|
|
332
|
+
heading: {
|
|
333
|
+
primary: 'Demo User',
|
|
334
|
+
secondary: 'Mock data for the user of this demo',
|
|
335
|
+
visual: _jsx(Avatar, { size: 'l', name: 'Demo User' })
|
|
336
|
+
},
|
|
337
|
+
fields: [
|
|
338
|
+
{
|
|
339
|
+
name: 'Project',
|
|
340
|
+
value: 'Cosmos Demo'
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: 'Phone number',
|
|
344
|
+
value: _jsx(PhoneDisplay, { value: '(111) 111-1111' })
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: 'Email',
|
|
348
|
+
value: _jsx(EmailDisplay, { value: 'demo.user@example.com' })
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: 'feedBot',
|
|
354
|
+
username: 'feed_bot',
|
|
355
|
+
heading: {
|
|
356
|
+
primary: 'Feed Bot',
|
|
357
|
+
secondary: 'A bot that leaves messages for this demo',
|
|
358
|
+
visual: _jsx(Avatar, { size: 'l', name: 'Feed Bot', icon: 'robot-solid' })
|
|
359
|
+
},
|
|
360
|
+
fields: [
|
|
361
|
+
{
|
|
362
|
+
name: 'Project',
|
|
363
|
+
value: 'Cosmos Demo'
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
name: 'Phone number',
|
|
367
|
+
value: _jsx(PhoneDisplay, { value: '(010) 101-0101' })
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: 'Email',
|
|
371
|
+
value: _jsx(EmailDisplay, { value: 'feed.bot@example.com' })
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: 'Reports to',
|
|
375
|
+
value: 'Demo User'
|
|
376
|
+
}
|
|
377
|
+
]
|
|
312
378
|
}
|
|
313
379
|
];
|
|
314
380
|
//# sourceMappingURL=Feed.mocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feed.mocks.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.mocks.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACV,MAAM,yBAAyB,CAAC;AAYjC,iBAAiB;AACjB,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,aAAa;aACrB;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,KAAC,YAAY,IAAC,KAAK,EAAC,gBAAgB,GAAG;aAC/C;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,KAAC,YAAY,IAAC,KAAK,EAAC,mBAAmB,GAAG;aAClD;YACD;gBACE,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,YAAY;aACpB;SACF;QACD,MAAM,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,cAAc,GAAG;KAChD;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;QAC5D,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,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C,KAAK,IACJ,GAAG,EAAC,oEAAoE,EACxE,GAAG,EAAC,aAAa,GACjB,IACG,GACF,CACR;QACD,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,KAAK;KAClB;IACD;QACE,EAAE,EAAE,SAAS,EAAE;QACf,OAAO,EAAE,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,gDAAgD,YACzD,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,wDAEtC,KAAC,KAAK,IACJ,GAAG,EAAC,sKAAsK,EAC1K,GAAG,EAAC,uBAAuB,GAC3B,IACG,GACF,CACR;QACD,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,KAAK;KAClB;CACF,CAAC","sourcesContent":["import { ReactNode } from 'react';\n\nimport {\n Avatar,\n EmailDisplay,\n PhoneDisplay,\n Link,\n Flex,\n Image,\n createUID\n} from '@pega/cosmos-react-core';\nimport { FeedPostProps } from '@pega/cosmos-react-social';\n\ninterface Mention {\n id: string;\n primary: string;\n secondary?: string | string[];\n visual?: ReactNode;\n fields?: { name: string; value: ReactNode }[];\n href?: string;\n}\n\n// cspell:disable\nexport const userMentions: Mention[] = [\n {\n id: 'turnc',\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(111) 111-1111' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='turnc@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Cindy Turner' />\n },\n {\n id: 'deans',\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(222) 222-2222' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='deans@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Seth DeAngelo' />\n },\n {\n id: 'moorj',\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(333) 333-3333' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='moorj@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Janet Moore' />\n },\n {\n id: 'thomd',\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(444) 444-4444' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='thomd@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Bob Hathoway'\n }\n ],\n visual: <Avatar size='l' name='Dean Thomas' />\n },\n {\n id: 'hathb',\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(555) 555-5555' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='hathb@example.com' />\n },\n {\n name: 'Reports to',\n value: ''\n }\n ],\n visual: <Avatar size='l' name='Bob Hathoway' />\n }\n];\n\nexport const caseMentions: Mention[] = [\n {\n id: 'c-001',\n primary: 'Complete user sign up form',\n secondary: ['US-111111'],\n visual: <Avatar size='l' name='c-001' icon='case' />,\n href: '#c-001'\n },\n {\n id: 'c-002',\n primary: 'Button missing on home page',\n secondary: ['BUG-222222'],\n visual: <Avatar size='l' name='c-002' icon='case' />,\n href: '#c-002'\n },\n {\n id: 'c-003',\n primary: 'Set up transaction broker',\n secondary: ['US-333333'],\n visual: <Avatar size='l' name='c-03' icon='case' />,\n href: '#c-003'\n },\n {\n id: 'c-004',\n primary: 'Check in with security team',\n secondary: ['TASK-444444'],\n visual: <Avatar size='l' name='c-004' icon='case' />,\n href: '#c-004'\n },\n {\n id: 'c-005',\n primary: 'Error occurs upon submitting form',\n secondary: ['BUG-555555'],\n visual: <Avatar size='l' name='c-005' icon='case' />,\n href: '#c-005'\n }\n];\n\nexport const generatedLikes = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n id: 'thomd'\n },\n {\n primary: 'Louie Santos',\n secondary: ['Marketing Specialist'],\n visual: <Avatar size='l' name='Louie Santos' />,\n id: 'santl'\n },\n {\n primary: 'Margaret Foster',\n secondary: ['Architect', 'Designer'],\n visual: <Avatar size='l' name='Margaret Foster' />,\n id: 'fostm'\n }\n];\n\nexport const availableRecipients = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n value: 'turnc',\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n value: 'bushh',\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n value: 'paulr',\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n value: 'moorj',\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n value: 'mirik',\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n value: 'hathb',\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n value: 'deans',\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n value: 'thomd',\n id: 'thomd'\n }\n];\n// cspell:enable\n\nexport interface FeedPostDemoProps {\n id?: string;\n fullname?: FeedPostProps['info']['fullname'];\n username?: FeedPostProps['info']['username'];\n icon?: FeedPostProps['info']['icon'];\n content?: FeedPostProps['info']['content'];\n postType?: FeedPostProps['info']['postType'];\n recipients?: FeedPostProps['info']['recipients'];\n attachments?: FeedPostProps['info']['attachments'];\n replies?: FeedPostProps['replies'];\n postTimestamp?: FeedPostProps['info']['postTimestamp'];\n userStatus?: FeedPostProps['info']['userStatus'];\n likes?: FeedPostProps['interactionInfo']['likes'];\n likeCount?: FeedPostProps['interactionInfo']['likeCount'];\n onDelete?: () => void;\n renderFeed?: boolean;\n}\n\nexport const feedPosts: FeedPostDemoProps[] = [\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: 'How is everyone doing with their reports?',\n postType: 'private',\n replies: [],\n likes: generatedLikes,\n likeCount: generatedLikes.length,\n userStatus: 'active',\n renderFeed: false\n },\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: (\n <Link href='https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter'>\n <Flex container={{ direction: 'column' }}>\n Check out this awesome event!\n <Image\n src='https://pbs.twimg.com/media/EoKHAUKWEAM5hpz?format=jpg&name=medium'\n alt='Pegasystems'\n />\n </Flex>\n </Link>\n ),\n replies: [],\n userStatus: 'active',\n renderFeed: false\n },\n {\n id: createUID(),\n content: (\n <Link href='https://www.pega.com/products/sales-automation'>\n <Flex container={{ direction: 'column' }}>\n Sales Automation makes business happen.\n <Image\n src='https://cf-images.us-east-1.prod.boltdns.net/v1/static/1900410236/893966f4-f7e1-41f0-9cc2-e3064273d3aa/72837f91-61a1-455b-a7e3-126972b61ddd/1280x720/match/image.jpg'\n alt='Pega Sales Automation'\n />\n </Flex>\n </Link>\n ),\n replies: [],\n renderFeed: false\n }\n];\n"]}
|
|
1
|
+
{"version":3,"file":"Feed.mocks.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.mocks.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,KAAK,EAEL,SAAS,EACV,MAAM,yBAAyB,CAAC;AAajC,iBAAiB;AACjB,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,aAAa;aACrB;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE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ACnB;SACF;KACF;CACF,CAAC","sourcesContent":["import { ReactNode } from 'react';\n\nimport {\n Avatar,\n EmailDisplay,\n PhoneDisplay,\n Link,\n Flex,\n Image,\n OmitStrict,\n createUID\n} from '@pega/cosmos-react-core';\nimport { FeedPostProps } from '@pega/cosmos-react-social';\nimport { GlimpseProps } from '@pega/cosmos-react-work';\n\ninterface Mention {\n id: string;\n primary: string;\n secondary?: string | string[];\n visual?: ReactNode;\n fields?: { name: string; value: ReactNode }[];\n href?: string;\n}\n\n// cspell:disable\nexport const userMentions: Mention[] = [\n {\n id: 'turnc',\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(111) 111-1111' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='turnc@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Cindy Turner' />\n },\n {\n id: 'deans',\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(222) 222-2222' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='deans@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Seth DeAngelo' />\n },\n {\n id: 'moorj',\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(333) 333-3333' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='moorj@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Helen Bush'\n }\n ],\n visual: <Avatar size='l' name='Janet Moore' />\n },\n {\n id: 'thomd',\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(444) 444-4444' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='thomd@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Bob Hathoway'\n }\n ],\n visual: <Avatar size='l' name='Dean Thomas' />\n },\n {\n id: 'hathb',\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(555) 555-5555' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='hathb@example.com' />\n },\n {\n name: 'Reports to',\n value: ''\n }\n ],\n visual: <Avatar size='l' name='Bob Hathoway' />\n }\n];\n\nexport const caseMentions: Mention[] = [\n {\n id: 'c-001',\n primary: 'Complete user sign up form',\n secondary: ['US-111111'],\n visual: <Avatar size='l' name='c-001' icon='case' />,\n href: '#c-001'\n },\n {\n id: 'c-002',\n primary: 'Button missing on home page',\n secondary: ['BUG-222222'],\n visual: <Avatar size='l' name='c-002' icon='case' />,\n href: '#c-002'\n },\n {\n id: 'c-003',\n primary: 'Set up transaction broker',\n secondary: ['US-333333'],\n visual: <Avatar size='l' name='c-03' icon='case' />,\n href: '#c-003'\n },\n {\n id: 'c-004',\n primary: 'Check in with security team',\n secondary: ['TASK-444444'],\n visual: <Avatar size='l' name='c-004' icon='case' />,\n href: '#c-004'\n },\n {\n id: 'c-005',\n primary: 'Error occurs upon submitting form',\n secondary: ['BUG-555555'],\n visual: <Avatar size='l' name='c-005' icon='case' />,\n href: '#c-005'\n }\n];\n\nexport const generatedLikes = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n id: 'thomd'\n },\n {\n primary: 'Louie Santos',\n secondary: ['Marketing Specialist'],\n visual: <Avatar size='l' name='Louie Santos' />,\n id: 'santl'\n },\n {\n primary: 'Margaret Foster',\n secondary: ['Architect', 'Designer'],\n visual: <Avatar size='l' name='Margaret Foster' />,\n id: 'fostm'\n }\n];\n\nexport const availableRecipients = [\n {\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\n visual: <Avatar size='l' name='Cindy Turner' />,\n value: 'turnc',\n id: 'turnc'\n },\n {\n primary: 'Helen Bush',\n secondary: ['Product Manager', 'Product Owner'],\n visual: <Avatar size='l' name='Helen Bush' />,\n value: 'bushh',\n id: 'bushh'\n },\n {\n primary: 'Randy Paul',\n secondary: ['Frontend Developer', 'Backend Developer'],\n visual: <Avatar size='l' name='Randy Paul' />,\n value: 'paulr',\n id: 'paulr'\n },\n {\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />,\n value: 'moorj',\n id: 'moorj'\n },\n {\n primary: 'Kate Mirin',\n secondary: ['Quality Engineer'],\n visual: <Avatar size='l' name='Kate Mirin' />,\n value: 'mirik',\n id: 'mirik'\n },\n {\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />,\n value: 'hathb',\n id: 'hathb'\n },\n {\n primary: 'Seth DeAngelo',\n secondary: ['Senior Software Engineer', 'Backend Developer'],\n visual: <Avatar size='l' name='Seth DeAngelo' />,\n value: 'deans',\n id: 'deans'\n },\n {\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />,\n value: 'thomd',\n id: 'thomd'\n },\n {\n primary: 'Louie Santos',\n secondary: ['Marketing Specialist'],\n visual: <Avatar size='l' name='Louie Santos' />,\n value: 'santl',\n id: 'santl'\n },\n {\n primary: 'Margaret Foster',\n secondary: ['Architect', 'Designer'],\n visual: <Avatar size='l' name='Margaret Foster' />,\n value: 'fostm',\n id: 'fostm'\n }\n];\n// cspell:enable\n\nexport interface FeedPostDemoProps {\n id: string;\n fullname: FeedPostProps['fullname'];\n username: FeedPostProps['username'];\n content: FeedPostProps['content'];\n icon?: FeedPostProps['icon'];\n postType?: FeedPostProps['postType'];\n recipients?: FeedPostProps['recipients'];\n attachments?: FeedPostProps['attachments'];\n replies?: FeedPostProps['replies'];\n postTimestamp?: FeedPostProps['postTimestamp'];\n userStatus?: FeedPostProps['userStatus'];\n likes?: FeedPostProps['likes'];\n likeCount?: FeedPostProps['likeCount'];\n onDelete?: () => void;\n}\n\nexport const feedPosts: FeedPostDemoProps[] = [\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: 'How is everyone doing with their reports?',\n postType: 'private',\n replies: [],\n likes: generatedLikes,\n likeCount: generatedLikes.length\n },\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: (\n <Link href='https://www.pega.com/webinars/future-proof-your-business-architecture?utm_content=1606750722&utm_keyword=sprout&utm_medium=oso&utm_source=twitter'>\n <Flex container={{ direction: 'column' }}>\n Check out this awesome event!\n <Image\n src='https://pbs.twimg.com/media/EoKHAUKWEAM5hpz?format=jpg&name=medium'\n alt='Pegasystems'\n />\n </Flex>\n </Link>\n ),\n postType: 'private',\n replies: []\n },\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: (\n <Link href='https://www.pega.com/products/sales-automation'>\n <Flex container={{ direction: 'column' }}>\n Sales Automation makes business happen.\n <Image\n src='https://cf-images.us-east-1.prod.boltdns.net/v1/static/1900410236/893966f4-f7e1-41f0-9cc2-e3064273d3aa/72837f91-61a1-455b-a7e3-126972b61ddd/1280x720/match/image.jpg'\n alt='Pega Sales Automation'\n />\n </Flex>\n </Link>\n ),\n postType: 'private',\n replies: []\n }\n];\n\nexport type FeedUserGlimpse = OmitStrict<GlimpseProps, 'onDismiss' | 'target'> & {\n username: string;\n};\n\nexport const feedUserGlimpseDetails: FeedUserGlimpse[] = [\n {\n id: 'demoUser',\n username: 'demo_user',\n heading: {\n primary: 'Demo User',\n secondary: 'Mock data for the user of this demo',\n visual: <Avatar size='l' name='Demo User' />\n },\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(111) 111-1111' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='demo.user@example.com' />\n }\n ]\n },\n {\n id: 'feedBot',\n username: 'feed_bot',\n heading: {\n primary: 'Feed Bot',\n secondary: 'A bot that leaves messages for this demo',\n visual: <Avatar size='l' name='Feed Bot' icon='robot-solid' />\n },\n fields: [\n {\n name: 'Project',\n value: 'Cosmos Demo'\n },\n {\n name: 'Phone number',\n value: <PhoneDisplay value='(010) 101-0101' />\n },\n {\n name: 'Email',\n value: <EmailDisplay value='feed.bot@example.com' />\n },\n {\n name: 'Reports to',\n value: 'Demo User'\n }\n ]\n }\n];\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FeedProps } from '@pega/cosmos-react-social
|
|
3
|
-
declare const _default:
|
|
1
|
+
import type { StoryFn } from '@storybook/react';
|
|
2
|
+
import type { FeedProps } from '@pega/cosmos-react-social';
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
interface FeedDemoProps {
|
|
6
6
|
markdownMap?: FeedProps['markdownMap'];
|
|
7
7
|
onMentionPreview?: FeedProps['onMentionPreview'];
|
|
8
8
|
}
|
|
9
|
-
export declare const FeedDemo:
|
|
10
|
-
export declare const FeedWithAppShell:
|
|
9
|
+
export declare const FeedDemo: StoryFn<FeedDemoProps>;
|
|
10
|
+
export declare const FeedWithAppShell: StoryFn;
|
|
11
11
|
//# sourceMappingURL=Feed.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feed.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Feed.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,KAAK,EAAE,SAAS,EAAyB,MAAM,2BAA2B,CAAC;;AAWlF,wBAGU;AAEV,UAAU,aAAa;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,aAAa,CA6N3C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAE9B,CAAC"}
|
|
@@ -5,11 +5,11 @@ import { createUID, DateTimeDisplay, Lightbox, OneColumnPage } from '@pega/cosmo
|
|
|
5
5
|
import { Feed, MentionButtonConfig, HashtagButtonConfig } from '@pega/cosmos-react-social';
|
|
6
6
|
import { Glimpse } from '@pega/cosmos-react-work';
|
|
7
7
|
import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
|
|
8
|
-
import { FeedPostDemo } from './FeedPost.
|
|
9
|
-
import { FeedNewPostDemo } from './FeedNewPost.
|
|
8
|
+
import { FeedPostDemo } from './FeedPost.mocks';
|
|
9
|
+
import { FeedNewPostDemo } from './FeedNewPost.mocks';
|
|
10
10
|
import { caseMentions, feedPosts, userMentions } from './Feed.mocks';
|
|
11
11
|
export default {
|
|
12
|
-
title: 'Social/Feed
|
|
12
|
+
title: 'Social/Feed',
|
|
13
13
|
component: Feed
|
|
14
14
|
};
|
|
15
15
|
export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
|
|
@@ -67,12 +67,12 @@ export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
|
|
|
67
67
|
...posts,
|
|
68
68
|
{
|
|
69
69
|
id: createUID(),
|
|
70
|
-
fullname: '
|
|
71
|
-
|
|
70
|
+
fullname: 'Feed Bot',
|
|
71
|
+
icon: 'robot-solid',
|
|
72
|
+
username: 'feed_bot',
|
|
72
73
|
content: 'This post was loaded after the Feed was scrolled to the bottom!',
|
|
73
74
|
attachments: [],
|
|
74
|
-
replies: []
|
|
75
|
-
renderFeed: false
|
|
75
|
+
replies: []
|
|
76
76
|
}
|
|
77
77
|
]);
|
|
78
78
|
}, 1000);
|
|
@@ -121,7 +121,7 @@ export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
|
|
|
121
121
|
return [...postsCopy];
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
return (_jsxs(_Fragment, { children: [_jsx(Feed, { title: 'Pulse', userInfo: { username: 'demo_user', fullname: 'Demo User' }, searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, onMentionClick: onMentionClick, onMentionPreview: onMentionPreview, markdownMap: markdownMap, interactionRenderers: [MentionButtonConfig, HashtagButtonConfig], filters: filters, onFilterChange: toggleFilter, loadingPosts: loading, onLoadMore: generateNewPost, newPostRegion: _jsx(FeedNewPostDemo, {
|
|
124
|
+
return (_jsxs(_Fragment, { children: [_jsx(Feed, { title: 'Pulse', userInfo: { username: 'demo_user', fullname: 'Demo User', userStatus: 'active' }, searchTypes: ['user', 'case'], onDecoratorSearch: onSearch, searchResults: searchResults, onMentionClick: onMentionClick, onMentionPreview: onMentionPreview, markdownMap: markdownMap, interactionRenderers: [MentionButtonConfig, HashtagButtonConfig], filters: filters, onFilterChange: toggleFilter, loadingPosts: loading, onLoadMore: generateNewPost, newPostRegion: _jsx(FeedNewPostDemo, { onSubmit: postEvent => {
|
|
125
125
|
const { value, attachments, recipients, clear } = postEvent;
|
|
126
126
|
attachments.forEach(file => {
|
|
127
127
|
delete file.onDelete;
|
|
@@ -136,19 +136,19 @@ export const FeedDemo = ({ markdownMap, onMentionPreview }) => {
|
|
|
136
136
|
id: createUID(),
|
|
137
137
|
fullname: 'Demo User',
|
|
138
138
|
username: 'demo_user',
|
|
139
|
+
userStatus: 'active',
|
|
139
140
|
content: value,
|
|
140
141
|
attachments,
|
|
141
142
|
recipients,
|
|
142
|
-
postType: recipients
|
|
143
|
+
postType: recipients?.length ? 'private' : 'public',
|
|
143
144
|
replies: [],
|
|
144
|
-
postTimestamp: new Date()
|
|
145
|
-
renderFeed: false
|
|
145
|
+
postTimestamp: new Date()
|
|
146
146
|
},
|
|
147
147
|
...posts
|
|
148
148
|
]);
|
|
149
149
|
clear();
|
|
150
150
|
}
|
|
151
|
-
}
|
|
151
|
+
} }), posts: extraPosts.map((post, i) => {
|
|
152
152
|
return _createElement(FeedPostDemo, { ...post, key: post.id, onDelete: () => deletePost(i) });
|
|
153
153
|
}) }), lightboxImages && (_jsx(Lightbox, { items: lightboxImages, defaultIndex: defaultLBIndex.current, onAfterClose: () => {
|
|
154
154
|
setLightboxImages(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feed.stories.js","sourceRoot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ACjB,EAEJ,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;oBAChC,OAAO,eAAC,YAAY,OAAK,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,GAAI,CAAC;gBACjF,CAAC,CAAC,GACF,EACD,cAAc,IAAI,CACjB,KAAC,QAAQ,IACP,KAAK,EAAE,cAAc,EACrB,YAAY,EAAE,cAAc,CAAC,OAAO,EACpC,YAAY,EAAE,GAAG,EAAE;oBACjB,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAC1B,CAAC,GACD,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU,GAAG,EAAE;IAC1C,OAAO,KAAC,YAAY,IAAC,SAAS,QAAC,IAAI,EAAE,KAAC,aAAa,IAAC,KAAK,EAAC,SAAS,EAAC,CAAC,EAAE,KAAC,QAAQ,KAAG,GAAI,GAAI,CAAC;AAC9F,CAAC,CAAC;AAEF,gBAAgB,CAAC,UAAU,GAAG;IAC5B,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useRef, useCallback, useEffect } from 'react';\n\nimport {\n createUID,\n DateTimeDisplay,\n Lightbox,\n LightboxProps,\n MenuItemProps,\n OneColumnPage\n} from '@pega/cosmos-react-core';\nimport {\n Feed,\n Filter,\n MentionButtonConfig,\n HashtagButtonConfig,\n AttachedFiles\n} from '@pega/cosmos-react-social';\nimport { FeedProps } from '@pega/cosmos-react-social/lib/components/Feed/Feed';\nimport { Glimpse, GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\n\nimport { FeedPostDemo } from './FeedPost.stories';\nimport { FeedNewPostDemo } from './FeedNewPost.stories';\nimport { caseMentions, feedPosts, userMentions, FeedPostDemoProps } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed/Feed',\n component: Feed\n} as Meta;\n\ninterface FeedDemoProps {\n markdownMap?: FeedProps['markdownMap'];\n onMentionPreview?: FeedProps['onMentionPreview'];\n}\n\nexport const FeedDemo: Story<FeedDemoProps> = ({\n markdownMap,\n onMentionPreview\n}: FeedDemoProps) => {\n const [extraPosts, setExtraPosts] = useState<FeedPostDemoProps[]>(() => feedPosts);\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n\n const [filters, setFilters] = useState<Filter[]>(\n Array.from({ length: 10 }, (_, index) => {\n return {\n id: `filter-${index + 1}`,\n label: `Filter ${index + 1}`\n };\n })\n );\n\n const toggleFilter = (filterId: string) => {\n const updatedFilters = [...filters];\n const filterToUpdate = updatedFilters.find(x => x.id === filterId);\n\n if (filterToUpdate) filterToUpdate.on = !filterToUpdate.on;\n\n setFilters(updatedFilters);\n };\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter(user => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual, href }) => {\n return {\n id,\n primary,\n secondary:\n secondary !== undefined && !Array.isArray(secondary) ? [secondary] : secondary,\n visual,\n href\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const [loading, setLoading] = useState(false);\n let timeoutId: ReturnType<typeof setTimeout>;\n\n const generateNewPost = useCallback(() => {\n if (!loading) {\n setLoading(true);\n timeoutId = setTimeout(() => {\n setLoading(false);\n setExtraPosts(posts => [\n ...posts,\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n content: 'This post was loaded after the Feed was scrolled to the bottom!',\n attachments: [],\n replies: [],\n renderFeed: false\n }\n ]);\n }, 1000);\n }\n }, [loading]);\n\n useEffect(() => {\n return () => clearTimeout(timeoutId);\n }, []);\n\n const onMentionClick = ({\n id,\n type,\n target,\n closeGlimpse\n }: { id: string; type: string; closeGlimpse?: () => void } & Partial<\n Pick<GlimpseProps, 'target'>\n >) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user && target && closeGlimpse) {\n const { primary, secondary, visual, ...restUser } = user;\n\n return (\n <Glimpse\n {...restUser}\n heading={{\n primary,\n secondary: Array.isArray(secondary) ? secondary.join(', ') : secondary,\n visual\n }}\n target={target}\n onDismiss={() => {\n closeGlimpse();\n }}\n placement='right'\n />\n );\n }\n }\n };\n\n const [lightboxImages, setLightboxImages] = useState<LightboxProps['items'] | null>(null);\n const defaultLBIndex = useRef(0);\n\n const renderLightbox = (attachments: AttachedFiles[], name: string) => {\n const images: LightboxProps['items'] = attachments\n .filter(attachment => attachment.type.includes('image') && attachment.thumbnail)\n .map(image => {\n return {\n id: image.thumbnail as string,\n name: image.name,\n description: image.name,\n src: image.thumbnail as string,\n metadata: [image.type, <DateTimeDisplay value={new Date()} variant='date' />]\n };\n });\n\n const idx = images.findIndex(image => image.name === name);\n defaultLBIndex.current = idx > -1 ? idx : 0;\n setLightboxImages(images);\n };\n\n const deletePost = (index: number) => {\n setExtraPosts(posts => {\n const postsCopy = [...posts];\n postsCopy.splice(index, 1);\n return [...postsCopy];\n });\n };\n\n return (\n <>\n <Feed\n title='Pulse'\n userInfo={{ username: 'demo_user', fullname: 'Demo User' }}\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n onMentionClick={onMentionClick}\n onMentionPreview={onMentionPreview}\n markdownMap={markdownMap}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n filters={filters}\n onFilterChange={toggleFilter}\n loadingPosts={loading}\n onLoadMore={generateNewPost}\n newPostRegion={\n <FeedNewPostDemo\n onPost={postEvent => {\n const { value, attachments, recipients, clear } = postEvent;\n\n attachments.forEach(file => {\n delete file.onDelete;\n file.onPreview = file.type.includes('image')\n ? () => renderLightbox(attachments, file.name)\n : undefined;\n file.onDownload = () => {};\n });\n\n if (value || attachments.length > 0) {\n setExtraPosts(posts => [\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n content: value,\n attachments,\n recipients,\n postType: recipients.length ? 'private' : 'public',\n replies: [],\n postTimestamp: new Date(),\n renderFeed: false\n },\n ...posts\n ]);\n clear();\n }\n }}\n renderFeed={false}\n />\n }\n posts={extraPosts.map((post, i) => {\n return <FeedPostDemo {...post} key={post.id} onDelete={() => deletePost(i)} />;\n })}\n />\n {lightboxImages && (\n <Lightbox\n items={lightboxImages}\n defaultIndex={defaultLBIndex.current}\n onAfterClose={() => {\n setLightboxImages(null);\n }}\n />\n )}\n </>\n );\n};\n\nexport const FeedWithAppShell: Story = () => {\n return <AppShellDemo appHeader main={<OneColumnPage title='Welcome' a={<FeedDemo />} />} />;\n};\n\nFeedWithAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Feed.stories.js","sourceRoot":"","sources":["../../../src/social/Feed/Feed.stories.tsx"],"names":[],"mappings":";;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAs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B,CAAC,IAAI,CAAC,CAAC;gBAC1B,CAAC,GACD,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAY,GAAG,EAAE;IAC5C,OAAO,KAAC,YAAY,IAAC,SAAS,QAAC,IAAI,EAAE,KAAC,aAAa,IAAC,KAAK,EAAC,SAAS,EAAC,CAAC,EAAE,KAAC,QAAQ,KAAG,GAAI,GAAI,CAAC;AAC9F,CAAC,CAAC;AAEF,gBAAgB,CAAC,UAAU,GAAG;IAC5B,MAAM,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState, useRef, useCallback, useEffect } from 'react';\n\nimport { createUID, DateTimeDisplay, Lightbox, OneColumnPage } from '@pega/cosmos-react-core';\nimport type { LightboxProps, MenuItemProps } from '@pega/cosmos-react-core';\nimport { Feed, MentionButtonConfig, HashtagButtonConfig } from '@pega/cosmos-react-social';\nimport type { FeedProps, Filter, AttachedFiles } from '@pega/cosmos-react-social';\nimport { Glimpse } from '@pega/cosmos-react-work';\nimport type { GlimpseProps } from '@pega/cosmos-react-work';\n\nimport { AppShellDemo } from '../../core/AppShell/AppShell.stories';\n\nimport { FeedPostDemo } from './FeedPost.mocks';\nimport { FeedNewPostDemo } from './FeedNewPost.mocks';\nimport { caseMentions, feedPosts, userMentions } from './Feed.mocks';\nimport type { FeedPostDemoProps } from './Feed.mocks';\n\nexport default {\n title: 'Social/Feed',\n component: Feed\n} as Meta;\n\ninterface FeedDemoProps {\n markdownMap?: FeedProps['markdownMap'];\n onMentionPreview?: FeedProps['onMentionPreview'];\n}\n\nexport const FeedDemo: StoryFn<FeedDemoProps> = ({\n markdownMap,\n onMentionPreview\n}: FeedDemoProps) => {\n const [extraPosts, setExtraPosts] = useState<FeedPostDemoProps[]>(() => feedPosts);\n const [searchResults, setSearchResults] = useState<MenuItemProps[]>([]);\n\n const [filters, setFilters] = useState<Filter[]>(\n Array.from({ length: 10 }, (_, index) => {\n return {\n id: `filter-${index + 1}`,\n label: `Filter ${index + 1}`\n };\n })\n );\n\n const toggleFilter = (filterId: string) => {\n const updatedFilters = [...filters];\n const filterToUpdate = updatedFilters.find(x => x.id === filterId);\n\n if (filterToUpdate) filterToUpdate.on = !filterToUpdate.on;\n\n setFilters(updatedFilters);\n };\n\n const onSearch = ({\n type,\n search,\n mentionType\n }: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => {\n if (type === 'mention') {\n const availableMentions = mentionType === 'case' ? caseMentions : userMentions;\n\n const mentions: MenuItemProps[] = availableMentions\n .filter(user => {\n const names = user.primary.toLowerCase().split(' ');\n const searchWords = search.toLowerCase().split(' ');\n return !!searchWords.every((word: string) =>\n names.find((name: string) => name.startsWith(word))\n );\n })\n .map(({ id, primary, secondary, visual, href }) => {\n return {\n id,\n primary,\n secondary:\n secondary !== undefined && !Array.isArray(secondary) ? [secondary] : secondary,\n visual,\n href\n };\n });\n setSearchResults(mentions);\n } else {\n setSearchResults(\n ['cosmos', 'hashtag', 'pega']\n .filter(tag => {\n return tag.toLowerCase().includes(search.toLowerCase());\n })\n .map(tag => ({ id: tag, primary: tag }))\n );\n }\n };\n\n const [loading, setLoading] = useState(false);\n let timeoutId: ReturnType<typeof setTimeout>;\n\n const generateNewPost = useCallback(() => {\n if (!loading) {\n setLoading(true);\n timeoutId = setTimeout(() => {\n setLoading(false);\n setExtraPosts(posts => [\n ...posts,\n {\n id: createUID(),\n fullname: 'Feed Bot',\n icon: 'robot-solid',\n username: 'feed_bot',\n content: 'This post was loaded after the Feed was scrolled to the bottom!',\n attachments: [],\n replies: []\n }\n ]);\n }, 1000);\n }\n }, [loading]);\n\n useEffect(() => {\n return () => clearTimeout(timeoutId);\n }, []);\n\n const onMentionClick = ({\n id,\n type,\n target,\n closeGlimpse\n }: { id: string; type: string; closeGlimpse?: () => void } & Partial<\n Pick<GlimpseProps, 'target'>\n >) => {\n if (type === 'user') {\n const user = userMentions.find(mention => mention.id === id);\n if (user && target && closeGlimpse) {\n const { primary, secondary, visual, ...restUser } = user;\n\n return (\n <Glimpse\n {...restUser}\n heading={{\n primary,\n secondary: Array.isArray(secondary) ? secondary.join(', ') : secondary,\n visual\n }}\n target={target}\n onDismiss={() => {\n closeGlimpse();\n }}\n placement='right'\n />\n );\n }\n }\n };\n\n const [lightboxImages, setLightboxImages] = useState<LightboxProps['items'] | null>(null);\n const defaultLBIndex = useRef(0);\n\n const renderLightbox = (attachments: AttachedFiles[], name: string) => {\n const images: LightboxProps['items'] = attachments\n .filter(attachment => attachment.type.includes('image') && attachment.thumbnail)\n .map(image => {\n return {\n id: image.thumbnail as string,\n name: image.name,\n description: image.name,\n src: image.thumbnail as string,\n metadata: [image.type, <DateTimeDisplay value={new Date()} variant='date' />]\n };\n });\n\n const idx = images.findIndex(image => image.name === name);\n defaultLBIndex.current = idx > -1 ? idx : 0;\n setLightboxImages(images);\n };\n\n const deletePost = (index: number) => {\n setExtraPosts(posts => {\n const postsCopy = [...posts];\n postsCopy.splice(index, 1);\n return [...postsCopy];\n });\n };\n\n return (\n <>\n <Feed\n title='Pulse'\n userInfo={{ username: 'demo_user', fullname: 'Demo User', userStatus: 'active' }}\n searchTypes={['user', 'case']}\n onDecoratorSearch={onSearch}\n searchResults={searchResults}\n onMentionClick={onMentionClick}\n onMentionPreview={onMentionPreview}\n markdownMap={markdownMap}\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n filters={filters}\n onFilterChange={toggleFilter}\n loadingPosts={loading}\n onLoadMore={generateNewPost}\n newPostRegion={\n <FeedNewPostDemo\n onSubmit={postEvent => {\n const { value, attachments, recipients, clear } = postEvent;\n\n attachments.forEach(file => {\n delete file.onDelete;\n file.onPreview = file.type.includes('image')\n ? () => renderLightbox(attachments, file.name)\n : undefined;\n file.onDownload = () => {};\n });\n\n if (value || attachments.length > 0) {\n setExtraPosts(posts => [\n {\n id: createUID(),\n fullname: 'Demo User',\n username: 'demo_user',\n userStatus: 'active',\n content: value,\n attachments,\n recipients,\n postType: recipients?.length ? 'private' : 'public',\n replies: [],\n postTimestamp: new Date()\n },\n ...posts\n ]);\n clear();\n }\n }}\n />\n }\n posts={extraPosts.map((post, i) => {\n return <FeedPostDemo {...post} key={post.id} onDelete={() => deletePost(i)} />;\n })}\n />\n {lightboxImages && (\n <Lightbox\n items={lightboxImages}\n defaultIndex={defaultLBIndex.current}\n onAfterClose={() => {\n setLightboxImages(null);\n }}\n />\n )}\n </>\n );\n};\n\nexport const FeedWithAppShell: StoryFn = () => {\n return <AppShellDemo appHeader main={<OneColumnPage title='Welcome' a={<FeedDemo />} />} />;\n};\n\nFeedWithAppShell.parameters = {\n layout: 'fullscreen'\n};\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FeedNewPostProps } from '@pega/cosmos-react-social';
|
|
3
|
+
interface FeedNewPostDemoProps {
|
|
4
|
+
onSubmit?: FeedNewPostProps['onSubmit'];
|
|
5
|
+
}
|
|
6
|
+
export declare const FeedNewPostDemo: ({ onSubmit }: FeedNewPostDemoProps) => JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=FeedNewPost.mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedNewPost.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedNewPost.mocks.tsx"],"names":[],"mappings":";AAGA,OAAO,EAEL,gBAAgB,EAGjB,MAAM,2BAA2B,CAAC;AAInC,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,eAAe,iBAA6B,oBAAoB,gBAyD5E,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { useUID } from '@pega/cosmos-react-core';
|
|
4
|
+
import { FeedNewPost } from '@pega/cosmos-react-social';
|
|
5
|
+
import { availableRecipients } from './Feed.mocks';
|
|
6
|
+
export const FeedNewPostDemo = ({ onSubmit = () => { } }) => {
|
|
7
|
+
const key = useUID();
|
|
8
|
+
const [attachments, setAttachments] = useState([]);
|
|
9
|
+
const [filterValue, setFilterValue] = useState('');
|
|
10
|
+
const [itemsToRender, setItemsToRender] = useState(availableRecipients);
|
|
11
|
+
const onFilesAdded = (files) => {
|
|
12
|
+
files.forEach(file => {
|
|
13
|
+
if (file.type.split('/')[0] === 'image')
|
|
14
|
+
file.thumbnail = URL.createObjectURL(file);
|
|
15
|
+
if (file.size / 1000000 > 100) {
|
|
16
|
+
file.meta = 'File size cannot exceed 100MB';
|
|
17
|
+
file.error = true;
|
|
18
|
+
}
|
|
19
|
+
file.onDelete = () => {
|
|
20
|
+
setAttachments(current => {
|
|
21
|
+
return current.filter(x => x.name !== file.name);
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
setAttachments(current => [...current, ...files]);
|
|
26
|
+
};
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
// Synthetic delay to mimic async request
|
|
29
|
+
const timeout = setTimeout(() => {
|
|
30
|
+
const newItems = availableRecipients.filter(({ primary, secondary }) => {
|
|
31
|
+
return (primary.toLowerCase().includes(filterValue) ||
|
|
32
|
+
secondary.find(x => x.toLowerCase().includes(filterValue)));
|
|
33
|
+
});
|
|
34
|
+
setItemsToRender(newItems);
|
|
35
|
+
}, 500);
|
|
36
|
+
return () => {
|
|
37
|
+
clearTimeout(timeout);
|
|
38
|
+
};
|
|
39
|
+
}, [filterValue]);
|
|
40
|
+
return (_jsx(FeedNewPost, { id: key, attachments: attachments, onFilesAdded: onFilesAdded, onSubmit: postEvent => {
|
|
41
|
+
onSubmit?.(postEvent);
|
|
42
|
+
setAttachments([]);
|
|
43
|
+
postEvent.clear();
|
|
44
|
+
}, recipients: itemsToRender, onRecipientSearch: (newSearch) => setFilter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KAAK,EAAE,CAAC;QACpB,CAAC,EACD,UAAU,EAAE,aAAa,EACzB,iBAAiB,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,GACnE,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useEffect } from 'react';\n\nimport { useUID } from '@pega/cosmos-react-core';\nimport {\n FeedNewPost,\n FeedNewPostProps,\n RecipientOption,\n AttachedFiles\n} from '@pega/cosmos-react-social';\n\nimport { availableRecipients } from './Feed.mocks';\n\ninterface FeedNewPostDemoProps {\n onSubmit?: FeedNewPostProps['onSubmit'];\n}\n\nexport const FeedNewPostDemo = ({ onSubmit = () => {} }: FeedNewPostDemoProps) => {\n const key = useUID();\n const [attachments, setAttachments] = useState<AttachedFiles[]>([]);\n const [filterValue, setFilterValue] = useState('');\n const [itemsToRender, setItemsToRender] = useState<RecipientOption[]>(availableRecipients);\n\n const onFilesAdded = (files: AttachedFiles[]) => {\n files.forEach(file => {\n if (file.type.split('/')[0] === 'image') file.thumbnail = URL.createObjectURL(file);\n\n if (file.size / 1000000 > 100) {\n file.meta = 'File size cannot exceed 100MB';\n file.error = true;\n }\n\n file.onDelete = () => {\n setAttachments(current => {\n return current.filter(x => x.name !== file.name);\n });\n };\n });\n\n setAttachments(current => [...current, ...files]);\n };\n\n useEffect(() => {\n // Synthetic delay to mimic async request\n const timeout = setTimeout(() => {\n const newItems = availableRecipients.filter(({ primary, secondary }) => {\n return (\n primary.toLowerCase().includes(filterValue) ||\n secondary.find(x => x.toLowerCase().includes(filterValue))\n );\n });\n\n setItemsToRender(newItems);\n }, 500);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [filterValue]);\n\n return (\n <FeedNewPost\n id={key}\n attachments={attachments}\n onFilesAdded={onFilesAdded}\n onSubmit={postEvent => {\n onSubmit?.(postEvent);\n setAttachments([]);\n postEvent.clear();\n }}\n recipients={itemsToRender}\n onRecipientSearch={(newSearch: string) => setFilterValue(newSearch)}\n />\n );\n};\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FeedPostDemoProps } from './Feed.mocks';
|
|
3
|
+
export declare const FeedPostDemo: ({ id, fullname, username, icon, content, postType, recipients, attachments: postAttachments, replies, postTimestamp, userStatus, likes: userLikes, likeCount: userLikeCount, onDelete }: FeedPostDemoProps) => JSX.Element;
|
|
4
|
+
//# sourceMappingURL=FeedPost.mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedPost.mocks.d.ts","sourceRoot":"","sources":["../../../src/social/Feed/FeedPost.mocks.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAmB,MAAM,cAAc,CAAC;AAEvE,eAAO,MAAM,YAAY,4LAetB,iBAAiB,gBAgPnB,CAAC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useState } from 'react';
|
|
3
|
+
import { Avatar, useUID } from '@pega/cosmos-react-core';
|
|
4
|
+
import { FeedPost } from '@pega/cosmos-react-social';
|
|
5
|
+
import { Glimpse } from '@pega/cosmos-react-work';
|
|
6
|
+
import { FeedReplyDemo } from './FeedReply.mocks';
|
|
7
|
+
import { availableRecipients, feedUserGlimpseDetails } from './Feed.mocks';
|
|
8
|
+
export const FeedPostDemo = ({ id, fullname, username, icon, content, postType, recipients, attachments: postAttachments, replies, postTimestamp = new Date(2022, 0, 1), userStatus, likes: userLikes, likeCount: userLikeCount, onDelete = () => { } }) => {
|
|
9
|
+
const defaultReplies = Array.from(Array(12).keys(), index => {
|
|
10
|
+
return (_jsx(FeedReplyDemo, { fullname: fullname, username: username, content: `This is reply number ${index + 1}!` }, `reply-story-${index + 1}`));
|
|
11
|
+
});
|
|
12
|
+
const key = useUID();
|
|
13
|
+
const [postContent, setPostContent] = useState(content);
|
|
14
|
+
const [likes, setLikes] = useState([]);
|
|
15
|
+
const [liked, setLiked] = useState(false);
|
|
16
|
+
const [likeCount, setLikeCount] = useState(userLikeCount || 0);
|
|
17
|
+
const [recipientsList, setRecipientsList] = useState([]);
|
|
18
|
+
const [edited, setEdited] = useState(false);
|
|
19
|
+
const [editTimestamp, setEditTimestamp] = useState(new Date());
|
|
20
|
+
const [glimpseData, setGlimpseData] = useState();
|
|
21
|
+
const [glimpseTarget, setGlimpseTarget] = useState();
|
|
22
|
+
const [extraReplies, setExtraReplies] = useState([]);
|
|
23
|
+
const [replyAttachments, setReplyAttachments] = useState([]);
|
|
24
|
+
const [replyCount, setReplyCount] = useState(replies ? replies.length : defaultReplies.length);
|
|
25
|
+
const [repliesLoading, setRepliesLoading] = useState(false);
|
|
26
|
+
const [repliesShown, setRepliesShown] = useState(3);
|
|
27
|
+
const [additionalLikeAdded, setAdditionalLikeAdded] = useState(false);
|
|
28
|
+
const [allRecipientsVisible, setAllRecipientsVisible] = useState(!!recipients);
|
|
29
|
+
const onShowMoreReplies = () => {
|
|
30
|
+
setRepliesLoading(true);
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
setRepliesShown(curr => {
|
|
33
|
+
if (curr + 3 <= defaultReplies.length)
|
|
34
|
+
return curr + 3;
|
|
35
|
+
return defaultReplies.length;
|
|
36
|
+
});
|
|
37
|
+
setRepliesLoading(false);
|
|
38
|
+
}, 1000);
|
|
39
|
+
};
|
|
40
|
+
const onShowLessReplies = () => {
|
|
41
|
+
setRepliesLoading(true);
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
setRepliesShown(3);
|
|
44
|
+
setRepliesLoading(false);
|
|
45
|
+
}, 1000);
|
|
46
|
+
};
|
|
47
|
+
const onFilesAdded = (files) => {
|
|
48
|
+
files.forEach(file => {
|
|
49
|
+
if (file.type.split('/')[0] === 'image')
|
|
50
|
+
file.thumbnail = URL.createObjectURL(file);
|
|
51
|
+
file.onDelete = () => {
|
|
52
|
+
setReplyAttachments?.(current => {
|
|
53
|
+
return current.filter(x => x.name !== file.name);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
setReplyAttachments(files);
|
|
58
|
+
};
|
|
59
|
+
const getInitialLikes = () => {
|
|
60
|
+
if (likes.length)
|
|
61
|
+
return;
|
|
62
|
+
setLikes(userLikes || []);
|
|
63
|
+
};
|
|
64
|
+
const [likesLoading, setLikesLoading] = useState(false);
|
|
65
|
+
const generateNewLike = useCallback(() => {
|
|
66
|
+
if (!likesLoading) {
|
|
67
|
+
setLikesLoading(true);
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
setLikesLoading(false);
|
|
70
|
+
setLikes(oldLikes => [
|
|
71
|
+
...oldLikes,
|
|
72
|
+
{
|
|
73
|
+
primary: 'Generated Like',
|
|
74
|
+
secondary: ['This like was loaded after the onLoadMoreLikes callback was triggered'],
|
|
75
|
+
visual: _jsx(Avatar, { size: 'l', name: 'Generated Like' }),
|
|
76
|
+
id: 'generatedLike'
|
|
77
|
+
}
|
|
78
|
+
]);
|
|
79
|
+
setAdditionalLikeAdded(true);
|
|
80
|
+
}, 1000);
|
|
81
|
+
}
|
|
82
|
+
}, [likesLoading]);
|
|
83
|
+
const getInitialRecipients = () => {
|
|
84
|
+
if (recipientsList.length)
|
|
85
|
+
return;
|
|
86
|
+
setRecipientsList(recipients ||
|
|
87
|
+
availableRecipients.slice(0, !allRecipientsVisible ? 10 : availableRecipients.length));
|
|
88
|
+
};
|
|
89
|
+
const [recipientsLoading, setRecipientsLoading] = useState(false);
|
|
90
|
+
const getAllRecipients = () => {
|
|
91
|
+
if (!recipientsLoading) {
|
|
92
|
+
setRecipientsLoading(true);
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
setRecipientsLoading(false);
|
|
95
|
+
setRecipientsList(oldRecipients => [
|
|
96
|
+
...oldRecipients,
|
|
97
|
+
{
|
|
98
|
+
primary: 'Additional Recipient',
|
|
99
|
+
secondary: [
|
|
100
|
+
'This recipient was loaded after the onLoadMoreRecipients callback was triggered'
|
|
101
|
+
],
|
|
102
|
+
visual: _jsx(Avatar, { size: 'l', name: 'Additional Recipient' }),
|
|
103
|
+
value: 'additionalRecipient',
|
|
104
|
+
id: 'additionalRecipient'
|
|
105
|
+
}
|
|
106
|
+
]);
|
|
107
|
+
setAllRecipientsVisible(true);
|
|
108
|
+
}, 1000);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
return (_jsxs(_Fragment, { children: [_jsx(FeedPost, { id: id, fullname: fullname, username: username, icon: icon, postTimestamp: postTimestamp, content: postContent, postType: postType, recipients: recipientsList, recipientsCount: recipients ? recipients.length : availableRecipients.length + 1, attachments: postAttachments, liked: liked, userStatus: userStatus, likes: likes, likeCount: likeCount >= 10 ? likeCount + 1 : likeCount, maxContentHeight: 80, onLikeClick: ({ user }) => {
|
|
112
|
+
const userLikedIndex = likes.findIndex(x => x.id === user.id);
|
|
113
|
+
if (userLikedIndex !== -1) {
|
|
114
|
+
setLikes(oldLikes => {
|
|
115
|
+
const oldLikesArr = [...oldLikes];
|
|
116
|
+
oldLikesArr.splice(userLikedIndex, 1);
|
|
117
|
+
return oldLikesArr;
|
|
118
|
+
});
|
|
119
|
+
setLikeCount(curr => curr - 1);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
setLikes(oldLikes => [user, ...oldLikes]);
|
|
123
|
+
setLikeCount(curr => curr + 1);
|
|
124
|
+
}
|
|
125
|
+
setLiked(curr => !curr);
|
|
126
|
+
}, onCommentClick: () => { }, onLikeCountInteraction: getInitialLikes, likesLoading: likesLoading, onLoadMoreLikes: !additionalLikeAdded ? generateNewLike : undefined, onRecipientInteraction: getInitialRecipients, recipientsLoading: recipientsLoading, onLoadMoreRecipients: !allRecipientsVisible ? getAllRecipients : undefined, onUserClick: ({ username: glimpseUsername }, clickEvent) => {
|
|
127
|
+
if (clickEvent) {
|
|
128
|
+
setGlimpseTarget(clickEvent.target);
|
|
129
|
+
setGlimpseData(curr => {
|
|
130
|
+
if (curr)
|
|
131
|
+
return undefined;
|
|
132
|
+
return feedUserGlimpseDetails.find(x => x.username === glimpseUsername);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}, menuItems: [
|
|
136
|
+
{ primary: 'Custom action', id: 'custom', onClick: () => { } },
|
|
137
|
+
{ primary: 'Delete', id: 'delete', onClick: onDelete }
|
|
138
|
+
], onEditSubmit: ({ value }) => {
|
|
139
|
+
setPostContent(value);
|
|
140
|
+
setEdited(true);
|
|
141
|
+
setEditTimestamp(new Date());
|
|
142
|
+
}, edited: edited, editTimestamp: editTimestamp, replies: replies
|
|
143
|
+
? [...replies, ...extraReplies]
|
|
144
|
+
: [...defaultReplies.slice(-repliesShown), ...extraReplies], replyCount: replyCount, repliesLoading: repliesLoading, onShowMoreReplies: onShowMoreReplies, onShowLessReplies: repliesShown > 3 ? onShowLessReplies : undefined, replyInput: {
|
|
145
|
+
attachments: replyAttachments,
|
|
146
|
+
onFilesAdded,
|
|
147
|
+
onSubmit: replyEvent => {
|
|
148
|
+
setReplyAttachments([]);
|
|
149
|
+
replyEvent.attachments.forEach(file => {
|
|
150
|
+
delete file.onDelete;
|
|
151
|
+
file.onPreview = () => { };
|
|
152
|
+
file.onDownload = () => { };
|
|
153
|
+
});
|
|
154
|
+
setExtraReplies(oldReplies => [
|
|
155
|
+
...oldReplies,
|
|
156
|
+
_jsx(FeedReplyDemo, { fullname: 'Demo User', username: 'demo_user', userStatus: 'active', content: replyEvent.value, attachments: replyEvent.attachments, postTimestamp: new Date() }, `replies-${oldReplies.length}`)
|
|
157
|
+
]);
|
|
158
|
+
setReplyCount(oldReplyCount => oldReplyCount + 1);
|
|
159
|
+
replyEvent.clear();
|
|
160
|
+
}
|
|
161
|
+
} }, key), glimpseTarget && glimpseData && (_jsx(Glimpse, { ...glimpseData, target: glimpseTarget, onDismiss: () => {
|
|
162
|
+
setGlimpseData(undefined);
|
|
163
|
+
}, placement: 'right' }))] }));
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=FeedPost.mocks.js.map
|