@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/ShareViaLink.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
2
|
import { slugify, noop } from '@bigbinary/neeto-commons-frontend/pure';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { Facebook, Linkedin, Twitter, ExternalLink, MenuHorizontal } from '@bigbinary/neeto-icons';
|
|
4
|
+
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
5
5
|
import { Modal, Typography, Input as Input$1, Button as Button$1, Dropdown } from '@bigbinary/neetoui';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
7
|
import { Formik, Form } from 'formik';
|
|
8
8
|
import { Input, Button } from '@bigbinary/neetoui/formik';
|
|
9
9
|
import { t as t$1 } from 'i18next';
|
|
10
10
|
import * as yup from 'yup';
|
|
11
|
+
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
11
12
|
|
|
12
13
|
function _arrayWithHoles(arr) {
|
|
13
14
|
if (Array.isArray(arr)) return arr;
|
|
@@ -291,13 +292,10 @@ var Link = function Link(_ref) {
|
|
|
291
292
|
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
292
293
|
readOnly: true,
|
|
293
294
|
value: url
|
|
294
|
-
}), /*#__PURE__*/React.createElement(
|
|
295
|
+
}), /*#__PURE__*/React.createElement(CopyToClipboardButton, {
|
|
295
296
|
"data-testid": "link-copy-button",
|
|
296
|
-
icon: Copy,
|
|
297
297
|
label: t("neetoMolecules.shareViaLink.copyLink"),
|
|
298
|
-
|
|
299
|
-
return copyToClipboard(url);
|
|
300
|
-
}
|
|
298
|
+
value: url
|
|
301
299
|
}), /*#__PURE__*/React.createElement(Button$1, {
|
|
302
300
|
"data-testid": "preview-button",
|
|
303
301
|
href: previewUrl || url,
|
|
@@ -327,8 +325,8 @@ var Link = function Link(_ref) {
|
|
|
327
325
|
}, t("neetoMolecules.shareViaLink.editUrl.title")))), /*#__PURE__*/React.createElement(RegenerateURL, {
|
|
328
326
|
handleRegenerate: handleRegenerate,
|
|
329
327
|
isLoading: isLoading,
|
|
330
|
-
isOpen: isRegenerateURLModalOpen,
|
|
331
328
|
url: url,
|
|
329
|
+
isOpen: isRegenerateURLModalOpen,
|
|
332
330
|
onClose: function onClose() {
|
|
333
331
|
return setIsRegenerateURLModalOpen(false);
|
|
334
332
|
}
|
|
@@ -336,8 +334,8 @@ var Link = function Link(_ref) {
|
|
|
336
334
|
editUrlProps: editUrlProps,
|
|
337
335
|
handleEdit: handleEdit,
|
|
338
336
|
isLoading: isLoading,
|
|
339
|
-
isOpen: isEditURLModalOpen,
|
|
340
337
|
url: url,
|
|
338
|
+
isOpen: isEditURLModalOpen,
|
|
341
339
|
onClose: function onClose() {
|
|
342
340
|
return setIsEditURLModalOpen(false);
|
|
343
341
|
}
|