@bigbinary/neeto-molecules 1.0.41 → 1.0.42

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 CHANGED
@@ -20,6 +20,7 @@ https://neeto-molecules.neeto.com/
20
20
  - [EmailPreview](./docs/components.md#emailpreview)
21
21
  - [ErrorPage](./docs/components.md#errorpage)
22
22
  - [IntegrationCard](./docs/components.md#integrationscard)
23
+ - [IntegrationDisconnectAlert](./docs/components.md#integrationdisconnectalert)
23
24
  - [IntegrationWalkthroughModal](./docs/components.md#integrationwalkthroughmodal)
24
25
  - [IpRestriction](./docs/components.md#iprestriction)
25
26
  - [KeyboardShortcuts](./docs/components.md#keyboardshortcuts)
@@ -0,0 +1,81 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var neetoui = require('@bigbinary/neetoui');
5
+ var reactI18next = require('react-i18next');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ function _extends() {
12
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
13
+ for (var i = 1; i < arguments.length; i++) {
14
+ var source = arguments[i];
15
+ for (var key in source) {
16
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
17
+ target[key] = source[key];
18
+ }
19
+ }
20
+ }
21
+ return target;
22
+ };
23
+ return _extends.apply(this, arguments);
24
+ }
25
+
26
+ function _objectWithoutPropertiesLoose(source, excluded) {
27
+ if (source == null) return {};
28
+ var target = {};
29
+ var sourceKeys = Object.keys(source);
30
+ var key, i;
31
+ for (i = 0; i < sourceKeys.length; i++) {
32
+ key = sourceKeys[i];
33
+ if (excluded.indexOf(key) >= 0) continue;
34
+ target[key] = source[key];
35
+ }
36
+ return target;
37
+ }
38
+
39
+ function _objectWithoutProperties(source, excluded) {
40
+ if (source == null) return {};
41
+ var target = _objectWithoutPropertiesLoose(source, excluded);
42
+ var key, i;
43
+ if (Object.getOwnPropertySymbols) {
44
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
45
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
46
+ key = sourceSymbolKeys[i];
47
+ if (excluded.indexOf(key) >= 0) continue;
48
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
49
+ target[key] = source[key];
50
+ }
51
+ }
52
+ return target;
53
+ }
54
+
55
+ var _excluded = ["isOpen", "isDisconnecting", "title", "message", "onClose", "onDisconnect"];
56
+ var IntegrationDisconnectAlert = function IntegrationDisconnectAlert(_ref) {
57
+ var isOpen = _ref.isOpen,
58
+ isDisconnecting = _ref.isDisconnecting,
59
+ title = _ref.title,
60
+ _ref$message = _ref.message,
61
+ message = _ref$message === void 0 ? "" : _ref$message,
62
+ onClose = _ref.onClose,
63
+ onDisconnect = _ref.onDisconnect,
64
+ otherProps = _objectWithoutProperties(_ref, _excluded);
65
+ var _useTranslation = reactI18next.useTranslation(),
66
+ t = _useTranslation.t;
67
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, _extends({
68
+ closeOnEsc: true,
69
+ closeOnOutsideClick: true,
70
+ isOpen: isOpen,
71
+ isSubmitting: isDisconnecting,
72
+ message: message,
73
+ title: title,
74
+ submitButtonLabel: t("neetoMolecules.integrationDisconnectAlert.disconnect"),
75
+ onClose: onClose,
76
+ onSubmit: onDisconnect
77
+ }, otherProps));
78
+ };
79
+
80
+ module.exports = IntegrationDisconnectAlert;
81
+ //# sourceMappingURL=IntegrationDisconnectAlert.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntegrationDisconnectAlert.cjs.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../src/components/IntegrationDisconnectAlert/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import React from \"react\";\n\nimport { Alert } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nconst IntegrationDisconnectAlert = ({\n isOpen,\n isDisconnecting,\n title,\n message = \"\",\n onClose,\n onDisconnect,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n return (\n <Alert\n closeOnEsc\n closeOnOutsideClick\n isOpen={isOpen}\n isSubmitting={isDisconnecting}\n message={message}\n title={title}\n submitButtonLabel={t(\n \"neetoMolecules.integrationDisconnectAlert.disconnect\"\n )}\n onClose={onClose}\n onSubmit={onDisconnect}\n {...otherProps}\n />\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\nexport default IntegrationDisconnectAlert;\n"],"names":["objectWithoutPropertiesLoose","IntegrationDisconnectAlert","_ref","isOpen","isDisconnecting","title","_ref$message","message","onClose","onDisconnect","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","React","createElement","Alert","_extends","closeOnEsc","closeOnOutsideClick","isSubmitting","submitButtonLabel","onSubmit"],"mappings":";;;;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;ACbe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC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C,CAAC;AAChC,KAAK;AACL,GAAG;AACH,EAAE,OAAO,MAAM,CAAC;AAChB;;;ACTA,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAAC,IAAA,EAQ1B;AAAA,EAAA,IAPJC,MAAM,GAAAD,IAAA,CAANC,MAAM;IACNC,eAAe,GAAAF,IAAA,CAAfE,eAAe;IACfC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAAC,YAAA,GAAAJ,IAAA,CACLK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,YAAA;IACZE,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,YAAY,GAAAP,IAAA,CAAZO,YAAY;AACTC,IAAAA,UAAU,GAAAC,wBAAA,CAAAT,IAAA,EAAAU,SAAA,CAAA,CAAA;EAEb,IAAAC,eAAA,GAAcC,2BAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC,CAAA;AAET,EAAA,oBACEC,yBAAA,CAAAC,aAAA,CAACC,aAAK,EAAAC,QAAA,CAAA;IACJC,UAAU,EAAA,IAAA;IACVC,mBAAmB,EAAA,IAAA;AACnBlB,IAAAA,MAAM,EAAEA,MAAO;AACfmB,IAAAA,YAAY,EAAElB,eAAgB;AAC9BG,IAAAA,OAAO,EAAEA,OAAQ;AACjBF,IAAAA,KAAK,EAAEA,KAAM;AACbkB,IAAAA,iBAAiB,EAAER,CAAC,CAClB,sDAAsD,CACtD;AACFP,IAAAA,OAAO,EAAEA,OAAQ;AACjBgB,IAAAA,QAAQ,EAAEf,YAAAA;AAAa,GAAA,EACnBC,UAAU,CACd,CAAA,CAAA;AAEN;;;;"}
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import { Alert } from '@bigbinary/neetoui';
3
+ import { useTranslation } from 'react-i18next';
4
+
5
+ function _extends() {
6
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
7
+ for (var i = 1; i < arguments.length; i++) {
8
+ var source = arguments[i];
9
+ for (var key in source) {
10
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
11
+ target[key] = source[key];
12
+ }
13
+ }
14
+ }
15
+ return target;
16
+ };
17
+ return _extends.apply(this, arguments);
18
+ }
19
+
20
+ function _objectWithoutPropertiesLoose(source, excluded) {
21
+ if (source == null) return {};
22
+ var target = {};
23
+ var sourceKeys = Object.keys(source);
24
+ var key, i;
25
+ for (i = 0; i < sourceKeys.length; i++) {
26
+ key = sourceKeys[i];
27
+ if (excluded.indexOf(key) >= 0) continue;
28
+ target[key] = source[key];
29
+ }
30
+ return target;
31
+ }
32
+
33
+ function _objectWithoutProperties(source, excluded) {
34
+ if (source == null) return {};
35
+ var target = _objectWithoutPropertiesLoose(source, excluded);
36
+ var key, i;
37
+ if (Object.getOwnPropertySymbols) {
38
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
39
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
40
+ key = sourceSymbolKeys[i];
41
+ if (excluded.indexOf(key) >= 0) continue;
42
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
43
+ target[key] = source[key];
44
+ }
45
+ }
46
+ return target;
47
+ }
48
+
49
+ var _excluded = ["isOpen", "isDisconnecting", "title", "message", "onClose", "onDisconnect"];
50
+ var IntegrationDisconnectAlert = function IntegrationDisconnectAlert(_ref) {
51
+ var isOpen = _ref.isOpen,
52
+ isDisconnecting = _ref.isDisconnecting,
53
+ title = _ref.title,
54
+ _ref$message = _ref.message,
55
+ message = _ref$message === void 0 ? "" : _ref$message,
56
+ onClose = _ref.onClose,
57
+ onDisconnect = _ref.onDisconnect,
58
+ otherProps = _objectWithoutProperties(_ref, _excluded);
59
+ var _useTranslation = useTranslation(),
60
+ t = _useTranslation.t;
61
+ return /*#__PURE__*/React.createElement(Alert, _extends({
62
+ closeOnEsc: true,
63
+ closeOnOutsideClick: true,
64
+ isOpen: isOpen,
65
+ isSubmitting: isDisconnecting,
66
+ message: message,
67
+ title: title,
68
+ submitButtonLabel: t("neetoMolecules.integrationDisconnectAlert.disconnect"),
69
+ onClose: onClose,
70
+ onSubmit: onDisconnect
71
+ }, otherProps));
72
+ };
73
+
74
+ export { IntegrationDisconnectAlert as default };
75
+ //# sourceMappingURL=IntegrationDisconnectAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntegrationDisconnectAlert.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../src/components/IntegrationDisconnectAlert/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import React from \"react\";\n\nimport { Alert } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nconst IntegrationDisconnectAlert = ({\n isOpen,\n isDisconnecting,\n title,\n message = \"\",\n onClose,\n onDisconnect,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n return (\n <Alert\n closeOnEsc\n closeOnOutsideClick\n isOpen={isOpen}\n isSubmitting={isDisconnecting}\n message={message}\n title={title}\n submitButtonLabel={t(\n \"neetoMolecules.integrationDisconnectAlert.disconnect\"\n )}\n onClose={onClose}\n onSubmit={onDisconnect}\n {...otherProps}\n />\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\nexport default IntegrationDisconnectAlert;\n"],"names":["objectWithoutPropertiesLoose","IntegrationDisconnectAlert","_ref","isOpen","isDisconnecting","title","_ref$message","message","onClose","onDisconnect","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","React","createElement","Alert","_extends","closeOnEsc","closeOnOutsideClick","isSubmitting","submitButtonLabel","onSubmit"],"mappings":";;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CA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B;AAC9BG,IAAAA,OAAO,EAAEA,OAAQ;AACjBF,IAAAA,KAAK,EAAEA,KAAM;AACbkB,IAAAA,iBAAiB,EAAER,CAAC,CAClB,sDAAsD,CACtD;AACFP,IAAAA,OAAO,EAAEA,OAAQ;AACjBgB,IAAAA,QAAQ,EAAEf,YAAAA;AAAa,GAAA,EACnBC,UAAU,CACd,CAAA,CAAA;AAEN;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "A package of reusable molecular components for neeto products.",
5
5
  "repository": "git@github.com:bigbinary/neeto-molecules.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -284,6 +284,9 @@
