@golocalinteractive/golocal-cloud-wrapper 1.3.10 → 1.3.13

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.d.ts CHANGED
@@ -9,6 +9,8 @@ export { PermissionsProvider, usePermissions, useProductAccess, } from "./contex
9
9
  export * from "./lib/auth";
10
10
  export { GLICloudProvider, useAuth0RuntimeConfig, } from "./providers/GLICloudProvider";
11
11
  export type { Auth0ClientConfig } from "./providers/GLICloudProvider";
12
+ export { ActiveSubscriptionsProvider, useActiveSubscriptions, } from "./providers/ActiveSubscriptionsProvider";
13
+ export type { ActiveProduct, ActiveAddon, ActiveSubscriptionsData, } from "./providers/ActiveSubscriptionsProvider";
12
14
  export * from "./hooks/use-active-route";
13
15
  export * from "./hooks/use-auth0-permissions";
14
16
  export * from "./hooks/use-mobile";
@@ -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;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,EACL,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC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qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EACL,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -2,6 +2,7 @@ export declare const iconMap: {
2
2
  readonly BarChart3: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
3
3
  readonly BetweenHorizontalEnd: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
4
4
  readonly BookOpenText: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
5
+ readonly Box: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
5
6
  readonly Building2: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
6
7
  readonly CalendarSync: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
7
8
  readonly ChartArea: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
@@ -25,7 +26,13 @@ export declare const iconMap: {
25
26
  readonly Trash: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
26
27
  readonly Users: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
27
28
  readonly Warehouse: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
29
+ readonly Settings: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
28
30
  readonly Wrench: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
31
+ readonly Landmark: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
32
+ readonly FileText: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
33
+ readonly Calendar: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
34
+ readonly Briefcase: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
35
+ readonly UserLock: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
29
36
  };
30
37
  export type IconName = keyof typeof iconMap;
31
38
  export declare function getIcon(iconName: string, className?: string): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"icon-map.d.ts","sourceRoot":"","sources":["../../src/lib/icon-map.tsx"],"names":[],"mappings":"AA8BA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BV,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,OAAO,CAAC;AAE5C,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,2CAM3D"}
1
+ {"version":3,"file":"icon-map.d.ts","sourceRoot":"","sources":["../../src/lib/icon-map.tsx"],"names":[],"mappings":"AAsCA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCV,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,OAAO,CAAC;AAE5C,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,2CAM3D"}
@@ -0,0 +1,40 @@
1
+ import * as React from "react";
2
+ export interface ActiveAddon {
3
+ addon_name: string;
4
+ display_name: string;
5
+ }
6
+ export interface ActiveProduct {
7
+ product_name: string;
8
+ display_name: string;
9
+ addons: ActiveAddon[];
10
+ }
11
+ export interface ActiveSubscriptionsData {
12
+ activeProducts: ActiveProduct[];
13
+ configuration: {
14
+ enabled: boolean;
15
+ };
16
+ administration: {
17
+ enabled: boolean;
18
+ };
19
+ }
20
+ interface ActiveSubscriptionsContextValue {
21
+ activeProducts: ActiveProduct[];
22
+ configuration: {
23
+ enabled: boolean;
24
+ };
25
+ administration: {
26
+ enabled: boolean;
27
+ };
28
+ isLoading: boolean;
29
+ error: Error | null;
30
+ invalidate: () => Promise<void>;
31
+ }
32
+ export declare function useActiveSubscriptions(): ActiveSubscriptionsContextValue;
33
+ interface ActiveSubscriptionsProviderProps {
34
+ children: React.ReactNode;
35
+ apiBaseUrl?: string;
36
+ organizationId: string | null;
37
+ }
38
+ export declare const ActiveSubscriptionsProvider: ({ children, apiBaseUrl, organizationId, }: ActiveSubscriptionsProviderProps) => import("react/jsx-runtime").JSX.Element;
39
+ export {};
40
+ //# sourceMappingURL=ActiveSubscriptionsProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActiveSubscriptionsProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ActiveSubscriptionsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,aAAa,EAAE;QACb,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,cAAc,EAAE;QACd,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED,UAAU,+BAA+B;IACvC,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,aAAa,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IACpC,cAAc,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC;AAID,wBAAgB,sBAAsB,IAAI,+BAA+B,CAQxE;AAED,UAAU,gCAAgC;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AA8BD,eAAO,MAAM,2BAA2B,GAAI,2CAIzC,gCAAgC,4CAsDlC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golocalinteractive/golocal-cloud-wrapper",
3
- "version": "1.3.10",
3
+ "version": "1.3.13",
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",
@@ -45,6 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@jest/globals": "^29.7.0",
47
47
  "@tailwindcss/postcss": "^4.1.10",
48
+ "@tanstack/react-query": "^5.90.21",
48
49
  "@testing-library/react": "^16.3.0",
49
50
  "@types/jest": "^29.5.14",
50
51
  "@types/react": "^19.1.0",
@@ -68,11 +69,13 @@
68
69
  },
69
70
  "peerDependencies": {
70
71
  "@auth0/nextjs-auth0": "^4.0.0",
72
+ "@tanstack/react-query": "^5.0.0",
71
73
  "react": "^19.0.0",
72
74
  "react-dom": "^19.0.0"
73
75
  },
74
76
  "dependencies": {
75
77
  "@auth0/nextjs-auth0": "^4.0.0",
78
+ "@fontsource/geist": "^5.0.0",
76
79
  "@radix-ui/react-dialog": "^1.1.14",
77
80
  "@radix-ui/react-dropdown-menu": "^2.1.15",
78
81
  "@radix-ui/react-separator": "^1.1.7",
@@ -80,7 +83,6 @@
80
83
  "@radix-ui/react-tooltip": "^1.2.7",
81
84
  "class-variance-authority": "^0.7.1",
82
85
  "clsx": "^2.1.1",
83
- "@fontsource/geist": "^5.0.0",
84
86
  "geist": "^1.4.2",
85
87
  "jwt-decode": "^4.0.0",
86
88
  "lucide-react": "^0.522.0",