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