@uniformdev/canvas-next-rsc 19.74.0 → 19.75.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/dist/{UniformComposition-38e22896.d.ts → UniformComposition-d178d865.d.ts} +5 -2
- package/dist/component.d.mts +1 -1
- package/dist/component.d.ts +1 -1
- package/dist/handler.js +1 -1
- package/dist/handler.mjs +1 -1
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.esm.js +21 -25
- package/dist/index.js +23 -26
- package/dist/index.mjs +21 -25
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { ResolvedRouteGetResponse, ComponentInstance } from '@uniformdev/canvas';
|
|
4
4
|
import { PageParameters, ComponentProps, CompositionContext, AppDirectoryServerContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
5
5
|
|
|
6
6
|
type UniformStaticCompositionProps = {
|
|
@@ -20,7 +20,10 @@ type UniformServerCompositionProps = {
|
|
|
20
20
|
serverContext?: AppDirectoryServerContext;
|
|
21
21
|
};
|
|
22
22
|
type UniformCompositionProps = PageParameters & {
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* The route data to render.
|
|
25
|
+
*/
|
|
26
|
+
route: ResolvedRouteGetResponse | undefined;
|
|
24
27
|
/**
|
|
25
28
|
* Function to map composition components to React components.
|
|
26
29
|
*/
|
package/dist/component.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, CompositionContext, SlotDefinition } from '@uniformdev/canvas-next-rsc-shared';
|
|
2
2
|
export { ComponentProps, CompositionContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
3
3
|
import React__default, { PropsWithChildren, ReactNode, Key } from 'react';
|
|
4
|
-
export { R as ResolveComponentFunction, b as ResolveComponentResult } from './UniformComposition-
|
|
4
|
+
export { R as ResolveComponentFunction, b as ResolveComponentResult } from './UniformComposition-d178d865.js';
|
|
5
5
|
import { ComponentInstance } from '@uniformdev/canvas';
|
|
6
6
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
7
7
|
import { PureUniformTextProps } from '@uniformdev/canvas-react/core';
|
package/dist/component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, CompositionContext, SlotDefinition } from '@uniformdev/canvas-next-rsc-shared';
|
|
2
2
|
export { ComponentProps, CompositionContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
3
3
|
import React__default, { PropsWithChildren, ReactNode, Key } from 'react';
|
|
4
|
-
export { R as ResolveComponentFunction, b as ResolveComponentResult } from './UniformComposition-
|
|
4
|
+
export { R as ResolveComponentFunction, b as ResolveComponentResult } from './UniformComposition-d178d865.js';
|
|
5
5
|
import { ComponentInstance } from '@uniformdev/canvas';
|
|
6
6
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
7
7
|
import { PureUniformTextProps } from '@uniformdev/canvas-react/core';
|
package/dist/handler.js
CHANGED
|
@@ -248,7 +248,7 @@ var createPreviewGETRouteHandler = (options) => {
|
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
headers: {
|
|
251
|
-
"Access-Control-Allow-Origin": process.env.UNIFORM_CLI_BASE_URL || "
|
|
251
|
+
"Access-Control-Allow-Origin": process.env.UNIFORM_CLI_BASE_URL || "https://uniform.app"
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
);
|
package/dist/handler.mjs
CHANGED
|
@@ -228,7 +228,7 @@ var createPreviewGETRouteHandler = (options) => {
|
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
headers: {
|
|
231
|
-
"Access-Control-Allow-Origin": process.env.UNIFORM_CLI_BASE_URL || "
|
|
231
|
+
"Access-Control-Allow-Origin": process.env.UNIFORM_CLI_BASE_URL || "https://uniform.app"
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
);
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CanvasClient, RouteClient } from '@uniformdev/canvas';
|
|
1
|
+
import { CanvasClient, RouteClient, ResolvedRouteGetResponse } from '@uniformdev/canvas';
|
|
2
2
|
import { CacheMode, 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';
|
|
5
5
|
import { ProjectMapClient, ProjectMapNode } from '@uniformdev/project-map';
|
|
6
6
|
import { ContextState, ContextOptions } from '@uniformdev/context';
|
|
7
7
|
import React__default, { PropsWithChildren } from 'react';
|
|
8
|
-
import { U as UniformCompositionProps } from './UniformComposition-
|
|
9
|
-
export { a as UniformComposition, r as resolveComposition } from './UniformComposition-
|
|
8
|
+
import { U as UniformCompositionProps } from './UniformComposition-d178d865.js';
|
|
9
|
+
export { a as UniformComposition, r as resolveComposition } from './UniformComposition-d178d865.js';
|
|
10
10
|
import { ClientContextComponent } from '@uniformdev/canvas-next-rsc-client';
|
|
11
11
|
|
|
12
12
|
type GetCanvasClientOptions = {
|
|
@@ -219,7 +219,7 @@ type UniformContextProps = {
|
|
|
219
219
|
};
|
|
220
220
|
declare const UniformContext: React__default.FC<PropsWithChildren<UniformContextProps>>;
|
|
221
221
|
|
|
222
|
-
type UniformPlaygroundProps = PlaygroundParameters & Omit<UniformCompositionProps, 'params' | 'searchParams' | '
|
|
222
|
+
type UniformPlaygroundProps = PlaygroundParameters & Omit<UniformCompositionProps, 'params' | 'searchParams' | 'route' | 'mode'>;
|
|
223
223
|
declare const UniformPlayground: ({ searchParams, ...rest }: UniformPlaygroundProps) => Promise<React__default.JSX.Element>;
|
|
224
224
|
|
|
225
225
|
type CreateServerUniformContextProps = Omit<ContextOptions, 'transitionStore' | 'manifest'> & {
|
|
@@ -240,4 +240,6 @@ declare const isIncontextEditingEnabled: ({ searchParams, }: {
|
|
|
240
240
|
declare const isOnVercelPreviewEnvironment: () => boolean;
|
|
241
241
|
declare const isDevelopmentEnvironment: () => boolean;
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
declare const retrieveRoute: ({ params, searchParams, }: Pick<PageParameters, 'params' | 'searchParams'>) => Promise<ResolvedRouteGetResponse>;
|
|
244
|
+
|
|
245
|
+
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
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CanvasClient, RouteClient } from '@uniformdev/canvas';
|
|
1
|
+
import { CanvasClient, RouteClient, ResolvedRouteGetResponse } from '@uniformdev/canvas';
|
|
2
2
|
import { CacheMode, 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';
|
|
5
5
|
import { ProjectMapClient, ProjectMapNode } from '@uniformdev/project-map';
|
|
6
6
|
import { ContextState, ContextOptions } from '@uniformdev/context';
|
|
7
7
|
import React__default, { PropsWithChildren } from 'react';
|
|
8
|
-
import { U as UniformCompositionProps } from './UniformComposition-
|
|
9
|
-
export { a as UniformComposition, r as resolveComposition } from './UniformComposition-
|
|
8
|
+
import { U as UniformCompositionProps } from './UniformComposition-d178d865.js';
|
|
9
|
+
export { a as UniformComposition, r as resolveComposition } from './UniformComposition-d178d865.js';
|
|
10
10
|
import { ClientContextComponent } from '@uniformdev/canvas-next-rsc-client';
|
|
11
11
|
|
|
12
12
|
type GetCanvasClientOptions = {
|
|
@@ -219,7 +219,7 @@ type UniformContextProps = {
|
|
|
219
219
|
};
|
|
220
220
|
declare const UniformContext: React__default.FC<PropsWithChildren<UniformContextProps>>;
|
|
221
221
|
|
|
222
|
-
type UniformPlaygroundProps = PlaygroundParameters & Omit<UniformCompositionProps, 'params' | 'searchParams' | '
|
|
222
|
+
type UniformPlaygroundProps = PlaygroundParameters & Omit<UniformCompositionProps, 'params' | 'searchParams' | 'route' | 'mode'>;
|
|
223
223
|
declare const UniformPlayground: ({ searchParams, ...rest }: UniformPlaygroundProps) => Promise<React__default.JSX.Element>;
|
|
224
224
|
|
|
225
225
|
type CreateServerUniformContextProps = Omit<ContextOptions, 'transitionStore' | 'manifest'> & {
|
|
@@ -240,4 +240,6 @@ declare const isIncontextEditingEnabled: ({ searchParams, }: {
|
|
|
240
240
|
declare const isOnVercelPreviewEnvironment: () => boolean;
|
|
241
241
|
declare const isDevelopmentEnvironment: () => boolean;
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
declare const retrieveRoute: ({ params, searchParams, }: Pick<PageParameters, 'params' | 'searchParams'>) => Promise<ResolvedRouteGetResponse>;
|
|
244
|
+
|
|
245
|
+
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
|
@@ -487,12 +487,8 @@ var retrieveRoute = async ({
|
|
|
487
487
|
break;
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
-
return {
|
|
494
|
-
...result,
|
|
495
|
-
path: value
|
|
490
|
+
return result || {
|
|
491
|
+
type: "notFound"
|
|
496
492
|
};
|
|
497
493
|
};
|
|
498
494
|
var retrieveRouteByPath = async ({
|
|
@@ -599,6 +595,7 @@ var TestServer = ({ test, component, contextInstance, slots }) => {
|
|
|
599
595
|
// src/components/UniformComposition.ts
|
|
600
596
|
var UniformComposition = async ({
|
|
601
597
|
resolveComponent,
|
|
598
|
+
route,
|
|
602
599
|
...props
|
|
603
600
|
}) => {
|
|
604
601
|
let searchParams;
|
|
@@ -611,26 +608,12 @@ var UniformComposition = async ({
|
|
|
611
608
|
});
|
|
612
609
|
searchParams = props.searchParams;
|
|
613
610
|
}
|
|
614
|
-
|
|
615
|
-
if (props.composition) {
|
|
616
|
-
const { value } = resolvePath2(props);
|
|
617
|
-
route = {
|
|
618
|
-
type: "composition",
|
|
619
|
-
compositionApiResponse: props.composition,
|
|
620
|
-
matchedRoute: "composition",
|
|
621
|
-
path: value
|
|
622
|
-
};
|
|
623
|
-
} else {
|
|
624
|
-
route = await retrieveRoute({
|
|
625
|
-
params: props.params,
|
|
626
|
-
searchParams
|
|
627
|
-
});
|
|
628
|
-
}
|
|
611
|
+
const { value: path } = resolvePath2(props);
|
|
629
612
|
if (!route || route.type === "notFound") {
|
|
630
613
|
notFound();
|
|
631
614
|
}
|
|
632
615
|
if (route.type === "redirect") {
|
|
633
|
-
const href = resolveRedirectHref(route,
|
|
616
|
+
const href = resolveRedirectHref(route, path);
|
|
634
617
|
redirect(href);
|
|
635
618
|
}
|
|
636
619
|
const state = route.compositionApiResponse.state;
|
|
@@ -658,7 +641,7 @@ var UniformComposition = async ({
|
|
|
658
641
|
isContextualEditing: isIncontextEditingEnabled({ searchParams }),
|
|
659
642
|
isDraftMode: isDraftModeEnabled({ searchParams }),
|
|
660
643
|
state: route.compositionApiResponse.state,
|
|
661
|
-
path
|
|
644
|
+
path
|
|
662
645
|
};
|
|
663
646
|
const resolved = resolveComposition({
|
|
664
647
|
composition: route.compositionApiResponse.composition,
|
|
@@ -950,7 +933,19 @@ var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
|
950
933
|
if (!composition) {
|
|
951
934
|
notFound2();
|
|
952
935
|
}
|
|
953
|
-
return /* @__PURE__ */ React5.createElement(
|
|
936
|
+
return /* @__PURE__ */ React5.createElement(
|
|
937
|
+
UniformComposition,
|
|
938
|
+
{
|
|
939
|
+
mode: "server",
|
|
940
|
+
params: {},
|
|
941
|
+
route: {
|
|
942
|
+
type: "composition",
|
|
943
|
+
compositionApiResponse: composition,
|
|
944
|
+
matchedRoute: "composition"
|
|
945
|
+
},
|
|
946
|
+
...rest
|
|
947
|
+
}
|
|
948
|
+
);
|
|
954
949
|
};
|
|
955
950
|
export {
|
|
956
951
|
ContextUpdateTransfer,
|
|
@@ -973,5 +968,6 @@ export {
|
|
|
973
968
|
isDraftModeEnabled,
|
|
974
969
|
isIncontextEditingEnabled,
|
|
975
970
|
isOnVercelPreviewEnvironment,
|
|
976
|
-
resolveComposition
|
|
971
|
+
resolveComposition,
|
|
972
|
+
retrieveRoute
|
|
977
973
|
};
|
package/dist/index.js
CHANGED
|
@@ -50,7 +50,8 @@ __export(src_exports, {
|
|
|
50
50
|
isDraftModeEnabled: () => isDraftModeEnabled,
|
|
51
51
|
isIncontextEditingEnabled: () => isIncontextEditingEnabled,
|
|
52
52
|
isOnVercelPreviewEnvironment: () => isOnVercelPreviewEnvironment,
|
|
53
|
-
resolveComposition: () => resolveComposition
|
|
53
|
+
resolveComposition: () => resolveComposition,
|
|
54
|
+
retrieveRoute: () => retrieveRoute
|
|
54
55
|
});
|
|
55
56
|
module.exports = __toCommonJS(src_exports);
|
|
56
57
|
var import_server_only = require("server-only");
|
|
@@ -525,12 +526,8 @@ var retrieveRoute = async ({
|
|
|
525
526
|
break;
|
|
526
527
|
}
|
|
527
528
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
531
|
-
return {
|
|
532
|
-
...result,
|
|
533
|
-
path: value
|
|
529
|
+
return result || {
|
|
530
|
+
type: "notFound"
|
|
534
531
|
};
|
|
535
532
|
};
|
|
536
533
|
var retrieveRouteByPath = async ({
|
|
@@ -637,6 +634,7 @@ var TestServer = ({ test, component, contextInstance, slots }) => {
|
|
|
637
634
|
// src/components/UniformComposition.ts
|
|
638
635
|
var UniformComposition = async ({
|
|
639
636
|
resolveComponent,
|
|
637
|
+
route,
|
|
640
638
|
...props
|
|
641
639
|
}) => {
|
|
642
640
|
let searchParams;
|
|
@@ -649,26 +647,12 @@ var UniformComposition = async ({
|
|
|
649
647
|
});
|
|
650
648
|
searchParams = props.searchParams;
|
|
651
649
|
}
|
|
652
|
-
|
|
653
|
-
if (props.composition) {
|
|
654
|
-
const { value } = (0, import_canvas_next_rsc_shared6.resolvePath)(props);
|
|
655
|
-
route = {
|
|
656
|
-
type: "composition",
|
|
657
|
-
compositionApiResponse: props.composition,
|
|
658
|
-
matchedRoute: "composition",
|
|
659
|
-
path: value
|
|
660
|
-
};
|
|
661
|
-
} else {
|
|
662
|
-
route = await retrieveRoute({
|
|
663
|
-
params: props.params,
|
|
664
|
-
searchParams
|
|
665
|
-
});
|
|
666
|
-
}
|
|
650
|
+
const { value: path } = (0, import_canvas_next_rsc_shared6.resolvePath)(props);
|
|
667
651
|
if (!route || route.type === "notFound") {
|
|
668
652
|
(0, import_navigation.notFound)();
|
|
669
653
|
}
|
|
670
654
|
if (route.type === "redirect") {
|
|
671
|
-
const href = resolveRedirectHref(route,
|
|
655
|
+
const href = resolveRedirectHref(route, path);
|
|
672
656
|
(0, import_navigation.redirect)(href);
|
|
673
657
|
}
|
|
674
658
|
const state = route.compositionApiResponse.state;
|
|
@@ -696,7 +680,7 @@ var UniformComposition = async ({
|
|
|
696
680
|
isContextualEditing: isIncontextEditingEnabled({ searchParams }),
|
|
697
681
|
isDraftMode: isDraftModeEnabled({ searchParams }),
|
|
698
682
|
state: route.compositionApiResponse.state,
|
|
699
|
-
path
|
|
683
|
+
path
|
|
700
684
|
};
|
|
701
685
|
const resolved = resolveComposition({
|
|
702
686
|
composition: route.compositionApiResponse.composition,
|
|
@@ -985,7 +969,19 @@ var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
|
985
969
|
if (!composition) {
|
|
986
970
|
(0, import_navigation2.notFound)();
|
|
987
971
|
}
|
|
988
|
-
return /* @__PURE__ */ import_react9.default.createElement(
|
|
972
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
|
973
|
+
UniformComposition,
|
|
974
|
+
{
|
|
975
|
+
mode: "server",
|
|
976
|
+
params: {},
|
|
977
|
+
route: {
|
|
978
|
+
type: "composition",
|
|
979
|
+
compositionApiResponse: composition,
|
|
980
|
+
matchedRoute: "composition"
|
|
981
|
+
},
|
|
982
|
+
...rest
|
|
983
|
+
}
|
|
984
|
+
);
|
|
989
985
|
};
|
|
990
986
|
// Annotate the CommonJS export names for ESM import in node:
|
|
991
987
|
0 && (module.exports = {
|
|
@@ -1009,5 +1005,6 @@ var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
|
1009
1005
|
isDraftModeEnabled,
|
|
1010
1006
|
isIncontextEditingEnabled,
|
|
1011
1007
|
isOnVercelPreviewEnvironment,
|
|
1012
|
-
resolveComposition
|
|
1008
|
+
resolveComposition,
|
|
1009
|
+
retrieveRoute
|
|
1013
1010
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -487,12 +487,8 @@ var retrieveRoute = async ({
|
|
|
487
487
|
break;
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
-
return {
|
|
494
|
-
...result,
|
|
495
|
-
path: value
|
|
490
|
+
return result || {
|
|
491
|
+
type: "notFound"
|
|
496
492
|
};
|
|
497
493
|
};
|
|
498
494
|
var retrieveRouteByPath = async ({
|
|
@@ -599,6 +595,7 @@ var TestServer = ({ test, component, contextInstance, slots }) => {
|
|
|
599
595
|
// src/components/UniformComposition.ts
|
|
600
596
|
var UniformComposition = async ({
|
|
601
597
|
resolveComponent,
|
|
598
|
+
route,
|
|
602
599
|
...props
|
|
603
600
|
}) => {
|
|
604
601
|
let searchParams;
|
|
@@ -611,26 +608,12 @@ var UniformComposition = async ({
|
|
|
611
608
|
});
|
|
612
609
|
searchParams = props.searchParams;
|
|
613
610
|
}
|
|
614
|
-
|
|
615
|
-
if (props.composition) {
|
|
616
|
-
const { value } = resolvePath2(props);
|
|
617
|
-
route = {
|
|
618
|
-
type: "composition",
|
|
619
|
-
compositionApiResponse: props.composition,
|
|
620
|
-
matchedRoute: "composition",
|
|
621
|
-
path: value
|
|
622
|
-
};
|
|
623
|
-
} else {
|
|
624
|
-
route = await retrieveRoute({
|
|
625
|
-
params: props.params,
|
|
626
|
-
searchParams
|
|
627
|
-
});
|
|
628
|
-
}
|
|
611
|
+
const { value: path } = resolvePath2(props);
|
|
629
612
|
if (!route || route.type === "notFound") {
|
|
630
613
|
notFound();
|
|
631
614
|
}
|
|
632
615
|
if (route.type === "redirect") {
|
|
633
|
-
const href = resolveRedirectHref(route,
|
|
616
|
+
const href = resolveRedirectHref(route, path);
|
|
634
617
|
redirect(href);
|
|
635
618
|
}
|
|
636
619
|
const state = route.compositionApiResponse.state;
|
|
@@ -658,7 +641,7 @@ var UniformComposition = async ({
|
|
|
658
641
|
isContextualEditing: isIncontextEditingEnabled({ searchParams }),
|
|
659
642
|
isDraftMode: isDraftModeEnabled({ searchParams }),
|
|
660
643
|
state: route.compositionApiResponse.state,
|
|
661
|
-
path
|
|
644
|
+
path
|
|
662
645
|
};
|
|
663
646
|
const resolved = resolveComposition({
|
|
664
647
|
composition: route.compositionApiResponse.composition,
|
|
@@ -950,7 +933,19 @@ var UniformPlayground = async ({ searchParams, ...rest }) => {
|
|
|
950
933
|
if (!composition) {
|
|
951
934
|
notFound2();
|
|
952
935
|
}
|
|
953
|
-
return /* @__PURE__ */ React5.createElement(
|
|
936
|
+
return /* @__PURE__ */ React5.createElement(
|
|
937
|
+
UniformComposition,
|
|
938
|
+
{
|
|
939
|
+
mode: "server",
|
|
940
|
+
params: {},
|
|
941
|
+
route: {
|
|
942
|
+
type: "composition",
|
|
943
|
+
compositionApiResponse: composition,
|
|
944
|
+
matchedRoute: "composition"
|
|
945
|
+
},
|
|
946
|
+
...rest
|
|
947
|
+
}
|
|
948
|
+
);
|
|
954
949
|
};
|
|
955
950
|
export {
|
|
956
951
|
ContextUpdateTransfer,
|
|
@@ -973,5 +968,6 @@ export {
|
|
|
973
968
|
isDraftModeEnabled,
|
|
974
969
|
isIncontextEditingEnabled,
|
|
975
970
|
isOnVercelPreviewEnvironment,
|
|
976
|
-
resolveComposition
|
|
971
|
+
resolveComposition,
|
|
972
|
+
retrieveRoute
|
|
977
973
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.75.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.
|
|
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.75.0",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^19.75.0",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.75.0",
|
|
67
|
+
"@uniformdev/canvas-react": "19.75.0",
|
|
68
|
+
"@uniformdev/context": "19.75.0",
|
|
69
|
+
"@uniformdev/project-map": "19.75.0",
|
|
70
|
+
"@uniformdev/redirect": "19.75.0",
|
|
71
|
+
"@uniformdev/richtext": "19.75.0",
|
|
72
|
+
"@uniformdev/webhooks": "19.75.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": "
|
|
89
|
+
"gitHead": "4d8548444cee7af4c48c76fb1ef5237cc8f44c44"
|
|
90
90
|
}
|