@zohodesk/dot 1.0.0-temp-212 → 1.0.0-temp-200.7
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/.cli/propValidation_report.html +1 -1
- package/README.md +34 -0
- package/es/ActionButton/ActionButton.js +3 -3
- package/es/ActionButton/__tests__/ActionButton.spec.js +9 -2
- package/es/AlphabeticList/AlphabeticList.js +3 -3
- package/es/AlphabeticList/__tests__/AlphabeticList.spec.js +1 -1
- package/es/Attachment/Attachment.js +4 -4
- package/es/Attachment/Attachment.module.css +7 -3
- package/es/Attachment/__tests__/Attachment.spec.js +1 -1
- package/es/AttachmentViewer/Attachment.js +50 -0
- package/es/AttachmentViewer/AttachmentImage.js +5 -5
- package/es/AttachmentViewer/AttachmentViewer.js +116 -34
- package/es/AttachmentViewer/AttachmentViewer.module.css +32 -9
- package/es/AttachmentViewer/__tests__/AttachmentImage.spec.js +1 -1
- package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +9 -2
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +3 -3
- package/es/AttachmentViewer/props/defaultProps.js +10 -2
- package/es/AttachmentViewer/props/propTypes.js +9 -1
- package/es/AttachmentViewer/utils.js +80 -13
- package/es/ChannelIcon/ChannelIcon.js +5 -5
- package/es/ChannelIcon/__tests__/ChannelIcon.spec.js +1 -1
- package/es/ChannelIcon/props/propTypes.js +1 -1
- package/es/DotProvider/DotProvider.js +2 -2
- package/es/DotProvider/__tests__/DotProvider.spec.js +51 -25
- package/es/DotProvider/__tests__/__snapshots__/DotProvider.spec.js.snap +170 -170
- package/es/DotProvider/hooks/useDotProvider.js +2 -2
- package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +4 -4
- package/es/DotProvider/libraryChunks/appearance/component/Dark_Component.js +1 -1
- package/es/DotProvider/libraryChunks/appearance/component/Light_Component.js +1 -1
- package/es/DotProvider/libraryChunks/appearance/component/PureDark_Component.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -1
- package/es/DotProvider/props/propTypes.js +1 -1
- package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +7 -7
- package/es/DotProvider/utils/themeColorAssetsConfig.js +46 -46
- package/es/Drawer/Drawer.js +14 -8
- package/es/Drawer/__tests__/Content.spec.js +1 -1
- package/es/Drawer/__tests__/Drawer.spec.js +9 -2
- package/es/Drawer/__tests__/Footer.spec.js +1 -1
- package/es/Drawer/__tests__/Header.spec.js +1 -1
- package/es/Drawer/__tests__/__snapshots__/Header.spec.js.snap +4 -4
- package/es/Drawer/index.js +1 -1
- package/es/Drawer/props/propTypes.js +4 -1
- package/es/ExternalLink/ExternalLink.js +3 -3
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +1 -1
- package/es/FlipCard/FlipCard.js +7 -7
- package/es/FlipCard/__tests__/FlipCard.spec.js +1 -1
- package/es/FlipCard/__tests__/__snapshots__/FlipCard.spec.js.snap +6 -6
- package/es/FormAction/FormAction.js +3 -3
- package/es/FormAction/__tests__/FormAction.spec.js +1 -1
- package/es/FreezeLayer/FreezeLayer.js +13 -7
- package/es/FreezeLayer/__tests__/FreezeLayer.spec.js +1 -1
- package/es/FreezeLayer/index.js +2 -2
- package/es/FreezeLayer/props/propTypes.js +4 -1
- package/es/Hooks/Dragger/useDragger.js +7 -5
- package/es/Hooks/useFreezeLayer.js +1 -1
- package/es/IconButton/IconButton.js +4 -4
- package/es/IconButton/IconButton.module.css +3 -0
- package/es/IconButton/__tests__/IconButton.spec.js +1 -1
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +1 -1
- package/es/Image/Image.js +3 -3
- package/es/Image/__tests__/Image.spec.js +1 -1
- package/es/ImportantNotes/ImportantNotes.js +3 -3
- package/es/ImportantNotes/__tests__/ImportantNotes.spec.js +1 -1
- package/es/Link/Link.js +4 -4
- package/es/Link/__tests__/Link.spec.js +2 -2
- package/es/Loader/Loader.js +1 -1
- package/es/Loader/__tests__/Loader.spec.js +1 -1
- package/es/Message/Message.js +4 -4
- package/es/Message/__tests__/Message.spec.js +1 -1
- package/es/Message/props/propTypes.js +1 -1
- package/es/MessageBanner/MessageBanner.js +4 -4
- package/es/MessageBanner/__tests__/MessageBanner.spec.js +1 -1
- package/es/NewStar/NewStar.js +3 -3
- package/es/NewStar/__tests__/NewStar.spec.js +1 -1
- package/es/Onboarding/CarouselDots/CarouselDot/CarouselDot.js +3 -3
- package/es/Onboarding/CarouselDots/CarouselDot/__tests__/CarouselDot.spec.js +1 -1
- package/es/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +5 -14
- package/es/Onboarding/CarouselDots/CarouselDots.js +4 -4
- package/es/Onboarding/CarouselDots/__tests__/CarouselDots.spec.js +1 -1
- package/es/Onboarding/Onboarding.js +49 -19
- package/es/Onboarding/__tests__/Onboarding.spec.js +53 -2
- package/es/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +597 -93
- package/es/Onboarding/css/Onboarding.module.css +20 -2
- package/es/Onboarding/hooks/useOnboarding.js +14 -1
- package/es/Onboarding/hooks/useOnboardingSlider.js +11 -4
- package/es/Onboarding/props/defaultProps.js +12 -1
- package/es/Onboarding/props/propTypes.js +13 -2
- package/es/PlusIcon/PlusIcon.js +4 -4
- package/es/PlusIcon/__tests__/PlusIcon.spec.js +1 -1
- package/es/PlusIcon/__tests__/__snapshots__/PlusIcon.spec.js.snap +13 -13
- package/es/PlusIcon/props/propTypes.js +1 -1
- package/es/Separator/Separator.js +3 -3
- package/es/Separator/__tests__/Separator.spec.js +1 -1
- package/es/TagWithIcon/TagWithIcon.js +3 -3
- package/es/TagWithIcon/__tests__/TagWithIcon.spec.js +1 -1
- package/es/ToastMessage/ToastMessage.js +4 -4
- package/es/ToastMessage/__tests__/ToastMessage.spec.js +1 -1
- package/es/Upload/Upload.js +4 -4
- package/es/Upload/__tests__/Upload.spec.js +1 -1
- package/es/VideoLookup/VideoLookup.js +4 -4
- package/es/VideoLookup/__tests__/VideoLookup.spec.js +9 -2
- package/es/actions/AutoClose.js +2 -2
- package/es/alert/AlertHeader/AlertHeader.js +5 -5
- package/es/alert/AlertHeader/__tests__/AlertHeader.spec.js +1 -1
- package/es/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1 -1
- package/es/alert/AlertLookup/AlertLookup.js +7 -7
- package/es/alert/AlertLookup/__tests__/AlertLookup.spec.js +1 -1
- package/es/alert/index.js +2 -2
- package/es/avatar/AvatarClose/AvatarClose.js +3 -3
- package/es/avatar/AvatarClose/__tests__/AvatarClose.spec.js +1 -1
- package/es/avatar/AvatarCollision/AvatarCollision.js +3 -3
- package/es/avatar/AvatarCollision/__tests__/AvatarCollision.spec.js +1 -1
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +3 -0
- package/es/avatar/AvatarIcon/__tests__/AvatarIcon.spec.js +1 -1
- package/es/avatar/AvatarIcon/__tests__/__snapshots__/AvatarIcon.spec.js.snap +1 -1
- package/es/avatar/AvatarStatus/AvatarStatus.js +3 -3
- package/es/avatar/AvatarStatus/__tests__/AvatarStatus.spec.js +1 -1
- package/es/avatar/AvatarThread/AvatarThread.js +3 -3
- package/es/avatar/AvatarThread/__tests__/AvatarThread.spec.js +1 -1
- package/es/avatar/AvatarUser/AvatarUser.js +4 -4
- package/es/avatar/AvatarUser/__tests__/AvatarUser.spec.js +1 -1
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -3
- package/es/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +1 -1
- package/es/avatar/index.js +7 -7
- package/es/deprecated/FreezeLayer/FreezeLayer.js +4 -4
- package/es/deprecated/SelectDropdown/SelectDropdown.js +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +4 -4
- package/es/dropdown/ToggleDropDown/__tests__/ToggleDropDown.spec.js +1 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +4 -4
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -5
- package/es/emptystate/CommonEmptyState/__tests__/CommonEmptyState.spec.js +1 -1
- package/es/emptystate/EditionPage/EditionPage.js +3 -3
- package/es/emptystate/EditionPage/__tests__/EditionPage.spec.js +1 -1
- package/es/errorstate/Inconvenience/Inconvenience.js +5 -5
- package/es/errorstate/Inconvenience/__tests__/Inconvenience.spec.js +1 -1
- package/es/errorstate/LinkText/LinkText.js +4 -4
- package/es/errorstate/LinkText/__tests__/LinkText.spec.js +1 -1
- package/es/errorstate/NoRequestFound/NoRequestFound.js +5 -5
- package/es/errorstate/NoRequestFound/__tests__/NoRequestFound.spec.js +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.js +5 -5
- package/es/errorstate/PermissionPlay/__tests__/PermissionPlay.spec.js +1 -1
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +5 -5
- package/es/errorstate/RequestUrlNotFound/__tests__/RequestUrlNotFound.spec.js +1 -1
- package/es/errorstate/UnableToProcess/UnableToProcess.js +5 -5
- package/es/errorstate/UnableToProcess/__tests__/UnableToProcess.spec.js +1 -1
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +5 -5
- package/es/errorstate/UnauthorizedLogin/__tests__/UnauthorizedLogin.spec.js +1 -1
- package/es/errorstate/WillBack/WillBack.js +4 -4
- package/es/errorstate/WillBack/__tests__/WillBack.spec.js +1 -1
- package/es/errorstate/index.js +8 -8
- package/es/form/fields/CheckBoxField/CheckBoxField.js +5 -5
- package/es/form/fields/CheckBoxField/__tests__/CheckBoxField.spec.js +1 -1
- package/es/form/fields/CheckBoxField/props/defaultProps.js +1 -1
- package/es/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +5 -5
- package/es/form/fields/CurrencyField/__tests__/CurrencyField.spec.js +1 -1
- package/es/form/fields/CurrencyField/props/defaultProps.js +1 -1
- package/es/form/fields/CurrencyField/props/propTypes.js +1 -1
- package/es/form/fields/DateField/DateField.js +5 -5
- package/es/form/fields/DateField/__tests__/DateField.spec.js +1 -1
- package/es/form/fields/DateField/props/defaultProps.js +1 -1
- package/es/form/fields/DateField/props/propTypes.js +1 -1
- package/es/form/fields/FieldContainer/FieldContainer.js +3 -3
- package/es/form/fields/FieldContainer/__tests__/FieldContainer.spec.js +1 -1
- package/es/form/fields/FieldContainer/props/defaultProps.js +1 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +5 -5
- package/es/form/fields/MultiSelectField/__tests__/MultiSelectField.spec.js +1 -1
- package/es/form/fields/MultiSelectField/props/defaultProps.js +1 -1
- package/es/form/fields/MultiSelectField/props/propTypes.js +1 -1
- package/es/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/form/fields/PhoneField/__tests__/PhoneField.spec.js +1 -1
- package/es/form/fields/RadioField/RadioField.js +4 -4
- package/es/form/fields/RadioField/__tests__/RadioField.spec.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +5 -5
- package/es/form/fields/SelectField/__tests__/SelectField.spec.js +1 -1
- package/es/form/fields/SelectField/props/defaultProps.js +1 -1
- package/es/form/fields/SelectField/props/propTypes.js +1 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -5
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +4 -0
- package/es/form/fields/TagsMultiSelect/__tests__/TagsMultiSelect.spec.js +1 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -7
- package/es/form/fields/TagsMultiSelectField/__tests__/TagsMultiSelectField.spec.js +1 -1
- package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -1
- package/es/form/fields/TagsMultiSelectField/props/propTypes.js +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +5 -5
- package/es/form/fields/TextBoxField/__tests__/TextBoxField.spec.js +1 -1
- package/es/form/fields/TextBoxField/props/defaultProps.js +1 -1
- package/es/form/fields/TextBoxField/props/propTypes.js +1 -1
- package/es/form/fields/TextEditor/TextEditor.js +4 -4
- package/es/form/fields/TextEditor/__tests__/TextEditor.spec.js +1 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +6 -6
- package/es/form/fields/TextEditorField/__tests__/TextEditorField.spec.js +1 -1
- package/es/form/fields/TextEditorField/props/defaultProps.js +1 -1
- package/es/form/fields/TextEditorField/props/propTypes.js +1 -1
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +5 -5
- package/es/form/fields/TextEditorWrapper/__tests__/TextEditorWrapper.spec.js +1 -1
- package/es/form/fields/TextareaField/TextareaField.js +5 -5
- package/es/form/fields/TextareaField/__tests__/TextareaField.spec.js +1 -1
- package/es/form/fields/TextareaField/props/defaultProps.js +1 -1
- package/es/form/fields/TextareaField/props/propTypes.js +1 -1
- package/es/form/fields/ValidationMessage/ValidationMessage.js +3 -3
- package/es/form/fields/ValidationMessage/__tests__/ValidationMessage.spec.js +1 -1
- package/es/form/fields/index.js +16 -16
- package/es/form/layout/Field/Field.js +3 -3
- package/es/form/layout/Field/__tests__/Field.spec.js +1 -1
- package/es/form/layout/Section/Section.js +2 -2
- package/es/form/layout/Section/__tests__/Section.spec.js +1 -1
- package/es/form/layout/index.js +2 -2
- package/es/index.js +40 -40
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +3 -3
- package/es/layout/SetupDetailLayout/__tests__/SetupDetailLayout.spec.js +1 -1
- package/es/layout/SetupDetailLayout/index.js +4 -4
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -4
- package/es/layout/SubtabLayout/__tests__/SubtabLayout.spec.js +1 -1
- package/es/layout/SubtabLayout/index.js +4 -4
- package/es/list/AvatarFlip/AvatarFlip.js +4 -4
- package/es/list/AvatarFlip/__tests__/AvatarFlip.spec.js +1 -1
- package/es/list/BluePrintStatus/BluePrintStatus.js +2 -2
- package/es/list/BluePrintStatus/__tests__/BluePrintStatus.spec.js +1 -1
- package/es/list/Comment/Comment.js +3 -3
- package/es/list/Comment/__tests__/Comment.spec.js +1 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +5 -5
- package/es/list/DepartmentDropDown/__tests__/DepartmentDropDown.spec.js +1 -1
- package/es/list/Dot/Dot.js +3 -3
- package/es/list/Dot/__tests__/Dot.spec.js +1 -1
- package/es/list/DotNew/DotNew.js +3 -3
- package/es/list/DotNew/__tests__/DotNew.spec.js +1 -1
- package/es/list/GridStencils/GridStencils.js +2 -2
- package/es/list/GridStencils/__tests__/GridStencils.spec.js +1 -1
- package/es/list/Icons/AddNewIcon.js +2 -2
- package/es/list/Icons/CompleteIcon.js +2 -2
- package/es/list/Icons/DeleteIcon.js +2 -2
- package/es/list/Icons/EditIcon.js +2 -2
- package/es/list/Icons/FloatingIcons.js +3 -3
- package/es/list/Icons/ReadUnreadIcon.js +3 -3
- package/es/list/Icons/SmartIcon.js +2 -2
- package/es/list/Icons/__tests__/AddNewIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/CompleteIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/DeleteIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/EditIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/FloatingIcons.spec.js +1 -1
- package/es/list/Icons/__tests__/ReadUnreadIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/SmartIcon.spec.js +1 -1
- package/es/list/Icons/index.js +7 -7
- package/es/list/ListLayout/ListLayout.js +3 -3
- package/es/list/ListLayout/__tests__/ListLayout.spec.js +1 -1
- package/es/list/ListStencils/ListStencils.js +3 -3
- package/es/list/ListStencils/__tests__/ListStencils.spec.js +1 -1
- package/es/list/ListStencils/__tests__/__snapshots__/ListStencils.spec.js.snap +6 -6
- package/es/list/SecondaryText/AccountName.js +4 -4
- package/es/list/SecondaryText/ContactName.js +5 -5
- package/es/list/SecondaryText/DepartmentText.js +2 -2
- package/es/list/SecondaryText/Email.js +4 -4
- package/es/list/SecondaryText/HappinessRating.js +2 -2
- package/es/list/SecondaryText/PhoneNumber.js +4 -4
- package/es/list/SecondaryText/PriorityText.js +3 -3
- package/es/list/SecondaryText/SecondaryText.js +3 -3
- package/es/list/SecondaryText/StatusText.js +3 -3
- package/es/list/SecondaryText/TicketId.js +4 -4
- package/es/list/SecondaryText/Website.js +4 -4
- package/es/list/SecondaryText/__tests__/AccountName.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/ContactName.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/DepartmentText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/Email.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/HappinessRating.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/PhoneNumber.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/PriorityText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/SecondaryText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/StatusText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/TicketId.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/Website.spec.js +1 -1
- package/es/list/SecondaryText/index.js +11 -11
- package/es/list/SecondryPanel/SecondryPanel.js +4 -4
- package/es/list/SecondryPanel/__tests__/SecondryPanel.spec.js +1 -1
- package/es/list/SentimentStatus/SentimentStatus.js +2 -2
- package/es/list/SentimentStatus/__tests__/SentimentStatus.spec.js +1 -1
- package/es/list/Subject/Subject.js +4 -4
- package/es/list/Subject/__tests__/Subject.spec.js +1 -1
- package/es/list/TagNew/TagNew.js +3 -3
- package/es/list/TagNew/__tests__/TagNew.spec.js +1 -1
- package/es/list/Thread/Thread.js +3 -3
- package/es/list/Thread/__tests__/Thread.spec.js +1 -1
- package/es/list/index.js +16 -16
- package/es/list/status/StatusDropdown/StatusDropdown.js +5 -5
- package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +3 -3
- package/es/list/status/StatusListItem/__tests__/StatusListItem.spec.js +1 -1
- package/es/list/status/index.js +2 -2
- package/es/lookup/EmptyPage/EmptyPage.js +3 -3
- package/es/lookup/EmptyPage/__tests__/EmptyPage.spec.js +1 -1
- package/es/lookup/Lookup/Lookup.js +4 -4
- package/es/lookup/Lookup/__tests__/Lookup.spec.js +1 -1
- package/es/lookup/Section/Section.js +2 -2
- package/es/lookup/Section/__tests__/Section.spec.js +1 -1
- package/es/lookup/header/Close/Close.js +3 -3
- package/es/lookup/header/Close/__tests__/Close.spec.js +1 -1
- package/es/lookup/header/Close/__tests__/__snapshots__/Close.spec.js.snap +1 -1
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +8 -8
- package/es/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +1 -1
- package/es/lookup/header/Search/Search.js +4 -4
- package/es/lookup/header/Search/__tests__/Search.spec.js +1 -1
- package/es/lookup/header/TicketHeader/TicketHeader.js +10 -10
- package/es/lookup/header/TicketHeader/__tests__/TicketHeader.spec.js +1 -1
- package/es/lookup/header/TicketHeader/__tests__/__snapshots__/TicketHeader.spec.js.snap +1 -1
- package/es/lookup/header/Title/Title.js +3 -3
- package/es/lookup/header/Title/__tests__/Titles.spec.js +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +3 -3
- package/es/lookup/header/ViewDropDown/__test__/ViewDropDown.spec.js +1 -1
- package/es/lookup/header/index.js +5 -5
- package/es/lookup/index.js +4 -4
- package/es/setup/header/Button/Button.js +3 -3
- package/es/setup/header/Button/__tests__/Button.spec.js +1 -1
- package/es/setup/header/Link/Link.js +4 -4
- package/es/setup/header/Link/__tests__/Link.spec.js +1 -1
- package/es/setup/header/Search/Search.js +3 -3
- package/es/setup/header/Search/__tests__/Search.spec.js +1 -1
- package/es/setup/header/Views/Views.js +3 -3
- package/es/setup/header/Views/__tests__/Views.spec.js +1 -1
- package/es/setup/header/index.js +4 -4
- package/es/setup/helptips/Description/Description.js +2 -2
- package/es/setup/helptips/Description/__tests__/Description.spec.js +1 -1
- package/es/setup/helptips/Link/Link.js +3 -3
- package/es/setup/helptips/Link/__tests__/Link.spec.js +1 -1
- package/es/setup/helptips/ListGroup/ListGroup.js +2 -2
- package/es/setup/helptips/ListGroup/__tests__/ListGroup.spec.js +1 -1
- package/es/setup/helptips/Title/Title.js +2 -2
- package/es/setup/helptips/Title/__tests__/Title.spec.js +1 -1
- package/es/setup/helptips/index.js +4 -4
- package/es/setup/index.js +3 -3
- package/es/setup/table/Table/Table.js +2 -2
- package/es/setup/table/Table/__tests__/Table.spec.js +1 -1
- package/es/setup/table/TableBody/TableBody.js +2 -2
- package/es/setup/table/TableBody/__tests__/TableBody.spec.js +1 -1
- package/es/setup/table/TableData/TableData.js +3 -3
- package/es/setup/table/TableData/__tests__/TableData.spec.js +1 -1
- package/es/setup/table/TableHead/TableHead.js +3 -3
- package/es/setup/table/TableHead/__tests__/TableHead.spec.js +1 -1
- package/es/setup/table/TableRow/TableRow.js +3 -3
- package/es/setup/table/TableRow/__tests__/TableRow.spec.js +1 -1
- package/es/setup/table/Text/Text.js +4 -4
- package/es/setup/table/Text/__tests__/Text.spec.js +1 -1
- package/es/setup/table/index.js +5 -5
- package/es/svg/PlusIcon.js +2 -2
- package/es/svg/SnippetIcon.js +2 -2
- package/es/svg/TemplateIcon.js +2 -2
- package/es/svg/__tests__/PlusIcon.spec.js +1 -1
- package/es/svg/__tests__/SnippetIcon.spec.js +1 -1
- package/es/svg/__tests__/TemplateIcon.spec.js +1 -1
- package/es/svg/index.js +3 -3
- package/es/utils/General.js +23 -1
- package/es/v1/ActionButton/ActionButton.js +3 -3
- package/es/v1/AlphabeticList/AlphabeticList.js +3 -3
- package/es/v1/Attachment/Attachment.js +4 -4
- package/es/v1/AttachmentViewer/AttachmentImage.js +5 -5
- package/es/v1/AttachmentViewer/AttachmentViewer.js +11 -11
- package/es/v1/ChannelIcon/ChannelIcon.js +5 -5
- package/es/v1/Drawer/Drawer.js +6 -6
- package/es/v1/ExternalLink/ExternalLink.js +3 -3
- package/es/v1/FlipCard/FlipCard.js +7 -7
- package/es/v1/FormAction/FormAction.js +3 -3
- package/es/v1/FreezeLayer/FreezeLayer.js +5 -5
- package/es/v1/GlobalNotification/GlobalNotification.js +6 -6
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/Image/Image.js +3 -3
- package/es/v1/ImportantNotes/ImportantNotes.js +3 -3
- package/es/v1/Link/Link.js +4 -4
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/Message/Message.js +4 -4
- package/es/v1/Message/props/propTypes.js +1 -1
- package/es/v1/MessageBanner/MessageBanner.js +4 -4
- package/es/v1/NewStar/NewStar.js +3 -3
- package/es/v1/PlusIcon/PlusIcon.js +4 -4
- package/es/v1/Separator/Separator.js +3 -3
- package/es/v1/TagWithIcon/TagWithIcon.js +3 -3
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +4 -4
- package/es/v1/actions/AutoClose.js +2 -2
- package/es/v1/alert/AlertClose/AlertClose.js +2 -2
- package/es/v1/alert/AlertHeader/AlertHeader.js +7 -7
- package/es/v1/alert/AlertLookup/AlertLookup.js +7 -7
- package/es/v1/alert/alertIcons/AlarmAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/AlertIcons.js +9 -9
- package/es/v1/alert/alertIcons/DangerAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/ErrorAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/InfoAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/NotificationAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/SuccessAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/WarningAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/index.js +8 -8
- package/es/v1/alert/index.js +2 -2
- package/es/v1/avatar/AvatarClose/AvatarClose.js +3 -3
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +3 -3
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +3 -3
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +3 -3
- package/es/v1/avatar/AvatarThread/AvatarThread.js +3 -3
- package/es/v1/avatar/AvatarUser/AvatarUser.js +4 -4
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -3
- package/es/v1/avatar/index.js +7 -7
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +4 -4
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +4 -4
- package/es/v1/emptystate/EditionPage/EditionPage.js +3 -3
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +4 -4
- package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +4 -4
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +4 -4
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +4 -4
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +4 -4
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +4 -4
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +5 -5
- package/es/v1/form/fields/CheckBoxField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +5 -5
- package/es/v1/form/fields/CurrencyField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/CurrencyField/props/propTypes.js +1 -1
- package/es/v1/form/fields/DateField/DateField.js +5 -5
- package/es/v1/form/fields/DateField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/DateField/props/propTypes.js +1 -1
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +3 -3
- package/es/v1/form/fields/FieldContainer/props/defaultProps.js +1 -1
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +5 -5
- package/es/v1/form/fields/MultiSelectField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/MultiSelectField/props/propTypes.js +1 -1
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +5 -5
- package/es/v1/form/fields/SelectField/SelectField.js +5 -5
- package/es/v1/form/fields/SelectField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/SelectField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -5
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -7
- package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +5 -5
- package/es/v1/form/fields/TextBoxField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TextBoxField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TextEditor/TextEditor.js +4 -4
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +6 -6
- package/es/v1/form/fields/TextEditorField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TextEditorField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +5 -5
- package/es/v1/form/fields/TextareaField/TextareaField.js +5 -5
- package/es/v1/form/fields/TextareaField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -1
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +3 -3
- package/es/v1/form/fields/index.js +16 -16
- package/es/v1/form/layout/Field/Field.js +3 -3
- package/es/v1/form/layout/Section/Section.js +2 -2
- package/es/v1/form/layout/index.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +3 -3
- package/es/v1/layout/SetupDetailLayout/index.js +4 -4
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -4
- package/es/v1/layout/SubtabLayout/index.js +4 -4
- package/es/v1/list/AvatarFlip/AvatarFlip.js +4 -4
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +2 -2
- package/es/v1/list/Comment/Comment.js +3 -3
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +5 -5
- package/es/v1/list/Dot/Dot.js +3 -3
- package/es/v1/list/DotNew/DotNew.js +3 -3
- package/es/v1/list/GridStencils/GridStencils.js +2 -2
- package/es/v1/list/Icons/AddNewIcon.js +2 -2
- package/es/v1/list/Icons/CompleteIcon.js +2 -2
- package/es/v1/list/Icons/DeleteIcon.js +2 -2
- package/es/v1/list/Icons/EditIcon.js +2 -2
- package/es/v1/list/Icons/FloatingIcons.js +3 -3
- package/es/v1/list/Icons/ReadUnreadIcon.js +3 -3
- package/es/v1/list/Icons/SmartIcon.js +2 -2
- package/es/v1/list/Icons/index.js +7 -7
- package/es/v1/list/ListLayout/ListLayout.js +3 -3
- package/es/v1/list/ListStencils/ListStencils.js +3 -3
- package/es/v1/list/SecondaryText/AccountName.js +4 -4
- package/es/v1/list/SecondaryText/ContactName.js +5 -5
- package/es/v1/list/SecondaryText/DepartmentText.js +2 -2
- package/es/v1/list/SecondaryText/Email.js +4 -4
- package/es/v1/list/SecondaryText/HappinessRating.js +2 -2
- package/es/v1/list/SecondaryText/PhoneNumber.js +4 -4
- package/es/v1/list/SecondaryText/PriorityText.js +3 -3
- package/es/v1/list/SecondaryText/SecondaryText.js +3 -3
- package/es/v1/list/SecondaryText/StatusText.js +3 -3
- package/es/v1/list/SecondaryText/TicketId.js +4 -4
- package/es/v1/list/SecondaryText/Website.js +4 -4
- package/es/v1/list/SecondaryText/index.js +11 -11
- package/es/v1/list/SecondryPanel/SecondryPanel.js +4 -4
- package/es/v1/list/SentimentStatus/SentimentStatus.js +2 -2
- package/es/v1/list/Subject/Subject.js +4 -4
- package/es/v1/list/TagNew/TagNew.js +3 -3
- package/es/v1/list/Thread/Thread.js +3 -3
- package/es/v1/list/index.js +16 -16
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +5 -5
- package/es/v1/list/status/StatusListItem/StatusListItem.js +3 -3
- package/es/v1/list/status/index.js +2 -2
- package/es/v1/lookup/EmptyPage/EmptyPage.js +3 -3
- package/es/v1/lookup/Lookup/Lookup.js +4 -4
- package/es/v1/lookup/Section/Section.js +2 -2
- package/es/v1/lookup/header/Close/Close.js +3 -3
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +8 -8
- package/es/v1/lookup/header/Search/Search.js +4 -4
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +10 -10
- package/es/v1/lookup/header/Title/Title.js +3 -3
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +3 -3
- package/es/v1/lookup/header/index.js +5 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +5 -5
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/es/v1/setup/header/Button/Button.js +3 -3
- package/es/v1/setup/header/Link/Link.js +4 -4
- package/es/v1/setup/header/Search/Search.js +3 -3
- package/es/v1/setup/header/Views/Views.js +3 -3
- package/es/v1/setup/header/index.js +4 -4
- package/es/v1/setup/helptips/Description/Description.js +2 -2
- package/es/v1/setup/helptips/Link/Link.js +3 -3
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +2 -2
- package/es/v1/setup/helptips/Title/Title.js +2 -2
- package/es/v1/setup/helptips/index.js +4 -4
- package/es/v1/setup/index.js +3 -3
- package/es/v1/setup/table/Table/Table.js +2 -2
- package/es/v1/setup/table/TableBody/TableBody.js +2 -2
- package/es/v1/setup/table/TableData/TableData.js +3 -3
- package/es/v1/setup/table/TableHead/TableHead.js +3 -3
- package/es/v1/setup/table/TableRow/TableRow.js +3 -3
- package/es/v1/setup/table/Text/Text.js +4 -4
- package/es/v1/setup/table/index.js +5 -5
- package/es/v1/svg/PlusIcon.js +2 -2
- package/es/v1/svg/SnippetIcon.js +2 -2
- package/es/v1/svg/TemplateIcon.js +2 -2
- package/es/v1/svg/index.js +3 -3
- package/es/version2/AlertClose/AlertClose.js +2 -2
- package/es/version2/AlertClose/__tests__/AlertClose.spec.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -6
- package/es/version2/GlobalNotification/__tests__/GlobalNotification.spec.js +1 -1
- package/es/version2/alertIcons/AlarmAlertIcon.js +3 -3
- package/es/version2/alertIcons/AlertIcons.js +9 -9
- package/es/version2/alertIcons/DangerAlertIcon.js +3 -3
- package/es/version2/alertIcons/ErrorAlertIcon.js +3 -3
- package/es/version2/alertIcons/InfoAlertIcon.js +3 -3
- package/es/version2/alertIcons/NotificationAlertIcon.js +3 -3
- package/es/version2/alertIcons/SuccessAlertIcon.js +3 -3
- package/es/version2/alertIcons/WarningAlertIcon.js +3 -3
- package/es/version2/alertIcons/__tests__/AlarmAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/AlertIcons.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/DangerAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/ErrorAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/InfoAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/NotificationAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/SuccessAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/WarningAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/index.js +8 -8
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +4 -4
- package/es/version2/errorstate/Inconvenience/__tests__/Inconvenience.spec.js +1 -1
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +4 -4
- package/es/version2/errorstate/OopsSomethingMiss/__tests__/OopsSomethingMiss.spec.js +1 -1
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +4 -4
- package/es/version2/errorstate/UnableToProcessRequest/__tests__/UnableToProcessRequest.spec.js +1 -1
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +4 -4
- package/es/version2/errorstate/UnauthorizedLogin/__tests__/UnauthorizedLogin.spec.js +1 -1
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +4 -4
- package/es/version2/errorstate/UrlNotFound/__tests__/UrlNotFound.spec.js +1 -1
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +4 -4
- package/es/version2/errorstate/WillBeRightBack/__tests__/WillBeRightBack.spec.js +1 -1
- package/es/version2/errorstate/index.js +6 -6
- package/es/version2/index.js +8 -8
- package/es/version2/lookup/AlertHeader/AlertHeader.js +7 -7
- package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +1 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +7 -7
- package/es/version2/lookup/AlertLookup/__tests__/AlertLookup.spec.js +1 -1
- package/es/version2/lookup/index.js +2 -2
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -6
- package/es/version2/notification/DesktopNotification/__tests__/DesktopNotification.spec.js +1 -1
- package/es/version2/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +5 -5
- package/es/version2/notification/DesktopNotificationHeader/__tests__/DesktopNotificationHeader.spec.js +1 -1
- package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/es/version2/notification/index.js +3 -3
- package/lib/ActionButton/__tests__/ActionButton.spec.js +8 -0
- package/lib/Attachment/Attachment.module.css +7 -3
- package/lib/AttachmentViewer/Attachment.js +60 -0
- package/lib/AttachmentViewer/AttachmentViewer.js +121 -23
- package/lib/AttachmentViewer/AttachmentViewer.module.css +32 -9
- package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +8 -0
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +3 -3
- package/lib/AttachmentViewer/props/defaultProps.js +10 -2
- package/lib/AttachmentViewer/props/propTypes.js +9 -1
- package/lib/AttachmentViewer/utils.js +85 -8
- package/lib/DotProvider/__tests__/DotProvider.spec.js +91 -64
- package/lib/DotProvider/__tests__/__snapshots__/DotProvider.spec.js.snap +170 -170
- package/lib/DotProvider/libraryChunks/appearance/component/Dark_Component.js +1 -1
- package/lib/DotProvider/libraryChunks/appearance/component/Light_Component.js +1 -1
- package/lib/DotProvider/libraryChunks/appearance/component/PureDark_Component.js +1 -1
- package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +6 -6
- package/lib/DotProvider/utils/themeColorAssetsConfig.js +45 -45
- package/lib/Drawer/Drawer.js +8 -2
- package/lib/Drawer/__tests__/Drawer.spec.js +8 -0
- package/lib/Drawer/__tests__/__snapshots__/Header.spec.js.snap +4 -4
- package/lib/Drawer/props/propTypes.js +4 -1
- package/lib/FlipCard/__tests__/__snapshots__/FlipCard.spec.js.snap +6 -6
- package/lib/FreezeLayer/FreezeLayer.js +8 -2
- package/lib/FreezeLayer/props/propTypes.js +4 -1
- package/lib/Hooks/Dragger/useDragger.js +2 -0
- package/lib/IconButton/IconButton.js +1 -1
- package/lib/IconButton/IconButton.module.css +3 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +1 -1
- package/lib/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +5 -14
- package/lib/Onboarding/Onboarding.js +42 -13
- package/lib/Onboarding/__tests__/Onboarding.spec.js +52 -0
- package/lib/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +597 -93
- package/lib/Onboarding/css/Onboarding.module.css +20 -2
- package/lib/Onboarding/hooks/useOnboarding.js +15 -1
- package/lib/Onboarding/hooks/useOnboardingSlider.js +13 -4
- package/lib/Onboarding/props/defaultProps.js +12 -1
- package/lib/Onboarding/props/propTypes.js +11 -0
- package/lib/PlusIcon/__tests__/__snapshots__/PlusIcon.spec.js.snap +13 -13
- package/lib/VideoLookup/__tests__/VideoLookup.spec.js +8 -0
- package/lib/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1 -1
- package/lib/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +3 -0
- package/lib/avatar/AvatarIcon/__tests__/__snapshots__/AvatarIcon.spec.js.snap +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -5
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +4 -0
- package/lib/list/ListStencils/__tests__/__snapshots__/ListStencils.spec.js.snap +6 -6
- package/lib/lookup/header/Close/__tests__/__snapshots__/Close.spec.js.snap +1 -1
- package/lib/lookup/header/TicketHeader/__tests__/__snapshots__/TicketHeader.spec.js.snap +1 -1
- package/lib/utils/General.js +25 -1
- package/package.json +6 -6
- package/result.json +1 -0
- package/unittest/index.html +45 -0
- package/es/common/dot_common.module.css +0 -4
- package/lib/common/dot_common.module.css +0 -4
package/README.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.7.16
|
|
6
|
+
|
|
7
|
+
- **DotProvider** - Theme entry for component_v1 added.
|
|
8
|
+
|
|
9
|
+
# 1.7.15
|
|
10
|
+
|
|
11
|
+
- **Onboarding**
|
|
12
|
+
- Fixed the slider navigation issue on Next button click.
|
|
13
|
+
|
|
14
|
+
# 1.7.14
|
|
15
|
+
|
|
16
|
+
- **IconButton** , **AvatarIcon**
|
|
17
|
+
- RTL icon text alignment issue resolved by adding text-align: center for the icon.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# 1.7.13
|
|
21
|
+
|
|
22
|
+
- **CommonEmptyState**
|
|
23
|
+
- Fixed spacing issues in link and description, and updated link display style from inline-block to inline.
|
|
24
|
+
- **TagsMultiSelect**
|
|
25
|
+
- Added padding to EmptyState component.
|
|
26
|
+
- **Onboarding**
|
|
27
|
+
- `tagAttributes, a11yAttributes, closeIconTooltip, dragBoundaryLimit, isDraggable, position` prop has been added.
|
|
28
|
+
- useDragger hooks -> bottom and right position is set to initial
|
|
29
|
+
- carouselDot animation => `left` changed into `inset-inline-start`
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# 1.7.12
|
|
33
|
+
|
|
34
|
+
- **Drawer**
|
|
35
|
+
- Added `onAnimateEnter, onAnimateExit & postAnimateStyles` props to pass to `VelocityAnimationGroup`
|
|
36
|
+
- **FreezeLayer**
|
|
37
|
+
- Added `onAnimateEnter, onAnimateExit & postAnimateStyles` props to pass to `VelocityAnimationGroup`
|
|
38
|
+
|
|
5
39
|
# 1.7.11
|
|
6
40
|
|
|
7
41
|
- **ListStencils**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
2
|
+
import { defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { propTypes } from "./props/propTypes";
|
|
4
4
|
import Popup from '@zohodesk/components/lib/Popup/Popup';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
6
|
import Button from '@zohodesk/components/lib/Button/Button';
|
|
7
7
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
8
8
|
import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
|
|
9
9
|
import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
|
|
10
|
-
import style from
|
|
10
|
+
import style from "./ActionButton.module.css";
|
|
11
11
|
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
12
12
|
export class ActionButton extends React.Component {
|
|
13
13
|
constructor(props) {
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render,
|
|
2
|
+
import { render, cleanup } from '@testing-library/react';
|
|
3
3
|
import '@testing-library/jest-dom';
|
|
4
|
-
import
|
|
4
|
+
import { setGlobalId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
5
|
+
import ActionButton from "../ActionButton";
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
setGlobalId(0);
|
|
8
|
+
});
|
|
9
|
+
afterEach(() => {
|
|
10
|
+
cleanup();
|
|
11
|
+
});
|
|
5
12
|
describe('ActionButton', () => {
|
|
6
13
|
const palettes = ['primaryFilled', 'primary'];
|
|
7
14
|
const sizes = ['small', 'medium', 'large'];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*** Libraries ***/
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AlphabeticList_defaultProps, AlphabeticListItem_defaultProps } from
|
|
4
|
-
import { AlphabeticList_propTypes, AlphabeticListItem_propTypes, AlphabeticCharacters, NumberList, AlphabeticCharactersWithHash } from
|
|
3
|
+
import { AlphabeticList_defaultProps, AlphabeticListItem_defaultProps } from "./props/defaultProps";
|
|
4
|
+
import { AlphabeticList_propTypes, AlphabeticListItem_propTypes, AlphabeticCharacters, NumberList, AlphabeticCharactersWithHash } from "./props/propTypes";
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
/*** CSS ***/
|
|
7
7
|
|
|
8
|
-
import style from
|
|
8
|
+
import style from "./AlphabeticList.module.css";
|
|
9
9
|
export default class AlphabeticList extends React.PureComponent {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
|
-
import AlphabeticList from
|
|
3
|
+
import AlphabeticList from "../AlphabeticList";
|
|
4
4
|
describe('AlphabeticList', () => {
|
|
5
5
|
test('rendering the defult props', () => {
|
|
6
6
|
const {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
2
|
+
import { defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { propTypes } from "./props/propTypes";
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
|
-
import Link from
|
|
7
|
-
import style from
|
|
6
|
+
import Link from "../Link/Link";
|
|
7
|
+
import style from "./Attachment.module.css";
|
|
8
8
|
export default class Attachment extends React.Component {
|
|
9
9
|
render() {
|
|
10
10
|
let {
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
height: 100% ;
|
|
15
15
|
width: 100% ;
|
|
16
16
|
position: absolute;
|
|
17
|
-
top:0
|
|
17
|
+
top: 0
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[dir=ltr] .disableLayer {
|
|
21
|
-
left:0
|
|
21
|
+
left: 0
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[dir=rtl] .disableLayer {
|
|
25
|
-
right:0
|
|
25
|
+
right: 0
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.attachmentHover {
|
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
height: var(--zd_size40) ;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
.attachleft {
|
|
70
|
+
padding: var(--zd_size3) ;
|
|
71
|
+
}
|
|
72
|
+
|
|
69
73
|
[dir=ltr] .attachleft {
|
|
70
74
|
border-right: 1px solid var(--zdt_attachment_default_border);
|
|
71
75
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getBrowserWithVersion } from "../utils/General";
|
|
1
2
|
const UNASSIGNED = 'Unassigned';
|
|
2
3
|
const BROWSER_SUPPORTED_FILES = ['pdf', 'text', 'txt', 'css', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'ico', 'sh', 'mp3', 'wav', 'ogg'];
|
|
3
4
|
export function isAudioFile(fileName) {
|
|
@@ -14,4 +15,53 @@ export function getExtensionFromFileName(fileName) {
|
|
|
14
15
|
export function isBrowserSupportedFile(fileName) {
|
|
15
16
|
const extension = getExtensionFromFileName(fileName);
|
|
16
17
|
return BROWSER_SUPPORTED_FILES.indexOf(extension) !== -1;
|
|
18
|
+
}
|
|
19
|
+
export function getAttachmentIconDetails(fileName) {
|
|
20
|
+
const extension = getExtensionFromFileName(fileName)?.toLowerCase();
|
|
21
|
+
if (!extension) return 'ZD-GN-fileUnknown';
|
|
22
|
+
const imageExtensions = new Set(['jpeg', 'jpg', 'png', 'apng', 'gif', 'bmp', 'tiff', 'tif', 'ico', 'svg', 'heic', 'webp']);
|
|
23
|
+
const docExtensions = new Set(['txt']);
|
|
24
|
+
const pdfExtensions = new Set(['pdf']);
|
|
25
|
+
const htmlExtensions = new Set(['html', 'htm', 'xhtml']);
|
|
26
|
+
const pptExtensions = new Set(['ppt', 'pps', 'odp', 'sxi', 'pptx', 'ppsx', 'pot', 'potx', 'key']);
|
|
27
|
+
const zipExtensions = new Set(['rar', 'jar', 'zip']);
|
|
28
|
+
const wordExtensions = new Set(['doc', 'docx', 'sxw', 'odt', 'docm', 'dot', 'dotm', 'dotx', 'rtf', 'pages']);
|
|
29
|
+
const xmlExtensions = new Set(['xml']);
|
|
30
|
+
const sheetExtensions = new Set(['xls', 'xlsx', 'xlsm', 'xlsb', 'sxc', 'ods', 'csv', 'tsv', 'numbers']);
|
|
31
|
+
const audioExtensions = new Set(['mp3', 'wav', 'wma', 'aac', 'm4r', 'ogg', 'opus']);
|
|
32
|
+
const videoExtensions = new Set(['mp4', 'mkv', 'mov', 'mpeg', 'flv', 'wmv', 'avi', 'webm', 'ogv']);
|
|
33
|
+
const mailExtensions = new Set(['eml', 'msg']);
|
|
34
|
+
const linuxExtensions = new Set(['sh', 'bin']);
|
|
35
|
+
const cssExtensions = new Set(['css']);
|
|
36
|
+
const exeExtensions = new Set(['exe']);
|
|
37
|
+
const eventExtensions = new Set(['ics']);
|
|
38
|
+
if (imageExtensions.has(extension)) return 'ZD-EF-fileImage';
|
|
39
|
+
if (docExtensions.has(extension)) return 'ZD-GN-fileDoc';
|
|
40
|
+
if (pdfExtensions.has(extension)) return 'ZD-EF-filePdf';
|
|
41
|
+
if (pptExtensions.has(extension)) return 'ZD-GN-filePpt';
|
|
42
|
+
if (zipExtensions.has(extension)) return 'ZD-EF-fileZip';
|
|
43
|
+
|
|
44
|
+
if (wordExtensions.has(extension)) {
|
|
45
|
+
const OSName = navigator.platform?.toLowerCase() || '';
|
|
46
|
+
return OSName.includes('mac') || OSName.includes('linux') ? 'ZD-EF-fileOffice' : 'ZD-EF-fileWord';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (xmlExtensions.has(extension)) return 'ZD-EF-fileXml';
|
|
50
|
+
if (sheetExtensions.has(extension)) return 'ZD-GN-fileSheet';
|
|
51
|
+
if (audioExtensions.has(extension)) return 'ZD-EF-fileMp3';
|
|
52
|
+
if (videoExtensions.has(extension)) return 'ZD-EF-fileMp4';
|
|
53
|
+
if (mailExtensions.has(extension)) return 'ZD-GN-fileMail';
|
|
54
|
+
if (linuxExtensions.has(extension)) return 'ZD-EF-linux';
|
|
55
|
+
if (cssExtensions.has(extension)) return 'ZD-EF-clrCss';
|
|
56
|
+
if (exeExtensions.has(extension)) return 'ZD-EF-exe';
|
|
57
|
+
if (eventExtensions.has(extension)) return 'ZD-TK-event';
|
|
58
|
+
|
|
59
|
+
if (htmlExtensions.has(extension)) {
|
|
60
|
+
const browser = getBrowserWithVersion()?.toLowerCase() || '';
|
|
61
|
+
if (browser.includes('chrome') || browser.includes('safari')) return 'ZD-EF-fileXml';
|
|
62
|
+
if (browser.includes('ie') || browser.includes('edge')) return 'ZD-EF-explorer';
|
|
63
|
+
return 'ZD-EF-firebox';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return 'ZD-GN-fileUnknown';
|
|
17
67
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/** * Libraries ** */
|
|
4
4
|
import React, { Component } from 'react';
|
|
5
5
|
import { Container } from '@zohodesk/components/es/Layout';
|
|
6
|
-
import { AttachmentImage_defaultProps } from
|
|
7
|
-
import { AttachmentImage_propTypes } from
|
|
8
|
-
import { checkImageValidity } from
|
|
9
|
-
import Image from
|
|
6
|
+
import { AttachmentImage_defaultProps } from "./props/defaultProps";
|
|
7
|
+
import { AttachmentImage_propTypes } from "./props/propTypes";
|
|
8
|
+
import { checkImageValidity } from "./utils";
|
|
9
|
+
import Image from "../Image/Image";
|
|
10
10
|
/** * CSS ** */
|
|
11
11
|
|
|
12
|
-
import style from
|
|
12
|
+
import style from "./AttachmentViewer.module.css";
|
|
13
13
|
export default class AttachmentImage extends Component {
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { AttachmentViewer_defaultProps } from
|
|
3
|
-
import { AttachmentViewer_propTypes } from
|
|
2
|
+
import { AttachmentViewer_defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { AttachmentViewer_propTypes } from "./props/propTypes";
|
|
4
4
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
6
|
import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
|
|
7
7
|
import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
8
|
+
import Typography from '@zohodesk/components/lib/Typography/Typography';
|
|
8
9
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import { checkFileSourcesValidation } from
|
|
17
|
-
import
|
|
10
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
11
|
+
import AttachmentImage from "./AttachmentImage";
|
|
12
|
+
import Link from "../Link/Link";
|
|
13
|
+
import IconButton from "../IconButton/IconButton";
|
|
14
|
+
import FreezeLayer from "../FreezeLayer/FreezeLayer";
|
|
15
|
+
import { getExtensionFromFileName, getAttachmentIconDetails } from "./Attachment";
|
|
16
|
+
import { shallowDiff } from "../utils/General";
|
|
17
|
+
import { checkFileSourcesValidation, FILE_EXTENSIONS } from "./utils";
|
|
18
|
+
import style from "./AttachmentViewer.module.css";
|
|
18
19
|
export default class AttachmentViewer extends Component {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
super(props);
|
|
@@ -43,6 +44,26 @@ export default class AttachmentViewer extends Component {
|
|
|
43
44
|
this.getUpdateDataList = this.getUpdateDataList.bind(this);
|
|
44
45
|
this.zoomMaintain = this.zoomMaintain.bind(this);
|
|
45
46
|
this.handleMenuValidation = this.handleMenuValidation.bind(this);
|
|
47
|
+
this.getPreviewIconData = this.getPreviewIconData.bind(this);
|
|
48
|
+
this.renderIframe = this.renderIframe.bind(this);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
isImageFileType(fileName) {
|
|
52
|
+
const extension = getExtensionFromFileName(fileName)?.toLowerCase();
|
|
53
|
+
if (!extension) return false;
|
|
54
|
+
return FILE_EXTENSIONS.image.map(ext => ext.toLowerCase()).includes(extension);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
isVideoFileType(fileName) {
|
|
58
|
+
const extension = getExtensionFromFileName(fileName)?.toLowerCase();
|
|
59
|
+
if (!extension) return false;
|
|
60
|
+
return FILE_EXTENSIONS.video.map(ext => ext.toLowerCase()).includes(extension);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
isAudioFileType(fileName) {
|
|
64
|
+
const extension = getExtensionFromFileName(fileName)?.toLowerCase();
|
|
65
|
+
if (!extension) return false;
|
|
66
|
+
return FILE_EXTENSIONS.audio.map(ext => ext.toLowerCase()).includes(extension);
|
|
46
67
|
}
|
|
47
68
|
|
|
48
69
|
componentDidMount() {
|
|
@@ -87,13 +108,19 @@ export default class AttachmentViewer extends Component {
|
|
|
87
108
|
data,
|
|
88
109
|
selectedIndex
|
|
89
110
|
} = this.state;
|
|
111
|
+
const {
|
|
112
|
+
allowedPreviewExtensionsData
|
|
113
|
+
} = this.props;
|
|
90
114
|
const selectedAttachment = data[selectedIndex] || {};
|
|
91
115
|
const selectedAttachmentViewUrl = selectedAttachment.viewUrl;
|
|
92
116
|
const selectedAttachmentDownloadUrl = selectedAttachment.downloadUrl;
|
|
93
117
|
const selectedAttachmentName = selectedAttachment.name;
|
|
118
|
+
const selectedAttachmentPreviewUrl = selectedAttachment.previewurl;
|
|
94
119
|
checkFileSourcesValidation({
|
|
95
120
|
fileName: selectedAttachmentName,
|
|
96
|
-
viewURL: selectedAttachmentViewUrl
|
|
121
|
+
viewURL: selectedAttachmentViewUrl,
|
|
122
|
+
previewUrl: selectedAttachmentPreviewUrl,
|
|
123
|
+
allowedPreviewExtensionsData
|
|
97
124
|
}).then(fileSourceValidation => {
|
|
98
125
|
const {
|
|
99
126
|
isViewURLValid,
|
|
@@ -250,7 +277,37 @@ export default class AttachmentViewer extends Component {
|
|
|
250
277
|
};
|
|
251
278
|
}
|
|
252
279
|
|
|
253
|
-
|
|
280
|
+
getPreviewIconData(name, size, dataId) {
|
|
281
|
+
const fileUnknown = {
|
|
282
|
+
iconName: 'ZD-GN-fileUnknown',
|
|
283
|
+
iconSize: '40'
|
|
284
|
+
};
|
|
285
|
+
const fileIconName = getAttachmentIconDetails(name);
|
|
286
|
+
const fileDetails = name ? {
|
|
287
|
+
iconName: fileIconName,
|
|
288
|
+
iconSize: size
|
|
289
|
+
} : fileUnknown;
|
|
290
|
+
const {
|
|
291
|
+
iconName,
|
|
292
|
+
iconSize
|
|
293
|
+
} = fileDetails;
|
|
294
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
295
|
+
iconClass: style.prevFooterIcon,
|
|
296
|
+
name: iconName,
|
|
297
|
+
size: iconSize,
|
|
298
|
+
"data-id": dataId
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
renderIframe(previewurl) {
|
|
303
|
+
return /*#__PURE__*/React.createElement("iframe", {
|
|
304
|
+
src: previewurl,
|
|
305
|
+
className: style.previewFrame,
|
|
306
|
+
...this.props.customProps.iframeProps
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
imgPreviewView(downloadUrl) {
|
|
254
311
|
var _this = this;
|
|
255
312
|
|
|
256
313
|
const {
|
|
@@ -262,7 +319,9 @@ export default class AttachmentViewer extends Component {
|
|
|
262
319
|
} = this.state;
|
|
263
320
|
const {
|
|
264
321
|
maintainZoom,
|
|
265
|
-
dataId
|
|
322
|
+
dataId,
|
|
323
|
+
i18nKeys,
|
|
324
|
+
renderUnSupportedElement
|
|
266
325
|
} = this.props;
|
|
267
326
|
|
|
268
327
|
const getImgStyle = i => {
|
|
@@ -299,17 +358,21 @@ export default class AttachmentViewer extends Component {
|
|
|
299
358
|
children,
|
|
300
359
|
dataId = 'attachViewer',
|
|
301
360
|
customClass = {},
|
|
302
|
-
customProps = {}
|
|
361
|
+
customProps = {},
|
|
362
|
+
previewurl,
|
|
363
|
+
type
|
|
303
364
|
} = data;
|
|
304
365
|
const {
|
|
305
366
|
audioProps = {},
|
|
306
|
-
imageProps = {}
|
|
367
|
+
imageProps = {},
|
|
368
|
+
videoProps = {}
|
|
307
369
|
} = customProps;
|
|
308
370
|
const {
|
|
309
371
|
customImageClass = '',
|
|
310
372
|
customChildrenClass = ''
|
|
311
373
|
} = customClass;
|
|
312
374
|
const retainZoom = canZoom && selectedIndex == i && maintainZoom;
|
|
375
|
+
const extension = getExtensionFromFileName(name);
|
|
313
376
|
return /*#__PURE__*/React.createElement(Container, {
|
|
314
377
|
className: style.imgBox,
|
|
315
378
|
id: `imgBox${i}`,
|
|
@@ -320,32 +383,52 @@ export default class AttachmentViewer extends Component {
|
|
|
320
383
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
321
384
|
className: style.imgRef,
|
|
322
385
|
id: `imgPreviewRef${i}`
|
|
323
|
-
},
|
|
324
|
-
|
|
386
|
+
}, selectedIndex == i && /*#__PURE__*/React.createElement(React.Fragment, null, _this.isAudioFileType(name) ? /*#__PURE__*/React.createElement("audio", {
|
|
387
|
+
controls: true,
|
|
388
|
+
className: style.zoomIn,
|
|
389
|
+
"data-id": `${dataId}_audioPreview`,
|
|
390
|
+
"data-test-id": `${dataId}_audioPreview`,
|
|
391
|
+
...audioProps
|
|
392
|
+
}, /*#__PURE__*/React.createElement("source", {
|
|
393
|
+
src: previewurl,
|
|
394
|
+
type: `audio/${extension}`
|
|
395
|
+
})) : _this.isVideoFileType(name) ? /*#__PURE__*/React.createElement("video", {
|
|
325
396
|
controls: true,
|
|
326
397
|
className: style.zoomIn,
|
|
327
398
|
"data-id": `${dataId}_videoPreview`,
|
|
328
399
|
"data-test-id": `${dataId}_videoPreview`,
|
|
329
|
-
...
|
|
400
|
+
...videoProps
|
|
330
401
|
}, /*#__PURE__*/React.createElement("source", {
|
|
331
402
|
src: viewUrl,
|
|
332
|
-
type: `
|
|
333
|
-
})) :
|
|
403
|
+
type: `video/${extension}`
|
|
404
|
+
})) : _this.isImageFileType(name) || children ? /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
334
405
|
customClass: {
|
|
335
|
-
customImageClass: `${style.img} ${style.altText}
|
|
336
|
-
${canZoom || retainZoom ? isZoomed ? `${style.zoomedImg} ${style.zoomOutCursor}` : `${style.normalImg} ${style.zoomInCursor}` : ''} ${customImageClass}`,
|
|
406
|
+
customImageClass: `${style.img} ${style.altText} ${canZoom || retainZoom ? isZoomed ? `${style.zoomedImg} ${style.zoomOutCursor}` : `${style.normalImg} ${style.zoomInCursor}` : ''} ${customImageClass}`,
|
|
337
407
|
customChildrenClass
|
|
338
408
|
},
|
|
339
409
|
src: viewUrl,
|
|
340
|
-
onClick: isPreviewAttachmentValid ? isZoomed ? _this.zoomOut.bind(_this, i) : e =>
|
|
341
|
-
_this.zoomIn(e, i, true);
|
|
342
|
-
} : undefined,
|
|
410
|
+
onClick: isPreviewAttachmentValid ? isZoomed ? _this.zoomOut.bind(_this, i) : e => _this.zoomIn(e, i, true) : undefined,
|
|
343
411
|
alt: name,
|
|
344
412
|
dataId: dataId,
|
|
345
413
|
id: `img${i}`,
|
|
346
414
|
isCover: false,
|
|
347
415
|
...imageProps
|
|
348
|
-
}, children)))
|
|
416
|
+
}, children) : type === "document" && previewurl != null ? _this.renderIframe(previewurl) : typeof renderUnSupportedElement === 'function' ? renderUnSupportedElement(data) : /*#__PURE__*/React.createElement("div", {
|
|
417
|
+
className: style.previewNone
|
|
418
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
419
|
+
className: style.fileTypeImg
|
|
420
|
+
}, _this.getPreviewIconData(name, '70')), /*#__PURE__*/React.createElement(Typography, {
|
|
421
|
+
$ui_size: "20",
|
|
422
|
+
$ui_weight: "semibold"
|
|
423
|
+
}, i18nKeys.previewUnsupportedText), /*#__PURE__*/React.createElement(Link, {
|
|
424
|
+
href: downloadUrl,
|
|
425
|
+
className: style.downloadLink,
|
|
426
|
+
hasReload: true,
|
|
427
|
+
download: true
|
|
428
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
429
|
+
palette: "primaryFilled",
|
|
430
|
+
text: i18nKeys.downloadText
|
|
431
|
+
}))))));
|
|
349
432
|
});
|
|
350
433
|
}
|
|
351
434
|
|
|
@@ -371,7 +454,7 @@ export default class AttachmentViewer extends Component {
|
|
|
371
454
|
} = customProps;
|
|
372
455
|
const totalLen = data.length;
|
|
373
456
|
const selectedAttachment = data[selectedIndex] || {};
|
|
374
|
-
const selectedImgUrl = selectedAttachment.viewUrl;
|
|
457
|
+
const selectedImgUrl = selectedAttachment.previewurl || selectedAttachment.viewUrl;
|
|
375
458
|
const downloadUrl = selectedAttachment.downloadUrl;
|
|
376
459
|
let authorHref;
|
|
377
460
|
let authorName;
|
|
@@ -526,7 +609,7 @@ export default class AttachmentViewer extends Component {
|
|
|
526
609
|
eleRef: this.setImgBoxRef,
|
|
527
610
|
scroll: "both",
|
|
528
611
|
flexible: true
|
|
529
|
-
}, this.imgPreviewView()), /*#__PURE__*/React.createElement(Box, {
|
|
612
|
+
}, this.imgPreviewView(downloadUrl)), /*#__PURE__*/React.createElement(Box, {
|
|
530
613
|
className: `${style.arrowBox} ${uptoTablet ? style.mbleArrowBox : style.nrmlArrowBox} ${totalLen === selectedIndex + 1 ? style.hidden : ''}`,
|
|
531
614
|
onClick: this.changeSelectedIndex.bind(this, selectedIndex + 1),
|
|
532
615
|
"data-title": i18nKeys.nextText,
|
|
@@ -582,20 +665,19 @@ export default class AttachmentViewer extends Component {
|
|
|
582
665
|
let {
|
|
583
666
|
thumbnail
|
|
584
667
|
} = item;
|
|
668
|
+
const isImageFileType = this.isImageFileType(name) || thumbnail;
|
|
585
669
|
const {
|
|
586
670
|
customImageClass = '',
|
|
587
671
|
customChildrenClass = ''
|
|
588
672
|
} = customClass;
|
|
589
|
-
thumbnail = isAudioFile(name) ? thumbnail || audioThumbNail : thumbnail; //fallback thumbnail for audio
|
|
590
|
-
|
|
591
673
|
return /*#__PURE__*/React.createElement(Box, {
|
|
592
|
-
className: `${style.imgItem} ${index === selectedIndex ? style.selected : ''}`,
|
|
674
|
+
className: `${style.imgItem} ${index === selectedIndex ? style.selected : ''} ${isImageFileType ? '' : style.previewIconDiv}`,
|
|
593
675
|
key: index,
|
|
594
676
|
onClick: this.changeSelectedIndex.bind(this, index),
|
|
595
677
|
eleRef: el => this[`img_${index}`] = el,
|
|
596
678
|
dataId: "attachPreviewList",
|
|
597
679
|
"data-title": name
|
|
598
|
-
}, /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
680
|
+
}, isImageFileType || children ? /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
599
681
|
src: thumbnail || viewUrl,
|
|
600
682
|
size: "small",
|
|
601
683
|
alt: name,
|
|
@@ -605,7 +687,7 @@ export default class AttachmentViewer extends Component {
|
|
|
605
687
|
},
|
|
606
688
|
dataId: dataId,
|
|
607
689
|
...customProps
|
|
608
|
-
}, children));
|
|
690
|
+
}, children) : this.getPreviewIconData(name, '40'));
|
|
609
691
|
}))))), totalLen !== 1 && /*#__PURE__*/React.createElement(IconButton, {
|
|
610
692
|
dataId: "attachToggle",
|
|
611
693
|
onClick: this.togglePViewList,
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
font-size: var(--zd_font_size22) ;
|
|
80
80
|
height: var(--zd_size38) ;
|
|
81
81
|
width: var(--zd_size38) ;
|
|
82
|
-
line-height: 1.
|
|
82
|
+
line-height: 1.6;
|
|
83
83
|
border-radius: 50%;
|
|
84
84
|
cursor: pointer;
|
|
85
85
|
}
|
|
@@ -230,14 +230,10 @@
|
|
|
230
230
|
transform: rotateX(0deg);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.
|
|
234
|
-
|
|
235
|
-
width:
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.isAudio .image {
|
|
240
|
-
opacity: 0;
|
|
233
|
+
.previewFrame {
|
|
234
|
+
height: 100% ;
|
|
235
|
+
width: 100% ;
|
|
236
|
+
border: 0;
|
|
241
237
|
}
|
|
242
238
|
|
|
243
239
|
.video {
|
|
@@ -362,4 +358,31 @@
|
|
|
362
358
|
background-color: var(--dot_mirror);
|
|
363
359
|
border: 0;
|
|
364
360
|
cursor: pointer;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.fileTypeImg {
|
|
364
|
+
margin-bottom: var(--zd_size30) ;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.previewNone {
|
|
368
|
+
color: var(--zdt_attachmentviewer_title_text);
|
|
369
|
+
max-width: 70% ;
|
|
370
|
+
text-align: center;
|
|
371
|
+
margin: auto ;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.downloadLink {
|
|
375
|
+
display: inline-block;
|
|
376
|
+
padding-top: var(--zd_size15) ;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.previewIconDiv {
|
|
380
|
+
width: var(--zd_size60) ;
|
|
381
|
+
composes: dflex from '~@zohodesk/components/lib/common/common.module.css';
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.prevFooterIcon {
|
|
385
|
+
color: var(--zdt_attachmentviewer_title_text);
|
|
386
|
+
padding: var(--zd_size2) ;
|
|
387
|
+
margin: auto ;
|
|
365
388
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
|
-
import AttachmentImage from
|
|
3
|
+
import AttachmentImage from "../AttachmentImage";
|
|
4
4
|
import Avatar from '@zohodesk/components/es/Avatar/Avatar';
|
|
5
5
|
describe('AttachmentImage', () => {
|
|
6
6
|
test('rendering the defult props', () => {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import
|
|
2
|
+
import { render, cleanup } from '@testing-library/react';
|
|
3
|
+
import { setGlobalId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
4
|
+
import AttachmentViewer from "../AttachmentViewer";
|
|
5
|
+
beforeEach(() => {
|
|
6
|
+
setGlobalId(0);
|
|
7
|
+
});
|
|
8
|
+
afterEach(() => {
|
|
9
|
+
cleanup();
|
|
10
|
+
});
|
|
4
11
|
describe('AttachmentViewer', () => {
|
|
5
12
|
test('rendering the defult props', () => {
|
|
6
13
|
const {
|
|
@@ -87,7 +87,7 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
87
87
|
>
|
|
88
88
|
<i
|
|
89
89
|
aria-hidden="true"
|
|
90
|
-
class="zd_font_icons basic icon-download
|
|
90
|
+
class="zd_font_icons basic icon-download icon_button_center "
|
|
91
91
|
data-id="fontIcon"
|
|
92
92
|
data-selector-id="fontIcon"
|
|
93
93
|
data-test-id="fontIcon"
|
|
@@ -111,7 +111,7 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
111
111
|
>
|
|
112
112
|
<i
|
|
113
113
|
aria-hidden="true"
|
|
114
|
-
class="zd_font_icons basic icon-cross
|
|
114
|
+
class="zd_font_icons basic icon-cross icon_button_center "
|
|
115
115
|
data-id="fontIcon"
|
|
116
116
|
data-selector-id="fontIcon"
|
|
117
117
|
data-test-id="fontIcon"
|
|
@@ -369,7 +369,7 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
369
369
|
>
|
|
370
370
|
<i
|
|
371
371
|
aria-hidden="true"
|
|
372
|
-
class="zd_font_icons basic icon-hideTab thumpIcon thumpIconActive "
|
|
372
|
+
class="zd_font_icons basic icon-hideTab thumpIcon thumpIconActive icon_button_center "
|
|
373
373
|
data-id="fontIcon"
|
|
374
374
|
data-selector-id="fontIcon"
|
|
375
375
|
data-test-id="fontIcon"
|
|
@@ -8,9 +8,17 @@ export const AttachmentImage_defaultProps = {
|
|
|
8
8
|
export const AttachmentViewer_defaultProps = {
|
|
9
9
|
responsiveId: "Helmet",
|
|
10
10
|
needDownload: true,
|
|
11
|
-
i18nKeys: {
|
|
11
|
+
i18nKeys: {
|
|
12
|
+
previewUnsupportedText: 'Preview not available for the selected file type.'
|
|
13
|
+
},
|
|
12
14
|
maintainZoom: false,
|
|
13
15
|
isActive: false,
|
|
14
16
|
dataId: 'AttachmentViewer',
|
|
15
|
-
customProps: {}
|
|
17
|
+
customProps: {},
|
|
18
|
+
allowedPreviewExtensionsData: {
|
|
19
|
+
audio: [],
|
|
20
|
+
video: [],
|
|
21
|
+
image: [],
|
|
22
|
+
document: []
|
|
23
|
+
}
|
|
16
24
|
};
|
|
@@ -26,7 +26,8 @@ export const AttachmentViewer_propTypes = {
|
|
|
26
26
|
downloadText: PropTypes.string,
|
|
27
27
|
closeText: PropTypes.string,
|
|
28
28
|
hideText: PropTypes.string,
|
|
29
|
-
showText: PropTypes.string
|
|
29
|
+
showText: PropTypes.string,
|
|
30
|
+
previewUnsupportedText: PropTypes.string
|
|
30
31
|
}),
|
|
31
32
|
needDownload: PropTypes.string,
|
|
32
33
|
previewObj: PropTypes.object,
|
|
@@ -34,6 +35,13 @@ export const AttachmentViewer_propTypes = {
|
|
|
34
35
|
maintainZoom: PropTypes.bool,
|
|
35
36
|
isActive: PropTypes.bool,
|
|
36
37
|
dataId: PropTypes.string,
|
|
38
|
+
allowedPreviewExtensionsData: PropTypes.shape({
|
|
39
|
+
audio: PropTypes.arrayOf(PropTypes.string),
|
|
40
|
+
video: PropTypes.arrayOf(PropTypes.string),
|
|
41
|
+
image: PropTypes.arrayOf(PropTypes.string),
|
|
42
|
+
document: PropTypes.arrayOf(PropTypes.string)
|
|
43
|
+
}),
|
|
44
|
+
renderUnSupportedElement: PropTypes.func,
|
|
37
45
|
customProps: PropTypes.shape({
|
|
38
46
|
avatarProps: PropTypes.exact(AvatarProps)
|
|
39
47
|
})
|