@uniformdev/canvas-next-rsc 19.187.0 → 19.190.1-alpha.10
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.esm.js +8 -0
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -550,10 +550,18 @@ var retrieveRouteByPath = async ({
|
|
|
550
550
|
queryPath = `${helper.pathname}${helper.search}`;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
+
const dataResourcesVariant = (
|
|
554
|
+
// support explicit 'undefined' as a way to opt out of data resources variant
|
|
555
|
+
fetchOptions && "dataResourcesVariant" in fetchOptions ? fetchOptions.dataResourcesVariant : (
|
|
556
|
+
// in case of both state=0 and state=63 we still want to fetch unpublished data
|
|
557
|
+
state !== CANVAS_PUBLISHED_STATE ? "unpublished" : void 0
|
|
558
|
+
)
|
|
559
|
+
);
|
|
553
560
|
return await client.getRoute({
|
|
554
561
|
...fetchOptions,
|
|
555
562
|
path: queryPath,
|
|
556
563
|
state,
|
|
564
|
+
dataResourcesVariant,
|
|
557
565
|
withComponentIDs: true,
|
|
558
566
|
withContentSourceMap: isOnVercelPreviewEnvironment() && ((_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing)
|
|
559
567
|
});
|
package/dist/index.js
CHANGED
|
@@ -589,10 +589,18 @@ var retrieveRouteByPath = async ({
|
|
|
589
589
|
queryPath = `${helper.pathname}${helper.search}`;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
+
const dataResourcesVariant = (
|
|
593
|
+
// support explicit 'undefined' as a way to opt out of data resources variant
|
|
594
|
+
fetchOptions && "dataResourcesVariant" in fetchOptions ? fetchOptions.dataResourcesVariant : (
|
|
595
|
+
// in case of both state=0 and state=63 we still want to fetch unpublished data
|
|
596
|
+
state !== import_canvas4.CANVAS_PUBLISHED_STATE ? "unpublished" : void 0
|
|
597
|
+
)
|
|
598
|
+
);
|
|
592
599
|
return await client.getRoute({
|
|
593
600
|
...fetchOptions,
|
|
594
601
|
path: queryPath,
|
|
595
602
|
state,
|
|
603
|
+
dataResourcesVariant,
|
|
596
604
|
withComponentIDs: true,
|
|
597
605
|
withContentSourceMap: isOnVercelPreviewEnvironment() && ((_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing)
|
|
598
606
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -550,10 +550,18 @@ var retrieveRouteByPath = async ({
|
|
|
550
550
|
queryPath = `${helper.pathname}${helper.search}`;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
+
const dataResourcesVariant = (
|
|
554
|
+
// support explicit 'undefined' as a way to opt out of data resources variant
|
|
555
|
+
fetchOptions && "dataResourcesVariant" in fetchOptions ? fetchOptions.dataResourcesVariant : (
|
|
556
|
+
// in case of both state=0 and state=63 we still want to fetch unpublished data
|
|
557
|
+
state !== CANVAS_PUBLISHED_STATE ? "unpublished" : void 0
|
|
558
|
+
)
|
|
559
|
+
);
|
|
553
560
|
return await client.getRoute({
|
|
554
561
|
...fetchOptions,
|
|
555
562
|
path: queryPath,
|
|
556
563
|
state,
|
|
564
|
+
dataResourcesVariant,
|
|
557
565
|
withComponentIDs: true,
|
|
558
566
|
withContentSourceMap: isOnVercelPreviewEnvironment() && ((_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing)
|
|
559
567
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.190.1-alpha.10+ec1c4180f7",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"react-dom": "18.3.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@uniformdev/canvas": "19.
|
|
65
|
-
"@uniformdev/canvas-next-rsc-client": "^19.
|
|
66
|
-
"@uniformdev/canvas-next-rsc-shared": "^19.
|
|
67
|
-
"@uniformdev/canvas-react": "19.
|
|
68
|
-
"@uniformdev/context": "19.
|
|
69
|
-
"@uniformdev/project-map": "19.
|
|
70
|
-
"@uniformdev/redirect": "19.
|
|
71
|
-
"@uniformdev/richtext": "19.
|
|
72
|
-
"@uniformdev/webhooks": "19.
|
|
64
|
+
"@uniformdev/canvas": "19.190.1-alpha.10+ec1c4180f7",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^19.190.1-alpha.10+ec1c4180f7",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.190.1-alpha.10+ec1c4180f7",
|
|
67
|
+
"@uniformdev/canvas-react": "19.190.1-alpha.10+ec1c4180f7",
|
|
68
|
+
"@uniformdev/context": "19.190.1-alpha.10+ec1c4180f7",
|
|
69
|
+
"@uniformdev/project-map": "19.190.1-alpha.10+ec1c4180f7",
|
|
70
|
+
"@uniformdev/redirect": "19.190.1-alpha.10+ec1c4180f7",
|
|
71
|
+
"@uniformdev/richtext": "19.190.1-alpha.10+ec1c4180f7",
|
|
72
|
+
"@uniformdev/webhooks": "19.190.1-alpha.10+ec1c4180f7",
|
|
73
73
|
"@vercel/edge-config": "^0.4.0",
|
|
74
74
|
"encoding": "^0.1.13",
|
|
75
75
|
"server-only": "^0.0.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "ec1c4180f7c99bcfb5023bc0e1277d155acdca72"
|
|
90
90
|
}
|