@uniformdev/canvas-next-rsc 19.82.1 → 19.82.2-alpha.19
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-d178d865.d.ts → UniformComposition-0pvEHduc.d.mts} +1 -1
- package/dist/UniformComposition-0pvEHduc.d.ts +64 -0
- package/dist/component.d.mts +2 -2
- package/dist/component.d.ts +2 -2
- package/dist/handler.d.mts +1 -1
- package/dist/handler.d.ts +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +11 -11
|
@@ -61,4 +61,4 @@ type ResolveComponentsOptions = {
|
|
|
61
61
|
mode: UniformCompositionProps['mode'];
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
export { ResolveComponentFunction as R, UniformCompositionProps as U, UniformComposition as a, ResolveComponentResult as b, resolveComposition as r };
|
|
64
|
+
export { type ResolveComponentFunction as R, type UniformCompositionProps as U, UniformComposition as a, type ResolveComponentResult as b, resolveComposition as r };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
|
+
import { ResolvedRouteGetResponse, ComponentInstance } from '@uniformdev/canvas';
|
|
4
|
+
import { PageParameters, ComponentProps, CompositionContext, AppDirectoryServerContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
5
|
+
|
|
6
|
+
type UniformStaticCompositionProps = {
|
|
7
|
+
/**
|
|
8
|
+
* How to render the composition.
|
|
9
|
+
*/
|
|
10
|
+
mode: 'static';
|
|
11
|
+
};
|
|
12
|
+
type UniformServerCompositionProps = {
|
|
13
|
+
/**
|
|
14
|
+
* How to render the composition.
|
|
15
|
+
*/
|
|
16
|
+
mode: 'server';
|
|
17
|
+
/**
|
|
18
|
+
* The Context instance to use for server-side rendering.
|
|
19
|
+
*/
|
|
20
|
+
serverContext?: AppDirectoryServerContext;
|
|
21
|
+
};
|
|
22
|
+
type UniformCompositionProps = PageParameters & {
|
|
23
|
+
/**
|
|
24
|
+
* The route data to render.
|
|
25
|
+
*/
|
|
26
|
+
route: ResolvedRouteGetResponse | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Function to map composition components to React components.
|
|
29
|
+
*/
|
|
30
|
+
resolveComponent: ResolveComponentFunction;
|
|
31
|
+
} & (UniformStaticCompositionProps | UniformServerCompositionProps);
|
|
32
|
+
declare const UniformComposition: React.FC<UniformCompositionProps>;
|
|
33
|
+
type ResolveComponentFunction = (options: {
|
|
34
|
+
component: ComponentInstance;
|
|
35
|
+
}) => ResolveComponentResult;
|
|
36
|
+
type ResolveComponentResult = {
|
|
37
|
+
component: ComponentType<ComponentProps<any, any>> | null;
|
|
38
|
+
includeContext?: boolean;
|
|
39
|
+
};
|
|
40
|
+
declare const resolveComposition: (props: Omit<ResolveComponentsOptions, 'slotName' | 'slotIndex' | 'target'> & {
|
|
41
|
+
composition: ComponentInstance;
|
|
42
|
+
compositionContext: CompositionContext;
|
|
43
|
+
}) => React$1.FunctionComponentElement<{
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
}> | null;
|
|
46
|
+
type ResolveComponentsOptions = {
|
|
47
|
+
serverContext?: AppDirectoryServerContext;
|
|
48
|
+
target: {
|
|
49
|
+
type: 'root';
|
|
50
|
+
composition: ComponentInstance;
|
|
51
|
+
} | {
|
|
52
|
+
type: 'slot';
|
|
53
|
+
components: ComponentInstance[];
|
|
54
|
+
parent: ComponentInstance;
|
|
55
|
+
root: ComponentInstance;
|
|
56
|
+
};
|
|
57
|
+
slotName: string | undefined;
|
|
58
|
+
slotIndex: number | undefined;
|
|
59
|
+
resolveComponent: ResolveComponentFunction;
|
|
60
|
+
compositionContext: CompositionContext;
|
|
61
|
+
mode: UniformCompositionProps['mode'];
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { type ResolveComponentFunction as R, type UniformCompositionProps as U, UniformComposition as a, type ResolveComponentResult as b, resolveComposition as r };
|
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-0pvEHduc.mjs';
|
|
5
5
|
import { ComponentInstance } from '@uniformdev/canvas';
|
|
6
6
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
7
7
|
import { PureUniformTextProps } from '@uniformdev/canvas-react/core';
|
|
@@ -73,4 +73,4 @@ type UniformTextProps = {
|
|
|
73
73
|
} & Omit<PureUniformTextProps, 'skipCustomRendering' | 'isContextualEditing'>;
|
|
74
74
|
declare const UniformText: ({ context, ...rest }: UniformTextProps) => React__default.JSX.Element;
|
|
75
75
|
|
|
76
|
-
export { CustomSlotChildRenderFunc, DefaultNotImplementedComponent, UniformRichText, UniformRichTextProps, UniformSlot, UniformSlotProps, UniformText, UniformTextProps };
|
|
76
|
+
export { type CustomSlotChildRenderFunc, DefaultNotImplementedComponent, UniformRichText, type UniformRichTextProps, UniformSlot, type UniformSlotProps, UniformText, type UniformTextProps };
|
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-0pvEHduc.js';
|
|
5
5
|
import { ComponentInstance } from '@uniformdev/canvas';
|
|
6
6
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
7
7
|
import { PureUniformTextProps } from '@uniformdev/canvas-react/core';
|
|
@@ -73,4 +73,4 @@ type UniformTextProps = {
|
|
|
73
73
|
} & Omit<PureUniformTextProps, 'skipCustomRendering' | 'isContextualEditing'>;
|
|
74
74
|
declare const UniformText: ({ context, ...rest }: UniformTextProps) => React__default.JSX.Element;
|
|
75
75
|
|
|
76
|
-
export { CustomSlotChildRenderFunc, DefaultNotImplementedComponent, UniformRichText, UniformRichTextProps, UniformSlot, UniformSlotProps, UniformText, UniformTextProps };
|
|
76
|
+
export { type CustomSlotChildRenderFunc, DefaultNotImplementedComponent, UniformRichText, type UniformRichTextProps, UniformSlot, type UniformSlotProps, UniformText, type UniformTextProps };
|
package/dist/handler.d.mts
CHANGED
|
@@ -9,4 +9,4 @@ declare const createPreviewOPTIONSRouteHandler: () => () => Promise<Response>;
|
|
|
9
9
|
|
|
10
10
|
declare const createPreviewPOSTRouteHandler: () => (request: Request) => Promise<Response>;
|
|
11
11
|
|
|
12
|
-
export { CreatePreviewGETRouteHandlerOptions, createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|
|
12
|
+
export { type CreatePreviewGETRouteHandlerOptions, createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|
package/dist/handler.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ declare const createPreviewOPTIONSRouteHandler: () => () => Promise<Response>;
|
|
|
9
9
|
|
|
10
10
|
declare const createPreviewPOSTRouteHandler: () => (request: Request) => Promise<Response>;
|
|
11
11
|
|
|
12
|
-
export { CreatePreviewGETRouteHandlerOptions, createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|
|
12
|
+
export { type CreatePreviewGETRouteHandlerOptions, createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|
package/dist/index.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ 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-0pvEHduc.mjs';
|
|
9
|
+
export { a as UniformComposition, r as resolveComposition } from './UniformComposition-0pvEHduc.mjs';
|
|
10
10
|
import { ClientContextComponent } from '@uniformdev/canvas-next-rsc-client';
|
|
11
11
|
|
|
12
12
|
type GetCanvasClientOptions = {
|
|
@@ -250,4 +250,4 @@ type RetrieveRouteOptions = PageParameters & {
|
|
|
250
250
|
};
|
|
251
251
|
declare const retrieveRoute: ({ params, searchParams, skipPrefetch, }: RetrieveRouteOptions) => Promise<ResolvedRouteGetResponse>;
|
|
252
252
|
|
|
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 };
|
|
253
|
+
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, retrieveRoute };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ 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-0pvEHduc.js';
|
|
9
|
+
export { a as UniformComposition, r as resolveComposition } from './UniformComposition-0pvEHduc.js';
|
|
10
10
|
import { ClientContextComponent } from '@uniformdev/canvas-next-rsc-client';
|
|
11
11
|
|
|
12
12
|
type GetCanvasClientOptions = {
|
|
@@ -250,4 +250,4 @@ type RetrieveRouteOptions = PageParameters & {
|
|
|
250
250
|
};
|
|
251
251
|
declare const retrieveRoute: ({ params, searchParams, skipPrefetch, }: RetrieveRouteOptions) => Promise<ResolvedRouteGetResponse>;
|
|
252
252
|
|
|
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 };
|
|
253
|
+
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, retrieveRoute };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc",
|
|
3
|
-
"version": "19.82.
|
|
3
|
+
"version": "19.82.2-alpha.19+6199510dc",
|
|
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.82.
|
|
65
|
-
"@uniformdev/canvas-next-rsc-client": "^19.82.
|
|
66
|
-
"@uniformdev/canvas-next-rsc-shared": "^19.82.
|
|
67
|
-
"@uniformdev/canvas-react": "19.82.
|
|
68
|
-
"@uniformdev/context": "19.82.
|
|
69
|
-
"@uniformdev/project-map": "19.82.
|
|
70
|
-
"@uniformdev/redirect": "19.82.
|
|
71
|
-
"@uniformdev/richtext": "19.82.
|
|
72
|
-
"@uniformdev/webhooks": "19.82.
|
|
64
|
+
"@uniformdev/canvas": "19.82.2-alpha.19+6199510dc",
|
|
65
|
+
"@uniformdev/canvas-next-rsc-client": "^19.82.2-alpha.19+6199510dc",
|
|
66
|
+
"@uniformdev/canvas-next-rsc-shared": "^19.82.2-alpha.19+6199510dc",
|
|
67
|
+
"@uniformdev/canvas-react": "19.82.2-alpha.19+6199510dc",
|
|
68
|
+
"@uniformdev/context": "19.82.2-alpha.19+6199510dc",
|
|
69
|
+
"@uniformdev/project-map": "19.82.2-alpha.19+6199510dc",
|
|
70
|
+
"@uniformdev/redirect": "19.82.2-alpha.19+6199510dc",
|
|
71
|
+
"@uniformdev/richtext": "19.82.2-alpha.19+6199510dc",
|
|
72
|
+
"@uniformdev/webhooks": "19.82.2-alpha.19+6199510dc",
|
|
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": "6199510dc30be5eb343702326180ea178087d524"
|
|
90
90
|
}
|