@zohodesk/dot 1.9.12 → 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.
Files changed (58) hide show
  1. package/README.md +14 -0
  2. package/es/ActionButton/__tests__/ActionButton.spec.js +4 -5
  3. package/es/AttachmentViewer/AttachmentImage.js +3 -1
  4. package/es/AttachmentViewer/AttachmentViewer.js +340 -273
  5. package/es/AttachmentViewer/AttachmentViewer.module.css +8 -15
  6. package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +104 -100
  7. package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  8. package/es/AttachmentViewer/props/defaultProps.js +4 -2
  9. package/es/AttachmentViewer/props/propTypes.js +9 -2
  10. package/es/AttachmentViewer/utils.js +6 -7
  11. package/es/AudioPlayer/utils/utils.js +2 -5
  12. package/es/DotProvider/hooks/useDotProvider.js +14 -15
  13. package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +12 -13
  14. package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +3 -4
  15. package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +4 -5
  16. package/es/DotProvider/utils/errorValidation.js +5 -6
  17. package/es/DotProvider/utils/getAssetsImportPromises.js +4 -5
  18. package/es/Drawer/Drawer.js +6 -8
  19. package/es/FreezeLayer/css/cssJSLogic.js +4 -5
  20. package/es/Hooks/Dragger/useDragger.js +5 -6
  21. package/es/Hooks/Dragger/utils/DraggerUtil.js +7 -8
  22. package/es/Hooks/useFreezeLayer.js +4 -5
  23. package/es/Link/Link.js +4 -3
  24. package/es/Link/props/propTypes.js +1 -0
  25. package/es/Onboarding/CarouselDots/CarouselDots.js +29 -32
  26. package/es/Onboarding/Onboarding.js +23 -24
  27. package/es/Onboarding/hooks/useOnboarding.js +4 -5
  28. package/es/Onboarding/hooks/useOnboardingSlider.js +5 -6
  29. package/es/deprecated/SelectDropdown/SelectDropdown.js +43 -47
  30. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +214 -225
  31. package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
  32. package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
  33. package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
  34. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
  35. package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
  36. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
  37. package/es/errorstate/WillBack/WillBack.js +30 -34
  38. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +81 -85
  39. package/es/list/status/StatusDropdown/StatusDropdown.js +109 -113
  40. package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +3 -4
  41. package/es/lookup/header/Search/Search.js +4 -5
  42. package/es/lookup/header/Search/__tests__/Search.spec.js +3 -4
  43. package/es/lookup/header/ViewDropDown/ViewDropDown.js +67 -75
  44. package/es/utils/General.js +2 -7
  45. package/es/utils/editorUtils.js +1 -5
  46. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -5
  47. package/es/version2/notification/DesktopNotification/DesktopNotification.js +59 -63
  48. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +40 -44
  49. package/lib/AttachmentViewer/AttachmentImage.js +3 -1
  50. package/lib/AttachmentViewer/AttachmentViewer.js +158 -82
  51. package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
  52. package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
  53. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  54. package/lib/AttachmentViewer/props/defaultProps.js +6 -2
  55. package/lib/AttachmentViewer/props/propTypes.js +9 -2
  56. package/lib/Link/Link.js +4 -3
  57. package/lib/Link/props/propTypes.js +1 -0
  58. package/package.json +4 -4
package/README.md CHANGED
@@ -2,6 +2,19 @@
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
+
5
18
  # 1.9.12
6
19
 
7
20
  - DUMMY_ARRAY import path issue fixed in DotProvider DefaultProps
@@ -28,6 +41,7 @@ In this Library, we Provide Some Basic Components to Build Your Application
28
41
 
29
42
  - PX to variable conversion was not applied due to the CBT migration. The issue has now been fixed.
30
43
 
44
+
31
45
  # 1.9.8
32
46
 
33
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', _ref => {
52
- let {
53
- iconName,
54
- iconSize
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
  });