@bigbinary/neeto-integrations-frontend 4.2.7 → 4.2.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/dist/.ready +1 -1
- package/dist/Daily.js +2 -2
- package/dist/DailyForm.js +2 -2
- package/dist/Telnyx.js +2 -2
- package/dist/Twilio.js +2 -2
- package/dist/Zoom.js +2 -2
- package/dist/cjs/v2/GoogleMapsForm.js +125 -0
- package/dist/cjs/v2/GoogleMapsForm.js.map +1 -0
- package/dist/cjs/v2/GoogleMapsIcon.js +37 -0
- package/dist/cjs/v2/GoogleMapsIcon.js.map +1 -0
- package/dist/cjs/v2/GoogleMapsManage.js +106 -0
- package/dist/cjs/v2/GoogleMapsManage.js.map +1 -0
- package/dist/cjs/v2/index.js +26 -273
- package/dist/cjs/v2/index.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/{query-dZxWLxGc.js → query-CyER0UTx.js} +2 -2
- package/dist/{query-dZxWLxGc.js.map → query-CyER0UTx.js.map} +1 -1
- package/dist/{useDailiesApi-dbPtabvs.js → useDailiesApi-CMyuK99l.js} +2 -2
- package/dist/{useDailiesApi-dbPtabvs.js.map → useDailiesApi-CMyuK99l.js.map} +1 -1
- package/dist/{useDisconnectionAlertsApi-CKKd-vBU.js → useDisconnectionAlertsApi-BW25EN1l.js} +2 -2
- package/dist/{useDisconnectionAlertsApi-CKKd-vBU.js.map → useDisconnectionAlertsApi-BW25EN1l.js.map} +1 -1
- package/dist/useGoogleMapsApi-BY5ZIbh1.js +52 -0
- package/dist/useGoogleMapsApi-BY5ZIbh1.js.map +1 -0
- package/dist/useGoogleMapsApi-DypGXFnl.js +48 -0
- package/dist/useGoogleMapsApi-DypGXFnl.js.map +1 -0
- package/dist/{useTelnyxApi-Bdc2eE8x.js → useTelnyxApi-WH39oUwB.js} +2 -2
- package/dist/{useTelnyxApi-Bdc2eE8x.js.map → useTelnyxApi-WH39oUwB.js.map} +1 -1
- package/dist/{useTwilioApi-CFdE3TY_.js → useTwilioApi-nN6VRQYc.js} +2 -2
- package/dist/{useTwilioApi-CFdE3TY_.js.map → useTwilioApi-nN6VRQYc.js.map} +1 -1
- package/dist/{useZoomApi-CcPofKkx.js → useZoomApi-i5CNstmT.js} +2 -2
- package/dist/{useZoomApi-CcPofKkx.js.map → useZoomApi-i5CNstmT.js.map} +1 -1
- package/dist/v2/Daily.js +2 -2
- package/dist/v2/DailyForm.js +2 -2
- package/dist/v2/DisconnectedIntegrationsRibbon.js +2 -2
- package/dist/v2/GoogleMapsForm.js +104 -0
- package/dist/v2/GoogleMapsForm.js.map +1 -0
- package/dist/v2/GoogleMapsIcon.js +35 -0
- package/dist/v2/GoogleMapsIcon.js.map +1 -0
- package/dist/v2/GoogleMapsManage.js +104 -0
- package/dist/v2/GoogleMapsManage.js.map +1 -0
- package/dist/v2/SmsLogs.js +1 -1
- package/dist/v2/Telnyx.js +2 -2
- package/dist/v2/Twilio.js +2 -2
- package/dist/v2/Zoom.js +2 -2
- package/dist/v2/index.js +30 -263
- package/dist/v2/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGoogleMapsApi-DypGXFnl.js","sources":["../app/javascript/src/apis/google_maps.js","../app/javascript/src/hooks/reactQuery/useGoogleMapsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, { googleMaps: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst googleMapsApi = { create, show, destroy };\n\nexport default googleMapsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport googleMapsApi from \"apis/google_maps\";\nimport { googleMapsQueryKey } from \"src/constants/query\";\n\nexport const useFetchGoogleMaps = () =>\n useQuery({\n queryKey: googleMapsQueryKey,\n queryFn: googleMapsApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useCreateGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.create, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n\nexport const useDestroyGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.destroy, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","googleMaps","show","get","destroy","googleMapsApi","useFetchGoogleMaps","useQuery","queryKey","googleMapsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useCreateGoogleMaps","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","useDestroyGoogleMaps"],"mappings":";;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,mCAAmC,EAAE;AAAEC,IAAAA,UAAU,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,mCAAmC,CAAC;AAAA,CAAA;AAEjE,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,mCAAmC,CAAC;AAAA,CAAA;AAEvE,IAAMK,aAAa,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJxC,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,GAAA;AAAA,EAAA,OAC7BC,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAEC,kBAAkB;IAC5BC,OAAO,EAAEL,aAAa,CAACH,IAAI;AAC3BS,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;AAEG,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,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,OAC9CG,2BAA2B,CAACb,aAAa,CAACT,MAAM,EAAAuB,aAAA,CAAA;IAC9CC,gBAAgB,EAAE,CAACX,kBAAkB;GAAC,EACnCK,OAAO,CACX,CAAC;AAAA;AAEG,IAAMO,oBAAoB,GAAG,SAAvBA,oBAAoBA,GAAA;AAAA,EAAA,IAAIP,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC/CG,2BAA2B,CAACb,aAAa,CAACD,OAAO,EAAAe,aAAA,CAAA;IAC/CC,gBAAgB,EAAE,CAACX,kBAAkB;GAAC,EACnCK,OAAO,CACX,CAAC;AAAA;;;;"}
|
|
@@ -3,7 +3,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
3
3
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
4
|
import { prop } from 'ramda';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { a as TELNYX_SMS_CONFIGURATION_URL, b as TELNYX_PHONE_NUMBERS_URL, Q as QUERY_KEYS } from './query-
|
|
6
|
+
import { a as TELNYX_SMS_CONFIGURATION_URL, b as TELNYX_PHONE_NUMBERS_URL, Q as QUERY_KEYS } from './query-CyER0UTx.js';
|
|
7
7
|
|
|
8
8
|
var fetchTelnyxSmsConfiguration = function fetchTelnyxSmsConfiguration(integrable) {
|
|
9
9
|
return axios.get(TELNYX_SMS_CONFIGURATION_URL, {
|
|
@@ -129,4 +129,4 @@ var useFetchTelnyxMessagingProfileSenders = function useFetchTelnyxMessagingProf
|
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
export { useFetchTelnyxConfiguration as a, useFetchTelnyxSenderOptions as b, useUpsertTelnyxConfiguration as c, useFetchTelnyxMessagingProfileSenders as u };
|
|
132
|
-
//# sourceMappingURL=useTelnyxApi-
|
|
132
|
+
//# sourceMappingURL=useTelnyxApi-WH39oUwB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTelnyxApi-
|
|
1
|
+
{"version":3,"file":"useTelnyxApi-WH39oUwB.js","sources":["../app/javascript/src/apis/telnyx.js","../app/javascript/src/hooks/reactQuery/useTelnyxApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n TELNYX_PHONE_NUMBERS_URL,\n TELNYX_SMS_CONFIGURATION_URL,\n} from \"src/constants/urls\";\n\nconst fetchTelnyxSmsConfiguration = integrable =>\n axios.get(TELNYX_SMS_CONFIGURATION_URL, { params: integrable });\n\nconst fetchTelnyxPhoneNumbers = ({ apiKey, messagingProfileId }) =>\n axios.get(TELNYX_PHONE_NUMBERS_URL, {\n params: { telnyx: { apiKey, messagingProfileId } },\n });\n\nconst createTelnyxSmsConfiguration = payload =>\n axios.post(TELNYX_SMS_CONFIGURATION_URL, { telnyx: payload });\n\nexport const fetchSenderOptions = ({ apiKey }) =>\n axios.get(\"/neeto_integrations/telnyx/sender_options\", {\n params: { api_key: apiKey },\n });\n\nexport const fetchMessagingProfileSenders = ({ apiKey, messagingProfileId }) =>\n axios.get(\n `/neeto_integrations/telnyx/messaging_profiles/${messagingProfileId}/senders`,\n { params: { api_key: apiKey } }\n );\n\nconst telnyxApi = {\n fetchTelnyxPhoneNumbers,\n fetchTelnyxSmsConfiguration,\n createTelnyxSmsConfiguration,\n};\n\nexport default telnyxApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\n\nimport telnyxApi, {\n fetchSenderOptions,\n fetchMessagingProfileSenders,\n} from \"apis/telnyx\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTelnyxSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => telnyxApi.fetchTelnyxSmsConfiguration(integrable),\n select: prop(\"smsConfiguration\"),\n });\n\n// Alias used by the v2 Telnyx form\nconst useFetchTelnyxConfiguration = useFetchTelnyxSmsConfiguration;\n\nconst useFetchTelnyxPhoneNumbers = () =>\n useMutation({ mutationFn: telnyxApi.fetchTelnyxPhoneNumbers });\n\nconst useCreateTelnyxSmsConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(telnyxApi.createTelnyxSmsConfiguration, {\n keysToInvalidate: [\n [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n });\n\n// Alias used by the v2 Telnyx form\nconst useUpsertTelnyxConfiguration = ({ integrable, onSuccess }) => {\n const mutation = useCreateTelnyxSmsConfiguration({ integrable });\n\n return {\n ...mutation,\n mutateAsync: payload =>\n new Promise((resolve, reject) => {\n mutation.mutate(payload, {\n onSuccess: () => {\n onSuccess?.();\n resolve();\n },\n onError: reject,\n });\n }),\n };\n};\n\nexport const useFetchTelnyxSenderOptions = ({ credentials }) => {\n const apiKey = credentials?.apiKey;\n const hasValidApiKey = typeof apiKey === \"string\" && apiKey.trim().length > 0;\n\n return useQuery({\n queryKey: [\"telnyxSenderOptions\", { apiKey }],\n queryFn: () => fetchSenderOptions({ apiKey }),\n enabled: hasValidApiKey,\n staleTime: 60_000,\n retry: false,\n });\n};\n\nexport const useFetchTelnyxMessagingProfileSenders = ({\n apiKey,\n messagingProfileId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"telnyxMessagingProfileSenders\", messagingProfileId],\n queryFn: () => fetchMessagingProfileSenders({ apiKey, messagingProfileId }),\n enabled: !!enabled && !!apiKey && !!messagingProfileId,\n staleTime: 60_000,\n });\n\nexport {\n useFetchTelnyxPhoneNumbers,\n useFetchTelnyxSmsConfiguration,\n useCreateTelnyxSmsConfiguration,\n useFetchTelnyxConfiguration,\n useUpsertTelnyxConfiguration,\n};\n"],"names":["fetchTelnyxSmsConfiguration","integrable","axios","get","TELNYX_SMS_CONFIGURATION_URL","params","fetchTelnyxPhoneNumbers","_ref","apiKey","messagingProfileId","TELNYX_PHONE_NUMBERS_URL","telnyx","createTelnyxSmsConfiguration","payload","post","fetchSenderOptions","_ref2","api_key","fetchMessagingProfileSenders","_ref3","concat","telnyxApi","useFetchTelnyxSmsConfiguration","useQuery","queryKey","QUERY_KEYS","TELNYX_SMS_CONFIGURATION","integrableType","integrableId","queryFn","select","prop","useFetchTelnyxConfiguration","useCreateTelnyxSmsConfiguration","useMutationWithInvalidation","keysToInvalidate","useUpsertTelnyxConfiguration","onSuccess","mutation","_objectSpread","mutateAsync","Promise","resolve","reject","mutate","onError","useFetchTelnyxSenderOptions","_ref4","credentials","hasValidApiKey","trim","length","enabled","staleTime","retry","useFetchTelnyxMessagingProfileSenders","_ref5"],"mappings":";;;;;;;AAOA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAGC,UAAU,EAAA;AAAA,EAAA,OAC5CC,KAAK,CAACC,GAAG,CAACC,4BAA4B,EAAE;AAAEC,IAAAA,MAAM,EAAEJ;AAAW,GAAC,CAAC;AAAA,CAAA;AAEjE,IAAMK,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,kBAAkB,GAA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S,EAAE,KAAM;AACjBC,IAAAA,KAAK,EAAE;AACT,GAAC,CAAC;AACJ;IAEaC,qCAAqC,GAAG,SAAxCA,qCAAqCA,CAAAC,KAAA,EAAA;AAAA,EAAA,IAChDhD,MAAM,GAAAgD,KAAA,CAANhD,MAAM;IACNC,kBAAkB,GAAA+C,KAAA,CAAlB/C,kBAAkB;IAClB2C,OAAO,GAAAI,KAAA,CAAPJ,OAAO;AAAA,EAAA,OAEP7B,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAAC,+BAA+B,EAAEf,kBAAkB,CAAC;IAC/DoB,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,MAAA,OAAQX,4BAA4B,CAAC;AAAEV,QAAAA,MAAM,EAANA,MAAM;AAAEC,QAAAA,kBAAkB,EAAlBA;AAAmB,OAAC,CAAC;AAAA,IAAA,CAAA;IAC3E2C,OAAO,EAAE,CAAC,CAACA,OAAO,IAAI,CAAC,CAAC5C,MAAM,IAAI,CAAC,CAACC,kBAAkB;AACtD4C,IAAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -3,7 +3,7 @@ import { keysToSnakeCase } from '@bigbinary/neeto-cist';
|
|
|
3
3
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { T as TWILIO_CONFIGURATION_BASE_URL, Q as QUERY_KEYS } from './query-
|
|
6
|
+
import { T as TWILIO_CONFIGURATION_BASE_URL, Q as QUERY_KEYS } from './query-CyER0UTx.js';
|
|
7
7
|
|
|
8
8
|
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; }
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -111,4 +111,4 @@ var useFetchTwilioMessagingServiceSenders = function useFetchTwilioMessagingServ
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
export { useFetchTwilioSmsConfiguration as a, useFetchTwilioSenderOptions as b, useCreateTwilioConfiguration as c, useFetchTwilioMessagingServiceSenders as u };
|
|
114
|
-
//# sourceMappingURL=useTwilioApi-
|
|
114
|
+
//# sourceMappingURL=useTwilioApi-nN6VRQYc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTwilioApi-
|
|
1
|
+
{"version":3,"file":"useTwilioApi-nN6VRQYc.js","sources":["../app/javascript/src/apis/twilio.js","../app/javascript/src/hooks/reactQuery/useTwilioApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { TWILIO_CONFIGURATION_BASE_URL } from \"src/constants/urls\";\n\nconst fetchTwilioSmsConfiguration = integrable =>\n axios.get(TWILIO_CONFIGURATION_BASE_URL, { params: integrable });\n\nconst removeTwilioConfiguration = () =>\n axios.delete(TWILIO_CONFIGURATION_BASE_URL);\n\nconst getTwilioSenderOptions = data =>\n axios.get(`${TWILIO_CONFIGURATION_BASE_URL}/new`, { params: data });\n\nconst createTwilioConfiguration = (payload, integrable) =>\n axios.post(TWILIO_CONFIGURATION_BASE_URL, { ...payload, ...integrable });\n\nconst fetchMessagingServiceSenders = ({\n accountSid,\n authToken,\n messagingServiceId,\n}) =>\n axios.get(\n `/neeto_integrations/twilio/messaging_services/${messagingServiceId}/senders`,\n { params: { account_sid: accountSid, auth_token: authToken } }\n );\n\nconst twilioApi = {\n fetchTwilioSmsConfiguration,\n removeTwilioConfiguration,\n getTwilioSenderOptions,\n createTwilioConfiguration,\n fetchMessagingServiceSenders,\n};\n\nexport default twilioApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { keysToSnakeCase } from \"neetocist\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport twilioApi from \"apis/twilio\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTwilioSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TWILIO_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => twilioApi.fetchTwilioSmsConfiguration(integrable),\n select: response => {\n const smsConfiguration = response.smsConfiguration;\n\n return {\n twilioSid: smsConfiguration?.twilioSid ?? \"\",\n twilioAuthToken: smsConfiguration?.twilioAuthToken ?? \"\",\n connectionType: smsConfiguration?.connectionType ?? \"\",\n twilioPhoneNumber: smsConfiguration?.twilioPhoneNumber ?? \"\",\n twilioMessagingServiceSid:\n smsConfiguration?.twilioMessagingServiceSid ?? \"\",\n twilioMessagingServiceFriendlyName:\n smsConfiguration?.twilioMessagingServiceFriendlyName ?? \"\",\n };\n },\n });\n\nconst useFetchTwilioSenderOptions = ({ credentials }) =>\n useQuery({\n queryKey: [QUERY_KEYS.TWILIO_SENDER_OPTIONS, { credentials }],\n queryFn: () =>\n twilioApi.getTwilioSenderOptions(keysToSnakeCase(credentials)),\n enabled:\n !!credentials?.twilio_sid || !!credentials?.twilioSid,\n select: response => ({\n phoneNumbers: response.phoneNumbers ?? [],\n messagingServices: response.messagingServices ?? [],\n }),\n retry: false,\n });\n\nconst useCreateTwilioConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(\n payload => twilioApi.createTwilioConfiguration(payload, integrable),\n {\n keysToInvalidate: [\n [\n QUERY_KEYS.TWILIO_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n }\n );\n\nconst useFetchTwilioMessagingServiceSenders = ({\n accountSid,\n authToken,\n messagingServiceId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"twilioMessagingServiceSenders\", messagingServiceId],\n queryFn: () =>\n twilioApi.fetchMessagingServiceSenders({\n accountSid,\n authToken,\n messagingServiceId,\n }),\n enabled: !!enabled && !!accountSid && !!authToken && !!messagingServiceId,\n staleTime: 60_000,\n });\n\nexport {\n useCreateTwilioConfiguration,\n useFetchTwilioMessagingServiceSenders,\n useFetchTwilioSenderOptions,\n useFetchTwilioSmsConfiguration,\n};\n"],"names":["fetchTwilioSmsConfiguration","integrable","axios","get","TWILIO_CONFIGURATION_BASE_URL","params","removeTwilioConfiguration","getTwilioSenderOptions","data","concat","createTwilioConfiguration","payload","post","_objectSpread","fetchMessagingServiceSenders","_ref","accountSid","authToken","messagingServiceId","account_sid","auth_token","twilioApi","useFetchTwilioSmsConfiguration","useQuery","queryKey","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","integrableType","integrableId","queryFn","select","response","_smsConfiguration$twi","_smsConfiguration$twi2","_smsConfiguration$con","_smsConfiguration$twi3","_smsConfiguration$twi4","_smsConfiguration$twi5","smsConfiguration","twilioSid","twilioAuthToken","connectionType","twilioPhoneNumber","twilioMessagingServiceSid","twilioMessagingServiceFriendlyName","useFetchTwilioSenderOptions","_ref2","credentials","TWILIO_SENDER_OPTIONS","keysToSnakeCase","enabled","twilio_sid","_response$phoneNumber","_response$messagingSe","phoneNumbers","messagingServices","retry","useCreateTwilioConfiguration","_ref3","useMutationWithInvalidation","keysToInvalidate","useFetchTwilioMessagingServiceSenders","_ref4","staleTime"],"mappings":";;;;;;;;;AAIA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAGC,UAAU,EAAA;AAAA,EAAA,OAC5CC,KAAK,CAACC,GAAG,CAACC,6BAA6B,EAAE;AAAEC,IAAAA,MAAM,EAAEJ;AAAW,GAAC,CAAC;AAAA,CAAA;AAElE,IAAMK,yBAAyB,GAAG,SAA5BA,yBAAyBA,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AAA,QAAQ,EAAE,CAAC,+BAA+B,EAAEN,kBAAkB,CAAC;IAC/DW,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OACLR,SAAS,CAACP,4BAA4B,CAAC;AACrCE,QAAAA,UAAU,EAAVA,UAAU;AACVC,QAAAA,SAAS,EAATA,SAAS;AACTC,QAAAA,kBAAkB,EAAlBA;AACF,OAAC,CAAC;AAAA,IAAA,CAAA;AACJgC,IAAAA,OAAO,EAAE,CAAC,CAACA,OAAO,IAAI,CAAC,CAAClC,UAAU,IAAI,CAAC,CAACC,SAAS,IAAI,CAAC,CAACC,kBAAkB;AACzE6C,IAAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
2
2
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
3
3
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
4
|
import axios from 'axios';
|
|
5
|
-
import {
|
|
5
|
+
import { c as INTEGRATION_DETAILS_URL, e as INTEGRATIONS_ENGINE_ZOOM_URL, Q as QUERY_KEYS } from './query-CyER0UTx.js';
|
|
6
6
|
|
|
7
7
|
var show = function show() {
|
|
8
8
|
return axios.get(INTEGRATION_DETAILS_URL, {
|
|
@@ -38,4 +38,4 @@ var useDestroyZoom = function useDestroyZoom(_ref) {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export { useDestroyZoom as a, useShowZoom as u };
|
|
41
|
-
//# sourceMappingURL=useZoomApi-
|
|
41
|
+
//# sourceMappingURL=useZoomApi-i5CNstmT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZoomApi-
|
|
1
|
+
{"version":3,"file":"useZoomApi-i5CNstmT.js","sources":["../app/javascript/src/apis/zoom.js","../app/javascript/src/hooks/reactQuery/useZoomApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n INTEGRATIONS_ENGINE_ZOOM_URL,\n INTEGRATION_DETAILS_URL,\n} from \"src/constants/urls\";\n\nconst show = () =>\n axios.get(INTEGRATION_DETAILS_URL, {\n params: { serviceName: \"Zoom\", integrableType: \"User\" },\n });\n\nconst destroy = () => axios.delete(`${INTEGRATIONS_ENGINE_ZOOM_URL}/oauth`);\n\nconst zoomApi = { show, destroy };\n\nexport default zoomApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport zoomApi from \"apis/zoom\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowZoom = () =>\n useQuery({\n queryKey: [QUERY_KEYS.ZOOM_DETAILS],\n queryFn: zoomApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\nexport const useDestroyZoom = ({ onSuccess }) =>\n useMutationWithInvalidation(zoomApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.ZOOM_DETAILS]],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":["show","axios","get","INTEGRATION_DETAILS_URL","params","serviceName","integrableType","destroy","concat","INTEGRATIONS_ENGINE_ZOOM_URL","zoomApi","useShowZoom","useQuery","queryKey","QUERY_KEYS","ZOOM_DETAILS","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyZoom","_ref","onSuccess","useMutationWithInvalidation","keysToInvalidate"],"mappings":";;;;;;AAOA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OACRC,KAAK,CAACC,GAAG,CAACC,uBAAuB,EAAE;AACjCC,IAAAA,MAAM,EAAE;AAAEC,MAAAA,WAAW,EAAE,MAAM;AAAEC,MAAAA,cAAc,EAAE;AAAO;AACxD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMC,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAAA,EAAA,CAAAO,MAAA,CAAIC,4BAA4B,WAAQ,CAAC;AAAA,CAAA;AAE3E,IAAMC,OAAO,GAAG;AAAEV,EAAAA,IAAI,EAAJA,IAAI;AAAEO,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;ACP1B,IAAMI,WAAW,GAAG,SAAdA,WAAWA,GAAA;AAAA,EAAA,OACtBC,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACC,YAAY,CAAC;IACnCC,OAAO,EAAEN,OAAO,CAACV,IAAI;AACrBiB,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;IACSC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,UAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACxCC,2BAA2B,CAACZ,OAAO,CAACH,OAAO,EAAE;AAC3CgB,IAAAA,gBAAgB,EAAE,CAAC,CAACT,UAAU,CAACC,YAAY,CAAC,CAAC;IAC7CM,SAAS,EAAE,SAAXA,SAASA,GAAA;AAAA,MAAA,OAAQA,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,MAAA,GAAA,MAAA,GAATA,UAAS,EAAI;AAAA,IAAA;AAChC,GAAC,CAAC;AAAA;;;;"}
|
package/dist/v2/Daily.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
2
|
import { isPresent, noop } from '@bigbinary/neeto-cist';
|
|
3
3
|
import { withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
4
|
-
import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-
|
|
4
|
+
import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-CMyuK99l.js';
|
|
5
5
|
import Form from './DailyForm.js';
|
|
6
6
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import { useState } from 'react';
|
|
@@ -17,7 +17,7 @@ import '@tanstack/react-query';
|
|
|
17
17
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
19
19
|
import 'axios';
|
|
20
|
-
import '../query-
|
|
20
|
+
import '../query-CyER0UTx.js';
|
|
21
21
|
import '@bigbinary/neeto-atoms/formik';
|
|
22
22
|
import '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
23
23
|
import '@bigbinary/neeto-molecules/v2/Container';
|
package/dist/v2/DailyForm.js
CHANGED
|
@@ -9,7 +9,7 @@ import Container from '@bigbinary/neeto-molecules/v2/Container';
|
|
|
9
9
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
10
10
|
import { useTranslation, Trans } from 'react-i18next';
|
|
11
11
|
import { useHistory } from 'react-router-dom';
|
|
12
|
-
import { b as useCreateDaily } from '../useDailiesApi-
|
|
12
|
+
import { b as useCreateDaily } from '../useDailiesApi-CMyuK99l.js';
|
|
13
13
|
import * as yup from 'yup';
|
|
14
14
|
import WalkthroughModal from './WalkthroughModal.js';
|
|
15
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -18,7 +18,7 @@ import '@tanstack/react-query';
|
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
19
19
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
20
20
|
import 'axios';
|
|
21
|
-
import '../query-
|
|
21
|
+
import '../query-CyER0UTx.js';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
|
|
24
24
|
|
|
@@ -5,13 +5,13 @@ import StickyRibbon from '@bigbinary/neeto-molecules/v2/StickyRibbon';
|
|
|
5
5
|
import { isEmpty } from 'ramda';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
7
|
import { Link } from 'react-router-dom';
|
|
8
|
-
import { u as useFetchDisconnectionAlerts } from '../useDisconnectionAlertsApi-
|
|
8
|
+
import { u as useFetchDisconnectionAlerts } from '../useDisconnectionAlertsApi-BW25EN1l.js';
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
import '@tanstack/react-query';
|
|
11
11
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
12
12
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
13
13
|
import 'axios';
|
|
14
|
-
import '../query-
|
|
14
|
+
import '../query-CyER0UTx.js';
|
|
15
15
|
|
|
16
16
|
var getHasOnlyUPIIntegration = function getHasOnlyUPIIntegration(alerts) {
|
|
17
17
|
return alerts.length === 1 && alerts[0].serviceName === "eupi";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Button } from '@bigbinary/neeto-atoms';
|
|
2
|
+
import { Form as Form$1, Input, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
3
|
+
import { noop } from '@bigbinary/neeto-cist';
|
|
4
|
+
import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
5
|
+
import Container from '@bigbinary/neeto-molecules/v2/Container';
|
|
6
|
+
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
7
|
+
import { useTranslation, Trans } from 'react-i18next';
|
|
8
|
+
import { useHistory } from 'react-router-dom';
|
|
9
|
+
import { b as useCreateGoogleMaps } from '../useGoogleMapsApi-DypGXFnl.js';
|
|
10
|
+
import { t } from 'i18next';
|
|
11
|
+
import * as yup from 'yup';
|
|
12
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
14
|
+
import '@tanstack/react-query';
|
|
15
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
16
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
17
|
+
import 'axios';
|
|
18
|
+
import '../query-CyER0UTx.js';
|
|
19
|
+
|
|
20
|
+
var GOOGLE_MAPS_FORM_INITIAL_VALUES = {
|
|
21
|
+
apiKey: ""
|
|
22
|
+
};
|
|
23
|
+
var GOOGLE_MAPS_VALIDATION_SCHEMA = yup.object().shape({
|
|
24
|
+
apiKey: yup.string().trim().required(t("neetoIntegrations.errors.required", {
|
|
25
|
+
entity: t("neetoIntegrations.googleMaps.apiKey")
|
|
26
|
+
}))
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
var Form = function Form(_ref) {
|
|
30
|
+
var _ref$helpDocUrl = _ref.helpDocUrl,
|
|
31
|
+
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
32
|
+
_ref$breadcrumbs = _ref.breadcrumbs,
|
|
33
|
+
breadcrumbs = _ref$breadcrumbs === void 0 ? [] : _ref$breadcrumbs,
|
|
34
|
+
_ref$onConnect = _ref.onConnect,
|
|
35
|
+
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect;
|
|
36
|
+
var _useTranslation = useTranslation(),
|
|
37
|
+
t = _useTranslation.t;
|
|
38
|
+
var history = useHistory();
|
|
39
|
+
var _useCreateGoogleMaps = useCreateGoogleMaps({
|
|
40
|
+
onSuccess: function onSuccess() {
|
|
41
|
+
return onConnect();
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
createGoogleMaps = _useCreateGoogleMaps.mutate,
|
|
45
|
+
isConnecting = _useCreateGoogleMaps.isPending;
|
|
46
|
+
var handleSubmit = function handleSubmit(_ref2) {
|
|
47
|
+
var apiKey = _ref2.apiKey;
|
|
48
|
+
return createGoogleMaps({
|
|
49
|
+
apiKey: apiKey.trim()
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
return /*#__PURE__*/jsxs(Container, {
|
|
53
|
+
isHeaderFixed: true,
|
|
54
|
+
children: [/*#__PURE__*/jsx(Header, {
|
|
55
|
+
breadcrumbs: breadcrumbs,
|
|
56
|
+
title: t("neetoIntegrations.common.connect")
|
|
57
|
+
}), /*#__PURE__*/jsx("div", {
|
|
58
|
+
className: "w-full",
|
|
59
|
+
children: /*#__PURE__*/jsx(Form$1, {
|
|
60
|
+
formikProps: {
|
|
61
|
+
initialValues: GOOGLE_MAPS_FORM_INITIAL_VALUES,
|
|
62
|
+
validationSchema: GOOGLE_MAPS_VALIDATION_SCHEMA,
|
|
63
|
+
onSubmit: handleSubmit
|
|
64
|
+
},
|
|
65
|
+
children: /*#__PURE__*/jsx(CardLayout, {
|
|
66
|
+
actionBlock: /*#__PURE__*/jsx(ActionBlock, {
|
|
67
|
+
cancelButtonProps: {
|
|
68
|
+
onClick: function onClick() {
|
|
69
|
+
return history.goBack();
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
isSubmitting: isConnecting,
|
|
73
|
+
submitButtonProps: {
|
|
74
|
+
label: t("neetoIntegrations.common.connect")
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
children: /*#__PURE__*/jsx(Input, {
|
|
78
|
+
autoFocus: true,
|
|
79
|
+
required: true,
|
|
80
|
+
autoComplete: "off",
|
|
81
|
+
dataTestId: "google-maps-api-key",
|
|
82
|
+
label: t("neetoIntegrations.googleMaps.apiKey"),
|
|
83
|
+
name: "apiKey",
|
|
84
|
+
helpText: /*#__PURE__*/jsx(Trans, {
|
|
85
|
+
i18nKey: "neetoIntegrations.googleMaps.apiKeyHelpText",
|
|
86
|
+
components: {
|
|
87
|
+
helpLink: /*#__PURE__*/jsx(Button, {
|
|
88
|
+
"data-testid": "google-maps-api-key-help-link",
|
|
89
|
+
href: helpDocUrl,
|
|
90
|
+
rel: "noreferrer",
|
|
91
|
+
target: "_blank",
|
|
92
|
+
variant: "link"
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export { Form as default };
|
|
104
|
+
//# sourceMappingURL=GoogleMapsForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMapsForm.js","sources":["../../app/javascript/src/v2/components/Integrations/GoogleMaps/constants.js","../../app/javascript/src/v2/components/Integrations/GoogleMaps/Form.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const GOOGLE_MAPS_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const GOOGLE_MAPS_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.googleMaps.apiKey\"),\n })\n ),\n});\n","import { Button } from \"neetoatoms\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoatoms/formik\";\nimport { noop } from \"neetocist\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport Container from \"neetomolecules/v2/Container\";\nimport Header from \"neetomolecules/v2/Header\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useCreateGoogleMaps } from \"hooks/reactQuery/useGoogleMapsApi\";\n\nimport {\n GOOGLE_MAPS_FORM_INITIAL_VALUES,\n GOOGLE_MAPS_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nconst Form = ({ helpDocUrl = \"\", breadcrumbs = [], onConnect = noop }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const { mutate: createGoogleMaps, isPending: isConnecting } =\n useCreateGoogleMaps({ onSuccess: () => onConnect() });\n\n const handleSubmit = ({ apiKey }) =>\n createGoogleMaps({ apiKey: apiKey.trim() });\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.common.connect\")}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: GOOGLE_MAPS_FORM_INITIAL_VALUES,\n validationSchema: GOOGLE_MAPS_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n autoComplete=\"off\"\n dataTestId=\"google-maps-api-key\"\n label={t(\"neetoIntegrations.googleMaps.apiKey\")}\n name=\"apiKey\"\n helpText={\n <Trans\n i18nKey=\"neetoIntegrations.googleMaps.apiKeyHelpText\"\n components={{\n helpLink: (\n <Button\n data-testid=\"google-maps-api-key-help-link\"\n href={helpDocUrl}\n rel=\"noreferrer\"\n target=\"_blank\"\n variant=\"link\"\n />\n ),\n }}\n />\n }\n />\n </CardLayout>\n </FormikForm>\n </div>\n </Container>\n );\n};\n\nexport default Form;\n"],"names":["GOOGLE_MAPS_FORM_INITIAL_VALUES","apiKey","GOOGLE_MAPS_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","_ref","_ref$helpDocUrl","helpDocUrl","_ref$breadcrumbs","breadcrumbs","_ref$onConnect","onConnect","noop","_useTranslation","useTranslation","history","useHistory","_useCreateGoogleMaps","useCreateGoogleMaps","onSuccess","createGoogleMaps","mutate","isConnecting","isPending","handleSubmit","_ref2","_jsxs","Container","isHeaderFixed","children","_jsx","Header","title","className","FormikForm","formikProps","initialValues","validationSchema","onSubmit","CardLayout","actionBlock","ActionBlock","cancelButtonProps","onClick","goBack","isSubmitting","submitButtonProps","label","Input","autoFocus","autoComplete","dataTestId","name","helpText","Trans","i18nKey","components","helpLink","Button","href","rel","target","variant"],"mappings":";;;;;;;;;;;;;;;;;;;AAGO,IAAMA,+BAA+B,GAAG;AAAEC,EAAAA,MAAM,EAAE;AAAG,CAAC;AAEtD,IAAMC,6BAA6B,GAAGC,GAAG,CAACC,MAAM,EAAE,CAACC,KAAK,CAAC;AAC9DJ,EAAAA,MAAM,EAAEE,GAAG,CACRG,MAAM,EAAE,CACRC,IAAI,EAAE,CACNC,QAAQ,CACPC,CAAC,CAAC,mCAAmC,EAAE;IACrCC,MAAM,EAAED,CAAC,CAAC,qCAAqC;AACjD,GAAC,CACH;AACJ,CAAC,C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;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
var GoogleMapsIcon = function GoogleMapsIcon(_ref) {
|
|
4
|
+
var _ref$size = _ref.size,
|
|
5
|
+
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
6
|
+
_ref$className = _ref.className,
|
|
7
|
+
className = _ref$className === void 0 ? "" : _ref$className;
|
|
8
|
+
return /*#__PURE__*/jsxs("svg", {
|
|
9
|
+
className: className,
|
|
10
|
+
"aria-hidden": "true",
|
|
11
|
+
height: size,
|
|
12
|
+
viewBox: "0 0 92.3 132.3",
|
|
13
|
+
width: size,
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
children: [/*#__PURE__*/jsx("path", {
|
|
16
|
+
d: "M60.2 2.2C55.8.8 51 0 46.1 0 32 0 19.3 6.4 10.8 16.5l21.8 18.3L60.2 2.2z",
|
|
17
|
+
fill: "#1a73e8"
|
|
18
|
+
}), /*#__PURE__*/jsx("path", {
|
|
19
|
+
d: "M10.8 16.5C4.1 24.5 0 34.9 0 46.1c0 8.7 1.7 15.7 4.6 22l28-33.3-21.8-18.3z",
|
|
20
|
+
fill: "#ea4335"
|
|
21
|
+
}), /*#__PURE__*/jsx("path", {
|
|
22
|
+
d: "M46.2 28.5c9.8 0 17.7 7.9 17.7 17.7 0 4.3-1.6 8.3-4.2 11.4 0 0 13.9-16.6 27.5-32.7-5.6-10.8-15.3-19-27-22.7L32.6 34.8c3.3-3.8 8.1-6.3 13.6-6.3",
|
|
23
|
+
fill: "#4285f4"
|
|
24
|
+
}), /*#__PURE__*/jsx("path", {
|
|
25
|
+
d: "M46.2 63.8c-9.8 0-17.7-7.9-17.7-17.7 0-4.3 1.5-8.3 4.1-11.3l-28 33.3c4.8 10.6 12.8 19.2 21 29.9l34.1-40.5c-3.3 3.9-8.1 6.3-13.5 6.3",
|
|
26
|
+
fill: "#fbbc04"
|
|
27
|
+
}), /*#__PURE__*/jsx("path", {
|
|
28
|
+
d: "M59.1 109.2c15.4-24.1 33.3-35 33.3-63 0-7.7-1.9-14.9-5.2-21.3L25.6 98c2.6 3.4 5.3 7.3 7.9 11.3 9.4 14.5 6.8 23.1 12.8 23.1s3.4-8.7 12.8-23.2",
|
|
29
|
+
fill: "#34a853"
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { GoogleMapsIcon as default };
|
|
35
|
+
//# sourceMappingURL=GoogleMapsIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMapsIcon.js","sources":["../../app/javascript/src/v2/components/Integrations/GoogleMaps/Icon.jsx"],"sourcesContent":["const GoogleMapsIcon = ({ size = 24, className = \"\" }) => (\n <svg\n {...{ className }}\n aria-hidden=\"true\"\n height={size}\n viewBox=\"0 0 92.3 132.3\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M60.2 2.2C55.8.8 51 0 46.1 0 32 0 19.3 6.4 10.8 16.5l21.8 18.3L60.2 2.2z\"\n fill=\"#1a73e8\"\n />\n <path\n d=\"M10.8 16.5C4.1 24.5 0 34.9 0 46.1c0 8.7 1.7 15.7 4.6 22l28-33.3-21.8-18.3z\"\n fill=\"#ea4335\"\n />\n <path\n d=\"M46.2 28.5c9.8 0 17.7 7.9 17.7 17.7 0 4.3-1.6 8.3-4.2 11.4 0 0 13.9-16.6 27.5-32.7-5.6-10.8-15.3-19-27-22.7L32.6 34.8c3.3-3.8 8.1-6.3 13.6-6.3\"\n fill=\"#4285f4\"\n />\n <path\n d=\"M46.2 63.8c-9.8 0-17.7-7.9-17.7-17.7 0-4.3 1.5-8.3 4.1-11.3l-28 33.3c4.8 10.6 12.8 19.2 21 29.9l34.1-40.5c-3.3 3.9-8.1 6.3-13.5 6.3\"\n fill=\"#fbbc04\"\n />\n <path\n d=\"M59.1 109.2c15.4-24.1 33.3-35 33.3-63 0-7.7-1.9-14.9-5.2-21.3L25.6 98c2.6 3.4 5.3 7.3 7.9 11.3 9.4 14.5 6.8 23.1 12.8 23.1s3.4-8.7 12.8-23.2\"\n fill=\"#34a853\"\n />\n </svg>\n);\n\nexport default GoogleMapsIcon;\n"],"names":["GoogleMapsIcon","_ref","_ref$size","size","_ref$className","className","_jsxs","height","viewBox","width","xmlns","children","_jsx","d","fill"],"mappings":";;AAAA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CAAME,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,SAAA;IAAAE,cAAA,GAAAH,IAAA,CAAEI,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;AAAA,EAAA,oBACjDE,IAAA,CAAA,KAAA,EAAA;AACQD,IAAAA,SAAS,EAATA,SAAS;AACf,IAAA,aAAA,EAAY,MAAM;AAClBE,IAAAA,MAAM,EAAEJ,IAAK;AACbK,IAAAA,OAAO,EAAC,gBAAgB;AACxBC,IAAAA,KAAK,EAAEN,IAAK;AACZO,IAAAA,KAAK,EAAC,4BAA4B;AAAAC,IAAAA,QAAA,gBAElCC,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,0EAA0E;AAC5EC,MAAAA,IAAI,EAAC;KACN,CAAC,eACFF,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,4EAA4E;AAC9EC,MAAAA,IAAI,EAAC;KACN,CAAC,eACFF,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,gJAAgJ;AAClJC,MAAAA,IAAI,EAAC;KACN,CAAC,eACFF,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,qIAAqI;AACvIC,MAAAA,IAAI,EAAC;KACN,CAAC,eACFF,GAAA,CAAA,MAAA,EAAA;AACEC,MAAAA,CAAC,EAAC,8IAA8I;AAChJC,MAAAA,IAAI,EAAC;AAAS,KACf,CAAC;AAAA,GACC,CAAC;AAAA;;;;"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Spinner, Typography } from '@bigbinary/neeto-atoms';
|
|
4
|
+
import { isPresent, noop } from '@bigbinary/neeto-cist';
|
|
5
|
+
import CopyToClipboardButton from '@bigbinary/neeto-molecules/v2/CopyToClipboardButton';
|
|
6
|
+
import { useTranslation, Trans } from 'react-i18next';
|
|
7
|
+
import { u as useFetchGoogleMaps, a as useDestroyGoogleMaps } from '../useGoogleMapsApi-DypGXFnl.js';
|
|
8
|
+
import GoogleMapsIcon from './GoogleMapsIcon.js';
|
|
9
|
+
import Manage$1 from './Manage.js';
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
11
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
12
|
+
import '@tanstack/react-query';
|
|
13
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
14
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
15
|
+
import 'axios';
|
|
16
|
+
import '../query-CyER0UTx.js';
|
|
17
|
+
import '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
18
|
+
import './DisconnectAlert.js';
|
|
19
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
20
|
+
import '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
|
|
21
|
+
|
|
22
|
+
var Manage = function Manage(_ref) {
|
|
23
|
+
var _ref$connectPath = _ref.connectPath,
|
|
24
|
+
connectPath = _ref$connectPath === void 0 ? "" : _ref$connectPath,
|
|
25
|
+
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
26
|
+
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
27
|
+
_ref$onDisconnect = _ref.onDisconnect,
|
|
28
|
+
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect;
|
|
29
|
+
var _useTranslation = useTranslation(),
|
|
30
|
+
t = _useTranslation.t;
|
|
31
|
+
var _useState = useState(false),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
isDisconnectAlertOpen = _useState2[0],
|
|
34
|
+
setIsDisconnectAlertOpen = _useState2[1];
|
|
35
|
+
var _useFetchGoogleMaps = useFetchGoogleMaps(),
|
|
36
|
+
_useFetchGoogleMaps$d = _useFetchGoogleMaps.data,
|
|
37
|
+
_useFetchGoogleMaps$d2 = _useFetchGoogleMaps$d === void 0 ? {} : _useFetchGoogleMaps$d,
|
|
38
|
+
_useFetchGoogleMaps$d3 = _useFetchGoogleMaps$d2.apiKey,
|
|
39
|
+
apiKey = _useFetchGoogleMaps$d3 === void 0 ? null : _useFetchGoogleMaps$d3,
|
|
40
|
+
isLoading = _useFetchGoogleMaps.isLoading;
|
|
41
|
+
var _useDestroyGoogleMaps = useDestroyGoogleMaps({
|
|
42
|
+
onSuccess: function onSuccess() {
|
|
43
|
+
setIsDisconnectAlertOpen(false);
|
|
44
|
+
onDisconnect();
|
|
45
|
+
}
|
|
46
|
+
}),
|
|
47
|
+
destroyGoogleMaps = _useDestroyGoogleMaps.mutate,
|
|
48
|
+
isDisconnecting = _useDestroyGoogleMaps.isPending;
|
|
49
|
+
var isConnected = isPresent(apiKey);
|
|
50
|
+
if (isLoading) {
|
|
51
|
+
return /*#__PURE__*/jsx("div", {
|
|
52
|
+
className: "flex h-full w-full items-center justify-center",
|
|
53
|
+
children: /*#__PURE__*/jsx(Spinner, {})
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return /*#__PURE__*/jsx(Manage$1, {
|
|
57
|
+
connectPath: connectPath,
|
|
58
|
+
helpDocUrl: helpDocUrl,
|
|
59
|
+
isConnected: isConnected,
|
|
60
|
+
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
61
|
+
isDisconnecting: isDisconnecting,
|
|
62
|
+
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
63
|
+
Icon: GoogleMapsIcon,
|
|
64
|
+
disconnectMessage: t("neetoIntegrations.googleMaps.disconnect.message"),
|
|
65
|
+
disconnectTitle: t("neetoIntegrations.googleMaps.disconnect.title"),
|
|
66
|
+
integration: "googleMaps",
|
|
67
|
+
integrationName: t("neetoIntegrations.googleMaps.title"),
|
|
68
|
+
description: isConnected ? /*#__PURE__*/jsx(Typography, {
|
|
69
|
+
as: "span",
|
|
70
|
+
variant: "body1",
|
|
71
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
72
|
+
i18nKey: "neetoIntegrations.googleMaps.connectedDescription",
|
|
73
|
+
values: {
|
|
74
|
+
apiKey: apiKey
|
|
75
|
+
},
|
|
76
|
+
components: {
|
|
77
|
+
wrapper: /*#__PURE__*/jsx("div", {
|
|
78
|
+
className: "mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2"
|
|
79
|
+
}),
|
|
80
|
+
span: /*#__PURE__*/jsx("span", {
|
|
81
|
+
className: "break-all text-sm"
|
|
82
|
+
}),
|
|
83
|
+
copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
84
|
+
className: "shrink-0 self-start",
|
|
85
|
+
value: apiKey,
|
|
86
|
+
variant: "ghost"
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
}) : t("neetoIntegrations.googleMaps.description"),
|
|
91
|
+
title: isConnected ? t("neetoIntegrations.googleMaps.connected") : t("neetoIntegrations.common.connectIntegration", {
|
|
92
|
+
integration: t("neetoIntegrations.googleMaps.title")
|
|
93
|
+
}),
|
|
94
|
+
onClose: function onClose() {
|
|
95
|
+
return setIsDisconnectAlertOpen(false);
|
|
96
|
+
},
|
|
97
|
+
onDisconnect: function onDisconnect() {
|
|
98
|
+
return destroyGoogleMaps();
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export { Manage as default };
|
|
104
|
+
//# sourceMappingURL=GoogleMapsManage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMapsManage.js","sources":["../../app/javascript/src/v2/components/Integrations/GoogleMaps/Manage.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner, Typography } from \"neetoatoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport CopyToClipboardButton from \"neetomolecules/v2/CopyToClipboardButton\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport {\n useDestroyGoogleMaps,\n useFetchGoogleMaps,\n} from \"hooks/reactQuery/useGoogleMapsApi\";\n\nimport GoogleMapsIcon from \"./Icon\";\n\nimport ManageIntegration from \"../../commons/Manage\";\n\nconst Manage = ({ connectPath = \"\", helpDocUrl = \"\", onDisconnect = noop }) => {\n const { t } = useTranslation();\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { apiKey = null } = {}, isLoading } = useFetchGoogleMaps();\n const { mutate: destroyGoogleMaps, isPending: isDisconnecting } =\n useDestroyGoogleMaps({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect();\n },\n });\n\n const isConnected = isPresent(apiKey);\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 <ManageIntegration\n {...{\n connectPath,\n helpDocUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={GoogleMapsIcon}\n disconnectMessage={t(\"neetoIntegrations.googleMaps.disconnect.message\")}\n disconnectTitle={t(\"neetoIntegrations.googleMaps.disconnect.title\")}\n integration=\"googleMaps\"\n integrationName={t(\"neetoIntegrations.googleMaps.title\")}\n description={\n isConnected ? (\n <Typography as=\"span\" variant=\"body1\">\n <Trans\n i18nKey=\"neetoIntegrations.googleMaps.connectedDescription\"\n values={{ apiKey }}\n components={{\n wrapper: (\n <div className=\"mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2\" />\n ),\n span: <span className=\"break-all text-sm\" />,\n copy: (\n <CopyToClipboardButton\n className=\"shrink-0 self-start\"\n value={apiKey}\n variant=\"ghost\"\n />\n ),\n }}\n />\n </Typography>\n ) : (\n t(\"neetoIntegrations.googleMaps.description\")\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.googleMaps.connected\")\n : t(\"neetoIntegrations.common.connectIntegration\", {\n integration: t(\"neetoIntegrations.googleMaps.title\"),\n })\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => destroyGoogleMaps()}\n />\n );\n};\n\nexport default Manage;\n"],"names":["Manage","_ref","_ref$connectPath","connectPath","_ref$helpDocUrl","helpDocUrl","_ref$onDisconnect","onDisconnect","noop","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useFetchGoogleMaps","useFetchGoogleMaps","_useFetchGoogleMaps$d","data","_useFetchGoogleMaps$d2","_useFetchGoogleMaps$d3","apiKey","isLoading","_useDestroyGoogleMaps","useDestroyGoogleMaps","onSuccess","destroyGoogleMaps","mutate","isDisconnecting","isPending","isConnected","isPresent","_jsx","className","children","Spinner","ManageIntegration","Icon","GoogleMapsIcon","disconnectMessage","disconnectTitle","integration","integrationName","description","Typography","as","variant","Trans","i18nKey","values","components","wrapper","span","copy","CopyToClipboardButton","value","title","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAgBA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAAmE;AAAA,EAAA,IAAAC,gBAAA,GAAAD,IAAA,CAA7DE,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,eAAA,GAAAH,IAAA,CAAEI,UAAU;AAAVA,IAAAA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L;OACD;AAAC,KACQ,CAAC,GAEbtC,CAAC,CAAC,0CAA0C,CAE/C;IACDgD,KAAK,EACH1B,WAAW,GACPtB,CAAC,CAAC,wCAAwC,CAAC,GAC3CA,CAAC,CAAC,6CAA6C,EAAE;MAC/CiC,WAAW,EAAEjC,CAAC,CAAC,oCAAoC;AACrD,KAAC,CACN;IACDiD,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQ3C,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CV,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQsB,iBAAiB,EAAE;AAAA,IAAA;AAAC,GACzC,CAAC;AAEN;;;;"}
|
package/dist/v2/SmsLogs.js
CHANGED
|
@@ -16,7 +16,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
16
16
|
import { useHistory } from 'react-router-dom';
|
|
17
17
|
import { useQuery, keepPreviousData } from '@tanstack/react-query';
|
|
18
18
|
import axios from 'axios';
|
|
19
|
-
import { S as SMS_LOGS_URL, Q as QUERY_KEYS } from '../query-
|
|
19
|
+
import { S as SMS_LOGS_URL, Q as QUERY_KEYS } from '../query-CyER0UTx.js';
|
|
20
20
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
21
21
|
import { t } from 'i18next';
|
|
22
22
|
import classnames from 'classnames';
|
package/dist/v2/Telnyx.js
CHANGED
|
@@ -6,7 +6,7 @@ import { equals } from 'ramda';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { Badge, Spinner, Callout } from '@bigbinary/neeto-atoms';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { u as useFetchTelnyxMessagingProfileSenders, a as useFetchTelnyxConfiguration, b as useFetchTelnyxSenderOptions, c as useUpsertTelnyxConfiguration } from '../useTelnyxApi-
|
|
9
|
+
import { u as useFetchTelnyxMessagingProfileSenders, a as useFetchTelnyxConfiguration, b as useFetchTelnyxSenderOptions, c as useUpsertTelnyxConfiguration } from '../useTelnyxApi-WH39oUwB.js';
|
|
10
10
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
11
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import { useStateWithDependency } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
@@ -16,7 +16,7 @@ import '@babel/runtime/helpers/defineProperty';
|
|
|
16
16
|
import '@tanstack/react-query';
|
|
17
17
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
18
18
|
import 'axios';
|
|
19
|
-
import '../query-
|
|
19
|
+
import '../query-CyER0UTx.js';
|
|
20
20
|
|
|
21
21
|
var ConnectionTypeCard = function ConnectionTypeCard(_ref) {
|
|
22
22
|
var value = _ref.value,
|
package/dist/v2/Twilio.js
CHANGED
|
@@ -6,7 +6,7 @@ import { equals } from 'ramda';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { Badge, Spinner, Callout } from '@bigbinary/neeto-atoms';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { u as useFetchTwilioMessagingServiceSenders, a as useFetchTwilioSmsConfiguration, b as useFetchTwilioSenderOptions, c as useCreateTwilioConfiguration } from '../useTwilioApi-
|
|
9
|
+
import { u as useFetchTwilioMessagingServiceSenders, a as useFetchTwilioSmsConfiguration, b as useFetchTwilioSenderOptions, c as useCreateTwilioConfiguration } from '../useTwilioApi-nN6VRQYc.js';
|
|
10
10
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import { useStateWithDependency } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
@@ -15,7 +15,7 @@ import * as yup from 'yup';
|
|
|
15
15
|
import '@tanstack/react-query';
|
|
16
16
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
17
17
|
import 'axios';
|
|
18
|
-
import '../query-
|
|
18
|
+
import '../query-CyER0UTx.js';
|
|
19
19
|
|
|
20
20
|
var CONNECTION_TYPES = {
|
|
21
21
|
PHONE_NUMBER: "phone_number",
|
package/dist/v2/Zoom.js
CHANGED
|
@@ -4,14 +4,14 @@ import { Spinner } from '@bigbinary/neeto-atoms';
|
|
|
4
4
|
import { isPresent, noop } from '@bigbinary/neeto-cist';
|
|
5
5
|
import ZoomIcon from '@bigbinary/neeto-icons/misc/Zoom';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
|
-
import { u as useShowZoom, a as useDestroyZoom } from '../useZoomApi-
|
|
7
|
+
import { u as useShowZoom, a as useDestroyZoom } from '../useZoomApi-i5CNstmT.js';
|
|
8
8
|
import Manage from './Manage.js';
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
import '@tanstack/react-query';
|
|
11
11
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
12
12
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
13
13
|
import 'axios';
|
|
14
|
-
import '../query-
|
|
14
|
+
import '../query-CyER0UTx.js';
|
|
15
15
|
import '@babel/runtime/helpers/defineProperty';
|
|
16
16
|
import '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
17
17
|
import './DisconnectAlert.js';
|