@bigbinary/neeto-integrations-frontend 3.0.0 → 3.1.0
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 +26 -75
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +24 -72
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +25 -74
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +26 -74
- package/dist/GoogleCalender.js.map +1 -1
- package/dist/Twilio.cjs.js.map +1 -1
- package/dist/Twilio.js.map +1 -1
- package/dist/ZapierForm.cjs.js +1 -1
- package/dist/ZapierForm.cjs.js.map +1 -1
- package/dist/ZapierForm.js +1 -1
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.cjs.js +20 -69
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +21 -69
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +28 -77
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +28 -76
- package/dist/index.js.map +1 -1
- package/package.json +15 -13
package/dist/index.js
CHANGED
|
@@ -3,8 +3,6 @@ import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAle
|
|
|
3
3
|
export { default as DisconnectAlert } from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
4
4
|
import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
5
5
|
export { default as WalkthroughModal } from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
import React__default, { useState, useEffect, useRef } from 'react';
|
|
8
6
|
import classnames from 'classnames';
|
|
9
7
|
import { humanize, noop, isPresent, keysToSnakeCase, _findBy, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
10
8
|
import { withT, useMutationWithInvalidation, withTitle, useQueryParams, useStateWithDependency } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -17,6 +15,8 @@ import i18next, { t as t$1 } from 'i18next';
|
|
|
17
15
|
import { useQuery } from '@tanstack/react-query';
|
|
18
16
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
19
17
|
import axios from 'axios';
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import { useState, useEffect, useRef } from 'react';
|
|
20
20
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
21
21
|
import Header from '@bigbinary/neeto-molecules/Header';
|
|
22
22
|
import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
|
|
@@ -25,11 +25,11 @@ import Input from '@bigbinary/neetoui/formik/Input';
|
|
|
25
25
|
import FormikForm from '@bigbinary/neetoui/formik/Form';
|
|
26
26
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
27
27
|
import { useHistory } from 'react-router-dom';
|
|
28
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
29
28
|
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
30
29
|
import GoogleCalendarIcon from '@bigbinary/neeto-icons/misc/GoogleCalendar';
|
|
31
30
|
import Google from '@bigbinary/neeto-icons/misc/Google';
|
|
32
31
|
import Callout from '@bigbinary/neetoui/Callout';
|
|
32
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
33
33
|
import { prop, equals, isEmpty } from 'ramda';
|
|
34
34
|
import Select from '@bigbinary/neetoui/formik/Select';
|
|
35
35
|
import * as yup from 'yup';
|
|
@@ -79,8 +79,8 @@ function _defineProperty(obj, key, value) {
|
|
|
79
79
|
return obj;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
function ownKeys$
|
|
83
|
-
function _objectSpread$
|
|
82
|
+
function ownKeys$7(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; }
|
|
83
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
84
84
|
var Manage$1 = withT(function (_ref) {
|
|
85
85
|
var t = _ref.t,
|
|
86
86
|
_ref$title = _ref.title,
|
|
@@ -179,7 +179,7 @@ var Manage$1 = withT(function (_ref) {
|
|
|
179
179
|
})]
|
|
180
180
|
}), isConnected ? /*#__PURE__*/jsxs("div", {
|
|
181
181
|
className: "space-x-2",
|
|
182
|
-
children: [(managePath || manageUrl) && /*#__PURE__*/jsx(Button, _objectSpread$
|
|
182
|
+
children: [(managePath || manageUrl) && /*#__PURE__*/jsx(Button, _objectSpread$7({
|
|
183
183
|
"data-cy": "manage-button",
|
|
184
184
|
href: manageUrl,
|
|
185
185
|
target: manageUrl ? "_blank" : "_self",
|
|
@@ -187,7 +187,7 @@ var Manage$1 = withT(function (_ref) {
|
|
|
187
187
|
label: t("neetoIntegrations.common.manageIntegration", {
|
|
188
188
|
integration: integrationName || humanize(integration)
|
|
189
189
|
})
|
|
190
|
-
}, buttonProps)), onDisconnect && /*#__PURE__*/jsx(Button, _objectSpread$
|
|
190
|
+
}, buttonProps)), onDisconnect && /*#__PURE__*/jsx(Button, _objectSpread$7({
|
|
191
191
|
"data-cy": "disconnect-button",
|
|
192
192
|
style: "secondary",
|
|
193
193
|
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
@@ -198,11 +198,11 @@ var Manage$1 = withT(function (_ref) {
|
|
|
198
198
|
}
|
|
199
199
|
}, secondaryButtonProps))]
|
|
200
200
|
}) : /*#__PURE__*/jsx("div", {
|
|
201
|
-
children: /*#__PURE__*/jsx(Tooltip, _objectSpread$
|
|
201
|
+
children: /*#__PURE__*/jsx(Tooltip, _objectSpread$7(_objectSpread$7({
|
|
202
202
|
disabled: !isConnectDisabled
|
|
203
203
|
}, connectTooltipProps), {}, {
|
|
204
204
|
children: /*#__PURE__*/jsx("span", {
|
|
205
|
-
children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsx(Button, _objectSpread$
|
|
205
|
+
children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsx(Button, _objectSpread$7({
|
|
206
206
|
"data-cy": "connect-button",
|
|
207
207
|
disabled: isConnectDisabled,
|
|
208
208
|
href: connectUrl,
|
|
@@ -257,11 +257,11 @@ var QUERY_KEYS = {
|
|
|
257
257
|
ZOOM_DETAILS: "zoom-details"
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
function ownKeys$
|
|
261
|
-
function _objectSpread$
|
|
260
|
+
function ownKeys$6(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; }
|
|
261
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
262
262
|
var useCreateDaily = function useCreateDaily() {
|
|
263
263
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
264
|
-
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$
|
|
264
|
+
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$6({
|
|
265
265
|
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]]
|
|
266
266
|
}, options));
|
|
267
267
|
};
|
|
@@ -335,52 +335,6 @@ function _slicedToArray(arr, i) {
|
|
|
335
335
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
339
|
-
if (source == null) return {};
|
|
340
|
-
var target = {};
|
|
341
|
-
var sourceKeys = Object.keys(source);
|
|
342
|
-
var key, i;
|
|
343
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
344
|
-
key = sourceKeys[i];
|
|
345
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
346
|
-
target[key] = source[key];
|
|
347
|
-
}
|
|
348
|
-
return target;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
function _objectWithoutProperties(source, excluded) {
|
|
352
|
-
if (source == null) return {};
|
|
353
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
354
|
-
var key, i;
|
|
355
|
-
if (Object.getOwnPropertySymbols) {
|
|
356
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
357
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
358
|
-
key = sourceSymbolKeys[i];
|
|
359
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
360
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
361
|
-
target[key] = source[key];
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
return target;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
var _excluded = ["className", "children"];
|
|
368
|
-
function ownKeys$6(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; }
|
|
369
|
-
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
370
|
-
var ExternalLink = function ExternalLink(_ref) {
|
|
371
|
-
var _ref$className = _ref.className,
|
|
372
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
373
|
-
_ref$children = _ref.children,
|
|
374
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
375
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
376
|
-
return /*#__PURE__*/jsx("a", _objectSpread$6(_objectSpread$6({
|
|
377
|
-
className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
378
|
-
}, props), {}, {
|
|
379
|
-
children: children
|
|
380
|
-
}));
|
|
381
|
-
};
|
|
382
|
-
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
383
|
-
|
|
384
338
|
var MANAGE_DAILY_CO_FORM_INITIAL_VALUES = {
|
|
385
339
|
apiKey: ""
|
|
386
340
|
};
|
|
@@ -423,26 +377,24 @@ var Form = function Form(_ref) {
|
|
|
423
377
|
className: "flex items-center gap-2",
|
|
424
378
|
children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
|
|
425
379
|
title: t("neetoIntegrations.daily.connect.title"),
|
|
426
|
-
description: /*#__PURE__*/jsx(
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
label: /*#__PURE__*/jsx(Button, {
|
|
439
|
-
className: "mt-8",
|
|
440
|
-
label: t("neetoIntegrations.daily.walkthroughText"),
|
|
441
|
-
style: "link",
|
|
442
|
-
onClick: function onClick() {
|
|
443
|
-
return setIsDemoModalOpen(true);
|
|
380
|
+
description: /*#__PURE__*/jsx(Typography, {
|
|
381
|
+
lineHeight: "normal",
|
|
382
|
+
style: "body2",
|
|
383
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
384
|
+
i18nKey: "neetoIntegrations.daily.helpDoc",
|
|
385
|
+
components: {
|
|
386
|
+
videoLink: /*#__PURE__*/jsx(Button, {
|
|
387
|
+
style: "link",
|
|
388
|
+
onClick: function onClick() {
|
|
389
|
+
return setIsDemoModalOpen(true);
|
|
390
|
+
}
|
|
391
|
+
})
|
|
444
392
|
}
|
|
445
393
|
})
|
|
394
|
+
}),
|
|
395
|
+
helpLinkProps: {
|
|
396
|
+
href: helpDocUrl,
|
|
397
|
+
"data-cy": "api-key-help-doc-link"
|
|
446
398
|
}
|
|
447
399
|
})]
|
|
448
400
|
})
|