@bigbinary/neeto-molecules 4.1.41 → 4.1.43

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 (74) hide show
  1. package/dist/BrowserSupport.js +1 -1
  2. package/dist/DownloadMobileAppCallout.js +1 -1
  3. package/dist/ErrorPage.js +3 -3
  4. package/dist/ErrorPage.js.map +1 -1
  5. package/dist/FloatingActionMenu.js +3 -3
  6. package/dist/FloatingActionMenu.js.map +1 -1
  7. package/dist/KeyboardShortcuts.js +2 -2
  8. package/dist/ProductEmbed.js +15 -15
  9. package/dist/ProductEmbed.js.map +1 -1
  10. package/dist/ShareViaLink.js +446 -179
  11. package/dist/ShareViaLink.js.map +1 -1
  12. package/dist/Sidebar.js +1 -1
  13. package/dist/StickyRibbonsContainer.js +3 -3
  14. package/dist/StickyRibbonsContainer.js.map +1 -1
  15. package/dist/cjs/BrowserSupport.js +1 -1
  16. package/dist/cjs/DownloadMobileAppCallout.js +1 -1
  17. package/dist/cjs/ErrorPage.js +2 -2
  18. package/dist/cjs/ErrorPage.js.map +1 -1
  19. package/dist/cjs/FloatingActionMenu.js +3 -3
  20. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  21. package/dist/cjs/KeyboardShortcuts.js +2 -2
  22. package/dist/cjs/ProductEmbed.js +14 -14
  23. package/dist/cjs/ProductEmbed.js.map +1 -1
  24. package/dist/cjs/ShareViaLink.js +446 -179
  25. package/dist/cjs/ShareViaLink.js.map +1 -1
  26. package/dist/cjs/Sidebar.js +1 -1
  27. package/dist/cjs/StickyRibbonsContainer.js +2 -2
  28. package/dist/cjs/StickyRibbonsContainer.js.map +1 -1
  29. package/dist/cjs/{ua-parser-E0eEtHJZ.js → ua-parser-DgQ3nYoO.js} +327 -306
  30. package/dist/cjs/ua-parser-DgQ3nYoO.js.map +1 -0
  31. package/dist/cjs/{useKeyboardShortcutsPaneState-YnXpWOcs.js → useKeyboardShortcutsPaneState-BrgdLb9F.js} +3 -3
  32. package/dist/cjs/{useKeyboardShortcutsPaneState-YnXpWOcs.js.map → useKeyboardShortcutsPaneState-BrgdLb9F.js.map} +1 -1
  33. package/dist/{ua-parser-rRwDJPFB.js → ua-parser-OzUiuIwt.js} +327 -306
  34. package/dist/ua-parser-OzUiuIwt.js.map +1 -0
  35. package/dist/{useKeyboardShortcutsPaneState-C_eLceJQ.js → useKeyboardShortcutsPaneState-Ckzn5mVZ.js} +4 -4
  36. package/dist/{useKeyboardShortcutsPaneState-C_eLceJQ.js.map → useKeyboardShortcutsPaneState-Ckzn5mVZ.js.map} +1 -1
  37. package/package.json +57 -57
  38. package/src/translations/ar.json +7 -0
  39. package/src/translations/bg.json +7 -0
  40. package/src/translations/ca.json +7 -0
  41. package/src/translations/cs.json +7 -0
  42. package/src/translations/da.json +7 -0
  43. package/src/translations/de.json +7 -0
  44. package/src/translations/es-MX.json +7 -0
  45. package/src/translations/es.json +7 -0
  46. package/src/translations/et.json +7 -0
  47. package/src/translations/fi.json +7 -0
  48. package/src/translations/fil.json +7 -0
  49. package/src/translations/fr.json +7 -0
  50. package/src/translations/he.json +7 -0
  51. package/src/translations/hi.json +7 -0
  52. package/src/translations/hr.json +7 -0
  53. package/src/translations/hu.json +7 -0
  54. package/src/translations/id.json +7 -0
  55. package/src/translations/it.json +7 -0
  56. package/src/translations/ja.json +7 -0
  57. package/src/translations/ko.json +7 -0
  58. package/src/translations/nl.json +7 -0
  59. package/src/translations/pl.json +7 -0
  60. package/src/translations/pt-BR.json +7 -0
  61. package/src/translations/pt.json +7 -0
  62. package/src/translations/ro.json +7 -0
  63. package/src/translations/ru.json +7 -0
  64. package/src/translations/sk.json +7 -0
  65. package/src/translations/sl.json +7 -0
  66. package/src/translations/sv.json +7 -0
  67. package/src/translations/th.json +7 -0
  68. package/src/translations/tr.json +7 -0
  69. package/src/translations/uk.json +7 -0
  70. package/src/translations/vi.json +7 -0
  71. package/src/translations/zh-CN.json +7 -0
  72. package/src/translations/zh-TW.json +7 -0
  73. package/dist/cjs/ua-parser-E0eEtHJZ.js.map +0 -1
  74. package/dist/ua-parser-rRwDJPFB.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { shallow } from 'zustand/shallow';
1
+ import { useShallow } from 'zustand/shallow';
2
2
  import { useEffect, useState, useMemo, useRef } from 'react';
3
3
  import { isPresent, filterBy, hyphenate, noop } from '@bigbinary/neeto-cist';
4
4
  import { useLocation, useHistory } from 'react-router-dom';
