@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 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.187.0",
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.187.0",
65
- "@uniformdev/canvas-next-rsc-client": "^19.187.0",
66
- "@uniformdev/canvas-next-rsc-shared": "^19.187.0",
67
- "@uniformdev/canvas-react": "19.187.0",
68
- "@uniformdev/context": "19.187.0",
69
- "@uniformdev/project-map": "19.187.0",
70
- "@uniformdev/redirect": "19.187.0",
71
- "@uniformdev/richtext": "19.187.0",
72
- "@uniformdev/webhooks": "19.187.0",
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": "9ccfdb652e2d67d66fe90e2df1845c3c2e3bee8b"
89
+ "gitHead": "ec1c4180f7c99bcfb5023bc0e1277d155acdca72"
90
90
  }