@zohodesk/dot 1.9.11 → 1.9.13
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 +20 -0
- package/es/ActionButton/__tests__/ActionButton.spec.js +4 -5
- package/es/AttachmentViewer/AttachmentImage.js +3 -1
- package/es/AttachmentViewer/AttachmentViewer.js +340 -273
- package/es/AttachmentViewer/AttachmentViewer.module.css +8 -15
- package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +104 -100
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
- package/es/AttachmentViewer/props/defaultProps.js +4 -2
- package/es/AttachmentViewer/props/propTypes.js +9 -2
- package/es/AttachmentViewer/utils.js +6 -7
- package/es/AudioPlayer/utils/utils.js +2 -5
- package/es/DotProvider/hooks/useDotProvider.js +14 -15
- package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +12 -13
- package/es/DotProvider/props/defaultProps.js +1 -1
- package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +3 -4
- package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +4 -5
- package/es/DotProvider/utils/errorValidation.js +5 -6
- package/es/DotProvider/utils/getAssetsImportPromises.js +4 -5
- package/es/Drawer/Drawer.js +6 -8
- package/es/FreezeLayer/css/cssJSLogic.js +4 -5
- package/es/Hooks/Dragger/useDragger.js +5 -6
- package/es/Hooks/Dragger/utils/DraggerUtil.js +7 -8
- package/es/Hooks/useFreezeLayer.js +4 -5
- package/es/Link/Link.js +4 -3
- package/es/Link/props/propTypes.js +1 -0
- package/es/Onboarding/CarouselDots/CarouselDots.js +29 -32
- package/es/Onboarding/Onboarding.js +23 -24
- package/es/Onboarding/hooks/useOnboarding.js +4 -5
- package/es/Onboarding/hooks/useOnboardingSlider.js +5 -6
- package/es/deprecated/SelectDropdown/SelectDropdown.js +43 -47
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +214 -225
- package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
- package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
- package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
- package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
- package/es/errorstate/WillBack/WillBack.js +30 -34
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +81 -85
- package/es/list/status/StatusDropdown/StatusDropdown.js +109 -113
- package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +3 -4
- package/es/lookup/header/Search/Search.js +4 -5
- package/es/lookup/header/Search/__tests__/Search.spec.js +3 -4
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +67 -75
- package/es/utils/General.js +2 -7
- package/es/utils/editorUtils.js +1 -5
- package/es/version2/lookup/AlertHeader/AlertHeader.js +5 -3
- package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +24 -0
- package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
- package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -5
- package/es/version2/lookup/AlertHeader/props/propTypes.js +2 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +59 -63
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +40 -44
- package/lib/AttachmentViewer/AttachmentImage.js +3 -1
- package/lib/AttachmentViewer/AttachmentViewer.js +158 -82
- package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
- package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
- package/lib/AttachmentViewer/props/defaultProps.js +6 -2
- package/lib/AttachmentViewer/props/propTypes.js +9 -2
- package/lib/DotProvider/props/defaultProps.js +2 -2
- package/lib/Link/Link.js +4 -3
- package/lib/Link/props/propTypes.js +1 -0
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +5 -2
- package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +26 -0
- package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
- package/lib/version2/lookup/AlertHeader/props/propTypes.js +2 -1
- package/package.json +26 -24
package/README.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.9.13
|
|
6
|
+
|
|
7
|
+
- **AttachmentViewer**
|
|
8
|
+
- Added support for `onSelectedAttachmentChange` and `renderCustomImagePreviewElement`.
|
|
9
|
+
- Increased header bar height.
|
|
10
|
+
- Added support for `hasCount`, `renderCustomIcons`, annotation URL re-rendering, and `downloadName`.
|
|
11
|
+
|
|
12
|
+
- **Link**
|
|
13
|
+
- Added `downloadName` prop for custom file download names.
|
|
14
|
+
|
|
15
|
+
- **AttachmentImage**
|
|
16
|
+
- Added `imageRef` prop to pass a ref to the `Image` component.
|
|
17
|
+
|
|
18
|
+
# 1.9.12
|
|
19
|
+
|
|
20
|
+
- DUMMY_ARRAY import path issue fixed in DotProvider DefaultProps
|
|
21
|
+
- **version2/lookup/AlertHeader/AlertHeader**
|
|
22
|
+
- `renderAlertIcon` prop added. Accepts a React node or render function to replace the default icon rendered by `AlertIcons`.
|
|
23
|
+
|
|
5
24
|
# 1.9.11
|
|
6
25
|
|
|
7
26
|
- padding, margin based css properties migrated to padding-inline,padding-block, margin-inline, margin-block
|
|
@@ -22,6 +41,7 @@ In this Library, we Provide Some Basic Components to Build Your Application
|
|
|
22
41
|
|
|
23
42
|
- PX to variable conversion was not applied due to the CBT migration. The issue has now been fixed.
|
|
24
43
|
|
|
44
|
+
|
|
25
45
|
# 1.9.8
|
|
26
46
|
|
|
27
47
|
- **DotProvider** - Variables package handled and separated the component & variable import files
|
|
@@ -48,11 +48,10 @@ describe('ActionButton', () => {
|
|
|
48
48
|
}));
|
|
49
49
|
expect(asFragment()).toMatchSnapshot();
|
|
50
50
|
});
|
|
51
|
-
test.each(iconProps)('renders with iconName: %s and iconSize: %s',
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} = _ref;
|
|
51
|
+
test.each(iconProps)('renders with iconName: %s and iconSize: %s', ({
|
|
52
|
+
iconName,
|
|
53
|
+
iconSize
|
|
54
|
+
}) => {
|
|
56
55
|
const {
|
|
57
56
|
asFragment
|
|
58
57
|
} = render( /*#__PURE__*/React.createElement(ActionButton, {
|
|
@@ -43,7 +43,8 @@ export default class AttachmentImage extends Component {
|
|
|
43
43
|
isCover,
|
|
44
44
|
customClass,
|
|
45
45
|
onLoad,
|
|
46
|
-
onError
|
|
46
|
+
onError,
|
|
47
|
+
imageRef
|
|
47
48
|
} = this.props;
|
|
48
49
|
const {
|
|
49
50
|
isImageValid
|
|
@@ -59,6 +60,7 @@ export default class AttachmentImage extends Component {
|
|
|
59
60
|
className: customImageClass,
|
|
60
61
|
alt: alt,
|
|
61
62
|
isCover: isCover,
|
|
63
|
+
eleRef: imageRef,
|
|
62
64
|
onLoad: onLoad,
|
|
63
65
|
onError: onError
|
|
64
66
|
});
|