@@ -333,13 +333,13 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
333
333
  var updateCustomization = _ref.updateCustomization;
334
334
  var _useTranslation = useTranslation(),
335
335
  t = _useTranslation.t;
336
- var _useProductEmbedStore = useProductEmbedStore(function (store) {
336
+ var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
337
337
  return {
338
338
  queryParamsProps: store["queryParamsProps"],
339
339
  queryParams: store["queryParams"],
340
340
  setQueryParams: store["setQueryParams"]
341
341
  };
342
- }, shallow),
342
+ })),
343
343
  queryParamsProps = _useProductEmbedStore.queryParamsProps,
344
344
  queryParams = _useProductEmbedStore.queryParams,
345
345
  setQueryParams = _useProductEmbedStore.setQueryParams;
@@ -420,11 +420,11 @@ var ElementPopup$1 = function ElementPopup(_ref) {
420
420
  var elementSelector = customization.elementSelector;
421
421
  var _useTranslation = useTranslation(),
422
422
  t = _useTranslation.t;
423
- var _useProductEmbedStore = useProductEmbedStore(function (store) {
423
+ var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
424
424
  return {
425
425
  isQueryParamsEnabled: store["isQueryParamsEnabled"]
426
426
  };
427
- }, shallow),
427
+ })),
428
428
  isQueryParamsEnabled = _useProductEmbedStore.isQueryParamsEnabled;
429
429
  useEffect(function () {
430
430
  if (isQueryParamsEnabled) return;
@@ -457,11 +457,11 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
457
457
  otherCustomizations = _ref.otherCustomizations;
458
458
  var _useTranslation = useTranslation(),
459
459
  t = _useTranslation.t;
460
- var _useProductEmbedStore = useProductEmbedStore(function (store) {
460
+ var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
461
461
  return {
462
462
  isQueryParamsEnabled: store["isQueryParamsEnabled"]
463
463
  };
464
- }, shallow),
464
+ })),
465
465
  isQueryParamsEnabled = _useProductEmbedStore.isQueryParamsEnabled;
466
466
  var btnTextColor = customization.btnTextColor,
467
467
  showIcon = customization.showIcon,
@@ -596,11 +596,11 @@ var Iframe$1 = function Iframe(_ref) {
596
596
  var updateCustomization = _ref.updateCustomization,
597
597
  otherCustomizations = _ref.otherCustomizations,
598
598
  customization = _ref.customization;
599
- var _useProductEmbedStore = useProductEmbedStore(function (store) {
599
+ var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
600
600
  return {
601
601
  isQueryParamsEnabled: store["isQueryParamsEnabled"]
602
602
  };
603
- }, shallow),
603
+ })),
604
604
  isQueryParamsEnabled = _useProductEmbedStore.isQueryParamsEnabled;
605
605
  useEffect(function () {
606
606
  if (isQueryParamsEnabled) return;
@@ -624,11 +624,11 @@ var Inline$1 = function Inline(_ref) {
624
624
  otherCustomizations = _ref.otherCustomizations;
625
625
  var _useTranslation = useTranslation(),
626
626
  t = _useTranslation.t;
627
- var _useProductEmbedStore = useProductEmbedStore(function (store) {
627
+ var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
628
628
  return {
629
629
  isQueryParamsEnabled: store["isQueryParamsEnabled"]
630
630
  };
631
- }, shallow),
631
+ })),
632
632
  isQueryParamsEnabled = _useProductEmbedStore.isQueryParamsEnabled;
633
633
  var elementSelector = customization.elementSelector;
634
634
  var handleInputChange = function handleInputChange(_ref2, attribute) {
@@ -1566,11 +1566,11 @@ var Preview = function Preview(_ref) {
1566
1566
  customization = _ref.customization,
1567
1567
  _ref$customPreviewIfr = _ref.customPreviewIframeUrl,
1568
1568
  customPreviewIframeUrl = _ref$customPreviewIfr === void 0 ? "" : _ref$customPreviewIfr;
1569
- var _useProductEmbedStore = useProductEmbedStore(function (store) {
1569
+ var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
1570
1570
  return {
1571
1571
  queryParams: store["queryParams"]
1572
1572
  };
1573
- }, shallow),
1573
+ })),
1574
1574
  queryParams = _useProductEmbedStore.queryParams;
1575
1575
  var preview = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, Inline), EMBED_OPTIONS.FLOATING_POPUP, FloatingPopup), EMBED_OPTIONS.ELEMENT_POPUP, ElementPopup), EMBED_OPTIONS.IFRAME, Iframe);
1576
1576
  var previewURL = customPreviewIframeUrl || "".concat(location.origin, "/embed/").concat(id);
@@ -1817,11 +1817,11 @@ var ProductEmbed = function ProductEmbed(_ref) {
1817
1817
  search = _useLocation.search;
1818
1818
  var queryParams = new URLSearchParams(search);
1819
1819
  var selectedEmbed = toCamelCasedString(queryParams.get("type"));
1820
- var _useProductEmbedStore = useProductEmbedStore(function (store) {
1820
+ var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
1821
1821
  return {
1822
1822
  setProductEmbedState: store["setProductEmbedState"]
1823
1823
  };
1824
- }, shallow),
1824
+ })),
1825
1825
  setProductEmbedState = _useProductEmbedStore.setProductEmbedState;
1826
1826
  useEffect(function () {
1827
1827
  setProductEmbedState({