@zohodesk/dot 1.0.0-temp-38 → 1.0.0-temp-39
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/README.md +883 -906
- package/__testUtils__/globals.js +0 -0
- package/dubFinder.js +96 -96
- package/es/ActionButton/ActionButton.js +2 -2
- package/es/ActionButton/ActionButton.module.css +136 -136
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/Appearance/dark/mode/dotDarkMode.module.css +536 -536
- package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +7 -7
- package/es/Appearance/dark/themes/green/greenDarkDotTheme.module.css +7 -7
- package/es/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +7 -7
- package/es/Appearance/dark/themes/red/redDarkDotTheme.module.css +7 -7
- package/es/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +7 -7
- package/es/Appearance/default/mode/dotDefaultMode.module.css +536 -536
- package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +7 -7
- package/es/Appearance/default/themes/green/greenDefaultDotTheme.module.css +7 -7
- package/es/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +7 -7
- package/es/Appearance/default/themes/red/redDefaultDotTheme.module.css +7 -7
- package/es/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +7 -7
- package/es/Attachment/Attachment.module.css +132 -132
- package/es/ChannelIcon/ChannelIcon.module.css +217 -217
- package/es/Drawer/Drawer.js +0 -0
- package/es/Drawer/Drawer.module.css +151 -151
- package/es/ExternalLink/ExternalLink.js +0 -0
- package/es/ExternalLink/ExternalLink.module.css +3 -3
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/es/ExternalLink/docs/ExternalLink__default.docs.js +0 -0
- package/es/FlipCard/FlipCard.module.css +44 -44
- package/es/FormAction/FormAction.module.css +82 -82
- package/es/FreezeLayer/FreezeLayer.module.css +42 -42
- package/es/IconButton/IconButton.js +2 -2
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Image/Image.module.css +10 -10
- package/es/ImportantNotes/ImportantNotes.module.css +20 -20
- package/es/Link/Link.js +1 -1
- package/es/Link/Link.module.css +3 -3
- package/es/Link/docs/Link__default.docs.js +0 -0
- package/es/Loader/Loader.module.css +46 -46
- package/es/Message/Message.js +2 -1
- package/es/Message/Message.module.css +102 -102
- package/es/Message/docs/Message__default.docs.js +2 -1
- package/es/MessageBanner/MessageBanner.module.css +45 -45
- package/es/NewStar/NewStar.module.css +110 -110
- package/es/NewStar/docs/NewStar__default.docs.js +0 -0
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/PlusIcon/PlusIcon.module.css +16 -16
- package/es/PlusIcon/docs/PlusIcon__default.docs.js +0 -0
- package/es/Provider.js +35 -88
- package/es/ToastMessage/ToastMessage.js +0 -0
- package/es/ToastMessage/ToastMessage.module.css +332 -332
- package/es/ToastMessage/docs/ToastMessage__information.docs.js +0 -0
- package/es/ToastMessage/docs/ToastMessage__primary.docs.js +0 -0
- package/es/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -0
- package/es/ToastMessage/docs/ToastMessage__success.docs.js +0 -0
- package/es/Upload/Upload.module.css +125 -125
- package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/es/avatar/AvatarIcon/AvatarIcon.js +1 -1
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/es/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -0
- package/es/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +21 -22
- package/es/avatar/AvatarThread/AvatarThread.module.css +163 -163
- package/es/avatar/AvatarUser/AvatarUser.js +0 -0
- package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +55 -55
- package/es/deprecated/Theme/dotDarkTheme.module.css +532 -532
- package/es/deprecated/Theme/dotDefaultTheme.module.css +532 -532
- package/es/deprecated/Theme/palette/darkPalette.module.css +39 -39
- package/es/deprecated/Theme/palette/defaultPalette.module.css +39 -39
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +9 -25
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +97 -97
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/es/emptystate/EditionPage/EditionPage.css +43 -43
- package/es/errorstate/EmptyStates.module.css +87 -87
- package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/es/errorstate/LinkText/LinkText.module.css +6 -6
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/es/errorstate/WillBack/WillBack.module.css +34 -34
- package/es/form/fields/CheckBoxField/CheckBoxField.js +0 -0
- package/es/form/fields/Fields.module.css +181 -181
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/es/form/fields/TextEditor/TextEditor.js +4 -9
- package/es/form/fields/TextEditor/TextEditor.module.css +634 -654
- package/es/form/fields/TextEditorField/TextEditorField.js +3 -5
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +12 -12
- package/es/form/layout/Field/Field.js +0 -0
- package/es/form/layout/Field/Field.module.css +22 -22
- package/es/form/layout/Field/docs/Field__default.docs.js +0 -0
- package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/es/form/layout/Section/Section.js +0 -0
- package/es/form/layout/Section/docs/Section__default.docs.js +0 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/es/layout/SubtabLayout/SubtabLayout.module.css +146 -146
- package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/DotNew/DotNew.module.css +22 -22
- package/es/list/GridStencils/GridStencils.module.css +156 -156
- package/es/list/Icons/FloatingIcons.js +1 -1
- package/es/list/Icons/Icons.module.css +15 -15
- package/es/list/Icons/docs/FloatingIcons__default.docs.js +1 -7
- package/es/list/ListLayout/ListLayout.module.css +33 -33
- package/es/list/ListStencils/ListStencils.module.css +67 -67
- package/es/list/SecondaryText/SecondaryText.module.css +136 -136
- package/es/list/SecondaryText/Website.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +37 -37
- package/es/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/es/list/Subject/Subject.module.css +27 -27
- package/es/list/TagNew/TagNew.module.css +115 -115
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/UserTime/UserTime.js +1 -1
- package/es/list/UserTime/UserTime.module.css +58 -58
- package/es/list/listCommon.module.css +60 -60
- package/es/list/status/StatusDropdown/StatusDropdown.js +1 -1
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +89 -89
- package/es/list/status/StatusListItem/StatusListItem.js +0 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +104 -104
- package/es/lookup/EmptyPage/EmptyPage.js +0 -0
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/es/lookup/Lookup/Lookup.js +0 -0
- package/es/lookup/Lookup/Lookup.module.css +26 -26
- package/es/lookup/Lookup/docs/Lookup__contact.docs.js +14 -14
- package/es/lookup/Section/LookupSection.module.css +8 -8
- package/es/lookup/header/Close/LookupClose.module.css +15 -15
- package/es/lookup/header/Search/LookupSearch.module.css +57 -57
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/es/lookup/header/Title/LookupTitle.module.css +20 -20
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +51 -51
- package/es/lookup/header/lookupHeaderCommon.module.css +35 -35
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/es/setup/header/Button/HeaderButton.module.css +5 -5
- package/es/setup/header/Link/HeaderLink.module.css +21 -21
- package/es/setup/header/Search/Search.module.css +68 -68
- package/es/setup/header/Views/Views.module.css +37 -37
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/es/setup/helptips/Description/docs/Description__default.docs.js +0 -0
- package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/es/setup/helptips/Link/Link.js +2 -1
- package/es/setup/helptips/Link/docs/Link__default.docs.js +0 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/es/setup/helptips/Title/Title.js +0 -0
- package/es/setup/helptips/Title/docs/Title__default.docs.js +0 -0
- package/es/setup/table/TableData/SetupTableData.module.css +44 -44
- package/es/setup/table/TableData/Tablehover.module.css +6 -6
- package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/es/setup/table/Text/TableText.module.css +37 -37
- package/es/setup/table/Text/Text.js +0 -0
- package/es/setup/table/Text/docs/Text__default.docs.js +0 -0
- package/es/svg/PlusIcon.js +1 -1
- package/es/svg/SnippetIcon.js +2 -2
- package/es/utils/KeyboardApi.js +26 -28
- package/es/version2/AlertClose/AlertClose.module.css +42 -42
- package/es/version2/GlobalNotification/GlobalNotification.js +2 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +124 -124
- package/es/version2/alertIcons/AlertIcons.module.css +67 -67
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/es/version2/errorstate/{V2_ErrorStates.module.css → Inconvenience/V2_Inconvenience.module.css} +46 -46
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +2 -3
- package/{lib/version2/errorstate/V2_ErrorStates.module.css → es/version2/errorstate/OopsSomethingMiss/V2_OopsSomethingMiss.module.css} +46 -46
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
- package/{src/version2/errorstate/V2_ErrorStates.module.css → es/version2/errorstate/UnableToProcessRequest/V2_UnableToProcessRequest.module.css} +46 -46
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -4
- package/es/version2/errorstate/UnauthorizedLogin/V2_UnauthorizedLogin.module.css +46 -0
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -1
- package/es/version2/errorstate/UrlNotFound/V2_UrlNotFound.module.css +46 -0
- package/es/version2/errorstate/WillBeRightBack/V2_WillBeRightBack.module.css +46 -0
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +86 -86
- package/es/version2/lookup/AlertLookup/AlertLookup.js +1 -1
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +110 -110
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/lib/ActionButton/ActionButton.js +3 -3
- package/lib/ActionButton/ActionButton.module.css +136 -136
- package/lib/ActionButton/docs/ActionButton__default.docs.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/AlphabeticList/docs/AlphabeticList__default.docs.js +1 -1
- package/lib/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +1 -1
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +536 -536
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +7 -7
- package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +7 -7
- package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +7 -7
- package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +7 -7
- package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +7 -7
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +536 -536
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +7 -7
- package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +7 -7
- package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +7 -7
- package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +7 -7
- package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +7 -7
- package/lib/Attachment/Attachment.js +1 -1
- package/lib/Attachment/Attachment.module.css +132 -132
- package/lib/Attachment/docs/Attachment__default.docs.js +1 -1
- package/lib/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
- package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +1 -1
- package/lib/Drawer/Drawer.js +1 -1
- package/lib/Drawer/Drawer.module.css +151 -151
- package/lib/Drawer/docs/Drawer__default.docs.js +1 -1
- package/lib/Drawer/docs/Drawer__multiDrawer.docs.js +1 -1
- package/lib/Drawer/docs/Drawer__noFreeze.docs.js +1 -1
- package/lib/Drawer/docs/Drawer__withModal.docs.js +1 -1
- package/lib/ExternalLink/ExternalLink.js +1 -1
- package/lib/ExternalLink/ExternalLink.module.css +3 -3
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/ExternalLink/docs/ExternalLink__default.docs.js +1 -1
- package/lib/FlipCard/FlipCard.js +1 -1
- package/lib/FlipCard/FlipCard.module.css +44 -44
- package/lib/FlipCard/docs/FlipCard__default.docs.js +1 -1
- package/lib/FormAction/FormAction.js +1 -1
- package/lib/FormAction/FormAction.module.css +82 -82
- package/lib/FormAction/docs/FormAction__default.docs.js +1 -1
- package/lib/FreezeLayer/FreezeLayer.js +1 -1
- package/lib/FreezeLayer/FreezeLayer.module.css +42 -42
- package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +1 -1
- package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +1 -1
- package/lib/IconButton/IconButton.js +3 -3
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/IconButton/docs/IconButton__default.docs.js +1 -1
- package/lib/Image/Image.js +1 -1
- package/lib/Image/Image.module.css +10 -10
- package/lib/Image/docs/Image__default.docs.js +1 -1
- package/lib/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
- package/lib/ImportantNotes/docs/ImportantNotes__default.docs.js +1 -1
- package/lib/Link/Link.js +2 -2
- package/lib/Link/Link.module.css +3 -3
- package/lib/Link/docs/Link__default.docs.js +1 -1
- package/lib/Loader/Loader.js +1 -1
- package/lib/Loader/Loader.module.css +46 -46
- package/lib/Loader/docs/Loader__default.docs.js +1 -1
- package/lib/Message/Message.js +4 -2
- package/lib/Message/Message.module.css +102 -102
- package/lib/Message/docs/Message__default.docs.js +3 -2
- package/lib/MessageBanner/MessageBanner.js +1 -1
- package/lib/MessageBanner/MessageBanner.module.css +45 -45
- package/lib/MessageBanner/docs/MessageBanner__default.docs.js +1 -1
- package/lib/NewStar/NewStar.js +1 -1
- package/lib/NewStar/NewStar.module.css +110 -110
- package/lib/NewStar/docs/NewStar__default.docs.js +1 -1
- package/lib/PlusIcon/PlusIcon.js +1 -1
- package/lib/PlusIcon/PlusIcon.module.css +16 -16
- package/lib/PlusIcon/docs/PlusIcon__default.docs.js +1 -1
- package/lib/Provider.js +38 -113
- package/lib/ToastMessage/ToastMessage.js +1 -1
- package/lib/ToastMessage/ToastMessage.module.css +332 -332
- package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__information.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__success.docs.js +1 -1
- package/lib/Upload/Upload.js +1 -1
- package/lib/Upload/Upload.module.css +125 -125
- package/lib/Upload/docs/Upload__default.docs.js +1 -1
- package/lib/actions/AutoClose.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +1 -1
- package/lib/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +1 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +1 -1
- package/lib/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +1 -1
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +1 -1
- package/lib/avatar/AvatarStatus/AvatarStatus.js +2 -2
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +1 -1
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +22 -23
- package/lib/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/avatar/AvatarThread/AvatarThread.module.css +163 -163
- package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +1 -1
- package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +1 -1
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +1 -1
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +1 -1
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +1 -1
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +55 -55
- package/lib/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +1 -1
- package/lib/deprecated/Theme/dotDarkTheme.module.css +532 -532
- package/lib/deprecated/Theme/dotDefaultTheme.module.css +532 -532
- package/lib/deprecated/Theme/palette/darkPalette.module.css +39 -39
- package/lib/deprecated/Theme/palette/defaultPalette.module.css +39 -39
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +68 -84
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +97 -97
- package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +1 -1
- package/lib/emptystate/EditionPage/EditionPage.css +43 -43
- package/lib/emptystate/EditionPage/EditionPage.js +1 -1
- package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +1 -1
- package/lib/errorstate/EmptyStates.module.css +87 -87
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +1 -1
- package/lib/errorstate/LinkText/LinkText.js +1 -1
- package/lib/errorstate/LinkText/LinkText.module.css +6 -6
- package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +1 -1
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +1 -1
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +1 -1
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +1 -1
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +1 -1
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -1
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +1 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +1 -1
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +1 -1
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +1 -1
- package/lib/errorstate/WillBack/WillBack.js +1 -1
- package/lib/errorstate/WillBack/WillBack.module.css +34 -34
- package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +1 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/DateField/docs/DateField__default.docs.js +1 -1
- package/lib/form/fields/Fields.module.css +181 -181
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +1 -1
- package/lib/form/fields/PhoneField/PhoneField.js +1 -1
- package/lib/form/fields/PhoneField/docs/PhoneField__default.docs.js +1 -1
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +1 -1
- package/lib/form/fields/SelectField/docs/SelectField__default.docs.js +1 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/lib/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +5 -10
- package/lib/form/fields/TextEditor/TextEditor.module.css +634 -654
- package/lib/form/fields/TextEditorField/TextEditorField.js +47 -50
- package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/form/fields/TextareaField/docs/TextareaField__default.docs.js +1 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +1 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +12 -12
- package/lib/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +1 -1
- package/lib/form/layout/Field/Field.js +1 -1
- package/lib/form/layout/Field/Field.module.css +22 -22
- package/lib/form/layout/Field/docs/Field__default.docs.js +1 -1
- package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/lib/form/layout/Section/Section.js +1 -1
- package/lib/form/layout/Section/docs/Section__default.docs.js +1 -1
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +1 -1
- package/lib/layout/SubtabLayout/SubtabLayout.js +1 -1
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +146 -146
- package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +1 -1
- package/lib/list/AvatarFlip/AvatarFlip.js +1 -1
- package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +1 -1
- package/lib/list/BluePrintStatus/BluePrintStatus.js +1 -1
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +1 -1
- package/lib/list/Comment/Comment.js +1 -1
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/Comment/docs/Comment__default.docs.js +1 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/lib/list/Dot/Dot.js +1 -1
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/DotNew/DotNew.js +1 -1
- package/lib/list/DotNew/DotNew.module.css +22 -22
- package/lib/list/DotNew/docs/DotNew__default.docs.js +1 -1
- package/lib/list/GridStencils/GridStencils.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +156 -156
- package/lib/list/GridStencils/docs/GridStencils__default.docs.js +1 -1
- package/lib/list/Icons/AddNewIcon.js +1 -1
- package/lib/list/Icons/CompleteIcon.js +1 -1
- package/lib/list/Icons/DeleteIcon.js +1 -1
- package/lib/list/Icons/EditIcon.js +1 -1
- package/lib/list/Icons/FloatingIcons.js +2 -2
- package/lib/list/Icons/Icons.module.css +15 -15
- package/lib/list/Icons/SmartIcon.js +1 -1
- package/lib/list/Icons/docs/FloatingIcons__default.docs.js +2 -9
- package/lib/list/ListLayout/ListLayout.js +1 -1
- package/lib/list/ListLayout/ListLayout.module.css +33 -33
- package/lib/list/ListLayout/docs/ListLayout__default.docs.js +1 -1
- package/lib/list/ListStencils/ListStencils.js +1 -1
- package/lib/list/ListStencils/ListStencils.module.css +67 -67
- package/lib/list/ListStencils/docs/ListStencils__default.docs.js +1 -1
- package/lib/list/SecondaryText/AccountName.js +1 -1
- package/lib/list/SecondaryText/ContactName.js +1 -1
- package/lib/list/SecondaryText/DepartmentText.js +1 -1
- package/lib/list/SecondaryText/Email.js +1 -1
- package/lib/list/SecondaryText/HappinessRating.js +1 -1
- package/lib/list/SecondaryText/PhoneNumber.js +1 -1
- package/lib/list/SecondaryText/PriorityText.js +1 -1
- package/lib/list/SecondaryText/SecondaryText.js +1 -1
- package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
- package/lib/list/SecondaryText/StatusText.js +1 -1
- package/lib/list/SecondaryText/TicketId.js +1 -1
- package/lib/list/SecondaryText/Website.js +1 -1
- package/lib/list/SecondaryText/docs/ContactName__default.docs.js +1 -1
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
- package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/lib/list/SecondryPanel/docs/SecondryPanelDocs.module.css +37 -37
- package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +1 -1
- package/lib/list/SentimentStatus/SentimentStatus.js +1 -1
- package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +1 -1
- package/lib/list/Subject/Subject.js +1 -1
- package/lib/list/Subject/Subject.module.css +27 -27
- package/lib/list/Subject/docs/Subject__default.docs.js +1 -1
- package/lib/list/TagNew/TagNew.js +1 -1
- package/lib/list/TagNew/TagNew.module.css +115 -115
- package/lib/list/TagNew/docs/TagNew__default.docs.js +1 -1
- package/lib/list/Thread/Thread.js +1 -1
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/Thread/docs/Thread__default.docs.js +1 -1
- package/lib/list/UserTime/UserTime.js +2 -2
- package/lib/list/UserTime/UserTime.module.css +58 -58
- package/lib/list/UserTime/docs/UserTime__default.docs.js +1 -1
- package/lib/list/listCommon.module.css +60 -60
- package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +89 -89
- package/lib/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +104 -104
- package/lib/list/status/StatusListItem/docs/StatusListItem__default.docs.js +1 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +1 -1
- package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +1 -1
- package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +1 -1
- package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/Lookup/Lookup.module.css +26 -26
- package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +15 -15
- package/lib/lookup/Lookup/docs/Lookup__default.docs.js +1 -1
- package/lib/lookup/Section/LookupSection.module.css +8 -8
- package/lib/lookup/Section/Section.js +1 -1
- package/lib/lookup/header/Close/Close.js +1 -1
- package/lib/lookup/header/Close/LookupClose.module.css +15 -15
- package/lib/lookup/header/Close/docs/Close__default.docs.js +1 -1
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +1 -1
- package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
- package/lib/lookup/header/Search/Search.js +1 -1
- package/lib/lookup/header/Search/docs/Search__default.docs.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +1 -1
- package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
- package/lib/lookup/header/Title/Title.js +1 -1
- package/lib/lookup/header/Title/docs/Title__default.docs.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +51 -51
- package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +1 -1
- package/lib/lookup/header/lookupHeaderCommon.module.css +35 -35
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/lib/setup/header/Button/Button.js +1 -1
- package/lib/setup/header/Button/HeaderButton.module.css +5 -5
- package/lib/setup/header/Button/docs/Button__default.docs.js +1 -1
- package/lib/setup/header/Link/HeaderLink.module.css +21 -21
- package/lib/setup/header/Link/Link.js +1 -1
- package/lib/setup/header/Link/docs/Link__default.docs.js +1 -1
- package/lib/setup/header/Search/Search.js +1 -1
- package/lib/setup/header/Search/Search.module.css +68 -68
- package/lib/setup/header/Search/docs/Search__default.docs.js +1 -1
- package/lib/setup/header/Views/Views.js +1 -1
- package/lib/setup/header/Views/Views.module.css +37 -37
- package/lib/setup/header/Views/docs/Views__default.docs.js +1 -1
- package/lib/setup/helptips/Description/Description.js +1 -1
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/lib/setup/helptips/Description/docs/Description__default.docs.js +1 -1
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/lib/setup/helptips/Link/Link.js +4 -2
- package/lib/setup/helptips/Link/docs/Link__default.docs.js +1 -1
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +1 -1
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/lib/setup/helptips/Title/Title.js +1 -1
- package/lib/setup/helptips/Title/docs/Title__default.docs.js +1 -1
- package/lib/setup/table/Table/Table.js +1 -1
- package/lib/setup/table/Table/docs/Table__default.docs.js +1 -1
- package/lib/setup/table/TableBody/TableBody.js +1 -1
- package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
- package/lib/setup/table/TableData/TableData.js +1 -1
- package/lib/setup/table/TableData/Tablehover.module.css +6 -6
- package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/lib/setup/table/TableHead/TableHead.js +1 -1
- package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/lib/setup/table/TableRow/TableRow.js +1 -1
- package/lib/setup/table/Text/TableText.module.css +37 -37
- package/lib/setup/table/Text/Text.js +1 -1
- package/lib/setup/table/Text/docs/Text__default.docs.js +1 -1
- package/lib/svg/PlusIcon.js +2 -2
- package/lib/svg/SnippetIcon.js +3 -3
- package/lib/svg/TemplateIcon.js +1 -1
- package/lib/svg/docs/SVG__default.docs.js +1 -1
- package/lib/utils/KeyboardApi.js +26 -28
- package/lib/version2/AlertClose/AlertClose.js +1 -1
- package/lib/version2/AlertClose/AlertClose.module.css +42 -42
- package/lib/version2/AlertClose/docs/AlertClose__default.docs.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +4 -2
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +124 -124
- package/lib/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +1 -1
- package/lib/version2/alertIcons/AlarmAlertIcon.js +1 -1
- package/lib/version2/alertIcons/AlertIcons.js +1 -1
- package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
- package/lib/version2/alertIcons/DangerAlertIcon.js +1 -1
- package/lib/version2/alertIcons/ErrorAlertIcon.js +1 -1
- package/lib/version2/alertIcons/InfoAlertIcon.js +1 -1
- package/lib/version2/alertIcons/NotificationAlertIcon.js +1 -1
- package/lib/version2/alertIcons/SuccessAlertIcon.js +1 -1
- package/lib/version2/alertIcons/WarningAlertIcon.js +1 -1
- package/lib/version2/alertIcons/docs/AlertIcons__default.docs.js +1 -1
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +8 -8
- package/lib/version2/errorstate/Inconvenience/V2_Inconvenience.module.css +46 -0
- package/lib/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +1 -1
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +9 -10
- package/lib/version2/errorstate/OopsSomethingMiss/V2_OopsSomethingMiss.module.css +46 -0
- package/lib/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +1 -1
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +8 -8
- package/lib/version2/errorstate/UnableToProcessRequest/V2_UnableToProcessRequest.module.css +46 -0
- package/lib/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +1 -1
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +10 -11
- package/lib/version2/errorstate/UnauthorizedLogin/V2_UnauthorizedLogin.module.css +46 -0
- package/lib/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +1 -1
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +8 -8
- package/lib/version2/errorstate/UrlNotFound/V2_UrlNotFound.module.css +46 -0
- package/lib/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +1 -1
- package/lib/version2/errorstate/WillBeRightBack/V2_WillBeRightBack.module.css +46 -0
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +8 -8
- package/lib/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +1 -1
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -1
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +86 -86
- package/lib/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +1 -1
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +2 -2
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/lib/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +1 -1
- package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +110 -110
- package/lib/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +1 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/lib/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +1 -1
- package/package.json +77 -75
- package/src/ActionButton/ActionButton.js +197 -197
- package/src/ActionButton/ActionButton.module.css +120 -120
- package/src/ActionButton/docs/ActionButton__default.docs.js +110 -110
- package/src/AlphabeticList/AlphabeticList.js +171 -171
- package/src/AlphabeticList/AlphabeticList.module.css +54 -54
- package/src/AlphabeticList/docs/AlphabeticList__default.docs.js +36 -36
- package/src/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +44 -44
- package/src/Appearance/dark/mode/dotDarkMode.module.css +536 -536
- package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +7 -7
- package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +7 -7
- package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +7 -7
- package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +7 -7
- package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +7 -7
- package/src/Appearance/default/mode/dotDefaultMode.module.css +536 -536
- package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +7 -7
- package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +7 -7
- package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +7 -7
- package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +7 -7
- package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +7 -7
- package/src/Attachment/Attachment.js +119 -119
- package/src/Attachment/Attachment.module.css +121 -121
- package/src/Attachment/docs/Attachment__default.docs.js +63 -63
- package/src/ChannelIcon/ChannelIcon.js +154 -154
- package/src/ChannelIcon/ChannelIcon.module.css +208 -208
- package/src/ChannelIcon/docs/ChannelIcon__default.docs.js +63 -63
- package/src/Drawer/Drawer.js +388 -388
- package/src/Drawer/Drawer.module.css +103 -103
- package/src/Drawer/docs/Drawer__default.docs.js +86 -86
- package/src/Drawer/docs/Drawer__multiDrawer.docs.js +111 -111
- package/src/Drawer/docs/Drawer__noFreeze.docs.js +20 -20
- package/src/Drawer/docs/Drawer__withModal.docs.js +76 -76
- package/src/ExternalLink/ExternalLink.js +70 -70
- package/src/ExternalLink/ExternalLink.module.css +3 -3
- package/src/ExternalLink/__tests__/ExternalLink.spec.js +28 -28
- package/src/ExternalLink/docs/ExternalLink__default.docs.js +24 -24
- package/src/FlipCard/FlipCard.js +193 -193
- package/src/FlipCard/FlipCard.module.css +35 -35
- package/src/FlipCard/docs/FlipCard__default.docs.js +76 -76
- package/src/FormAction/FormAction.js +126 -126
- package/src/FormAction/FormAction.module.css +57 -57
- package/src/FormAction/docs/FormAction__default.docs.js +93 -93
- package/src/FreezeLayer/FreezeLayer.js +159 -159
- package/src/FreezeLayer/FreezeLayer.module.css +38 -38
- package/src/FreezeLayer/docs/FreezeLayer__dark.docs.js +52 -52
- package/src/FreezeLayer/docs/FreezeLayer__default.docs.js +51 -51
- package/src/IconButton/IconButton.js +186 -186
- package/src/IconButton/IconButton.module.css +22 -22
- package/src/IconButton/docs/IconButton__default.docs.js +158 -158
- package/src/Image/Image.js +58 -58
- package/src/Image/Image.module.css +10 -10
- package/src/Image/docs/Image__default.docs.js +18 -18
- package/src/ImportantNotes/ImportantNotes.js +57 -57
- package/src/ImportantNotes/ImportantNotes.module.css +15 -15
- package/src/ImportantNotes/docs/ImportantNotes__default.docs.js +22 -22
- package/src/Link/Link.js +117 -117
- package/src/Link/Link.module.css +3 -3
- package/src/Link/LinkContext.js +9 -9
- package/src/Link/docs/Link__default.docs.js +91 -91
- package/src/Loader/Loader.js +21 -21
- package/src/Loader/Loader.module.css +25 -25
- package/src/Loader/docs/Loader__default.docs.js +21 -21
- package/src/Message/Message.js +109 -109
- package/src/Message/Message.module.css +69 -69
- package/src/Message/docs/Message__default.docs.js +54 -53
- package/src/MessageBanner/MessageBanner.js +79 -79
- package/src/MessageBanner/MessageBanner.module.css +37 -37
- package/src/MessageBanner/docs/MessageBanner__default.docs.js +87 -87
- package/src/NewStar/NewStar.js +83 -83
- package/src/NewStar/NewStar.module.css +73 -73
- package/src/NewStar/docs/NewStar__default.docs.js +39 -39
- package/src/PlusIcon/PlusIcon.js +64 -64
- package/src/PlusIcon/PlusIcon.module.css +16 -16
- package/src/PlusIcon/docs/PlusIcon__default.docs.js +18 -18
- package/src/Provider.js +200 -249
- package/src/ToastMessage/ToastMessage.js +315 -315
- package/src/ToastMessage/ToastMessage.module.css +259 -259
- package/src/ToastMessage/docs/ToastMessage__custom.docs.js +97 -97
- package/src/ToastMessage/docs/ToastMessage__information.docs.js +57 -57
- package/src/ToastMessage/docs/ToastMessage__primary.docs.js +135 -135
- package/src/ToastMessage/docs/ToastMessage__secondary.docs.js +40 -40
- package/src/ToastMessage/docs/ToastMessage__success.docs.js +68 -68
- package/src/Upload/Upload.js +103 -103
- package/src/Upload/Upload.module.css +106 -106
- package/src/Upload/docs/Upload__default.docs.js +72 -72
- package/src/actions/AutoClose.js +51 -51
- package/src/actions/index.js +22 -22
- package/src/alert/AlertHeader/AlertHeader.js +122 -122
- package/src/alert/AlertHeader/AlertHeader.module.css +62 -62
- package/src/alert/AlertHeader/docs/AlertHeader__default.docs.js +73 -73
- package/src/alert/AlertLookup/AlertLookup.js +211 -211
- package/src/alert/AlertLookup/AlertLookup.module.css +22 -22
- package/src/alert/AlertLookup/docs/AlertLookup__default.docs.js +124 -124
- package/src/avatar/AvatarClose/AvatarClose.js +49 -49
- package/src/avatar/AvatarClose/AvatarClose.module.css +31 -31
- package/src/avatar/AvatarClose/docs/AvatarClose__default.docs.js +26 -26
- package/src/avatar/AvatarCollision/AvatarCollision.js +81 -81
- package/src/avatar/AvatarCollision/AvatarCollision.module.css +55 -55
- package/src/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +40 -40
- package/src/avatar/AvatarIcon/AvatarIcon.js +99 -99
- package/src/avatar/AvatarIcon/AvatarIcon.module.css +59 -59
- package/src/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +49 -49
- package/src/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +36 -36
- package/src/avatar/AvatarStatus/AvatarStatus.js +95 -95
- package/src/avatar/AvatarStatus/AvatarStatus.module.css +96 -96
- package/src/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +38 -38
- package/src/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +63 -63
- package/src/avatar/AvatarThread/AvatarThread.js +131 -131
- package/src/avatar/AvatarThread/AvatarThread.module.css +113 -113
- package/src/avatar/AvatarThread/docs/AvatarThread__default.docs.js +167 -167
- package/src/avatar/AvatarUser/AvatarUser.js +160 -160
- package/src/avatar/AvatarUser/AvatarUser.module.css +100 -100
- package/src/avatar/AvatarUser/docs/AvatarUser__default.docs.js +148 -148
- package/src/avatar/AvatarWithTeam/AvatarWithTeam.js +134 -134
- package/src/avatar/AvatarWithTeam/AvatarWithTeam.module.css +16 -16
- package/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +50 -50
- package/src/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +28 -28
- package/src/deprecated/SelectDropdown/SelectDropdown.js +122 -122
- package/src/deprecated/SelectDropdown/SelectDropdown.module.css +47 -47
- package/src/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +31 -31
- package/src/deprecated/Theme/dotDarkTheme.module.css +532 -532
- package/src/deprecated/Theme/dotDefaultTheme.module.css +532 -532
- package/src/deprecated/Theme/palette/darkPalette.module.css +39 -39
- package/src/deprecated/Theme/palette/defaultPalette.module.css +39 -39
- package/src/docs/formDocs.js +26 -26
- package/src/docs/generalDocs.js +161 -161
- package/src/docs/lookupDocs.js +51 -51
- package/src/docs/setupDocs.js +27 -27
- package/src/dropdown/ToggleDropDown/ToggleDropDown.js +931 -944
- package/src/dropdown/ToggleDropDown/ToggleDropDown.module.css +84 -84
- package/src/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +242 -242
- package/src/emptystate/CommonEmptyState/CommonEmptyState.js +116 -116
- package/src/emptystate/CommonEmptyState/CommonEmptyState.module.css +77 -77
- package/src/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +107 -107
- package/src/emptystate/EditionPage/EditionPage.css +37 -37
- package/src/emptystate/EditionPage/EditionPage.js +69 -69
- package/src/emptystate/EditionPage/docs/EditionPage__default.docs.js +23 -23
- package/src/errorstate/EmptyStates.module.css +84 -84
- package/src/errorstate/Inconvenience/Inconvenience.js +132 -132
- package/src/errorstate/Inconvenience/Inconvenience.module.css +4 -4
- package/src/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +19 -19
- package/src/errorstate/LinkText/LinkText.js +35 -35
- package/src/errorstate/LinkText/LinkText.module.css +6 -6
- package/src/errorstate/LinkText/docs/LinkText__default.docs.js +13 -13
- package/src/errorstate/NoRequestFound/NoRequestFound.js +132 -132
- package/src/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/src/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +19 -19
- package/src/errorstate/PermissionPlay/PermissionPlay.js +127 -127
- package/src/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/src/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +20 -20
- package/src/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +132 -132
- package/src/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/src/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +19 -19
- package/src/errorstate/UnableToProcess/UnableToProcess.js +130 -130
- package/src/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/src/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +19 -19
- package/src/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +130 -130
- package/src/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/src/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +20 -20
- package/src/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +19 -19
- package/src/errorstate/WillBack/WillBack.js +120 -120
- package/src/errorstate/WillBack/WillBack.module.css +36 -36
- package/src/errorstate/WillBack/docs/WillBack__default.docs.js +21 -21
- package/src/form/fields/CheckBoxField/CheckBoxField.js +220 -220
- package/src/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +32 -32
- package/src/form/fields/CurrencyField/CurrencyField.js +267 -267
- package/src/form/fields/DateField/DateField.js +281 -281
- package/src/form/fields/DateField/docs/DateField__default.docs.js +24 -24
- package/src/form/fields/Fields.module.css +145 -145
- package/src/form/fields/MultiSelectField/MultiSelectField.js +311 -311
- package/src/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +53 -53
- package/src/form/fields/PhoneField/PhoneField.js +227 -227
- package/src/form/fields/PhoneField/docs/PhoneField__default.docs.js +26 -26
- package/src/form/fields/RadioField/RadioField.js +181 -181
- package/src/form/fields/SelectField/SelectField.js +296 -296
- package/src/form/fields/SelectField/docs/SelectField__default.docs.js +48 -48
- package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +323 -323
- package/src/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +95 -95
- package/src/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +55 -55
- package/src/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +342 -342
- package/src/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +6 -6
- package/src/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +58 -58
- package/src/form/fields/TextBoxField/TextBoxField.js +274 -274
- package/src/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +38 -38
- package/src/form/fields/TextEditor/TextEditor.js +430 -436
- package/src/form/fields/TextEditor/TextEditor.module.css +568 -582
- package/src/form/fields/TextEditorField/TextEditorField.js +280 -286
- package/src/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +62 -62
- package/src/form/fields/TextEditorWrapper/TextEditorWrapper.js +239 -239
- package/src/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +25 -25
- package/src/form/fields/TextareaField/TextareaField.js +247 -247
- package/src/form/fields/TextareaField/docs/TextareaField__default.docs.js +25 -25
- package/src/form/fields/ValidationMessage/ValidationMessage.js +55 -55
- package/src/form/fields/ValidationMessage/ValidationMessage.module.css +9 -9
- package/src/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +19 -19
- package/src/form/layout/Field/Field.js +53 -53
- package/src/form/layout/Field/Field.module.css +22 -22
- package/src/form/layout/Field/docs/Field__default.docs.js +20 -20
- package/src/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/src/form/layout/Section/Section.js +47 -47
- package/src/form/layout/Section/docs/Section__default.docs.js +21 -21
- package/src/i18n.js +5498 -5498
- package/src/index.js +8 -8
- package/src/layout/SetupDetailLayout/SetupDetailLayout.js +274 -274
- package/src/layout/SetupDetailLayout/SetupDetailLayout.module.css +116 -116
- package/src/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +34 -34
- package/src/layout/SetupDetailLayout/index.js +4 -4
- package/src/layout/SubtabLayout/SubtabLayout.js +235 -235
- package/src/layout/SubtabLayout/SubtabLayout.module.css +120 -120
- package/src/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +53 -53
- package/src/layout/SubtabLayout/index.js +4 -4
- package/src/list/AvatarFlip/AvatarFlip.js +106 -106
- package/src/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/src/list/AvatarFlip/docs/AvatarFlip__default.docs.js +82 -82
- package/src/list/BluePrintStatus/BluePrintStatus.js +28 -28
- package/src/list/BluePrintStatus/BluePrintStatus.module.css +14 -14
- package/src/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +20 -20
- package/src/list/Comment/Comment.js +51 -51
- package/src/list/Comment/Comment.module.css +24 -24
- package/src/list/Comment/docs/Comment__default.docs.js +22 -22
- package/src/list/DepartmentDropDown/DepartmentDropDown.js +119 -119
- package/src/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/src/list/Dot/Dot.js +27 -27
- package/src/list/Dot/Dot.module.css +15 -15
- package/src/list/DotNew/DotNew.js +29 -29
- package/src/list/DotNew/DotNew.module.css +22 -22
- package/src/list/DotNew/docs/DotNew__default.docs.js +18 -18
- package/src/list/GridStencils/GridStencils.js +46 -46
- package/src/list/GridStencils/GridStencils.module.css +102 -102
- package/src/list/GridStencils/docs/GridStencils__default.docs.js +30 -30
- package/src/list/Icons/AddNewIcon.js +29 -29
- package/src/list/Icons/CompleteIcon.js +36 -30
- package/src/list/Icons/DeleteIcon.js +37 -31
- package/src/list/Icons/EditIcon.js +37 -31
- package/src/list/Icons/FloatingIcons.js +32 -32
- package/src/list/Icons/Icons.module.css +15 -15
- package/src/list/Icons/SmartIcon.js +32 -32
- package/src/list/Icons/docs/FloatingIcons__default.docs.js +23 -26
- package/src/list/ListLayout/ListLayout.js +111 -111
- package/src/list/ListLayout/ListLayout.module.css +36 -36
- package/src/list/ListLayout/docs/ListLayout__default.docs.js +54 -54
- package/src/list/ListStencils/ListStencils.js +45 -45
- package/src/list/ListStencils/ListStencils.module.css +62 -62
- package/src/list/ListStencils/docs/ListStencils__default.docs.js +18 -18
- package/src/list/SecondaryText/AccountName.js +120 -120
- package/src/list/SecondaryText/ContactName.js +128 -128
- package/src/list/SecondaryText/DepartmentText.js +34 -34
- package/src/list/SecondaryText/Email.js +77 -77
- package/src/list/SecondaryText/HappinessRating.js +37 -37
- package/src/list/SecondaryText/PhoneNumber.js +84 -84
- package/src/list/SecondaryText/PriorityText.js +40 -40
- package/src/list/SecondaryText/SecondaryText.js +43 -43
- package/src/list/SecondaryText/SecondaryText.module.css +126 -126
- package/src/list/SecondaryText/StatusText.js +42 -42
- package/src/list/SecondaryText/TicketId.js +69 -69
- package/src/list/SecondaryText/Website.js +59 -59
- package/src/list/SecondaryText/docs/ContactName__default.docs.js +18 -18
- package/src/list/SecondaryText/index.js +11 -11
- package/src/list/SecondryPanel/SecondryPanel.js +144 -144
- package/src/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/src/list/SecondryPanel/docs/SecondryPanelDocs.module.css +37 -37
- package/src/list/SecondryPanel/docs/SecondryPanel__default.docs.js +90 -90
- package/src/list/SentimentStatus/SentimentStatus.js +32 -32
- package/src/list/SentimentStatus/SentimentStatus.module.css +9 -9
- package/src/list/SentimentStatus/docs/SentimentStatus__default.docs.js +20 -20
- package/src/list/Subject/Subject.js +80 -80
- package/src/list/Subject/Subject.module.css +27 -27
- package/src/list/Subject/docs/Subject__default.docs.js +34 -34
- package/src/list/TagNew/TagNew.js +40 -40
- package/src/list/TagNew/TagNew.module.css +108 -108
- package/src/list/TagNew/docs/TagNew__default.docs.js +18 -18
- package/src/list/Thread/Thread.js +43 -43
- package/src/list/Thread/Thread.module.css +30 -30
- package/src/list/Thread/docs/Thread__default.docs.js +18 -18
- package/src/list/UserTime/UserTime.js +138 -138
- package/src/list/UserTime/UserTime.module.css +52 -52
- package/src/list/UserTime/docs/UserTime__default.docs.js +114 -114
- package/src/list/listCommon.module.css +52 -52
- package/src/list/status/StatusDropdown/StatusDropdown.js +544 -538
- package/src/list/status/StatusDropdown/StatusDropdown.module.css +76 -76
- package/src/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +92 -92
- package/src/list/status/StatusListItem/StatusListItem.js +149 -149
- package/src/list/status/StatusListItem/StatusListItem.module.css +81 -81
- package/src/list/status/StatusListItem/docs/StatusListItem__default.docs.js +19 -19
- package/src/lookup/EmptyPage/EmptyPage.js +62 -62
- package/src/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/src/lookup/EmptyPage/docs/EmptyPage__account.docs.js +17 -17
- package/src/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +17 -17
- package/src/lookup/EmptyPage/docs/EmptyPage__default.docs.js +16 -16
- package/src/lookup/EmptyPage/docs/EmptyPage__product.docs.js +17 -17
- package/src/lookup/Lookup/Lookup.js +110 -110
- package/src/lookup/Lookup/Lookup.module.css +26 -26
- package/src/lookup/Lookup/docs/Lookup__contact.docs.js +184 -184
- package/src/lookup/Lookup/docs/Lookup__default.docs.js +59 -59
- package/src/lookup/Section/LookupSection.module.css +8 -8
- package/src/lookup/Section/Section.js +27 -27
- package/src/lookup/header/Close/Close.js +36 -36
- package/src/lookup/header/Close/LookupClose.module.css +15 -15
- package/src/lookup/header/Close/docs/Close__default.docs.js +17 -17
- package/src/lookup/header/ModuleHeader/ModuleHeader.js +97 -97
- package/src/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +40 -40
- package/src/lookup/header/Search/LookupSearch.module.css +48 -48
- package/src/lookup/header/Search/Search.js +249 -249
- package/src/lookup/header/Search/docs/Search__default.docs.js +106 -106
- package/src/lookup/header/TicketHeader/TicketHeader.js +123 -123
- package/src/lookup/header/TicketHeader/TicketHeader.module.css +19 -19
- package/src/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +63 -63
- package/src/lookup/header/Title/LookupTitle.module.css +20 -20
- package/src/lookup/header/Title/Title.js +38 -38
- package/src/lookup/header/Title/docs/Title__default.docs.js +17 -17
- package/src/lookup/header/ViewDropDown/ViewDropDown.js +199 -199
- package/src/lookup/header/ViewDropDown/ViewDropDown.module.css +46 -46
- package/src/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +54 -54
- package/src/lookup/header/lookupHeaderCommon.module.css +25 -25
- package/src/lookup/header/lookupHeaderCommonResponsive.module.css +15 -15
- package/src/setup/header/Button/Button.js +40 -40
- package/src/setup/header/Button/HeaderButton.module.css +3 -3
- package/src/setup/header/Button/docs/Button__default.docs.js +21 -21
- package/src/setup/header/Link/HeaderLink.module.css +15 -15
- package/src/setup/header/Link/Link.js +48 -48
- package/src/setup/header/Link/docs/Link__default.docs.js +20 -20
- package/src/setup/header/Search/Search.js +87 -87
- package/src/setup/header/Search/Search.module.css +57 -57
- package/src/setup/header/Search/docs/Search__default.docs.js +32 -32
- package/src/setup/header/Views/Views.js +62 -62
- package/src/setup/header/Views/Views.module.css +27 -27
- package/src/setup/header/Views/docs/Views__default.docs.js +20 -20
- package/src/setup/helptips/Description/Description.js +22 -22
- package/src/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/src/setup/helptips/Description/docs/Description__default.docs.js +24 -24
- package/src/setup/helptips/Link/HelpTipsLink.module.css +6 -6
- package/src/setup/helptips/Link/Link.js +40 -39
- package/src/setup/helptips/Link/docs/Link__default.docs.js +27 -27
- package/src/setup/helptips/ListGroup/ListGroup.js +42 -42
- package/src/setup/helptips/ListGroup/ListGroup.module.css +17 -17
- package/src/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +37 -37
- package/src/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/src/setup/helptips/Title/Title.js +22 -22
- package/src/setup/helptips/Title/docs/Title__default.docs.js +22 -22
- package/src/setup/table/Table/Table.js +31 -31
- package/src/setup/table/Table/docs/Table__default.docs.js +115 -115
- package/src/setup/table/TableBody/TableBody.js +37 -37
- package/src/setup/table/TableData/SetupTableData.module.css +36 -36
- package/src/setup/table/TableData/TableData.js +56 -56
- package/src/setup/table/TableData/Tablehover.module.css +6 -6
- package/src/setup/table/TableHead/SetupTableHead.module.css +8 -8
- package/src/setup/table/TableHead/TableHead.js +53 -53
- package/src/setup/table/TableRow/SetupTableRow.module.css +10 -10
- package/src/setup/table/TableRow/TableRow.js +60 -60
- package/src/setup/table/Text/TableText.module.css +37 -37
- package/src/setup/table/Text/Text.js +82 -82
- package/src/setup/table/Text/docs/Text__default.docs.js +38 -38
- package/src/svg/PlusIcon.js +43 -43
- package/src/svg/SnippetIcon.js +50 -50
- package/src/svg/TemplateIcon.js +34 -34
- package/src/svg/docs/SVG__default.docs.js +46 -46
- package/src/utils/ChannelIconMapping.js +130 -130
- package/src/utils/Common.js +20 -20
- package/src/utils/General.js +58 -58
- package/src/utils/KeyboardApi.js +280 -280
- package/src/utils/editorUtils.js +189 -189
- package/src/version2/AlertClose/AlertClose.js +45 -45
- package/src/version2/AlertClose/AlertClose.module.css +42 -42
- package/src/version2/AlertClose/docs/AlertClose__default.docs.js +46 -46
- package/src/version2/GlobalNotification/GlobalNotification.js +114 -112
- package/src/version2/GlobalNotification/GlobalNotification.module.css +89 -89
- package/src/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +94 -94
- package/src/version2/alertIcons/AlarmAlertIcon.js +32 -32
- package/src/version2/alertIcons/AlertIcons.js +60 -60
- package/src/version2/alertIcons/AlertIcons.module.css +67 -67
- package/src/version2/alertIcons/DangerAlertIcon.js +33 -33
- package/src/version2/alertIcons/ErrorAlertIcon.js +34 -34
- package/src/version2/alertIcons/InfoAlertIcon.js +35 -35
- package/src/version2/alertIcons/NotificationAlertIcon.js +31 -31
- package/src/version2/alertIcons/SuccessAlertIcon.js +30 -30
- package/src/version2/alertIcons/WarningAlertIcon.js +31 -31
- package/src/version2/alertIcons/docs/AlertIcons__default.docs.js +123 -123
- package/src/version2/errorstate/Inconvenience/Inconvenience.js +98 -98
- package/src/version2/errorstate/Inconvenience/V2_Inconvenience.module.css +46 -0
- package/src/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +19 -19
- package/src/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +98 -99
- package/src/version2/errorstate/OopsSomethingMiss/V2_OopsSomethingMiss.module.css +46 -0
- package/src/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +21 -21
- package/src/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +98 -98
- package/src/version2/errorstate/UnableToProcessRequest/V2_UnableToProcessRequest.module.css +46 -0
- package/src/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +31 -31
- package/src/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +101 -102
- package/src/version2/errorstate/UnauthorizedLogin/V2_UnauthorizedLogin.module.css +46 -0
- package/src/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +19 -19
- package/src/version2/errorstate/UrlNotFound/UrlNotFound.js +98 -98
- package/src/version2/errorstate/UrlNotFound/V2_UrlNotFound.module.css +46 -0
- package/src/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +21 -21
- package/src/version2/errorstate/WillBeRightBack/V2_WillBeRightBack.module.css +46 -0
- package/src/version2/errorstate/WillBeRightBack/WillBeRightBack.js +98 -98
- package/src/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +19 -19
- package/src/version2/lookup/AlertHeader/AlertHeader.js +100 -100
- package/src/version2/lookup/AlertHeader/AlertHeaderNew.module.css +63 -63
- package/src/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +66 -66
- package/src/version2/lookup/AlertLookup/AlertLookup.js +287 -287
- package/src/version2/lookup/AlertLookup/AlertLookupNew.module.css +39 -39
- package/src/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +150 -150
- package/src/version2/lookup/alertLookupCommonNew.module.css +25 -25
- package/src/version2/notification/DesktopNotification/DesktopNotification.js +251 -251
- package/src/version2/notification/DesktopNotification/DesktopNotification.module.css +92 -92
- package/src/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +86 -86
- package/src/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +92 -92
- package/src/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +99 -99
- package/src/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +51 -51
- package/es/Appearance/pureDark/mode/dotPureDarkMode.module.css +0 -536
- package/es/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +0 -8
- package/es/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +0 -8
- package/es/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +0 -8
- package/es/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +0 -8
- package/es/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +0 -8
- package/es/list/Icons/ReadUnreadIcon.js +0 -40
- package/lib/Appearance/pureDark/mode/dotPureDarkMode.module.css +0 -536
- package/lib/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +0 -8
- package/lib/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +0 -8
- package/lib/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +0 -8
- package/lib/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +0 -8
- package/lib/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +0 -8
- package/lib/list/Icons/ReadUnreadIcon.js +0 -90
- package/src/Appearance/pureDark/mode/dotPureDarkMode.module.css +0 -536
- package/src/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +0 -8
- package/src/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +0 -8
- package/src/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +0 -8
- package/src/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +0 -8
- package/src/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +0 -8
- package/src/list/Icons/ReadUnreadIcon.js +0 -41
|
@@ -1,436 +1,430 @@
|
|
|
1
|
-
/***** Libraries *****/
|
|
2
|
-
import React, { Component } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import selectn from 'selectn';
|
|
5
|
-
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
|
-
/***** Methods *****/
|
|
7
|
-
import {
|
|
8
|
-
bind,
|
|
9
|
-
editorContentValidate,
|
|
10
|
-
fixEncoding,
|
|
11
|
-
isFileNameSizeInvalid,
|
|
12
|
-
isImageFormat,
|
|
13
|
-
triggerKeyup,
|
|
14
|
-
getRichEditorContent,
|
|
15
|
-
changeContent,
|
|
16
|
-
validateEditorContentOnInsertHtml,
|
|
17
|
-
loadResource
|
|
18
|
-
} from '../../../utils/editorUtils';
|
|
19
|
-
//import './ZohoDeskEditor_Init';
|
|
20
|
-
/***** components *****/
|
|
21
|
-
import styles from './TextEditor.module.css';
|
|
22
|
-
/* eslint-disable camelcase */
|
|
23
|
-
/* eslint-disable no-undef */
|
|
24
|
-
/* eslint-disable react/no-deprecated */
|
|
25
|
-
|
|
26
|
-
export default class TextEditor extends Component {
|
|
27
|
-
constructor(props) {
|
|
28
|
-
super(props);
|
|
29
|
-
this.state = {
|
|
30
|
-
isEditorLoad: false,
|
|
31
|
-
isResourceLoaded: false
|
|
32
|
-
};
|
|
33
|
-
let methods = [
|
|
34
|
-
'editorCallback',
|
|
35
|
-
'handleUpload',
|
|
36
|
-
'handleChange',
|
|
37
|
-
'focusCallback',
|
|
38
|
-
'handleInlineUpload',
|
|
39
|
-
'handleDropUpload',
|
|
40
|
-
'blurCallback',
|
|
41
|
-
'handleGetContent',
|
|
42
|
-
'initializeEditor',
|
|
43
|
-
'clearEditorData',
|
|
44
|
-
'plainTextSwitchCallback',
|
|
45
|
-
'onWindowClick',
|
|
46
|
-
'toggleEditor'
|
|
47
|
-
];
|
|
48
|
-
bind.apply(this, methods);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
componentDidMount() {
|
|
52
|
-
this.mount = true;
|
|
53
|
-
if (typeof global.ZohoDeskEditor === 'undefined') {
|
|
54
|
-
loadResource(this.props.EDITORURL, 'js', 'ZohoDeskEditor').then(() => {
|
|
55
|
-
this.setState({ isResourceLoaded: true });
|
|
56
|
-
});
|
|
57
|
-
} else {
|
|
58
|
-
this.setState({ isResourceLoaded: true });
|
|
59
|
-
}
|
|
60
|
-
window.addEventListener('click', this.onWindowClick);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
initializeEditor(id, mode) {
|
|
64
|
-
let {
|
|
65
|
-
value,
|
|
66
|
-
editorMode = '',
|
|
67
|
-
editorOptions = {},
|
|
68
|
-
needEditorFocus = true,
|
|
69
|
-
handleDropUpload,
|
|
70
|
-
fontFamily,
|
|
71
|
-
initCallback,
|
|
72
|
-
handleAlertMessage,
|
|
73
|
-
needInlineAttachment
|
|
74
|
-
} = this.props;
|
|
75
|
-
if (id && global.ZohoDeskEditor) {
|
|
76
|
-
let defaultObj = {
|
|
77
|
-
id,
|
|
78
|
-
content: fixEncoding(value),
|
|
79
|
-
callback: this.editorCallback,
|
|
80
|
-
imageuploadcallback: this.handleInlineUpload,
|
|
81
|
-
handleInlineDropImage: handleDropUpload
|
|
82
|
-
? this.handleDropUpload
|
|
83
|
-
: undefined,
|
|
84
|
-
contentChanged: this.handleChange,
|
|
85
|
-
focusCallback: this.focusCallback,
|
|
86
|
-
lineHeight: 'Normal',
|
|
87
|
-
backgroundColor: 'transparent',
|
|
88
|
-
defaultfontsize: '14px',
|
|
89
|
-
allowTagsInsertHTML: ['iframe'],
|
|
90
|
-
allowAttrsInsertHTML: ['frameborder', 'allowfullscreen'],
|
|
91
|
-
needEditorFocus,
|
|
92
|
-
blurCallback: this.blurCallback,
|
|
93
|
-
mode,
|
|
94
|
-
handleAlertMessage: handleAlertMessage,
|
|
95
|
-
plainTextSwitchCallback: this.plainTextSwitchCallback,
|
|
96
|
-
imgAspect: true,
|
|
97
|
-
handleInlineDropImage: needInlineAttachment
|
|
98
|
-
? this.handleInlineUpload
|
|
99
|
-
: null,
|
|
100
|
-
needInlineAttachHandling: needInlineAttachment,
|
|
101
|
-
hookOnInsertHTML: validateEditorContentOnInsertHtml,
|
|
102
|
-
needCustomPaste: function (event, editorObj) {
|
|
103
|
-
return true; // By default reply editor needs customPaste, so returning true.
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
if (!ZohoDeskEditor_Init.init) {
|
|
107
|
-
global.editorInitialize && global.editorInitialize();
|
|
108
|
-
}
|
|
109
|
-
defaultObj = Object.assign(defaultObj, editorOptions);
|
|
110
|
-
ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback);
|
|
111
|
-
ZohoDeskEditor.create && ZohoDeskEditor.create(defaultObj);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
plainTextSwitchCallback() {
|
|
116
|
-
let { plainTextSwitchCallback, id } = this.props;
|
|
117
|
-
let content = this.handleGetContent();
|
|
118
|
-
plainTextSwitchCallback && plainTextSwitchCallback(content, id);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
clearEditorData(id) {
|
|
122
|
-
let { getRef } = this.props;
|
|
123
|
-
if (global.editor && global.editor[id]) {
|
|
124
|
-
delete global.editor[id];
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
getRef && getRef(null);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
componentWillReceiveProps(np) {
|
|
131
|
-
let { changeEditorContent } = this.props;
|
|
132
|
-
let id = np.id;
|
|
133
|
-
let editorObj = global.editor
|
|
134
|
-
? global.editor[id]
|
|
135
|
-
? global.editor[id]
|
|
136
|
-
: {}
|
|
137
|
-
: {};
|
|
138
|
-
if (np.isEmptyContent && editorObj) {
|
|
139
|
-
editorObj.setContent('');
|
|
140
|
-
}
|
|
141
|
-
if (
|
|
142
|
-
typeof changeEditorContent !== 'undefined' &&
|
|
143
|
-
np.changeEditorContent != changeEditorContent &&
|
|
144
|
-
np.changeEditorContent
|
|
145
|
-
) {
|
|
146
|
-
changeContent(id, np.value);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
componentDidUpdate(prevProps, prevState) {
|
|
151
|
-
let { id, value, shouldUpdateContent, mode } = this.props;
|
|
152
|
-
let { isResourceLoaded } = this.state;
|
|
153
|
-
if (prevProps.id !== id) {
|
|
154
|
-
global.editor[id] = global.editor[prevProps.id];
|
|
155
|
-
delete global.editor[prevProps.id];
|
|
156
|
-
shouldUpdateContent && changeContent(id, value);
|
|
157
|
-
}
|
|
158
|
-
if (prevState.isResourceLoaded !== isResourceLoaded && isResourceLoaded) {
|
|
159
|
-
this.initializeEditor(id, mode);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
componentWillUnmount() {
|
|
164
|
-
this.mount = false;
|
|
165
|
-
this.clearEditorData(this.props.id);
|
|
166
|
-
window.removeEventListener('click', this.onWindowClick);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
focusCallback() {
|
|
170
|
-
let { onFocus } = this.props;
|
|
171
|
-
onFocus && onFocus();
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
handleGetContent() {
|
|
175
|
-
let { id } = this.props;
|
|
176
|
-
let editorObj = editor[id] ? editor[id] : {};
|
|
177
|
-
|
|
178
|
-
let content = getRichEditorContent(id);
|
|
179
|
-
|
|
180
|
-
if (!editorContentValidate(editorObj)) {
|
|
181
|
-
content = '';
|
|
182
|
-
}
|
|
183
|
-
content = content.trim();
|
|
184
|
-
|
|
185
|
-
return content;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
handleChange() {
|
|
189
|
-
let { onChange, id } = this.props;
|
|
190
|
-
let content = this.handleGetContent();
|
|
191
|
-
onChange && onChange(content, id);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
editorCallback(editorObj) {
|
|
195
|
-
let { editorCallback, getRef, isCustomScroll } = this.props;
|
|
196
|
-
this.setState({ isEditorLoad: true });
|
|
197
|
-
let { id } = this.props;
|
|
198
|
-
global.editor = global.editor || {};
|
|
199
|
-
if (!editor[id]) {
|
|
200
|
-
editor[id] = editorObj;
|
|
201
|
-
}
|
|
202
|
-
const css = 'blockquote {margin:0 0 0 4px; }',
|
|
203
|
-
head =
|
|
204
|
-
editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|
|
205
|
-
style = document.createElement('style');
|
|
206
|
-
style.type = 'text/css';
|
|
207
|
-
if (style.styleSheet) {
|
|
208
|
-
style.styleSheet.cssText = css;
|
|
209
|
-
} else {
|
|
210
|
-
style.appendChild(editorObj.doc.createTextNode(css));
|
|
211
|
-
}
|
|
212
|
-
head.appendChild(style);
|
|
213
|
-
|
|
214
|
-
editorCallback && editorCallback(editorObj);
|
|
215
|
-
|
|
216
|
-
const iframe = selectn('iframe.contentDocument.body', editorObj) || null;
|
|
217
|
-
const iframeHead =
|
|
218
|
-
selectn('iframe.contentDocument.head', editorObj) || null;
|
|
219
|
-
getRef && getRef(iframe);
|
|
220
|
-
if (iframe) {
|
|
221
|
-
iframe.addEventListener('click', () => editorObj.iframe.click());
|
|
222
|
-
if (isCustomScroll) {
|
|
223
|
-
let link = document.createElement('style');
|
|
224
|
-
link.innerText =
|
|
225
|
-
".scroll{--zd-scroll-width:12px;--zd-scroll-height:12px;--zd-scroll-bg:rgba(255,255,255,0.1);--zd-scroll-corner-bg:transparent;--zd-scroll-thump:rgba(44,51,77,0.2);--zd-scroll-thump-hoverbg:rgba(44,51,77,0.3);--zd-scroll-border:rgba(44,51,77,0.1)}.scroll[data-scroll-palette='dark'],.scroll [data-scroll-palette='dark']{--zd-scroll-thump:rgba(255,255,255,0.2);--zd-scroll-thump-hoverbg:rgba(255,255,255,0.4);--zd-scroll-border:rgba(255,255,255,0.07)}.scroll,.scroll *{scrollbar-color:var(--zd-scroll-thump) var(--zd-scroll-bg);scrollbar-width:thin;-ms-scrollbar-highlight-color:var(--zd-scroll-bg);-ms-scrollbar-face-color:var(--zd-scroll-thump)}.scroll::-webkit-scrollbar,.scroll ::-webkit-scrollbar{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-scrollbar:hover,.scroll ::-webkit-scrollbar:hover{background:var(--zd-scroll-bg)}.scroll::-webkit-scrollbar:horizontal,.scroll ::-webkit-scrollbar:horizontal{height:var(--zd-scroll-height)}.scroll::-webkit-scrollbar:vertical,.scroll ::-webkit-scrollbar:vertical{width:var(--zd-scroll-width)}.scroll::-webkit-scrollbar-button,.scroll ::-webkit-scrollbar-button{display:none;width:0;height:0}.scroll::-webkit-scrollbar-track:vertical,.scroll ::-webkit-scrollbar-track:vertical{border-left:1px solid transparent;border-right:1px solid transparent}.scroll::-webkit-scrollbar-track:vertical:hover,.scroll ::-webkit-scrollbar-track:vertical:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track:horizontal,.scroll ::-webkit-scrollbar-track:horizontal{border-top:1px solid transparent;border-bottom:1px solid transparent}.scroll::-webkit-scrollbar-track:horizontal:hover,.scroll ::-webkit-scrollbar-track:horizontal:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track-piece,.scroll ::-webkit-scrollbar-track-piece{background:inherit}.scroll::-webkit-scrollbar-thumb,.scroll ::-webkit-scrollbar-thumb{border-radius:10px;background:var(--zd-scroll-thump);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-thumb:hover,.scroll ::-webkit-scrollbar-thumb:hover{background:var(--zd-scroll-thump-hoverbg);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-corner,.scroll ::-webkit-scrollbar-corner{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-resizer,.scroll::-webkit-resizer{background:inherit}";
|
|
226
|
-
iframeHead.appendChild(link);
|
|
227
|
-
iframe.classList.add('scroll');
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
handleInlineUpload(file, successCallback, failureCallback, mode, editorObj) {
|
|
233
|
-
let { id, setInlineAttachmentInProgress: progress, i18nKeys } = this.props;
|
|
234
|
-
if (!isFileNameSizeInvalid(file.name)) {
|
|
235
|
-
if (file.size != 0) {
|
|
236
|
-
if (file.size <= 3 * 1024 * 1024) {
|
|
237
|
-
if (isImageFormat(file.name)) {
|
|
238
|
-
progress && progress(true);
|
|
239
|
-
this.handleUpload(file).then(
|
|
240
|
-
res => {
|
|
241
|
-
successCallback(res);
|
|
242
|
-
progress && progress(false);
|
|
243
|
-
if (id && editorObj) {
|
|
244
|
-
triggerKeyup(editorObj.doc);
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
() => {
|
|
248
|
-
failureCallback(i18nKeys.fileUploadError);
|
|
249
|
-
}
|
|
250
|
-
);
|
|
251
|
-
} else {
|
|
252
|
-
failureCallback(i18nKeys.fileNotSupported);
|
|
253
|
-
}
|
|
254
|
-
} else {
|
|
255
|
-
failureCallback(i18nKeys.fileSizeLimitExceed);
|
|
256
|
-
}
|
|
257
|
-
} else {
|
|
258
|
-
failureCallback(i18nKeys.fileEmptyError);
|
|
259
|
-
}
|
|
260
|
-
} else {
|
|
261
|
-
failureCallback(i18nKeys.fileNameLimitExceed);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
handleDropUpload(file, successCallback, failureCallback) {
|
|
266
|
-
let e = { target: { files: [file] } };
|
|
267
|
-
let { handleDropUpload } = this.props;
|
|
268
|
-
handleDropUpload(e).then(
|
|
269
|
-
res => {
|
|
270
|
-
successCallback(res);
|
|
271
|
-
},
|
|
272
|
-
() => {
|
|
273
|
-
failureCallback();
|
|
274
|
-
}
|
|
275
|
-
);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
blurCallback() {
|
|
279
|
-
let { blurCallback } = this.props;
|
|
280
|
-
let content = this.handleGetContent();
|
|
281
|
-
blurCallback && blurCallback(content);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
handleUpload(file) {
|
|
285
|
-
let { onUpload, editorMode, getCSRFCookieName, getCSRFCookie } = this.props;
|
|
286
|
-
try {
|
|
287
|
-
let formData = new FormData();
|
|
288
|
-
formData.append('img_file', file, file.name);
|
|
289
|
-
if
|
|
290
|
-
formData.append(getCSRFCookieName(), getCSRFCookie());
|
|
291
|
-
}
|
|
292
|
-
return onUpload(formData, file).then(
|
|
293
|
-
res => {
|
|
294
|
-
if (editorMode === 'TicketReply') {
|
|
295
|
-
return `${res.data}&from=r`;
|
|
296
|
-
}
|
|
297
|
-
return res.data;
|
|
298
|
-
},
|
|
299
|
-
err => {
|
|
300
|
-
throw err;
|
|
301
|
-
}
|
|
302
|
-
);
|
|
303
|
-
} catch (err) {
|
|
304
|
-
return Promise.reject();
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
onWindowClick(e) {
|
|
308
|
-
let { isEditorDefaultOpen } = this.props;
|
|
309
|
-
let element = e.target;
|
|
310
|
-
if (
|
|
311
|
-
!element.closest('[data-isEditor]') &&
|
|
312
|
-
!element.closest("[id='KB_Editor_UploadImage_Popup']") &&
|
|
313
|
-
!element.closest("[id='KB_Editor_Overlay']") &&
|
|
314
|
-
!element.closest('.zdeskEditor_popup') &&
|
|
315
|
-
element &&
|
|
316
|
-
typeof element.className === 'string' &&
|
|
317
|
-
!element.className.startsWith('KB') &&
|
|
318
|
-
!element.hasAttribute('data-insertoptions') &&
|
|
319
|
-
!element.closest('.KB_Editor_common_DropDown')
|
|
320
|
-
) {
|
|
321
|
-
let { value = '', id } = this.props;
|
|
322
|
-
let cont = value;
|
|
323
|
-
if (typeof editor !== 'undefined') {
|
|
324
|
-
cont = editor['addFormEditor'] && editor['addFormEditor'].getContent();
|
|
325
|
-
}
|
|
326
|
-
if (!isEditorDefaultOpen) {
|
|
327
|
-
if ((cont == '' || cont == '<div><br></div>') && this.mount) {
|
|
328
|
-
this.toggleEditor(false);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
toggleEditor(value) {
|
|
335
|
-
let { toggleEdit } = this.props;
|
|
336
|
-
toggleEdit && toggleEdit(value);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
render() {
|
|
340
|
-
let {
|
|
341
|
-
id,
|
|
342
|
-
dataId,
|
|
343
|
-
type,
|
|
344
|
-
border,
|
|
345
|
-
ImgLazyLoad,
|
|
346
|
-
loadingComponent,
|
|
347
|
-
isNightMode
|
|
348
|
-
|
|
349
|
-
} = this.
|
|
350
|
-
let
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
'
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
if (__DOCS__) {
|
|
432
|
-
TextEditor.docs = {
|
|
433
|
-
componentGroup: 'Fields',
|
|
434
|
-
folderName: 'TextEditor'
|
|
435
|
-
};
|
|
436
|
-
}
|
|
1
|
+
/***** Libraries *****/
|
|
2
|
+
import React, { Component } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import selectn from 'selectn';
|
|
5
|
+
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
|
+
/***** Methods *****/
|
|
7
|
+
import {
|
|
8
|
+
bind,
|
|
9
|
+
editorContentValidate,
|
|
10
|
+
fixEncoding,
|
|
11
|
+
isFileNameSizeInvalid,
|
|
12
|
+
isImageFormat,
|
|
13
|
+
triggerKeyup,
|
|
14
|
+
getRichEditorContent,
|
|
15
|
+
changeContent,
|
|
16
|
+
validateEditorContentOnInsertHtml,
|
|
17
|
+
loadResource
|
|
18
|
+
} from '../../../utils/editorUtils';
|
|
19
|
+
//import './ZohoDeskEditor_Init';
|
|
20
|
+
/***** components *****/
|
|
21
|
+
import styles from './TextEditor.module.css';
|
|
22
|
+
/* eslint-disable camelcase */
|
|
23
|
+
/* eslint-disable no-undef */
|
|
24
|
+
/* eslint-disable react/no-deprecated */
|
|
25
|
+
|
|
26
|
+
export default class TextEditor extends Component {
|
|
27
|
+
constructor(props) {
|
|
28
|
+
super(props);
|
|
29
|
+
this.state = {
|
|
30
|
+
isEditorLoad: false,
|
|
31
|
+
isResourceLoaded: false
|
|
32
|
+
};
|
|
33
|
+
let methods = [
|
|
34
|
+
'editorCallback',
|
|
35
|
+
'handleUpload',
|
|
36
|
+
'handleChange',
|
|
37
|
+
'focusCallback',
|
|
38
|
+
'handleInlineUpload',
|
|
39
|
+
'handleDropUpload',
|
|
40
|
+
'blurCallback',
|
|
41
|
+
'handleGetContent',
|
|
42
|
+
'initializeEditor',
|
|
43
|
+
'clearEditorData',
|
|
44
|
+
'plainTextSwitchCallback',
|
|
45
|
+
'onWindowClick',
|
|
46
|
+
'toggleEditor'
|
|
47
|
+
];
|
|
48
|
+
bind.apply(this, methods);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
componentDidMount() {
|
|
52
|
+
this.mount = true;
|
|
53
|
+
if (typeof global.ZohoDeskEditor === 'undefined') {
|
|
54
|
+
loadResource(this.props.EDITORURL, 'js', 'ZohoDeskEditor').then(() => {
|
|
55
|
+
this.setState({ isResourceLoaded: true });
|
|
56
|
+
});
|
|
57
|
+
} else {
|
|
58
|
+
this.setState({ isResourceLoaded: true });
|
|
59
|
+
}
|
|
60
|
+
window.addEventListener('click', this.onWindowClick);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
initializeEditor(id, mode) {
|
|
64
|
+
let {
|
|
65
|
+
value,
|
|
66
|
+
editorMode = '',
|
|
67
|
+
editorOptions = {},
|
|
68
|
+
needEditorFocus = true,
|
|
69
|
+
handleDropUpload,
|
|
70
|
+
fontFamily,
|
|
71
|
+
initCallback,
|
|
72
|
+
handleAlertMessage,
|
|
73
|
+
needInlineAttachment
|
|
74
|
+
} = this.props;
|
|
75
|
+
if (id && global.ZohoDeskEditor) {
|
|
76
|
+
let defaultObj = {
|
|
77
|
+
id,
|
|
78
|
+
content: fixEncoding(value),
|
|
79
|
+
callback: this.editorCallback,
|
|
80
|
+
imageuploadcallback: this.handleInlineUpload,
|
|
81
|
+
handleInlineDropImage: handleDropUpload
|
|
82
|
+
? this.handleDropUpload
|
|
83
|
+
: undefined,
|
|
84
|
+
contentChanged: this.handleChange,
|
|
85
|
+
focusCallback: this.focusCallback,
|
|
86
|
+
lineHeight: 'Normal',
|
|
87
|
+
backgroundColor: 'transparent',
|
|
88
|
+
defaultfontsize: '14px',
|
|
89
|
+
allowTagsInsertHTML: ['iframe'],
|
|
90
|
+
allowAttrsInsertHTML: ['frameborder', 'allowfullscreen'],
|
|
91
|
+
needEditorFocus,
|
|
92
|
+
blurCallback: this.blurCallback,
|
|
93
|
+
mode,
|
|
94
|
+
handleAlertMessage: handleAlertMessage,
|
|
95
|
+
plainTextSwitchCallback: this.plainTextSwitchCallback,
|
|
96
|
+
imgAspect: true,
|
|
97
|
+
handleInlineDropImage: needInlineAttachment
|
|
98
|
+
? this.handleInlineUpload
|
|
99
|
+
: null,
|
|
100
|
+
needInlineAttachHandling: needInlineAttachment,
|
|
101
|
+
hookOnInsertHTML: validateEditorContentOnInsertHtml,
|
|
102
|
+
needCustomPaste: function (event, editorObj) {
|
|
103
|
+
return true; // By default reply editor needs customPaste, so returning true.
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
if (!ZohoDeskEditor_Init.init) {
|
|
107
|
+
global.editorInitialize && global.editorInitialize();
|
|
108
|
+
}
|
|
109
|
+
defaultObj = Object.assign(defaultObj, editorOptions);
|
|
110
|
+
ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback);
|
|
111
|
+
ZohoDeskEditor.create && ZohoDeskEditor.create(defaultObj);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
plainTextSwitchCallback() {
|
|
116
|
+
let { plainTextSwitchCallback, id } = this.props;
|
|
117
|
+
let content = this.handleGetContent();
|
|
118
|
+
plainTextSwitchCallback && plainTextSwitchCallback(content, id);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
clearEditorData(id) {
|
|
122
|
+
let { getRef } = this.props;
|
|
123
|
+
if (global.editor && global.editor[id]) {
|
|
124
|
+
delete global.editor[id];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
getRef && getRef(null);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
componentWillReceiveProps(np) {
|
|
131
|
+
let { changeEditorContent } = this.props;
|
|
132
|
+
let id = np.id;
|
|
133
|
+
let editorObj = global.editor
|
|
134
|
+
? global.editor[id]
|
|
135
|
+
? global.editor[id]
|
|
136
|
+
: {}
|
|
137
|
+
: {};
|
|
138
|
+
if (np.isEmptyContent && editorObj) {
|
|
139
|
+
editorObj.setContent('');
|
|
140
|
+
}
|
|
141
|
+
if (
|
|
142
|
+
typeof changeEditorContent !== 'undefined' &&
|
|
143
|
+
np.changeEditorContent != changeEditorContent &&
|
|
144
|
+
np.changeEditorContent
|
|
145
|
+
) {
|
|
146
|
+
changeContent(id, np.value);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
componentDidUpdate(prevProps, prevState) {
|
|
151
|
+
let { id, value, shouldUpdateContent, mode } = this.props;
|
|
152
|
+
let { isResourceLoaded } = this.state;
|
|
153
|
+
if (prevProps.id !== id) {
|
|
154
|
+
global.editor[id] = global.editor[prevProps.id];
|
|
155
|
+
delete global.editor[prevProps.id];
|
|
156
|
+
shouldUpdateContent && changeContent(id, value);
|
|
157
|
+
}
|
|
158
|
+
if (prevState.isResourceLoaded !== isResourceLoaded && isResourceLoaded) {
|
|
159
|
+
this.initializeEditor(id, mode);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
componentWillUnmount() {
|
|
164
|
+
this.mount = false;
|
|
165
|
+
this.clearEditorData(this.props.id);
|
|
166
|
+
window.removeEventListener('click', this.onWindowClick);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
focusCallback() {
|
|
170
|
+
let { onFocus } = this.props;
|
|
171
|
+
onFocus && onFocus();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
handleGetContent() {
|
|
175
|
+
let { id } = this.props;
|
|
176
|
+
let editorObj = editor[id] ? editor[id] : {};
|
|
177
|
+
|
|
178
|
+
let content = getRichEditorContent(id);
|
|
179
|
+
|
|
180
|
+
if (!editorContentValidate(editorObj)) {
|
|
181
|
+
content = '';
|
|
182
|
+
}
|
|
183
|
+
content = content.trim();
|
|
184
|
+
|
|
185
|
+
return content;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
handleChange() {
|
|
189
|
+
let { onChange, id } = this.props;
|
|
190
|
+
let content = this.handleGetContent();
|
|
191
|
+
onChange && onChange(content, id);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
editorCallback(editorObj) {
|
|
195
|
+
let { editorCallback, getRef, isCustomScroll } = this.props;
|
|
196
|
+
this.setState({ isEditorLoad: true });
|
|
197
|
+
let { id } = this.props;
|
|
198
|
+
global.editor = global.editor || {};
|
|
199
|
+
if (!editor[id]) {
|
|
200
|
+
editor[id] = editorObj;
|
|
201
|
+
}
|
|
202
|
+
const css = 'blockquote {margin:0 0 0 4px; }',
|
|
203
|
+
head =
|
|
204
|
+
editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|
|
205
|
+
style = document.createElement('style');
|
|
206
|
+
style.type = 'text/css';
|
|
207
|
+
if (style.styleSheet) {
|
|
208
|
+
style.styleSheet.cssText = css;
|
|
209
|
+
} else {
|
|
210
|
+
style.appendChild(editorObj.doc.createTextNode(css));
|
|
211
|
+
}
|
|
212
|
+
head.appendChild(style);
|
|
213
|
+
|
|
214
|
+
editorCallback && editorCallback(editorObj);
|
|
215
|
+
|
|
216
|
+
const iframe = selectn('iframe.contentDocument.body', editorObj) || null;
|
|
217
|
+
const iframeHead =
|
|
218
|
+
selectn('iframe.contentDocument.head', editorObj) || null;
|
|
219
|
+
getRef && getRef(iframe);
|
|
220
|
+
if (iframe) {
|
|
221
|
+
iframe.addEventListener('click', () => editorObj.iframe.click());
|
|
222
|
+
if (isCustomScroll) {
|
|
223
|
+
let link = document.createElement('style');
|
|
224
|
+
link.innerText =
|
|
225
|
+
".scroll{--zd-scroll-width:12px;--zd-scroll-height:12px;--zd-scroll-bg:rgba(255,255,255,0.1);--zd-scroll-corner-bg:transparent;--zd-scroll-thump:rgba(44,51,77,0.2);--zd-scroll-thump-hoverbg:rgba(44,51,77,0.3);--zd-scroll-border:rgba(44,51,77,0.1)}.scroll[data-scroll-palette='dark'],.scroll [data-scroll-palette='dark']{--zd-scroll-thump:rgba(255,255,255,0.2);--zd-scroll-thump-hoverbg:rgba(255,255,255,0.4);--zd-scroll-border:rgba(255,255,255,0.07)}.scroll,.scroll *{scrollbar-color:var(--zd-scroll-thump) var(--zd-scroll-bg);scrollbar-width:thin;-ms-scrollbar-highlight-color:var(--zd-scroll-bg);-ms-scrollbar-face-color:var(--zd-scroll-thump)}.scroll::-webkit-scrollbar,.scroll ::-webkit-scrollbar{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-scrollbar:hover,.scroll ::-webkit-scrollbar:hover{background:var(--zd-scroll-bg)}.scroll::-webkit-scrollbar:horizontal,.scroll ::-webkit-scrollbar:horizontal{height:var(--zd-scroll-height)}.scroll::-webkit-scrollbar:vertical,.scroll ::-webkit-scrollbar:vertical{width:var(--zd-scroll-width)}.scroll::-webkit-scrollbar-button,.scroll ::-webkit-scrollbar-button{display:none;width:0;height:0}.scroll::-webkit-scrollbar-track:vertical,.scroll ::-webkit-scrollbar-track:vertical{border-left:1px solid transparent;border-right:1px solid transparent}.scroll::-webkit-scrollbar-track:vertical:hover,.scroll ::-webkit-scrollbar-track:vertical:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track:horizontal,.scroll ::-webkit-scrollbar-track:horizontal{border-top:1px solid transparent;border-bottom:1px solid transparent}.scroll::-webkit-scrollbar-track:horizontal:hover,.scroll ::-webkit-scrollbar-track:horizontal:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track-piece,.scroll ::-webkit-scrollbar-track-piece{background:inherit}.scroll::-webkit-scrollbar-thumb,.scroll ::-webkit-scrollbar-thumb{border-radius:10px;background:var(--zd-scroll-thump);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-thumb:hover,.scroll ::-webkit-scrollbar-thumb:hover{background:var(--zd-scroll-thump-hoverbg);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-corner,.scroll ::-webkit-scrollbar-corner{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-resizer,.scroll::-webkit-resizer{background:inherit}";
|
|
226
|
+
iframeHead.appendChild(link);
|
|
227
|
+
iframe.classList.add('scroll');
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
handleInlineUpload(file, successCallback, failureCallback, mode, editorObj) {
|
|
233
|
+
let { id, setInlineAttachmentInProgress: progress, i18nKeys } = this.props;
|
|
234
|
+
if (!isFileNameSizeInvalid(file.name)) {
|
|
235
|
+
if (file.size != 0) {
|
|
236
|
+
if (file.size <= 3 * 1024 * 1024) {
|
|
237
|
+
if (isImageFormat(file.name)) {
|
|
238
|
+
progress && progress(true);
|
|
239
|
+
this.handleUpload(file).then(
|
|
240
|
+
res => {
|
|
241
|
+
successCallback(res);
|
|
242
|
+
progress && progress(false);
|
|
243
|
+
if (id && editorObj) {
|
|
244
|
+
triggerKeyup(editorObj.doc);
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
() => {
|
|
248
|
+
failureCallback(i18nKeys.fileUploadError);
|
|
249
|
+
}
|
|
250
|
+
);
|
|
251
|
+
} else {
|
|
252
|
+
failureCallback(i18nKeys.fileNotSupported);
|
|
253
|
+
}
|
|
254
|
+
} else {
|
|
255
|
+
failureCallback(i18nKeys.fileSizeLimitExceed);
|
|
256
|
+
}
|
|
257
|
+
} else {
|
|
258
|
+
failureCallback(i18nKeys.fileEmptyError);
|
|
259
|
+
}
|
|
260
|
+
} else {
|
|
261
|
+
failureCallback(i18nKeys.fileNameLimitExceed);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
handleDropUpload(file, successCallback, failureCallback) {
|
|
266
|
+
let e = { target: { files: [file] } };
|
|
267
|
+
let { handleDropUpload } = this.props;
|
|
268
|
+
handleDropUpload(e).then(
|
|
269
|
+
res => {
|
|
270
|
+
successCallback(res);
|
|
271
|
+
},
|
|
272
|
+
() => {
|
|
273
|
+
failureCallback();
|
|
274
|
+
}
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
blurCallback() {
|
|
279
|
+
let { blurCallback } = this.props;
|
|
280
|
+
let content = this.handleGetContent();
|
|
281
|
+
blurCallback && blurCallback(content);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
handleUpload(file) {
|
|
285
|
+
let { onUpload, editorMode, getCSRFCookieName, getCSRFCookie } = this.props;
|
|
286
|
+
try {
|
|
287
|
+
let formData = new FormData();
|
|
288
|
+
formData.append('img_file', file, file.name);
|
|
289
|
+
if(getCSRFCookieName && getCSRFCookie){
|
|
290
|
+
formData.append(getCSRFCookieName(), getCSRFCookie());
|
|
291
|
+
}
|
|
292
|
+
return onUpload(formData, file).then(
|
|
293
|
+
res => {
|
|
294
|
+
if (editorMode === 'TicketReply') {
|
|
295
|
+
return `${res.data}&from=r`;
|
|
296
|
+
}
|
|
297
|
+
return res.data;
|
|
298
|
+
},
|
|
299
|
+
err => {
|
|
300
|
+
throw err;
|
|
301
|
+
}
|
|
302
|
+
);
|
|
303
|
+
} catch (err) {
|
|
304
|
+
return Promise.reject();
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
onWindowClick(e) {
|
|
308
|
+
let { isEditorDefaultOpen } = this.props;
|
|
309
|
+
let element = e.target;
|
|
310
|
+
if (
|
|
311
|
+
!element.closest('[data-isEditor]') &&
|
|
312
|
+
!element.closest("[id='KB_Editor_UploadImage_Popup']") &&
|
|
313
|
+
!element.closest("[id='KB_Editor_Overlay']") &&
|
|
314
|
+
!element.closest('.zdeskEditor_popup') &&
|
|
315
|
+
element &&
|
|
316
|
+
typeof element.className === 'string' &&
|
|
317
|
+
!element.className.startsWith('KB') &&
|
|
318
|
+
!element.hasAttribute('data-insertoptions') &&
|
|
319
|
+
!element.closest('.KB_Editor_common_DropDown')
|
|
320
|
+
) {
|
|
321
|
+
let { value = '', id } = this.props;
|
|
322
|
+
let cont = value;
|
|
323
|
+
if (typeof editor !== 'undefined') {
|
|
324
|
+
cont = editor['addFormEditor'] && editor['addFormEditor'].getContent();
|
|
325
|
+
}
|
|
326
|
+
if (!isEditorDefaultOpen) {
|
|
327
|
+
if ((cont == '' || cont == '<div><br></div>') && this.mount) {
|
|
328
|
+
this.toggleEditor(false);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
toggleEditor(value) {
|
|
335
|
+
let { toggleEdit } = this.props;
|
|
336
|
+
toggleEdit && toggleEdit(value);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
render() {
|
|
340
|
+
let {
|
|
341
|
+
id,
|
|
342
|
+
dataId,
|
|
343
|
+
type,
|
|
344
|
+
border,
|
|
345
|
+
ImgLazyLoad,
|
|
346
|
+
loadingComponent,
|
|
347
|
+
isNightMode
|
|
348
|
+
} = this.props;
|
|
349
|
+
let { isEditorLoad } = this.state;
|
|
350
|
+
let editorDoc =
|
|
351
|
+
ImgLazyLoad && global.editor && global.editor[id]
|
|
352
|
+
? global.editor[id].doc
|
|
353
|
+
: null;
|
|
354
|
+
|
|
355
|
+
return (
|
|
356
|
+
<Container
|
|
357
|
+
className={`${styles.textEditor} ${styles[type]} ${styles[border]}
|
|
358
|
+
${isNightMode ? styles.night : styles.light}`}
|
|
359
|
+
dataId={dataId}
|
|
360
|
+
data-isEditor
|
|
361
|
+
>
|
|
362
|
+
{loadingComponent && !isEditorLoad ? loadingComponent : null}
|
|
363
|
+
<Box flexible id={id} dataId={dataId} />
|
|
364
|
+
{editorDoc && ImgLazyLoad ? <ImgLazyLoad node={editorDoc} /> : null}
|
|
365
|
+
</Container>
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
TextEditor.defaultProps = {
|
|
371
|
+
border: 'borderTop',
|
|
372
|
+
type: 'large',
|
|
373
|
+
changeEditorContent: false,
|
|
374
|
+
fontFamily: 'Lato',
|
|
375
|
+
shouldUpdateContent: true,
|
|
376
|
+
i18nKeys: {},
|
|
377
|
+
needInlineAttachment: false,
|
|
378
|
+
isNightMode: false
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
TextEditor.propTypes = {
|
|
382
|
+
ImgLazyLoad: PropTypes.node,
|
|
383
|
+
blurCallback: PropTypes.func,
|
|
384
|
+
border: PropTypes.oneOf(['borderTop', 'borderAll', 'borderNone']),
|
|
385
|
+
changeEditorContent: PropTypes.bool,
|
|
386
|
+
dataId: PropTypes.string,
|
|
387
|
+
editorCallback: PropTypes.func,
|
|
388
|
+
editorMode: PropTypes.string,
|
|
389
|
+
editorOptions: PropTypes.object,
|
|
390
|
+
fontFamily: PropTypes.oneOf(['Lato', 'Proxima']),
|
|
391
|
+
getRef: PropTypes.func,
|
|
392
|
+
handleAlertMessage: PropTypes.func,
|
|
393
|
+
handleDropUpload: PropTypes.func,
|
|
394
|
+
i18nKeys: PropTypes.shape({
|
|
395
|
+
fileUploadError: PropTypes.string,
|
|
396
|
+
fileNotSupported: PropTypes.string,
|
|
397
|
+
fileEmptyError: PropTypes.string,
|
|
398
|
+
fileNameLimitExceed: PropTypes.string,
|
|
399
|
+
fileSizeLimitExceed: PropTypes.string
|
|
400
|
+
}),
|
|
401
|
+
id: PropTypes.string,
|
|
402
|
+
initCallback: PropTypes.func.isRequired,
|
|
403
|
+
isCustomScroll: PropTypes.bool,
|
|
404
|
+
loadingComponent: PropTypes.node,
|
|
405
|
+
mode: PropTypes.string,
|
|
406
|
+
needEditorFocus: PropTypes.bool,
|
|
407
|
+
onChange: PropTypes.func,
|
|
408
|
+
onFocus: PropTypes.func,
|
|
409
|
+
onUpload: PropTypes.func,
|
|
410
|
+
plainTextSwitchCallback: PropTypes.func,
|
|
411
|
+
setInlineAttachmentInProgress: PropTypes.func,
|
|
412
|
+
shouldUpdateContent: PropTypes.bool,
|
|
413
|
+
type: PropTypes.oneOf([
|
|
414
|
+
'large',
|
|
415
|
+
'xlarge',
|
|
416
|
+
'medium',
|
|
417
|
+
'small',
|
|
418
|
+
'mini',
|
|
419
|
+
'default'
|
|
420
|
+
]),
|
|
421
|
+
value: PropTypes.string,
|
|
422
|
+
needInlineAttachment: PropTypes.bool,
|
|
423
|
+
isNightMode: PropTypes.bool
|
|
424
|
+
};
|
|
425
|
+
if (__DOCS__) {
|
|
426
|
+
TextEditor.docs = {
|
|
427
|
+
componentGroup: 'Fields',
|
|
428
|
+
folderName: 'TextEditor'
|
|
429
|
+
};
|
|
430
|
+
}
|