@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/app-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/app-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8B/B,OAAO,EAEL,OAAO,EAYR,MAAM,MAAM,CAAC;AA6Kd,wBAAgB,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,2CA0I5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vendor } from "../enums/vendors";
|
|
2
|
+
import { VendorCredentials } from "../types/credentials";
|
|
3
|
+
interface CredentialFormProps {
|
|
4
|
+
vendor: Vendor;
|
|
5
|
+
onBack: () => void;
|
|
6
|
+
onSubmit: (credentials: VendorCredentials) => void;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function CredentialForm({ vendor, onBack, onSubmit, isLoading, }: CredentialFormProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=credential-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-form.d.ts","sourceRoot":"","sources":["../../src/components/credential-form.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,WAAW,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAiB,GAClB,EAAE,mBAAmB,2CAiJrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
declare const badgeVariants: (props?: ({
|
|
3
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Badge, badgeVariants };
|
|
9
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;mFAkBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAC7B,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,2CAU3D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./badge";
|
|
1
2
|
export * from "./button";
|
|
2
3
|
export * from "./card";
|
|
3
4
|
export * from "./collapsible-section";
|
|
@@ -8,5 +9,6 @@ export * from "./sheet";
|
|
|
8
9
|
export * from "./sidebar";
|
|
9
10
|
export * from "./sidebar";
|
|
10
11
|
export * from "./skeleton";
|
|
12
|
+
export * from "./sonner";
|
|
11
13
|
export * from "./tooltip";
|
|
12
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sonner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,YAAY,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE/D,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,4CAiB1C,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VendorConnectionStatus } from "../enums/vendors";
|
|
2
|
+
import { VendorConnection } from "../types/credentials";
|
|
3
|
+
interface VendorConnectionCardProps {
|
|
4
|
+
connection: VendorConnection;
|
|
5
|
+
onEditConnection?: (connection: VendorConnection) => void;
|
|
6
|
+
onRefreshConnection?: (connectionId: string) => Promise<void>;
|
|
7
|
+
onStatusChange?: (connectionId: string, newStatus: VendorConnectionStatus) => Promise<void>;
|
|
8
|
+
editLoadingStates?: Record<string, boolean>;
|
|
9
|
+
refreshLoadingStates?: Record<string, boolean>;
|
|
10
|
+
statusChangeLoadingStates?: Record<string, boolean>;
|
|
11
|
+
refreshResultStates?: Record<string, "success" | "error" | null>;
|
|
12
|
+
}
|
|
13
|
+
export declare const VendorConnectionCard: ({ connection, onEditConnection, onRefreshConnection, onStatusChange, editLoadingStates, refreshLoadingStates, statusChangeLoadingStates, refreshResultStates, }: VendorConnectionCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=vendor-connection-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-connection-card.d.ts","sourceRoot":"","sources":["../../src/components/vendor-connection-card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAIxD,UAAU,yBAAyB;IACjC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC1D,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,cAAc,CAAC,EAAE,CACf,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,sBAAsB,KAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpD,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;CAClE;AAED,eAAO,MAAM,oBAAoB,GAAI,iKASlC,yBAAyB,4CAsJ3B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VendorConnectionStatus } from "../enums/vendors";
|
|
2
|
+
import { VendorConnection } from "../types/credentials";
|
|
3
|
+
interface VendorConnectionsProps {
|
|
4
|
+
connections?: VendorConnection[];
|
|
5
|
+
onEditConnection?: (connection: VendorConnection) => void;
|
|
6
|
+
onRefreshConnection?: (connectionId: string) => Promise<void>;
|
|
7
|
+
onStatusChange?: (connectionId: string, newStatus: VendorConnectionStatus) => Promise<void>;
|
|
8
|
+
onAddConnection?: () => void;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
editLoadingStates?: Record<string, boolean>;
|
|
11
|
+
refreshLoadingStates?: Record<string, boolean>;
|
|
12
|
+
statusChangeLoadingStates?: Record<string, boolean>;
|
|
13
|
+
refreshResultStates?: Record<string, "success" | "error" | null>;
|
|
14
|
+
}
|
|
15
|
+
export declare const VendorConnections: ({ connections, onEditConnection, onRefreshConnection, onStatusChange, onAddConnection, isLoading, editLoadingStates, refreshLoadingStates, statusChangeLoadingStates, refreshResultStates, }: VendorConnectionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=vendor-connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-connections.d.ts","sourceRoot":"","sources":["../../src/components/vendor-connections.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAIxD,UAAU,sBAAsB;IAC9B,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC1D,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,cAAc,CAAC,EAAE,CACf,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,sBAAsB,KAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpD,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;CAClE;AAED,eAAO,MAAM,iBAAiB,GAAI,8LAW/B,sBAAsB,4CA+DxB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VendorCredentials } from "../types/credentials";
|
|
2
|
+
interface VendorSelectionProps {
|
|
3
|
+
onSubmitCredentials: (credentials: VendorCredentials) => void | Promise<void>;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const VendorSelection: ({ onSubmitCredentials, isLoading, }: VendorSelectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=vendor-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-selection.d.ts","sourceRoot":"","sources":["../../src/components/vendor-selection.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,UAAU,oBAAoB;IAC5B,mBAAmB,EAAE,CAAC,WAAW,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,GAAI,qCAG7B,oBAAoB,4CA2DtB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare enum Vendor {
|
|
2
|
+
HUMMINGBIRD = "hummingbird",
|
|
3
|
+
SITELINK = "sitelink",
|
|
4
|
+
STORABLE_EDGE = "storable_edge",
|
|
5
|
+
SC_NAVIGATOR = "sc_navigator",
|
|
6
|
+
SSM_CLOUD = "ssm_cloud",
|
|
7
|
+
QUIKSTOR = "quikstor"
|
|
8
|
+
}
|
|
9
|
+
declare enum VendorConnectionStatus {
|
|
10
|
+
ACTIVE = "active",
|
|
11
|
+
INACTIVE = "inactive",
|
|
12
|
+
ERROR = "error"
|
|
13
|
+
}
|
|
14
|
+
export { Vendor, VendorConnectionStatus };
|
|
15
|
+
//# sourceMappingURL=vendors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendors.d.ts","sourceRoot":"","sources":["../../src/enums/vendors.ts"],"names":[],"mappings":"AAAA,aAAK,MAAM;IACT,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAED,aAAK,sBAAsB;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC"}
|