284
284
  "header": "Check how it behaves",
285
285
  "continue": "Continue"
286
286
  },
287
+ "integrationDisconnectAlert": {
288
+ "disconnect": "Disconnect"
289
+ },
287
290
  "publishBlock": {
288
291
  "viewDraftVersion": "View draft version",
289
292
  "deleteDraftVersion": "Delete draft version. It'll not impact the published version",
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ /**
3
+ *
4
+ * A common component used for disconnect UI of integrations across neeto products.
5
+ *
6
+ * @example
7
+ *
8
+ * import IntegrationDisconnectAlert from "@bigbinary/neeto-molecules/IntegrationDisconnectAlert";
9
+ *
10
+ * const Integration = () => {
11
+ * const [isOpen, setIsOpen] = useState(false);
12
+ * const [isDisconnecting, setIsDisconnecting] = useState(false);
13
+ *
14
+ * return (
15
+ * <IntegrationDisconnectAlert
16
+ * isOpen={isOpen}
17
+ * isDisconnecting={isDisconnecting}
18
+ * title="Disconnect Slack integration"
19
+ * message="This will disconnect the slack integration"
20
+ * onClose={() => setIsOpen(false)}
21
+ * onDisconnect={() => console.log("Disconnect the integration")}
22
+ * />
23
+ * );
24
+ * };
25
+ * @endexample
26
+ */
27
+ const IntegrationDisconnectAlert: React.FC<{
28
+ isOpen: boolean;
29
+ isDisconnecting: boolean;
30
+ title: string;
31
+ message?: string;
32
+ onClose: (...args: any[]) => any;
33
+ onDisconnect: (...args: any[]) => any;
34
+ }>;
35
+ export default IntegrationDisconnectAlert;
@@ -1,6 +1,9 @@
1
1
  import React from "react";
2
2
  type EmbedCode = React.FC<{
3
+ maxWidth?: string;
3
4
  primaryApp?: string;
5
+ showSessionContext?: boolean;
6
+ showUserIdentity?: boolean;
4
7
  }>;
5
8
  /**
6
9
  *
@@ -40,12 +40,14 @@ import React from "react";
40
40
  * const { mutate: regenerateURL, isLoading: isRegenerating } =
41
41
  * useRegenerateUrl();
42
42
  *
43
- * const { mutate: updateUrl, isLoading: isUpdating } =
44
- * useUpdateUrl();
43
+ * const { mutate: updateUrl, isLoading: isUpdating } = useUpdateUrl();
45
44
  *
46
45
  * return (
47
46
  * <ShareViaLink
48
- * editUrlProps={{ prefix: `${window.location.origin}/`, editablePath: window.location.pathname }}
47
+ * editUrlProps={{
48
+ * prefix: `${window.location.origin}/`,
49
+ * editablePath: window.location.pathname,
50
+ * }}
49
51
  * enabledOptions={{ regenerate: true, edit: true }}
50
52
  * entity={quiz}
51
53
  * entityName="quiz"