@uniformdev/canvas-next 19.15.0 → 19.19.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.
|
@@ -25,6 +25,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
|
|
|
25
25
|
projectMapId?: string | undefined;
|
|
26
26
|
/** Way to override getCompositionByNodePath request params */
|
|
27
27
|
requestOptions?: Omit<Partial<{
|
|
28
|
+
versionId?: string | undefined;
|
|
28
29
|
skipEnhance?: boolean | undefined;
|
|
29
30
|
skipPatternResolution?: boolean | undefined;
|
|
30
31
|
skipOverridesResolution?: boolean | undefined;
|
|
@@ -56,6 +57,7 @@ declare const withUniformGetStaticProps: <TProps extends {
|
|
|
56
57
|
client?: CanvasClient | undefined;
|
|
57
58
|
/** Way to override getCompositionByNodePath request params */
|
|
58
59
|
requestOptions?: Omit<Partial<{
|
|
60
|
+
versionId?: string | undefined;
|
|
59
61
|
skipEnhance?: boolean | undefined;
|
|
60
62
|
skipPatternResolution?: boolean | undefined;
|
|
61
63
|
skipOverridesResolution?: boolean | undefined;
|
package/dist/route/index.js
CHANGED
|
@@ -465,6 +465,11 @@ function createRouteFetcher(options) {
|
|
|
465
465
|
// src/route/withUniformGetServerSideProps.ts
|
|
466
466
|
var unstable_withUniformGetServerSideProps = (options) => {
|
|
467
467
|
const defaultHandleRedirect = (requestUrl, matched) => {
|
|
468
|
+
if (matched.redirect.targetStatusCode > 400) {
|
|
469
|
+
return {
|
|
470
|
+
notFound: true
|
|
471
|
+
};
|
|
472
|
+
}
|
|
468
473
|
return {
|
|
469
474
|
redirect: {
|
|
470
475
|
destination: import_redirect.RedirectClient.getTargetVariableExpandedUrl(requestUrl, matched.redirect),
|
package/dist/route/index.mjs
CHANGED
|
@@ -191,6 +191,11 @@ function createRouteFetcher(options) {
|
|
|
191
191
|
// src/route/withUniformGetServerSideProps.ts
|
|
192
192
|
var unstable_withUniformGetServerSideProps = (options) => {
|
|
193
193
|
const defaultHandleRedirect = (requestUrl, matched) => {
|
|
194
|
+
if (matched.redirect.targetStatusCode > 400) {
|
|
195
|
+
return {
|
|
196
|
+
notFound: true
|
|
197
|
+
};
|
|
198
|
+
}
|
|
194
199
|
return {
|
|
195
200
|
redirect: {
|
|
196
201
|
destination: RedirectClient.getTargetVariableExpandedUrl(requestUrl, matched.redirect),
|
package/dist/slug/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
|
|
|
21
21
|
/** If you need to override the default client, you can pass it here */
|
|
22
22
|
client?: CanvasClient | undefined;
|
|
23
23
|
requestOptions?: Omit<Partial<{
|
|
24
|
+
versionId?: string | undefined;
|
|
24
25
|
skipEnhance?: boolean | undefined;
|
|
25
26
|
skipPatternResolution?: boolean | undefined;
|
|
26
27
|
skipOverridesResolution?: boolean | undefined;
|
|
@@ -67,6 +68,7 @@ declare const withUniformGetStaticProps: <TProps extends {
|
|
|
67
68
|
client?: CanvasClient | undefined;
|
|
68
69
|
/** Way to override getCompositionBySlug request params */
|
|
69
70
|
requestOptions?: Omit<Partial<{
|
|
71
|
+
versionId?: string | undefined;
|
|
70
72
|
skipEnhance?: boolean | undefined;
|
|
71
73
|
skipPatternResolution?: boolean | undefined;
|
|
72
74
|
skipOverridesResolution?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.19.0",
|
|
4
4
|
"description": "Next.js SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"document": "api-extractor run --local"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@uniformdev/canvas": "19.
|
|
67
|
-
"@uniformdev/canvas-react": "19.
|
|
68
|
-
"@uniformdev/project-map": "19.
|
|
69
|
-
"@uniformdev/redirect": "19.
|
|
70
|
-
"@uniformdev/richtext": "19.
|
|
66
|
+
"@uniformdev/canvas": "19.19.0",
|
|
67
|
+
"@uniformdev/canvas-react": "19.19.0",
|
|
68
|
+
"@uniformdev/project-map": "19.19.0",
|
|
69
|
+
"@uniformdev/redirect": "19.19.0",
|
|
70
|
+
"@uniformdev/richtext": "19.19.0",
|
|
71
71
|
"colorette": "2.0.20"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "631d1e21b1303220d80bea12611ea6c98d5fe354"
|
|
91
91
|
}
|