@uniformdev/canvas-next 20.35.1-alpha.87 → 20.36.1-alpha.1
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/route/index.d.mts +4 -6
- package/dist/route/index.d.ts +4 -6
- package/dist/route/index.js +2 -6
- package/dist/route/index.mjs +2 -6
- package/package.json +7 -8
package/dist/route/index.d.mts
CHANGED
|
@@ -3,10 +3,8 @@ import { GetServerSidePropsContext, GetServerSidePropsResult, GetServerSideProps
|
|
|
3
3
|
import { a as UniformPreviewData } from '../models-CupnCqnn.mjs';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
|
-
import * as _uniformdev_context__ from '@uniformdev/context/*';
|
|
7
6
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
8
7
|
import { RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, RouteClient, RouteGetParameters, RootComponentInstance } from '@uniformdev/canvas';
|
|
9
|
-
import { CompositionMetadata } from '@uniformdev/context';
|
|
10
8
|
import { ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapClient } from '@uniformdev/project-map';
|
|
11
9
|
import { RedirectClient } from '@uniformdev/redirect';
|
|
12
10
|
import { GetStaticPropsContext as GetStaticPropsContext$1, GetServerSidePropsContext as GetServerSidePropsContext$1 } from 'next/types';
|
|
@@ -48,7 +46,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
|
|
|
48
46
|
[key: string]: any;
|
|
49
47
|
} = {
|
|
50
48
|
data: RootComponentInstance;
|
|
51
|
-
}
|
|
49
|
+
}>(options?: RouteHandlerOptions<GetServerSidePropsContext<ParsedUrlQuery, UniformPreviewData>, GetServerSidePropsResult<never>, GetServerSidePropsResult<TProps>>) => GetServerSideProps<TProps, ParsedUrlQuery, UniformPreviewData>;
|
|
52
50
|
|
|
53
51
|
declare const withUniformGetStaticPaths: (options?: {
|
|
54
52
|
projectMapId?: string;
|
|
@@ -80,7 +78,7 @@ declare const withUniformGetStaticProps: <TProps extends {
|
|
|
80
78
|
[key: string]: any;
|
|
81
79
|
} = {
|
|
82
80
|
data: RootComponentInstance;
|
|
83
|
-
}
|
|
81
|
+
}>(options?: RouteHandlerOptions<GetStaticPropsContext<ParsedUrlQuery, UniformPreviewData>, GetStaticPropsResult<never>, GetStaticPropsResult<TProps>> & {
|
|
84
82
|
/** Name of dynamic parameter coming from getStaticPath, usually specified in page file name (e.g. [...slug].jsx will have param = 'slug' */
|
|
85
83
|
param?: string;
|
|
86
84
|
}) => GetStaticProps<TProps, ParsedUrlQuery, UniformPreviewData>;
|
|
@@ -103,7 +101,7 @@ declare const prependLocale: (path: string, { locale, defaultLocale, locales }:
|
|
|
103
101
|
*/
|
|
104
102
|
declare const getServerSideProps: next.GetServerSideProps<{
|
|
105
103
|
data: _uniformdev_canvas.RootComponentInstance;
|
|
106
|
-
}
|
|
104
|
+
}, querystring.ParsedUrlQuery, UniformPreviewData>;
|
|
107
105
|
/**
|
|
108
106
|
* Default implementation of getStaticProps with routes
|
|
109
107
|
* To configure custom behavior, use:
|
|
@@ -111,7 +109,7 @@ declare const getServerSideProps: next.GetServerSideProps<{
|
|
|
111
109
|
*/
|
|
112
110
|
declare const getStaticProps: next.GetStaticProps<{
|
|
113
111
|
data: _uniformdev_canvas.RootComponentInstance;
|
|
114
|
-
}
|
|
112
|
+
}, querystring.ParsedUrlQuery, UniformPreviewData>;
|
|
115
113
|
/**
|
|
116
114
|
* Default implementation of getStaticPaths with routes
|
|
117
115
|
* To configure custom behavior, use:
|
package/dist/route/index.d.ts
CHANGED
|
@@ -3,10 +3,8 @@ import { GetServerSidePropsContext, GetServerSidePropsResult, GetServerSideProps
|
|
|
3
3
|
import { a as UniformPreviewData } from '../models-CupnCqnn.js';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
|
-
import * as _uniformdev_context__ from '@uniformdev/context/*';
|
|
7
6
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
8
7
|
import { RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, RouteClient, RouteGetParameters, RootComponentInstance } from '@uniformdev/canvas';
|
|
9
|
-
import { CompositionMetadata } from '@uniformdev/context';
|
|
10
8
|
import { ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapClient } from '@uniformdev/project-map';
|
|
11
9
|
import { RedirectClient } from '@uniformdev/redirect';
|
|
12
10
|
import { GetStaticPropsContext as GetStaticPropsContext$1, GetServerSidePropsContext as GetServerSidePropsContext$1 } from 'next/types';
|
|
@@ -48,7 +46,7 @@ declare const withUniformGetServerSideProps: <TProps extends {
|
|
|
48
46
|
[key: string]: any;
|
|
49
47
|
} = {
|
|
50
48
|
data: RootComponentInstance;
|
|
51
|
-
}
|
|
49
|
+
}>(options?: RouteHandlerOptions<GetServerSidePropsContext<ParsedUrlQuery, UniformPreviewData>, GetServerSidePropsResult<never>, GetServerSidePropsResult<TProps>>) => GetServerSideProps<TProps, ParsedUrlQuery, UniformPreviewData>;
|
|
52
50
|
|
|
53
51
|
declare const withUniformGetStaticPaths: (options?: {
|
|
54
52
|
projectMapId?: string;
|
|
@@ -80,7 +78,7 @@ declare const withUniformGetStaticProps: <TProps extends {
|
|
|
80
78
|
[key: string]: any;
|
|
81
79
|
} = {
|
|
82
80
|
data: RootComponentInstance;
|
|
83
|
-
}
|
|
81
|
+
}>(options?: RouteHandlerOptions<GetStaticPropsContext<ParsedUrlQuery, UniformPreviewData>, GetStaticPropsResult<never>, GetStaticPropsResult<TProps>> & {
|
|
84
82
|
/** Name of dynamic parameter coming from getStaticPath, usually specified in page file name (e.g. [...slug].jsx will have param = 'slug' */
|
|
85
83
|
param?: string;
|
|
86
84
|
}) => GetStaticProps<TProps, ParsedUrlQuery, UniformPreviewData>;
|
|
@@ -103,7 +101,7 @@ declare const prependLocale: (path: string, { locale, defaultLocale, locales }:
|
|
|
103
101
|
*/
|
|
104
102
|
declare const getServerSideProps: next.GetServerSideProps<{
|
|
105
103
|
data: _uniformdev_canvas.RootComponentInstance;
|
|
106
|
-
}
|
|
104
|
+
}, querystring.ParsedUrlQuery, UniformPreviewData>;
|
|
107
105
|
/**
|
|
108
106
|
* Default implementation of getStaticProps with routes
|
|
109
107
|
* To configure custom behavior, use:
|
|
@@ -111,7 +109,7 @@ declare const getServerSideProps: next.GetServerSideProps<{
|
|
|
111
109
|
*/
|
|
112
110
|
declare const getStaticProps: next.GetStaticProps<{
|
|
113
111
|
data: _uniformdev_canvas.RootComponentInstance;
|
|
114
|
-
}
|
|
112
|
+
}, querystring.ParsedUrlQuery, UniformPreviewData>;
|
|
115
113
|
/**
|
|
116
114
|
* Default implementation of getStaticPaths with routes
|
|
117
115
|
* To configure custom behavior, use:
|
package/dist/route/index.js
CHANGED
|
@@ -346,9 +346,7 @@ var withUniformGetServerSideProps = (options) => {
|
|
|
346
346
|
const defaultHandleComposition = async (matched) => {
|
|
347
347
|
return {
|
|
348
348
|
props: {
|
|
349
|
-
data: matched.compositionApiResponse.composition
|
|
350
|
-
matchedRoute: matched.matchedRoute,
|
|
351
|
-
dynamicInputs: matched.dynamicInputs
|
|
349
|
+
data: matched.compositionApiResponse.composition
|
|
352
350
|
}
|
|
353
351
|
};
|
|
354
352
|
};
|
|
@@ -455,9 +453,7 @@ var withUniformGetStaticProps = (options) => {
|
|
|
455
453
|
const defaultHandleComposition = async (matched) => {
|
|
456
454
|
return {
|
|
457
455
|
props: {
|
|
458
|
-
data: matched.compositionApiResponse.composition
|
|
459
|
-
matchedRoute: matched.matchedRoute,
|
|
460
|
-
dynamicInputs: matched.dynamicInputs
|
|
456
|
+
data: matched.compositionApiResponse.composition
|
|
461
457
|
}
|
|
462
458
|
};
|
|
463
459
|
};
|
package/dist/route/index.mjs
CHANGED
|
@@ -224,9 +224,7 @@ var withUniformGetServerSideProps = (options) => {
|
|
|
224
224
|
const defaultHandleComposition = async (matched) => {
|
|
225
225
|
return {
|
|
226
226
|
props: {
|
|
227
|
-
data: matched.compositionApiResponse.composition
|
|
228
|
-
matchedRoute: matched.matchedRoute,
|
|
229
|
-
dynamicInputs: matched.dynamicInputs
|
|
227
|
+
data: matched.compositionApiResponse.composition
|
|
230
228
|
}
|
|
231
229
|
};
|
|
232
230
|
};
|
|
@@ -323,9 +321,7 @@ var withUniformGetStaticProps = (options) => {
|
|
|
323
321
|
const defaultHandleComposition = async (matched) => {
|
|
324
322
|
return {
|
|
325
323
|
props: {
|
|
326
|
-
data: matched.compositionApiResponse.composition
|
|
327
|
-
matchedRoute: matched.matchedRoute,
|
|
328
|
-
dynamicInputs: matched.dynamicInputs
|
|
324
|
+
data: matched.compositionApiResponse.composition
|
|
329
325
|
}
|
|
330
326
|
};
|
|
331
327
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.36.1-alpha.1+38de886ef3",
|
|
4
4
|
"description": "Next.js SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -67,12 +67,11 @@
|
|
|
67
67
|
"document:prebuild": "api-extractor run --local"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@uniformdev/canvas": "20.
|
|
71
|
-
"@uniformdev/canvas-react": "20.
|
|
72
|
-
"@uniformdev/
|
|
73
|
-
"@uniformdev/
|
|
74
|
-
"@uniformdev/
|
|
75
|
-
"@uniformdev/richtext": "20.35.1-alpha.87+2cf616f622",
|
|
70
|
+
"@uniformdev/canvas": "20.36.1-alpha.1+38de886ef3",
|
|
71
|
+
"@uniformdev/canvas-react": "20.36.1-alpha.1+38de886ef3",
|
|
72
|
+
"@uniformdev/project-map": "20.36.1-alpha.1+38de886ef3",
|
|
73
|
+
"@uniformdev/redirect": "20.36.1-alpha.1+38de886ef3",
|
|
74
|
+
"@uniformdev/richtext": "20.36.1-alpha.1+38de886ef3",
|
|
76
75
|
"colorette": "2.0.20"
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
@@ -92,5 +91,5 @@
|
|
|
92
91
|
"publishConfig": {
|
|
93
92
|
"access": "public"
|
|
94
93
|
},
|
|
95
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "38de886ef32586054df84137f0abe58fc968f146"
|
|
96
95
|
}
|