@bigbinary/neeto-molecules 1.0.93 → 1.0.95
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/CustomDomain.cjs.js +8 -10
- package/dist/CustomDomain.cjs.js.map +1 -1
- package/dist/CustomDomain.js +10 -13
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.cjs.js +8 -10
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +9 -12
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/IconPicker.cjs.js +1 -0
- package/dist/IconPicker.cjs.js.map +1 -1
- package/dist/IconPicker.js +1 -0
- package/dist/IconPicker.js.map +1 -1
- package/dist/IntegrationCard.cjs.js +223 -38
- package/dist/IntegrationCard.cjs.js.map +1 -1
- package/dist/IntegrationCard.js +227 -42
- package/dist/IntegrationCard.js.map +1 -1
- package/dist/IntegrationDisconnectAlert.cjs.js +22 -14
- package/dist/IntegrationDisconnectAlert.cjs.js.map +1 -1
- package/dist/IntegrationDisconnectAlert.js +19 -14
- package/dist/IntegrationDisconnectAlert.js.map +1 -1
- package/dist/IntegrationWalkthroughModal.cjs.js +17 -9
- package/dist/IntegrationWalkthroughModal.cjs.js.map +1 -1
- package/dist/IntegrationWalkthroughModal.js +14 -9
- package/dist/IntegrationWalkthroughModal.js.map +1 -1
- package/dist/KeyboardShortcuts.cjs.js +2 -0
- package/dist/KeyboardShortcuts.cjs.js.map +1 -1
- package/dist/KeyboardShortcuts.js +2 -0
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +5 -20
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +5 -21
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/Schedule.cjs.js +2 -1
- package/dist/Schedule.cjs.js.map +1 -1
- package/dist/Schedule.js +2 -1
- package/dist/Schedule.js.map +1 -1
- package/dist/ShareViaLink.cjs.js +7 -8
- package/dist/ShareViaLink.cjs.js.map +1 -1
- package/dist/ShareViaLink.js +7 -9
- package/dist/ShareViaLink.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +9 -1
- package/types/IntegrationCard.d.ts +14 -5
package/dist/NeetoWidget.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { values, last, identity, assoc, pluck, any, prop, fromPairs, isEmpty } from 'ramda';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useEffect, useState, useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Info } from '@bigbinary/neeto-icons';
|
|
5
5
|
import { Typography, Select, Button, Pane, Toastr, Switch, Label, Callout } from '@bigbinary/neetoui';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
7
|
import { useMutation, useQuery, useQueryClient, QueryClient, QueryClientProvider } from 'react-query';
|
|
8
8
|
import { capitalize, noop, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
9
9
|
import { usePrevious } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
10
|
-
import
|
|
10
|
+
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
11
11
|
import { Formik, Form } from 'formik';
|
|
12
12
|
import { MultiEmailInput, Input } from '@bigbinary/neetoui/formik';
|
|
13
13
|
import i18next from 'i18next';
|
|
@@ -2345,24 +2345,11 @@ var CodeBlock = function CodeBlock(_ref) {
|
|
|
2345
2345
|
sendViaEmail = _ref$sendViaEmail === void 0 ? undefined : _ref$sendViaEmail,
|
|
2346
2346
|
_ref$frameworkProps = _ref.frameworkProps,
|
|
2347
2347
|
frameworkProps = _ref$frameworkProps === void 0 ? {} : _ref$frameworkProps;
|
|
2348
|
-
var _useState = useState(false),
|
|
2349
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
2350
|
-
isCopied = _useState2[0],
|
|
2351
|
-
setIsCopied = _useState2[1];
|
|
2352
2348
|
var _useTranslation = useTranslation(),
|
|
2353
2349
|
t = _useTranslation.t;
|
|
2354
2350
|
var _ref2 = frameworkProps !== null && frameworkProps !== void 0 ? frameworkProps : {},
|
|
2355
2351
|
selectedFramework = _ref2.selectedFramework,
|
|
2356
2352
|
setSelectedFramework = _ref2.setSelectedFramework;
|
|
2357
|
-
useEffect(function () {
|
|
2358
|
-
if (!isCopied) return undefined;
|
|
2359
|
-
var timer = setTimeout(function () {
|
|
2360
|
-
return setIsCopied(false);
|
|
2361
|
-
}, 1000);
|
|
2362
|
-
return function () {
|
|
2363
|
-
return clearTimeout(timer);
|
|
2364
|
-
};
|
|
2365
|
-
}, [isCopied]);
|
|
2366
2353
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2367
2354
|
className: classnames(["relative", className])
|
|
2368
2355
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -2383,13 +2370,10 @@ var CodeBlock = function CodeBlock(_ref) {
|
|
|
2383
2370
|
style: "text",
|
|
2384
2371
|
label: t("neetoMolecules.widget.installation.snippet.sendViaEmail"),
|
|
2385
2372
|
onClick: sendViaEmail
|
|
2386
|
-
}) : null, showCopyButton && /*#__PURE__*/React__default.createElement(
|
|
2387
|
-
|
|
2373
|
+
}) : null, showCopyButton && /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
|
|
2374
|
+
label: t("neetoMolecules.widget.installation.snippet.copy"),
|
|
2388
2375
|
style: "primary",
|
|
2389
|
-
|
|
2390
|
-
onClick: function onClick() {
|
|
2391
|
-
return copyToClipboard(codeString);
|
|
2392
|
-
}
|
|
2376
|
+
value: codeString
|
|
2393
2377
|
}))), /*#__PURE__*/React__default.createElement(SyntaxHighlighter$1, {
|
|
2394
2378
|
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-lg m-0 rounded-t-none",
|
|
2395
2379
|
code: codeString,
|