@descope/nextjs-sdk 0.0.9 → 0.0.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.
@@ -13,6 +13,7 @@ export declare const Descope: React.ComponentType<(({
13
13
  theme?: import("@descope/web-component").ThemeOptions;
14
14
  locale?: string;
15
15
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
16
+ validateOnBlur?: boolean;
16
17
  debug?: boolean;
17
18
  telemetryKey?: string;
18
19
  redirectUrl?: string;
@@ -32,6 +33,7 @@ export declare const Descope: React.ComponentType<(({
32
33
  theme?: import("@descope/web-component").ThemeOptions;
33
34
  locale?: string;
34
35
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
36
+ validateOnBlur?: boolean;
35
37
  debug?: boolean;
36
38
  telemetryKey?: string;
37
39
  redirectUrl?: string;
@@ -54,6 +56,7 @@ export declare const SignInFlow: React.ComponentType<({
54
56
  theme?: import("@descope/web-component").ThemeOptions;
55
57
  locale?: string;
56
58
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
59
+ validateOnBlur?: boolean;
57
60
  debug?: boolean;
58
61
  telemetryKey?: string;
59
62
  redirectUrl?: string;
@@ -72,6 +75,7 @@ export declare const SignInFlow: React.ComponentType<({
72
75
  theme?: import("@descope/web-component").ThemeOptions;
73
76
  locale?: string;
74
77
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
78
+ validateOnBlur?: boolean;
75
79
  debug?: boolean;
76
80
  telemetryKey?: string;
77
81
  redirectUrl?: string;
@@ -93,6 +97,7 @@ export declare const SignUpFlow: React.ComponentType<({
93
97
  theme?: import("@descope/web-component").ThemeOptions;
94
98
  locale?: string;
95
99
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
100
+ validateOnBlur?: boolean;
96
101
  debug?: boolean;
97
102
  telemetryKey?: string;
98
103
  redirectUrl?: string;
@@ -111,6 +116,7 @@ export declare const SignUpFlow: React.ComponentType<({
111
116
  theme?: import("@descope/web-component").ThemeOptions;
112
117
  locale?: string;
113
118
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
119
+ validateOnBlur?: boolean;
114
120
  debug?: boolean;
115
121
  telemetryKey?: string;
116
122
  redirectUrl?: string;
@@ -132,6 +138,7 @@ export declare const SignUpOrInFlow: React.ComponentType<({
132
138
  theme?: import("@descope/web-component").ThemeOptions;
133
139
  locale?: string;
134
140
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
141
+ validateOnBlur?: boolean;
135
142
  debug?: boolean;
136
143
  telemetryKey?: string;
137
144
  redirectUrl?: string;
@@ -150,6 +157,7 @@ export declare const SignUpOrInFlow: React.ComponentType<({
150
157
  theme?: import("@descope/web-component").ThemeOptions;
151
158
  locale?: string;
152
159
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
160
+ validateOnBlur?: boolean;
153
161
  debug?: boolean;
154
162
  telemetryKey?: string;
155
163
  redirectUrl?: string;
@@ -13,6 +13,7 @@ export declare const Descope: React.ComponentType<(({
13
13
  theme?: import("@descope/web-component").ThemeOptions;
14
14
  locale?: string;
15
15
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
16
+ validateOnBlur?: boolean;
16
17
  debug?: boolean;
17
18
  telemetryKey?: string;
18
19
  redirectUrl?: string;
@@ -32,6 +33,7 @@ export declare const Descope: React.ComponentType<(({
32
33
  theme?: import("@descope/web-component").ThemeOptions;
33
34
  locale?: string;
34
35
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
36
+ validateOnBlur?: boolean;
35
37
  debug?: boolean;
36
38
  telemetryKey?: string;
37
39
  redirectUrl?: string;
@@ -54,6 +56,7 @@ export declare const SignInFlow: React.ComponentType<({
54
56
  theme?: import("@descope/web-component").ThemeOptions;
55
57
  locale?: string;
56
58
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
59
+ validateOnBlur?: boolean;
57
60
  debug?: boolean;
58
61
  telemetryKey?: string;
59
62
  redirectUrl?: string;
@@ -72,6 +75,7 @@ export declare const SignInFlow: React.ComponentType<({
72
75
  theme?: import("@descope/web-component").ThemeOptions;
73
76
  locale?: string;
74
77
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
78
+ validateOnBlur?: boolean;
75
79
  debug?: boolean;
76
80
  telemetryKey?: string;
77
81
  redirectUrl?: string;
@@ -93,6 +97,7 @@ export declare const SignUpFlow: React.ComponentType<({
93
97
  theme?: import("@descope/web-component").ThemeOptions;
94
98
  locale?: string;
95
99
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
100
+ validateOnBlur?: boolean;
96
101
  debug?: boolean;
97
102
  telemetryKey?: string;
98
103
  redirectUrl?: string;
@@ -111,6 +116,7 @@ export declare const SignUpFlow: React.ComponentType<({
111
116
  theme?: import("@descope/web-component").ThemeOptions;
112
117
  locale?: string;
113
118
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
119
+ validateOnBlur?: boolean;
114
120
  debug?: boolean;
115
121
  telemetryKey?: string;
116
122
  redirectUrl?: string;
@@ -132,6 +138,7 @@ export declare const SignUpOrInFlow: React.ComponentType<({
132
138
  theme?: import("@descope/web-component").ThemeOptions;
133
139
  locale?: string;
134
140
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
141
+ validateOnBlur?: boolean;
135
142
  debug?: boolean;
136
143
  telemetryKey?: string;
137
144
  redirectUrl?: string;
@@ -150,6 +157,7 @@ export declare const SignUpOrInFlow: React.ComponentType<({
150
157
  theme?: import("@descope/web-component").ThemeOptions;
151
158
  locale?: string;
152
159
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
160
+ validateOnBlur?: boolean;
153
161
  debug?: boolean;
154
162
  telemetryKey?: string;
155
163
  redirectUrl?: string;
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ declare const Descope: React__default.ComponentType<(({
19
19
  theme?: _descope_web_component.ThemeOptions;
20
20
  locale?: string;
21
21
  autoFocus?: _descope_web_component.AutoFocusOptions;
22
+ validateOnBlur?: boolean;
22
23
  debug?: boolean;
23
24
  telemetryKey?: string;
24
25
  redirectUrl?: string;
@@ -38,6 +39,7 @@ declare const Descope: React__default.ComponentType<(({
38
39
  theme?: _descope_web_component.ThemeOptions;
39
40
  locale?: string;
40
41
  autoFocus?: _descope_web_component.AutoFocusOptions;
42
+ validateOnBlur?: boolean;
41
43
  debug?: boolean;
42
44
  telemetryKey?: string;
43
45
  redirectUrl?: string;
@@ -60,6 +62,7 @@ declare const SignInFlow: React__default.ComponentType<({
60
62
  theme?: _descope_web_component.ThemeOptions;
61
63
  locale?: string;
62
64
  autoFocus?: _descope_web_component.AutoFocusOptions;
65
+ validateOnBlur?: boolean;
63
66
  debug?: boolean;
64
67
  telemetryKey?: string;
65
68
  redirectUrl?: string;
@@ -78,6 +81,7 @@ declare const SignInFlow: React__default.ComponentType<({
78
81
  theme?: _descope_web_component.ThemeOptions;
79
82
  locale?: string;
80
83
  autoFocus?: _descope_web_component.AutoFocusOptions;
84
+ validateOnBlur?: boolean;
81
85
  debug?: boolean;
82
86
  telemetryKey?: string;
83
87
  redirectUrl?: string;
@@ -99,6 +103,7 @@ declare const SignUpFlow: React__default.ComponentType<({
99
103
  theme?: _descope_web_component.ThemeOptions;
100
104
  locale?: string;
101
105
  autoFocus?: _descope_web_component.AutoFocusOptions;
106
+ validateOnBlur?: boolean;
102
107
  debug?: boolean;
103
108
  telemetryKey?: string;
104
109
  redirectUrl?: string;
@@ -117,6 +122,7 @@ declare const SignUpFlow: React__default.ComponentType<({
117
122
  theme?: _descope_web_component.ThemeOptions;
118
123
  locale?: string;
119
124
  autoFocus?: _descope_web_component.AutoFocusOptions;
125
+ validateOnBlur?: boolean;
120
126
  debug?: boolean;
121
127
  telemetryKey?: string;
122
128
  redirectUrl?: string;
@@ -138,6 +144,7 @@ declare const SignUpOrInFlow: React__default.ComponentType<({
138
144
  theme?: _descope_web_component.ThemeOptions;
139
145
  locale?: string;
140
146
  autoFocus?: _descope_web_component.AutoFocusOptions;
147
+ validateOnBlur?: boolean;
141
148
  debug?: boolean;
142
149
  telemetryKey?: string;
143
150
  redirectUrl?: string;
@@ -156,6 +163,7 @@ declare const SignUpOrInFlow: React__default.ComponentType<({
156
163
  theme?: _descope_web_component.ThemeOptions;
157
164
  locale?: string;
158
165
  autoFocus?: _descope_web_component.AutoFocusOptions;
166
+ validateOnBlur?: boolean;
159
167
  debug?: boolean;
160
168
  telemetryKey?: string;
161
169
  redirectUrl?: string;
@@ -1,7 +1,7 @@
1
1
  const DESCOPE_SESSION_HEADER = 'x-descope-session';
2
2
  const baseHeaders = {
3
3
  'x-descope-sdk-name': 'nextjs',
4
- 'x-descope-sdk-version': "0.0.9"
4
+ 'x-descope-sdk-version': "0.0.13"
5
5
  };
6
6
  const DEFAULT_PUBLIC_ROUTES = {
7
7
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../src/server/constants.ts"],"sourcesContent":["// Replaced in build time\ndeclare const BUILD_VERSION: string;\n\nexport const DESCOPE_SESSION_HEADER = 'x-descope-session';\n\nexport const baseHeaders = {\n\t'x-descope-sdk-name': 'nextjs',\n\t'x-descope-sdk-version': BUILD_VERSION\n};\n\nexport const DEFAULT_PUBLIC_ROUTES = {\n\tsignIn: process.env.SIGN_IN_ROUTE || '/sign-in',\n\tsignUp: process.env.SIGN_UP_ROUTE || '/sign-up'\n};\n"],"names":[],"mappings":"AAGO,MAAM,sBAAsB,GAAG,oBAAoB;AAE7C,MAAA,WAAW,GAAG;AAC1B,IAAA,oBAAoB,EAAE,QAAQ;AAC9B,IAAA,uBAAuB,EAAE,OAAa;EACrC;AAEW,MAAA,qBAAqB,GAAG;AACpC,IAAA,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,UAAU;AAC/C,IAAA,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,UAAU;;;;;"}
1
+ {"version":3,"file":"constants.js","sources":["../../src/server/constants.ts"],"sourcesContent":["// Replaced in build time\ndeclare const BUILD_VERSION: string;\n\nexport const DESCOPE_SESSION_HEADER = 'x-descope-session';\n\nexport const baseHeaders = {\n\t'x-descope-sdk-name': 'nextjs',\n\t'x-descope-sdk-version': BUILD_VERSION\n};\n\nexport const DEFAULT_PUBLIC_ROUTES = {\n\tsignIn: process.env.SIGN_IN_ROUTE || '/sign-in',\n\tsignUp: process.env.SIGN_UP_ROUTE || '/sign-up'\n};\n"],"names":[],"mappings":"AAGO,MAAM,sBAAsB,GAAG,oBAAoB;AAE7C,MAAA,WAAW,GAAG;AAC1B,IAAA,oBAAoB,EAAE,QAAQ;AAC9B,IAAA,uBAAuB,EAAE,QAAa;EACrC;AAEW,MAAA,qBAAqB,GAAG;AACpC,IAAA,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,UAAU;AAC/C,IAAA,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,UAAU;;;;;"}
@@ -13,6 +13,7 @@ export declare const Descope: React.ComponentType<(({
13
13
  theme?: import("@descope/web-component").ThemeOptions;
14
14
  locale?: string;
15
15
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
16
+ validateOnBlur?: boolean;
16
17
  debug?: boolean;
17
18
  telemetryKey?: string;
18
19
  redirectUrl?: string;
@@ -32,6 +33,7 @@ export declare const Descope: React.ComponentType<(({
32
33
  theme?: import("@descope/web-component").ThemeOptions;
33
34
  locale?: string;
34
35
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
36
+ validateOnBlur?: boolean;
35
37
  debug?: boolean;
36
38
  telemetryKey?: string;
37
39
  redirectUrl?: string;
@@ -54,6 +56,7 @@ export declare const SignInFlow: React.ComponentType<({
54
56
  theme?: import("@descope/web-component").ThemeOptions;
55
57
  locale?: string;
56
58
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
59
+ validateOnBlur?: boolean;
57
60
  debug?: boolean;
58
61
  telemetryKey?: string;
59
62
  redirectUrl?: string;
@@ -72,6 +75,7 @@ export declare const SignInFlow: React.ComponentType<({
72
75
  theme?: import("@descope/web-component").ThemeOptions;
73
76
  locale?: string;
74
77
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
78
+ validateOnBlur?: boolean;
75
79
  debug?: boolean;
76
80
  telemetryKey?: string;
77
81
  redirectUrl?: string;
@@ -93,6 +97,7 @@ export declare const SignUpFlow: React.ComponentType<({
93
97
  theme?: import("@descope/web-component").ThemeOptions;
94
98
  locale?: string;
95
99
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
100
+ validateOnBlur?: boolean;
96
101
  debug?: boolean;
97
102
  telemetryKey?: string;
98
103
  redirectUrl?: string;
@@ -111,6 +116,7 @@ export declare const SignUpFlow: React.ComponentType<({
111
116
  theme?: import("@descope/web-component").ThemeOptions;
112
117
  locale?: string;
113
118
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
119
+ validateOnBlur?: boolean;
114
120
  debug?: boolean;
115
121
  telemetryKey?: string;
116
122
  redirectUrl?: string;
@@ -132,6 +138,7 @@ export declare const SignUpOrInFlow: React.ComponentType<({
132
138
  theme?: import("@descope/web-component").ThemeOptions;
133
139
  locale?: string;
134
140
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
141
+ validateOnBlur?: boolean;
135
142
  debug?: boolean;
136
143
  telemetryKey?: string;
137
144
  redirectUrl?: string;
@@ -150,6 +157,7 @@ export declare const SignUpOrInFlow: React.ComponentType<({
150
157
  theme?: import("@descope/web-component").ThemeOptions;
151
158
  locale?: string;
152
159
  autoFocus?: import("@descope/web-component").AutoFocusOptions;
160
+ validateOnBlur?: boolean;
153
161
  debug?: boolean;
154
162
  telemetryKey?: string;
155
163
  redirectUrl?: string;
@@ -1,7 +1,7 @@
1
1
  // eslint-disable-next-line import/prefer-default-export
2
2
  const baseHeaders = {
3
3
  'x-descope-sdk-name': 'nextjs',
4
- 'x-descope-sdk-version': "0.0.9"
4
+ 'x-descope-sdk-version': "0.0.13"
5
5
  };
6
6
 
7
7
  export { baseHeaders };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../src/shared/constants.ts"],"sourcesContent":["// Replaced in build time\ndeclare const BUILD_VERSION: string;\n\n// eslint-disable-next-line import/prefer-default-export\nexport const baseHeaders = {\n\t'x-descope-sdk-name': 'nextjs',\n\t'x-descope-sdk-version': BUILD_VERSION\n};\n"],"names":[],"mappings":"AAGA;AACa,MAAA,WAAW,GAAG;AAC1B,IAAA,oBAAoB,EAAE,QAAQ;AAC9B,IAAA,uBAAuB,EAAE,OAAa;;;;;"}
1
+ {"version":3,"file":"constants.js","sources":["../../src/shared/constants.ts"],"sourcesContent":["// Replaced in build time\ndeclare const BUILD_VERSION: string;\n\n// eslint-disable-next-line import/prefer-default-export\nexport const baseHeaders = {\n\t'x-descope-sdk-name': 'nextjs',\n\t'x-descope-sdk-version': BUILD_VERSION\n};\n"],"names":[],"mappings":"AAGA;AACa,MAAA,WAAW,GAAG;AAC1B,IAAA,oBAAoB,EAAE,QAAQ;AAC9B,IAAA,uBAAuB,EAAE,QAAa;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/nextjs-sdk",
3
- "version": "0.0.9",
3
+ "version": "0.0.13",
4
4
  "description": "Descope NextJS SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/nextjs-sdk",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@descope/node-sdk": "1.6.8",
77
- "@descope/react-sdk": "2.0.25"
77
+ "@descope/react-sdk": "2.0.34"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@babel/core": "7.23.9",
@@ -121,7 +121,7 @@
121
121
  "jest-fetch-mock": "^3.0.3",
122
122
  "lint-staged": "^13.3.0",
123
123
  "msw": "^2.1.7",
124
- "next": "^13.5.6",
124
+ "next": "^14.0.0",
125
125
  "rollup": "^2.79.1",
126
126
  "rollup-plugin-auto-external": "^2.0.0",
127
127
  "rollup-plugin-browsersync": "^1.0.0",