@bigbinary/neeto-integrations-frontend 4.2.8 → 5.0.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 +9 -9
- package/dist/.ready +1 -1
- package/dist/Connect.js +1 -3
- package/dist/Connect.js.map +1 -1
- package/dist/Daily.js +2 -2
- package/dist/Daily.js.map +1 -1
- package/dist/DailyForm.js +2 -2
- package/dist/DailyForm.js.map +1 -1
- package/dist/Demo.js.map +1 -1
- package/dist/DisconnectAlert.js +1 -3
- package/dist/DisconnectAlert.js.map +1 -1
- package/dist/Finish.js +29 -6
- package/dist/Finish.js.map +1 -1
- package/dist/GoogleCalendar.js +1 -4
- package/dist/GoogleCalendar.js.map +1 -1
- package/dist/Manage.js +1 -3
- package/dist/Manage.js.map +1 -1
- package/dist/Modal.js.map +1 -1
- package/dist/Telnyx.js +8 -8
- package/dist/Telnyx.js.map +1 -1
- package/dist/Twilio.js +2 -4
- package/dist/Twilio.js.map +1 -1
- package/dist/WalkthroughModal.js.map +1 -1
- package/dist/ZapierForm.js +2 -6
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.js +1 -1
- package/dist/Zoom.js.map +1 -1
- package/dist/cjs/Connect.js +1 -3
- package/dist/cjs/Connect.js.map +1 -1
- package/dist/cjs/Daily.js +2 -2
- package/dist/cjs/Daily.js.map +1 -1
- package/dist/cjs/DailyForm.js +2 -2
- package/dist/cjs/DailyForm.js.map +1 -1
- package/dist/cjs/Demo.js.map +1 -1
- package/dist/cjs/DisconnectAlert.js +1 -3
- package/dist/cjs/DisconnectAlert.js.map +1 -1
- package/dist/cjs/Finish.js +48 -6
- package/dist/cjs/Finish.js.map +1 -1
- package/dist/cjs/GoogleCalendar.js +1 -4
- package/dist/cjs/GoogleCalendar.js.map +1 -1
- package/dist/cjs/Manage.js +1 -3
- package/dist/cjs/Manage.js.map +1 -1
- package/dist/cjs/Modal.js.map +1 -1
- package/dist/cjs/Telnyx.js +8 -8
- package/dist/cjs/Telnyx.js.map +1 -1
- package/dist/cjs/Twilio.js +2 -4
- package/dist/cjs/Twilio.js.map +1 -1
- package/dist/cjs/WalkthroughModal.js.map +1 -1
- package/dist/cjs/ZapierForm.js +2 -6
- package/dist/cjs/ZapierForm.js.map +1 -1
- package/dist/cjs/Zoom.js +1 -1
- package/dist/cjs/Zoom.js.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/v2/Connect.js +48 -46
- package/dist/cjs/v2/Connect.js.map +1 -1
- package/dist/cjs/v2/Daily.js +5 -3
- package/dist/cjs/v2/Daily.js.map +1 -1
- package/dist/cjs/v2/DailyForm.js +2 -2
- package/dist/cjs/v2/DailyForm.js.map +1 -1
- package/dist/cjs/v2/Demo.js.map +1 -1
- package/dist/cjs/v2/DisconnectAlert.js +1 -3
- package/dist/cjs/v2/DisconnectAlert.js.map +1 -1
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +1 -3
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/dist/cjs/v2/Finish.js +4 -6
- package/dist/cjs/v2/Finish.js.map +1 -1
- package/dist/cjs/v2/GoogleCalendar.js +1 -4
- package/dist/cjs/v2/GoogleCalendar.js.map +1 -1
- package/dist/cjs/v2/GoogleMapsForm.js +2 -2
- package/dist/cjs/v2/GoogleMapsForm.js.map +1 -1
- package/dist/cjs/v2/GoogleMapsIcon.js.map +1 -1
- package/dist/cjs/v2/GoogleMapsManage.js +5 -3
- package/dist/cjs/v2/GoogleMapsManage.js.map +1 -1
- package/dist/cjs/v2/Manage.js +70 -91
- package/dist/cjs/v2/Manage.js.map +1 -1
- package/dist/cjs/v2/Modal.js +1 -1
- package/dist/cjs/v2/Modal.js.map +1 -1
- package/dist/cjs/v2/SmsLogs.js +3 -9
- package/dist/cjs/v2/SmsLogs.js.map +1 -1
- package/dist/cjs/v2/Telnyx.js +26 -43
- package/dist/cjs/v2/Telnyx.js.map +1 -1
- package/dist/cjs/v2/Twilio.js +20 -39
- package/dist/cjs/v2/Twilio.js.map +1 -1
- package/dist/cjs/v2/WalkthroughModal.js.map +1 -1
- package/dist/cjs/v2/ZapierForm.js +4 -7
- package/dist/cjs/v2/ZapierForm.js.map +1 -1
- package/dist/cjs/v2/Zoom.js +4 -2
- package/dist/cjs/v2/Zoom.js.map +1 -1
- package/dist/cjs/v2/index.js +11 -8
- package/dist/cjs/v2/index.js.map +1 -1
- package/dist/index-MS1ts-9f.js.map +1 -1
- package/dist/index-dxk7jTL7.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/query-CyER0UTx.js.map +1 -1
- package/dist/query-DFg4la-L.js.map +1 -1
- package/dist/{useDailiesApi-CMyuK99l.js → useDailiesApi-BIZR1qiD.js} +2 -4
- package/dist/useDailiesApi-BIZR1qiD.js.map +1 -0
- package/dist/{useDailiesApi-BmI2LDF7.js → useDailiesApi-BS8aif9t.js} +2 -4
- package/dist/useDailiesApi-BS8aif9t.js.map +1 -0
- package/dist/useDisconnectionAlertsApi-BGaBOO_4.js.map +1 -1
- package/dist/useDisconnectionAlertsApi-BW25EN1l.js.map +1 -1
- package/dist/{useGoogleMapsApi-DypGXFnl.js → useGoogleMapsApi-DcJ5vTJZ.js} +2 -4
- package/dist/useGoogleMapsApi-DcJ5vTJZ.js.map +1 -0
- package/dist/{useGoogleMapsApi-BY5ZIbh1.js → useGoogleMapsApi-sMsxsnL9.js} +2 -4
- package/dist/useGoogleMapsApi-sMsxsnL9.js.map +1 -0
- package/dist/{useTelnyxApi-DH5XaYIo.js → useTelnyxApi-CqB3f44W.js} +2 -4
- package/dist/useTelnyxApi-CqB3f44W.js.map +1 -0
- package/dist/{useTelnyxApi-WH39oUwB.js → useTelnyxApi-fFpslv-E.js} +2 -4
- package/dist/useTelnyxApi-fFpslv-E.js.map +1 -0
- package/dist/{useTwilioApi-CYF8UIPN.js → useTwilioApi-BwkrNBtg.js} +2 -4
- package/dist/useTwilioApi-BwkrNBtg.js.map +1 -0
- package/dist/{useTwilioApi-nN6VRQYc.js → useTwilioApi-CEaEH5MG.js} +2 -4
- package/dist/useTwilioApi-CEaEH5MG.js.map +1 -0
- package/dist/useZoomApi-Be2unav5.js.map +1 -1
- package/dist/useZoomApi-i5CNstmT.js.map +1 -1
- package/dist/utils-fchHJTr3.js +44 -0
- package/dist/utils-fchHJTr3.js.map +1 -0
- package/dist/utils-jyxIYRHb.js +47 -0
- package/dist/utils-jyxIYRHb.js.map +1 -0
- package/dist/v2/Connect.js +48 -46
- package/dist/v2/Connect.js.map +1 -1
- package/dist/v2/Daily.js +5 -3
- package/dist/v2/Daily.js.map +1 -1
- package/dist/v2/DailyForm.js +2 -2
- package/dist/v2/DailyForm.js.map +1 -1
- package/dist/v2/Demo.js.map +1 -1
- package/dist/v2/DisconnectAlert.js +1 -3
- package/dist/v2/DisconnectAlert.js.map +1 -1
- package/dist/v2/DisconnectedIntegrationsRibbon.js +1 -3
- package/dist/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/dist/v2/Finish.js +6 -8
- package/dist/v2/Finish.js.map +1 -1
- package/dist/v2/GoogleCalendar.js +1 -4
- package/dist/v2/GoogleCalendar.js.map +1 -1
- package/dist/v2/GoogleMapsForm.js +2 -2
- package/dist/v2/GoogleMapsForm.js.map +1 -1
- package/dist/v2/GoogleMapsIcon.js.map +1 -1
- package/dist/v2/GoogleMapsManage.js +5 -3
- package/dist/v2/GoogleMapsManage.js.map +1 -1
- package/dist/v2/Manage.js +72 -93
- package/dist/v2/Manage.js.map +1 -1
- package/dist/v2/Modal.js +1 -1
- package/dist/v2/Modal.js.map +1 -1
- package/dist/v2/SmsLogs.js +3 -9
- package/dist/v2/SmsLogs.js.map +1 -1
- package/dist/v2/Telnyx.js +27 -44
- package/dist/v2/Telnyx.js.map +1 -1
- package/dist/v2/Twilio.js +21 -40
- package/dist/v2/Twilio.js.map +1 -1
- package/dist/v2/WalkthroughModal.js.map +1 -1
- package/dist/v2/ZapierForm.js +4 -7
- package/dist/v2/ZapierForm.js.map +1 -1
- package/dist/v2/Zoom.js +4 -2
- package/dist/v2/Zoom.js.map +1 -1
- package/dist/v2/index.js +11 -8
- package/dist/v2/index.js.map +1 -1
- package/package.json +19 -18
- package/dist/success-C6rQdhhF.js +0 -30
- package/dist/success-C6rQdhhF.js.map +0 -1
- package/dist/success-CsNvTPBG.js +0 -51
- package/dist/success-CsNvTPBG.js.map +0 -1
- package/dist/useDailiesApi-BmI2LDF7.js.map +0 -1
- package/dist/useDailiesApi-CMyuK99l.js.map +0 -1
- package/dist/useGoogleMapsApi-BY5ZIbh1.js.map +0 -1
- package/dist/useGoogleMapsApi-DypGXFnl.js.map +0 -1
- package/dist/useTelnyxApi-DH5XaYIo.js.map +0 -1
- package/dist/useTelnyxApi-WH39oUwB.js.map +0 -1
- package/dist/useTwilioApi-CYF8UIPN.js.map +0 -1
- package/dist/useTwilioApi-nN6VRQYc.js.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
// Dark mode only: a light chip filling the logo tile, applied when the logo
|
|
8
|
+
// is drawn with fixed brand colours (a hex fill) rather than currentColor.
|
|
9
|
+
var BRAND_LOGO_CHIP_CLASSES = "inline-flex shrink-0 items-center justify-center dark:has-[[fill^='#']]:size-14 dark:has-[[fill^='#']]:rounded-2xl dark:has-[[fill^='#']]:bg-primary-foreground";
|
|
10
|
+
|
|
11
|
+
// Neeto product logos are drawn edge to edge, brand logos (Slack, Drive…) with
|
|
12
|
+
// built-in padding, so at the same size a Neeto logo reads bigger. Draw them a
|
|
13
|
+
// step smaller (as molecules' integration cards do) so the glyphs match.
|
|
14
|
+
var BRAND_LOGO_SIZE = 32;
|
|
15
|
+
var NEETO_LOGO_SIZE = 27;
|
|
16
|
+
var NEETO_INTEGRATION = /^neeto/i;
|
|
17
|
+
|
|
18
|
+
var _excluded = ["icon", "size"];
|
|
19
|
+
var BrandLogo = function BrandLogo(_ref) {
|
|
20
|
+
var Icon = _ref.icon,
|
|
21
|
+
size = _ref.size,
|
|
22
|
+
iconProps = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
24
|
+
className: BRAND_LOGO_CHIP_CLASSES,
|
|
25
|
+
"data-slot": "brand-logo",
|
|
26
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, _objectSpread(_objectSpread({}, _objectSpread({
|
|
27
|
+
size: size
|
|
28
|
+
}, iconProps)), {}, {
|
|
29
|
+
style: size ? {
|
|
30
|
+
width: size,
|
|
31
|
+
height: size
|
|
32
|
+
} : undefined
|
|
33
|
+
}))
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var getBrandLogoSize = function getBrandLogoSize(_ref) {
|
|
38
|
+
var integration = _ref.integration,
|
|
39
|
+
integrationName = _ref.integrationName;
|
|
40
|
+
return [integration, integrationName].some(function (name) {
|
|
41
|
+
return NEETO_INTEGRATION.test(name !== null && name !== void 0 ? name : "");
|
|
42
|
+
}) ? NEETO_LOGO_SIZE : BRAND_LOGO_SIZE;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.BrandLogo = BrandLogo;
|
|
46
|
+
exports.getBrandLogoSize = getBrandLogoSize;
|
|
47
|
+
//# sourceMappingURL=utils-jyxIYRHb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-jyxIYRHb.js","sources":["../app/javascript/src/v2/components/commons/constants.js","../app/javascript/src/v2/components/commons/BrandLogo.jsx","../app/javascript/src/v2/components/commons/utils.js"],"sourcesContent":["// Dark mode only: a light chip filling the logo tile, applied when the logo\n// is drawn with fixed brand colours (a hex fill) rather than currentColor.\nexport const BRAND_LOGO_CHIP_CLASSES =\n \"inline-flex shrink-0 items-center justify-center dark:has-[[fill^='#']]:size-14 dark:has-[[fill^='#']]:rounded-2xl dark:has-[[fill^='#']]:bg-primary-foreground\";\n\n// Neeto product logos are drawn edge to edge, brand logos (Slack, Drive…) with\n// built-in padding, so at the same size a Neeto logo reads bigger. Draw them a\n// step smaller (as molecules' integration cards do) so the glyphs match.\nexport const BRAND_LOGO_SIZE = 32;\nexport const NEETO_LOGO_SIZE = 27;\nexport const NEETO_INTEGRATION = /^neeto/i;\n","import { BRAND_LOGO_CHIP_CLASSES } from \"./constants\";\n\n// v2 revamp: brand logos keep their own colours, and some have dark parts\n// (PayPal's navy, UPI's grey) that vanish on a dark logo tile. In dark mode a\n// logo drawn with fixed brand colours sits on a light chip that fills the\n// tile, the usual treatment for brand logos on dark surfaces. Single-colour\n// icons (drawn in currentColor) keep the plain tile. Light mode is unchanged:\n// the wrapper only lays the logo out the way the tile already does.\n// The size is also set inline: the molecules card tile sizes every svg to 32px\n// with a class, which would undo the smaller size of Neeto logos.\nconst BrandLogo = ({ icon: Icon, size, ...iconProps }) => (\n <span className={BRAND_LOGO_CHIP_CLASSES} data-slot=\"brand-logo\">\n <Icon\n {...{ size, ...iconProps }}\n style={size ? { width: size, height: size } : undefined}\n />\n </span>\n);\n\nexport default BrandLogo;\n","import {\n BRAND_LOGO_SIZE,\n NEETO_INTEGRATION,\n NEETO_LOGO_SIZE,\n} from \"./constants\";\n\nexport const getBrandLogoSize = ({ integration, integrationName }) =>\n [integration, integrationName].some(name =>\n NEETO_INTEGRATION.test(name ?? \"\")\n )\n ? NEETO_LOGO_SIZE\n : BRAND_LOGO_SIZE;\n"],"names":["_jsx"],"mappings":";;;;;;AAAA;AACA;AACO,IAAM,uBAAuB,GAClC,iKAAiK;;AAEnK;AACA;AACA;AACO,IAAM,eAAe,GAAG,EAAE;AAC1B,IAAM,eAAe,GAAG,EAAE;AAC1B,IAAM,iBAAiB,GAAG,SAAS;;;ACA1C,IAAM,SAAS,GAAG,SAAZ,SAAS,CAAA,IAAA,EAAA;EAAA,IAAY,IAAI,QAAV,IAAI;AAAQ,IAAA,IAAI,QAAJ,IAAI;IAAK,SAAS,GAAA,wBAAA,CAAA,IAAA,EAAA,SAAA,CAAA;EAAA,oBACjDA,cAAA,CAAA,MAAA,EAAA;AAAM,IAAA,SAAS,EAAE,uBAAwB;AAAC,IAAA,WAAA,EAAU,YAAY;AAAA,IAAA,QAAA,eAC9DA,eAAC,IAAI,EAAA,aAAA,CAAA,aAAA,CAAA,EAAA,EAAA,aAAA,CAAA;AACG,MAAA,IAAI,EAAJ;AAAI,KAAA,EAAK,SAAS,CAAA,CAAA,EAAA,EAAA,EAAA;MACxB,KAAK,EAAE,IAAI,GAAG;AAAE,QAAA,KAAK,EAAE,IAAI;AAAE,QAAA,MAAM,EAAE;AAAK,OAAC,GAAG;KAAU,CACzD;AAAC,GACE,CAAC;AAAA;;ACVF,IAAM,gBAAgB,GAAG,SAAnB,gBAAgB,CAAA,IAAA,EAAA;EAAA,IAAM,WAAW,QAAX,WAAW;AAAE,IAAA,eAAe,QAAf,eAAe;EAAA,OAC7D,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC,IAAI,CAAC,UAAA,IAAI,EAAA;IAAA,OACtC,iBAAiB,CAAC,IAAI,CAAC,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,MAAA,GAAJ,IAAI,GAAI,EAAE,CAAC;AAAA,EAAA,CACpC,CAAC,GACG,eAAe,GACf,eAAe;AAAA;;;;;"}
|
package/dist/v2/Connect.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import { Typography, Button } from '@bigbinary/neeto-atoms';
|
|
3
3
|
import { humanize, noop } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { withT } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
5
5
|
import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
6
6
|
import { P as PropTypes } from '../index-MS1ts-9f.js';
|
|
7
7
|
import { Trans } from 'react-i18next';
|
|
8
|
+
import { B as BrandLogo, g as getBrandLogoSize } from '../utils-fchHJTr3.js';
|
|
8
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
9
11
|
|
|
10
|
-
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; }
|
|
11
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
|
|
12
12
|
var Connect = withT(function (_ref) {
|
|
13
13
|
var t = _ref.t,
|
|
14
14
|
Icon = _ref.Icon,
|
|
@@ -28,49 +28,51 @@ var Connect = withT(function (_ref) {
|
|
|
28
28
|
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
29
29
|
children = _ref.children,
|
|
30
30
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
31
|
+
return (
|
|
32
|
+
/*#__PURE__*/
|
|
33
|
+
// v2 card system: the molecules feature card, like Manage, so connect and
|
|
34
|
+
// manage screens share one layout (logo tile, title, muted description,
|
|
35
|
+
// extra content and actions in the text column).
|
|
36
|
+
jsxs(CardLayout, {
|
|
37
|
+
description: description,
|
|
38
|
+
title: title,
|
|
39
|
+
variant: "feature",
|
|
40
|
+
actionBlock: /*#__PURE__*/jsxs("div", {
|
|
41
|
+
className: "flex w-full flex-wrap items-center gap-2",
|
|
42
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread({
|
|
43
|
+
label: t("neetoIntegrations.common.connect"),
|
|
44
|
+
onClick: onConnect
|
|
45
|
+
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread({
|
|
46
|
+
variant: "secondary"
|
|
47
|
+
}, secondaryButtonProps))]
|
|
48
|
+
}),
|
|
49
|
+
icon: Icon && /*#__PURE__*/jsx(BrandLogo, {
|
|
50
|
+
icon: Icon,
|
|
51
|
+
size: getBrandLogoSize({
|
|
52
|
+
integration: integration,
|
|
53
|
+
integrationName: integrationName
|
|
54
|
+
})
|
|
55
|
+
}),
|
|
56
|
+
children: [helpDocUrl && /*#__PURE__*/jsx(Typography, {
|
|
57
|
+
className: "text-muted-foreground text-sm leading-relaxed",
|
|
58
|
+
variant: "body2",
|
|
59
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
60
|
+
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
61
|
+
components: {
|
|
62
|
+
helpLink: /*#__PURE__*/jsx(Button, {
|
|
63
|
+
href: helpDocUrl,
|
|
64
|
+
rel: "noopener noreferrer",
|
|
65
|
+
target: "_blank",
|
|
66
|
+
variant: "link"
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
values: {
|
|
70
|
+
integration: integrationName || humanize(integration)
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
}), children]
|
|
74
|
+
})
|
|
75
|
+
);
|
|
74
76
|
});
|
|
75
77
|
Connect.prototypes = {
|
|
76
78
|
Icon: PropTypes.node,
|
package/dist/v2/Connect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connect.js","sources":["../../app/javascript/src/v2/components/Steps/Connect.jsx"],"sourcesContent":["import { Typography, Button } from \"
|
|
1
|
+
{"version":3,"file":"Connect.js","sources":["../../app/javascript/src/v2/components/Steps/Connect.jsx"],"sourcesContent":["import { Typography, Button } from \"neetoatoms\";\nimport { humanize, noop } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nimport BrandLogo from \"../commons/BrandLogo\";\nimport { getBrandLogoSize } from \"../commons/utils\";\n\nconst Connect = withT(\n ({\n t,\n Icon,\n title = \"\",\n description = \"\",\n integration = \"\",\n integrationName = \"\",\n helpDocUrl = \"\",\n buttonProps = {},\n onConnect = noop,\n children,\n secondaryButtonProps,\n }) => (\n // v2 card system: the molecules feature card, like Manage, so connect and\n // manage screens share one layout (logo tile, title, muted description,\n // extra content and actions in the text column).\n <CardLayout\n {...{ description, title }}\n variant=\"feature\"\n actionBlock={\n <div className=\"flex w-full flex-wrap items-center gap-2\">\n <Button\n label={t(\"neetoIntegrations.common.connect\")}\n onClick={onConnect}\n {...buttonProps}\n />\n {secondaryButtonProps && (\n <Button variant=\"secondary\" {...secondaryButtonProps} />\n )}\n </div>\n }\n icon={\n Icon && (\n <BrandLogo\n icon={Icon}\n size={getBrandLogoSize({ integration, integrationName })}\n />\n )\n }\n >\n {helpDocUrl && (\n <Typography\n className=\"text-muted-foreground text-sm leading-relaxed\"\n variant=\"body2\"\n >\n <Trans\n i18nKey=\"neetoIntegrations.common.helpDocUrl\"\n components={{\n helpLink: (\n <Button\n href={helpDocUrl}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n variant=\"link\"\n />\n ),\n }}\n values={{\n integration: integrationName || humanize(integration),\n }}\n />\n </Typography>\n )}\n {children}\n </CardLayout>\n )\n);\n\nConnect.prototypes = {\n Icon: PropTypes.node,\n title: PropTypes.string,\n description: PropTypes.string,\n buttonProps: PropTypes.object,\n onConnect: PropTypes.func,\n};\n\nexport default Connect;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;AAUA,IAAM,OAAO,GAAG,KAAK,CACnB,UAAA,IAAA,EAAA;EAAA,IACE,CAAC,QAAD,CAAC;AACD,IAAA,IAAI,QAAJ,IAAI;AAAA,IAAA,UAAA,GAAA,IAAA,CACJ,KAAK;AAAL,IAAA,KAAK,2BAAG,EAAE,GAAA,UAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACV,WAAW;AAAX,IAAA,WAAW,iCAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CAChB,WAAW;AAAX,IAAA,WAAW,iCAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,oBAAA,GAAA,IAAA,CAChB,eAAe;AAAf,IAAA,eAAe,qCAAG,EAAE,GAAA,oBAAA;AAAA,IAAA,eAAA,GAAA,IAAA,CACpB,UAAU;AAAV,IAAA,UAAU,gCAAG,EAAE,GAAA,eAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACf,WAAW;IAAX,WAAW,GAAA,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,cAAA,GAAA,IAAA,CAChB,SAAS;AAAT,IAAA,SAAS,+BAAG,IAAI,GAAA,cAAA;AAChB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Ae,IAAI,QAAQ,CAAC,WAAW;AACtD;SACD;OACS,CACb,EACA,QAAQ;KACC;AAAC;AAAA,CAEjB;AAEA,OAAO,CAAC,UAAU,GAAG;EACnB,IAAI,EAAE,SAAS,CAAC,IAAI;EACpB,KAAK,EAAE,SAAS,CAAC,MAAM;EACvB,WAAW,EAAE,SAAS,CAAC,MAAM;EAC7B,WAAW,EAAE,SAAS,CAAC,MAAM;EAC7B,SAAS,EAAE,SAAS,CAAC;AACvB,CAAC;;;;"}
|
package/dist/v2/Daily.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
2
|
import { isPresent, noop } from '@bigbinary/neeto-cist';
|
|
3
3
|
import { withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
4
|
-
import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-
|
|
4
|
+
import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-BIZR1qiD.js';
|
|
5
5
|
import Form from './DailyForm.js';
|
|
6
6
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import { useState } from 'react';
|
|
@@ -12,7 +12,7 @@ import CopyToClipboardButton from '@bigbinary/neeto-molecules/v2/CopyToClipboard
|
|
|
12
12
|
import { useTranslation, Trans } from 'react-i18next';
|
|
13
13
|
import Manage$1 from './Manage.js';
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
|
-
import '@babel/runtime/helpers/
|
|
15
|
+
import '@babel/runtime/helpers/objectSpread2';
|
|
16
16
|
import '@tanstack/react-query';
|
|
17
17
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -26,8 +26,9 @@ import 'react-router-dom';
|
|
|
26
26
|
import 'yup';
|
|
27
27
|
import './WalkthroughModal.js';
|
|
28
28
|
import '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
|
|
29
|
-
import '
|
|
29
|
+
import '../utils-fchHJTr3.js';
|
|
30
30
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
31
|
+
import './DisconnectAlert.js';
|
|
31
32
|
|
|
32
33
|
var Manage = function Manage(_ref) {
|
|
33
34
|
var description = _ref.description,
|
|
@@ -75,6 +76,7 @@ var Manage = function Manage(_ref) {
|
|
|
75
76
|
connect: true
|
|
76
77
|
}),
|
|
77
78
|
integration: "daily",
|
|
79
|
+
integrationName: t("neetoIntegrations.daily.title"),
|
|
78
80
|
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
79
81
|
i18nKey: "neetoIntegrations.daily.yourApiKey",
|
|
80
82
|
values: {
|
package/dist/v2/Daily.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Daily.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/Manage.jsx","../../app/javascript/src/v2/components/Integrations/Daily/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport { buildUrl } from \"neetocommons/v2/utils\";\nimport { Daily as DailyIcon } from \"neetoicons/misc\";\nimport CopyToClipboardButton from \"neetomolecules/v2/CopyToClipboardButton\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyDaily, useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Manage = ({ description, onDisconnect }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata = {} } = {}, isFetching } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n const { t } = useTranslation();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyDaily({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(apiKey);\n\n const handleDisconnect = () => destroyIntegration(\"daily\");\n\n if (isFetching || isDisconnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={DailyIcon}\n connectPath={buildUrl(window.location.pathname, { connect: true })}\n integration=\"daily\"\n description={\n isConnected ? (\n <Trans\n i18nKey=\"neetoIntegrations.daily.yourApiKey\"\n values={{ apiKey }}\n components={{\n wrapper: (\n <div className=\"mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2\" />\n ),\n span: <span className=\"break-all text-sm\" />,\n copy: (\n <CopyToClipboardButton\n className=\"shrink-0 self-start\"\n style=\"text\"\n value={apiKey}\n />\n ),\n }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.daily.connected\")\n : t(\"neetoIntegrations.daily.connect.account\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={handleDisconnect}\n />\n );\n};\n\nexport default Manage;\n","import i18next from \"i18next\";\nimport { isPresent, noop } from \"neetocist\";\nimport { useQueryParams, withTitle } from \"neetocommons/v2/react-utils\";\n\nimport { useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport Form from \"./Form\";\nimport Manage from \"./Manage\";\n\nconst Daily = ({\n isOnboarding = false,\n helpDocUrl = \"\",\n videoUrl = \"\",\n description = \"\",\n onConnect = noop,\n onDisconnect = noop,\n}) => {\n const { connect } = useQueryParams();\n\n const { data: { metadata = {} } = {} } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n if ((isPresent(apiKey) && !isOnboarding) || !connect) {\n return <Manage {...{ description, onDisconnect }} />;\n }\n\n return <Form {...{ helpDocUrl, onConnect, videoUrl }} />;\n};\n\nexport default withTitle(\n Daily,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["
|
|
1
|
+
{"version":3,"file":"Daily.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/Manage.jsx","../../app/javascript/src/v2/components/Integrations/Daily/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport { buildUrl } from \"neetocommons/v2/utils\";\nimport { Daily as DailyIcon } from \"neetoicons/misc\";\nimport CopyToClipboardButton from \"neetomolecules/v2/CopyToClipboardButton\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyDaily, useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Manage = ({ description, onDisconnect }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata = {} } = {}, isFetching } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n const { t } = useTranslation();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyDaily({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(apiKey);\n\n const handleDisconnect = () => destroyIntegration(\"daily\");\n\n if (isFetching || isDisconnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={DailyIcon}\n connectPath={buildUrl(window.location.pathname, { connect: true })}\n integration=\"daily\"\n integrationName={t(\"neetoIntegrations.daily.title\")}\n description={\n isConnected ? (\n <Trans\n i18nKey=\"neetoIntegrations.daily.yourApiKey\"\n values={{ apiKey }}\n components={{\n wrapper: (\n <div className=\"mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2\" />\n ),\n span: <span className=\"break-all text-sm\" />,\n copy: (\n <CopyToClipboardButton\n className=\"shrink-0 self-start\"\n style=\"text\"\n value={apiKey}\n />\n ),\n }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.daily.connected\")\n : t(\"neetoIntegrations.daily.connect.account\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={handleDisconnect}\n />\n );\n};\n\nexport default Manage;\n","import i18next from \"i18next\";\nimport { isPresent, noop } from \"neetocist\";\nimport { useQueryParams, withTitle } from \"neetocommons/v2/react-utils\";\n\nimport { useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport Form from \"./Form\";\nimport Manage from \"./Manage\";\n\nconst Daily = ({\n isOnboarding = false,\n helpDocUrl = \"\",\n videoUrl = \"\",\n description = \"\",\n onConnect = noop,\n onDisconnect = noop,\n}) => {\n const { connect } = useQueryParams();\n\n const { data: { metadata = {} } = {} } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n if ((isPresent(apiKey) && !isOnboarding) || !connect) {\n return <Manage {...{ description, onDisconnect }} />;\n }\n\n return <Form {...{ helpDocUrl, onConnect, videoUrl }} />;\n};\n\nexport default withTitle(\n Daily,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["_jsx","ManageIntegrations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAA,IAAA,EAAsC;EAAA,IAAhC,WAAW,QAAX,WAAW;AAAE,IAAA,YAAY,QAAZ,YAAY;EACzC,IAAA,SAAA,GAA0D,QAAQ,CAAC,KAAK,CAAC;AAAA,IAAA,UAAA,GAAA,cAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAAlE,qBAAqB,GAAA,UAAA,CAAA,CAAA,CAAA;IAAE,wBAAwB,GAAA,UAAA,CAAA,CAAA,CAAA;EAEtD,IAAA,cAAA,GAAqD,aAAa,EAAE;AAAA,IAAA,mBAAA,GAAA,cAAA,CAA5D,IAAI;AAAA,IAAA,oBAAA,GAAA,mBAAA,KAAA,MAAA,GAAsB,EAAE,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
|
|
9
9
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
10
10
|
import { useTranslation, Trans } from 'react-i18next';
|
|
11
11
|
import { useHistory } from 'react-router-dom';
|
|
12
|
-
import { b as useCreateDaily } from '../useDailiesApi-
|
|
12
|
+
import { b as useCreateDaily } from '../useDailiesApi-BIZR1qiD.js';
|
|
13
13
|
import * as yup from 'yup';
|
|
14
14
|
import WalkthroughModal from './WalkthroughModal.js';
|
|
15
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
16
|
-
import '@babel/runtime/helpers/
|
|
16
|
+
import '@babel/runtime/helpers/objectSpread2';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
19
19
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
package/dist/v2/DailyForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DailyForm.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/constants.js","../../app/javascript/src/v2/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const MANAGE_DAILY_CO_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.daily.apiKey\"),\n })\n ),\n});\n","import { useState } from \"react\";\n\nimport i18next from \"i18next\";\nimport { Button, Spinner, Typography } from \"neetoatoms\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoatoms/formik\";\nimport { withTitle } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport Container from \"neetomolecules/v2/Container\";\nimport Header from \"neetomolecules/v2/Header\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nimport WalkthroughModal from \"../../WalkthroughModal\";\n\nconst Form = ({ helpDocUrl, videoUrl, onConnect, breadcrumbs }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const [isDemoModalOpen, setIsDemoModalOpen] = useState(false);\n\n const { mutate: createDaily, isPending: isConnecting } = useCreateDaily({\n onSuccess: () => onConnect?.(),\n });\n\n const handleSubmit = payload => createDaily(payload);\n\n if (isConnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.daily.connect.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoIntegrations.daily.connect.title\"),\n description: (\n <Typography lineClamp=\"none\" variant=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n variant=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-testid\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n dataTestId=\"api-key\"\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </CardLayout>\n </FormikForm>\n <WalkthroughModal\n {...{ videoUrl }}\n isOpen={isDemoModalOpen}\n onClose={() => setIsDemoModalOpen(false)}\n />\n </div>\n </Container>\n );\n};\nexport default withTitle(\n Form,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["
|
|
1
|
+
{"version":3,"file":"DailyForm.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/constants.js","../../app/javascript/src/v2/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const MANAGE_DAILY_CO_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.daily.apiKey\"),\n })\n ),\n});\n","import { useState } from \"react\";\n\nimport i18next from \"i18next\";\nimport { Button, Spinner, Typography } from \"neetoatoms\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoatoms/formik\";\nimport { withTitle } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport Container from \"neetomolecules/v2/Container\";\nimport Header from \"neetomolecules/v2/Header\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nimport WalkthroughModal from \"../../WalkthroughModal\";\n\nconst Form = ({ helpDocUrl, videoUrl, onConnect, breadcrumbs }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const [isDemoModalOpen, setIsDemoModalOpen] = useState(false);\n\n const { mutate: createDaily, isPending: isConnecting } = useCreateDaily({\n onSuccess: () => onConnect?.(),\n });\n\n const handleSubmit = payload => createDaily(payload);\n\n if (isConnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.daily.connect.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoIntegrations.daily.connect.title\"),\n description: (\n <Typography lineClamp=\"none\" variant=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n variant=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-testid\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n dataTestId=\"api-key\"\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </CardLayout>\n </FormikForm>\n <WalkthroughModal\n {...{ videoUrl }}\n isOpen={isDemoModalOpen}\n onClose={() => setIsDemoModalOpen(false)}\n />\n </div>\n </Container>\n );\n};\nexport default withTitle(\n Form,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["_jsx","_jsxs","FormikForm"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAM,mCAAmC,GAAG;AAAE,EAAA,MAAM,EAAE;AAAG,CAAC;AAE1D,IAAM,0BAA0B,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC;AAC3D,EAAA,MAAM,EAAE,GAAG,CACR,MAAM,EAAE,CACR,IAAI,EAAE,CACN,QAAQ,CACP,CAAC,CAAC,mCAAmC,EA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A,IAAC,KAAK,EAAA;YACJ,SAAS,EAAA,IAAA;YACT,QAAQ,EAAA,IAAA;AACR,YAAA,UAAU,EAAC,SAAS;AACpB,YAAA,KAAK,EAAE,CAAC,CAAC,gCAAgC,CAAE;AAC3C,YAAA,IAAI,EAAC;WACN;SACS;OACF,CAAC,eACbA,GAAA,CAAC,gBAAgB,EAAA;AACT,QAAA,QAAQ,EAAR,QAAQ;AACd,QAAA,MAAM,EAAE,eAAgB;QACxB,OAAO,EAAE,SAAT,OAAO,GAAA;UAAA,OAAQ,kBAAkB,CAAC,KAAK,CAAC;AAAA,QAAA;AAAC,OAC1C,CAAC;AAAA,KACC,CAAC;AAAA,GACG,CAAC;AAEhB,CAAC;AACD,aAAe,SAAS,CACtB,IAAI,EACJ,OAAO,CAAC,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;"}
|
package/dist/v2/Demo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Demo.js","sources":["../../app/javascript/src/v2/components/Steps/utils.js","../../app/javascript/src/v2/components/Steps/Demo.jsx"],"sourcesContent":["import { isEmpty } from \"ramda\";\n\nexport const isYouTubeLink = videoUrl => {\n const youtubeRegex = /^(https?:\\/\\/)?(www\\.)?(youtube\\.com|youtu\\.be)\\//;\n\n return youtubeRegex.test(videoUrl);\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import { Button } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { isYouTubeLink, renderText } from \"./utils\";\n\nconst Demo = ({\n title = \"\",\n subtitle = \"\",\n iframeTitle = \"\",\n onClose = noop,\n videoUrl = \"\",\n children,\n}) => {\n const { t } = useTranslation();\n\n const renderVideo = videoUrl =>\n isYouTubeLink(videoUrl) ? (\n <iframe\n allowFullScreen\n className=\"aspect-video w-full max-w-3xl border-none\"\n frameBorder=\"0\"\n id=\"ytplayer\"\n src={videoUrl}\n title={renderText(iframeTitle, t(\"neetoIntegrations.demo.iFrameTitle\"))}\n type=\"text/html\"\n />\n ) : (\n <video\n autoPlay\n controls\n muted\n className=\"aspect-video w-full max-w-3xl cursor-pointer rounded-xl\"\n id=\"walkthrough-video\"\n >\n <source src={videoUrl} />\n </video>\n );\n\n return (\n <CardLayout\n description={renderText(subtitle, t(\"neetoIntegrations.demo.subtitle\"))}\n title={renderText(title, t(\"neetoIntegrations.demo.title\"))}\n actionBlock={\n <Button\n data-testid=\"neeto-integrations-demo-finish-button\"\n label={t(\"neetoIntegrations.common.finish\")}\n onClick={onClose}\n />\n }\n >\n {children}\n {videoUrl && <div className=\"w-full\">{renderVideo(videoUrl)}</div>}\n </CardLayout>\n );\n};\n\nDemo.prototypes = {\n onClose: PropTypes.func,\n videoUrl: PropTypes.string,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n iframeTitle: PropTypes.string,\n};\n\nexport default Demo;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"Demo.js","sources":["../../app/javascript/src/v2/components/Steps/utils.js","../../app/javascript/src/v2/components/Steps/Demo.jsx"],"sourcesContent":["import { isEmpty } from \"ramda\";\n\nexport const isYouTubeLink = videoUrl => {\n const youtubeRegex = /^(https?:\\/\\/)?(www\\.)?(youtube\\.com|youtu\\.be)\\//;\n\n return youtubeRegex.test(videoUrl);\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import { Button } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { isYouTubeLink, renderText } from \"./utils\";\n\nconst Demo = ({\n title = \"\",\n subtitle = \"\",\n iframeTitle = \"\",\n onClose = noop,\n videoUrl = \"\",\n children,\n}) => {\n const { t } = useTranslation();\n\n const renderVideo = videoUrl =>\n isYouTubeLink(videoUrl) ? (\n <iframe\n allowFullScreen\n className=\"aspect-video w-full max-w-3xl border-none\"\n frameBorder=\"0\"\n id=\"ytplayer\"\n src={videoUrl}\n title={renderText(iframeTitle, t(\"neetoIntegrations.demo.iFrameTitle\"))}\n type=\"text/html\"\n />\n ) : (\n <video\n autoPlay\n controls\n muted\n className=\"aspect-video w-full max-w-3xl cursor-pointer rounded-xl\"\n id=\"walkthrough-video\"\n >\n <source src={videoUrl} />\n </video>\n );\n\n return (\n <CardLayout\n description={renderText(subtitle, t(\"neetoIntegrations.demo.subtitle\"))}\n title={renderText(title, t(\"neetoIntegrations.demo.title\"))}\n actionBlock={\n <Button\n data-testid=\"neeto-integrations-demo-finish-button\"\n label={t(\"neetoIntegrations.common.finish\")}\n onClick={onClose}\n />\n }\n >\n {children}\n {videoUrl && <div className=\"w-full\">{renderVideo(videoUrl)}</div>}\n </CardLayout>\n );\n};\n\nDemo.prototypes = {\n onClose: PropTypes.func,\n videoUrl: PropTypes.string,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n iframeTitle: PropTypes.string,\n};\n\nexport default Demo;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;AAEO,IAAM,aAAa,GAAG,SAAhB,aAAa,CAAG,QAAQ,EAAI;EACvC,IAAM,YAAY,GAAG,mDAAmD;AAExE,EAAA,OAAO,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;AACpC,CAAC;AAEM,IAAM,UAAU,GAAG,SAAb,UAAU,CAAI,IAAI,EAAE,mBAAmB,EAAA;AAAA,EAAA,OAClD,OAAO,CAAC,IAAI,CAAC,GAAG,mBAAmB,GAAG,IAAI;AAAA,CAAA;;ACD5C,IAAM,IAAI,GAAG,SAAP,IAAI,CAAA,IAAA,EAOJ;AAAA,EAAA,IAAA,UAAA,GAAA,IAAA,CANJ,KAAK;AAAL,IAAA,KAAK,2BAAG,EAAE,GAAA,UAAA;AAAA,IAAA,aAAA,GA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CAAC,KAAK,EAAE,CAAC,CAAC,8BAA8B,CAAC,CAAE;IAC5D,WAAW,eACTD,IAAC,MAAM,EAAA;AACL,MAAA,aAAA,EAAY,uCAAuC;AACnD,MAAA,KAAK,EAAE,CAAC,CAAC,iCAAiC,CAAE;AAC5C,MAAA,OAAO,EAAE;AAAQ,KAClB,CACF;IAAA,QAAA,EAAA,CAEA,QAAQ,EACR,QAAQ,iBAAIA,GAAA,CAAA,KAAA,EAAA;AAAK,MAAA,SAAS,EAAC,QAAQ;MAAA,QAAA,EAAE,WAAW,CAAC,QAAQ;AAAC,KAAM,CAAC;AAAA,GACxD,CAAC;AAEjB;AAEA,IAAI,CAAC,UAAU,GAAG;EAChB,OAAO,EAAE,SAAS,CAAC,IAAI;EACvB,QAAQ,EAAE,SAAS,CAAC,MAAM;EAC1B,KAAK,EAAE,SAAS,CAAC,MAAM;EACvB,QAAQ,EAAE,SAAS,CAAC,MAAM;EAC1B,WAAW,EAAE,SAAS,CAAC;AACzB,CAAC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { Alert } from '@bigbinary/neeto-atoms';
|
|
4
4
|
import { noop } from '@bigbinary/neeto-cist';
|
|
@@ -6,8 +6,6 @@ import withT from '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
|
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var _excluded = ["t", "isOpen", "isDisconnecting", "title", "message", "onClose", "onDisconnect"];
|
|
9
|
-
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; }
|
|
10
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
|
|
11
9
|
var DisconnectAlert = withT(function (_ref) {
|
|
12
10
|
var t = _ref.t,
|
|
13
11
|
_ref$isOpen = _ref.isOpen,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisconnectAlert.js","sources":["../../app/javascript/src/v2/components/DisconnectAlert/index.jsx"],"sourcesContent":["import { Alert } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport withT from \"neetocommons/v2/react-utils/withT\";\n\nconst DisconnectAlert = withT(\n ({\n t,\n isOpen = false,\n isDisconnecting = false,\n title = \"\",\n message = \"\",\n onClose = noop,\n onDisconnect = noop,\n ...otherProps\n }) => (\n <Alert\n {...{ isOpen, message, onClose, title }}\n isSubmitting={isDisconnecting}\n submitButtonLabel={t(\"neetoIntegrations.common.disconnect\")}\n onSubmit={onDisconnect}\n {...otherProps}\n />\n )\n);\n\nexport default DisconnectAlert;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"DisconnectAlert.js","sources":["../../app/javascript/src/v2/components/DisconnectAlert/index.jsx"],"sourcesContent":["import { Alert } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport withT from \"neetocommons/v2/react-utils/withT\";\n\nconst DisconnectAlert = withT(\n ({\n t,\n isOpen = false,\n isDisconnecting = false,\n title = \"\",\n message = \"\",\n onClose = noop,\n onDisconnect = noop,\n ...otherProps\n }) => (\n <Alert\n {...{ isOpen, message, onClose, title }}\n isSubmitting={isDisconnecting}\n submitButtonLabel={t(\"neetoIntegrations.common.disconnect\")}\n onSubmit={onDisconnect}\n {...otherProps}\n />\n )\n);\n\nexport default DisconnectAlert;\n"],"names":["_jsx"],"mappings":";;;;;;;;AAIA,IAAM,eAAe,GAAG,KAAK,CAC3B,UAAA,IAAA,EAAA;EAAA,IACE,CAAC,QAAD,CAAC;AAAA,IAAA,WAAA,GAAA,IAAA,CACD,MAAM;AAAN,IAAA,MAAM,4BAAG,KAAK,GAAA,WAAA;AAAA,IAAA,oBAAA,GAAA,IAAA,CACd,eAAe;AAAf,IAAA,eAAe,qCAAG,KAAK,GAAA,oBAAA;AAAA,IAAA,UAAA,GAAA,IAAA,CACvB,KAAK;AAAL,IAAA,KAAK,2BAAG,EAAE,GAAA,UAAA;AAAA,IAAA,YAAA,GAAA,IAAA,CACV,OAAO;AAAP,IAAA,OAAO,6BAAG,EAAE,GAAA,YAAA;AAAA,IAAA,YAAA,GAAA,IAAA,CACZ,OAAO;AAAP,IAAA,OAAO,6BAAG,IAAI,GAAA,YAAA;AAAA,IAAA,iBAAA,GAAA,IAAA,CACd,YAAY;AAAZ,IAAA,YAAY,kCAAG,IAAI,GAAA,iBAAA;IAChB,UAAU,GAAA,wBAAA,CAAA,IAAA,EAAA,SAAA,CAAA;AAAA,EAAA,oBAEbA,IAAC,KAAK,EAAA,aAAA,CAAA;AACE,IAAA,MAAM,EAAN,MAAM;AAAE,IAAA,OAAO,EAAP,OAAO;AAAE,IAAA,OAAO,EAAP,OAAO;AAAE,IAAA,KAAK,EAAL,KAAK;AACrC,IAAA,YAAY,EAAE,eAAgB;AAC9B,IAAA,iBAAiB,EAAE,CAAC,CAAC,qCAAqC,CAAE;AAC5D,IAAA,QAAQ,EAAE;GAAa,EACnB,UAAU,CACf,CAAC;AAAA,CAEN;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import StickyRibbon from '@bigbinary/neeto-molecules/v2/StickyRibbon';
|
|
@@ -29,8 +29,6 @@ var getDisconnectionRibbonMessage = function getDisconnectionRibbonMessage(alert
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
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; }
|
|
33
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
|
|
34
32
|
var IntegrationLinks = function IntegrationLinks(_ref) {
|
|
35
33
|
var alerts = _ref.alerts,
|
|
36
34
|
integrationRouteMap = _ref.integrationRouteMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/utils.js","../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["const getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonMessage = alerts => {\n if (getHasOnlyUPIIntegration(alerts)) {\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.non_permission_message\",\n defaults:\n \"Your <integrations /> integration has been disconnected. <connectLink>Connect it now</connectLink>.\",\n };\n }\n\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.message\",\n defaults:\n alerts.length === 1\n ? \"Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>.\"\n : \"Your <integrations /> integrations have been disconnected due to a permission issue.\",\n };\n};\n","import { useState } from \"react\";\n\nimport StickyRibbon from \"neetomolecules/v2/StickyRibbon\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport { getDisconnectionRibbonMessage } from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link to={linkPath}>{label}</Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <StickyRibbon\n data-testid=\"disconnected-integrations-ribbon\"\n kind=\"warning\"\n onDismiss={() => setIsClosed(true)}\n >\n <Trans\n {...getDisconnectionRibbonMessage(knownAlerts)}\n count={knownAlerts.length}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: <Link to={connectPath} />,\n }}\n />\n </StickyRibbon>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/utils.js","../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["const getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonMessage = alerts => {\n if (getHasOnlyUPIIntegration(alerts)) {\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.non_permission_message\",\n defaults:\n \"Your <integrations /> integration has been disconnected. <connectLink>Connect it now</connectLink>.\",\n };\n }\n\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.message\",\n defaults:\n alerts.length === 1\n ? \"Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>.\"\n : \"Your <integrations /> integrations have been disconnected due to a permission issue.\",\n };\n};\n","import { useState } from \"react\";\n\nimport StickyRibbon from \"neetomolecules/v2/StickyRibbon\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport { getDisconnectionRibbonMessage } from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link to={linkPath}>{label}</Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <StickyRibbon\n data-testid=\"disconnected-integrations-ribbon\"\n kind=\"warning\"\n onDismiss={() => setIsClosed(true)}\n >\n <Trans\n {...getDisconnectionRibbonMessage(knownAlerts)}\n count={knownAlerts.length}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: <Link to={connectPath} />,\n }}\n />\n </StickyRibbon>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAM,wBAAwB,GAAG,SAA3B,wBAAwB,CAAG,MAAM,EAAA;AAAA,EAAA,OACrC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAM,6BAA6B,GAAG,SAAhC,6BAA6B,CAAG,MAAM,EAAI;AACrD,EAAA,IAAI,wBAAwB,CAAC,MAAM,CAAC,EAAE;IACpC,OAAO;AACL,MAAA,OAAO,EAAE,8DAA8D;AACvE,MAAA,QAAQ,EACN;KACH;AACH,EAAA;EAEA,OAAO;AACL,IAAA,OAAO,EAAE,+CAA+C;IACxD,QAAQ,EACN,MAAM,CAAC,MAAM,KAAK,CAAC,GACf,+HAA+H,GAC/H;GACP;AACH,CAAC;;ACRD,IAAM,gBAAgB,GAAG,SAAnB,gBAAgB,CAAA,IAAA,EAAA;EAAA,IAAM,MAAM,QAAN,MAAM;AAAE,IAAA,mBAAmB,QAAnB,mBAAmB;EAAA,OACrD,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK,EAAK;AAC3B,IAAA,IAAA,qBAAA,GAAwB,mBAAmB,CAAC,KAAK,CAAC,WAAW,CAAC;AAAtD,MAAA,KAAK,yBAAL,KAAK;AAAE,MAAA,IAAI,yBAAJ,IAAI;AACnB,IAAA,IAAM,QAAQ,GAAG,KAAK,CAAC,YAAY,IAAI,IAAI;IAE3C,oBACEA,IAAA,CAAA,MAAA,EAAA;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AAW,GAC3B,WAAW,CAAC,YAAY,IACxB,mBAAmB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,IAAI,GACjD,EAAE;AAEN,EAAA,oBACEA,IAAC,YAAY,EAAA;AACX,IAAA,aAAA,EAAY,kCAAkC;AAC9C,IAAA,IAAI,EAAC,SAAS;IACd,SAAS,EAAE,SAAX,SAAS,GAAA;MAAA,OAAQ,WAAW,CAAC,IAAI,CAAC;IAAA,CAAC;AAAA,IAAA,QAAA,eAEnCA,IAAC,KAAK,EAAA,aAAA,CAAA,aAAA,CAAA,EAAA,EACA,6BAA6B,CAAC,WAAW,CAAC,CAAA,EAAA,EAAA,EAAA;MAC9C,KAAK,EAAE,WAAW,CAAC,MAAO;AAC1B,MAAA,UAAU,EAAE;QACV,YAAY,eACVA,IAAC,gBAAgB,EAAA;AACT,UAAA,mBAAmB,EAAnB,mBAAmB;AACzB,UAAA,MAAM,EAAE;AAAY,SACrB,CACF;QACD,WAAW,eAAEA,IAAC,IAAI,EAAA;AAAC,UAAA,EAAE,EAAE;SAAc;AACvC;KAAE,CACH;AAAC,GACU,CAAC;AAEnB;;;;"}
|
package/dist/v2/Finish.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Typography, Button } from '@bigbinary/neeto-atoms';
|
|
3
|
-
import {
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import { Illustration, Typography, Button } from '@bigbinary/neeto-atoms';
|
|
3
|
+
import { noop, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { withT } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
5
5
|
import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
6
6
|
import { P as PropTypes } from '../index-MS1ts-9f.js';
|
|
7
|
-
import { S as SvgSuccess } from '../success-C6rQdhhF.js';
|
|
8
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import 'react';
|
|
10
8
|
|
|
11
|
-
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; }
|
|
12
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
|
|
13
9
|
var Finish = withT(function (_ref) {
|
|
14
10
|
var t = _ref.t,
|
|
15
11
|
_ref$onClick = _ref.onClick,
|
|
@@ -31,7 +27,9 @@ var Finish = withT(function (_ref) {
|
|
|
31
27
|
variant: "secondary"
|
|
32
28
|
}, secondaryButtonProps))]
|
|
33
29
|
}),
|
|
34
|
-
children: [/*#__PURE__*/jsx(
|
|
30
|
+
children: [/*#__PURE__*/jsx(Illustration, {
|
|
31
|
+
name: "success"
|
|
32
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
35
33
|
className: "mb-6 mt-4",
|
|
36
34
|
variant: "h4",
|
|
37
35
|
weight: "semibold",
|
package/dist/v2/Finish.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Finish.js","sources":["../../app/javascript/src/v2/components/Steps/Finish.jsx"],"sourcesContent":["import { Typography, Button } from \"@bigbinary/neeto-atoms\";\nimport { isNotEmpty, noop } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\n\
|
|
1
|
+
{"version":3,"file":"Finish.js","sources":["../../app/javascript/src/v2/components/Steps/Finish.jsx"],"sourcesContent":["import { Typography, Button, Illustration } from \"@bigbinary/neeto-atoms\";\nimport { isNotEmpty, noop } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\n\nconst Finish = withT(\n ({\n t,\n onClick = noop,\n title = \"\",\n buttonProps = {},\n secondaryButtonProps = {},\n children,\n }) => (\n <CardLayout\n actionBlock={\n <div className=\"flex w-full flex-wrap items-center gap-2\">\n <Button\n {...{ onClick }}\n label={t(\"neetoIntegrations.common.continue\")}\n {...buttonProps}\n />\n {isNotEmpty(secondaryButtonProps) && (\n <Button variant=\"secondary\" {...secondaryButtonProps} />\n )}\n </div>\n }\n >\n <Illustration name=\"success\" />\n <Typography className=\"mb-6 mt-4\" variant=\"h4\" weight=\"semibold\">\n {title}\n </Typography>\n {children}\n </CardLayout>\n )\n);\n\nFinish.prototypes = {\n onClick: PropTypes.func,\n title: PropTypes.string,\n buttonProps: PropTypes.object,\n secondaryButtonProps: PropTypes.object,\n};\n\nexport default Finish;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAMA,IAAM,MAAM,GAAG,KAAK,CAClB,UAAA,IAAA,EAAA;EAAA,IACE,CAAC,QAAD,CAAC;AAAA,IAAA,YAAA,GAAA,IAAA,CACD,OAAO;AAAP,IAAA,OAAO,6BAAG,IAAI,GAAA,YAAA;AAAA,IAAA,UAAA,GAAA,IAAA,CACd,KAAK;AAAL,IAAA,KAAK,2BAAG,EAAE,GAAA,UAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACV,WAAW;IAAX,WAAW,GAAA,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,qBAAA,GAAA,IAAA,CAChB,oBAAoB;IAApB,oBAAoB,GAAA,qBAAA,KAAA,MAAA,GAAG,EAAE,GAAA,qBAAA;AACzB,IAAA,QAAQ,QAAR,QAAQ;AAAA,EAAA,oBAERA,KAAC,UAAU,EAAA;AACT,IAAA,WAAW,eACTA,IAAA,CAAA,KAAA,EAAA;AAAK,MAAA,SAAS,EAAC,0CAA0C;AAAA,MAAA,QAAA,EAAA,cACvDC,IAAC,MAAM,EAAA,aAAA,CAAA;AACC,QAAA,OAAO,EAAP,OAAO;QACb,KAAK,EAAE,CAAC,CAAC,mCAAmC;OAAE,EAC1C,WAAW,CAChB,CAAC,EACD,UAAU,CAAC,oBAAoB,CAAC,iBAC/BA,GAAA,CAAC,MAAM,EAAA,aAAA,CAAA;AAAC,QAAA,OAAO,EAAC;OAAW,EAAK,oBAAoB,CAAG,CACxD;AAAA,KACE,CACN;AAAA,IAAA,QAAA,EAAA,cAEDA,IAAC,YAAY,EAAA;AAAC,MAAA,IAAI,EAAC;KAAW,CAAC,eAC/BA,GAAA,CAAC,UAAU,EAAA;AAAC,MAAA,SAAS,EAAC,WAAW;AAAC,MAAA,OAAO,EAAC,IAAI;AAAC,MAAA,MAAM,EAAC,UAAU;MAAA,QAAA,EAC7D;KACS,CAAC,EACZ,QAAQ;AAAA,GACC,CAAC;AAAA,CAEjB;AAEA,MAAM,CAAC,UAAU,GAAG;EAClB,OAAO,EAAE,SAAS,CAAC,IAAI;EACvB,KAAK,EAAE,SAAS,CAAC,MAAM;EACvB,WAAW,EAAE,SAAS,CAAC,MAAM;EAC7B,oBAAoB,EAAE,SAAS,CAAC;AAClC,CAAC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import { useState, useEffect } from 'react';
|
|
@@ -16,7 +16,6 @@ import 'classnames';
|
|
|
16
16
|
import '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
17
17
|
import '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
18
18
|
import '../index-MS1ts-9f.js';
|
|
19
|
-
import '../success-C6rQdhhF.js';
|
|
20
19
|
|
|
21
20
|
var INTEGRATION_STEPS = [{
|
|
22
21
|
step: "1",
|
|
@@ -34,8 +33,6 @@ var STEPS = {
|
|
|
34
33
|
finish: t("neetoIntegrations.common.finish")
|
|
35
34
|
};
|
|
36
35
|
|
|
37
|
-
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; }
|
|
38
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
|
|
39
36
|
var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
40
37
|
var permissionImage = _ref.permissionImage,
|
|
41
38
|
fetchAuthorizationUrl = _ref.fetchAuthorizationUrl,
|