@uniformdev/canvas-next 19.165.2-alpha.0 → 19.167.2-alpha.3
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/dist/{models-IAhm-va2.d.mts → models-CupnCqnn.d.mts} +6 -1
- package/dist/{models-IAhm-va2.d.ts → models-CupnCqnn.d.ts} +6 -1
- package/dist/project-map/index.d.mts +1 -1
- package/dist/project-map/index.d.ts +1 -1
- package/dist/route/index.d.mts +1 -1
- package/dist/route/index.d.ts +1 -1
- package/dist/route/index.js +1 -2
- package/dist/route/index.mjs +1 -2
- package/dist/slug/index.d.mts +1 -1
- package/dist/slug/index.d.ts +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RichTextRendererComponent, RenderRichTextComponentResolver, UniformRichText as UniformRichText$1, UniformRichTextNode as UniformRichTextNode$1 } from '@uniformdev/canvas-react';
|
|
2
2
|
import { ParsedUrlQuery } from 'querystring';
|
|
3
|
-
export { U as UniformCompositionNextPage, c as UniformGetServerSideProps, b as UniformGetStaticProps, a as UniformPreviewData } from './models-
|
|
3
|
+
export { U as UniformCompositionNextPage, c as UniformGetServerSideProps, b as UniformGetStaticProps, a as UniformPreviewData } from './models-CupnCqnn.mjs';
|
|
4
4
|
import { NextApiHandler, NextApiRequest } from 'next';
|
|
5
5
|
import { RootComponentInstance } from '@uniformdev/canvas';
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RichTextRendererComponent, RenderRichTextComponentResolver, UniformRichText as UniformRichText$1, UniformRichTextNode as UniformRichTextNode$1 } from '@uniformdev/canvas-react';
|
|
2
2
|
import { ParsedUrlQuery } from 'querystring';
|
|
3
|
-
export { U as UniformCompositionNextPage, c as UniformGetServerSideProps, b as UniformGetStaticProps, a as UniformPreviewData } from './models-
|
|
3
|
+
export { U as UniformCompositionNextPage, c as UniformGetServerSideProps, b as UniformGetStaticProps, a as UniformPreviewData } from './models-CupnCqnn.js';
|
|
4
4
|
import { NextApiHandler, NextApiRequest } from 'next';
|
|
5
5
|
import { RootComponentInstance } from '@uniformdev/canvas';
|
|
6
6
|
|
package/dist/index.esm.js
CHANGED
|
@@ -125,7 +125,8 @@ var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefaul
|
|
|
125
125
|
compositionSlug: slug,
|
|
126
126
|
compositionPath: path,
|
|
127
127
|
locale,
|
|
128
|
-
isPlayground
|
|
128
|
+
isPlayground,
|
|
129
|
+
patternType: !isPlayground ? void 0 : getQueryParam(req, "patternType")
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
// By default the preview cookies stays as long as the tab is open. And in contextual editing mode, people tend to open Canvas editor (one tab) and another tab to see published changes.
|
package/dist/index.js
CHANGED
|
@@ -167,7 +167,8 @@ var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefaul
|
|
|
167
167
|
compositionSlug: slug,
|
|
168
168
|
compositionPath: path,
|
|
169
169
|
locale,
|
|
170
|
-
isPlayground
|
|
170
|
+
isPlayground,
|
|
171
|
+
patternType: !isPlayground ? void 0 : getQueryParam(req, "patternType")
|
|
171
172
|
},
|
|
172
173
|
{
|
|
173
174
|
// By default the preview cookies stays as long as the tab is open. And in contextual editing mode, people tend to open Canvas editor (one tab) and another tab to see published changes.
|
package/dist/index.mjs
CHANGED
|
@@ -125,7 +125,8 @@ var createPreviewHandlerGet = ({ secret, resolveFullPath = resolveFullPathDefaul
|
|
|
125
125
|
compositionSlug: slug,
|
|
126
126
|
compositionPath: path,
|
|
127
127
|
locale,
|
|
128
|
-
isPlayground
|
|
128
|
+
isPlayground,
|
|
129
|
+
patternType: !isPlayground ? void 0 : getQueryParam(req, "patternType")
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
// By default the preview cookies stays as long as the tab is open. And in contextual editing mode, people tend to open Canvas editor (one tab) and another tab to see published changes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootComponentInstance } from '@uniformdev/canvas';
|
|
1
|
+
import { CompositionGetParameters, RootComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { UniformCompositionProps } from '@uniformdev/canvas-react';
|
|
3
3
|
import { NextPage, PreviewData, GetStaticPropsContext, GetStaticPropsResult, GetServerSidePropsContext, GetServerSidePropsResult } from 'next';
|
|
4
4
|
import { ParsedUrlQuery } from 'querystring';
|
|
@@ -11,6 +11,11 @@ type UniformPreviewData = PreviewData & {
|
|
|
11
11
|
compositionPath?: string;
|
|
12
12
|
locale?: string;
|
|
13
13
|
isPlayground?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The type of pattern being previewed in Canvas editor. This value is only set when `isPlayground` is `true`.
|
|
16
|
+
* "component" for component patterns, and "composition" for composition patterns
|
|
17
|
+
*/
|
|
18
|
+
patternType?: Exclude<CompositionGetParameters['patternType'], 'all'>;
|
|
14
19
|
};
|
|
15
20
|
type UniformGetStaticProps<P extends {
|
|
16
21
|
[key: string]: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootComponentInstance } from '@uniformdev/canvas';
|
|
1
|
+
import { CompositionGetParameters, RootComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { UniformCompositionProps } from '@uniformdev/canvas-react';
|
|
3
3
|
import { NextPage, PreviewData, GetStaticPropsContext, GetStaticPropsResult, GetServerSidePropsContext, GetServerSidePropsResult } from 'next';
|
|
4
4
|
import { ParsedUrlQuery } from 'querystring';
|
|
@@ -11,6 +11,11 @@ type UniformPreviewData = PreviewData & {
|
|
|
11
11
|
compositionPath?: string;
|
|
12
12
|
locale?: string;
|
|
13
13
|
isPlayground?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The type of pattern being previewed in Canvas editor. This value is only set when `isPlayground` is `true`.
|
|
16
|
+
* "component" for component patterns, and "composition" for composition patterns
|
|
17
|
+
*/
|
|
18
|
+
patternType?: Exclude<CompositionGetParameters['patternType'], 'all'>;
|
|
14
19
|
};
|
|
15
20
|
type UniformGetStaticProps<P extends {
|
|
16
21
|
[key: string]: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as next from 'next';
|
|
2
2
|
import { GetServerSidePropsContext, PreviewData, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
|
|
3
|
-
import { c as UniformGetServerSideProps, a as UniformPreviewData, b as UniformGetStaticProps } from '../models-
|
|
3
|
+
import { c as UniformGetServerSideProps, a as UniformPreviewData, b as UniformGetStaticProps } from '../models-CupnCqnn.mjs';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
6
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as next from 'next';
|
|
2
2
|
import { GetServerSidePropsContext, PreviewData, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
|
|
3
|
-
import { c as UniformGetServerSideProps, a as UniformPreviewData, b as UniformGetStaticProps } from '../models-
|
|
3
|
+
import { c as UniformGetServerSideProps, a as UniformPreviewData, b as UniformGetStaticProps } from '../models-CupnCqnn.js';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
6
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
package/dist/route/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as next from 'next';
|
|
2
2
|
import { GetServerSidePropsContext, GetServerSidePropsResult, GetServerSideProps, GetStaticPropsContext, GetStaticPropsResult, GetStaticProps } from 'next';
|
|
3
|
-
import { a as UniformPreviewData } from '../models-
|
|
3
|
+
import { a as UniformPreviewData } from '../models-CupnCqnn.mjs';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
6
|
import { RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, RouteClient, RouteGetParameters, RootComponentInstance } from '@uniformdev/canvas';
|
package/dist/route/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as next from 'next';
|
|
2
2
|
import { GetServerSidePropsContext, GetServerSidePropsResult, GetServerSideProps, GetStaticPropsContext, GetStaticPropsResult, GetStaticProps } from 'next';
|
|
3
|
-
import { a as UniformPreviewData } from '../models-
|
|
3
|
+
import { a as UniformPreviewData } from '../models-CupnCqnn.js';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
6
|
import { RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, RouteClient, RouteGetParameters, RootComponentInstance } from '@uniformdev/canvas';
|
package/dist/route/index.js
CHANGED
|
@@ -477,8 +477,7 @@ var withUniformGetStaticProps = (options) => {
|
|
|
477
477
|
|
|
478
478
|
// src/route/localePathModifier.ts
|
|
479
479
|
var prependLocale = (path, { locale, defaultLocale, locales }) => {
|
|
480
|
-
if (!(locales == null ? void 0 : locales.length))
|
|
481
|
-
return path;
|
|
480
|
+
if (!(locales == null ? void 0 : locales.length)) return path;
|
|
482
481
|
const slug = path === "/" ? "" : path;
|
|
483
482
|
return decodeURI(`/${locale || defaultLocale}${slug}`);
|
|
484
483
|
};
|
package/dist/route/index.mjs
CHANGED
|
@@ -344,8 +344,7 @@ var withUniformGetStaticProps = (options) => {
|
|
|
344
344
|
|
|
345
345
|
// src/route/localePathModifier.ts
|
|
346
346
|
var prependLocale = (path, { locale, defaultLocale, locales }) => {
|
|
347
|
-
if (!(locales == null ? void 0 : locales.length))
|
|
348
|
-
return path;
|
|
347
|
+
if (!(locales == null ? void 0 : locales.length)) return path;
|
|
349
348
|
const slug = path === "/" ? "" : path;
|
|
350
349
|
return decodeURI(`/${locale || defaultLocale}${slug}`);
|
|
351
350
|
};
|
package/dist/slug/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as next from 'next';
|
|
2
2
|
import { GetServerSidePropsContext, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
|
|
3
|
-
import { a as UniformPreviewData, c as UniformGetServerSideProps, b as UniformGetStaticProps } from '../models-
|
|
3
|
+
import { a as UniformPreviewData, c as UniformGetServerSideProps, b as UniformGetStaticProps } from '../models-CupnCqnn.mjs';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
6
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
package/dist/slug/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as next from 'next';
|
|
2
2
|
import { GetServerSidePropsContext, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next';
|
|
3
|
-
import { a as UniformPreviewData, c as UniformGetServerSideProps, b as UniformGetStaticProps } from '../models-
|
|
3
|
+
import { a as UniformPreviewData, c as UniformGetServerSideProps, b as UniformGetStaticProps } from '../models-CupnCqnn.js';
|
|
4
4
|
import * as querystring from 'querystring';
|
|
5
5
|
import { ParsedUrlQuery } from 'querystring';
|
|
6
6
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.167.2-alpha.3+d42f32a982",
|
|
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,11 @@
|
|
|
67
67
|
"document": "api-extractor run --local"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@uniformdev/canvas": "19.
|
|
71
|
-
"@uniformdev/canvas-react": "19.
|
|
72
|
-
"@uniformdev/project-map": "19.
|
|
73
|
-
"@uniformdev/redirect": "19.
|
|
74
|
-
"@uniformdev/richtext": "19.
|
|
70
|
+
"@uniformdev/canvas": "19.167.2-alpha.3+d42f32a982",
|
|
71
|
+
"@uniformdev/canvas-react": "19.167.2-alpha.3+d42f32a982",
|
|
72
|
+
"@uniformdev/project-map": "19.167.2-alpha.3+d42f32a982",
|
|
73
|
+
"@uniformdev/redirect": "19.167.2-alpha.3+d42f32a982",
|
|
74
|
+
"@uniformdev/richtext": "19.167.2-alpha.3+d42f32a982",
|
|
75
75
|
"colorette": "2.0.20"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "d42f32a98294c96f55a29c10c7c461c5327f56f3"
|
|
95
95
|
}
|