@uniformdev/canvas-next-rsc 19.147.1-alpha.6 → 19.147.1-alpha.7
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.d.mts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.esm.js +10 -2
- package/dist/index.js +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanvasClient, RouteClient, ResolvedRouteGetResponse, RouteGetParameters } from '@uniformdev/canvas';
|
|
1
|
+
import { CanvasClient, RouteClient, ResolvedRouteGetResponse, CompositionGetBySlugParameters, RouteGetParameters } from '@uniformdev/canvas';
|
|
2
2
|
import { UniformServerConfig, PageParameters, AppDirectoryContextState, AppDirectoryServerContext, PlaygroundParameters } from '@uniformdev/canvas-next-rsc-shared';
|
|
3
3
|
export { PageParameters, PlaygroundParameters } from '@uniformdev/canvas-next-rsc-shared';
|
|
4
4
|
import { ManifestClient } from '@uniformdev/context/api';
|
|
@@ -252,11 +252,7 @@ type RetrieveCommonOptions = {
|
|
|
252
252
|
skipPrefetch?: boolean;
|
|
253
253
|
};
|
|
254
254
|
type RetrieveRouteOptions = PageParameters & RetrieveCommonOptions;
|
|
255
|
-
type RetrieveSlugOptions = {
|
|
256
|
-
/**
|
|
257
|
-
* The slug of the composition to retrieve.
|
|
258
|
-
*/
|
|
259
|
-
slug: string;
|
|
255
|
+
type RetrieveSlugOptions = Pick<CompositionGetBySlugParameters, 'slug' | 'locale' | 'releaseId' | 'versionId'> & {
|
|
260
256
|
/**
|
|
261
257
|
* The searchParams object from Next.js router. Used for signal evaluation.
|
|
262
258
|
*/
|
|
@@ -265,7 +261,7 @@ type RetrieveSlugOptions = {
|
|
|
265
261
|
};
|
|
266
262
|
} & RetrieveCommonOptions;
|
|
267
263
|
type RetrieveRouteFetchOptions = Omit<RouteGetParameters, 'projectId' | 'path' | 'withComponentIDs' | 'withContentSourceMap' | 'state'>;
|
|
268
|
-
declare const retrieveCompositionBySlug: ({ slug, searchParams, skipPrefetch, }: RetrieveSlugOptions) => Promise<ResolvedRouteGetResponse>;
|
|
264
|
+
declare const retrieveCompositionBySlug: ({ slug, searchParams, skipPrefetch, locale, releaseId, versionId, }: RetrieveSlugOptions) => Promise<ResolvedRouteGetResponse>;
|
|
269
265
|
declare const retrieveRoute: ({ params, searchParams, skipPrefetch }: RetrieveRouteOptions, fetchOptions?: RetrieveRouteFetchOptions) => Promise<ResolvedRouteGetResponse>;
|
|
270
266
|
|
|
271
267
|
export { ContextUpdateTransfer, type ContextUpdateTransferProps, type CreateServerUniformContextProps, type CreateStaticParamsOptions, type GetCanvasClientOptions, type GetManifestClientOptions, type GetProjectMapClientOptions, type GetRouteClientOptions, UniformCompositionProps, UniformContext, type UniformContextProps, UniformPlayground, type UniformPlaygroundProps, createServerUniformContext, createStaticParams, generateStaticParams, getCanvasClient, getDefaultCanvasClient, getDefaultManifestClient, getDefaultProjectMapClient, getDefaultRouteClient, getManifest, getManifestClient, getProjectMapClient, getRouteClient, isDevelopmentEnvironment, isDraftModeEnabled, isIncontextEditingEnabled, isOnVercelPreviewEnvironment, retrieveCompositionBySlug, retrieveRoute };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanvasClient, RouteClient, ResolvedRouteGetResponse, RouteGetParameters } from '@uniformdev/canvas';
|
|
1
|
+
import { CanvasClient, RouteClient, ResolvedRouteGetResponse, CompositionGetBySlugParameters, RouteGetParameters } from '@uniformdev/canvas';
|
|
2
2
|
import { UniformServerConfig, PageParameters, AppDirectoryContextState, AppDirectoryServerContext, PlaygroundParameters } from '@uniformdev/canvas-next-rsc-shared';
|
|
3
3
|
export { PageParameters, PlaygroundParameters } from '@uniformdev/canvas-next-rsc-shared';
|
|
4
4
|
import { ManifestClient } from '@uniformdev/context/api';
|
|
@@ -252,11 +252,7 @@ type RetrieveCommonOptions = {
|
|
|
252
252
|
skipPrefetch?: boolean;
|
|
253
253
|
};
|
|
254
254
|
type RetrieveRouteOptions = PageParameters & RetrieveCommonOptions;
|
|
255
|
-
type RetrieveSlugOptions = {
|
|
256
|
-
/**
|
|
257
|
-
* The slug of the composition to retrieve.
|
|
258
|
-
*/
|
|
259
|
-
slug: string;
|
|
255
|
+
type RetrieveSlugOptions = Pick<CompositionGetBySlugParameters, 'slug' | 'locale' | 'releaseId' | 'versionId'> & {
|
|
260
256
|
/**
|
|
261
257
|
* The searchParams object from Next.js router. Used for signal evaluation.
|
|
262
258
|
*/
|
|
@@ -265,7 +261,7 @@ type RetrieveSlugOptions = {
|
|
|
265
261
|
};
|
|
266
262
|
} & RetrieveCommonOptions;
|
|
267
263
|
type RetrieveRouteFetchOptions = Omit<RouteGetParameters, 'projectId' | 'path' | 'withComponentIDs' | 'withContentSourceMap' | 'state'>;
|
|
268
|
-
declare const retrieveCompositionBySlug: ({ slug, searchParams, skipPrefetch, }: RetrieveSlugOptions) => Promise<ResolvedRouteGetResponse>;
|
|
264
|
+
declare const retrieveCompositionBySlug: ({ slug, searchParams, skipPrefetch, locale, releaseId, versionId, }: RetrieveSlugOptions) => Promise<ResolvedRouteGetResponse>;
|
|
269
265
|
declare const retrieveRoute: ({ params, searchParams, skipPrefetch }: RetrieveRouteOptions, fetchOptions?: RetrieveRouteFetchOptions) => Promise<ResolvedRouteGetResponse>;
|
|
270
266
|
|
|
271
267
|
export { ContextUpdateTransfer, type ContextUpdateTransferProps, type CreateServerUniformContextProps, type CreateStaticParamsOptions, type GetCanvasClientOptions, type GetManifestClientOptions, type GetProjectMapClientOptions, type GetRouteClientOptions, UniformCompositionProps, UniformContext, type UniformContextProps, UniformPlayground, type UniformPlaygroundProps, createServerUniformContext, createStaticParams, generateStaticParams, getCanvasClient, getDefaultCanvasClient, getDefaultManifestClient, getDefaultProjectMapClient, getDefaultRouteClient, getManifest, getManifestClient, getProjectMapClient, getRouteClient, isDevelopmentEnvironment, isDraftModeEnabled, isIncontextEditingEnabled, isOnVercelPreviewEnvironment, retrieveCompositionBySlug, retrieveRoute };
|
package/dist/index.esm.js
CHANGED
|
@@ -463,8 +463,12 @@ import { getTargetVariableExpandedUrl } from "@uniformdev/redirect";
|
|
|
463
463
|
var retrieveCompositionBySlug = async ({
|
|
464
464
|
slug,
|
|
465
465
|
searchParams,
|
|
466
|
-
skipPrefetch
|
|
466
|
+
skipPrefetch,
|
|
467
|
+
locale,
|
|
468
|
+
releaseId,
|
|
469
|
+
versionId
|
|
467
470
|
}) => {
|
|
471
|
+
var _a;
|
|
468
472
|
if (!skipPrefetch) {
|
|
469
473
|
void getManifest({
|
|
470
474
|
searchParams
|
|
@@ -483,7 +487,11 @@ var retrieveCompositionBySlug = async ({
|
|
|
483
487
|
const composition = await canvasClient.getCompositionBySlug({
|
|
484
488
|
slug,
|
|
485
489
|
state,
|
|
486
|
-
withComponentIDs: true
|
|
490
|
+
withComponentIDs: true,
|
|
491
|
+
withContentSourceMap: isOnVercelPreviewEnvironment() && ((_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing),
|
|
492
|
+
locale,
|
|
493
|
+
releaseId,
|
|
494
|
+
versionId
|
|
487
495
|
});
|
|
488
496
|
result = {
|
|
489
497
|
type: "composition",
|
package/dist/index.js
CHANGED
|
@@ -495,8 +495,12 @@ var import_redirect = require("@uniformdev/redirect");
|
|
|
495
495
|
var retrieveCompositionBySlug = async ({
|
|
496
496
|
slug,
|
|
497
497
|
searchParams,
|
|
498
|
-
skipPrefetch
|
|
498
|
+
skipPrefetch,
|
|
499
|
+
locale,
|
|
500
|
+
releaseId,
|
|
501
|
+
versionId
|
|
499
502
|
}) => {
|
|
503
|
+
var _a;
|
|
500
504
|
if (!skipPrefetch) {
|
|
501
505
|
void getManifest({
|
|
502
506
|
searchParams
|
|
@@ -515,7 +519,11 @@ var retrieveCompositionBySlug = async ({
|
|
|
515
519
|
const composition = await canvasClient.getCompositionBySlug({
|
|
516
520
|
slug,
|
|
517
521
|
state,
|
|
518
|
-
withComponentIDs: true
|
|
522
|
+
withComponentIDs: true,
|
|
523
|
+
withContentSourceMap: isOnVercelPreviewEnvironment() && ((_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing),
|
|
524
|
+
locale,
|
|
525
|
+
releaseId,
|
|
526
|
+
versionId
|
|
519
527
|
});
|
|
520
528
|
result = {
|
|
521
529
|
type: "composition",
|
package/dist/index.mjs
CHANGED
|
@@ -463,8 +463,12 @@ import { getTargetVariableExpandedUrl } from "@uniformdev/redirect";
|
|
|
463
463
|
var retrieveCompositionBySlug = async ({
|
|
464
464
|
slug,
|
|
465
465
|
searchParams,
|
|
466
|
-
skipPrefetch
|
|
466
|
+
skipPrefetch,
|
|
467
|
+
locale,
|
|
468
|
+
releaseId,
|
|
469
|
+
versionId
|
|
467
470
|
}) => {
|
|
471
|
+
var _a;
|
|
468
472
|
if (!skipPrefetch) {
|
|
469
473
|
void getManifest({
|
|
470
474
|
searchParams
|
|
@@ -483,7 +487,11 @@ var retrieveCompositionBySlug = async ({
|
|
|
483
487
|
const composition = await canvasClient.getCompositionBySlug({
|
|
484
488
|
slug,
|
|
485
489
|
state,
|
|
486
|
-
withComponentIDs: true
|
|
490
|
+
withComponentIDs: true,
|
|
491
|
+
withContentSourceMap: isOnVercelPreviewEnvironment() && ((_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing),
|
|
492
|
+
locale,
|
|
493
|
+
releaseId,
|
|
494
|
+
versionId
|
|
487
495
|
});
|
|
488
496
|
result = {
|
|
489
497
|
type: "composition",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.147.1-alpha.
|
|
3
|
+
"version": "19.147.1-alpha.7+28bb27296b",
|
|
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.147.1-alpha.
|
|
65
|
-
"@uniformdev/canvas-next-rsc-client": "^19.147.1-alpha.
|
|
66
|
-
"@uniformdev/canvas-next-rsc-shared": "^19.147.1-alpha.
|
|
67
|
-
"@uniformdev/canvas-react": "19.147.1-alpha.
|
|
68
|
-
"@uniformdev/context": "19.147.1-alpha.
|
|
69
|
-
"@uniformdev/project-map": "19.147.1-alpha.
|
|
70
|
-
"@uniformdev/redirect": "19.147.1-alpha.
|
|
71
|
-
"@uniformdev/richtext": "19.147.1-alpha.
|
|
72
|
-
"@uniformdev/webhooks": "19.147.1-alpha.
|
|
64
|
+
"@uniformdev/canvas": "19.147.1-alpha.7+28bb27296b",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^19.147.1-alpha.7+28bb27296b",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.147.1-alpha.7+28bb27296b",
|
|
67
|
+
"@uniformdev/canvas-react": "19.147.1-alpha.7+28bb27296b",
|
|
68
|
+
"@uniformdev/context": "19.147.1-alpha.7+28bb27296b",
|
|
69
|
+
"@uniformdev/project-map": "19.147.1-alpha.7+28bb27296b",
|
|
70
|
+
"@uniformdev/redirect": "19.147.1-alpha.7+28bb27296b",
|
|
71
|
+
"@uniformdev/richtext": "19.147.1-alpha.7+28bb27296b",
|
|
72
|
+
"@uniformdev/webhooks": "19.147.1-alpha.7+28bb27296b",
|
|
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": "28bb27296bbf7b66680eab516958fef155d59aa4"
|
|
90
90
|
}
|