@uniformdev/canvas-next-rsc-shared 19.126.0 → 19.128.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/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +5 -9
- package/dist/index.js +5 -9
- package/dist/index.mjs +5 -9
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -89,7 +89,6 @@ type PageParameters = {
|
|
|
89
89
|
* The params object from Next.js router. Used to resolve a composition.
|
|
90
90
|
*/
|
|
91
91
|
params: {
|
|
92
|
-
slug?: string | string[];
|
|
93
92
|
path?: string | string[];
|
|
94
93
|
};
|
|
95
94
|
/**
|
|
@@ -182,7 +181,7 @@ declare const runTest: ({ test, component, contextInstance, }: TestProps & {
|
|
|
182
181
|
};
|
|
183
182
|
|
|
184
183
|
type ResolvePathResult = {
|
|
185
|
-
type: '
|
|
184
|
+
type: 'path';
|
|
186
185
|
value: string;
|
|
187
186
|
};
|
|
188
187
|
declare const resolvePath: ({ params }: Pick<PageParameters, 'params'>) => ResolvePathResult;
|
package/dist/index.d.ts
CHANGED
|
@@ -89,7 +89,6 @@ type PageParameters = {
|
|
|
89
89
|
* The params object from Next.js router. Used to resolve a composition.
|
|
90
90
|
*/
|
|
91
91
|
params: {
|
|
92
|
-
slug?: string | string[];
|
|
93
92
|
path?: string | string[];
|
|
94
93
|
};
|
|
95
94
|
/**
|
|
@@ -182,7 +181,7 @@ declare const runTest: ({ test, component, contextInstance, }: TestProps & {
|
|
|
182
181
|
};
|
|
183
182
|
|
|
184
183
|
type ResolvePathResult = {
|
|
185
|
-
type: '
|
|
184
|
+
type: 'path';
|
|
186
185
|
value: string;
|
|
187
186
|
};
|
|
188
187
|
declare const resolvePath: ({ params }: Pick<PageParameters, 'params'>) => ResolvePathResult;
|
package/dist/index.esm.js
CHANGED
|
@@ -24,15 +24,11 @@ import { Context, CookieTransitionDataStore } from "@uniformdev/context";
|
|
|
24
24
|
|
|
25
25
|
// src/utils/path.ts
|
|
26
26
|
var resolvePath = ({ params }) => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
} else {
|
|
34
|
-
throw new Error("Slug resolution is currently not implemented.");
|
|
35
|
-
}
|
|
27
|
+
const value = processPath(params.path || "");
|
|
28
|
+
return {
|
|
29
|
+
type: "path",
|
|
30
|
+
value
|
|
31
|
+
};
|
|
36
32
|
};
|
|
37
33
|
var processPath = (value) => {
|
|
38
34
|
const definedSlug = !Array.isArray(value) ? resolveSlugFromString(value) : resolveSlugFromArray(value);
|
package/dist/index.js
CHANGED
|
@@ -47,15 +47,11 @@ var import_context = require("@uniformdev/context");
|
|
|
47
47
|
|
|
48
48
|
// src/utils/path.ts
|
|
49
49
|
var resolvePath = ({ params }) => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
56
|
-
} else {
|
|
57
|
-
throw new Error("Slug resolution is currently not implemented.");
|
|
58
|
-
}
|
|
50
|
+
const value = processPath(params.path || "");
|
|
51
|
+
return {
|
|
52
|
+
type: "path",
|
|
53
|
+
value
|
|
54
|
+
};
|
|
59
55
|
};
|
|
60
56
|
var processPath = (value) => {
|
|
61
57
|
const definedSlug = !Array.isArray(value) ? resolveSlugFromString(value) : resolveSlugFromArray(value);
|
package/dist/index.mjs
CHANGED
|
@@ -24,15 +24,11 @@ import { Context, CookieTransitionDataStore } from "@uniformdev/context";
|
|
|
24
24
|
|
|
25
25
|
// src/utils/path.ts
|
|
26
26
|
var resolvePath = ({ params }) => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
} else {
|
|
34
|
-
throw new Error("Slug resolution is currently not implemented.");
|
|
35
|
-
}
|
|
27
|
+
const value = processPath(params.path || "");
|
|
28
|
+
return {
|
|
29
|
+
type: "path",
|
|
30
|
+
value
|
|
31
|
+
};
|
|
36
32
|
};
|
|
37
33
|
var processPath = (value) => {
|
|
38
34
|
const definedSlug = !Array.isArray(value) ? resolveSlugFromString(value) : resolveSlugFromArray(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-shared",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.128.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"react-dom": "18.2.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "19.
|
|
36
|
-
"@uniformdev/context": "19.
|
|
35
|
+
"@uniformdev/canvas": "19.128.0",
|
|
36
|
+
"@uniformdev/context": "19.128.0"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=16.14.0"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2bd4fae189da0b4436c1f07abf9fd3ea947303f7"
|
|
50
50
|
}
|