@bigbinary/neeto-integrations-frontend 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Zoom.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { useState } from 'react';
2
+ import { useState } from 'react';
3
3
  import { isPresent, noop, humanize, isNotEmpty } from '@bigbinary/neeto-cist';
4
4
  import ZoomIcon from '@bigbinary/neeto-icons/misc/Zoom';
5
5
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
@@ -24,11 +24,11 @@ import Input from '@bigbinary/neetoui/formik/Input';
24
24
  import FormikForm from '@bigbinary/neetoui/formik/Form';
25
25
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
26
26
  import { useHistory } from 'react-router-dom';
27
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
28
27
  import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
29
28
  import '@bigbinary/neeto-icons/misc/GoogleCalendar';
30
29
  import '@bigbinary/neeto-icons/misc/Google';
31
30
  import '@bigbinary/neetoui/Callout';
31
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
32
32
  import 'ramda';
33
33
  import '@bigbinary/neetoui/formik/Select';
34
34
  import * as yup from 'yup';
@@ -161,11 +161,11 @@ var QUERY_KEYS = {
161
161
  ZOOM_DETAILS: "zoom-details"
162
162
  };
163
163
 
164
- function ownKeys$4(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; }
165
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
164
+ function ownKeys$3(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; }
165
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
166
166
  var useCreateDaily = function useCreateDaily() {
167
167
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
168
- return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
168
+ return useMutationWithInvalidation(dailiesApi.create, _objectSpread$3({
169
169
  keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]]
170
170
  }, options));
171
171
  };
@@ -184,52 +184,6 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
184
184
  });
185
185
  };
186
186
 
187
- function _objectWithoutPropertiesLoose(source, excluded) {
188
- if (source == null) return {};
189
- var target = {};
190
- var sourceKeys = Object.keys(source);
191
- var key, i;
192
- for (i = 0; i < sourceKeys.length; i++) {
193
- key = sourceKeys[i];
194
- if (excluded.indexOf(key) >= 0) continue;
195
- target[key] = source[key];
196
- }
197
- return target;
198
- }
199
-
200
- function _objectWithoutProperties(source, excluded) {
201
- if (source == null) return {};
202
- var target = _objectWithoutPropertiesLoose(source, excluded);
203
- var key, i;
204
- if (Object.getOwnPropertySymbols) {
205
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
206
- for (i = 0; i < sourceSymbolKeys.length; i++) {
207
- key = sourceSymbolKeys[i];
208
- if (excluded.indexOf(key) >= 0) continue;
209
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
210
- target[key] = source[key];
211
- }
212
- }
213
- return target;
214
- }
215
-
216
- var _excluded = ["className", "children"];
217
- function ownKeys$3(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; }
218
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
219
- var ExternalLink = function ExternalLink(_ref) {
220
- var _ref$className = _ref.className,
221
- className = _ref$className === void 0 ? "" : _ref$className,
222
- _ref$children = _ref.children,
223
- children = _ref$children === void 0 ? null : _ref$children,
224
- props = _objectWithoutProperties(_ref, _excluded);
225
- return /*#__PURE__*/jsx("a", _objectSpread$3(_objectSpread$3({
226
- className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
227
- }, props), {}, {
228
- children: children
229
- }));
230
- };
231
- var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
232
-
233
187
  var MANAGE_DAILY_CO_FORM_INITIAL_VALUES = {
234
188
  apiKey: ""
235
189
  };
@@ -272,26 +226,24 @@ var Form = function Form(_ref) {
272
226
  className: "flex items-center gap-2",
273
227
  children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
274
228
  title: t("neetoIntegrations.daily.connect.title"),
275
- description: /*#__PURE__*/jsx(Trans, {
276
- i18nKey: "neetoIntegrations.daily.helpDoc",
277
- components: {
278
- externalLink: /*#__PURE__*/jsx(ExternalLink$1, {
279
- "data-cy": "api-key-help-doc-link",
280
- href: helpDocUrl,
281
- rel: "noreferrer",
282
- target: "_blank"
283
- })
284
- }
285
- }),
286
- helpLinkProps: {
287
- label: /*#__PURE__*/jsx(Button, {
288
- className: "mt-8",
289
- label: t("neetoIntegrations.daily.walkthroughText"),
290
- style: "link",
291
- onClick: function onClick() {
292
- return setIsDemoModalOpen(true);
229
+ description: /*#__PURE__*/jsx(Typography, {
230
+ lineHeight: "normal",
231
+ style: "body2",
232
+ children: /*#__PURE__*/jsx(Trans, {
233
+ i18nKey: "neetoIntegrations.daily.helpDoc",
234
+ components: {
235
+ videoLink: /*#__PURE__*/jsx(Button, {
236
+ style: "link",
237
+ onClick: function onClick() {
238
+ return setIsDemoModalOpen(true);
239
+ }
240
+ })
293
241
  }
294
242
  })
243
+ }),
244
+ helpLinkProps: {
245
+ href: helpDocUrl,
246
+ "data-cy": "api-key-help-doc-link"
295
247
  }
296
248
  })]
297
249
  })