tinacms-authjs 2.0.6 → 3.0.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.
- package/dist/tinacms.js +16 -1
- package/dist/tinacms.mjs +16 -1
- package/package.json +10 -10
package/dist/tinacms.js
CHANGED
|
@@ -2252,6 +2252,7 @@
|
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
2254
2254
|
}
|
|
2255
|
+
var didWarnAboutKeySpread = {};
|
|
2255
2256
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
2256
2257
|
{
|
|
2257
2258
|
var validType = isValidElementType(type);
|
|
@@ -2302,6 +2303,20 @@
|
|
|
2302
2303
|
}
|
|
2303
2304
|
}
|
|
2304
2305
|
}
|
|
2306
|
+
{
|
|
2307
|
+
if (hasOwnProperty.call(props, "key")) {
|
|
2308
|
+
var componentName = getComponentNameFromType(type);
|
|
2309
|
+
var keys = Object.keys(props).filter(function(k) {
|
|
2310
|
+
return k !== "key";
|
|
2311
|
+
});
|
|
2312
|
+
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2313
|
+
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
2314
|
+
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
2315
|
+
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
2316
|
+
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2305
2320
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
2306
2321
|
validateFragmentProps(element);
|
|
2307
2322
|
} else {
|
|
@@ -2638,7 +2653,7 @@
|
|
|
2638
2653
|
isEmail = providers[provider].type === "email";
|
|
2639
2654
|
isSupportingReturn = isCredentials || isEmail;
|
|
2640
2655
|
signInUrl = "".concat(baseUrl, "/").concat(isCredentials ? "callback" : "signin", "/").concat(provider);
|
|
2641
|
-
_signInUrl = "".concat(signInUrl
|
|
2656
|
+
_signInUrl = "".concat(signInUrl).concat(authorizationParams ? "?".concat(new URLSearchParams(authorizationParams)) : "");
|
|
2642
2657
|
_context6.t0 = fetch;
|
|
2643
2658
|
_context6.t1 = _signInUrl;
|
|
2644
2659
|
_context6.t2 = {
|
package/dist/tinacms.mjs
CHANGED
|
@@ -2250,6 +2250,7 @@ function requireReactJsxRuntime_development() {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
2253
|
+
var didWarnAboutKeySpread = {};
|
|
2253
2254
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
2254
2255
|
{
|
|
2255
2256
|
var validType = isValidElementType(type);
|
|
@@ -2300,6 +2301,20 @@ function requireReactJsxRuntime_development() {
|
|
|
2300
2301
|
}
|
|
2301
2302
|
}
|
|
2302
2303
|
}
|
|
2304
|
+
{
|
|
2305
|
+
if (hasOwnProperty.call(props, "key")) {
|
|
2306
|
+
var componentName = getComponentNameFromType(type);
|
|
2307
|
+
var keys = Object.keys(props).filter(function(k) {
|
|
2308
|
+
return k !== "key";
|
|
2309
|
+
});
|
|
2310
|
+
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2311
|
+
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
2312
|
+
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
2313
|
+
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
2314
|
+
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2303
2318
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
2304
2319
|
validateFragmentProps(element);
|
|
2305
2320
|
} else {
|
|
@@ -2636,7 +2651,7 @@ function requireTypes() {
|
|
|
2636
2651
|
isEmail = providers[provider].type === "email";
|
|
2637
2652
|
isSupportingReturn = isCredentials || isEmail;
|
|
2638
2653
|
signInUrl = "".concat(baseUrl, "/").concat(isCredentials ? "callback" : "signin", "/").concat(provider);
|
|
2639
|
-
_signInUrl = "".concat(signInUrl
|
|
2654
|
+
_signInUrl = "".concat(signInUrl).concat(authorizationParams ? "?".concat(new URLSearchParams(authorizationParams)) : "");
|
|
2640
2655
|
_context6.t0 = fetch;
|
|
2641
2656
|
_context6.t1 = _signInUrl;
|
|
2642
2657
|
_context6.t2 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms-authjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tinacms/schema-tools": "1.4.
|
|
21
|
+
"@tinacms/schema-tools": "1.4.19"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"next": "
|
|
25
|
-
"next-auth": "4.
|
|
26
|
-
"react": "^18",
|
|
27
|
-
"react-dom": "^18",
|
|
24
|
+
"next": "14.2.5",
|
|
25
|
+
"next-auth": "4.24.7",
|
|
26
|
+
"react": "^18.3.1",
|
|
27
|
+
"react-dom": "^18.3.1",
|
|
28
28
|
"typescript": "4.6.4",
|
|
29
|
-
"@tinacms/datalayer": "1.2.
|
|
30
|
-
"
|
|
31
|
-
"tinacms": "1.
|
|
29
|
+
"@tinacms/datalayer": "1.2.38",
|
|
30
|
+
"tinacms": "2.0.0",
|
|
31
|
+
"@tinacms/scripts": "1.1.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"next": "^12.2.5 || ^13 || ^14",
|
|
35
35
|
"next-auth": "^4.22.1",
|
|
36
36
|
"react": "^17.0.2 || ^18",
|
|
37
37
|
"react-dom": "^17.0.2 || ^18",
|
|
38
|
-
"tinacms": "
|
|
38
|
+
"tinacms": "2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"registry": "https://registry.npmjs.org"
|