@uniformdev/canvas-next-rsc 19.75.2-alpha.2 → 19.76.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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- Next.js RSC SDK for Uniform Canvas
1
+ Next.js RSC SDK for Uniform
2
2
 
3
- **Note:** This package is in public preview.
3
+ To get started, follow our [Getting Started](https://docs.uniform.app/docs/learn/tutorials/nextjs-app-router) guide.
4
4
 
5
5
  part of the [Uniform Platform](https://uniform.app). See our [documentation](https://docs.uniform.app) for more details.
package/dist/index.d.mts CHANGED
@@ -240,6 +240,14 @@ declare const isIncontextEditingEnabled: ({ searchParams, }: {
240
240
  declare const isOnVercelPreviewEnvironment: () => boolean;
241
241
  declare const isDevelopmentEnvironment: () => boolean;
242
242
 
243
- declare const retrieveRoute: ({ params, searchParams, }: Pick<PageParameters, 'params' | 'searchParams'>) => Promise<ResolvedRouteGetResponse>;
243
+ type RetrieveRouteOptions = PageParameters & {
244
+ /**
245
+ * If true, the manifest will not be prefetched.
246
+ *
247
+ * Prefetching allows the manifest to begin loading while the route data is being retrieved.
248
+ */
249
+ skipPrefetch?: boolean;
250
+ };
251
+ declare const retrieveRoute: ({ params, searchParams, skipPrefetch, }: RetrieveRouteOptions) => Promise<ResolvedRouteGetResponse>;
244
252
 
245
253
  export { ContextUpdateTransfer, ContextUpdateTransferProps, CreateServerUniformContextProps, CreateStaticParamsOptions, GetCanvasClientOptions, GetManifestClientOptions, GetProjectMapClientOptions, GetRouteClientOptions, UniformCompositionProps, UniformContext, UniformContextProps, UniformPlayground, UniformPlaygroundProps, createServerUniformContext, createStaticParams, generateStaticParams, getCanvasClient, getDefaultCanvasClient, getDefaultManifestClient, getDefaultProjectMapClient, getDefaultRouteClient, getManifest, getManifestClient, getProjectMapClient, getRouteClient, isDevelopmentEnvironment, isDraftModeEnabled, isIncontextEditingEnabled, isOnVercelPreviewEnvironment, retrieveRoute };
package/dist/index.d.ts CHANGED
@@ -240,6 +240,14 @@ declare const isIncontextEditingEnabled: ({ searchParams, }: {
240
240
  declare const isOnVercelPreviewEnvironment: () => boolean;
241
241
  declare const isDevelopmentEnvironment: () => boolean;
242
242
 
243
- declare const retrieveRoute: ({ params, searchParams, }: Pick<PageParameters, 'params' | 'searchParams'>) => Promise<ResolvedRouteGetResponse>;
243
+ type RetrieveRouteOptions = PageParameters & {
244
+ /**
245
+ * If true, the manifest will not be prefetched.
246
+ *
247
+ * Prefetching allows the manifest to begin loading while the route data is being retrieved.
248
+ */
249
+ skipPrefetch?: boolean;
250
+ };
251
+ declare const retrieveRoute: ({ params, searchParams, skipPrefetch, }: RetrieveRouteOptions) => Promise<ResolvedRouteGetResponse>;
244
252
 
245
253
  export { ContextUpdateTransfer, ContextUpdateTransferProps, CreateServerUniformContextProps, CreateStaticParamsOptions, GetCanvasClientOptions, GetManifestClientOptions, GetProjectMapClientOptions, GetRouteClientOptions, UniformCompositionProps, UniformContext, UniformContextProps, UniformPlayground, UniformPlaygroundProps, createServerUniformContext, createStaticParams, generateStaticParams, getCanvasClient, getDefaultCanvasClient, getDefaultManifestClient, getDefaultProjectMapClient, getDefaultRouteClient, getManifest, getManifestClient, getProjectMapClient, getRouteClient, isDevelopmentEnvironment, isDraftModeEnabled, isIncontextEditingEnabled, isOnVercelPreviewEnvironment, retrieveRoute };
package/dist/index.esm.js CHANGED
@@ -444,8 +444,14 @@ import { getBaseUrl, getServerConfig as getServerConfig2, resolvePath } from "@u
444
444
  import { getTargetVariableExpandedUrl } from "@uniformdev/redirect";
445
445
  var retrieveRoute = async ({
446
446
  params,
447
- searchParams
447
+ searchParams,
448
+ skipPrefetch
448
449
  }) => {
450
+ if (!skipPrefetch) {
451
+ void getManifest({
452
+ searchParams
453
+ });
454
+ }
449
455
  const { type, value } = resolvePath({
450
456
  params
451
457
  });
package/dist/index.js CHANGED
@@ -483,8 +483,14 @@ var import_canvas_next_rsc_shared3 = require("@uniformdev/canvas-next-rsc-shared
483
483
  var import_redirect = require("@uniformdev/redirect");
484
484
  var retrieveRoute = async ({
485
485
  params,
486
- searchParams
486
+ searchParams,
487
+ skipPrefetch
487
488
  }) => {
489
+ if (!skipPrefetch) {
490
+ void getManifest({
491
+ searchParams
492
+ });
493
+ }
488
494
  const { type, value } = (0, import_canvas_next_rsc_shared3.resolvePath)({
489
495
  params
490
496
  });
package/dist/index.mjs CHANGED
@@ -444,8 +444,14 @@ import { getBaseUrl, getServerConfig as getServerConfig2, resolvePath } from "@u
444
444
  import { getTargetVariableExpandedUrl } from "@uniformdev/redirect";
445
445
  var retrieveRoute = async ({
446
446
  params,
447
- searchParams
447
+ searchParams,
448
+ skipPrefetch
448
449
  }) => {
450
+ if (!skipPrefetch) {
451
+ void getManifest({
452
+ searchParams
453
+ });
454
+ }
449
455
  const { type, value } = resolvePath({
450
456
  params
451
457
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "19.75.2-alpha.2+8fe85545a",
3
+ "version": "19.76.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -61,15 +61,15 @@
61
61
  "react-dom": "18.2.0"
62
62
  },
63
63
  "dependencies": {
64
- "@uniformdev/canvas": "19.75.2-alpha.2+8fe85545a",
65
- "@uniformdev/canvas-next-rsc-client": "^19.75.2-alpha.2+8fe85545a",
66
- "@uniformdev/canvas-next-rsc-shared": "^19.75.2-alpha.2+8fe85545a",
67
- "@uniformdev/canvas-react": "19.75.2-alpha.2+8fe85545a",
68
- "@uniformdev/context": "19.75.2-alpha.2+8fe85545a",
69
- "@uniformdev/project-map": "19.75.2-alpha.2+8fe85545a",
70
- "@uniformdev/redirect": "19.75.2-alpha.2+8fe85545a",
71
- "@uniformdev/richtext": "19.75.2-alpha.2+8fe85545a",
72
- "@uniformdev/webhooks": "19.75.2-alpha.2+8fe85545a",
64
+ "@uniformdev/canvas": "19.76.0",
65
+ "@uniformdev/canvas-next-rsc-client": "^19.76.0",
66
+ "@uniformdev/canvas-next-rsc-shared": "^19.76.0",
67
+ "@uniformdev/canvas-react": "19.76.0",
68
+ "@uniformdev/context": "19.76.0",
69
+ "@uniformdev/project-map": "19.76.0",
70
+ "@uniformdev/redirect": "19.76.0",
71
+ "@uniformdev/richtext": "19.76.0",
72
+ "@uniformdev/webhooks": "19.76.0",
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": "8fe85545a0968d34c2ce64e5b1de4e76ffc4577b"
89
+ "gitHead": "68c676df4588906359e10e58f9394f3de70098ba"
90
90
  }