@uniformdev/canvas-next 19.191.0 → 19.194.1-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/route/index.js +4 -0
- package/dist/route/index.mjs +5 -0
- package/package.json +7 -7
package/dist/route/index.js
CHANGED
|
@@ -287,6 +287,10 @@ 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
|
+
dataSourceVariant: (0, import_canvas.getDataSourceVariantFromRouteGetParams)(
|
|
291
|
+
resolvedOptions != null ? resolvedOptions : {},
|
|
292
|
+
defaultPreviewState
|
|
293
|
+
),
|
|
290
294
|
projectMapId,
|
|
291
295
|
path: nodePath
|
|
292
296
|
});
|
package/dist/route/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
ApiClientError,
|
|
15
15
|
CANVAS_PUBLISHED_STATE,
|
|
16
16
|
EMPTY_COMPOSITION,
|
|
17
|
+
getDataSourceVariantFromRouteGetParams,
|
|
17
18
|
RouteClient
|
|
18
19
|
} from "@uniformdev/canvas";
|
|
19
20
|
import { red as red2 } from "colorette";
|
|
@@ -164,6 +165,10 @@ function createRouteFetcher(options) {
|
|
|
164
165
|
const response = await routeClient.getRoute({
|
|
165
166
|
...resolvedOptions,
|
|
166
167
|
state: (_b = (_a = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _a : defaultPreviewState) != null ? _b : CANVAS_PUBLISHED_STATE,
|
|
168
|
+
dataSourceVariant: getDataSourceVariantFromRouteGetParams(
|
|
169
|
+
resolvedOptions != null ? resolvedOptions : {},
|
|
170
|
+
defaultPreviewState
|
|
171
|
+
),
|
|
167
172
|
projectMapId,
|
|
168
173
|
path: nodePath
|
|
169
174
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.194.1-alpha.3+9ba3c9e6f0",
|
|
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.194.1-alpha.3+9ba3c9e6f0",
|
|
71
|
+
"@uniformdev/canvas-react": "19.194.1-alpha.3+9ba3c9e6f0",
|
|
72
|
+
"@uniformdev/project-map": "19.194.1-alpha.3+9ba3c9e6f0",
|
|
73
|
+
"@uniformdev/redirect": "19.194.1-alpha.3+9ba3c9e6f0",
|
|
74
|
+
"@uniformdev/richtext": "19.194.1-alpha.3+9ba3c9e6f0",
|
|
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": "9ba3c9e6f09642d4f7e77a9f4b90f416f2521073"
|
|
95
95
|
}
|