@bigbinary/neeto-molecules 5.3.14 → 5.3.15
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/ProductEmbed.js +15 -14
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +15 -14
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/v2/ProductEmbed.js +6 -5
- package/dist/cjs/v2/ProductEmbed.js.map +1 -1
- package/dist/v2/ProductEmbed.js +6 -5
- package/dist/v2/ProductEmbed.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/ProductEmbed.js
CHANGED
|
@@ -5,35 +5,37 @@ var React = require('react');
|
|
|
5
5
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
6
6
|
var reactRouterDom = require('react-router-dom');
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
|
-
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
9
|
-
var classnames = require('classnames');
|
|
10
|
-
var LeftArrow = require('@bigbinary/neeto-icons/LeftArrow');
|
|
11
|
-
var Button = require('@bigbinary/neetoui/Button');
|
|
12
|
-
var Typography = require('@bigbinary/neetoui/Typography');
|
|
13
|
-
var ramda = require('ramda');
|
|
14
|
-
var reactI18next = require('react-i18next');
|
|
15
|
-
var Container = require('./Container.js');
|
|
16
|
-
var Header = require('./Header.js');
|
|
17
|
-
var Select = require('@bigbinary/neetoui/Select');
|
|
18
|
-
var Codeblock = require('./Codeblock.js');
|
|
19
8
|
var i18next = require('i18next');
|
|
20
9
|
var Input = require('@bigbinary/neetoui/Input');
|
|
10
|
+
var reactI18next = require('react-i18next');
|
|
21
11
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
22
12
|
var Delete = require('@bigbinary/neeto-icons/Delete');
|
|
23
13
|
var Plus = require('@bigbinary/neeto-icons/Plus');
|
|
14
|
+
var Button = require('@bigbinary/neetoui/Button');
|
|
24
15
|
var Label = require('@bigbinary/neetoui/Label');
|
|
25
16
|
var HelpPopover = require('./HelpPopover.js');
|
|
26
17
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
27
18
|
var zustand = require('zustand');
|
|
19
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
28
20
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
21
|
+
var ramda = require('ramda');
|
|
29
22
|
var jsxRuntime = require('react/jsx-runtime');
|
|
30
23
|
var Checkbox = require('@bigbinary/neetoui/Checkbox');
|
|
24
|
+
var Select = require('@bigbinary/neetoui/Select');
|
|
31
25
|
var ColorPicker = require('@bigbinary/neetoui/ColorPicker');
|
|
32
26
|
var Switch = require('@bigbinary/neetoui/Switch');
|
|
33
27
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
28
|
+
var classnames = require('classnames');
|
|
29
|
+
var LeftArrow = require('@bigbinary/neeto-icons/LeftArrow');
|
|
30
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
31
|
+
var Container = require('./Container.js');
|
|
32
|
+
var Header = require('./Header.js');
|
|
33
|
+
var Codeblock = require('./Codeblock.js');
|
|
34
34
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
35
35
|
var BrowserPreview = require('./BrowserPreview.js');
|
|
36
36
|
var injectCss = require('./inject-css-B6qYtOJe.js');
|
|
37
|
+
require('@bigbinary/neeto-icons/Help');
|
|
38
|
+
require('@bigbinary/neetoui/Popover');
|
|
37
39
|
require('./index-JY2zVpnv.js');
|
|
38
40
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
39
41
|
require('./Breadcrumbs.js');
|
|
@@ -49,8 +51,6 @@ require('@bigbinary/neeto-commons-frontend/react-utils/useQueryParams');
|
|
|
49
51
|
require('@bigbinary/neeto-commons-frontend/react-utils/useUpdateEffect');
|
|
50
52
|
require('@bigbinary/neeto-icons/Search');
|
|
51
53
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
52
|
-
require('@bigbinary/neeto-icons/Help');
|
|
53
|
-
require('@bigbinary/neetoui/Popover');
|
|
54
54
|
require('react-syntax-highlighter/dist/esm/prism-light.js');
|
|
55
55
|
require('react-syntax-highlighter/dist/esm/styles/prism');
|
|
56
56
|
require('./CopyToClipboardButton.js');
|
|
@@ -1850,7 +1850,8 @@ var ProductEmbed = function ProductEmbed(_ref) {
|
|
|
1850
1850
|
var _useLocation = reactRouterDom.useLocation(),
|
|
1851
1851
|
search = _useLocation.search;
|
|
1852
1852
|
var queryParams = new URLSearchParams(search);
|
|
1853
|
-
var
|
|
1853
|
+
var typeFromQueryParams = toCamelCasedString(queryParams.get("type"));
|
|
1854
|
+
var selectedEmbed = Object.values(EMBED_OPTIONS).includes(typeFromQueryParams) && Object.keys(options).includes(typeFromQueryParams) ? typeFromQueryParams : undefined;
|
|
1854
1855
|
var _useProductEmbedStore = useProductEmbedStore(shallow.useShallow(function (store) {
|
|
1855
1856
|
return {
|
|
1856
1857
|
setProductEmbedState: store["setProductEmbedState"]
|