@golocalinteractive/golocal-cloud-wrapper 1.1.2 → 1.1.4
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/components/app-sidebar.d.ts.map +1 -1
- package/dist/components/credential-form.d.ts +11 -0
- package/dist/components/credential-form.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/vendor-connection-card.d.ts +15 -0
- package/dist/components/vendor-connection-card.d.ts.map +1 -0
- package/dist/components/vendor-connections.d.ts +17 -0
- package/dist/components/vendor-connections.d.ts.map +1 -0
- package/dist/components/vendor-selection.d.ts +8 -0
- package/dist/components/vendor-selection.d.ts.map +1 -0
- package/dist/enums/vendors.d.ts +15 -0
- package/dist/enums/vendors.d.ts.map +1 -0
- package/dist/golocal-cloud-wrapper.cjs.js +170 -40
- package/dist/golocal-cloud-wrapper.css +1 -1
- package/dist/golocal-cloud-wrapper.es.js +4980 -3114
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/vendor-form-config.d.ts +20 -0
- package/dist/lib/vendor-form-config.d.ts.map +1 -0
- package/dist/lib/vendor-info.d.ts +9 -0
- package/dist/lib/vendor-info.d.ts.map +1 -0
- package/dist/types/credentials.d.ts +41 -0
- package/dist/types/credentials.d.ts.map +1 -0
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,15 @@ import "./index.css";
|
|
|
2
2
|
export { AppHeader } from "./components/app-header";
|
|
3
3
|
export { AppSidebar } from "./components/app-sidebar";
|
|
4
4
|
export { ProfileDropdown } from "./components/profile-dropdown";
|
|
5
|
+
export { VendorSelection } from "./components/vendor-selection";
|
|
6
|
+
export { VendorConnections } from "./components/vendor-connections";
|
|
7
|
+
export { VendorConnectionCard } from "./components/vendor-connection-card";
|
|
5
8
|
export * from "./components/ui";
|
|
6
|
-
export { PermissionsProvider, usePermissions, useProductAccess } from "./context/PermissionsContext";
|
|
9
|
+
export { PermissionsProvider, usePermissions, useProductAccess, } from "./context/PermissionsContext";
|
|
7
10
|
export * from "./lib/auth";
|
|
8
11
|
export { GLICloudProvider } from "./providers/GLICloudProvider";
|
|
9
12
|
export * from "./hooks/use-active-route";
|
|
10
13
|
export * from "./hooks/use-mobile";
|
|
14
|
+
export * from "./types/credentials";
|
|
15
|
+
export * from "./enums/vendors";
|
|
11
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AAGtC,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Vendor } from "../enums/vendors";
|
|
2
|
+
import { VendorCredentials } from "../types/credentials";
|
|
3
|
+
export interface FormField {
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: "text" | "password" | "email" | "number";
|
|
7
|
+
placeholder: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface VendorFormConfig {
|
|
12
|
+
vendor: Vendor;
|
|
13
|
+
fields: FormField[];
|
|
14
|
+
connectionNameField: FormField;
|
|
15
|
+
createCredentials: (formData: Record<string, string>, connectionName: string) => VendorCredentials;
|
|
16
|
+
validateFormData: (formData: Record<string, string>) => boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function getVendorFormConfig(vendor: Vendor): VendorFormConfig;
|
|
19
|
+
export declare function getAllVendorFormConfigs(): VendorFormConfig[];
|
|
20
|
+
//# sourceMappingURL=vendor-form-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-form-config.d.ts","sourceRoot":"","sources":["../../src/lib/vendor-form-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EACL,iBAAiB,EAOlB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,mBAAmB,EAAE,SAAS,CAAC;IAC/B,iBAAiB,EAAE,CACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,cAAc,EAAE,MAAM,KACnB,iBAAiB,CAAC;IACvB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC;CACjE;AA2PD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAMpE;AAED,wBAAgB,uBAAuB,IAAI,gBAAgB,EAAE,CAE5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-info.d.ts","sourceRoot":"","sources":["../../src/lib/vendor-info.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,eAAO,MAAM,UAAU,EAAE,MAAM,CAC7B,MAAM,EACN;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CA4C/E,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Vendor, VendorConnectionStatus } from "../enums/vendors";
|
|
2
|
+
export interface SitelinkCredentials {
|
|
3
|
+
corporate_code: string;
|
|
4
|
+
username: string;
|
|
5
|
+
password: string;
|
|
6
|
+
}
|
|
7
|
+
export interface StoredgeCredentials {
|
|
8
|
+
company_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface HummingbirdCredentials {
|
|
11
|
+
company_id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SCNavigatorCredentials {
|
|
14
|
+
username: string;
|
|
15
|
+
password: string;
|
|
16
|
+
base_url: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SSMCloudCredentials {
|
|
19
|
+
base_url: string;
|
|
20
|
+
}
|
|
21
|
+
export interface QuikStorCredentials {
|
|
22
|
+
company_code: string;
|
|
23
|
+
client_id: string;
|
|
24
|
+
client_secret: string;
|
|
25
|
+
}
|
|
26
|
+
export interface VendorCredentials {
|
|
27
|
+
vendor: Vendor;
|
|
28
|
+
connection_name: string;
|
|
29
|
+
credentials: SitelinkCredentials | StoredgeCredentials | HummingbirdCredentials | SCNavigatorCredentials | SSMCloudCredentials | QuikStorCredentials;
|
|
30
|
+
}
|
|
31
|
+
export interface CredentialProvider {
|
|
32
|
+
id: string;
|
|
33
|
+
name?: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface VendorConnection {
|
|
36
|
+
name: string;
|
|
37
|
+
provider: CredentialProvider;
|
|
38
|
+
status: VendorConnectionStatus;
|
|
39
|
+
software: Vendor;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/types/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAElE,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EACP,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,sBAAsB,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golocalinteractive/golocal-cloud-wrapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "A React provider component for Go Local Interactive's cloud services",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Tanner Barrett, Cody Lacey, Go Local Interactive",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
21
|
"import": "./dist/golocal-cloud-wrapper.es.js",
|
|
22
|
-
"require": "./dist/golocal-cloud-wrapper.
|
|
22
|
+
"require": "./dist/golocal-cloud-wrapper.cjs.js"
|
|
23
23
|
},
|
|
24
24
|
"./server": {
|
|
25
25
|
"types": "./dist/server.d.ts",
|
|
26
26
|
"import": "./dist/server.es.js",
|
|
27
|
-
"require": "./dist/server.
|
|
27
|
+
"require": "./dist/server.cjs.js"
|
|
28
28
|
},
|
|
29
29
|
"./styles": "./dist/golocal-cloud-wrapper.css"
|
|
30
30
|
},
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"build": "vite build && npm run build:types",
|
|
33
33
|
"build:types": "tsc --emitDeclarationOnly",
|
|
34
34
|
"build:dev": "vite build --mode development",
|
|
35
|
+
"dev": "vite build --watch --mode development && npm run build:types",
|
|
36
|
+
"watch": "vite build --watch",
|
|
35
37
|
"test": "jest --config jest.config.ts",
|
|
36
38
|
"storybook": "storybook dev -p 6006",
|
|
37
39
|
"prepublishOnly": "npm run build"
|
|
@@ -76,6 +78,8 @@
|
|
|
76
78
|
"clsx": "^2.1.1",
|
|
77
79
|
"jwt-decode": "^4.0.0",
|
|
78
80
|
"lucide-react": "^0.522.0",
|
|
81
|
+
"next-themes": "^0.4.6",
|
|
82
|
+
"sonner": "^2.0.7",
|
|
79
83
|
"tailwind-merge": "^3.3.1"
|
|
80
84
|
}
|
|
81
85
|
}
|