@bigbinary/neeto-molecules 3.7.12 → 3.7.14
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/README.md +0 -2
- package/dist/DocumentEditor.js +4 -2
- package/dist/DocumentEditor.js.map +1 -1
- package/dist/ShareViaLink.js +1 -1
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/cjs/DocumentEditor.js +4 -2
- package/dist/cjs/DocumentEditor.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +1 -1
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +0 -7
- package/dist/IntegrationDisconnectAlert.js +0 -40
- package/dist/IntegrationDisconnectAlert.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.js +0 -53
- package/dist/IntegrationWalkthroughModal.js.map +0 -1
- package/dist/cjs/IntegrationDisconnectAlert.js +0 -52
- package/dist/cjs/IntegrationDisconnectAlert.js.map +0 -1
- package/dist/cjs/IntegrationWalkthroughModal.js +0 -65
- package/dist/cjs/IntegrationWalkthroughModal.js.map +0 -1
- package/types/IntegrationDisconnectAlert.d.ts +0 -37
- package/types/IntegrationWalkthroughModal.d.ts +0 -31
package/src/translations/en.json
CHANGED
|
@@ -358,13 +358,6 @@
|
|
|
358
358
|
"submitButtonLabel": "Enable"
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
|
-
"integrationWalkthroughModal": {
|
|
362
|
-
"header": "Check how it behaves",
|
|
363
|
-
"continue": "Continue"
|
|
364
|
-
},
|
|
365
|
-
"integrationDisconnectAlert": {
|
|
366
|
-
"disconnect": "Disconnect"
|
|
367
|
-
},
|
|
368
361
|
"navigationHeader": {
|
|
369
362
|
"home": "Home",
|
|
370
363
|
"resetDescription": "Are you sure you want to reset this form to the last published version? This cannot be undone.",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import { noop } from '@bigbinary/neeto-cist';
|
|
4
|
-
import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
5
|
-
import Alert from '@bigbinary/neetoui/Alert';
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
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), !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; }
|
|
11
|
-
var IntegrationDisconnectAlert = function IntegrationDisconnectAlert(_ref) {
|
|
12
|
-
var t = _ref.t,
|
|
13
|
-
_ref$isOpen = _ref.isOpen,
|
|
14
|
-
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
15
|
-
_ref$isDisconnecting = _ref.isDisconnecting,
|
|
16
|
-
isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
|
|
17
|
-
_ref$title = _ref.title,
|
|
18
|
-
title = _ref$title === void 0 ? "" : _ref$title,
|
|
19
|
-
_ref$message = _ref.message,
|
|
20
|
-
message = _ref$message === void 0 ? "" : _ref$message,
|
|
21
|
-
_ref$onClose = _ref.onClose,
|
|
22
|
-
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
23
|
-
_ref$onDisconnect = _ref.onDisconnect,
|
|
24
|
-
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
|
|
25
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
-
return /*#__PURE__*/jsx(Alert, _objectSpread({
|
|
27
|
-
isOpen: isOpen,
|
|
28
|
-
message: message,
|
|
29
|
-
onClose: onClose,
|
|
30
|
-
title: title,
|
|
31
|
-
isSubmitting: isDisconnecting,
|
|
32
|
-
submitButtonLabel: t("neetoMolecules.integrationDisconnectAlert.disconnect"),
|
|
33
|
-
onSubmit: onDisconnect
|
|
34
|
-
}, otherProps));
|
|
35
|
-
};
|
|
36
|
-
var WrappedIntegrationDisconnectAlert = withT(IntegrationDisconnectAlert);
|
|
37
|
-
WrappedIntegrationDisconnectAlert.displayName = "IntegrationDisconnectAlert";
|
|
38
|
-
|
|
39
|
-
export { IntegrationDisconnectAlert, WrappedIntegrationDisconnectAlert as default };
|
|
40
|
-
//# sourceMappingURL=IntegrationDisconnectAlert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationDisconnectAlert.js","sources":["../src/components/IntegrationDisconnectAlert/index.jsx"],"sourcesContent":["import { noop } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Alert } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst IntegrationDisconnectAlert = ({\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(\n \"neetoMolecules.integrationDisconnectAlert.disconnect\"\n )}\n onSubmit={onDisconnect}\n {...otherProps}\n />\n);\n\nIntegrationDisconnectAlert.propTypes = {\n /**\n * To show loading state when the confirmation is given for disconnecting\n */\n isDisconnecting: PropTypes.bool,\n /**\n * To specify whether the integration modal should be opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * To show the title of the alert modal\n */\n title: PropTypes.string,\n /**\n * To show the description of the alert modal\n */\n message: PropTypes.string,\n /**\n * Handler function that is triggered when the close button is clicked.\n */\n onClose: PropTypes.func,\n /**\n * Handler function that is triggered when the disconnect button is clicked\n */\n onDisconnect: PropTypes.func,\n};\n\nconst WrappedIntegrationDisconnectAlert = withT(IntegrationDisconnectAlert);\nWrappedIntegrationDisconnectAlert.displayName = \"IntegrationDisconnectAlert\";\n\nexport { IntegrationDisconnectAlert };\nexport default WrappedIntegrationDisconnectAlert;\n"],"names":["IntegrationDisconnectAlert","_ref","t","_ref$isOpen","isOpen","_ref$isDisconnecting","isDisconnecting","_ref$title","title","_ref$message","message","_ref$onClose","onClose","noop","_ref$onDisconnect","onDisconnect","otherProps","_objectWithoutProperties","_excluded","_jsx","Alert","_objectSpread","isSubmitting","submitButtonLabel","onSubmit","WrappedIntegrationDisconnectAlert","withT","displayName"],"mappings":";;;;;;;;;;AAKA,IAAMA,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAC9BC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAAC,WAAA,GAAAF,IAAA,CACDG,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;IAAAE,oBAAA,GAAAJ,IAAA,CACdK,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,oBAAA;IAAAE,UAAA,GAAAN,IAAA,CACvBO,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,UAAA;IAAAE,YAAA,GAAAR,IAAA,CACVS,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,YAAA;IAAAE,YAAA,GAAAV,IAAA,CACZW,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAGE,KAAAA,CAAAA,GAAAA,IAAI,GAAAF,YAAA;IAAAG,iBAAA,GAAAb,IAAA,CACdc,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAGD,KAAAA,CAAAA,GAAAA,IAAI,GAAAC,iBAAA;AAChBE,IAAAA,UAAU,GAAAC,wBAAA,CAAAhB,IAAA,EAAAiB,SAAA,CAAA,CAAA;AAAA,EAAA,oBAEbC,GAAA,CAACC,KAAK,EAAAC,aAAA,CAAA;AACEjB,IAAAA,MAAM,EAANA,MAAM;AAAEM,IAAAA,OAAO,EAAPA,OAAO;AAAEE,IAAAA,OAAO,EAAPA,OAAO;AAAEJ,IAAAA,KAAK,EAALA,KAAK;AACrCc,IAAAA,YAAY,EAAEhB,eAAgB;AAC9BiB,IAAAA,iBAAiB,EAAErB,CAAC,CAClB,sDACF,CAAE;AACFsB,IAAAA,QAAQ,EAAET,YAAAA;GACNC,EAAAA,UAAU,CACf,CAAC,CAAA;AAAA,EACH;AA6BD,IAAMS,iCAAiC,GAAGC,KAAK,CAAC1B,0BAA0B,EAAC;AAC3EyB,iCAAiC,CAACE,WAAW,GAAG,4BAA4B;;;;"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { noop } from '@bigbinary/neeto-cist';
|
|
2
|
-
import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
3
|
-
import Modal from '@bigbinary/neetoui/Modal';
|
|
4
|
-
import Button from '@bigbinary/neetoui/Button';
|
|
5
|
-
import Typography from '@bigbinary/neetoui/Typography';
|
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var IntegrationWalkthroughModal = function IntegrationWalkthroughModal(_ref) {
|
|
9
|
-
var t = _ref.t,
|
|
10
|
-
_ref$isOpen = _ref.isOpen,
|
|
11
|
-
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
12
|
-
_ref$onClose = _ref.onClose,
|
|
13
|
-
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
14
|
-
_ref$videoUrl = _ref.videoUrl,
|
|
15
|
-
videoUrl = _ref$videoUrl === void 0 ? "" : _ref$videoUrl,
|
|
16
|
-
children = _ref.children;
|
|
17
|
-
return /*#__PURE__*/jsxs(Modal, {
|
|
18
|
-
isOpen: isOpen,
|
|
19
|
-
onClose: onClose,
|
|
20
|
-
size: "large",
|
|
21
|
-
children: [/*#__PURE__*/jsx(Modal.Header, {
|
|
22
|
-
children: /*#__PURE__*/jsx(Typography, {
|
|
23
|
-
style: "h2",
|
|
24
|
-
weight: "semibold",
|
|
25
|
-
children: t("neetoMolecules.integrationWalkthroughModal.header")
|
|
26
|
-
})
|
|
27
|
-
}), /*#__PURE__*/jsx(Modal.Body, {
|
|
28
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
29
|
-
className: "w-full py-6",
|
|
30
|
-
children: [/*#__PURE__*/jsx("video", {
|
|
31
|
-
autoPlay: true,
|
|
32
|
-
controls: true,
|
|
33
|
-
muted: true,
|
|
34
|
-
className: "neeto-ui-rounded-md w-full cursor-pointer",
|
|
35
|
-
id: "walkthrough-video",
|
|
36
|
-
children: /*#__PURE__*/jsx("source", {
|
|
37
|
-
src: videoUrl
|
|
38
|
-
})
|
|
39
|
-
}), children]
|
|
40
|
-
})
|
|
41
|
-
}), /*#__PURE__*/jsx(Modal.Footer, {
|
|
42
|
-
children: /*#__PURE__*/jsx(Button, {
|
|
43
|
-
label: t("neetoMolecules.integrationWalkthroughModal.continue"),
|
|
44
|
-
onClick: onClose
|
|
45
|
-
})
|
|
46
|
-
})]
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
var WrappedIntegrationWalkthroughModal = withT(IntegrationWalkthroughModal);
|
|
50
|
-
WrappedIntegrationWalkthroughModal.displayName = "IntegrationWalkthroughModal";
|
|
51
|
-
|
|
52
|
-
export { IntegrationWalkthroughModal, WrappedIntegrationWalkthroughModal as default };
|
|
53
|
-
//# sourceMappingURL=IntegrationWalkthroughModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationWalkthroughModal.js","sources":["../src/components/IntegrationWalkthroughModal/index.jsx"],"sourcesContent":["import { noop } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Modal, Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst IntegrationWalkthroughModal = ({\n t,\n isOpen = false,\n onClose = noop,\n videoUrl = \"\",\n children,\n}) => (\n <Modal {...{ isOpen, onClose }} size=\"large\">\n <Modal.Header>\n <Typography style=\"h2\" weight=\"semibold\">\n {t(\"neetoMolecules.integrationWalkthroughModal.header\")}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n <div className=\"w-full py-6\">\n <video\n autoPlay\n controls\n muted\n className=\"neeto-ui-rounded-md w-full cursor-pointer\"\n id=\"walkthrough-video\"\n >\n <source src={videoUrl} />\n </video>\n {children}\n </div>\n </Modal.Body>\n <Modal.Footer>\n <Button\n label={t(\"neetoMolecules.integrationWalkthroughModal.continue\")}\n onClick={onClose}\n />\n </Modal.Footer>\n </Modal>\n);\n\nIntegrationWalkthroughModal.propTypes = {\n /**\n * To specify video URL of integration walkthrough that will be embedded.\n */\n videoUrl: PropTypes.string,\n /**\n * To specify whether the integration modal should be opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * Handler function that is triggered when the continue or close button is clicked.\n */\n onClose: PropTypes.func,\n};\n\nconst WrappedIntegrationWalkthroughModal = withT(IntegrationWalkthroughModal);\nWrappedIntegrationWalkthroughModal.displayName = \"IntegrationWalkthroughModal\";\n\nexport { IntegrationWalkthroughModal };\nexport default WrappedIntegrationWalkthroughModal;\n"],"names":["IntegrationWalkthroughModal","_ref","t","_ref$isOpen","isOpen","_ref$onClose","onClose","noop","_ref$videoUrl","videoUrl","children","_jsxs","Modal","size","_jsx","Header","Typography","style","weight","Body","className","autoPlay","controls","muted","id","src","Footer","Button","label","onClick","WrappedIntegrationWalkthroughModal","withT","displayName"],"mappings":";;;;;;;AAKA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAC/BC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAAC,WAAA,GAAAF,IAAA,CACDG,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;IAAAE,YAAA,GAAAJ,IAAA,CACdK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAGE,KAAAA,CAAAA,GAAAA,IAAI,GAAAF,YAAA;IAAAG,aAAA,GAAAP,IAAA,CACdQ,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,aAAA;IACbE,QAAQ,GAAAT,IAAA,CAARS,QAAQ,CAAA;EAAA,oBAERC,IAAA,CAACC,KAAK,EAAA;AAAOR,IAAAA,MAAM,EAANA,MAAM;AAAEE,IAAAA,OAAO,EAAPA,OAAO;AAAIO,IAAAA,IAAI,EAAC,OAAO;AAAAH,IAAAA,QAAA,EAC1CI,cAAAA,GAAA,CAACF,KAAK,CAACG,MAAM,EAAA;MAAAL,QAAA,eACXI,GAAA,CAACE,UAAU,EAAA;AAACC,QAAAA,KAAK,EAAC,IAAI;AAACC,QAAAA,MAAM,EAAC,UAAU;QAAAR,QAAA,EACrCR,CAAC,CAAC,mDAAmD,CAAA;OAC5C,CAAA;AAAC,KACD,CAAC,eACfY,GAAA,CAACF,KAAK,CAACO,IAAI,EAAA;AAAAT,MAAAA,QAAA,eACTC,IAAA,CAAA,KAAA,EAAA;AAAKS,QAAAA,SAAS,EAAC,aAAa;AAAAV,QAAAA,QAAA,gBAC1BI,GAAA,CAAA,OAAA,EAAA;UACEO,QAAQ,EAAA,IAAA;UACRC,QAAQ,EAAA,IAAA;UACRC,KAAK,EAAA,IAAA;AACLH,UAAAA,SAAS,EAAC,2CAA2C;AACrDI,UAAAA,EAAE,EAAC,mBAAmB;AAAAd,UAAAA,QAAA,eAEtBI,GAAA,CAAA,QAAA,EAAA;AAAQW,YAAAA,GAAG,EAAEhB,QAAAA;WAAW,CAAA;SACnB,CAAC,EACPC,QAAQ,CAAA;OACN,CAAA;AAAC,KACI,CAAC,eACbI,GAAA,CAACF,KAAK,CAACc,MAAM,EAAA;MAAAhB,QAAA,eACXI,GAAA,CAACa,MAAM,EAAA;AACLC,QAAAA,KAAK,EAAE1B,CAAC,CAAC,qDAAqD,CAAE;AAChE2B,QAAAA,OAAO,EAAEvB,OAAAA;OACV,CAAA;AAAC,KACU,CAAC,CAAA;AAAA,GACV,CAAC,CAAA;AAAA,EACT;AAiBD,IAAMwB,kCAAkC,GAAGC,KAAK,CAAC/B,2BAA2B,EAAC;AAC7E8B,kCAAkC,CAACE,WAAW,GAAG,6BAA6B;;;;"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
|
-
var neetoCist = require('@bigbinary/neeto-cist');
|
|
8
|
-
var withT = require('@bigbinary/neeto-commons-frontend/react-utils/withT');
|
|
9
|
-
var Alert = require('@bigbinary/neetoui/Alert');
|
|
10
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
-
|
|
12
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
-
|
|
14
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
15
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
16
|
-
var withT__default = /*#__PURE__*/_interopDefaultLegacy(withT);
|
|
17
|
-
var Alert__default = /*#__PURE__*/_interopDefaultLegacy(Alert);
|
|
18
|
-
|
|
19
|
-
var _excluded = ["t", "isOpen", "isDisconnecting", "title", "message", "onClose", "onDisconnect"];
|
|
20
|
-
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; }
|
|
21
|
-
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__default["default"](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; }
|
|
22
|
-
var IntegrationDisconnectAlert = function IntegrationDisconnectAlert(_ref) {
|
|
23
|
-
var t = _ref.t,
|
|
24
|
-
_ref$isOpen = _ref.isOpen,
|
|
25
|
-
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
26
|
-
_ref$isDisconnecting = _ref.isDisconnecting,
|
|
27
|
-
isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
|
|
28
|
-
_ref$title = _ref.title,
|
|
29
|
-
title = _ref$title === void 0 ? "" : _ref$title,
|
|
30
|
-
_ref$message = _ref.message,
|
|
31
|
-
message = _ref$message === void 0 ? "" : _ref$message,
|
|
32
|
-
_ref$onClose = _ref.onClose,
|
|
33
|
-
onClose = _ref$onClose === void 0 ? neetoCist.noop : _ref$onClose,
|
|
34
|
-
_ref$onDisconnect = _ref.onDisconnect,
|
|
35
|
-
onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect,
|
|
36
|
-
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
37
|
-
return /*#__PURE__*/jsxRuntime.jsx(Alert__default["default"], _objectSpread({
|
|
38
|
-
isOpen: isOpen,
|
|
39
|
-
message: message,
|
|
40
|
-
onClose: onClose,
|
|
41
|
-
title: title,
|
|
42
|
-
isSubmitting: isDisconnecting,
|
|
43
|
-
submitButtonLabel: t("neetoMolecules.integrationDisconnectAlert.disconnect"),
|
|
44
|
-
onSubmit: onDisconnect
|
|
45
|
-
}, otherProps));
|
|
46
|
-
};
|
|
47
|
-
var WrappedIntegrationDisconnectAlert = withT__default["default"](IntegrationDisconnectAlert);
|
|
48
|
-
WrappedIntegrationDisconnectAlert.displayName = "IntegrationDisconnectAlert";
|
|
49
|
-
|
|
50
|
-
exports.IntegrationDisconnectAlert = IntegrationDisconnectAlert;
|
|
51
|
-
exports["default"] = WrappedIntegrationDisconnectAlert;
|
|
52
|
-
//# sourceMappingURL=IntegrationDisconnectAlert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationDisconnectAlert.js","sources":["../../src/components/IntegrationDisconnectAlert/index.jsx"],"sourcesContent":["import { noop } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Alert } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst IntegrationDisconnectAlert = ({\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(\n \"neetoMolecules.integrationDisconnectAlert.disconnect\"\n )}\n onSubmit={onDisconnect}\n {...otherProps}\n />\n);\n\nIntegrationDisconnectAlert.propTypes = {\n /**\n * To show loading state when the confirmation is given for disconnecting\n */\n isDisconnecting: PropTypes.bool,\n /**\n * To specify whether the integration modal should be opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * To show the title of the alert modal\n */\n title: PropTypes.string,\n /**\n * To show the description of the alert modal\n */\n message: PropTypes.string,\n /**\n * Handler function that is triggered when the close button is clicked.\n */\n onClose: PropTypes.func,\n /**\n * Handler function that is triggered when the disconnect button is clicked\n */\n onDisconnect: PropTypes.func,\n};\n\nconst WrappedIntegrationDisconnectAlert = withT(IntegrationDisconnectAlert);\nWrappedIntegrationDisconnectAlert.displayName = \"IntegrationDisconnectAlert\";\n\nexport { IntegrationDisconnectAlert };\nexport default WrappedIntegrationDisconnectAlert;\n"],"names":["IntegrationDisconnectAlert","_ref","t","_ref$isOpen","isOpen","_ref$isDisconnecting","isDisconnecting","_ref$title","title","_ref$message","message","_ref$onClose","onClose","noop","_ref$onDisconnect","onDisconnect","otherProps","_objectWithoutProperties","_excluded","_jsx","Alert","_objectSpread","isSubmitting","submitButtonLabel","onSubmit","WrappedIntegrationDisconnectAlert","withT","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAC9BC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAAC,WAAA,GAAAF,IAAA,CACDG,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;IAAAE,oBAAA,GAAAJ,IAAA,CACdK,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,oBAAA;IAAAE,UAAA,GAAAN,IAAA,CACvBO,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,UAAA;IAAAE,YAAA,GAAAR,IAAA,CACVS,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,YAAA;IAAAE,YAAA,GAAAV,IAAA,CACZW,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAGE,KAAAA,CAAAA,GAAAA,cAAI,GAAAF,YAAA;IAAAG,iBAAA,GAAAb,IAAA,CACdc,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAGD,KAAAA,CAAAA,GAAAA,cAAI,GAAAC,iBAAA;AAChBE,IAAAA,UAAU,GAAAC,4CAAA,CAAAhB,IAAA,EAAAiB,SAAA,CAAA,CAAA;AAAA,EAAA,oBAEbC,cAAA,CAACC,yBAAK,EAAAC,aAAA,CAAA;AACEjB,IAAAA,MAAM,EAANA,MAAM;AAAEM,IAAAA,OAAO,EAAPA,OAAO;AAAEE,IAAAA,OAAO,EAAPA,OAAO;AAAEJ,IAAAA,KAAK,EAALA,KAAK;AACrCc,IAAAA,YAAY,EAAEhB,eAAgB;AAC9BiB,IAAAA,iBAAiB,EAAErB,CAAC,CAClB,sDACF,CAAE;AACFsB,IAAAA,QAAQ,EAAET,YAAAA;GACNC,EAAAA,UAAU,CACf,CAAC,CAAA;AAAA,EACH;AA6BD,IAAMS,iCAAiC,GAAGC,yBAAK,CAAC1B,0BAA0B,EAAC;AAC3EyB,iCAAiC,CAACE,WAAW,GAAG,4BAA4B;;;;;"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var neetoCist = require('@bigbinary/neeto-cist');
|
|
6
|
-
var withT = require('@bigbinary/neeto-commons-frontend/react-utils/withT');
|
|
7
|
-
var Modal = require('@bigbinary/neetoui/Modal');
|
|
8
|
-
var Button = require('@bigbinary/neetoui/Button');
|
|
9
|
-
var Typography = require('@bigbinary/neetoui/Typography');
|
|
10
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
-
|
|
12
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
-
|
|
14
|
-
var withT__default = /*#__PURE__*/_interopDefaultLegacy(withT);
|
|
15
|
-
var Modal__default = /*#__PURE__*/_interopDefaultLegacy(Modal);
|
|
16
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
17
|
-
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
|
|
18
|
-
|
|
19
|
-
var IntegrationWalkthroughModal = function IntegrationWalkthroughModal(_ref) {
|
|
20
|
-
var t = _ref.t,
|
|
21
|
-
_ref$isOpen = _ref.isOpen,
|
|
22
|
-
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
23
|
-
_ref$onClose = _ref.onClose,
|
|
24
|
-
onClose = _ref$onClose === void 0 ? neetoCist.noop : _ref$onClose,
|
|
25
|
-
_ref$videoUrl = _ref.videoUrl,
|
|
26
|
-
videoUrl = _ref$videoUrl === void 0 ? "" : _ref$videoUrl,
|
|
27
|
-
children = _ref.children;
|
|
28
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Modal__default["default"], {
|
|
29
|
-
isOpen: isOpen,
|
|
30
|
-
onClose: onClose,
|
|
31
|
-
size: "large",
|
|
32
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Modal__default["default"].Header, {
|
|
33
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
34
|
-
style: "h2",
|
|
35
|
-
weight: "semibold",
|
|
36
|
-
children: t("neetoMolecules.integrationWalkthroughModal.header")
|
|
37
|
-
})
|
|
38
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Modal__default["default"].Body, {
|
|
39
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40
|
-
className: "w-full py-6",
|
|
41
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("video", {
|
|
42
|
-
autoPlay: true,
|
|
43
|
-
controls: true,
|
|
44
|
-
muted: true,
|
|
45
|
-
className: "neeto-ui-rounded-md w-full cursor-pointer",
|
|
46
|
-
id: "walkthrough-video",
|
|
47
|
-
children: /*#__PURE__*/jsxRuntime.jsx("source", {
|
|
48
|
-
src: videoUrl
|
|
49
|
-
})
|
|
50
|
-
}), children]
|
|
51
|
-
})
|
|
52
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Modal__default["default"].Footer, {
|
|
53
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
54
|
-
label: t("neetoMolecules.integrationWalkthroughModal.continue"),
|
|
55
|
-
onClick: onClose
|
|
56
|
-
})
|
|
57
|
-
})]
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
var WrappedIntegrationWalkthroughModal = withT__default["default"](IntegrationWalkthroughModal);
|
|
61
|
-
WrappedIntegrationWalkthroughModal.displayName = "IntegrationWalkthroughModal";
|
|
62
|
-
|
|
63
|
-
exports.IntegrationWalkthroughModal = IntegrationWalkthroughModal;
|
|
64
|
-
exports["default"] = WrappedIntegrationWalkthroughModal;
|
|
65
|
-
//# sourceMappingURL=IntegrationWalkthroughModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationWalkthroughModal.js","sources":["../../src/components/IntegrationWalkthroughModal/index.jsx"],"sourcesContent":["import { noop } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Modal, Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst IntegrationWalkthroughModal = ({\n t,\n isOpen = false,\n onClose = noop,\n videoUrl = \"\",\n children,\n}) => (\n <Modal {...{ isOpen, onClose }} size=\"large\">\n <Modal.Header>\n <Typography style=\"h2\" weight=\"semibold\">\n {t(\"neetoMolecules.integrationWalkthroughModal.header\")}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n <div className=\"w-full py-6\">\n <video\n autoPlay\n controls\n muted\n className=\"neeto-ui-rounded-md w-full cursor-pointer\"\n id=\"walkthrough-video\"\n >\n <source src={videoUrl} />\n </video>\n {children}\n </div>\n </Modal.Body>\n <Modal.Footer>\n <Button\n label={t(\"neetoMolecules.integrationWalkthroughModal.continue\")}\n onClick={onClose}\n />\n </Modal.Footer>\n </Modal>\n);\n\nIntegrationWalkthroughModal.propTypes = {\n /**\n * To specify video URL of integration walkthrough that will be embedded.\n */\n videoUrl: PropTypes.string,\n /**\n * To specify whether the integration modal should be opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * Handler function that is triggered when the continue or close button is clicked.\n */\n onClose: PropTypes.func,\n};\n\nconst WrappedIntegrationWalkthroughModal = withT(IntegrationWalkthroughModal);\nWrappedIntegrationWalkthroughModal.displayName = \"IntegrationWalkthroughModal\";\n\nexport { IntegrationWalkthroughModal };\nexport default WrappedIntegrationWalkthroughModal;\n"],"names":["IntegrationWalkthroughModal","_ref","t","_ref$isOpen","isOpen","_ref$onClose","onClose","noop","_ref$videoUrl","videoUrl","children","_jsxs","Modal","size","_jsx","Header","Typography","style","weight","Body","className","autoPlay","controls","muted","id","src","Footer","Button","label","onClick","WrappedIntegrationWalkthroughModal","withT","displayName"],"mappings":";;;;;;;;;;;;;;;;;;AAKA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAC/BC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAAC,WAAA,GAAAF,IAAA,CACDG,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;IAAAE,YAAA,GAAAJ,IAAA,CACdK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAGE,KAAAA,CAAAA,GAAAA,cAAI,GAAAF,YAAA;IAAAG,aAAA,GAAAP,IAAA,CACdQ,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,aAAA;IACbE,QAAQ,GAAAT,IAAA,CAARS,QAAQ,CAAA;EAAA,oBAERC,eAAA,CAACC,yBAAK,EAAA;AAAOR,IAAAA,MAAM,EAANA,MAAM;AAAEE,IAAAA,OAAO,EAAPA,OAAO;AAAIO,IAAAA,IAAI,EAAC,OAAO;AAAAH,IAAAA,QAAA,EAC1CI,cAAAA,cAAA,CAACF,yBAAK,CAACG,MAAM,EAAA;MAAAL,QAAA,eACXI,cAAA,CAACE,8BAAU,EAAA;AAACC,QAAAA,KAAK,EAAC,IAAI;AAACC,QAAAA,MAAM,EAAC,UAAU;QAAAR,QAAA,EACrCR,CAAC,CAAC,mDAAmD,CAAA;OAC5C,CAAA;AAAC,KACD,CAAC,eACfY,cAAA,CAACF,yBAAK,CAACO,IAAI,EAAA;AAAAT,MAAAA,QAAA,eACTC,eAAA,CAAA,KAAA,EAAA;AAAKS,QAAAA,SAAS,EAAC,aAAa;AAAAV,QAAAA,QAAA,gBAC1BI,cAAA,CAAA,OAAA,EAAA;UACEO,QAAQ,EAAA,IAAA;UACRC,QAAQ,EAAA,IAAA;UACRC,KAAK,EAAA,IAAA;AACLH,UAAAA,SAAS,EAAC,2CAA2C;AACrDI,UAAAA,EAAE,EAAC,mBAAmB;AAAAd,UAAAA,QAAA,eAEtBI,cAAA,CAAA,QAAA,EAAA;AAAQW,YAAAA,GAAG,EAAEhB,QAAAA;WAAW,CAAA;SACnB,CAAC,EACPC,QAAQ,CAAA;OACN,CAAA;AAAC,KACI,CAAC,eACbI,cAAA,CAACF,yBAAK,CAACc,MAAM,EAAA;MAAAhB,QAAA,eACXI,cAAA,CAACa,0BAAM,EAAA;AACLC,QAAAA,KAAK,EAAE1B,CAAC,CAAC,qDAAqD,CAAE;AAChE2B,QAAAA,OAAO,EAAEvB,OAAAA;OACV,CAAA;AAAC,KACU,CAAC,CAAA;AAAA,GACV,CAAC,CAAA;AAAA,EACT;AAiBD,IAAMwB,kCAAkC,GAAGC,yBAAK,CAAC/B,2BAA2B,EAAC;AAC7E8B,kCAAkC,CAACE,WAAW,GAAG,6BAA6B;;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* A common component used for disconnect UI of integrations across neeto products.
|
|
5
|
-
*
|
|
6
|
-
* 
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
*
|
|
10
|
-
* import IntegrationDisconnectAlert from "@bigbinary/neeto-molecules/IntegrationDisconnectAlert";
|
|
11
|
-
*
|
|
12
|
-
* const Integration = () => {
|
|
13
|
-
* const [isOpen, setIsOpen] = useState(false);
|
|
14
|
-
* const [isDisconnecting, setIsDisconnecting] = useState(false);
|
|
15
|
-
*
|
|
16
|
-
* return (
|
|
17
|
-
* <IntegrationDisconnectAlert
|
|
18
|
-
* isOpen={isOpen}
|
|
19
|
-
* isDisconnecting={isDisconnecting}
|
|
20
|
-
* title="Disconnect Slack"
|
|
21
|
-
* message="You will be disconnected from Slack."
|
|
22
|
-
* onClose={() => setIsOpen(false)}
|
|
23
|
-
* onDisconnect={() => console.log("Disconnect the integration")}
|
|
24
|
-
* />
|
|
25
|
-
* );
|
|
26
|
-
* };
|
|
27
|
-
* @endexample
|
|
28
|
-
*/
|
|
29
|
-
const IntegrationDisconnectAlert: React.FC<{
|
|
30
|
-
isOpen: boolean;
|
|
31
|
-
isDisconnecting: boolean;
|
|
32
|
-
title: string;
|
|
33
|
-
message?: string;
|
|
34
|
-
onClose: (...args: any[]) => any;
|
|
35
|
-
onDisconnect: (...args: any[]) => any;
|
|
36
|
-
}>;
|
|
37
|
-
export default IntegrationDisconnectAlert;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* A component used to display walkthrough video of integration.
|
|
5
|
-
*
|
|
6
|
-
* 
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
*
|
|
10
|
-
* import { useState } from "react";
|
|
11
|
-
* import IntegrationWalkthroughModal from "@bigbinary/neeto-molecules/IntegrationWalkthroughModal";
|
|
12
|
-
*
|
|
13
|
-
* const Finish = () => {
|
|
14
|
-
* const [isModalOpen, setIsModalOpen] = useState(true);
|
|
15
|
-
*
|
|
16
|
-
* return (
|
|
17
|
-
* <IntegrationWalkthroughModal
|
|
18
|
-
* isOpen={isModalOpen}
|
|
19
|
-
* onClose={() => setIsModalOpen(false)}
|
|
20
|
-
* videoUrl="https://user-images.githubusercontent.com/39831309/232906732-43e139ac-4af8-4a59-9f4f-e96ebf436f75.mov"
|
|
21
|
-
* />
|
|
22
|
-
* );
|
|
23
|
-
* };
|
|
24
|
-
* @endexample
|
|
25
|
-
*/
|
|
26
|
-
const IntegrationWalkthroughModal: React.FC<{
|
|
27
|
-
videoUrl: string;
|
|
28
|
-
isOpen: boolean;
|
|
29
|
-
onClose: Function;
|
|
30
|
-
}>;
|
|
31
|
-
export default IntegrationWalkthroughModal;
|