@bigbinary/neeto-integrations-frontend 1.1.1 → 1.2.1

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  @bigbinary/neeto-integrations-frontend
2
2
 
3
+ ![npm](https://img.shields.io/npm/v/@bigbinary/neeto-integrations-frontend?color=greenyellow)
4
+ ![npm](https://img.shields.io/npm/dw/@bigbinary/neeto-integrations-frontend?color=greenyellow)
5
+
3
6
  UI for integrations for all neeto products.
4
7
 
5
8
  ## Installation
@@ -12,6 +15,12 @@ yarn add @bigbinary/neeto-integrations-frontend
12
15
 
13
16
  Available components:
14
17
 
18
+ Available components:
19
+
20
+ - [Connect](./docs/connect/README.md)
21
+ - [Finish](./docs/finish/README.md)
22
+ - [Demo](./docs/demo/README.md)
23
+
15
24
  View the [example app](./example/src/App.jsx) to see usage.
16
25
 
17
26
  ## Development
@@ -44,3 +53,37 @@ will run the example app using webpack.
44
53
  are in watch mode and the changes are bundled automatically). Restart
45
54
  webpack-dev-server in host if changes are not applied.
46
55
  8. Video explanation on how to use yalc: https://vimeo.com/722958162/9e931b640c
56
+
57
+ # Building and releasing.
58
+
59
+ The `@bigbinary/neeto-integrations-frontend` package gets published to NPM when
60
+ we merge a PR with `patch`, `minor` or `major` label to the `main` branch. The
61
+ `patch` label is used for bug fixes, `minor` label is used for new features and
62
+ `major` label is used for breaking changes. You can checkout the
63
+ `Create and publish releases` workflow in GitHub Actions to get a live update.
64
+
65
+ In case if you missed to add the label, you can manually publish the package.
66
+ For that first you need to create a PR to update the version number in the
67
+ `package.json` file and merge it to the `main` branch. After merging the PR, you
68
+ need to create a
69
+ [new github release](https://github.com/bigbinary/neeto-integrations-frontend/releases/new)
70
+ from main branch. Whenever a new release is created with a new version number,
71
+ the github actions will automatically publish the built package to npm. You can
72
+ checkout the `Publish to npm` workflow in GitHub Actions to get a live update.
73
+
74
+ Please note that before publishing the package, you need to verify the
75
+ functionality in some of the neeto web-apps locally using `yalc` package
76
+ manager. The usage of yalc is explained in this video:
77
+ https://youtu.be/QBiYGP0Rhe0
78
+
79
+ # Product integrations
80
+
81
+ | Projects | IntegrationsFrontend |
82
+ | ------------ | :------------------: |
83
+ | neetoChat | :white_check_mark: |
84
+ | neetoDesk | :white_check_mark: |
85
+ | neetoForm | :white_check_mark: |
86
+ | neetoInvoice | :white_check_mark: |
87
+ | neetoBugtrap | :white_check_mark: |
88
+ | neetoMonitor | :white_check_mark: |
89
+ | neetoCal | :white_check_mark: |
package/dist/index.cjs.js CHANGED
@@ -3647,6 +3647,10 @@ var demo = {
3647
3647
  subtitle: "Watch the following video to understand how you can utilize this integration:",
3648
3648
  iFrameTitle: "Watch this video to utilize the integration"
3649
3649
  };
3650
+ var walkthroughModal = {
3651
+ header: "Check how it behaves",
3652
+ "continue": "Continue"
3653
+ };
3650
3654
  var zapier = {
3651
3655
  apiKeys: "API Keys",
3652
3656
  copyApiKey: "Copy API Key to Clipboard",
@@ -3668,6 +3672,7 @@ var zapier = {
3668
3672
  var en = {
3669
3673
  common: common,
3670
3674
  demo: demo,
3675
+ walkthroughModal: walkthroughModal,
3671
3676
  zapier: zapier
3672
3677
  };
3673
3678
 
@@ -3800,8 +3805,9 @@ var Modal = function Modal(_ref) {
3800
3805
  steps = _ref$steps === void 0 ? {} : _ref$steps,
3801
3806
  children = _ref.children;
3802
3807
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Modal, {
3803
- className: "w-screen-imp neeto-ui-h-screen neeto-ui-flex neeto-ui-transform-none neeto-ui-flex-col neeto-ui-rounded-none",
3808
+ className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-transform-none w-screen overflow-y-auto",
3804
3809
  isOpen: isOpen,
3810
+ size: "fullScreen",
3805
3811
  onClose: onClose
3806
3812
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Modal.Header, null, /*#__PURE__*/React__default["default"].createElement(Stepper, {
3807
3813
  steps: steps
@@ -4090,6 +4096,39 @@ Finish.prototypes = {
4090
4096
  secondaryButtonProps: propTypes.exports.object
4091
4097
  };
4092
4098
 
4099
+ var WalkthroughModal = function WalkthroughModal(_ref) {
4100
+ var _ref$isOpen = _ref.isOpen,
4101
+ isOpen = _ref$isOpen === void 0 ? pure.noop : _ref$isOpen,
4102
+ _ref$onClose = _ref.onClose,
4103
+ onClose = _ref$onClose === void 0 ? pure.noop : _ref$onClose,
4104
+ _ref$videoUrl = _ref.videoUrl,
4105
+ videoUrl = _ref$videoUrl === void 0 ? "" : _ref$videoUrl,
4106
+ children = _ref.children;
4107
+ var _useTranslation = useTranslation(),
4108
+ t = _useTranslation.t;
4109
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Modal, {
4110
+ isOpen: isOpen,
4111
+ size: "large",
4112
+ onClose: onClose
4113
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Modal.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
4114
+ style: "h2",
4115
+ weight: "semibold"
4116
+ }, t("walkthroughModal.header"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
4117
+ className: "w-full py-10"
4118
+ }, /*#__PURE__*/React__default["default"].createElement("video", {
4119
+ autoPlay: true,
4120
+ controls: true,
4121
+ muted: true,
4122
+ className: "cursor-pointer",
4123
+ id: "walkthrough-video"
4124
+ }, /*#__PURE__*/React__default["default"].createElement("source", {
4125
+ src: videoUrl
4126
+ })), children)), /*#__PURE__*/React__default["default"].createElement(neetoui.Modal.Footer, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
4127
+ label: t("walkthroughModal.continue"),
4128
+ onClick: onClose
4129
+ })));
4130
+ };
4131
+
4093
4132
  function _arrayWithHoles(arr) {
4094
4133
  if (Array.isArray(arr)) return arr;
4095
4134
  }
@@ -4432,7 +4471,7 @@ function n(n, r) {
4432
4471
  }
4433
4472
  }
4434
4473
 
4435
- 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%}";
4474
+ 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%}";
4436
4475
  n(css,{});
4437
4476
 
4438
4477
  exports.Card = Card;
@@ -4440,5 +4479,6 @@ exports.Connect = Connect;
4440
4479
  exports.Demo = Demo;
4441
4480
  exports.Finish = Finish;
4442
4481
  exports.Modal = Modal;
4482
+ exports.WalkthroughModal = WalkthroughModal;
4443
4483
  exports.ZapierForm = ZapierForm;
4444
4484
  //# sourceMappingURL=index.cjs.js.map