@pega/cosmos-react-demos 3.0.0-dev.2.0 → 3.0.0-dev.21.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/AppHeader/AppHeader.stories.d.ts +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -75
- package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
- package/jsx/build/AppShell/AppShell.mocks.d.ts +19 -0
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/build/AppShell/{AppShell.mocks.js → AppShell.mocks.jsx} +33 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +1 -0
- package/jsx/build/AppShell/AppShell.stories.d.ts +2 -2
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +20 -45
- package/jsx/build/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +101 -0
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +11 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx +80 -0
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +11 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +135 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +18 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +72 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/{FlowModeller.mocks.js → FlowModeller.mocks.jsx} +186 -34
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +265 -150
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/jsx/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +146 -18
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +111 -27
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/utils.d.ts.map +1 -1
- package/jsx/build/LifeCycle/utils.js +5 -4
- package/jsx/build/LifeCycle/utils.js.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +395 -0
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +245 -0
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +76 -0
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +14 -92
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +287 -0
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -0
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +98 -272
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +204 -18
- package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +99 -65
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
- package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +2 -0
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +44 -7
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +6 -0
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/jsx/core/Badges/Keyboard.stories.jsx +17 -0
- package/jsx/core/Badges/Keyboard.stories.jsx.map +1 -0
- package/jsx/core/Badges/Selection.stories.d.ts +2 -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/Tag.stories.d.ts +2 -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 -18
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +2 -2
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -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 +2 -3
- package/jsx/core/Button/Button.stories.d.ts.map +1 -1
- package/jsx/core/Button/Button.stories.jsx +6 -6
- package/jsx/core/Button/Button.stories.jsx.map +1 -1
- package/jsx/core/Card/Card.stories.d.ts +1 -2
- package/jsx/core/Card/Card.stories.d.ts.map +1 -1
- package/jsx/core/Card/Card.stories.jsx +1 -1
- package/jsx/core/Card/Card.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +27 -8
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +12 -13
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/jsx/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +40 -8
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx +9 -0
- package/jsx/core/Configuration/Configuration.mocks.jsx.map +1 -0
- package/jsx/core/Configuration/Configuration.stories.d.ts +2 -3
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.stories.jsx +3 -19
- package/jsx/core/Configuration/Configuration.stories.jsx.map +1 -1
- package/jsx/core/Configuration/Configuration.styles.d.ts +6 -0
- package/jsx/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/jsx/core/Configuration/Configuration.styles.js +12 -0
- package/jsx/core/Configuration/Configuration.styles.js.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +14 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx +52 -0
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -0
- package/jsx/core/Currency/Currency.stories.d.ts +9 -3
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx +58 -19
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +39 -9
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +152 -17
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
- package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +8 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx +70 -2
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +51 -88
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +3 -0
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
- package/jsx/core/FieldValueList/FieldValueList.mocks.js +9 -0
- package/jsx/core/FieldValueList/FieldValueList.mocks.js.map +1 -0
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx +16 -38
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
- package/jsx/core/File/FileInput.stories.jsx +1 -1
- package/jsx/core/File/FileInput.stories.jsx.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.jsx.map +1 -1
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.jsx +6 -5
- package/jsx/core/Form/Form.mocks.jsx.map +1 -1
- package/jsx/core/Form/Form.stories.jsx +2 -2
- package/jsx/core/Form/Form.stories.jsx.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +4 -5
- 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 +1 -2
- 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 +6 -0
- package/jsx/core/HTML/HTML.stories.d.ts.map +1 -0
- package/jsx/core/HTML/HTML.stories.jsx +13 -0
- package/jsx/core/HTML/HTML.stories.jsx.map +1 -0
- package/jsx/core/Icon/Icon.stories.d.ts +5 -6
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +5 -27
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/Icon/Icon.styles.d.ts +4 -0
- package/jsx/core/Icon/Icon.styles.d.ts.map +1 -0
- package/jsx/core/Icon/Icon.styles.js +25 -0
- package/jsx/core/Icon/Icon.styles.js.map +1 -0
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +7 -10
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
- package/jsx/core/Image/Image.stories.d.ts +2 -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 +2 -0
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx +78 -2
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
- package/jsx/core/Link/Link.stories.d.ts +1 -11
- package/jsx/core/Link/Link.stories.d.ts.map +1 -1
- package/jsx/core/Link/Link.stories.jsx.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx +71 -0
- package/jsx/core/ListToolbar/ListToolbar.mocks.jsx.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +93 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -0
- package/jsx/core/Location/Location.stories.d.ts +4 -1
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +10 -3
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.stories.jsx +4 -3
- package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.jsx.map +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.mocks.jsx +3 -3
- package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +10 -5
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx +34 -43
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
- package/jsx/core/Number/Number.stories.d.ts +11 -6
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx +136 -34
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +85 -31
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts +4 -1
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx +12 -3
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +23 -6
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/Rating/Rating.stories.jsx +1 -1
- package/jsx/core/Rating/Rating.stories.jsx.map +1 -1
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts +1 -0
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx +10 -3
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/Sentiment/Sentiment.stories.jsx +4 -4
- package/jsx/core/Sentiment/Sentiment.stories.jsx.map +1 -1
- package/jsx/core/Slider/Slider.stories.d.ts +4 -3
- package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.jsx +1 -1
- package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- 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 +2 -2
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
- package/jsx/core/Table/Table.mocks.d.ts +6 -0
- package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
- package/jsx/core/Table/Table.mocks.jsx +134 -0
- package/jsx/core/Table/Table.mocks.jsx.map +1 -1
- package/jsx/core/Table/Table.stories.jsx +2 -2
- package/jsx/core/Table/Table.stories.jsx.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +5 -2
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +2 -3
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +17 -12
- package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +3 -7
- 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.mocks.d.ts +1 -1
- package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts +1 -2
- package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.jsx +2 -2
- package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
- package/jsx/cs/Article/Article.stories.d.ts +4 -13
- package/jsx/cs/Article/Article.stories.d.ts.map +1 -1
- package/jsx/cs/Article/Article.stories.jsx.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx +3 -2
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
- package/jsx/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
- package/jsx/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.jsx} +76 -1
- package/jsx/cs/CSCaseView/CSAppShell.mocks.jsx.map +1 -0
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +5 -37
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +27 -74
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +142 -93
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +11 -11
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +13 -5
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +38 -43
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +93 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +8 -6
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +116 -49
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js +9 -0
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx +33 -0
- package/jsx/dnd/DragDropList/DragDropList.mocks.jsx.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx +14 -78
- package/jsx/dnd/DragDropList/DragDropList.stories.jsx.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
- package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts +309 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/jsx/rte/Editor/Editor.mocks.jsx +23 -0
- package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -0
- package/jsx/rte/Editor/Editor.stories.d.ts +7 -8
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx +3 -21
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +19 -2
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +1 -1
- package/jsx/social/Chat/Chat.mocks.js +0 -1
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +6 -7
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +7 -5
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.mocks.js +11 -0
- package/jsx/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/jsx/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/jsx/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/jsx/social/Chat/RepeatingView.stories.jsx +16 -46
- package/jsx/social/Chat/RepeatingView.stories.jsx.map +1 -1
- package/jsx/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/jsx/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/jsx/social/Chat/RepeatingView.styles.js +22 -0
- package/jsx/social/Chat/RepeatingView.styles.js.map +1 -0
- package/jsx/social/Email/Email.mocks.d.ts +224 -3
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +948 -0
- package/jsx/social/Email/Email.mocks.jsx.map +1 -0
- package/jsx/social/Email/Email.stories.d.ts +40 -26
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +670 -617
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.styles.d.ts +3 -0
- package/jsx/social/Email/Email.styles.d.ts.map +1 -0
- package/jsx/social/Email/Email.styles.js +11 -0
- package/jsx/social/Email/Email.styles.js.map +1 -0
- package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx +10 -5
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +8 -12
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +29 -23
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx +3 -2
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts +4 -5
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +40 -29
- package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +10 -10
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +27 -22
- package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx +3 -2
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx +82 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx +68 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +15 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +107 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +3 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +4 -11
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +18 -10
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Details.mocks.jsx +1 -1
- package/jsx/work/CaseView/Details.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/jsx/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/MobileCaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +3 -3
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx +166 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.jsx.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +4 -175
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +13 -9
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +60 -59
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +11 -9
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
- package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/jsx/work/Stages/Stages.mocks.jsx +40 -0
- package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
- package/jsx/work/Stages/Stages.stories.d.ts +1 -1
- package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.stories.jsx +12 -46
- package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +2 -2
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
- package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +21 -11
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +1 -0
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +29 -1
- package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +24 -0
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx +64 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts +17 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx +76 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.js +5 -0
- package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/lib/build/AppHeader/AppHeader.stories.js +100 -75
- package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +19 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.mocks.js +32 -0
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +2 -2
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/build/AppShell/AppShell.stories.js +22 -45
- package/lib/build/AppShell/AppShell.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +8 -0
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -0
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +85 -0
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -0
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts +14 -0
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +1 -0
- package/lib/build/DynamicContentEditor/FieldSelector.js +81 -0
- package/lib/build/DynamicContentEditor/FieldSelector.js.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +11 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +136 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +18 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +66 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +21 -2
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +158 -33
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +9 -10
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +254 -135
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts +2 -0
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js +8 -0
- package/lib/build/FlowModeller/FlowModeller.styles.js.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +1 -5
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js +5 -10
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +3 -7
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +1 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +3 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +146 -18
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +6 -9
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +115 -31
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -1
- package/lib/build/LifeCycle/utils.d.ts.map +1 -1
- package/lib/build/LifeCycle/utils.js +5 -4
- package/lib/build/LifeCycle/utils.js.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +63 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +368 -0
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +8 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +229 -0
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +4 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +1 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js +27 -0
- package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +46 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js +77 -0
- package/lib/build/PageTemplates/GalleryPage.mocks.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +14 -92
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +18 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js +248 -0
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +4 -9
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +115 -253
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/lib/build/Workbench/Workbench.stories.js +210 -29
- package/lib/build/Workbench/Workbench.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +3 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +15 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +17 -8
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +78 -62
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +5 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js +15 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.js.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +74 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/lib/core/AppShell/AppShell.mocks.js +10 -10
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js +52 -15
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js +6 -6
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Backdrop/Backdrop.stories.js +2 -2
- package/lib/core/Backdrop/Backdrop.stories.js.map +1 -1
- package/lib/core/Badges/Alert.stories.js +1 -1
- package/lib/core/Badges/Alert.stories.js.map +1 -1
- package/lib/core/Badges/Count.stories.js +1 -1
- package/lib/core/Badges/Count.stories.js.map +1 -1
- package/lib/core/Badges/Keyboard.stories.d.ts +6 -0
- package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -0
- package/lib/core/Badges/Keyboard.stories.js +16 -0
- package/lib/core/Badges/Keyboard.stories.js.map +1 -0
- package/lib/core/Badges/Selection.stories.d.ts +2 -3
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
- package/lib/core/Badges/Selection.stories.js +1 -1
- package/lib/core/Badges/Selection.stories.js.map +1 -1
- package/lib/core/Badges/Status.stories.js +2 -2
- package/lib/core/Badges/Status.stories.js.map +1 -1
- package/lib/core/Badges/Tag.stories.d.ts +2 -3
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
- package/lib/core/Badges/Tag.stories.js +1 -1
- package/lib/core/Badges/Tag.stories.js.map +1 -1
- package/lib/core/Banner/Banner.mocks.js +1 -1
- package/lib/core/Banner/Banner.mocks.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +7 -18
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +13 -13
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -4
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +2 -2
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/Button/Button.stories.d.ts +2 -3
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.js +8 -8
- package/lib/core/Button/Button.stories.js.map +1 -1
- package/lib/core/Card/Card.stories.d.ts +1 -2
- package/lib/core/Card/Card.stories.d.ts.map +1 -1
- package/lib/core/Card/Card.stories.js +5 -5
- package/lib/core/Card/Card.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js +27 -8
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -3
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +41 -5
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +5 -3
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js +17 -18
- package/lib/core/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts +4 -0
- package/lib/core/ColorPicker/ColorPicker.styles.d.ts.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js +11 -0
- package/lib/core/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js +46 -14
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
- package/lib/core/Configuration/Configuration.mocks.d.ts +7 -0
- package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.mocks.js +6 -0
- package/lib/core/Configuration/Configuration.mocks.js.map +1 -0
- package/lib/core/Configuration/Configuration.stories.d.ts +2 -3
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.stories.js +14 -26
- package/lib/core/Configuration/Configuration.stories.js.map +1 -1
- package/lib/core/Configuration/Configuration.styles.d.ts +6 -0
- package/lib/core/Configuration/Configuration.styles.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.styles.js +12 -0
- package/lib/core/Configuration/Configuration.styles.js.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts +14 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.js +53 -0
- package/lib/core/CreditCard/CreditCard.stories.js.map +1 -0
- package/lib/core/Currency/Currency.stories.d.ts +9 -3
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.js +59 -20
- package/lib/core/Currency/Currency.stories.js.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +39 -9
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js +153 -17
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js +2 -2
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js +2 -2
- package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
- package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
- package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/lib/core/Dialog/Dialog.stories.js +47 -0
- package/lib/core/Dialog/Dialog.stories.js.map +1 -0
- package/lib/core/Drawer/Drawer.stories.js +4 -4
- package/lib/core/Drawer/Drawer.stories.js.map +1 -1
- package/lib/core/Email/EmailDisplay.stories.js +1 -1
- package/lib/core/Email/EmailDisplay.stories.js.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.js +3 -3
- package/lib/core/EmojiPicker/EmojiPicker.stories.js.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js +1 -1
- package/lib/core/EmptyState/EmptyState.stories.js.map +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js +1 -1
- package/lib/core/ErrorState/ErrorState.stories.js.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js +2 -2
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +6 -4
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js +7 -3
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +4 -0
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.js +47 -3
- package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +9 -8
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.js +54 -67
- package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +3 -0
- package/lib/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.mocks.js +9 -0
- package/lib/core/FieldValueList/FieldValueList.mocks.js.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +3 -2
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.js +35 -5
- package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js +25 -37
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/File/FileInput.stories.d.ts.map +1 -1
- package/lib/core/File/FileInput.stories.js +3 -3
- package/lib/core/File/FileInput.stories.js.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +1 -2
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.js +7 -7
- package/lib/core/Flex/FlexContainer.stories.js.map +1 -1
- package/lib/core/Flex/FlexItem.stories.js +3 -3
- package/lib/core/Flex/FlexItem.stories.js.map +1 -1
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js +5 -5
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/Form/Form.stories.js +10 -10
- package/lib/core/Form/Form.stories.js.map +1 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +4 -5
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridContainer.stories.js +9 -9
- package/lib/core/Grid/GridContainer.stories.js.map +1 -1
- package/lib/core/Grid/GridItem.stories.d.ts +1 -2
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridItem.stories.js +3 -3
- package/lib/core/Grid/GridItem.stories.js.map +1 -1
- package/lib/core/HTML/HTML.stories.d.ts +6 -0
- package/lib/core/HTML/HTML.stories.d.ts.map +1 -0
- package/lib/core/HTML/HTML.stories.js +14 -0
- package/lib/core/HTML/HTML.stories.js.map +1 -0
- package/lib/core/Icon/Icon.mocks.js +1 -1
- package/lib/core/Icon/Icon.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +5 -6
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +12 -35
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/Icon/Icon.styles.d.ts +4 -0
- package/lib/core/Icon/Icon.styles.d.ts.map +1 -0
- package/lib/core/Icon/Icon.styles.js +25 -0
- package/lib/core/Icon/Icon.styles.js.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.js +8 -11
- package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
- package/lib/core/Image/Image.stories.d.ts +2 -3
- package/lib/core/Image/Image.stories.d.ts.map +1 -1
- package/lib/core/Image/Image.stories.js +1 -1
- package/lib/core/Image/Image.stories.js.map +1 -1
- package/lib/core/Input/Input.stories.d.ts +2 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js +80 -4
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Label/Label.stories.js +2 -2
- package/lib/core/Label/Label.stories.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js +3 -3
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/Link/Link.stories.d.ts +1 -11
- package/lib/core/Link/Link.stories.d.ts.map +1 -1
- package/lib/core/Link/Link.stories.js +3 -3
- package/lib/core/Link/Link.stories.js.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js +1 -1
- package/lib/core/List/CommaSeparatedList.stories.js.map +1 -1
- package/lib/core/List/OrderedList.stories.js +1 -1
- package/lib/core/List/OrderedList.stories.js.map +1 -1
- package/lib/core/List/UnorderedList.stories.js +1 -1
- package/lib/core/List/UnorderedList.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +9 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js +50 -0
- package/lib/core/ListToolbar/ListToolbar.mocks.js.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +10 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js +85 -0
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -0
- package/lib/core/Location/Location.stories.d.ts +4 -1
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +13 -6
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/core/Menu/Menu.stories.js +7 -6
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +6 -6
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.js +9 -9
- package/lib/core/MenuButton/MenuButton.stories.js.map +1 -1
- package/lib/core/MetaList/MetaList.stories.js +3 -3
- package/lib/core/MetaList/MetaList.stories.js.map +1 -1
- package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/lib/core/Modal/Modal.mocks.js +11 -11
- package/lib/core/Modal/Modal.mocks.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +10 -5
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js +40 -35
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +5 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
- package/lib/core/Number/Number.stories.d.ts +11 -6
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js +137 -35
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +5 -3
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +88 -42
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/lib/core/Pagination/Pagination.stories.js +1 -1
- package/lib/core/Pagination/Pagination.stories.js.map +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.js.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts +4 -1
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.js +13 -4
- package/lib/core/Phone/Phone.stories.js.map +1 -1
- package/lib/core/Popover/Popover.stories.d.ts +1 -1
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.js +2 -2
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/Progress/Progress.stories.js +3 -3
- package/lib/core/Progress/Progress.stories.js.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js +23 -6
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -3
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +41 -5
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/Rating/Rating.stories.js +3 -3
- package/lib/core/Rating/Rating.stories.js.map +1 -1
- package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
- package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.js +29 -15
- package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts +1 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js +12 -5
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.js +3 -3
- package/lib/core/Sentiment/Sentiment.stories.js.map +1 -1
- package/lib/core/Slider/Slider.stories.d.ts +4 -3
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.js +2 -2
- package/lib/core/Slider/Slider.stories.js.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +5 -5
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.js +4 -4
- package/lib/core/SummaryItem/SummaryItem.stories.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.js +2 -2
- package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.js +5 -5
- package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
- package/lib/core/Switch/Switch.stories.js +3 -3
- package/lib/core/Switch/Switch.stories.js.map +1 -1
- package/lib/core/Table/Table.mocks.d.ts +6 -0
- package/lib/core/Table/Table.mocks.d.ts.map +1 -1
- package/lib/core/Table/Table.mocks.js +135 -1
- package/lib/core/Table/Table.mocks.js.map +1 -1
- package/lib/core/Table/Table.stories.js +11 -11
- package/lib/core/Table/Table.stories.js.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +5 -2
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.js +3 -3
- package/lib/core/Tabs/Tabs.stories.js.map +1 -1
- package/lib/core/Text/Text.stories.js +2 -2
- package/lib/core/Text/Text.stories.js.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.js +11 -4
- package/lib/core/TextArea/TextArea.stories.js.map +1 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +2 -3
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/lib/core/Toaster/Toaster.stories.js +15 -19
- package/lib/core/Toaster/Toaster.stories.js.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +3 -7
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.js +2 -2
- package/lib/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.d.ts +1 -2
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.js +5 -5
- package/lib/core/Tree/Tree.stories.js.map +1 -1
- package/lib/core/URL/URL.stories.js +1 -1
- package/lib/core/URL/URL.stories.js.map +1 -1
- package/lib/cs/Article/Article.stories.d.ts +4 -13
- package/lib/cs/Article/Article.stories.d.ts.map +1 -1
- package/lib/cs/Article/Article.stories.js +9 -9
- package/lib/cs/Article/Article.stories.js.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +4 -14
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js +12 -11
- package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/cs/CSCaseView/{CSCaseView.mocks.d.ts → CSAppShell.mocks.d.ts} +17 -1
- package/lib/cs/CSCaseView/CSAppShell.mocks.d.ts.map +1 -0
- package/lib/cs/CSCaseView/{CSCaseView.mocks.js → CSAppShell.mocks.js} +57 -1
- package/lib/cs/CSCaseView/CSAppShell.mocks.js.map +1 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +5 -37
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.js +37 -67
- package/lib/cs/CSCaseView/CSAppShell.stories.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +6 -5
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +138 -10
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +6 -3
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +143 -98
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
- package/lib/cs/DialPad/DialPad.stories.js +1 -1
- package/lib/cs/DialPad/DialPad.stories.js.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +4 -11
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +26 -26
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +7 -6
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +13 -5
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +11 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +29 -0
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +3 -7
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +38 -43
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +18 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +93 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -6
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +124 -57
- package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.styles.d.ts +3 -0
- package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.styles.js +9 -0
- package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +15 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.mocks.js.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +8 -9
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.js +16 -87
- package/lib/dnd/DragDropList/DragDropList.stories.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts +6 -0
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js +32 -0
- package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Demo.js +151 -0
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.js +33 -0
- package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.js +78 -0
- package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/lib/rte/Editor/Editor.mocks.d.ts +309 -0
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -0
- package/lib/rte/Editor/Editor.mocks.js +26 -0
- package/lib/rte/Editor/Editor.mocks.js.map +1 -0
- package/lib/rte/Editor/Editor.stories.d.ts +7 -8
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js +8 -28
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js +5 -5
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +6 -4
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js +14 -7
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +5 -5
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js +19 -6
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +1 -1
- package/lib/social/Chat/Chat.mocks.js +0 -1
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +6 -7
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +31 -31
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.mocks.d.ts +14 -0
- package/lib/social/Chat/RepeatingView.mocks.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.mocks.js +11 -0
- package/lib/social/Chat/RepeatingView.mocks.js.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts +6 -17
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -1
- package/lib/social/Chat/RepeatingView.stories.js +18 -48
- package/lib/social/Chat/RepeatingView.stories.js.map +1 -1
- package/lib/social/Chat/RepeatingView.styles.d.ts +2 -0
- package/lib/social/Chat/RepeatingView.styles.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.styles.js +22 -0
- package/lib/social/Chat/RepeatingView.styles.js.map +1 -0
- package/lib/social/Email/Email.mocks.d.ts +224 -3
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +602 -1
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +40 -26
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +666 -683
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Email/Email.styles.d.ts +3 -0
- package/lib/social/Email/Email.styles.d.ts.map +1 -0
- package/lib/social/Email/Email.styles.js +11 -0
- package/lib/social/Email/Email.styles.js.map +1 -0
- package/lib/social/Feed/Feed.mocks.d.ts +13 -18
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +45 -40
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +8 -12
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +35 -29
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts +7 -14
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.js +5 -4
- package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedPost.stories.d.ts +4 -5
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.stories.js +47 -36
- package/lib/social/Feed/FeedPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +10 -10
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.stories.js +31 -26
- package/lib/social/Feed/FeedReply.stories.js.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +7 -12
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +5 -4
- package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js +80 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.js +69 -0
- package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +15 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js +108 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +3 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js +15 -15
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +8 -8
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +4 -11
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +36 -28
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Details.mocks.js +2 -2
- package/lib/work/CaseView/Details.mocks.js.map +1 -1
- package/lib/work/CaseView/FileService.mock.js +1 -1
- package/lib/work/CaseView/FileService.mock.js.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +3 -9
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js +1 -1
- package/lib/work/CaseView/MobileCaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.js +4 -4
- package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +45 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js +165 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.js.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +3 -8
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +6 -175
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts +4 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js +11 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.styles.js.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js +13 -9
- package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +14 -56
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.js +3 -3
- package/lib/work/Glimpse/Glimpse.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.js +4 -4
- package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js +20 -18
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.mocks.d.ts +14 -0
- package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/lib/work/Stages/Stages.mocks.js +39 -0
- package/lib/work/Stages/Stages.mocks.js.map +1 -0
- package/lib/work/Stages/Stages.stories.d.ts +1 -1
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
- package/lib/work/Stages/Stages.stories.js +12 -44
- package/lib/work/Stages/Stages.stories.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js +4 -4
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -3
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js +2 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Tags/Tags.stories.js +1 -1
- package/lib/work/Tags/Tags.stories.js.map +1 -1
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/lib/work/Tasks/TaskList.stories.js +6 -4
- package/lib/work/Tasks/TaskList.stories.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +29 -17
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.js +8 -8
- package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +1 -0
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.stories.js +24 -3
- package/lib/work/Timeline/Timeline.stories.js.map +1 -1
- package/lib/wss/AppShell/AppShell.mocks.d.ts +24 -0
- package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.mocks.js +59 -0
- package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts +17 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.js +77 -0
- package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.js +5 -0
- package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
- package/package.json +22 -18
- package/jsx/build/AppShell/AppShell.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
- package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
- package/jsx/social/Email/Email.mocks.js +0 -348
- package/jsx/social/Email/Email.mocks.js.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.d.ts +0 -6
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.js +0 -36
- package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.stories.jsx","sourceRoot":"","sources":["../../../src/rte/Editor/Editor.stories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CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAC/C;MAAA,CAAC,IAAI,CACH;QAAA,CAAC,WAAW,CACV;UAAA,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAChE;QAAA,EAAE,WAAW,CACb;QAAA,CAAC,UAAU,CACT;UAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,CACnE;;UACF,EAAE,MAAM,CACV;QAAA,EAAE,UAAU,CACd;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,MAAM,CACL,YAAY,CAAC,CAAC,IAAI,CAAC,CACnB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,GAAG,CAAC,CAAC,MAAM,CAAC,CACZ,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,OAAO,CAAC,CAAC,CAAC,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,EAEhG;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta } from '@storybook/react';\nimport { useState, useRef } from 'react';\nimport ReactDOM from 'react-dom';\nimport { action } from '@storybook/addon-actions';\nimport { Editor as TinymceEditor } from 'tinymce';\n\nimport {\n Button,\n Card,\n CardContent,\n CardFooter,\n Flex,\n Text,\n TextArea\n} from '@pega/cosmos-react-core';\nimport { EditorState, Editor } from '@pega/cosmos-react-rte';\n\nexport default {\n title: 'RTE/Editor',\n component: Editor\n} as Meta;\n\nconst label = 'Form field label';\n\nexport const EditorDemo = () => {\n const editorRef = useRef<EditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'images', 'links']}\n onFocus={action('Editor focused')}\n onBlur={action('Editor blurred')}\n onImageAdded={onImageAdded}\n defaultValue='<body><p>Hi mom <a href=\"https://google.com\">link</a></p></body>'\n />\n );\n};\n\nexport const EmptyEditorDemo = () => {\n const editorRef = useRef<EditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'images', 'links']}\n onImageAdded={onImageAdded}\n onFocus={action('Editor has focus')}\n onBlur={action('Editor has blurred')}\n placeholder='Type some stuff in here'\n />\n );\n};\n\nexport const ReadonlyFormField = () => {\n return (\n <Editor\n label={label}\n readOnly\n defaultValue={`<article class=\"main-page-content\" lang=\"en-US\"><h1>HTML: HyperText Markup Language</h1><div><p><strong>HTML</strong> (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (<a href=\"/en-US/docs/Web/CSS\">CSS</a>) or functionality/behavior (<a href=\"/en-US/docs/Web/JavaScript\">JavaScript</a>).</p>\n <p>\"Hypertext\" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.</p>\n <p>HTML uses \"markup\" to annotate text, images, and other content for display in a Web browser. HTML markup includes special \"elements\" such as <a href=\"/en-US/docs/Web/HTML/Element/head\"><code><head></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/title\"><code><title></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/body\"><code><body></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/header\"><code><header></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/footer\"><code><footer></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/article\"><code><article></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/section\"><code><section></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/p\"><code><p></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/div\"><code><div></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/span\"><code><span></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/img\"><code><img></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/aside\"><code><aside></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/audio\"><code><audio></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/canvas\"><code><canvas></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/datalist\"><code><datalist></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/details\"><code><details></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/embed\"><code><embed></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/nav\"><code><nav></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/output\"><code><output></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/progress\"><code><progress></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/video\"><code><video></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/ul\"><code><ul></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/ol\"><code><ol></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/li\"><code><li></code></a> and many others.</p>\n <p>An HTML element is set off from other text in a document by \"tags\", which consist of the element name surrounded by \"<code><</code>\" and \"<code>></code>\". The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <code><title></code> tag can be written as <code><Title></code>, <code><TITLE></code>, or in any other way.</p>\n\n <div id=\"on-github\" class=\"on-github\"><h3>Found a problem with this page?</h3><ul><li><a href=\"https://github.com/mdn/content/edit/main/files/en-us/web/html/index.md\" title=\"You're going to need to sign in to GitHub first (Opens in a new tab)\" target=\"_blank\" rel=\"noopener noreferrer\">Edit on <b>GitHub</b></a></li><li><a href=\"https://github.com/mdn/content/blob/main/files/en-us/web/html/index.md\" title=\"Folder: en-us/web/html (Opens in a new tab)\" target=\"_blank\" rel=\"noopener noreferrer\">Source on <b>GitHub</b></a></li><li><a href=\"https://github.com/mdn/content/issues/new?body=MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A%0A%23%23%23%23+What+information+was+incorrect%2C+unhelpful%2C+or+incomplete%3F%0A%0A%0A%23%23%23%23+Specific+section+or+headline%3F%0A%0A%0A%23%23%23%23+What+did+you+expect+to+see%3F%0A%0A%0A%23%23%23%23+Did+you+test+this%3F+If+so%2C+how%3F%0A%0A%0A%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EMDN+Content+page+report+details%3C%2Fsummary%3E%0A%0A*+Folder%3A+%60en-us%2Fweb%2Fhtml%60%0A*+MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A*+GitHub+URL%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fblob%2Fmain%2Ffiles%2Fen-us%2Fweb%2Fhtml%2Findex.md%0A*+Last+commit%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fcommit%2F775662998e66813a612e3ff27e02f2ada867bc17%0A*+Document+last+modified%3A+2021-10-03T00%3A01%3A51.000Z%0A%0A%3C%2Fdetails%3E&title=Issue+with+%22HTML%3A+HyperText+Markup+Language%22%3A+%28short+summary+here+please%29&labels=needs-triage%2CContent%3AHTML\" title=\"This will take you to https://github.com/mdn/content to file a new issue\" target=\"_blank\" rel=\"noopener noreferrer\">Report a problem with this content on <b>GitHub</b></a></li><li>Want to fix the problem yourself? See <a href=\"https://github.com/mdn/content/blob/main/README.md\" target=\"_blank\" rel=\"noopener noreferrer\">our Contribution guide</a>.</li></ul></div>\n `}\n />\n );\n};\n\nconst PegaCustom = ({ children }: { children: string }) => {\n return (\n <p\n style={{ color: 'blue', textTransform: 'uppercase' }}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{ __html: children }}\n />\n );\n};\n\nclass PegaCustomElement extends HTMLElement {\n removeElements() {\n while (this.firstChild) {\n this.removeChild(this.firstChild);\n }\n }\n\n connectedCallback() {\n const inner = this.innerHTML;\n this.removeElements();\n const mountPoint = document.createElement('span');\n this.appendChild(mountPoint);\n ReactDOM.render(<PegaCustom>{inner}</PegaCustom>, mountPoint);\n }\n}\n\nexport const CustomComponentDemo = () => {\n const editorRef = useRef<EditorState>(null);\n const [editor, setEditor] = useState({} as TinymceEditor);\n\n const onCustomAction = () => {\n editor.insertContent('<pega-custom>Inserted from toolbar</pega-custom>');\n };\n\n return (\n <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'links', 'images']}\n defaultValue='<body><p>Hi mom <a href=\"https://google.com\">link</a></p><pega-custom>Hello from custom element.</pega-custom><p>hi</p></body>'\n customComponents={[{ customElement: PegaCustomElement, name: 'pega-custom' }]}\n customActions={[\n {\n icon: 'pega',\n text: 'Insert a custom element',\n onMouseDown: () => {\n onCustomAction();\n }\n }\n ]}\n onInit={initializedEditor => {\n setEditor(initializedEditor);\n }}\n />\n );\n};\n\nexport const RichTextEditorWithLogs = () => {\n const editorRef = useRef<EditorState>(null);\n const [content, setContent] = useState<string | undefined>();\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n const showContent = (type: 'html' | 'plain_text' | 'rich_text') => {\n if (type === 'html') setContent(editorRef.current?.getHtml());\n else if (type === 'plain_text') setContent(editorRef.current?.getPlainText());\n else if (type === 'rich_text') setContent(editorRef.current?.getRichText());\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Editor\n ref={editorRef}\n toolbar={['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation']}\n onImageAdded={onImageAdded}\n label='Rich text editor with logs'\n info='Click on the buttons below to show the different formatted outputs of the RTE'\n />\n\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => showContent('html')}>Show HTML</Button>\n <Button onClick={() => showContent('plain_text')}>Show plain text</Button>\n <Button onClick={() => showContent('rich_text')}>Show rich text</Button>\n </Flex>\n\n <Text>{content}</Text>\n </Flex>\n );\n};\n\nexport const RichTextEditorHtmlParsingDemo = () => {\n const [html, setHtml] = useState('<p>Hello world!</p>');\n const rteRef = useRef<EditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea value={html} onChange={e => setHtml(e.target.value)} />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <Editor\n defaultValue={html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label={label}\n toolbar={['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation']}\n />\n </Flex>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Editor.stories.jsx","sourceRoot":"","sources":["../../../src/rte/Editor/Editor.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAe,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,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G,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACvC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAC/C;MAAA,CAAC,IAAI,CACH;QAAA,CAAC,WAAW,CACV;UAAA,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAChE;QAAA,EAAE,WAAW,CACb;QAAA,CAAC,UAAU,CACT;UAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,CACnE;;UACF,EAAE,MAAM,CACV;QAAA,EAAE,UAAU,CACd;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,MAAM,CACL,YAAY,CAAC,CAAC,IAAI,CAAC,CACnB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,GAAG,CAAC,CAAC,MAAM,CAAC,CACZ,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,OAAO,CAAC,CAAC,CAAC,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,EAEhG;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useRef } from 'react';\nimport { action } from '@storybook/addon-actions';\nimport { Editor as TinymceEditor } from 'tinymce';\n\nimport {\n Button,\n Card,\n CardContent,\n CardFooter,\n Flex,\n Text,\n TextArea\n} from '@pega/cosmos-react-core';\nimport { EditorState, Editor } from '@pega/cosmos-react-rte';\n\nimport { createPegaCustomElement, label } from './Editor.mocks';\n\nexport default {\n title: 'RTE/Editor',\n component: Editor\n} as Meta;\n\nexport const EditorDemo: Story = () => {\n const editorRef = useRef<EditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'images', 'links']}\n onFocus={action('Editor focused')}\n onBlur={action('Editor blurred')}\n onChange={action('Editor changed')}\n onImageAdded={onImageAdded}\n defaultValue='<body><p>Hi mom <a href=\"https://google.com\">link</a></p><img alt=\"Example alt text\" src=\"http://via.placeholder.com/640x360\"/></body>'\n />\n );\n};\n\nexport const EmptyEditorDemo: Story = () => {\n const editorRef = useRef<EditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'images', 'links']}\n onImageAdded={onImageAdded}\n onFocus={action('Editor has focus')}\n onBlur={action('Editor has blurred')}\n placeholder='Type some stuff in here'\n />\n );\n};\n\nexport const ReadonlyFormField: Story = () => {\n return (\n <Editor\n label={label}\n readOnly\n defaultValue={`<article class=\"main-page-content\" lang=\"en-US\"><h1>HTML: HyperText Markup Language</h1><div><p><strong>HTML</strong> (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (<a href=\"/en-US/docs/Web/CSS\">CSS</a>) or functionality/behavior (<a href=\"/en-US/docs/Web/JavaScript\">JavaScript</a>).</p>\n <p>\"Hypertext\" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.</p>\n <p>HTML uses \"markup\" to annotate text, images, and other content for display in a Web browser. HTML markup includes special \"elements\" such as <a href=\"/en-US/docs/Web/HTML/Element/head\"><code><head></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/title\"><code><title></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/body\"><code><body></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/header\"><code><header></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/footer\"><code><footer></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/article\"><code><article></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/section\"><code><section></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/p\"><code><p></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/div\"><code><div></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/span\"><code><span></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/img\"><code><img></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/aside\"><code><aside></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/audio\"><code><audio></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/canvas\"><code><canvas></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/datalist\"><code><datalist></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/details\"><code><details></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/embed\"><code><embed></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/nav\"><code><nav></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/output\"><code><output></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/progress\"><code><progress></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/video\"><code><video></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/ul\"><code><ul></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/ol\"><code><ol></code></a>, <a href=\"/en-US/docs/Web/HTML/Element/li\"><code><li></code></a> and many others.</p>\n <p>An HTML element is set off from other text in a document by \"tags\", which consist of the element name surrounded by \"<code><</code>\" and \"<code>></code>\". The name of an element inside a tag is case insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <code><title></code> tag can be written as <code><Title></code>, <code><TITLE></code>, or in any other way.</p>\n\n <div id=\"on-github\" class=\"on-github\"><h3>Found a problem with this page?</h3><ul><li><a href=\"https://github.com/mdn/content/edit/main/files/en-us/web/html/index.md\" title=\"You're going to need to sign in to GitHub first (Opens in a new tab)\" target=\"_blank\" rel=\"noopener noreferrer\">Edit on <b>GitHub</b></a></li><li><a href=\"https://github.com/mdn/content/blob/main/files/en-us/web/html/index.md\" title=\"Folder: en-us/web/html (Opens in a new tab)\" target=\"_blank\" rel=\"noopener noreferrer\">Source on <b>GitHub</b></a></li><li><a href=\"https://github.com/mdn/content/issues/new?body=MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A%0A%23%23%23%23+What+information+was+incorrect%2C+unhelpful%2C+or+incomplete%3F%0A%0A%0A%23%23%23%23+Specific+section+or+headline%3F%0A%0A%0A%23%23%23%23+What+did+you+expect+to+see%3F%0A%0A%0A%23%23%23%23+Did+you+test+this%3F+If+so%2C+how%3F%0A%0A%0A%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EMDN+Content+page+report+details%3C%2Fsummary%3E%0A%0A*+Folder%3A+%60en-us%2Fweb%2Fhtml%60%0A*+MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTML%0A*+GitHub+URL%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fblob%2Fmain%2Ffiles%2Fen-us%2Fweb%2Fhtml%2Findex.md%0A*+Last+commit%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fcommit%2F775662998e66813a612e3ff27e02f2ada867bc17%0A*+Document+last+modified%3A+2021-10-03T00%3A01%3A51.000Z%0A%0A%3C%2Fdetails%3E&title=Issue+with+%22HTML%3A+HyperText+Markup+Language%22%3A+%28short+summary+here+please%29&labels=needs-triage%2CContent%3AHTML\" title=\"This will take you to https://github.com/mdn/content to file a new issue\" target=\"_blank\" rel=\"noopener noreferrer\">Report a problem with this content on <b>GitHub</b></a></li><li>Want to fix the problem yourself? See <a href=\"https://github.com/mdn/content/blob/main/README.md\" target=\"_blank\" rel=\"noopener noreferrer\">our Contribution guide</a>.</li></ul></div>\n `}\n />\n );\n};\n\nexport const CustomComponentDemo: Story = () => {\n const editorRef = useRef<EditorState>(null);\n const [editor, setEditor] = useState({} as TinymceEditor);\n\n const onCustomAction = () => {\n editor.insertContent('<pega-custom>Inserted from toolbar</pega-custom>');\n };\n\n return (\n <Editor\n ref={editorRef}\n label={label}\n toolbar={['inline-styling', 'lists', 'indentation', 'links', 'images']}\n defaultValue='<body><p>Hi mom <a href=\"https://google.com\">link</a></p><p>hi <pega-custom>Hello from custom element.</pega-custom></p></body>'\n customComponents={[{ createCustomElement: createPegaCustomElement, name: 'pega-custom' }]}\n customActions={[\n {\n icon: 'pega',\n text: 'Insert a custom element',\n onMouseDown: () => {\n onCustomAction();\n }\n }\n ]}\n onInit={initializedEditor => {\n setEditor(initializedEditor);\n }}\n />\n );\n};\n\nexport const RichTextEditorWithLogs: Story = () => {\n const editorRef = useRef<EditorState>(null);\n const [content, setContent] = useState<string | undefined>();\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n const showContent = (type: 'html' | 'plain_text' | 'rich_text') => {\n if (type === 'html') setContent(editorRef.current?.getHtml());\n else if (type === 'plain_text') setContent(editorRef.current?.getPlainText());\n else if (type === 'rich_text') setContent(editorRef.current?.getRichText());\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Editor\n ref={editorRef}\n toolbar={['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation']}\n onImageAdded={onImageAdded}\n label='Rich text editor with logs'\n info='Click on the buttons below to show the different formatted outputs of the RTE'\n />\n\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => showContent('html')}>Show HTML</Button>\n <Button onClick={() => showContent('plain_text')}>Show plain text</Button>\n <Button onClick={() => showContent('rich_text')}>Show rich text</Button>\n </Flex>\n\n <Text>{content}</Text>\n </Flex>\n );\n};\n\nexport const RichTextEditorHtmlParsingDemo: Story = () => {\n const [html, setHtml] = useState('<p>Hello world!</p>');\n const rteRef = useRef<EditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea value={html} onChange={e => setHtml(e.target.value)} />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <Editor\n defaultValue={html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label={label}\n toolbar={['inline-styling', 'headers', 'tables', 'links', 'images', 'lists', 'indentation']}\n />\n </Flex>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.mocks.jsx","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiB,MAAM,yBAAyB,CAAC;AAGhE,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,EAAG;KAChD;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;QAC5D,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,EAAG;KACjD;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,CAAC,mBAAmB,CAAC;QAChC,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAG;KAC/C;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAG;KAC/C;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;QAC7C,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,EAAG;KAChD;CACF,CAAC","sourcesContent":["import { Avatar, MenuItemProps } from '@pega/cosmos-react-core';\n\n// cspell:disable\nexport const demoUsers: MenuItemProps[] = [\n {\n id: 'turnc',\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\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 visual: <Avatar size='l' name='Seth DeAngelo' />\n },\n {\n id: 'moorj',\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />\n },\n {\n id: 'thomd',\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />\n },\n {\n id: 'hathb',\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />\n }\n];\n"]}
|
|
1
|
+
{"version":3,"file":"RichTextEditor.mocks.jsx","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiB,MAAM,yBAAyB,CAAC;AAGhE,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,EAAG;KAChD;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;QAC5D,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,EAAG;KACjD;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,CAAC,mBAAmB,CAAC;QAChC,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAG;KAC/C;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAG;KAC/C;IACD;QACE,EAAE,EAAE,OAAO;QACX,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;QAC7C,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,EAAG;KAChD;CACF,CAAC","sourcesContent":["import { Avatar, MenuItemProps } from '@pega/cosmos-react-core';\n\n// cspell:disable\nexport const demoUsers: MenuItemProps[] = [\n {\n id: 'turnc',\n primary: 'Cindy Turner',\n secondary: ['Lead Engineer'],\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 visual: <Avatar size='l' name='Seth DeAngelo' />\n },\n {\n id: 'moorj',\n primary: 'Janet Moore',\n secondary: ['Backend Developer'],\n visual: <Avatar size='l' name='Janet Moore' />\n },\n {\n id: 'thomd',\n primary: 'Dean Thomas',\n secondary: ['Designer'],\n visual: <Avatar size='l' name='Dean Thomas' />\n },\n {\n id: 'hathb',\n primary: 'Bob Hathoway',\n secondary: ['Lead Designer', 'Product Owner'],\n visual: <Avatar size='l' name='Bob Hathoway' />\n }\n];\n// cspell:enable\n"]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Meta, Story } from '@storybook/react';
|
|
3
2
|
import { RichTextEditorProps } from '@pega/cosmos-react-rte';
|
|
4
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
4
|
export default _default;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
interface RichTextEditorStoryProps extends RichTextEditorProps {
|
|
6
|
+
showAdditionalInfo?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const RichTextEditorDemo: Story<RichTextEditorStoryProps>;
|
|
9
|
+
export declare const RichTextEditorWithLogs: Story;
|
|
8
10
|
export declare const RichTextEditorMDDemo: Story<RichTextEditorProps>;
|
|
9
|
-
export declare const RichTextEditorHtmlParsingDemo:
|
|
11
|
+
export declare const RichTextEditorHtmlParsingDemo: Story;
|
|
10
12
|
//# sourceMappingURL=RichTextEditor.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RichTextEditor.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAa/C,OAAO,EAAkB,mBAAmB,EAAuB,MAAM,wBAAwB,CAAC;;AAIlG,wBAuBU;AAEV,UAAU,wBAAyB,SAAQ,mBAAmB;IAC5D,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,wBAAwB,CA6D9D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KA2CpC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,mBAAmB,CAsC3D,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,KAuC3C,CAAC"}
|
|
@@ -12,7 +12,8 @@ export default {
|
|
|
12
12
|
status: undefined,
|
|
13
13
|
required: false,
|
|
14
14
|
disabled: false,
|
|
15
|
-
readOnly: false
|
|
15
|
+
readOnly: false,
|
|
16
|
+
showAdditionalInfo: true
|
|
16
17
|
},
|
|
17
18
|
argTypes: {
|
|
18
19
|
label: { control: { type: 'text' } },
|
|
@@ -21,7 +22,8 @@ export default {
|
|
|
21
22
|
status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
|
|
22
23
|
required: { control: { type: 'boolean' } },
|
|
23
24
|
disabled: { control: { type: 'boolean' } },
|
|
24
|
-
readOnly: { control: { type: 'boolean' } }
|
|
25
|
+
readOnly: { control: { type: 'boolean' } },
|
|
26
|
+
showAdditionalInfo: { control: { type: 'boolean' } }
|
|
25
27
|
}
|
|
26
28
|
};
|
|
27
29
|
export const RichTextEditorDemo = (args) => {
|
|
@@ -46,7 +48,12 @@ export const RichTextEditorDemo = (args) => {
|
|
|
46
48
|
'lists',
|
|
47
49
|
'cut-copy-paste',
|
|
48
50
|
'indentation'
|
|
49
|
-
]} onImageAdded={onImageAdded} label={args.label} labelHidden={args.labelHidden} info={args.info} status={args.status} required={args.required} disabled={args.disabled} readOnly={args.readOnly}
|
|
51
|
+
]} onImageAdded={onImageAdded} label={args.label} labelHidden={args.labelHidden} info={args.info} status={args.status} required={args.required} disabled={args.disabled} readOnly={args.readOnly} additionalInfo={args.showAdditionalInfo
|
|
52
|
+
? {
|
|
53
|
+
heading: 'Additional Info',
|
|
54
|
+
content: 'A rich text editor allows you to write, edit, and format styled and rich text'
|
|
55
|
+
}
|
|
56
|
+
: undefined} defaultValue='<body><!-- I will break the RTE --><p> Life is stress free.</p><p> Life is stress free.</p></body>'/>
|
|
50
57
|
<Flex container={{ gap: 1 }}>
|
|
51
58
|
<Button onClick={overwriteText}>
|
|
52
59
|
Overwrite RTE value with 'Hello world!' HTML
|
|
@@ -110,7 +117,7 @@ export const RichTextEditorMDDemo = (args) => {
|
|
|
110
117
|
markdown: `@${item.id}:${item.primary}:user:`,
|
|
111
118
|
text: item.primary
|
|
112
119
|
};
|
|
113
|
-
}} menu={users.length ? { items: users } : undefined}
|
|
120
|
+
}} menu={users.length ? { items: users } : undefined} markdownOnly label={args.label} labelHidden={args.labelHidden} info={args.info} status={args.status} required={args.required} disabled={args.disabled} readOnly={args.readOnly}/>);
|
|
114
121
|
};
|
|
115
122
|
export const RichTextEditorHtmlParsingDemo = () => {
|
|
116
123
|
const [html, setHtml] = useState('<p>Hello world!</p>');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.stories.jsx","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EACL,MAAM,EACN,IAAI,EAEJ,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,UAAU,EACV,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAA4C,MAAM,wBAAwB,CAAC;A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meta, Story } from '@storybook/react';\nimport { useState, useRef } from 'react';\n\nimport {\n Button,\n Flex,\n MenuItemProps,\n Text,\n Card,\n CardContent,\n CardFooter,\n TextArea\n} from '@pega/cosmos-react-core';\nimport { RichTextEditor, RichTextEditorProps, RichTextEditorState } from '@pega/cosmos-react-rte';\n\nimport { demoUsers } from './RichTextEditor.mocks';\n\nexport default {\n title: 'RTE/RichTextEditor',\n component: RichTextEditor,\n args: {\n label: 'Rich text editor',\n labelHidden: false,\n info: 'The rich text editor can be used in forms, comments, and documents',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false\n },\n argTypes: {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } }\n }\n} as Meta;\n\nexport const RichTextEditorDemo: Story<RichTextEditorProps> = (args: RichTextEditorProps) => {\n const editorRef = useRef<RichTextEditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n const overwriteText = () => {\n editorRef.current?.insertHtml('<p>Hello world!</p>', true);\n };\n\n const insertText = () => {\n editorRef.current?.insertText('Hi mom!');\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n defaultValue='<body><!-- I will break the RTE --><p> Life is stress free.</p><p> Life is stress free.</p></body>'\n />\n <Flex container={{ gap: 1 }}>\n <Button onClick={overwriteText}>\n Overwrite RTE value with 'Hello world!' HTML\n </Button>\n <Button onClick={insertText} label='RTE Must be focused for insert text to work'>\n Insert 'Hi mom!'\n </Button>\n </Flex>\n </Flex>\n );\n};\n\nexport const RichTextEditorWithLogs = () => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [content, setContent] = useState<string | undefined>();\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n const showContent = (type: 'html' | 'plain_text' | 'rich_text') => {\n if (type === 'html') setContent(editorRef.current?.getHtml());\n else if (type === 'plain_text') setContent(editorRef.current?.getPlainText());\n else if (type === 'rich_text') setContent(editorRef.current?.getRichText());\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n label='Rich text editor with logs'\n info='Click on the buttons below to show the different formatted outputs of the RTE'\n />\n\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => showContent('html')}>Show HTML</Button>\n <Button onClick={() => showContent('plain_text')}>Show plain text</Button>\n <Button onClick={() => showContent('rich_text')}>Show rich text</Button>\n </Flex>\n\n <Text>{content}</Text>\n </Flex>\n );\n};\n\nexport const RichTextEditorMDDemo: Story<RichTextEditorProps> = (args: RichTextEditorProps) => {\n const [users, setUsers] = useState<MenuItemProps[]>(demoUsers);\n\n const searchUsers = (event: { search: string; trigger: string }) => {\n if (event.trigger === '@') {\n setUsers(\n demoUsers.filter(user => {\n return user.primary.toLowerCase().includes(event.search.toLowerCase());\n })\n );\n }\n };\n\n return (\n <RichTextEditor\n searchTriggers={[{ trigger: '@', regex: '[a-zA-Z]*(?: [a-zA-Z]*)?' }]}\n onSearch={searchUsers}\n getSearchItemReplacement={(id: string) => {\n const item = demoUsers.find(({ id: itemId }) => itemId === id);\n\n if (!item) return undefined;\n\n return {\n markdown: `@${item.id}:${item.primary}:user:`,\n text: item.primary\n };\n }}\n menu={users.length ? { items: users } : undefined}\n autoFocus\n markdownOnly\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nexport const RichTextEditorHtmlParsingDemo = () => {\n const [html, setHtml] = useState('<p>Hello world!</p>');\n const rteRef = useRef<RichTextEditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea value={html} onChange={e => setHtml(e.target.value)} />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <RichTextEditor\n defaultValue={html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label='Rich text editor'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n />\n </Flex>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"RichTextEditor.stories.jsx","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextEditor.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EACL,MAAM,EACN,IAAI,EAEJ,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,UAAU,EACV,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAA4C,MAAM,wBAAwB,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,cAAc;IACzB,IAAI,EAAE;QACJ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AAgB;YAChB,aAAa;SACd,CAAC,EAEN;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useState, useRef } from 'react';\n\nimport {\n Button,\n Flex,\n MenuItemProps,\n Text,\n Card,\n CardContent,\n CardFooter,\n TextArea\n} from '@pega/cosmos-react-core';\nimport { RichTextEditor, RichTextEditorProps, RichTextEditorState } from '@pega/cosmos-react-rte';\n\nimport { demoUsers } from './RichTextEditor.mocks';\n\nexport default {\n title: 'RTE/RichTextEditor',\n component: RichTextEditor,\n args: {\n label: 'Rich text editor',\n labelHidden: false,\n info: 'The rich text editor can be used in forms, comments, and documents',\n status: undefined,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: true\n },\n argTypes: {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n }\n} as Meta;\n\ninterface RichTextEditorStoryProps extends RichTextEditorProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const RichTextEditorDemo: Story<RichTextEditorStoryProps> = (\n args: RichTextEditorStoryProps\n) => {\n const editorRef = useRef<RichTextEditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n const overwriteText = () => {\n editorRef.current?.insertHtml('<p>Hello world!</p>', true);\n };\n\n const insertText = () => {\n editorRef.current?.insertText('Hi mom!');\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n additionalInfo={\n args.showAdditionalInfo\n ? {\n heading: 'Additional Info',\n content:\n 'A rich text editor allows you to write, edit, and format styled and rich text'\n }\n : undefined\n }\n defaultValue='<body><!-- I will break the RTE --><p> Life is stress free.</p><p> Life is stress free.</p></body>'\n />\n <Flex container={{ gap: 1 }}>\n <Button onClick={overwriteText}>\n Overwrite RTE value with 'Hello world!' HTML\n </Button>\n <Button onClick={insertText} label='RTE Must be focused for insert text to work'>\n Insert 'Hi mom!'\n </Button>\n </Flex>\n </Flex>\n );\n};\n\nexport const RichTextEditorWithLogs: Story = () => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [content, setContent] = useState<string | undefined>();\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n editorRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n const showContent = (type: 'html' | 'plain_text' | 'rich_text') => {\n if (type === 'html') setContent(editorRef.current?.getHtml());\n else if (type === 'plain_text') setContent(editorRef.current?.getPlainText());\n else if (type === 'rich_text') setContent(editorRef.current?.getRichText());\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onImageAdded={onImageAdded}\n label='Rich text editor with logs'\n info='Click on the buttons below to show the different formatted outputs of the RTE'\n />\n\n <Flex container={{ gap: 1 }}>\n <Button onClick={() => showContent('html')}>Show HTML</Button>\n <Button onClick={() => showContent('plain_text')}>Show plain text</Button>\n <Button onClick={() => showContent('rich_text')}>Show rich text</Button>\n </Flex>\n\n <Text>{content}</Text>\n </Flex>\n );\n};\n\nexport const RichTextEditorMDDemo: Story<RichTextEditorProps> = (args: RichTextEditorProps) => {\n const [users, setUsers] = useState<MenuItemProps[]>(demoUsers);\n\n const searchUsers = (event: { search: string; trigger: string }) => {\n if (event.trigger === '@') {\n setUsers(\n demoUsers.filter(user => {\n return user.primary.toLowerCase().includes(event.search.toLowerCase());\n })\n );\n }\n };\n\n return (\n <RichTextEditor\n searchTriggers={[{ trigger: '@', regex: '[a-zA-Z]*(?: [a-zA-Z]*)?' }]}\n onSearch={searchUsers}\n getSearchItemReplacement={(id: string) => {\n const item = demoUsers.find(({ id: itemId }) => itemId === id);\n\n if (!item) return undefined;\n\n return {\n markdown: `@${item.id}:${item.primary}:user:`,\n text: item.primary\n };\n }}\n menu={users.length ? { items: users } : undefined}\n markdownOnly\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n />\n );\n};\n\nexport const RichTextEditorHtmlParsingDemo: Story = () => {\n const [html, setHtml] = useState('<p>Hello world!</p>');\n const rteRef = useRef<RichTextEditorState>(null);\n\n const onImageAdded = (image: File, id: string) => {\n const src = URL.createObjectURL(image);\n rteRef.current?.appendImage({ src, alt: image.name }, id);\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Card>\n <CardContent>\n <TextArea value={html} onChange={e => setHtml(e.target.value)} />\n </CardContent>\n <CardFooter>\n <Button onClick={() => rteRef.current?.insertHtml(html.trim(), true)}>\n Overwrite RTE with new HTML\n </Button>\n </CardFooter>\n </Card>\n <RichTextEditor\n defaultValue={html}\n onImageAdded={onImageAdded}\n ref={rteRef}\n label='Rich text editor'\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'images',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n />\n </Flex>\n );\n};\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { Meta } from '@storybook/react';
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
2
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
3
|
export default _default;
|
|
5
|
-
export declare const RichTextViewerDemo:
|
|
6
|
-
export declare const RichTextViewerHTMLDemo:
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const RichTextViewerDemo: Story;
|
|
5
|
+
export declare const RichTextViewerHTMLDemo: Story;
|
|
6
|
+
export declare const RichTextViewerHTMLOverflowDemo: Story;
|
|
7
|
+
export declare const RichTextViewerMDDemo: Story;
|
|
8
8
|
//# sourceMappingURL=RichTextViewer.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextViewer.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextViewer.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RichTextViewer.stories.d.ts","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextViewer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;;AAc/C,wBAGU;AAEV,eAAO,MAAM,kBAAkB,EAAE,KAuBhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAuBpC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KA0B5C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KA2DlC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
2
|
import { Flex, Link } from '@pega/cosmos-react-core';
|
|
3
3
|
import { HashtagButtonConfig, MentionButtonConfig } from '@pega/cosmos-react-social';
|
|
4
|
-
import {
|
|
4
|
+
import { RichTextViewer, RichTextEditor } from '@pega/cosmos-react-rte';
|
|
5
5
|
import { demoUsers } from './RichTextEditor.mocks';
|
|
6
6
|
export default {
|
|
7
7
|
title: 'RTE/RichTextViewer',
|
|
@@ -41,6 +41,23 @@ export const RichTextViewerHTMLDemo = () => {
|
|
|
41
41
|
<RichTextViewer content={content} type='html'/>
|
|
42
42
|
</Flex>);
|
|
43
43
|
};
|
|
44
|
+
export const RichTextViewerHTMLOverflowDemo = () => {
|
|
45
|
+
const editorRef = useRef(null);
|
|
46
|
+
const [content, setContent] = useState(() => "<p style='background-color: green; width: 110%; height: 100px;'>hi</p>");
|
|
47
|
+
return (<Flex container={{ direction: 'column', gap: 2 }}>
|
|
48
|
+
<RichTextEditor ref={editorRef} toolbar={[
|
|
49
|
+
'inline-styling',
|
|
50
|
+
'headers',
|
|
51
|
+
'tables',
|
|
52
|
+
'links',
|
|
53
|
+
'lists',
|
|
54
|
+
'cut-copy-paste',
|
|
55
|
+
'indentation'
|
|
56
|
+
]} defaultValue={content} onChange={() => setContent(editorRef.current?.getHtml() || '')}/>
|
|
57
|
+
|
|
58
|
+
<RichTextViewer content={content} type='html'/>
|
|
59
|
+
</Flex>);
|
|
60
|
+
};
|
|
44
61
|
export const RichTextViewerMDDemo = () => {
|
|
45
62
|
const LinkComponent = ({ token }) => {
|
|
46
63
|
return (<Link href={token.href} previewable>
|
|
@@ -66,7 +83,7 @@ export const RichTextViewerMDDemo = () => {
|
|
|
66
83
|
markdown: `@${item.id}:${item.primary}:user:`,
|
|
67
84
|
text: item.primary
|
|
68
85
|
};
|
|
69
|
-
}} menu={users.length ? { items: users } : undefined}
|
|
86
|
+
}} menu={users.length ? { items: users } : undefined} markdownOnly defaultValue={'# Try writing some of your own markdown and see how it renders!\n\nYou can interact with mentions such as @[deans]:[Seth DeAngelo]:[user]:\n\nThere is built in support for #tags: as well!\n\nComponent renderings can also be conditionally overwritten: [Link](https://www.google.com) -- [Link with preview](https://www.pega.com)'} onChange={() => setContent(editorRef.current?.getPlainText() || '')}/>
|
|
70
87
|
|
|
71
88
|
<RichTextViewer content={content} type='markdown' interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]} markdownMap={{
|
|
72
89
|
link: (linkToken) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextViewer.stories.jsx","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextViewer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAiB,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrF,OAAO,EACL,cAAc,EACd,cAAc,EAGf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,cAAc;CAClB,CAAC;AAEV,MAAM,CAAC,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"RichTextViewer.stories.jsx","sourceRoot":"","sources":["../../../src/rte/RichTextEditor/RichTextViewer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAiB,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrF,OAAO,EACL,cAAc,EACd,cAAc,EAGf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,cAAc;CAClB,CAAC;AAEV,MAAM,CAAC,MAAM,kBAAkB,GAAU,GAAG,EAAE;IAC5C,MAAM,SAAS,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IACpD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,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ACD,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,EAGtE;;MAAA,CAAC,cAAc,CACb,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,IAAI,CAAC,UAAU,CACf,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CACjE,WAAW,CAAC,CAAC;YACX,IAAI,EAAE,CAAC,SAA2B,EAAE,EAAE;gBACpC,IAAI,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC;oBAAE,OAAO,aAAa,CAAC;YACrE,CAAC;SACF,CAAC,EAEN;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Meta, Story } from '@storybook/react';\nimport { useRef, useState } from 'react';\n\nimport { Flex, Link, MenuItemProps } from '@pega/cosmos-react-core';\nimport { HashtagButtonConfig, MentionButtonConfig } from '@pega/cosmos-react-social';\nimport {\n RichTextViewer,\n RichTextEditor,\n RichTextEditorState,\n TokenMap\n} from '@pega/cosmos-react-rte';\n\nimport { demoUsers } from './RichTextEditor.mocks';\n\nexport default {\n title: 'RTE/RichTextViewer',\n component: RichTextViewer\n} as Meta;\n\nexport const RichTextViewerDemo: Story = () => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [content, setContent] = useState('[]');\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onChange={() => setContent(editorRef.current?.getRichText() || '')}\n />\n\n <RichTextViewer content={content} type='richtext' />\n </Flex>\n );\n};\n\nexport const RichTextViewerHTMLDemo: Story = () => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [content, setContent] = useState('');\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n onChange={() => setContent(editorRef.current?.getHtml() || '')}\n />\n\n <RichTextViewer content={content} type='html' />\n </Flex>\n );\n};\n\nexport const RichTextViewerHTMLOverflowDemo: Story = () => {\n const editorRef = useRef<RichTextEditorState>(null);\n const [content, setContent] = useState(\n () => \"<p style='background-color: green; width: 110%; height: 100px;'>hi</p>\"\n );\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n toolbar={[\n 'inline-styling',\n 'headers',\n 'tables',\n 'links',\n 'lists',\n 'cut-copy-paste',\n 'indentation'\n ]}\n defaultValue={content}\n onChange={() => setContent(editorRef.current?.getHtml() || '')}\n />\n\n <RichTextViewer content={content} type='html' />\n </Flex>\n );\n};\n\nexport const RichTextViewerMDDemo: Story = () => {\n const LinkComponent = ({ token }: { token: TokenMap['link'] }) => {\n return (\n <Link href={token.href} previewable>\n {token.text}\n </Link>\n );\n };\n\n const editorRef = useRef<RichTextEditorState>(null);\n const [content, setContent] = useState('');\n const [users, setUsers] = useState<MenuItemProps[]>(demoUsers);\n\n const searchUsers = (event: { search: string; trigger: string }) => {\n if (event.trigger === '@') {\n setUsers(\n demoUsers.filter(user => {\n return user.primary.toLowerCase().includes(event.search.toLowerCase());\n })\n );\n }\n };\n\n return (\n <Flex container={{ direction: 'column', gap: 2 }}>\n <RichTextEditor\n ref={editorRef}\n searchTriggers={[{ trigger: '@', regex: '[a-zA-Z]*(?: [a-zA-Z]*)?' }]}\n onSearch={searchUsers}\n getSearchItemReplacement={(id: string) => {\n const item = demoUsers.find(({ id: itemId }) => itemId === id);\n\n if (!item) return undefined;\n\n return {\n markdown: `@${item.id}:${item.primary}:user:`,\n text: item.primary\n };\n }}\n menu={users.length ? { items: users } : undefined}\n markdownOnly\n defaultValue={\n '# Try writing some of your own markdown and see how it renders!\\n\\nYou can interact with mentions such as @[deans]:[Seth DeAngelo]:[user]:\\n\\nThere is built in support for #tags: as well!\\n\\nComponent renderings can also be conditionally overwritten: [Link](https://www.google.com) -- [Link with preview](https://www.pega.com)'\n }\n onChange={() => setContent(editorRef.current?.getPlainText() || '')}\n />\n\n <RichTextViewer\n content={content}\n type='markdown'\n interactionRenderers={[MentionButtonConfig, HashtagButtonConfig]}\n markdownMap={{\n link: (linkToken: TokenMap['link']) => {\n if (linkToken.href?.includes('www.pega.com')) return LinkComponent;\n }\n }}\n />\n </Flex>\n );\n};\n"]}
|
|
@@ -312,7 +312,6 @@ export declare const ChatMockData: {
|
|
|
312
312
|
name: string;
|
|
313
313
|
imageSrc?: undefined;
|
|
314
314
|
};
|
|
315
|
-
message: string;
|
|
316
315
|
timeStamp: string;
|
|
317
316
|
attachments: {
|
|
318
317
|
id: string;
|
|
@@ -321,6 +320,7 @@ export declare const ChatMockData: {
|
|
|
321
320
|
meta: string;
|
|
322
321
|
}[];
|
|
323
322
|
ariaLabel: string;
|
|
323
|
+
message?: undefined;
|
|
324
324
|
status?: undefined;
|
|
325
325
|
pagePushLinks?: undefined;
|
|
326
326
|
messagePrivacy?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.mocks.js","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE;QACX;YACE,EAAE,EAAE,gBAAgB;YACpB,KAAK,EAAE,KAAK;YACZ,kBAAkB,EAAE,IAAI;YACxB,IAAI,EAAE;gBACJ;oBACE,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,uEAAuE;oBAChF,SAAS,EACP,6FAA6F;iBAChG;gBACD;oBACE,EAAE,EAAE,WAAW;oBACf,IAAI,EAAE,YAAY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C;QACxC,oDAAoD;QACpD,gDAAgD;QAChD,2BAA2B;QAC3B,uCAAuC;QACvC,6BAA6B;QAC7B,yCAAyC;QACzC,iCAAiC;QACjC,wCAAwC;QACxC,oDAAoD;QACpD,gDAAgD;QAChD,2BAA2B;KAC5B;IACD,eAAe,EAAE;QACf,oDAAoD;QACpD,6DAA6D;QAC7D,kBAAkB;QAClB,wGAAwG;QACxG,qFAAqF;QACrF,kJAAkJ;QAClJ,qIAAqI;QACrI,kJAAkJ;QAClJ,oDAAoD;QACpD,6DAA6D;QAC7D,kBAAkB;QAClB,wGAAwG;QACxG,qFAAqF;QACrF,kJAAkJ;QAClJ,qIAAqI;QACrI,kJAAkJ;QAClJ,oDAAoD;KACrD;CACF,CAAC","sourcesContent":["export const ChatMockData = {\n transcripts: [\n {\n id: 'botTranscripts',\n title: 'Bot',\n earlierTranscripts: true,\n data: [\n {\n id: '2499167349',\n type: 'transcript',\n timeStamp: '01:20 PM',\n variant: 'bot',\n message: 'Hello… This is bot. How can I help you? Please select your category. ',\n ariaLabel:\n 'Bot said Hello… This is bot. How can I help you? Please select your category. at 01:20 PM'\n },\n {\n id: '414918079',\n type: 'transcript',\n timeStamp: '01:21 PM',\n variant: 'user',\n message: 'Policy details',\n avatarInfo: {\n name: 'Sara Davis'\n },\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n ariaLabel: 'Sara Davis said Policy details at 01:21 PM via Public Tweet'\n },\n {\n id: '4750473261',\n type: 'transcript',\n timeStamp: '01:22 PM',\n variant: 'bot',\n message: 'Please select what would you like to know about your policy. 😃😃',\n ariaLabel:\n 'Bot said Please select what would you like to know about your policy. at 01:22 PM'\n },\n {\n id: '925521127',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Policy terms and conditions',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Policy terms and conditions at 01:23 PM'\n }\n ]\n },\n {\n id: 'preChatTranscript',\n title: 'Questionnaire',\n earlierTranscripts: false,\n data: [\n {\n id: '1457969897',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please enter your query',\n ariaLabel: 'Customer was asked for Could you please enter your query at 01:23 PM'\n },\n {\n id: '4633052071',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'I would like to know my policy terms and conditions',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said I would like to know my policy terms and conditions at 01:23 PM'\n },\n {\n id: '3105885518',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please select the policy',\n ariaLabel: 'Customer was asked for Could you please select the policy at 01:23 PM'\n },\n {\n id: '3008407298',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Insurance policy - 5545456668555',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Insurance policy - 5545456668555 at 01:23 PM via Public Tweet'\n },\n {\n id: '4700050925',\n type: 'system',\n message: 'Chat escalated to live agent',\n timeStamp: '01:23 PM'\n },\n {\n id: '3608004939',\n type: 'system',\n message: 'Agent Fred joined the chat',\n timeStamp: '01:24 PM'\n }\n ]\n },\n {\n id: 'csrTranscript',\n earlierTranscripts: false,\n title: 'Transcripts: Agent Fred and Jim',\n data: [\n {\n id: '4713954822',\n type: 'transcript',\n timeStamp: '01:24 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'Hello, Welcome to U-Plus. How can I help you?',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Hello, Welcome to U-Plus. How can I help you? at 01:24 PM via Public Tweet'\n },\n {\n id: '2582654831',\n type: 'transcript',\n timeStamp: '01:25 PM',\n variant: 'user',\n message: 'Hi, I would like to know my policy terms and condition',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Hi, I would like to know my policy terms and condition at 01:25 PM'\n },\n {\n id: '4422603601',\n type: 'transcript',\n timeStamp: '01:26 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'You can refer this article to know more',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said You can refer this article to know more at 01:26 PM via Public Tweet'\n },\n {\n id: '973978246',\n type: 'system',\n message: 'Customer opened knowledge article',\n timeStamp: '01:26 PM'\n },\n {\n id: '44764769',\n type: 'transcript',\n timeStamp: '01:26 PM',\n variant: 'user',\n message: 'Also I would like to know my policy validity',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Also I would like to know my policy validity at 01:26 PM'\n },\n {\n id: '1052005901',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Is that fine if I can transfer your chat to serve better? ',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Is that fine if I can transfer your chat to serve better? at 01:27 PM'\n },\n {\n id: '474082342',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Yeah Sure',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Yeah Sure at 01:27 PM'\n },\n {\n id: '2128368768',\n type: 'system',\n message: 'Chat has been transferred',\n timeStamp: '01:27 PM'\n }\n ]\n }\n ],\n participants: {\n transcriptUser1: {\n avatarInfo: {\n name: 'Jim'\n }\n },\n transcriptUser2: {\n avatarInfo: {\n name: 'Fred'\n }\n },\n sender: {\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n }\n },\n sender2: {\n variant: 'sender',\n direction: 'out'\n },\n receiver: {\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n }\n },\n other: {\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n }\n }\n },\n chatMessages: [\n {\n id: '4276065002',\n type: 'system',\n message: 'John brown has joined',\n timeStamp: '01:44 PM'\n },\n {\n id: '88365643',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Hi, Welcome to u-plus. How can I help you ?',\n timeStamp: '1:44 PM',\n status: 'Opened',\n attachments: [\n {\n id: '2499167340',\n name: 'Location',\n icon: 'document',\n meta: 'PNG 0.1 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n },\n {\n id: '2499167341',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-pdf',\n meta: 'PDF 0.7 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Hi, Welcome to u-plus. How can I help you ? at 1:44 PM with 2 attachments'\n },\n {\n id: '3245595973',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'You may also reach us via',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'\n },\n {\n id: '3865379335',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Hi, I would like to know the validity of my policy',\n ariaLabel:\n 'Sara Davis said Hi, I would like to know the validity of my policy via Public Tweet'\n },\n {\n id: '777315059',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Could you please help',\n timeStamp: '1:45 PM',\n ariaLabel: 'Sara Davis said Could you please help at 1:45 PM via Public Tweet'\n },\n {\n id: '4001121034',\n type: 'system',\n message: 'Pegasystems has joined'\n },\n {\n id: '779591083',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: 'Great, our CSR will help you with that',\n timeStamp: '1:46 PM',\n status: 'Delivered',\n ariaLabel: 'Pegasystems said Great, our CSR will help you with that at 1:46 PM'\n },\n {\n id: '2683629622',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Sure',\n timeStamp: '1:48 PM',\n status: 'Delivered',\n ariaLabel: 'John Brown said Sure at 1:48 PM via Public Tweet'\n },\n {\n id: '2748689942',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Carry on',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167343',\n name: 'Departments mapping',\n icon: 'document-doc',\n meta: 'PDF 0.1 MB'\n }\n ],\n ariaLabel: 'Pegasystems said Carry on at 1:49 PM with 1 attachment'\n },\n {\n id: '4110947991',\n type: 'message',\n variant: 'other',\n direction: 'in',\n messagePrivacy: 'PUBLIC REPLY',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Refer these documents for more FAQ',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167345',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-doc',\n meta: 'PDF 0.7 MB'\n },\n {\n id: '2499167346',\n name: 'Privacy policy',\n icon: 'document-doc',\n meta: 'WORD 0.1 MB'\n }\n ],\n ariaLabel:\n 'Pegasystems said Refer these documents for more FAQ at 1:49 PM with 2 attachments via Public Tweet'\n },\n {\n id: '2549273884',\n type: 'system',\n message: 'Pegasystems has left'\n },\n {\n id: '3375453344',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Could you please help me with your account num',\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167347',\n name: 'Security policy',\n icon: 'document-pdf',\n meta: 'PDF 6.1 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Could you please help me with your account num at 1:50 PM with 1 attachment via Public Tweet'\n },\n {\n id: '1868448522',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Yeah, sure please give me a second',\n ariaLabel: 'Sara Davis said Yeah, sure please give me a second '\n },\n {\n id: '1295058543',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: '5588-8899-45-89',\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167348',\n name: 'Vehicle insurance',\n icon: 'document-doc',\n meta: 'WORD 1.1 MB'\n }\n ],\n ariaLabel: 'Sara Davis said 5588-8899-45-89 at 1:50 PM with 1 attachment'\n },\n {\n id: '2690247642',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Let me pick your details',\n status: 'Delivered',\n ariaLabel: 'John Brown said Let me pick your details '\n },\n {\n id: '1208949065',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Can I please transfer your chat request to concerned department please ?',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'John Brown said Can I please transfer your chat request to concerned department please ? at 1:51 PM'\n },\n {\n id: '4302656892',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Sure',\n timeStamp: '1:51 PM',\n ariaLabel: 'Sara Davis said Sure at 1:51 PM'\n },\n {\n id: '658052414',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Please give me a moment',\n timeStamp: '1:51 PM',\n ariaLabel: 'John Brown said Please give me a moment at 1:51 PM'\n },\n {\n id: '719933419',\n type: 'system',\n message: 'Mike has joined'\n },\n {\n id: '679831597',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message:\n 'Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'You said Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details at 1:51 PM'\n },\n {\n id: '2785439809',\n type: 'system',\n message: 'John brown has left'\n },\n {\n id: '85859690',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Ok, your insurance is valid until Dec 21, 2020 11:00 AM',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Ok, your insurance is valid until Dec 21, 2020 11:00 AM at 1:52 PM'\n },\n {\n id: '2484793043',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Thanks',\n timeStamp: '1:52 PM',\n ariaLabel: 'Sara Davis said Thanks at 1:52 PM'\n },\n {\n id: '352967030',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Is there anything I can help you with',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Is there anything I can help you with at 1:52 PM'\n },\n {\n id: '3432757116',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'I am good.😃',\n timeStamp: '1:53 PM',\n ariaLabel: 'Sara Davis said I am good 😃. at 1:53 PM'\n },\n {\n id: '2432461831',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Thanks for contacting us, have a great day',\n timeStamp: '1:53 PM',\n ariaLabel: 'You said Thanks for contacting us, have a great day at 1:53 PM'\n },\n {\n id: '2965626280',\n type: 'system',\n message: 'Chat has been ended'\n }\n ],\n defaultAttachments: [\n {\n id: '4455774588',\n name: '03/2020 statement.pdf'\n },\n {\n id: '44557745889',\n name: 'Policy T&C.pdf'\n }\n ],\n suggestedReplies: [\n {\n id: 'suggested_reply_1',\n message: 'Hello, Good morning Sara. How can I help you today',\n confidence: 94\n },\n {\n id: 'suggested_reply_2',\n message:\n 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',\n confidence: 75\n }\n ],\n phrasesDisplayNames: [\n 'Account > Account balance',\n 'Agreement > End of a case/interaction',\n 'Agreement > Mid interaction',\n 'Apologize > Apologize - ask customer to',\n 'Apologize > Thanks for patience',\n 'Ask for transfer > Agent not available',\n 'Ask for transfer > Agent not available - call back',\n 'Ask for transfer > Agent not available - stall',\n 'Account > Account balance',\n 'Agreement > End of a case/interaction',\n 'Agreement > Mid interaction',\n 'Apologize > Apologize - ask customer to',\n 'Apologize > Thanks for patience',\n 'Ask for transfer > Agent not available',\n 'Ask for transfer > Agent not available - call back',\n 'Ask for transfer > Agent not available - stall',\n 'Account > Account balance'\n ],\n phrasesMessages: [\n 'Ms. Sara J Connor your account balance is $5226.32',\n 'My pleasure! Is there anything else I can do for you today?',\n 'You are welcome!',\n \"Ms.Connor. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\",\n 'Thanks for your patience. I am working on your request. I will be with you shortly.',\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\",\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n 'Ms. Sara J Connor your account balance is $5226.32',\n 'My pleasure! Is there anything else I can do for you today?',\n 'You are welcome!',\n \"Ms.Connor. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\",\n 'Thanks for your patience. I am working on your request. I will be with you shortly.',\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\",\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n 'Ms. Sara J Connor your account balance is $5226.32'\n ]\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Chat.mocks.js","sourceRoot":"","sources":["../../../src/social/Chat/Chat.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE;QACX;YACE,EAAE,EAAE,gBAAgB;YACpB,KAAK,EAAE,KAAK;YACZ,kBAAkB,EAAE,IAAI;YACxB,IAAI,EAAE;gBACJ;oBACE,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,uEAAuE;oBAChF,SAAS,EACP,6FAA6F;iBAChG;gBACD;oBACE,EAAE,EAAE,WAAW;oBACf,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,MAAM;oBACf,OAAO,EAAE,gBAAgB;oBACzB,UAAU,EAAE;wBACV,IAAI,EAAE,YAAY;qBACnB;oBACD,cAAc,EAAE;wBACd,OAAO,EAAE,cAAc;qBACxB;oBACD,SAAS,EAAE,6DAA6D;iBACzE;gBACD;oBACE,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,mEAAmE;oBAC5E,SAAS,EACP,oFAAoF;iBACvF;gBACD;oBACE,EAAE,EAAE,WAAW;oBACf,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,UAAU;oBACrB,OAAO,EAAE,MAAM;oBACf,OAAO,EAAE,6BAA6B;oBACtC,cAAc,EAAE;wBACd,OAAO,EAAE,cAAc;qBACxB;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,YAAY;qBACnB;oBACD,SAAS,EAAE,0DAA0D;iBACtE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,EAAE,gEAAgE;SAC5E;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,qBAAqB;SAC/B;KACF;IACD,kBAAkB,EAAE;QAClB;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,uBAAuB;SAC9B;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,gBAAgB;SACvB;KACF;IACD,gBAAgB,EAAE;QAChB;YACE,EAAE,EAAE,mBAAmB;YACvB,OAAO,EAAE,oDAAoD;YAC7D,UAAU,EAAE,EAAE;SACf;QACD;YACE,EAAE,EAAE,mBAAmB;YACvB,OAAO,EACL,oIAAoI;YACtI,UAAU,EAAE,EAAE;SACf;KACF;IACD,mBAAmB,EAAE;QACnB,2BAA2B;QAC3B,uCAAuC;QACvC,6BAA6B;QAC7B,yCAAyC;QACzC,iCAAiC;QACjC,wCAAwC;QACxC,oDAAoD;QACpD,gDAAgD;QAChD,2BAA2B;QAC3B,uCAAuC;QACvC,6BAA6B;QAC7B,yCAAyC;QACzC,iCAAiC;QACjC,wCAAwC;QACxC,oDAAoD;QACpD,gDAAgD;QAChD,2BAA2B;KAC5B;IACD,eAAe,EAAE;QACf,oDAAoD;QACpD,6DAA6D;QAC7D,kBAAkB;QAClB,wGAAwG;QACxG,qFAAqF;QACrF,kJAAkJ;QAClJ,qIAAqI;QACrI,kJAAkJ;QAClJ,oDAAoD;QACpD,6DAA6D;QAC7D,kBAAkB;QAClB,wGAAwG;QACxG,qFAAqF;QACrF,kJAAkJ;QAClJ,qIAAqI;QACrI,kJAAkJ;QAClJ,oDAAoD;KACrD;CACF,CAAC","sourcesContent":["export const ChatMockData = {\n transcripts: [\n {\n id: 'botTranscripts',\n title: 'Bot',\n earlierTranscripts: true,\n data: [\n {\n id: '2499167349',\n type: 'transcript',\n timeStamp: '01:20 PM',\n variant: 'bot',\n message: 'Hello… This is bot. How can I help you? Please select your category. ',\n ariaLabel:\n 'Bot said Hello… This is bot. How can I help you? Please select your category. at 01:20 PM'\n },\n {\n id: '414918079',\n type: 'transcript',\n timeStamp: '01:21 PM',\n variant: 'user',\n message: 'Policy details',\n avatarInfo: {\n name: 'Sara Davis'\n },\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n ariaLabel: 'Sara Davis said Policy details at 01:21 PM via Public Tweet'\n },\n {\n id: '4750473261',\n type: 'transcript',\n timeStamp: '01:22 PM',\n variant: 'bot',\n message: 'Please select what would you like to know about your policy. 😃😃',\n ariaLabel:\n 'Bot said Please select what would you like to know about your policy. at 01:22 PM'\n },\n {\n id: '925521127',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Policy terms and conditions',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Policy terms and conditions at 01:23 PM'\n }\n ]\n },\n {\n id: 'preChatTranscript',\n title: 'Questionnaire',\n earlierTranscripts: false,\n data: [\n {\n id: '1457969897',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please enter your query',\n ariaLabel: 'Customer was asked for Could you please enter your query at 01:23 PM'\n },\n {\n id: '4633052071',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'I would like to know my policy terms and conditions',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said I would like to know my policy terms and conditions at 01:23 PM'\n },\n {\n id: '3105885518',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'question',\n message: 'Could you please select the policy',\n ariaLabel: 'Customer was asked for Could you please select the policy at 01:23 PM'\n },\n {\n id: '3008407298',\n type: 'transcript',\n timeStamp: '01:23 PM',\n variant: 'user',\n message: 'Insurance policy - 5545456668555',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Insurance policy - 5545456668555 at 01:23 PM via Public Tweet'\n },\n {\n id: '4700050925',\n type: 'system',\n message: 'Chat escalated to live agent',\n timeStamp: '01:23 PM'\n },\n {\n id: '3608004939',\n type: 'system',\n message: 'Agent Fred joined the chat',\n timeStamp: '01:24 PM'\n }\n ]\n },\n {\n id: 'csrTranscript',\n earlierTranscripts: false,\n title: 'Transcripts: Agent Fred and Jim',\n data: [\n {\n id: '4713954822',\n type: 'transcript',\n timeStamp: '01:24 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'Hello, Welcome to U-Plus. How can I help you?',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Hello, Welcome to U-Plus. How can I help you? at 01:24 PM via Public Tweet'\n },\n {\n id: '2582654831',\n type: 'transcript',\n timeStamp: '01:25 PM',\n variant: 'user',\n message: 'Hi, I would like to know my policy terms and condition',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel:\n 'Sara Davis said Hi, I would like to know my policy terms and condition at 01:25 PM'\n },\n {\n id: '4422603601',\n type: 'transcript',\n timeStamp: '01:26 PM',\n messagePrivacy: {\n privacy: 'PUBLIC TWEET'\n },\n variant: 'user',\n message: 'You can refer this article to know more',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said You can refer this article to know more at 01:26 PM via Public Tweet'\n },\n {\n id: '973978246',\n type: 'system',\n message: 'Customer opened knowledge article',\n timeStamp: '01:26 PM'\n },\n {\n id: '44764769',\n type: 'transcript',\n timeStamp: '01:26 PM',\n variant: 'user',\n message: 'Also I would like to know my policy validity',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Also I would like to know my policy validity at 01:26 PM'\n },\n {\n id: '1052005901',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Is that fine if I can transfer your chat to serve better? ',\n avatarInfo: {\n name: 'Jim'\n },\n ariaLabel:\n 'Jim said Is that fine if I can transfer your chat to serve better? at 01:27 PM'\n },\n {\n id: '474082342',\n type: 'transcript',\n timeStamp: '01:27 PM',\n variant: 'user',\n message: 'Yeah Sure',\n avatarInfo: {\n name: 'Sara Davis'\n },\n ariaLabel: 'Sara Davis said Yeah Sure at 01:27 PM'\n },\n {\n id: '2128368768',\n type: 'system',\n message: 'Chat has been transferred',\n timeStamp: '01:27 PM'\n }\n ]\n }\n ],\n participants: {\n transcriptUser1: {\n avatarInfo: {\n name: 'Jim'\n }\n },\n transcriptUser2: {\n avatarInfo: {\n name: 'Fred'\n }\n },\n sender: {\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n }\n },\n sender2: {\n variant: 'sender',\n direction: 'out'\n },\n receiver: {\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n }\n },\n other: {\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n }\n }\n },\n chatMessages: [\n {\n id: '4276065002',\n type: 'system',\n message: 'John brown has joined',\n timeStamp: '01:44 PM'\n },\n {\n id: '88365643',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Hi, Welcome to u-plus. How can I help you ?',\n timeStamp: '1:44 PM',\n status: 'Opened',\n attachments: [\n {\n id: '2499167340',\n name: 'Location',\n icon: 'document',\n meta: 'PNG 0.1 MB',\n thumbnail:\n 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'\n },\n {\n id: '2499167341',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-pdf',\n meta: 'PDF 0.7 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Hi, Welcome to u-plus. How can I help you ? at 1:44 PM with 2 attachments'\n },\n {\n id: '3245595973',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'You may also reach us via',\n timeStamp: '1:45 PM',\n pagePushLinks: [\n {\n id: '2499167349',\n href: 'https://collaborate.pega.com/',\n thumbnail:\n 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',\n title: 'Ask the expert'\n }\n ],\n ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'\n },\n {\n id: '3865379335',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Hi, I would like to know the validity of my policy',\n ariaLabel:\n 'Sara Davis said Hi, I would like to know the validity of my policy via Public Tweet'\n },\n {\n id: '777315059',\n type: 'message',\n variant: 'receiver',\n messagePrivacy: 'PUBLIC TWEET',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Could you please help',\n timeStamp: '1:45 PM',\n ariaLabel: 'Sara Davis said Could you please help at 1:45 PM via Public Tweet'\n },\n {\n id: '4001121034',\n type: 'system',\n message: 'Pegasystems has joined'\n },\n {\n id: '779591083',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: 'Great, our CSR will help you with that',\n timeStamp: '1:46 PM',\n status: 'Delivered',\n ariaLabel: 'Pegasystems said Great, our CSR will help you with that at 1:46 PM'\n },\n {\n id: '2683629622',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Sure',\n timeStamp: '1:48 PM',\n status: 'Delivered',\n ariaLabel: 'John Brown said Sure at 1:48 PM via Public Tweet'\n },\n {\n id: '2748689942',\n type: 'message',\n variant: 'other',\n direction: 'in',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Carry on',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167343',\n name: 'Departments mapping',\n icon: 'document-doc',\n meta: 'PDF 0.1 MB'\n }\n ],\n ariaLabel: 'Pegasystems said Carry on at 1:49 PM with 1 attachment'\n },\n {\n id: '4110947991',\n type: 'message',\n variant: 'other',\n direction: 'in',\n messagePrivacy: 'PUBLIC REPLY',\n avatarInfo: {\n name: 'Pegasystems',\n imageSrc: 'https://www.pega.com/sites/default/files/media/images/2018-12/Pega.com-og.png'\n },\n message: ' Refer these documents for more FAQ',\n timeStamp: '1:49 PM',\n attachments: [\n {\n id: '2499167345',\n name: 'FAQ with detailed terms and conditions of the policy',\n icon: 'document-doc',\n meta: 'PDF 0.7 MB'\n },\n {\n id: '2499167346',\n name: 'Privacy policy',\n icon: 'document-doc',\n meta: 'WORD 0.1 MB'\n }\n ],\n ariaLabel:\n 'Pegasystems said Refer these documents for more FAQ at 1:49 PM with 2 attachments via Public Tweet'\n },\n {\n id: '2549273884',\n type: 'system',\n message: 'Pegasystems has left'\n },\n {\n id: '3375453344',\n type: 'message',\n variant: 'sender',\n messagePrivacy: 'PUBLIC REPLY',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Could you please help me with your account num',\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167347',\n name: 'Security policy',\n icon: 'document-pdf',\n meta: 'PDF 6.1 MB'\n }\n ],\n ariaLabel:\n 'John Brown said Could you please help me with your account num at 1:50 PM with 1 attachment via Public Tweet'\n },\n {\n id: '1868448522',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Yeah, sure please give me a second',\n ariaLabel: 'Sara Davis said Yeah, sure please give me a second '\n },\n {\n id: '1295058543',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n\n timeStamp: '1:50 PM',\n attachments: [\n {\n id: '2499167348',\n name: 'Vehicle insurance',\n icon: 'document-doc',\n meta: 'WORD 1.1 MB'\n }\n ],\n ariaLabel: 'Sara Davis said 5588-8899-45-89 at 1:50 PM with 1 attachment'\n },\n {\n id: '2690247642',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Let me pick your details',\n status: 'Delivered',\n ariaLabel: 'John Brown said Let me pick your details '\n },\n {\n id: '1208949065',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Can I please transfer your chat request to concerned department please ?',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'John Brown said Can I please transfer your chat request to concerned department please ? at 1:51 PM'\n },\n {\n id: '4302656892',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Sure',\n timeStamp: '1:51 PM',\n ariaLabel: 'Sara Davis said Sure at 1:51 PM'\n },\n {\n id: '658052414',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n avatarInfo: {\n name: 'John Brown'\n },\n message: 'Please give me a moment',\n timeStamp: '1:51 PM',\n ariaLabel: 'John Brown said Please give me a moment at 1:51 PM'\n },\n {\n id: '719933419',\n type: 'system',\n message: 'Mike has joined'\n },\n {\n id: '679831597',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message:\n 'Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details',\n timeStamp: '1:51 PM',\n ariaLabel:\n 'You said Hi Sara. This is Mike. John has discussed with me. I will be helping you out with the required details at 1:51 PM'\n },\n {\n id: '2785439809',\n type: 'system',\n message: 'John brown has left'\n },\n {\n id: '85859690',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Ok, your insurance is valid until Dec 21, 2020 11:00 AM',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Ok, your insurance is valid until Dec 21, 2020 11:00 AM at 1:52 PM'\n },\n {\n id: '2484793043',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'Thanks',\n timeStamp: '1:52 PM',\n ariaLabel: 'Sara Davis said Thanks at 1:52 PM'\n },\n {\n id: '352967030',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Is there anything I can help you with',\n timeStamp: '1:52 PM',\n ariaLabel: 'You said Is there anything I can help you with at 1:52 PM'\n },\n {\n id: '3432757116',\n type: 'message',\n variant: 'receiver',\n direction: 'in',\n avatarInfo: {\n name: 'Sara Davis'\n },\n message: 'I am good.😃',\n timeStamp: '1:53 PM',\n ariaLabel: 'Sara Davis said I am good 😃. at 1:53 PM'\n },\n {\n id: '2432461831',\n type: 'message',\n variant: 'sender',\n direction: 'out',\n message: 'Thanks for contacting us, have a great day',\n timeStamp: '1:53 PM',\n ariaLabel: 'You said Thanks for contacting us, have a great day at 1:53 PM'\n },\n {\n id: '2965626280',\n type: 'system',\n message: 'Chat has been ended'\n }\n ],\n defaultAttachments: [\n {\n id: '4455774588',\n name: '03/2020 statement.pdf'\n },\n {\n id: '44557745889',\n name: 'Policy T&C.pdf'\n }\n ],\n suggestedReplies: [\n {\n id: 'suggested_reply_1',\n message: 'Hello, Good morning Sara. How can I help you today',\n confidence: 94\n },\n {\n id: 'suggested_reply_2',\n message:\n 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',\n confidence: 75\n }\n ],\n phrasesDisplayNames: [\n 'Account > Account balance',\n 'Agreement > End of a case/interaction',\n 'Agreement > Mid interaction',\n 'Apologize > Apologize - ask customer to',\n 'Apologize > Thanks for patience',\n 'Ask for transfer > Agent not available',\n 'Ask for transfer > Agent not available - call back',\n 'Ask for transfer > Agent not available - stall',\n 'Account > Account balance',\n 'Agreement > End of a case/interaction',\n 'Agreement > Mid interaction',\n 'Apologize > Apologize - ask customer to',\n 'Apologize > Thanks for patience',\n 'Ask for transfer > Agent not available',\n 'Ask for transfer > Agent not available - call back',\n 'Ask for transfer > Agent not available - stall',\n 'Account > Account balance'\n ],\n phrasesMessages: [\n 'Ms. Sara J Connor your account balance is $5226.32',\n 'My pleasure! Is there anything else I can do for you today?',\n 'You are welcome!',\n \"Ms.Connor. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\",\n 'Thanks for your patience. I am working on your request. I will be with you shortly.',\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\",\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n 'Ms. Sara J Connor your account balance is $5226.32',\n 'My pleasure! Is there anything else I can do for you today?',\n 'You are welcome!',\n \"Ms.Connor. We do not respond to that kind of language. I'm doing my best to help you. Please be civil.\",\n 'Thanks for your patience. I am working on your request. I will be with you shortly.',\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n \"The agent I was looking to transfer you to isn't available. Would it be possible for us to call you when a specialist is available?\",\n 'It looks like the agent we were looking to transfer you to will not be available. One moment please while I see whether someone else can assist.',\n 'Ms. Sara J Connor your account balance is $5226.32'\n ]\n};\n"]}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Meta, Story } from '@storybook/react';
|
|
3
2
|
import { MessageProps } from '@pega/cosmos-react-social';
|
|
4
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
4
|
export default _default;
|
|
6
|
-
export declare const ChatHeaderDemo:
|
|
7
|
-
export declare const MessageListDemo:
|
|
5
|
+
export declare const ChatHeaderDemo: Story;
|
|
6
|
+
export declare const MessageListDemo: Story;
|
|
8
7
|
export declare const MessageDemo: Story<MessageProps>;
|
|
9
|
-
export declare const SystemMessageDemo:
|
|
8
|
+
export declare const SystemMessageDemo: Story;
|
|
10
9
|
interface TypeIndicatorDemoProps {
|
|
11
10
|
message?: string;
|
|
12
11
|
}
|
|
13
12
|
export declare const TypeIndicatorDemo: Story<TypeIndicatorDemoProps>;
|
|
14
|
-
export declare const ChatTranscriptsDemo:
|
|
15
|
-
export declare const TranscriptMessageDemo:
|
|
16
|
-
export declare const SuggestedReplyPickerDemo:
|
|
13
|
+
export declare const ChatTranscriptsDemo: Story;
|
|
14
|
+
export declare const TranscriptMessageDemo: Story;
|
|
15
|
+
export declare const SuggestedReplyPickerDemo: Story;
|
|
17
16
|
interface ChatComposerDemoProps {
|
|
18
17
|
maxAttachments?: number;
|
|
19
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Chat/Chat.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Chat.stories.d.ts","sourceRoot":"","sources":["../../../src/social/Chat/Chat.stories.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AA2B/C,OAAO,EASL,YAAY,EAWb,MAAM,2BAA2B,CAAC;;AAMnC,wBAGU;AAGV,eAAO,MAAM,cAAc,EAAE,KAuB5B,CAAC;AAIF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC;AAIF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,YAAY,CA2D3C,CAAC;AAcF,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAIF,UAAU,sBAAsB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,sBAAsB,CAE3D,CAAC;AAYF,eAAO,MAAM,mBAAmB,EAAE,KAejC,CAAC;AAIF,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC;AAKF,eAAO,MAAM,wBAAwB,EAAE,KAuBtC,CAAC;AAKF,UAAU,qBAAqB;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,CAWzD,CAAC;AAYF,UAAU,iBAAiB;IACzB,cAAc,CAAC,E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