@bigbinary/neeto-integrations-frontend 1.4.0 → 1.5.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/index.js CHANGED
@@ -3,7 +3,7 @@ import React__default, { useContext, useState, useRef, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { noop as noop$1, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
5
5
  import { joinHyphenCase, timeFormat, copyToClipboard } from '@bigbinary/neeto-commons-frontend/utils';
6
- import { Dropdown as Dropdown$1, Tag, Tooltip, Typography, Spinner, Button, Modal as Modal$1, Table, Alert, Callout } from '@bigbinary/neetoui';
6
+ import { Dropdown as Dropdown$1, Tag, Tooltip, Typography, Spinner, Button, Alert, Modal as Modal$1, Table, Callout } from '@bigbinary/neetoui';
7
7
  import { isNotNil, isEmpty } from 'ramda';
8
8
  import { MenuVertical, Warning, Check, MenuHorizontal, Copy } from '@bigbinary/neeto-icons';
9
9
  import { Form, Input } from '@bigbinary/neetoui/formik';
@@ -3181,7 +3181,7 @@ function hasLoadedNamespace(ns, i18n) {
3181
3181
  });
3182
3182
  }
3183
3183
 
3184
- var _excluded$1 = ["format"],
3184
+ var _excluded$2 = ["format"],
3185
3185
  _excluded2 = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
3186
3186
  function ownKeys$3(object, enumerableOnly) {
3187
3187
  var keys = Object.keys(object);
@@ -3265,7 +3265,7 @@ function nodesToString(children, i18nOptions) {
3265
3265
  warn("Trans: the passed in value is invalid - seems you passed in a null child.");
3266
3266
  } else if (_typeof$1(child) === 'object') {
3267
3267
  var format = child.format,
3268
- clone = _objectWithoutProperties$1(child, _excluded$1);
3268
+ clone = _objectWithoutProperties$1(child, _excluded$2);
3269
3269
  var keys = Object.keys(clone);
3270
3270
  if (keys.length === 1) {
3271
3271
  var value = format ? "".concat(keys[0], ", ").concat(format) : keys[0];
@@ -3782,11 +3782,11 @@ function _objectWithoutProperties(source, excluded) {
3782
3782
  return target;
3783
3783
  }
3784
3784
 
3785
- var _excluded = ["disabled", "children"];
3785
+ var _excluded$1 = ["disabled", "children"];
3786
3786
  var TooltipWrapper = function TooltipWrapper(_ref) {
3787
3787
  var disabled = _ref.disabled,
3788
3788
  children = _ref.children,
3789
- tooltipProps = _objectWithoutProperties(_ref, _excluded);
3789
+ tooltipProps = _objectWithoutProperties(_ref, _excluded$1);
3790
3790
  return disabled ? /*#__PURE__*/React__default.createElement(Tooltip, tooltipProps, children) : children;
3791
3791
  };
3792
3792
 
@@ -3902,6 +3902,36 @@ var Card = function Card(_ref) {
3902
3902
  })))));
3903
3903
  };
3904
3904
 
3905
+ var _excluded = ["isOpen", "isDisconnecting", "title", "message", "onClose", "onDisconnect"];
3906
+ var DisconnectAlert = function DisconnectAlert(_ref) {
3907
+ var _ref$isOpen = _ref.isOpen,
3908
+ isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
3909
+ _ref$isDisconnecting = _ref.isDisconnecting,
3910
+ isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
3911
+ _ref$title = _ref.title,
3912
+ title = _ref$title === void 0 ? "" : _ref$title,
3913
+ _ref$message = _ref.message,
3914
+ message = _ref$message === void 0 ? "" : _ref$message,
3915
+ _ref$onClose = _ref.onClose,
3916
+ onClose = _ref$onClose === void 0 ? noop$1 : _ref$onClose,
3917
+ _ref$onDisconnect = _ref.onDisconnect,
3918
+ onDisconnect = _ref$onDisconnect === void 0 ? noop$1 : _ref$onDisconnect,
3919
+ otherProps = _objectWithoutProperties(_ref, _excluded);
3920
+ var _useTranslation = useTranslation(),
3921
+ t = _useTranslation.t;
3922
+ return /*#__PURE__*/React__default.createElement(Alert, _extends$1({
3923
+ closeOnEsc: true,
3924
+ closeOnOutsideClick: true,
3925
+ isOpen: isOpen,
3926
+ isSubmitting: isDisconnecting,
3927
+ message: message,
3928
+ submitButtonLabel: t("common.disconnect"),
3929
+ title: title,
3930
+ onClose: onClose,
3931
+ onSubmit: onDisconnect
3932
+ }, otherProps));
3933
+ };
3934
+
3905
3935
  var Stepper = function Stepper(_ref) {
3906
3936
  var _ref$steps = _ref.steps,
3907
3937
  steps = _ref$steps === void 0 ? {} : _ref$steps;
@@ -4609,5 +4639,5 @@ function n(n, r) {
4609
4639
  var css = ".intrinsic-container{height:0;overflow:hidden;position:relative}.intrinsic-container-16x9{padding-bottom:56.25%}.intrinsic-container-4x3{padding-bottom:75%}.intrinsic-container iframe{height:100%;left:0;position:absolute;top:0;width:100%}";
4610
4640
  n(css,{});
4611
4641
 
4612
- export { Card, Connect, Demo, Finish, Modal, WalkthroughModal, ZapierForm };
4642
+ export { Card, Connect, Demo, DisconnectAlert, Finish, Modal, WalkthroughModal, ZapierForm };
4613
4643
  //# sourceMappingURL=index.js.map