@bigbinary/neeto-integrations-frontend 1.1.1 → 1.2.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
@@ -3619,6 +3619,10 @@ var demo = {
3619
3619
  subtitle: "Watch the following video to understand how you can utilize this integration:",
3620
3620
  iFrameTitle: "Watch this video to utilize the integration"
3621
3621
  };
3622
+ var walkthroughModal = {
3623
+ header: "Check how it behaves",
3624
+ "continue": "Continue"
3625
+ };
3622
3626
  var zapier = {
3623
3627
  apiKeys: "API Keys",
3624
3628
  copyApiKey: "Copy API Key to Clipboard",
@@ -3640,6 +3644,7 @@ var zapier = {
3640
3644
  var en = {
3641
3645
  common: common,
3642
3646
  demo: demo,
3647
+ walkthroughModal: walkthroughModal,
3643
3648
  zapier: zapier
3644
3649
  };
3645
3650
 
@@ -4062,6 +4067,39 @@ Finish.prototypes = {
4062
4067
  secondaryButtonProps: propTypes.exports.object
4063
4068
  };
4064
4069
 
4070
+ var WalkthroughModal = function WalkthroughModal(_ref) {
4071
+ var _ref$isOpen = _ref.isOpen,
4072
+ isOpen = _ref$isOpen === void 0 ? noop$1 : _ref$isOpen,
4073
+ _ref$onClose = _ref.onClose,
4074
+ onClose = _ref$onClose === void 0 ? noop$1 : _ref$onClose,
4075
+ _ref$videoUrl = _ref.videoUrl,
4076
+ videoUrl = _ref$videoUrl === void 0 ? "" : _ref$videoUrl,
4077
+ children = _ref.children;
4078
+ var _useTranslation = useTranslation(),
4079
+ t = _useTranslation.t;
4080
+ return /*#__PURE__*/React__default.createElement(Modal$1, {
4081
+ isOpen: isOpen,
4082
+ size: "large",
4083
+ onClose: onClose
4084
+ }, /*#__PURE__*/React__default.createElement(Modal$1.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
4085
+ style: "h2",
4086
+ weight: "semibold"
4087
+ }, t("walkthroughModal.header"))), /*#__PURE__*/React__default.createElement(Modal$1.Body, null, /*#__PURE__*/React__default.createElement("div", {
4088
+ className: "w-full py-10"
4089
+ }, /*#__PURE__*/React__default.createElement("video", {
4090
+ autoPlay: true,
4091
+ controls: true,
4092
+ muted: true,
4093
+ className: "cursor-pointer",
4094
+ id: "walkthrough-video"
4095
+ }, /*#__PURE__*/React__default.createElement("source", {
4096
+ src: videoUrl
4097
+ })), children)), /*#__PURE__*/React__default.createElement(Modal$1.Footer, null, /*#__PURE__*/React__default.createElement(Button, {
4098
+ label: t("walkthroughModal.continue"),
4099
+ onClick: onClose
4100
+ })));
4101
+ };
4102
+
4065
4103
  function _arrayWithHoles(arr) {
4066
4104
  if (Array.isArray(arr)) return arr;
4067
4105
  }
@@ -4407,5 +4445,5 @@ function n(n, r) {
4407
4445
  var css = ".w-screen-imp{width:100vw!important}.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%}";
4408
4446
  n(css,{});
4409
4447
 
4410
- export { Card, Connect, Demo, Finish, Modal, ZapierForm };
4448
+ export { Card, Connect, Demo, Finish, Modal, WalkthroughModal, ZapierForm };
4411
4449
  //# sourceMappingURL=index.js.map