@bigbinary/neeto-integrations-frontend 3.1.6 → 3.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/app/javascript/src/translations/en.json +3 -2
- package/dist/Connect.js +14 -13
- package/dist/Connect.js.map +1 -1
- package/dist/Daily.js +2 -1
- package/dist/Daily.js.map +1 -1
- package/dist/DailyForm.js +2 -1
- package/dist/DailyForm.js.map +1 -1
- package/dist/Demo.js +10 -17
- package/dist/Demo.js.map +1 -1
- package/dist/Finish.js +11 -10
- package/dist/Finish.js.map +1 -1
- package/dist/{Form-BxWddtY4.js → Form-CPYZSV18.js} +12 -14
- package/dist/Form-CPYZSV18.js.map +1 -0
- package/dist/{Form-CYcwyCez.js → Form-DY3ljixO.js} +12 -14
- package/dist/Form-DY3ljixO.js.map +1 -0
- package/dist/GoogleCalendar.js +1 -0
- package/dist/GoogleCalendar.js.map +1 -1
- package/dist/Manage.js +62 -60
- package/dist/Manage.js.map +1 -1
- package/dist/Twilio.js +17 -18
- package/dist/Twilio.js.map +1 -1
- package/dist/ZapierForm.js +49 -42
- package/dist/ZapierForm.js.map +1 -1
- package/dist/cjs/Connect.js +14 -13
- package/dist/cjs/Connect.js.map +1 -1
- package/dist/cjs/Daily.js +2 -1
- package/dist/cjs/Daily.js.map +1 -1
- package/dist/cjs/DailyForm.js +2 -1
- package/dist/cjs/DailyForm.js.map +1 -1
- package/dist/cjs/Demo.js +10 -17
- package/dist/cjs/Demo.js.map +1 -1
- package/dist/cjs/Finish.js +11 -10
- package/dist/cjs/Finish.js.map +1 -1
- package/dist/cjs/GoogleCalendar.js +1 -0
- package/dist/cjs/GoogleCalendar.js.map +1 -1
- package/dist/cjs/Manage.js +62 -60
- package/dist/cjs/Manage.js.map +1 -1
- package/dist/cjs/Twilio.js +16 -17
- package/dist/cjs/Twilio.js.map +1 -1
- package/dist/cjs/ZapierForm.js +49 -42
- package/dist/cjs/ZapierForm.js.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +16 -15
- package/dist/Form-BxWddtY4.js.map +0 -1
- package/dist/Form-CYcwyCez.js.map +0 -1
package/dist/cjs/ZapierForm.js
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
4
4
|
var Button = require('@bigbinary/neetoui/Button');
|
|
5
5
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
6
|
-
var Typography = require('@bigbinary/neetoui/Typography');
|
|
7
|
-
var ramda = require('ramda');
|
|
8
6
|
var reactI18next = require('react-i18next');
|
|
9
7
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
10
8
|
var React = require('react');
|
|
@@ -12,12 +10,15 @@ var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
|
12
10
|
var TableWrapper = require('@bigbinary/neeto-molecules/TableWrapper');
|
|
13
11
|
var Alert = require('@bigbinary/neetoui/Alert');
|
|
14
12
|
var Table = require('@bigbinary/neetoui/Table');
|
|
13
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
14
|
+
var ramda = require('ramda');
|
|
15
15
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
16
16
|
var i18next = require('i18next');
|
|
17
17
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
18
18
|
var MoreDropdown = require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
19
19
|
var yup = require('yup');
|
|
20
20
|
var jsxRuntime = require('react/jsx-runtime');
|
|
21
|
+
var CardLayout = require('@bigbinary/neeto-molecules/CardLayout');
|
|
21
22
|
var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
|
|
22
23
|
var FormikForm = require('@bigbinary/neetoui/formik/Form');
|
|
23
24
|
var Input = require('@bigbinary/neetoui/formik/Input');
|
|
@@ -149,7 +150,7 @@ var ApiKeysList = function ApiKeysList(_ref) {
|
|
|
149
150
|
if (ramda.isEmpty(apiKeys)) return null;
|
|
150
151
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
151
152
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
152
|
-
className: "max-w-full space-y-
|
|
153
|
+
className: "max-w-full space-y-3",
|
|
153
154
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
154
155
|
style: "h3",
|
|
155
156
|
children: t("neetoIntegrations.zapier.tableTitle")
|
|
@@ -189,7 +190,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
189
190
|
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; }
|
|
190
191
|
var GenerateKey = function GenerateKey(_ref) {
|
|
191
192
|
var handleSubmit = _ref.handleSubmit,
|
|
192
|
-
isLoading = _ref.isLoading
|
|
193
|
+
isLoading = _ref.isLoading,
|
|
194
|
+
helpDocUrl = _ref.helpDocUrl;
|
|
193
195
|
var _useTranslation = reactI18next.useTranslation(),
|
|
194
196
|
t = _useTranslation.t;
|
|
195
197
|
var inputRef = React.useRef(null);
|
|
@@ -199,16 +201,13 @@ var GenerateKey = function GenerateKey(_ref) {
|
|
|
199
201
|
inputRef.current.focus();
|
|
200
202
|
}, []);
|
|
201
203
|
return /*#__PURE__*/jsxRuntime.jsx(FormikForm, {
|
|
204
|
+
className: "w-full",
|
|
202
205
|
formikProps: _objectSpread(_objectSpread({}, GENERATE_API_KEY_FORMIK_PROPS), {}, {
|
|
203
206
|
onSubmit: handleSubmit
|
|
204
207
|
}),
|
|
205
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
name: "label",
|
|
209
|
-
placeholder: t("neetoIntegrations.zapier.labelInputPlaceholder"),
|
|
210
|
-
ref: inputRef
|
|
211
|
-
}), /*#__PURE__*/jsxRuntime.jsx(ActionBlock, {
|
|
208
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CardLayout, {
|
|
209
|
+
title: t("neetoIntegrations.zapier.apiKeys"),
|
|
210
|
+
actionBlock: /*#__PURE__*/jsxRuntime.jsx(ActionBlock, {
|
|
212
211
|
cancelButtonProps: {
|
|
213
212
|
onClick: function onClick() {
|
|
214
213
|
return history.goBack();
|
|
@@ -218,7 +217,20 @@ var GenerateKey = function GenerateKey(_ref) {
|
|
|
218
217
|
submitButtonProps: {
|
|
219
218
|
label: t("neetoIntegrations.zapier.generateApiKey")
|
|
220
219
|
}
|
|
221
|
-
})
|
|
220
|
+
}),
|
|
221
|
+
description: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
222
|
+
children: [t("neetoIntegrations.zapier.emptyText"), " ", neetoCist.isNotEmpty(helpDocUrl) && /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
223
|
+
href: helpDocUrl,
|
|
224
|
+
label: t("neetoIntegrations.zapier.learnMore"),
|
|
225
|
+
style: "link",
|
|
226
|
+
target: "_blank"
|
|
227
|
+
})]
|
|
228
|
+
}),
|
|
229
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
230
|
+
name: "label",
|
|
231
|
+
placeholder: t("neetoIntegrations.zapier.labelInputPlaceholder"),
|
|
232
|
+
ref: inputRef
|
|
233
|
+
})
|
|
222
234
|
})
|
|
223
235
|
});
|
|
224
236
|
};
|
|
@@ -227,21 +239,19 @@ var NewApiKeyInfo = reactUtils.withT(function (_ref) {
|
|
|
227
239
|
var t = _ref.t,
|
|
228
240
|
apiKey = _ref.apiKey;
|
|
229
241
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
230
|
-
className: "space-y-
|
|
242
|
+
className: "space-y-3",
|
|
231
243
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
232
|
-
classname: "neeto-ui-text-gray-700",
|
|
233
244
|
style: "body2",
|
|
234
245
|
weight: "normal",
|
|
235
246
|
children: t("neetoIntegrations.zapier.newApiKeyInstruction")
|
|
236
247
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
237
|
-
className: "flex
|
|
248
|
+
className: "flex gap-2",
|
|
238
249
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
239
|
-
className: "neeto-ui-
|
|
240
|
-
style: "
|
|
241
|
-
weight: "
|
|
250
|
+
className: "neeto-ui-bg-gray-50 neeto-ui-border-gray-300 neeto-ui-rounded min-w-96 border px-2 py-1",
|
|
251
|
+
style: "body2",
|
|
252
|
+
weight: "medium",
|
|
242
253
|
children: apiKey
|
|
243
254
|
}), /*#__PURE__*/jsxRuntime.jsx(CopyToClipboardButton, {
|
|
244
|
-
label: t("neetoIntegrations.zapier.copyApiKey"),
|
|
245
255
|
value: apiKey
|
|
246
256
|
})]
|
|
247
257
|
})]
|
|
@@ -280,29 +290,26 @@ var ZapierForm = function ZapierForm(_ref) {
|
|
|
280
290
|
});
|
|
281
291
|
}
|
|
282
292
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
283
|
-
className: "flex w-full max-w-3xl flex-col items-start space-y-6",
|
|
284
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
285
|
-
|
|
286
|
-
children:
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
onClick: function onClick() {
|
|
304
|
-
return setIsDemoModalOpen(true);
|
|
305
|
-
}
|
|
293
|
+
className: "mx-auto flex w-full max-w-3xl flex-col items-start space-y-6",
|
|
294
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
295
|
+
className: "w-full",
|
|
296
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(GenerateKey, {
|
|
297
|
+
helpDocUrl: helpDocUrl,
|
|
298
|
+
videoUrl: videoUrl,
|
|
299
|
+
handleSubmit: handleGenerateApiKey,
|
|
300
|
+
isLoading: isGenerating
|
|
301
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
302
|
+
className: "space-y-4",
|
|
303
|
+
children: [neetoCist.isNotEmpty(newlyCreatedApiKey) && /*#__PURE__*/jsxRuntime.jsx(NewApiKeyInfo, {
|
|
304
|
+
apiKey: newlyCreatedApiKey
|
|
305
|
+
}), neetoCist.isNotEmpty(videoUrl) && /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
306
|
+
label: t("neetoIntegrations.zapier.walkthroughText"),
|
|
307
|
+
style: "link",
|
|
308
|
+
onClick: function onClick() {
|
|
309
|
+
return setIsDemoModalOpen(true);
|
|
310
|
+
}
|
|
311
|
+
})]
|
|
312
|
+
})]
|
|
306
313
|
}), /*#__PURE__*/jsxRuntime.jsx(ApiKeysList, {
|
|
307
314
|
apiKeys: apiKeys,
|
|
308
315
|
deleteApiKey: deleteApiKey,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZapierForm.js","sources":["../../app/javascript/src/components/Integrations/ZapierForm/constants.js","../../app/javascript/src/components/Integrations/ZapierForm/utils.jsx","../../app/javascript/src/components/Integrations/ZapierForm/ApiKeysList.jsx","../../app/javascript/src/components/Integrations/ZapierForm/GenerateKey.jsx","../../app/javascript/src/components/Integrations/ZapierForm/NewApiKeyInfo.jsx","../../app/javascript/src/components/Integrations/ZapierForm/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as Yup from \"yup\";\n\nconst GENERATE_API_KEY_VALIDATION = Yup.object({\n label: Yup.string()\n .trim(t(\"neetoIntegrations.zapier.label.noBlankSpaces\"))\n .required(t(\"neetoIntegrations.zapier.label.required\"))\n .strict(),\n});\n\nexport const GENERATE_API_KEY_FORMIK_PROPS = {\n initialValues: { label: \"\" },\n validationSchema: GENERATE_API_KEY_VALIDATION,\n validateOnBlur: false,\n};\n\nexport const MENU_ITEMS = { DELETE: \"delete\" };\n","import { t } from \"i18next\";\nimport { timeFormat } from \"neetocommons/utils\";\nimport MoreDropdown from \"neetomolecules/MoreDropdown\";\nimport { Typography } from \"neetoui\";\n\nimport { MENU_ITEMS } from \"./constants\";\n\nconst getMenuItems = ({ apiKey, setApiKeyToDelete }) => [\n {\n key: MENU_ITEMS.DELETE,\n \"data-cy\": \"delete-apikey-button\",\n label: t(\"neetoIntegrations.common.delete\"),\n onClick: () => setApiKeyToDelete(apiKey),\n },\n];\n\nexport const getApiKeysTableColumnData = () => [\n {\n title: t(\"neetoIntegrations.zapier.tableColumns.label\"),\n dataIndex: \"options\",\n key: \"options\",\n width: 272,\n render: (options, { actions }) => (\n <div className=\"flex items-center justify-between gap-x-3\">\n <Typography className=\"w-4/5\" style=\"body2\">\n {options?.label}\n </Typography>\n {actions}\n </div>\n ),\n },\n {\n title: t(\"neetoIntegrations.zapier.tableColumns.createdAt\"),\n dataIndex: \"createdAt\",\n key: \"createdAt\",\n width: 200,\n },\n];\n\nexport const getApiKeysTableRowData = ({ apiKeys, setApiKeyToDelete }) =>\n apiKeys.map(apiKey => ({\n ...apiKey,\n createdAt: timeFormat.fromNow(apiKey.createdAt),\n actions: (\n <MoreDropdown\n dropdownProps={{ strategy: \"fixed\" }}\n menuItems={getMenuItems({ apiKey, setApiKeyToDelete })}\n />\n ),\n }));\n","import { useState } from \"react\";\n\nimport { noop } from \"neetocist\";\nimport { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from \"neetocommons/constants\";\nimport TableWrapper from \"neetomolecules/TableWrapper\";\nimport { Alert, Table, Typography } from \"neetoui\";\nimport { isNotNil, isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { getApiKeysTableColumnData, getApiKeysTableRowData } from \"./utils\";\n\nconst ApiKeysList = ({\n apiKeys = [],\n deleteApiKey = noop,\n isDeleting = false,\n setNewlyCreatedApiKey = noop,\n}) => {\n const [apiKeyToDelete, setApiKeyToDelete] = useState(null);\n const [currentPageNumber, setCurrentPageNumber] =\n useState(DEFAULT_PAGE_INDEX);\n\n const { t } = useTranslation();\n\n const closeAlert = () => setApiKeyToDelete(null);\n\n const handleSubmit = () => {\n deleteApiKey(apiKeyToDelete?.id, {\n onSuccess: () => {\n closeAlert();\n setNewlyCreatedApiKey(\"\");\n },\n });\n };\n\n if (isEmpty(apiKeys)) return null;\n\n return (\n <>\n <div className=\"max-w-full space-y-2\">\n <Typography style=\"h3\">\n {t(\"neetoIntegrations.zapier.tableTitle\")}\n </Typography>\n <TableWrapper>\n <Table\n {...{ currentPageNumber }}\n fixedHeight\n allowRowClick={false}\n columnData={getApiKeysTableColumnData()}\n defaultPageSize={DEFAULT_PAGE_SIZE}\n handlePageChange={setCurrentPageNumber}\n rowData={getApiKeysTableRowData({ apiKeys, setApiKeyToDelete })}\n />\n </TableWrapper>\n </div>\n <Alert\n backdropClassName=\"zapier-delete-alert\"\n isOpen={isNotNil(apiKeyToDelete)}\n isSubmitting={isDeleting}\n submitButtonLabel={t(\"neetoIntegrations.common.delete\")}\n title={t(\"neetoIntegrations.zapier.deleteApiKey.title\")}\n message={\n <Trans\n i18nKey=\"neetoIntegrations.zapier.deleteApiKey.message\"\n values={{ key: apiKeyToDelete?.options?.label }}\n />\n }\n onClose={closeAlert}\n onSubmit={handleSubmit}\n />\n </>\n );\n};\n\nexport default ApiKeysList;\n","import { useEffect, useRef } from \"react\";\n\nimport { ActionBlock, Form, Input } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { GENERATE_API_KEY_FORMIK_PROPS } from \"./constants\";\n\nconst GenerateKey = ({ handleSubmit, isLoading }) => {\n const { t } = useTranslation();\n const inputRef = useRef(null);\n const history = useHistory();\n\n useEffect(() => {\n if (!inputRef.current) return;\n inputRef.current.focus();\n }, []);\n\n return (\n <Form\n formikProps={{\n ...GENERATE_API_KEY_FORMIK_PROPS,\n onSubmit: handleSubmit,\n }}\n >\n <div className=\"space-y-3\">\n <Input\n name=\"label\"\n placeholder={t(\"neetoIntegrations.zapier.labelInputPlaceholder\")}\n ref={inputRef}\n />\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isLoading}\n submitButtonProps={{\n label: t(\"neetoIntegrations.zapier.generateApiKey\"),\n }}\n />\n </div>\n </Form>\n );\n};\n\nexport default GenerateKey;\n","import { withT } from \"neetocommons/react-utils\";\nimport CopyToClipboardButton from \"neetomolecules/CopyToClipboardButton\";\nimport { Typography } from \"neetoui\";\n\nconst NewApiKeyInfo = withT(({ t, apiKey }) => (\n <div className=\"space-y-2\">\n <Typography\n classname=\"neeto-ui-text-gray-700\"\n style=\"body2\"\n weight=\"normal\"\n >\n {t(\"neetoIntegrations.zapier.newApiKeyInstruction\")}\n </Typography>\n <div className=\"flex justify-between\">\n <Typography\n className=\"neeto-ui-text-gray-800 my-auto\"\n style=\"h5\"\n weight=\"semibold\"\n >\n {apiKey}\n </Typography>\n <CopyToClipboardButton\n label={t(\"neetoIntegrations.zapier.copyApiKey\")}\n value={apiKey}\n />\n </div>\n </div>\n));\n\nexport default NewApiKeyInfo;\n","import { isNotEmpty, noop } from \"neetocist\";\nimport { Button, Spinner, Typography } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport ApiKeysList from \"./ApiKeysList\";\nimport GenerateKey from \"./GenerateKey\";\nimport NewApiKeyInfo from \"./NewApiKeyInfo\";\n\nconst ZapierForm = ({\n newlyCreatedApiKey = \"\",\n videoUrl = \"\",\n helpDocUrl = \"\",\n apiKeys = [],\n isGenerating = false,\n isLoading = true,\n isDeleting = false,\n deleteApiKey = noop,\n handleGenerateApiKey = noop,\n setNewlyCreatedApiKey = noop,\n setIsDemoModalOpen = noop,\n}) => {\n const { t } = useTranslation();\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <div className=\"flex w-full max-w-3xl flex-col items-start space-y-6\">\n <Typography style=\"h2\">\n {t(\"neetoIntegrations.zapier.apiKeys\")}\n </Typography>\n {isEmpty(apiKeys) && (\n <Typography style=\"h4\">\n {t(\"neetoIntegrations.zapier.emptyText\")}\n </Typography>\n )}\n <GenerateKey\n handleSubmit={handleGenerateApiKey}\n isLoading={isGenerating}\n />\n {isNotEmpty(newlyCreatedApiKey) && (\n <NewApiKeyInfo apiKey={newlyCreatedApiKey} />\n )}\n {isNotEmpty(helpDocUrl) && (\n <Button\n href={helpDocUrl}\n label={t(\"neetoIntegrations.zapier.helpDoc\")}\n style=\"link\"\n target=\"_blank\"\n />\n )}\n {isNotEmpty(videoUrl) && (\n <Button\n label={t(\"neetoIntegrations.zapier.walkthroughText\")}\n style=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n )}\n <ApiKeysList\n {...{ apiKeys, deleteApiKey, isDeleting, setNewlyCreatedApiKey }}\n />\n </div>\n );\n};\n\nexport default ZapierForm;\n"],"names":["GENERATE_API_KEY_VALIDATION","Yup","object","label","string","trim","t","required","strict","GENERATE_API_KEY_FORMIK_PROPS","initialValues","validationSchema","validateOnBlur","MENU_ITEMS","DELETE","getMenuItems","_ref","apiKey","setApiKeyToDelete","key","onClick","getApiKeysTableColumnData","title","dataIndex","width","render","options","_ref2","actions","_jsxs","className","children","_jsx","Typography","style","getApiKeysTableRowData","_ref3","apiKeys","map","_objectSpread","createdAt","timeFormat","fromNow","MoreDropdown","dropdownProps","strategy","menuItems","ApiKeysList","_apiKeyToDelete$optio","_ref$apiKeys","_ref$deleteApiKey","deleteApiKey","noop","_ref$isDeleting","isDeleting","_ref$setNewlyCreatedA","setNewlyCreatedApiKey","_useState","useState","_useState2","_slicedToArray","apiKeyToDelete","_useState3","DEFAULT_PAGE_INDEX","_useState4","currentPageNumber","setCurrentPageNumber","_useTranslation","useTranslation","closeAlert","handleSubmit","id","onSuccess","isEmpty","_Fragment","TableWrapper","Table","fixedHeight","allowRowClick","columnData","defaultPageSize","DEFAULT_PAGE_SIZE","handlePageChange","rowData","Alert","backdropClassName","isOpen","isNotNil","isSubmitting","submitButtonLabel","message","Trans","i18nKey","values","onClose","onSubmit","GenerateKey","isLoading","inputRef","useRef","history","useHistory","useEffect","current","focus","Form","formikProps","Input","name","placeholder","ref","ActionBlock","cancelButtonProps","goBack","submitButtonProps","NewApiKeyInfo","withT","classname","weight","CopyToClipboardButton","value","ZapierForm","_ref$newlyCreatedApiK","newlyCreatedApiKey","_ref$videoUrl","videoUrl","_ref$helpDocUrl","helpDocUrl","_ref$isGenerating","isGenerating","_ref$isLoading","_ref$handleGenerateAp","handleGenerateApiKey","_ref$setIsDemoModalOp","setIsDemoModalOpen","Spinner","isNotEmpty","Button","href","target"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMA,2BAA2B,GAAGC,cAAG,CAACC,MAAM,CAAC;EAC7CC,KAAK,EAAEF,cAAG,CAACG,MAAM,EAAE,CAChBC,IAAI,CAACC,SAAC,CAAC,8CAA8C,CAAC,CAAC,CACvDC,QAAQ,CAACD,SAAC,CAAC,yCAAyC,CAAC,CAAC,CACtDE,MAAM;AACX,CAAC,CAAC;AAEK,IAAMC,6BAA6B,GAAG;AAC3CC,EAAAA,aAAa,EAAE;AAAEP,IAAAA,KAAK,EAAE;GAAI;AAC5BQ,EAAAA,gBAAgB,EAAEX,2BAA2B;AAC7CY,EAAAA,cAAc,EAAE;AAClB,CAAC;AAEM,IAAMC,UAAU,GAAG;AAAEC,EAAAA,MAAM,EAAE;AAAS,CAAC;;;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AA,KAAK,EAAC,MAAM;MACZd,OAAO,EAAE,SAATA,OAAOA,GAAA;QAAA,OAAQkH,kBAAkB,CAAC,IAAI,CAAC;AAAA;AAAC,KACzC,CACF,eACDtG,cAAA,CAACe,WAAW,EAAA;AACJV,MAAAA,OAAO,EAAPA,OAAO;AAAEc,MAAAA,YAAY,EAAZA,YAAY;AAAEG,MAAAA,UAAU,EAAVA,UAAU;AAAEE,MAAAA,qBAAqB,EAArBA;AAAqB,KAC/D,CAAC;AAAA,GACC,CAAC;AAEV;;;;"}
|
|
1
|
+
{"version":3,"file":"ZapierForm.js","sources":["../../app/javascript/src/components/Integrations/ZapierForm/constants.js","../../app/javascript/src/components/Integrations/ZapierForm/utils.jsx","../../app/javascript/src/components/Integrations/ZapierForm/ApiKeysList.jsx","../../app/javascript/src/components/Integrations/ZapierForm/GenerateKey.jsx","../../app/javascript/src/components/Integrations/ZapierForm/NewApiKeyInfo.jsx","../../app/javascript/src/components/Integrations/ZapierForm/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as Yup from \"yup\";\n\nconst GENERATE_API_KEY_VALIDATION = Yup.object({\n label: Yup.string()\n .trim(t(\"neetoIntegrations.zapier.label.noBlankSpaces\"))\n .required(t(\"neetoIntegrations.zapier.label.required\"))\n .strict(),\n});\n\nexport const GENERATE_API_KEY_FORMIK_PROPS = {\n initialValues: { label: \"\" },\n validationSchema: GENERATE_API_KEY_VALIDATION,\n validateOnBlur: false,\n};\n\nexport const MENU_ITEMS = { DELETE: \"delete\" };\n","import { t } from \"i18next\";\nimport { timeFormat } from \"neetocommons/utils\";\nimport MoreDropdown from \"neetomolecules/MoreDropdown\";\nimport { Typography } from \"neetoui\";\n\nimport { MENU_ITEMS } from \"./constants\";\n\nconst getMenuItems = ({ apiKey, setApiKeyToDelete }) => [\n {\n key: MENU_ITEMS.DELETE,\n \"data-cy\": \"delete-apikey-button\",\n label: t(\"neetoIntegrations.common.delete\"),\n onClick: () => setApiKeyToDelete(apiKey),\n },\n];\n\nexport const getApiKeysTableColumnData = () => [\n {\n title: t(\"neetoIntegrations.zapier.tableColumns.label\"),\n dataIndex: \"options\",\n key: \"options\",\n width: 272,\n render: (options, { actions }) => (\n <div className=\"flex items-center justify-between gap-x-3\">\n <Typography className=\"w-4/5\" style=\"body2\">\n {options?.label}\n </Typography>\n {actions}\n </div>\n ),\n },\n {\n title: t(\"neetoIntegrations.zapier.tableColumns.createdAt\"),\n dataIndex: \"createdAt\",\n key: \"createdAt\",\n width: 200,\n },\n];\n\nexport const getApiKeysTableRowData = ({ apiKeys, setApiKeyToDelete }) =>\n apiKeys.map(apiKey => ({\n ...apiKey,\n createdAt: timeFormat.fromNow(apiKey.createdAt),\n actions: (\n <MoreDropdown\n dropdownProps={{ strategy: \"fixed\" }}\n menuItems={getMenuItems({ apiKey, setApiKeyToDelete })}\n />\n ),\n }));\n","import { useState } from \"react\";\n\nimport { noop } from \"neetocist\";\nimport { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from \"neetocommons/constants\";\nimport TableWrapper from \"neetomolecules/TableWrapper\";\nimport { Alert, Table, Typography } from \"neetoui\";\nimport { isNotNil, isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { getApiKeysTableColumnData, getApiKeysTableRowData } from \"./utils\";\n\nconst ApiKeysList = ({\n apiKeys = [],\n deleteApiKey = noop,\n isDeleting = false,\n setNewlyCreatedApiKey = noop,\n}) => {\n const [apiKeyToDelete, setApiKeyToDelete] = useState(null);\n const [currentPageNumber, setCurrentPageNumber] =\n useState(DEFAULT_PAGE_INDEX);\n\n const { t } = useTranslation();\n\n const closeAlert = () => setApiKeyToDelete(null);\n\n const handleSubmit = () => {\n deleteApiKey(apiKeyToDelete?.id, {\n onSuccess: () => {\n closeAlert();\n setNewlyCreatedApiKey(\"\");\n },\n });\n };\n\n if (isEmpty(apiKeys)) return null;\n\n return (\n <>\n <div className=\"max-w-full space-y-3\">\n <Typography style=\"h3\">\n {t(\"neetoIntegrations.zapier.tableTitle\")}\n </Typography>\n <TableWrapper>\n <Table\n {...{ currentPageNumber }}\n fixedHeight\n allowRowClick={false}\n columnData={getApiKeysTableColumnData()}\n defaultPageSize={DEFAULT_PAGE_SIZE}\n handlePageChange={setCurrentPageNumber}\n rowData={getApiKeysTableRowData({ apiKeys, setApiKeyToDelete })}\n />\n </TableWrapper>\n </div>\n <Alert\n backdropClassName=\"zapier-delete-alert\"\n isOpen={isNotNil(apiKeyToDelete)}\n isSubmitting={isDeleting}\n submitButtonLabel={t(\"neetoIntegrations.common.delete\")}\n title={t(\"neetoIntegrations.zapier.deleteApiKey.title\")}\n message={\n <Trans\n i18nKey=\"neetoIntegrations.zapier.deleteApiKey.message\"\n values={{ key: apiKeyToDelete?.options?.label }}\n />\n }\n onClose={closeAlert}\n onSubmit={handleSubmit}\n />\n </>\n );\n};\n\nexport default ApiKeysList;\n","import { useEffect, useRef } from \"react\";\n\nimport { isNotEmpty } from \"neetocist\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport { Button } from \"neetoui\";\nimport { ActionBlock, Form, Input } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { GENERATE_API_KEY_FORMIK_PROPS } from \"./constants\";\n\nconst GenerateKey = ({ handleSubmit, isLoading, helpDocUrl }) => {\n const { t } = useTranslation();\n const inputRef = useRef(null);\n const history = useHistory();\n\n useEffect(() => {\n if (!inputRef.current) return;\n inputRef.current.focus();\n }, []);\n\n return (\n <Form\n className=\"w-full\"\n formikProps={{\n ...GENERATE_API_KEY_FORMIK_PROPS,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n title={t(\"neetoIntegrations.zapier.apiKeys\")}\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isLoading}\n submitButtonProps={{\n label: t(\"neetoIntegrations.zapier.generateApiKey\"),\n }}\n />\n }\n description={\n <>\n {t(\"neetoIntegrations.zapier.emptyText\")}{\" \"}\n {isNotEmpty(helpDocUrl) && (\n <Button\n href={helpDocUrl}\n label={t(\"neetoIntegrations.zapier.learnMore\")}\n style=\"link\"\n target=\"_blank\"\n />\n )}\n </>\n }\n >\n <Input\n name=\"label\"\n placeholder={t(\"neetoIntegrations.zapier.labelInputPlaceholder\")}\n ref={inputRef}\n />\n </CardLayout>\n </Form>\n );\n};\n\nexport default GenerateKey;\n","import { withT } from \"neetocommons/react-utils\";\nimport CopyToClipboardButton from \"neetomolecules/CopyToClipboardButton\";\nimport { Typography } from \"neetoui\";\n\nconst NewApiKeyInfo = withT(({ t, apiKey }) => (\n <div className=\"space-y-3\">\n <Typography style=\"body2\" weight=\"normal\">\n {t(\"neetoIntegrations.zapier.newApiKeyInstruction\")}\n </Typography>\n <div className=\"flex gap-2\">\n <Typography\n className=\"neeto-ui-bg-gray-50 neeto-ui-border-gray-300 neeto-ui-rounded min-w-96 border px-2 py-1\"\n style=\"body2\"\n weight=\"medium\"\n >\n {apiKey}\n </Typography>\n <CopyToClipboardButton value={apiKey} />\n </div>\n </div>\n));\n\nexport default NewApiKeyInfo;\n","import { isNotEmpty, noop } from \"neetocist\";\nimport { Button, Spinner } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport ApiKeysList from \"./ApiKeysList\";\nimport GenerateKey from \"./GenerateKey\";\nimport NewApiKeyInfo from \"./NewApiKeyInfo\";\n\nconst ZapierForm = ({\n newlyCreatedApiKey = \"\",\n videoUrl = \"\",\n helpDocUrl = \"\",\n apiKeys = [],\n isGenerating = false,\n isLoading = true,\n isDeleting = false,\n deleteApiKey = noop,\n handleGenerateApiKey = noop,\n setNewlyCreatedApiKey = noop,\n setIsDemoModalOpen = noop,\n}) => {\n const { t } = useTranslation();\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <div className=\"mx-auto flex w-full max-w-3xl flex-col items-start space-y-6\">\n <div className=\"w-full\">\n <GenerateKey\n {...{ helpDocUrl, videoUrl }}\n handleSubmit={handleGenerateApiKey}\n isLoading={isGenerating}\n />\n <div className=\"space-y-4\">\n {isNotEmpty(newlyCreatedApiKey) && (\n <NewApiKeyInfo apiKey={newlyCreatedApiKey} />\n )}\n {isNotEmpty(videoUrl) && (\n <Button\n label={t(\"neetoIntegrations.zapier.walkthroughText\")}\n style=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n )}\n </div>\n </div>\n <ApiKeysList\n {...{ apiKeys, deleteApiKey, isDeleting, setNewlyCreatedApiKey }}\n />\n </div>\n );\n};\n\nexport default ZapierForm;\n"],"names":["GENERATE_API_KEY_VALIDATION","Yup","object","label","string","trim","t","required","strict","GENERATE_API_KEY_FORMIK_PROPS","initialValues","validationSchema","validateOnBlur","MENU_ITEMS","DELETE","getMenuItems","_ref","apiKey","setApiKeyToDelete","key","onClick","getApiKeysTableColumnData","title","dataIndex","width","render","options","_ref2","actions","_jsxs","className","children","_jsx","Typography","style","getApiKeysTableRowData","_ref3","apiKeys","map","_objectSpread","createdAt","timeFormat","fromNow","MoreDropdown","dropdownProps","strategy","menuItems","ApiKeysList","_apiKeyToDelete$optio","_ref$apiKeys","_ref$deleteApiKey","deleteApiKey","noop","_ref$isDeleting","isDeleting","_ref$setNewlyCreatedA","setNewlyCreatedApiKey","_useState","useState","_useState2","_slicedToArray","apiKeyToDelete","_useState3","DEFAULT_PAGE_INDEX","_useState4","currentPageNumber","setCurrentPageNumber","_useTranslation","useTranslation","closeAlert","handleSubmit","id","onSuccess","isEmpty","_Fragment","TableWrapper","Table","fixedHeight","allowRowClick","columnData","defaultPageSize","DEFAULT_PAGE_SIZE","handlePageChange","rowData","Alert","backdropClassName","isOpen","isNotNil","isSubmitting","submitButtonLabel","message","Trans","i18nKey","values","onClose","onSubmit","GenerateKey","isLoading","helpDocUrl","inputRef","useRef","history","useHistory","useEffect","current","focus","Form","formikProps","CardLayout","actionBlock","ActionBlock","cancelButtonProps","goBack","submitButtonProps","description","isNotEmpty","Button","href","target","Input","name","placeholder","ref","NewApiKeyInfo","withT","weight","CopyToClipboardButton","value","ZapierForm","_ref$newlyCreatedApiK","newlyCreatedApiKey","_ref$videoUrl","videoUrl","_ref$helpDocUrl","_ref$isGenerating","isGenerating","_ref$isLoading","_ref$handleGenerateAp","handleGenerateApiKey","_ref$setIsDemoModalOp","setIsDemoModalOpen","Spinner"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMA,2BAA2B,GAAGC,cAAG,CAACC,MAAM,CAAC;EAC7CC,KAAK,EAAEF,cAAG,CAACG,MAAM,EAAE,CAChBC,IAAI,CAACC,SAAC,CAAC,8CAA8C,CAAC,CAAC,CACvDC,QAAQ,CAACD,SAAC,CAAC,yCAAyC,CAAC,CAAC,CACtDE,MAAM;AACX,CAAC,CAAC;AAEK,IAAMC,6BAA6B,GAAG;AAC3CC,EAAAA,aAAa,EAAE;AAAEP,IAAAA,KAAK,EAAE;GAAI;AAC5BQ,EAAAA,gBAAgB,EAAEX,2BAA2B;AAC7CY,EAAAA,cAAc,EAAE;AAClB,CAAC;AAEM,IAAMC,UAAU,GAAG;AAAEC,EAAAA,MAAM,EAAE;AAAS,CAAC;;;;ACT9C,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,iBAAiB,GAAAF,IAAA,CAAjBE,iBAAiB;AAAA,EAAA,OAAO,CACtD;IACEC,GAAG,EAAEN,UAAU,CAACC,MAAM;AACtB,IAAA,SAAS,EAAE,sBAAsB;AACjCX,IAAAA,KAAK,EAAEG,SAAC,CAAC,iCAAiC,CAAC;IAC3Cc,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQF,iBAAiB,CAACD,MAAM,CAAC;AAAA;AAC1C,GAAC,CACF;AAAA,CAAA;AAEM,IAAMI,yBAAyB,G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A;AAAqB,KAC/D,CAAC;AAAA,GACC,CAAC;AAEV;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var Manage = require('./Manage.js');
|
|
4
4
|
var DisconnectAlert = require('./DisconnectAlert.js');
|
|
5
5
|
var Daily = require('./Daily.js');
|
|
6
|
-
var DailyForm = require('../Form-
|
|
6
|
+
var DailyForm = require('../Form-CPYZSV18.js');
|
|
7
7
|
var GoogleCalendar = require('./GoogleCalendar.js');
|
|
8
8
|
var Twilio = require('./Twilio.js');
|
|
9
9
|
var Zoom = require('./Zoom.js');
|
|
@@ -32,6 +32,7 @@ require('@bigbinary/neeto-commons-frontend/utils');
|
|
|
32
32
|
require('@bigbinary/neeto-icons/misc/Daily');
|
|
33
33
|
require('@bigbinary/neeto-molecules/CopyToClipboardButton');
|
|
34
34
|
require('@bigbinary/neetoui/Spinner');
|
|
35
|
+
require('@bigbinary/neeto-molecules/CardLayout');
|
|
35
36
|
require('@bigbinary/neeto-molecules/Container');
|
|
36
37
|
require('@bigbinary/neeto-molecules/Header');
|
|
37
38
|
require('@bigbinary/neetoui/formik/Input');
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as Manage } from './Manage.js';
|
|
2
2
|
export { default as DisconnectAlert } from './DisconnectAlert.js';
|
|
3
3
|
export { default as Daily } from './Daily.js';
|
|
4
|
-
export { F as DailyForm } from './Form-
|
|
4
|
+
export { F as DailyForm } from './Form-DY3ljixO.js';
|
|
5
5
|
export { default as GoogleCalendar } from './GoogleCalendar.js';
|
|
6
6
|
export { default as Twilio } from './Twilio.js';
|
|
7
7
|
export { default as Zoom } from './Zoom.js';
|
|
@@ -30,6 +30,7 @@ import '@bigbinary/neeto-commons-frontend/utils';
|
|
|
30
30
|
import '@bigbinary/neeto-icons/misc/Daily';
|
|
31
31
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
32
32
|
import '@bigbinary/neetoui/Spinner';
|
|
33
|
+
import '@bigbinary/neeto-molecules/CardLayout';
|
|
33
34
|
import '@bigbinary/neeto-molecules/Container';
|
|
34
35
|
import '@bigbinary/neeto-molecules/Header';
|
|
35
36
|
import '@bigbinary/neetoui/formik/Input';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-integrations-frontend",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
4
4
|
"description": "UI for integrations in neeto products",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-integrations-nano",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@babel/preset-typescript": "7.26.0",
|
|
60
60
|
"@babel/runtime": "7.26.0",
|
|
61
61
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
62
|
-
"@bigbinary/eslint-plugin-neeto": "1.5.
|
|
63
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
64
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
65
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
66
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
67
|
-
"@bigbinary/neeto-molecules": "3.15.
|
|
68
|
-
"@bigbinary/neetoui": "8.2.
|
|
62
|
+
"@bigbinary/eslint-plugin-neeto": "1.5.7",
|
|
63
|
+
"@bigbinary/neeto-cist": "1.0.15",
|
|
64
|
+
"@bigbinary/neeto-commons-frontend": "4.13.22",
|
|
65
|
+
"@bigbinary/neeto-filters-frontend": "4.3.14",
|
|
66
|
+
"@bigbinary/neeto-icons": "1.20.26",
|
|
67
|
+
"@bigbinary/neeto-molecules": "3.15.22",
|
|
68
|
+
"@bigbinary/neetoui": "8.2.62",
|
|
69
69
|
"@emotion/is-prop-valid": "1.2.0",
|
|
70
70
|
"@faker-js/faker": "8.2.0",
|
|
71
71
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -170,12 +170,12 @@
|
|
|
170
170
|
},
|
|
171
171
|
"peerDependencies": {
|
|
172
172
|
"@babel/runtime": "7.26.0",
|
|
173
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
174
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
175
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
176
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
177
|
-
"@bigbinary/neeto-molecules": "3.15.
|
|
178
|
-
"@bigbinary/neetoui": "8.2.
|
|
173
|
+
"@bigbinary/neeto-cist": "1.0.15",
|
|
174
|
+
"@bigbinary/neeto-commons-frontend": "4.13.22",
|
|
175
|
+
"@bigbinary/neeto-filters-frontend": "4.3.14",
|
|
176
|
+
"@bigbinary/neeto-icons": "1.20.26",
|
|
177
|
+
"@bigbinary/neeto-molecules": "3.15.22",
|
|
178
|
+
"@bigbinary/neetoui": "8.2.62",
|
|
179
179
|
"@honeybadger-io/js": "6.10.1",
|
|
180
180
|
"@honeybadger-io/react": "6.1.25",
|
|
181
181
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
@@ -220,11 +220,12 @@
|
|
|
220
220
|
"string-width": "4.1.0"
|
|
221
221
|
},
|
|
222
222
|
"engines": {
|
|
223
|
-
"node": ">=
|
|
223
|
+
"node": ">=22.13",
|
|
224
224
|
"npm": ">=9",
|
|
225
225
|
"yarn": ">=1.22"
|
|
226
226
|
},
|
|
227
227
|
"dependencies": {
|
|
228
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
228
229
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
229
230
|
"react-router-nav-prompt": "0.4.1"
|
|
230
231
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Form-BxWddtY4.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js","../app/javascript/src/components/Integrations/Daily/constants.js","../app/javascript/src/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n","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 { withTitle } from \"neetocommons/react-utils\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\nimport { Button, Spinner, Typography } from \"neetoui\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoui/formik\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport WalkthroughModal from \"components/WalkthroughModal\";\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\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 lineHeight=\"normal\" style=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n style=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-cy\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"mx-auto w-full max-w-md\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <div className=\"mt-14 w-full space-y-2\">\n <div className=\"block min-h-20\">\n <Input\n autoFocus\n required\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </div>\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n </div>\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":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess","MANAGE_DAILY_CO_FORM_INITIAL_VALUES","apiKey","DAILY_CO_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","helpDocUrl","videoUrl","onConnect","breadcrumbs","_useTranslation","useTranslation","history","useHistory","_useState","useState","_useState2","_slicedToArray","isDemoModalOpen","setIsDemoModalOpen","_useCreateDaily","createDaily","mutate","isConnecting","isPending","handleSubmit","_jsx","className","children","Spinner","_jsxs","Container","isHeaderFixed","Header","title","titleHelpPopoverProps","description","Typography","lineHeight","style","Trans","i18nKey","components","videoLink","Button","onClick","helpLinkProps","href","FormikForm","formikProps","initialValues","validationSchema","onSubmit","Input","autoFocus","label","name","ActionBlock","cancelButtonProps","goBack","isSubmitting","submitButtonProps","WalkthroughModal","isOpen","onClose","withTitle","i18next"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,mCAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,mCAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,mCAA6B,CAAC;AAAA,CAAA;AAEjE,IAAMK,UAAU,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJrC,IAAME,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,IAAIC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCG,sCAA2B,CAACN,UAAU,CAACT,MAAM,EAAAgB,aAAA,CAAA;AAC3CC,IAAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAACC,gBAAgB,CAAC;GAC7CR,EAAAA,OAAO,CACX,CAAC;AAAA,CAAA;AAESS,IAAAA,aAAa,GAAG,SAAhBA,aAAaA,GAAA;AAAA,EAAA,OACxBC,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AkC;AAC7C;AAAE,WACH,CAAC;SACC;AAAC,OACI,CAAC,eACbuB,cAAA,CAACoC,gBAAgB,EAAA;AACTvD,QAAAA,QAAQ,EAARA,QAAQ;AACdwD,QAAAA,MAAM,EAAE7C,eAAgB;QACxB8C,OAAO,EAAE,SAATA,OAAOA,GAAA;UAAA,OAAQ7C,kBAAkB,CAAC,KAAK,CAAC;AAAA;AAAC,OAC1C,CAAC;AAAA,KACC,CAAC;AAAA,GACG,CAAC;AAEhB,CAAC;AACD,aAAe8C,oBAAS,CACtB5D,IAAI,EACJ6D,OAAO,CAAC/D,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Form-CYcwyCez.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js","../app/javascript/src/components/Integrations/Daily/constants.js","../app/javascript/src/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n","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 { withTitle } from \"neetocommons/react-utils\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\nimport { Button, Spinner, Typography } from \"neetoui\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoui/formik\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport WalkthroughModal from \"components/WalkthroughModal\";\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\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 lineHeight=\"normal\" style=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n style=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-cy\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"mx-auto w-full max-w-md\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <div className=\"mt-14 w-full space-y-2\">\n <div className=\"block min-h-20\">\n <Input\n autoFocus\n required\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </div>\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n </div>\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":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess","MANAGE_DAILY_CO_FORM_INITIAL_VALUES","apiKey","DAILY_CO_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","helpDocUrl","videoUrl","onConnect","breadcrumbs","_useTranslation","useTranslation","history","useHistory","_useState","useState","_useState2","_slicedToArray","isDemoModalOpen","setIsDemoModalOpen","_useCreateDaily","createDaily","mutate","isConnecting","isPending","handleSubmit","_jsx","className","children","Spinner","_jsxs","Container","isHeaderFixed","Header","title","titleHelpPopoverProps","description","Typography","lineHeight","style","Trans","i18nKey","components","videoLink","Button","onClick","helpLinkProps","href","FormikForm","formikProps","initialValues","validationSchema","onSubmit","Input","autoFocus","label","name","ActionBlock","cancelButtonProps","goBack","isSubmitting","submitButtonProps","WalkthroughModal","isOpen","onClose","withTitle","i18next"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,6BAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,6BAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,6BAA6B,CAAC;AAAA,CAAA;AAEjE,IAAMK,UAAU,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJrC,IAAME,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,IAAIC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCG,2BAA2B,CAACN,UAAU,CAACT,MAAM,EAAAgB,aAAA,CAAA;AAC3CC,IAAAA,gBAAgB,EAAE,CAAC,CAACC,UAAU,CAACC,gBAAgB,CAAC;GAC7CR,EAAAA,O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