@uniformdev/canvas-next 17.7.0 → 17.7.1-alpha.140
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.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { U as UniformCompositionNextPage, b as UniformGetServerSideProps, a as UniformGetStaticProps } from './models-
|
|
1
|
+
export { U as UniformCompositionNextPage, b as UniformGetServerSideProps, a as UniformGetStaticProps } from './models-ed92e2bd.js';
|
|
2
2
|
import { NextApiHandler } from 'next';
|
|
3
3
|
import { RootComponentInstance } from '@uniformdev/canvas';
|
|
4
4
|
import '@uniformdev/canvas-react';
|
|
5
5
|
import 'querystring';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
type ResolveFullPath = (options: {
|
|
8
8
|
id?: string;
|
|
9
9
|
slug?: string;
|
|
10
10
|
path?: string;
|
|
11
11
|
}) => string | undefined;
|
|
12
|
-
|
|
12
|
+
type CreatePreviewHandlerGetOptions = {
|
|
13
13
|
secret?: () => string;
|
|
14
14
|
/**
|
|
15
15
|
* Should return the full path to redirect to. Will respond with `400` error if `undefined` is returned.
|
|
@@ -17,17 +17,17 @@ declare type CreatePreviewHandlerGetOptions = {
|
|
|
17
17
|
*/
|
|
18
18
|
resolveFullPath?: ResolveFullPath;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
type CreatePreviewHandlerGet = (options?: CreatePreviewHandlerGetOptions) => NextApiHandler;
|
|
21
21
|
declare const createPreviewHandlerGet: CreatePreviewHandlerGet;
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
type CreatePreviewHandlerPostOptions = {
|
|
24
24
|
secret?: () => string;
|
|
25
25
|
enhance?: (composition: RootComponentInstance) => Promise<void>;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
type CreatePreviewHandlerPost = (options?: CreatePreviewHandlerPostOptions) => NextApiHandler;
|
|
28
28
|
declare const createPreviewHandlerPost: CreatePreviewHandlerPost;
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
type CreatePreviewHandler = (options?: CreatePreviewHandlerGetOptions & CreatePreviewHandlerPostOptions) => NextApiHandler;
|
|
31
31
|
declare const createPreviewHandler: CreatePreviewHandler;
|
|
32
32
|
|
|
33
33
|
export { CreatePreviewHandler, CreatePreviewHandlerGet, CreatePreviewHandlerGetOptions, CreatePreviewHandlerPost, CreatePreviewHandlerPostOptions, ResolveFullPath, createPreviewHandler, createPreviewHandlerGet, createPreviewHandlerPost };
|
|
@@ -3,13 +3,13 @@ import { CompositionProps } from '@uniformdev/canvas-react';
|
|
|
3
3
|
import { NextPage, PreviewData, GetStaticPropsContext, GetStaticPropsResult, GetServerSidePropsContext, GetServerSidePropsResult } from 'next';
|
|
4
4
|
import { ParsedUrlQuery } from 'querystring';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type UniformCompositionNextPage<TProps = unknown> = NextPage<TProps & CompositionProps>;
|
|
7
|
+
type UniformGetStaticProps<P extends {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
} = {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}, Q extends ParsedUrlQuery = ParsedUrlQuery, D extends PreviewData = PreviewData> = (context: GetStaticPropsContext<Q, D>, composition: RootComponentInstance | undefined) => Promise<GetStaticPropsResult<P>> | GetStaticPropsResult<P>;
|
|
12
|
-
|
|
12
|
+
type UniformGetServerSideProps<P extends {
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
} = {
|
|
15
15
|
[key: string]: any;
|
package/dist/slug/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { GetServerSideProps, GetStaticProps } from 'next';
|
|
|
3
3
|
import * as querystring from 'querystring';
|
|
4
4
|
import { ParsedUrlQuery } from 'querystring';
|
|
5
5
|
import { CanvasClient } from '@uniformdev/canvas';
|
|
6
|
-
import { b as UniformGetServerSideProps, a as UniformGetStaticProps } from '../models-
|
|
6
|
+
import { b as UniformGetServerSideProps, a as UniformGetStaticProps } from '../models-ed92e2bd.js';
|
|
7
7
|
import '@uniformdev/canvas-react';
|
|
8
8
|
|
|
9
9
|
declare const withUniformGetServerSideProps: <TProps extends {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "17.7.
|
|
3
|
+
"version": "17.7.1-alpha.140+80ab6baf9",
|
|
4
4
|
"description": "Next.js SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@uniformdev/canvas": "^17.7.
|
|
46
|
-
"@uniformdev/canvas-react": "^17.7.
|
|
45
|
+
"@uniformdev/canvas": "^17.7.1-alpha.140+80ab6baf9",
|
|
46
|
+
"@uniformdev/canvas-react": "^17.7.1-alpha.140+80ab6baf9"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"next": ">= 12.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "18.0.26",
|
|
55
|
-
"next": "
|
|
55
|
+
"next": "13.1.1",
|
|
56
56
|
"react": "18.2.0",
|
|
57
57
|
"react-dom": "18.2.0"
|
|
58
58
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "80ab6baf9edea6b520738bd3dff5c6afc882bf77"
|
|
66
66
|
}
|