@bigbinary/neeto-integrations-frontend 1.5.0 → 2.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/package.json CHANGED
@@ -1,25 +1,38 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-integrations-frontend",
3
- "version": "1.5.0",
3
+ "version": "2.1.0",
4
4
  "description": "UI for integrations in neeto products",
5
5
  "author": "Abhijith Sheheer",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "",
8
- "main": "dist/index.cjs.js",
9
- "module": "dist/index.js",
10
- "typings": "types.d.ts",
8
+ "types": "types.d.ts",
11
9
  "engines": {
12
10
  "node": ">=18.12"
13
11
  },
14
12
  "files": [
15
13
  "dist",
16
- "types.d.ts"
14
+ "types.d.ts",
15
+ "types",
16
+ "src/translations"
17
17
  ],
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/index.js",
21
+ "export": "./dist/index.cjs.js",
22
+ "types": "./types.d.ts"
23
+ },
24
+ "./*": {
25
+ "import": "./dist/*.js",
26
+ "require": "./dist/*.cjs.js",
27
+ "types": "./types/*.d.ts"
28
+ }
29
+ },
18
30
  "scripts": {
19
31
  "prepare": "husky install",
20
32
  "start": "NODE_ENV=development rm -rf dist && webpack-dev-server --mode development",
21
33
  "build": "NODE_ENV=production rollup -c rollup.config.js",
22
- "build-preview": "NODE_ENV=production webpack"
34
+ "build-preview": "NODE_ENV=production webpack",
35
+ "release": "yarn build && yalc push --sig"
23
36
  },
24
37
  "lint-staged": {
25
38
  "{src,example}/**/*.{js,jsx,json}": [
@@ -135,9 +148,11 @@
135
148
  "antd": "4.24.3",
136
149
  "axios": "0.27.2",
137
150
  "classnames": "2.3.1",
151
+ "i18next": "21.7.0",
138
152
  "ramda": "0.29.0",
139
153
  "react": "17.0.2",
140
154
  "react-dom": "17.0.2",
155
+ "react-i18next": "11.16.8",
141
156
  "react-query": "3.39.2",
142
157
  "react-router-dom": "5.3.1",
143
158
  "react-toastify": "8.0.2",
@@ -0,0 +1,50 @@
1
+ {
2
+ "neetoIntegrations": {
3
+ "common": {
4
+ "continue": "Continue",
5
+ "connect": "Connect",
6
+ "connected": "Connected",
7
+ "manage": "Manage",
8
+ "disconnect": "Disconnect",
9
+ "finish": "Finish",
10
+ "required": "Required",
11
+ "delete": "Delete",
12
+ "tryAgain": "Try Again"
13
+ },
14
+ "tags": {
15
+ "connected": "Connected",
16
+ "expired": "Expired"
17
+ },
18
+ "tooltip": {
19
+ "integrationNotAvailable": "This integration is not available right now."
20
+ },
21
+ "demo": {
22
+ "title": "Check how it behaves",
23
+ "subtitle": "Watch the following video to understand how you can utilize this integration:",
24
+ "iFrameTitle": "Watch this video to utilize the integration"
25
+ },
26
+ "walkthroughModal": {
27
+ "header": "Check how it behaves",
28
+ "continue": "Continue"
29
+ },
30
+ "zapier": {
31
+ "apiKeys": "API Keys",
32
+ "copyApiKey": "Copy API Key to Clipboard",
33
+ "emptyText": "Generate an API Key to connect to the Zapier platform",
34
+ "generateApiKey": "Generate API Key",
35
+ "labelInputPlaceholder": "Enter a Label for the new API Key",
36
+ "tableColumns": {
37
+ "createdAt": "Created At",
38
+ "label": "Label"
39
+ },
40
+ "newApiKeyInstruction": "Here is your Zapier API Key. Make sure to copy the API Key now. It will not be made visible again.",
41
+ "tableTitle": "Previously Generated API Keys",
42
+ "deleteApiKey": {
43
+ "title": "Delete API Key?",
44
+ "message": "You are permanently deleting the API Key <strong>{{key}}</strong>. This can't be undone."
45
+ },
46
+ "walkthroughText": "Check how it behaves",
47
+ "helpDoc": "Help document"
48
+ }
49
+ }
50
+ }
@@ -0,0 +1 @@
1
+ export { default as en } from "./en.json";
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+
3
+ type ZapierFormApiKey = {
4
+ [key: string]: string,
5
+ }
6
+
7
+ interface ZapierFormProps {
8
+ newlyCreatedApiKey: string;
9
+ videoUrl: string;
10
+ helpDocUrl: string;
11
+ apiKeys: ZapierFormApiKey[];
12
+ isGenerating: boolean;
13
+ isLoading: boolean;
14
+ isDeleting: boolean;
15
+ deleteApiKey: (...args: any[]) => any;
16
+ handleGenerateApiKey: (...args: any[]) => any;
17
+ setNewlyCreatedApiKey: (...args: any[]) => any;
18
+ setIsDemoModalOpen: (...args: any[]) => any;
19
+ }
20
+
21
+ const ZapierForm: React.FC<ZapierFormProps>;
22
+
23
+ export default ZapierForm;
package/types.d.ts CHANGED
@@ -6,7 +6,7 @@ declare global {
6
6
  declare module "assets/*"
7
7
  }
8
8
 
9
- export function Card(props: {
9
+ interface CardProps {
10
10
  icon: React.FC<IconProps>;
11
11
  subIcons?: React.FC<IconProps>[];
12
12
  label: string;
@@ -25,10 +25,12 @@ export function Card(props: {
25
25
  hideDisconnect?: boolean;
26
26
  tooltipProps?: Partial<TooltipProps>;
27
27
  customDropDown?: React.ReactNode;
28
- children?: ReactNode;
29
- }): JSX.Element;
28
+ children?: React.ReactNode;
29
+ };
30
+
31
+ export const Card: React.FC<CardProps>;
30
32
 
31
- export function Modal(props: {
33
+ export function IntegrationModal(props: {
32
34
  isOpen: (...args: any[]) => any;
33
35
  onClose: (...args: any[]) => any;
34
36
  steps?: {
@@ -63,19 +65,6 @@ export function Demo(props: {
63
65
  children?: React.ReactNode;
64
66
  }): JSX.Element;
65
67
 
66
- export function ZapierForm(props: {
67
- newlyCreatedApiKey: string;
68
- videoUrl: string;
69
- apiKeys: any[];
70
- isGenerating: boolean;
71
- isLoading: boolean;
72
- isDeleting: boolean;
73
- deleteApiKey: (...args: any[]) => any;
74
- handleGenerateApiKey: (...args: any[]) => any;
75
- setNewlyCreatedApiKey: (...args: any[]) => any;
76
- setIsDemoModalOpen: (...args: any[]) => any;
77
- }): JSX.Element;
78
-
79
68
  export function WalkthroughModal(props: {
80
69
  videoUrl: string;
81
70
  isOpen: boolean;