@opble/auth0-react 1.0.0 → 1.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.
@@ -0,0 +1,4 @@
1
+ import { AuthSliceState } from './types';
2
+ export declare const clearAuth: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/clearAuth">, setAccessToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/setAccessToken">, setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/setUser">;
3
+ export declare const authReducer: import("@reduxjs/toolkit").Reducer<AuthSliceState>;
4
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/slices/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,cAAc,EAAE,MAAM,SAAS,CAAC;AAkB1D,eAAO,MAAQ,SAAS,4EAAE,cAAc,mFAAE,OAAO,0EAAkB,CAAC;AACpE,eAAO,MAAM,WAAW,oDAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { AuthState } from './types';
2
+ export declare const selectAccessToken: (state: AuthState) => string | undefined;
3
+ export declare const selectUser: (state: AuthState) => {
4
+ id: string;
5
+ email: string;
6
+ emailVerified: boolean;
7
+ role: string[];
8
+ permissions: string[];
9
+ name?: string | undefined;
10
+ } | undefined;
11
+ //# sourceMappingURL=selectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/slices/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,iBAAiB,GAAI,OAAO,SAAS,uBACd,CAAC;AAErC,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS;;;;;;;aAAgC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { SerializableUser } from '@opble/entity-auth';
2
+ export declare const authReducerPath = "auth";
3
+ export type AuthSliceState = {
4
+ accessToken?: string;
5
+ user?: SerializableUser;
6
+ };
7
+ export type AuthState = {
8
+ [authReducerPath]: AuthSliceState;
9
+ };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/slices/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,eAAe,SAAS,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC;CACnC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type SecureQueryConfig = {
2
+ baseUrl: string;
3
+ };
4
+ export declare const createSecureQuery: (config: SecureQueryConfig) => import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>;
5
+ //# sourceMappingURL=rtk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtk.d.ts","sourceRoot":"","sources":["../../src/util/rtk.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,iBAAiB,8NAgB1D,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@opble/auth0-react",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
8
  "exports": {
12
9
  ".": {
13
10
  "types": "./dist/index.d.ts",
@@ -15,6 +12,29 @@
15
12
  },
16
13
  "./style.css": "./dist/index.css"
17
14
  },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/opble/node-packages.git",
18
+ "directory": "packages/auth0-react"
19
+ },
20
+ "keywords": [
21
+ "opble",
22
+ "auth0",
23
+ "react"
24
+ ],
25
+ "files": [
26
+ "dist",
27
+ "README.md",
28
+ "LICENSE"
29
+ ],
30
+ "bugs": {
31
+ "url": "https://github.com/opble/node-packages/issues"
32
+ },
33
+ "homepage": "https://github.com/opble/node-packages#readme",
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "provenance": false
37
+ },
18
38
  "peerDependencies": {
19
39
  "react": ">=19",
20
40
  "react-dom": ">=19"
@@ -28,8 +48,15 @@
28
48
  "tslib": "^2.8.1",
29
49
  "typescript": "^5.9.3",
30
50
  "vite": "^7.3.1",
31
- "@opble/typescript-config": "0.0.0",
32
- "@opble/eslint-config": "0.0.0"
51
+ "@opble/eslint-config": "0.0.0",
52
+ "@opble/typescript-config": "0.0.0"
53
+ },
54
+ "dependencies": {
55
+ "@auth0/auth0-react": "^2.11.0",
56
+ "@opble/debug": "^1.0.0",
57
+ "@opble/entity-auth": "^1.0.0",
58
+ "@reduxjs/toolkit": "^2.11.2",
59
+ "react-redux": "^9.2.0"
33
60
  },
34
61
  "scripts": {
35
62
  "clean": "rm -rf dist",
@@ -1,2 +0,0 @@
1
- export declare const RedBanner: () => import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=RedBanner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RedBanner.d.ts","sourceRoot":"","sources":["../../src/components/RedBanner.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,+CAMrB,CAAC"}