@uniformdev/canvas-next 19.190.1-alpha.3 → 19.191.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.
@@ -213,7 +213,7 @@ function createRouteFetcher(options) {
213
213
  });
214
214
  const handleModifyPath = modifyPath != null ? modifyPath : (path) => decodeURI(path);
215
215
  return async function fetcher(context) {
216
- var _a, _b, _c;
216
+ var _a, _b;
217
217
  const {
218
218
  contextualEditingCompositionId,
219
219
  resolvedUrl,
@@ -287,7 +287,6 @@ function createRouteFetcher(options) {
287
287
  const response = await routeClient.getRoute({
288
288
  ...resolvedOptions,
289
289
  state: (_b = (_a = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _a : defaultPreviewState) != null ? _b : import_canvas.CANVAS_PUBLISHED_STATE,
290
- dataResourcesVariant: ((_c = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _c : defaultPreviewState) === import_canvas.CANVAS_DRAFT_STATE ? "unpublished" : void 0,
291
290
  projectMapId,
292
291
  path: nodePath
293
292
  });
@@ -6,13 +6,12 @@ import {
6
6
  } from "../chunk-TR7V6ABJ.mjs";
7
7
 
8
8
  // src/route/withUniformGetServerSideProps.ts
9
- import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE2 } from "@uniformdev/canvas";
9
+ import { CANVAS_DRAFT_STATE } from "@uniformdev/canvas";
10
10
  import { getTargetVariableExpandedUrl } from "@uniformdev/redirect";
11
11
 
12
12
  // src/route/createRouteFetcher.ts
13
13
  import {
14
14
  ApiClientError,
15
- CANVAS_DRAFT_STATE,
16
15
  CANVAS_PUBLISHED_STATE,
17
16
  EMPTY_COMPOSITION,
18
17
  RouteClient
@@ -91,7 +90,7 @@ function createRouteFetcher(options) {
91
90
  });
92
91
  const handleModifyPath = modifyPath != null ? modifyPath : (path) => decodeURI(path);
93
92
  return async function fetcher(context) {
94
- var _a, _b, _c;
93
+ var _a, _b;
95
94
  const {
96
95
  contextualEditingCompositionId,
97
96
  resolvedUrl,
@@ -165,7 +164,6 @@ function createRouteFetcher(options) {
165
164
  const response = await routeClient.getRoute({
166
165
  ...resolvedOptions,
167
166
  state: (_b = (_a = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _a : defaultPreviewState) != null ? _b : CANVAS_PUBLISHED_STATE,
168
- dataResourcesVariant: ((_c = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _c : defaultPreviewState) === CANVAS_DRAFT_STATE ? "unpublished" : void 0,
169
167
  projectMapId,
170
168
  path: nodePath
171
169
  });
@@ -237,7 +235,7 @@ var withUniformGetServerSideProps = (options) => {
237
235
  resolvedUrl: context.resolvedUrl,
238
236
  // auto engage draft content when in next preview mode
239
237
  // (can override with explicit setting of request options)'
240
- defaultFetchState: context.preview ? CANVAS_DRAFT_STATE2 : void 0
238
+ defaultFetchState: context.preview ? CANVAS_DRAFT_STATE : void 0
241
239
  };
242
240
  }
243
241
  });
@@ -245,7 +243,7 @@ var withUniformGetServerSideProps = (options) => {
245
243
  };
246
244
 
247
245
  // src/route/withUniformGetStaticPaths.ts
248
- import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE3, CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE2 } from "@uniformdev/canvas";
246
+ import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE2, CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE2 } from "@uniformdev/canvas";
249
247
  import {
250
248
  ProjectMapClient
251
249
  } from "@uniformdev/project-map";
@@ -281,7 +279,7 @@ var withUniformGetStaticPaths = (options) => {
281
279
  ...options == null ? void 0 : options.requestOptions,
282
280
  path: options == null ? void 0 : options.rootPath,
283
281
  projectMapId,
284
- state: (options == null ? void 0 : options.preview) ? CANVAS_DRAFT_STATE3 : CANVAS_PUBLISHED_STATE2
282
+ state: (options == null ? void 0 : options.preview) ? CANVAS_DRAFT_STATE2 : CANVAS_PUBLISHED_STATE2
285
283
  }),
286
284
  finalRedirectClient.getAllRedirects()
287
285
  ]);
@@ -301,7 +299,7 @@ var withUniformGetStaticPaths = (options) => {
301
299
  };
302
300
 
303
301
  // src/route/withUniformGetStaticProps.ts
304
- import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE4 } from "@uniformdev/canvas";
302
+ import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE3 } from "@uniformdev/canvas";
305
303
  import { getTargetVariableExpandedUrl as getTargetVariableExpandedUrl2 } from "@uniformdev/redirect";
306
304
  var withUniformGetStaticProps = (options) => {
307
305
  const defaultHandleRedirect = (requestUrl, matched) => {
@@ -337,7 +335,7 @@ var withUniformGetStaticProps = (options) => {
337
335
  }),
338
336
  // auto engage draft content when in next preview mode
339
337
  // (can override with explicit setting of request options)
340
- defaultFetchState: context.preview ? CANVAS_DRAFT_STATE4 : void 0
338
+ defaultFetchState: context.preview ? CANVAS_DRAFT_STATE3 : void 0
341
339
  };
342
340
  }
343
341
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next",
3
- "version": "19.190.1-alpha.3+0f998ae81e",
3
+ "version": "19.191.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.190.1-alpha.3+0f998ae81e",
71
- "@uniformdev/canvas-react": "19.190.1-alpha.3+0f998ae81e",
72
- "@uniformdev/project-map": "19.190.1-alpha.3+0f998ae81e",
73
- "@uniformdev/redirect": "19.190.1-alpha.3+0f998ae81e",
74
- "@uniformdev/richtext": "19.190.1-alpha.3+0f998ae81e",
70
+ "@uniformdev/canvas": "19.191.0",
71
+ "@uniformdev/canvas-react": "19.191.0",
72
+ "@uniformdev/project-map": "19.191.0",
73
+ "@uniformdev/redirect": "19.191.0",
74
+ "@uniformdev/richtext": "19.191.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": "0f998ae81e331076b7d2c7339cdfaf5e82e75bd9"
94
+ "gitHead": "5af19bc55804e29fda14eb6f0b4b7bd90be0610f"
95
95
  }