@bigbinary/neeto-integrations-frontend 2.12.7 → 2.12.8
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/app/javascript/src/translations/en.json +1 -1
- package/dist/Daily.cjs.js +276 -204
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +270 -204
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +372 -282
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +364 -282
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/Twilio.cjs.js +73 -59
- package/dist/Twilio.cjs.js.map +1 -1
- package/dist/Twilio.js +66 -55
- package/dist/Twilio.js.map +1 -1
- package/dist/ZapierForm.cjs.js +138 -105
- package/dist/ZapierForm.cjs.js.map +1 -1
- package/dist/ZapierForm.js +126 -100
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.cjs.js +280 -208
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +275 -209
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +514 -410
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +505 -410
- package/dist/index.js.map +1 -1
- package/package.json +14 -13
- package/types.d.ts +3 -0
package/dist/Daily.cjs.js
CHANGED
|
@@ -11,19 +11,28 @@ var Container = require('@bigbinary/neeto-molecules/Container');
|
|
|
11
11
|
var Header = require('@bigbinary/neeto-molecules/Header');
|
|
12
12
|
var HelpPopover = require('@bigbinary/neeto-molecules/HelpPopover');
|
|
13
13
|
var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var Button = require('@bigbinary/neetoui/Button');
|
|
15
|
+
var Input = require('@bigbinary/neetoui/formik/Input');
|
|
16
|
+
var FormikFormWrapper = require('@bigbinary/neetoui/formik/Form');
|
|
17
|
+
var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
|
|
16
18
|
var reactI18next = require('react-i18next');
|
|
19
|
+
var reactRouterDom = require('react-router-dom');
|
|
17
20
|
var classnames = require('classnames');
|
|
21
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
18
22
|
require('@bigbinary/neeto-molecules/IntegrationCard');
|
|
19
23
|
var DisconnectAlert = require('@bigbinary/neeto-molecules/IntegrationDisconnectAlert');
|
|
20
24
|
var WalkthroughModal = require('@bigbinary/neeto-molecules/IntegrationWalkthroughModal');
|
|
21
25
|
var neetoIcons = require('@bigbinary/neeto-icons');
|
|
26
|
+
var Tooltip = require('@bigbinary/neetoui/Tooltip');
|
|
27
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
22
28
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
23
29
|
var misc = require('@bigbinary/neeto-icons/misc');
|
|
24
30
|
var CopyToClipboardButton = require('@bigbinary/neeto-molecules/CopyToClipboardButton');
|
|
31
|
+
require('@bigbinary/neetoui/Callout');
|
|
25
32
|
require('ramda');
|
|
33
|
+
require('@bigbinary/neetoui/formik/Select');
|
|
26
34
|
var yup = require('yup');
|
|
35
|
+
require('@bigbinary/neetoui/Modal');
|
|
27
36
|
|
|
28
37
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
29
38
|
|
|
@@ -53,9 +62,15 @@ var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
|
53
62
|
var Header__default = /*#__PURE__*/_interopDefaultLegacy(Header);
|
|
54
63
|
var HelpPopover__default = /*#__PURE__*/_interopDefaultLegacy(HelpPopover);
|
|
55
64
|
var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
|
|
65
|
+
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
66
|
+
var Input__default = /*#__PURE__*/_interopDefaultLegacy(Input);
|
|
67
|
+
var FormikFormWrapper__default = /*#__PURE__*/_interopDefaultLegacy(FormikFormWrapper);
|
|
68
|
+
var ActionBlock__default = /*#__PURE__*/_interopDefaultLegacy(ActionBlock);
|
|
56
69
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
57
70
|
var DisconnectAlert__default = /*#__PURE__*/_interopDefaultLegacy(DisconnectAlert);
|
|
58
71
|
var WalkthroughModal__default = /*#__PURE__*/_interopDefaultLegacy(WalkthroughModal);
|
|
72
|
+
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
73
|
+
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
|
|
59
74
|
var CopyToClipboardButton__default = /*#__PURE__*/_interopDefaultLegacy(CopyToClipboardButton);
|
|
60
75
|
var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
|
|
61
76
|
|
|
@@ -127,11 +142,11 @@ var QUERY_KEYS = {
|
|
|
127
142
|
ZOOM_DETAILS: "zoom-details"
|
|
128
143
|
};
|
|
129
144
|
|
|
130
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
131
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
145
|
+
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
146
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
132
147
|
var useCreateDaily = function useCreateDaily() {
|
|
133
148
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
134
|
-
return reactUtils.useMutationWithInvalidation(dailiesApi.create, _objectSpread({
|
|
149
|
+
return reactUtils.useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
|
|
135
150
|
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
|
|
136
151
|
}, options));
|
|
137
152
|
};
|
|
@@ -203,21 +218,6 @@ function _slicedToArray(arr, i) {
|
|
|
203
218
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
204
219
|
}
|
|
205
220
|
|
|
206
|
-
function _extends$1() {
|
|
207
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
208
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
209
|
-
var source = arguments[i];
|
|
210
|
-
for (var key in source) {
|
|
211
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
212
|
-
target[key] = source[key];
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return target;
|
|
217
|
-
};
|
|
218
|
-
return _extends$1.apply(this, arguments);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
221
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
222
222
|
if (source == null) return {};
|
|
223
223
|
var target = {};
|
|
@@ -248,18 +248,24 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
var _excluded = ["className", "children"];
|
|
251
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
252
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
251
253
|
var ExternalLink = function ExternalLink(_ref) {
|
|
252
254
|
var _ref$className = _ref.className,
|
|
253
255
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
254
256
|
_ref$children = _ref.children,
|
|
255
257
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
256
258
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
257
|
-
return /*#__PURE__*/
|
|
259
|
+
return /*#__PURE__*/jsxRuntime.jsx("a", _objectSpread$3(_objectSpread$3({
|
|
258
260
|
className: classnames__default["default"](["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
259
|
-
}, props),
|
|
261
|
+
}, props), {}, {
|
|
262
|
+
children: children
|
|
263
|
+
}));
|
|
260
264
|
};
|
|
261
265
|
var ExternalLink$1 = /*#__PURE__*/React__default["default"].memo(ExternalLink);
|
|
262
266
|
|
|
267
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
268
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
263
269
|
var Manage$1 = reactUtils.withT(function (_ref) {
|
|
264
270
|
var t = _ref.t,
|
|
265
271
|
_ref$title = _ref.title,
|
|
@@ -303,86 +309,107 @@ var Manage$1 = reactUtils.withT(function (_ref) {
|
|
|
303
309
|
_ref$isConnectDisable = _ref.isConnectDisabled,
|
|
304
310
|
isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
|
|
305
311
|
_ref$connectTooltipPr = _ref.connectTooltipProps,
|
|
306
|
-
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
312
|
+
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr,
|
|
313
|
+
_ref$buttonProps = _ref.buttonProps,
|
|
314
|
+
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
315
|
+
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
316
|
+
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
|
|
317
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
318
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
319
|
+
className: "mx-auto w-full max-w-3xl",
|
|
320
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
321
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6",
|
|
322
|
+
children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
323
|
+
className: "neeto-ui-text-gray-600",
|
|
324
|
+
size: 48
|
|
325
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
326
|
+
className: "space-y-2",
|
|
327
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
328
|
+
className: "flex items-center space-x-4",
|
|
329
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
330
|
+
className: "neeto-ui-text-gray-800 mb-0.5",
|
|
331
|
+
style: "h2",
|
|
332
|
+
weight: "semibold",
|
|
333
|
+
children: title
|
|
334
|
+
}), isConnected && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
335
|
+
className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1",
|
|
336
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
|
|
337
|
+
size: 24
|
|
338
|
+
})
|
|
339
|
+
})]
|
|
340
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
341
|
+
style: "body1",
|
|
342
|
+
weight: "normal",
|
|
343
|
+
className: classnames__default["default"]("neeto-ui-text-gray-800", {
|
|
344
|
+
"break-all": isConnected
|
|
345
|
+
}),
|
|
346
|
+
children: description
|
|
347
|
+
}), helpDocUrl && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
348
|
+
className: "neeto-ui-text-gray-800",
|
|
349
|
+
style: "body2",
|
|
350
|
+
weight: "normal",
|
|
351
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
352
|
+
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
353
|
+
components: {
|
|
354
|
+
helpLink: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
355
|
+
href: helpDocUrl,
|
|
356
|
+
style: "link",
|
|
357
|
+
target: "_blank"
|
|
358
|
+
})
|
|
359
|
+
},
|
|
360
|
+
values: {
|
|
361
|
+
integration: integrationName || neetoCist.humanize(integration)
|
|
362
|
+
}
|
|
363
|
+
})
|
|
364
|
+
})]
|
|
365
|
+
}), isConnected ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
366
|
+
className: "space-x-2",
|
|
367
|
+
children: [(managePath || manageUrl) && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread$2({
|
|
368
|
+
"data-cy": "manage-button",
|
|
369
|
+
href: manageUrl,
|
|
370
|
+
target: manageUrl ? "_blank" : "_self",
|
|
371
|
+
to: managePath,
|
|
372
|
+
label: t("neetoIntegrations.common.manageIntegration", {
|
|
373
|
+
integration: integrationName || neetoCist.humanize(integration)
|
|
374
|
+
})
|
|
375
|
+
}, buttonProps)), onDisconnect && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread$2({
|
|
376
|
+
"data-cy": "disconnect-button",
|
|
377
|
+
style: "secondary",
|
|
378
|
+
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
379
|
+
integration: integrationName || neetoCist.humanize(integration)
|
|
380
|
+
}),
|
|
381
|
+
onClick: function onClick() {
|
|
382
|
+
return setIsDisconnectAlertOpen(true);
|
|
383
|
+
}
|
|
384
|
+
}, secondaryButtonProps))]
|
|
385
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
386
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Tooltip__default["default"], _objectSpread$2(_objectSpread$2({
|
|
387
|
+
disabled: !isConnectDisabled
|
|
388
|
+
}, connectTooltipProps), {}, {
|
|
389
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
390
|
+
children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread$2({
|
|
391
|
+
"data-cy": "connect-button",
|
|
392
|
+
disabled: isConnectDisabled,
|
|
393
|
+
href: connectUrl,
|
|
394
|
+
to: connectPath,
|
|
395
|
+
label: t("neetoIntegrations.common.connectIntegration", {
|
|
396
|
+
integration: integrationName || neetoCist.humanize(integration)
|
|
397
|
+
}),
|
|
398
|
+
onClick: onConnect
|
|
399
|
+
}, buttonProps))
|
|
400
|
+
})
|
|
401
|
+
}))
|
|
402
|
+
})]
|
|
343
403
|
})
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
target: manageUrl ? "_blank" : "_self",
|
|
354
|
-
to: managePath,
|
|
355
|
-
label: t("neetoIntegrations.common.manageIntegration", {
|
|
356
|
-
integration: integrationName || neetoCist.humanize(integration)
|
|
357
|
-
})
|
|
358
|
-
}), onDisconnect && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
359
|
-
"data-cy": "disconnect-button",
|
|
360
|
-
style: "secondary",
|
|
361
|
-
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
362
|
-
integration: integrationName || neetoCist.humanize(integration)
|
|
363
|
-
}),
|
|
364
|
-
onClick: function onClick() {
|
|
365
|
-
return setIsDisconnectAlertOpen(true);
|
|
366
|
-
}
|
|
367
|
-
})) : /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, _extends$1({
|
|
368
|
-
disabled: !isConnectDisabled
|
|
369
|
-
}, connectTooltipProps), /*#__PURE__*/React__default["default"].createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
370
|
-
"data-cy": "connect-button",
|
|
371
|
-
disabled: isConnectDisabled,
|
|
372
|
-
href: connectUrl,
|
|
373
|
-
to: connectPath,
|
|
374
|
-
label: t("neetoIntegrations.common.connectIntegration", {
|
|
375
|
-
integration: integrationName || neetoCist.humanize(integration)
|
|
376
|
-
}),
|
|
377
|
-
onClick: onConnect
|
|
378
|
-
})))))), /*#__PURE__*/React__default["default"].createElement(DisconnectAlert__default["default"], {
|
|
379
|
-
isDisconnecting: isDisconnecting,
|
|
380
|
-
onClose: onClose,
|
|
381
|
-
onDisconnect: onDisconnect,
|
|
382
|
-
isOpen: isDisconnectAlertOpen,
|
|
383
|
-
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
384
|
-
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
385
|
-
}));
|
|
404
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DisconnectAlert__default["default"], {
|
|
405
|
+
isDisconnecting: isDisconnecting,
|
|
406
|
+
onClose: onClose,
|
|
407
|
+
onDisconnect: onDisconnect,
|
|
408
|
+
isOpen: isDisconnectAlertOpen,
|
|
409
|
+
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
410
|
+
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
411
|
+
})]
|
|
412
|
+
});
|
|
386
413
|
});
|
|
387
414
|
|
|
388
415
|
[{
|
|
@@ -483,6 +510,8 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
|
483
510
|
var propTypesExports = propTypes.exports;
|
|
484
511
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
485
512
|
|
|
513
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
514
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
486
515
|
var Connect = reactUtils.withT(function (_ref) {
|
|
487
516
|
var t = _ref.t,
|
|
488
517
|
Icon = _ref.Icon,
|
|
@@ -490,32 +519,61 @@ var Connect = reactUtils.withT(function (_ref) {
|
|
|
490
519
|
title = _ref$title === void 0 ? "" : _ref$title,
|
|
491
520
|
_ref$description = _ref.description,
|
|
492
521
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
522
|
+
_ref$integration = _ref.integration,
|
|
523
|
+
integration = _ref$integration === void 0 ? "" : _ref$integration,
|
|
524
|
+
_ref$integrationName = _ref.integrationName,
|
|
525
|
+
integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
|
|
526
|
+
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
527
|
+
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
493
528
|
_ref$buttonProps = _ref.buttonProps,
|
|
494
529
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
495
530
|
_ref$onConnect = _ref.onConnect,
|
|
496
531
|
onConnect = _ref$onConnect === void 0 ? neetoCist.noop : _ref$onConnect,
|
|
497
532
|
children = _ref.children,
|
|
498
533
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
499
|
-
return /*#__PURE__*/
|
|
500
|
-
className: "mx-auto w-full max-w-3xl"
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
534
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
535
|
+
className: "mx-auto w-full max-w-3xl",
|
|
536
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
537
|
+
className: "mb-6 flex flex-col gap-y-2",
|
|
538
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
539
|
+
size: 48
|
|
540
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
541
|
+
className: "flex flex-col gap-y-1",
|
|
542
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
543
|
+
style: "h2",
|
|
544
|
+
children: title
|
|
545
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
546
|
+
style: "body2",
|
|
547
|
+
children: description
|
|
548
|
+
})]
|
|
549
|
+
})]
|
|
550
|
+
}), helpDocUrl && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
551
|
+
className: "mb-4",
|
|
552
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
553
|
+
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
554
|
+
components: {
|
|
555
|
+
helpLink: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
556
|
+
className: "text-xs",
|
|
557
|
+
href: helpDocUrl,
|
|
558
|
+
size: "small",
|
|
559
|
+
style: "link",
|
|
560
|
+
target: "_blank"
|
|
561
|
+
})
|
|
562
|
+
},
|
|
563
|
+
values: {
|
|
564
|
+
integration: integrationName || neetoCist.humanize(integration)
|
|
565
|
+
}
|
|
566
|
+
})
|
|
567
|
+
}), children, /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
568
|
+
className: "flex w-full items-center gap-x-3",
|
|
569
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread$1({
|
|
570
|
+
label: t("neetoIntegrations.common.connect"),
|
|
571
|
+
onClick: onConnect
|
|
572
|
+
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread$1({
|
|
573
|
+
style: "secondary"
|
|
574
|
+
}, secondaryButtonProps))]
|
|
575
|
+
})]
|
|
576
|
+
});
|
|
519
577
|
});
|
|
520
578
|
Connect.prototypes = {
|
|
521
579
|
/**
|
|
@@ -589,6 +647,8 @@ const SvgSuccess = props => /*#__PURE__*/React__namespace.createElement("svg", _
|
|
|
589
647
|
height: 344
|
|
590
648
|
}))));
|
|
591
649
|
|
|
650
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
651
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
592
652
|
var Finish = reactUtils.withT(function (_ref) {
|
|
593
653
|
var t = _ref.t,
|
|
594
654
|
_ref$onClick = _ref.onClick,
|
|
@@ -600,20 +660,23 @@ var Finish = reactUtils.withT(function (_ref) {
|
|
|
600
660
|
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
601
661
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
602
662
|
children = _ref.children;
|
|
603
|
-
return /*#__PURE__*/
|
|
604
|
-
className: "mx-auto w-full max-w-3xl"
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
663
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
664
|
+
className: "mx-auto w-full max-w-3xl",
|
|
665
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(SvgSuccess, {}), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
666
|
+
className: "mb-6 mt-4",
|
|
667
|
+
style: "h2",
|
|
668
|
+
weight: "semibold",
|
|
669
|
+
children: title
|
|
670
|
+
}), children, /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
671
|
+
className: "flex w-full items-center gap-x-2",
|
|
672
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread({
|
|
673
|
+
onClick: onClick,
|
|
674
|
+
label: t("neetoIntegrations.common.continue")
|
|
675
|
+
}, buttonProps)), neetoCist.isNotEmpty(secondaryButtonProps) && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], _objectSpread({
|
|
676
|
+
style: "secondary"
|
|
677
|
+
}, secondaryButtonProps))]
|
|
678
|
+
})]
|
|
679
|
+
});
|
|
617
680
|
});
|
|
618
681
|
Finish.prototypes = {
|
|
619
682
|
/**
|
|
@@ -675,6 +738,7 @@ var Form = function Form(_ref) {
|
|
|
675
738
|
breadcrumbs = _ref.breadcrumbs;
|
|
676
739
|
var _useTranslation = reactI18next.useTranslation(),
|
|
677
740
|
t = _useTranslation.t;
|
|
741
|
+
var history = reactRouterDom.useHistory();
|
|
678
742
|
var _useState = React.useState(false),
|
|
679
743
|
_useState2 = _slicedToArray(_useState, 2),
|
|
680
744
|
isDemoModalOpen = _useState2[0],
|
|
@@ -690,70 +754,78 @@ var Form = function Form(_ref) {
|
|
|
690
754
|
return createDaily(payload);
|
|
691
755
|
};
|
|
692
756
|
if (isConnecting) {
|
|
693
|
-
return /*#__PURE__*/
|
|
757
|
+
return /*#__PURE__*/jsxRuntime.jsx(PageLoader__default["default"], {});
|
|
694
758
|
}
|
|
695
|
-
return /*#__PURE__*/
|
|
696
|
-
isHeaderFixed: true
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
759
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Container__default["default"], {
|
|
760
|
+
isHeaderFixed: true,
|
|
761
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Header__default["default"], {
|
|
762
|
+
breadcrumbs: breadcrumbs,
|
|
763
|
+
title: /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
764
|
+
className: "flex items-center gap-2",
|
|
765
|
+
children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsxRuntime.jsx(HelpPopover__default["default"], {
|
|
766
|
+
title: t("neetoIntegrations.daily.connect.title"),
|
|
767
|
+
description: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
768
|
+
i18nKey: "neetoIntegrations.daily.helpDoc",
|
|
769
|
+
components: {
|
|
770
|
+
externalLink: /*#__PURE__*/jsxRuntime.jsx(ExternalLink$1, {
|
|
771
|
+
"data-cy": "api-key-help-doc-link",
|
|
772
|
+
href: helpDocUrl,
|
|
773
|
+
rel: "noreferrer",
|
|
774
|
+
target: "_blank"
|
|
775
|
+
})
|
|
776
|
+
}
|
|
777
|
+
}),
|
|
778
|
+
helpLinkProps: {
|
|
779
|
+
label: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
780
|
+
className: "mt-8",
|
|
781
|
+
label: t("neetoIntegrations.daily.walkthroughText"),
|
|
782
|
+
style: "link",
|
|
783
|
+
onClick: function onClick() {
|
|
784
|
+
return setIsDemoModalOpen(true);
|
|
785
|
+
}
|
|
786
|
+
})
|
|
721
787
|
}
|
|
788
|
+
})]
|
|
789
|
+
})
|
|
790
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
791
|
+
className: "mx-auto w-full max-w-md",
|
|
792
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(FormikFormWrapper__default["default"], {
|
|
793
|
+
formikProps: {
|
|
794
|
+
initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
|
|
795
|
+
validationSchema: DAILY_CO_VALIDATION_SCHEMA,
|
|
796
|
+
onSubmit: handleSubmit
|
|
797
|
+
},
|
|
798
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
799
|
+
className: "mt-14 w-full space-y-2",
|
|
800
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
801
|
+
className: "block min-h-20",
|
|
802
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
|
|
803
|
+
autoFocus: true,
|
|
804
|
+
required: true,
|
|
805
|
+
label: t("neetoIntegrations.daily.apiKey"),
|
|
806
|
+
name: "apiKey"
|
|
807
|
+
})
|
|
808
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ActionBlock__default["default"], {
|
|
809
|
+
cancelButtonProps: {
|
|
810
|
+
onClick: function onClick() {
|
|
811
|
+
return history.goBack();
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
isSubmitting: isConnecting,
|
|
815
|
+
submitButtonProps: {
|
|
816
|
+
label: t("neetoIntegrations.common.connect")
|
|
817
|
+
}
|
|
818
|
+
})]
|
|
722
819
|
})
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
}
|
|
733
|
-
}, function (_ref2) {
|
|
734
|
-
var dirty = _ref2.dirty;
|
|
735
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
736
|
-
className: "mt-14 w-full space-y-5"
|
|
737
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
738
|
-
className: "block min-h-20"
|
|
739
|
-
}, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
740
|
-
autoFocus: true,
|
|
741
|
-
required: true,
|
|
742
|
-
label: t("neetoIntegrations.daily.apiKey"),
|
|
743
|
-
name: "apiKey"
|
|
744
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
745
|
-
disabled: isConnecting || !dirty,
|
|
746
|
-
label: t("neetoIntegrations.common.connect"),
|
|
747
|
-
loading: isConnecting,
|
|
748
|
-
type: "submit"
|
|
749
|
-
})));
|
|
750
|
-
}), /*#__PURE__*/React__default["default"].createElement(WalkthroughModal__default["default"], {
|
|
751
|
-
videoUrl: videoUrl,
|
|
752
|
-
isOpen: isDemoModalOpen,
|
|
753
|
-
onClose: function onClose() {
|
|
754
|
-
return setIsDemoModalOpen(false);
|
|
755
|
-
}
|
|
756
|
-
})));
|
|
820
|
+
}), /*#__PURE__*/jsxRuntime.jsx(WalkthroughModal__default["default"], {
|
|
821
|
+
videoUrl: videoUrl,
|
|
822
|
+
isOpen: isDemoModalOpen,
|
|
823
|
+
onClose: function onClose() {
|
|
824
|
+
return setIsDemoModalOpen(false);
|
|
825
|
+
}
|
|
826
|
+
})]
|
|
827
|
+
})]
|
|
828
|
+
});
|
|
757
829
|
};
|
|
758
830
|
var Form$1 = reactUtils.withTitle(Form, i18next__default["default"].t("neetoIntegrations.browserTitles.integrations.dailyco"));
|
|
759
831
|
|
|
@@ -787,8 +859,8 @@ var Manage = function Manage(_ref) {
|
|
|
787
859
|
var handleDisconnect = function handleDisconnect() {
|
|
788
860
|
return destroyIntegration("daily");
|
|
789
861
|
};
|
|
790
|
-
if (isFetching || isDisconnecting) return /*#__PURE__*/
|
|
791
|
-
return /*#__PURE__*/
|
|
862
|
+
if (isFetching || isDisconnecting) return /*#__PURE__*/jsxRuntime.jsx(PageLoader__default["default"], {});
|
|
863
|
+
return /*#__PURE__*/jsxRuntime.jsx(Manage$1, {
|
|
792
864
|
isConnected: isConnected,
|
|
793
865
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
794
866
|
isDisconnecting: isDisconnecting,
|
|
@@ -798,19 +870,19 @@ var Manage = function Manage(_ref) {
|
|
|
798
870
|
connect: true
|
|
799
871
|
}),
|
|
800
872
|
integration: "daily",
|
|
801
|
-
description: isConnected ? /*#__PURE__*/
|
|
873
|
+
description: isConnected ? /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
802
874
|
i18nKey: "neetoIntegrations.daily.yourApiKey",
|
|
803
875
|
values: {
|
|
804
876
|
apiKey: apiKey
|
|
805
877
|
},
|
|
806
878
|
components: {
|
|
807
|
-
wrapper: /*#__PURE__*/
|
|
879
|
+
wrapper: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
808
880
|
className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
|
|
809
881
|
}),
|
|
810
|
-
span: /*#__PURE__*/
|
|
882
|
+
span: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
811
883
|
className: "break-all text-sm"
|
|
812
884
|
}),
|
|
813
|
-
copy: /*#__PURE__*/
|
|
885
|
+
copy: /*#__PURE__*/jsxRuntime.jsx(CopyToClipboardButton__default["default"], {
|
|
814
886
|
className: "flex-shrink-0 self-start",
|
|
815
887
|
style: "text",
|
|
816
888
|
value: apiKey
|
|
@@ -849,12 +921,12 @@ var Daily = function Daily(_ref) {
|
|
|
849
921
|
_ref2$apiKey = _ref2.apiKey,
|
|
850
922
|
apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
|
|
851
923
|
if (neetoCist.isPresent(apiKey) && !isOnboarding || !connect) {
|
|
852
|
-
return /*#__PURE__*/
|
|
924
|
+
return /*#__PURE__*/jsxRuntime.jsx(Manage, {
|
|
853
925
|
description: description,
|
|
854
926
|
onDisconnect: onDisconnect
|
|
855
927
|
});
|
|
856
928
|
}
|
|
857
|
-
return /*#__PURE__*/
|
|
929
|
+
return /*#__PURE__*/jsxRuntime.jsx(Form$1, {
|
|
858
930
|
helpDocUrl: helpDocUrl,
|
|
859
931
|
onConnect: onConnect,
|
|
860
932
|
videoUrl: videoUrl
|