@bigbinary/neeto-molecules 4.1.42 → 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.
- package/dist/BrowserSupport.js +1 -1
- package/dist/DownloadMobileAppCallout.js +1 -1
- package/dist/ErrorPage.js +3 -3
- package/dist/ErrorPage.js.map +1 -1
- package/dist/FloatingActionMenu.js +3 -3
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/KeyboardShortcuts.js +2 -2
- package/dist/ProductEmbed.js +15 -15
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/ShareViaLink.js +446 -179
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/StickyRibbonsContainer.js +3 -3
- package/dist/StickyRibbonsContainer.js.map +1 -1
- package/dist/cjs/BrowserSupport.js +1 -1
- package/dist/cjs/DownloadMobileAppCallout.js +1 -1
- package/dist/cjs/ErrorPage.js +2 -2
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +3 -3
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/KeyboardShortcuts.js +2 -2
- package/dist/cjs/ProductEmbed.js +14 -14
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +446 -179
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/Sidebar.js +1 -1
- package/dist/cjs/StickyRibbonsContainer.js +2 -2
- package/dist/cjs/StickyRibbonsContainer.js.map +1 -1
- package/dist/cjs/{ua-parser-E0eEtHJZ.js → ua-parser-DgQ3nYoO.js} +327 -306
- package/dist/cjs/ua-parser-DgQ3nYoO.js.map +1 -0
- package/dist/cjs/{useKeyboardShortcutsPaneState-YnXpWOcs.js → useKeyboardShortcutsPaneState-BrgdLb9F.js} +3 -3
- package/dist/cjs/{useKeyboardShortcutsPaneState-YnXpWOcs.js.map → useKeyboardShortcutsPaneState-BrgdLb9F.js.map} +1 -1
- package/dist/{ua-parser-rRwDJPFB.js → ua-parser-OzUiuIwt.js} +327 -306
- package/dist/ua-parser-OzUiuIwt.js.map +1 -0
- package/dist/{useKeyboardShortcutsPaneState-C_eLceJQ.js → useKeyboardShortcutsPaneState-Ckzn5mVZ.js} +4 -4
- package/dist/{useKeyboardShortcutsPaneState-C_eLceJQ.js.map → useKeyboardShortcutsPaneState-Ckzn5mVZ.js.map} +1 -1
- package/package.json +57 -57
- package/dist/cjs/ua-parser-E0eEtHJZ.js.map +0 -1
- package/dist/ua-parser-rRwDJPFB.js.map +0 -1
package/dist/ProductEmbed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
1824
|
+
})),
|
|
1825
1825
|
setProductEmbedState = _useProductEmbedStore.setProductEmbedState;
|
|
1826
1826
|
useEffect(function () {
|
|
1827
1827
|
setProductEmbedState({
|