@uniformdev/canvas-next 19.166.1 → 19.169.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.
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-IAhm-va2.mjs';
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-IAhm-va2.js';
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-IAhm-va2.mjs';
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-IAhm-va2.js';
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';
@@ -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-IAhm-va2.mjs';
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';
@@ -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-IAhm-va2.js';
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';
@@ -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-IAhm-va2.mjs';
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';
@@ -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-IAhm-va2.js';
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.166.1",
3
+ "version": "19.169.0",
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.166.1",
71
- "@uniformdev/canvas-react": "19.166.1",
72
- "@uniformdev/project-map": "19.166.1",
73
- "@uniformdev/redirect": "19.166.1",
74
- "@uniformdev/richtext": "19.166.1",
70
+ "@uniformdev/canvas": "19.169.0",
71
+ "@uniformdev/canvas-react": "19.169.0",
72
+ "@uniformdev/project-map": "19.169.0",
73
+ "@uniformdev/redirect": "19.169.0",
74
+ "@uniformdev/richtext": "19.169.0",
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": "d6a92d76bb91fa41a51cf27a69d81e0cc985f80f"
94
+ "gitHead": "78f454f7178dfac0480403a9728c430b7697a724"
95
95
  }