@uniformdev/canvas-next 19.190.1-alpha.10 → 19.190.1-alpha.11
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 +3 -3
- package/dist/route/index.mjs +3 -3
- package/package.json +7 -7
package/dist/route/index.js
CHANGED
|
@@ -283,9 +283,9 @@ function createRouteFetcher(options) {
|
|
|
283
283
|
console.log("Fetch route", nodePath);
|
|
284
284
|
}
|
|
285
285
|
const resolvedOptions = typeof requestOptions === "function" ? requestOptions(context) : requestOptions;
|
|
286
|
-
const
|
|
286
|
+
const dataSourceVariant = (
|
|
287
287
|
// support explicit 'undefined' as a way to opt out of data resources variant
|
|
288
|
-
resolvedOptions && "
|
|
288
|
+
resolvedOptions && "dataSourceVariant" in resolvedOptions ? resolvedOptions.dataSourceVariant : (
|
|
289
289
|
// in case of DRAFT state we still want to fetch unpublished data
|
|
290
290
|
((_a = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _a : defaultPreviewState) === import_canvas.CANVAS_DRAFT_STATE ? "unpublished" : void 0
|
|
291
291
|
)
|
|
@@ -294,7 +294,7 @@ function createRouteFetcher(options) {
|
|
|
294
294
|
const response = await routeClient.getRoute({
|
|
295
295
|
...resolvedOptions,
|
|
296
296
|
state: (_c = (_b = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _b : defaultPreviewState) != null ? _c : import_canvas.CANVAS_PUBLISHED_STATE,
|
|
297
|
-
|
|
297
|
+
dataSourceVariant,
|
|
298
298
|
projectMapId,
|
|
299
299
|
path: nodePath
|
|
300
300
|
});
|
package/dist/route/index.mjs
CHANGED
|
@@ -161,9 +161,9 @@ function createRouteFetcher(options) {
|
|
|
161
161
|
console.log("Fetch route", nodePath);
|
|
162
162
|
}
|
|
163
163
|
const resolvedOptions = typeof requestOptions === "function" ? requestOptions(context) : requestOptions;
|
|
164
|
-
const
|
|
164
|
+
const dataSourceVariant = (
|
|
165
165
|
// support explicit 'undefined' as a way to opt out of data resources variant
|
|
166
|
-
resolvedOptions && "
|
|
166
|
+
resolvedOptions && "dataSourceVariant" in resolvedOptions ? resolvedOptions.dataSourceVariant : (
|
|
167
167
|
// in case of DRAFT state we still want to fetch unpublished data
|
|
168
168
|
((_a = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _a : defaultPreviewState) === CANVAS_DRAFT_STATE ? "unpublished" : void 0
|
|
169
169
|
)
|
|
@@ -172,7 +172,7 @@ function createRouteFetcher(options) {
|
|
|
172
172
|
const response = await routeClient.getRoute({
|
|
173
173
|
...resolvedOptions,
|
|
174
174
|
state: (_c = (_b = resolvedOptions == null ? void 0 : resolvedOptions.state) != null ? _b : defaultPreviewState) != null ? _c : CANVAS_PUBLISHED_STATE,
|
|
175
|
-
|
|
175
|
+
dataSourceVariant,
|
|
176
176
|
projectMapId,
|
|
177
177
|
path: nodePath
|
|
178
178
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "19.190.1-alpha.
|
|
3
|
+
"version": "19.190.1-alpha.11+d5b1b10547",
|
|
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.
|
|
71
|
-
"@uniformdev/canvas-react": "19.190.1-alpha.
|
|
72
|
-
"@uniformdev/project-map": "19.190.1-alpha.
|
|
73
|
-
"@uniformdev/redirect": "19.190.1-alpha.
|
|
74
|
-
"@uniformdev/richtext": "19.190.1-alpha.
|
|
70
|
+
"@uniformdev/canvas": "19.190.1-alpha.11+d5b1b10547",
|
|
71
|
+
"@uniformdev/canvas-react": "19.190.1-alpha.11+d5b1b10547",
|
|
72
|
+
"@uniformdev/project-map": "19.190.1-alpha.11+d5b1b10547",
|
|
73
|
+
"@uniformdev/redirect": "19.190.1-alpha.11+d5b1b10547",
|
|
74
|
+
"@uniformdev/richtext": "19.190.1-alpha.11+d5b1b10547",
|
|
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": "d5b1b10547d3a694615e920e10384116bf6e4ad8"
|
|
95
95
|
}
|