@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/ProductEmbed.js
CHANGED
|
@@ -3,35 +3,37 @@ import { useEffect, useState, useMemo, useRef, createElement } from 'react';
|
|
|
3
3
|
import { isPresent, filterBy, hyphenate, noop } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { useLocation, useHistory } from 'react-router-dom';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
|
-
import classnames from 'classnames';
|
|
8
|
-
import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
|
|
9
|
-
import Button from '@bigbinary/neetoui/Button';
|
|
10
|
-
import Typography from '@bigbinary/neetoui/Typography';
|
|
11
|
-
import { toPairs, mergeDeepLeft, isEmpty, mergeLeft } from 'ramda';
|
|
12
|
-
import { useTranslation } from 'react-i18next';
|
|
13
|
-
import Container from './Container.js';
|
|
14
|
-
import Header from './Header.js';
|
|
15
|
-
import Select from '@bigbinary/neetoui/Select';
|
|
16
|
-
import Codeblock from './Codeblock.js';
|
|
17
6
|
import { t } from 'i18next';
|
|
18
7
|
import Input from '@bigbinary/neetoui/Input';
|
|
8
|
+
import { useTranslation } from 'react-i18next';
|
|
19
9
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
20
10
|
import Delete from '@bigbinary/neeto-icons/Delete';
|
|
21
11
|
import Plus from '@bigbinary/neeto-icons/Plus';
|
|
12
|
+
import Button from '@bigbinary/neetoui/Button';
|
|
22
13
|
import Label from '@bigbinary/neetoui/Label';
|
|
23
14
|
import HelpPopover from './HelpPopover.js';
|
|
24
15
|
import { withImmutableActions, handleMetaClick } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
25
16
|
import { create } from 'zustand';
|
|
17
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
26
18
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
19
|
+
import { toPairs, mergeDeepLeft, isEmpty, mergeLeft } from 'ramda';
|
|
27
20
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
28
21
|
import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
22
|
+
import Select from '@bigbinary/neetoui/Select';
|
|
29
23
|
import ColorPicker from '@bigbinary/neetoui/ColorPicker';
|
|
30
24
|
import Switch from '@bigbinary/neetoui/Switch';
|
|
31
25
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
26
|
+
import classnames from 'classnames';
|
|
27
|
+
import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
|
|
28
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
29
|
+
import Container from './Container.js';
|
|
30
|
+
import Header from './Header.js';
|
|
31
|
+
import Codeblock from './Codeblock.js';
|
|
32
32
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
33
33
|
import BrowserPreview from './BrowserPreview.js';
|
|
34
34
|
import { n } from './inject-css-C2dztUxs.js';
|
|
35
|
+
import '@bigbinary/neeto-icons/Help';
|
|
36
|
+
import '@bigbinary/neetoui/Popover';
|
|
35
37
|
import './index-DAYCJu79.js';
|
|
36
38
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
37
39
|
import './Breadcrumbs.js';
|
|
@@ -47,8 +49,6 @@ import '@bigbinary/neeto-commons-frontend/react-utils/useQueryParams';
|
|
|
47
49
|
import '@bigbinary/neeto-commons-frontend/react-utils/useUpdateEffect';
|
|
48
50
|
import '@bigbinary/neeto-icons/Search';
|
|
49
51
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
50
|
-
import '@bigbinary/neeto-icons/Help';
|
|
51
|
-
import '@bigbinary/neetoui/Popover';
|
|
52
52
|
import 'react-syntax-highlighter/dist/esm/prism-light.js';
|
|
53
53
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
54
54
|
import './CopyToClipboardButton.js';
|
|
@@ -1848,7 +1848,8 @@ var ProductEmbed = function ProductEmbed(_ref) {
|
|
|
1848
1848
|
var _useLocation = useLocation(),
|
|
1849
1849
|
search = _useLocation.search;
|
|
1850
1850
|
var queryParams = new URLSearchParams(search);
|
|
1851
|
-
var
|
|
1851
|
+
var typeFromQueryParams = toCamelCasedString(queryParams.get("type"));
|
|
1852
|
+
var selectedEmbed = Object.values(EMBED_OPTIONS).includes(typeFromQueryParams) && Object.keys(options).includes(typeFromQueryParams) ? typeFromQueryParams : undefined;
|
|
1852
1853
|
var _useProductEmbedStore = useProductEmbedStore(useShallow(function (store) {
|
|
1853
1854
|
return {
|
|
1854
1855
|
setProductEmbedState: store["setProductEmbedState"]
|