@bigbinary/neeto-molecules 3.16.11 → 3.16.13
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/NeetoWidget.js +2 -4
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/ProductEmbed.js +3 -2
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/cjs/NeetoWidget.js +1 -3
- package/dist/cjs/NeetoWidget.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +3 -2
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/package.json +1 -1
- package/types/ProductEmbed.d.ts +3 -0
package/dist/NeetoWidget.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Trans, useTranslation } from 'react-i18next';
|
|
|
8
8
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
9
9
|
import { memo, useEffect, useState, useRef } from 'react';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
|
-
import { capitalize,
|
|
11
|
+
import { capitalize, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
12
12
|
import usePrevious from '@bigbinary/neeto-commons-frontend/react-utils/usePrevious';
|
|
13
13
|
import Button from '@bigbinary/neetoui/Button';
|
|
14
14
|
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
@@ -2322,8 +2322,6 @@ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
2322
2322
|
var CodeSnippet = function CodeSnippet(_ref) {
|
|
2323
2323
|
var isPaneOpen = _ref.isPaneOpen,
|
|
2324
2324
|
onClose = _ref.onClose,
|
|
2325
|
-
_ref$onSent = _ref.onSent,
|
|
2326
|
-
onSent = _ref$onSent === void 0 ? noop : _ref$onSent,
|
|
2327
2325
|
codeString = _ref.codeString,
|
|
2328
2326
|
_ref$subject = _ref.subject,
|
|
2329
2327
|
subject = _ref$subject === void 0 ? "" : _ref$subject,
|
|
@@ -2339,7 +2337,7 @@ var CodeSnippet = function CodeSnippet(_ref) {
|
|
|
2339
2337
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2340
2338
|
selectedFramework = _useState2[0],
|
|
2341
2339
|
setSelectedFramework = _useState2[1];
|
|
2342
|
-
var emailMutation = useEmailEmbedCode(
|
|
2340
|
+
var emailMutation = useEmailEmbedCode(onClose);
|
|
2343
2341
|
var codeToDisplay = emailType === EMAIL_TYPES.userIdentity ? getSampleUserIdentity(enabledWidgets, selectedFramework.value) : codeString;
|
|
2344
2342
|
var handleSubmit = function handleSubmit(formData) {
|
|
2345
2343
|
var _body$ref$current$inn, _body$ref;
|