@zohodesk/dot 1.0.0-temp-230.3 → 1.0.0-temp-232

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