@jfdevelops/react-layout 1.6.1 → 2.1.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/create-config/create-defined-resource-layout.cjs +26 -14
- package/dist/create-config/create-defined-resource-layout.cjs.map +1 -1
- package/dist/create-config/create-defined-resource-layout.d.cts +12 -6
- package/dist/create-config/create-defined-resource-layout.d.cts.map +1 -1
- package/dist/create-config/create-defined-resource-layout.d.mts +12 -6
- package/dist/create-config/create-defined-resource-layout.d.mts.map +1 -1
- package/dist/create-config/create-defined-resource-layout.mjs +27 -15
- package/dist/create-config/create-defined-resource-layout.mjs.map +1 -1
- package/dist/create-config/define-layout.cjs +129 -58
- package/dist/create-config/define-layout.cjs.map +1 -1
- package/dist/create-config/define-layout.d.cts +9 -13
- package/dist/create-config/define-layout.d.cts.map +1 -1
- package/dist/create-config/define-layout.d.mts +9 -13
- package/dist/create-config/define-layout.d.mts.map +1 -1
- package/dist/create-config/define-layout.mjs +130 -59
- package/dist/create-config/define-layout.mjs.map +1 -1
- package/dist/create-config/for-resources/create-component.d.cts +62 -38
- package/dist/create-config/for-resources/create-component.d.cts.map +1 -1
- package/dist/create-config/for-resources/create-component.d.mts +62 -38
- package/dist/create-config/for-resources/create-component.d.mts.map +1 -1
- package/dist/create-config/for-resources/create-for-resources.cjs +88 -12
- package/dist/create-config/for-resources/create-for-resources.cjs.map +1 -1
- package/dist/create-config/for-resources/create-for-resources.mjs +88 -12
- package/dist/create-config/for-resources/create-for-resources.mjs.map +1 -1
- package/dist/create-config/for-resources/scoped-layout.d.cts +2 -2
- package/dist/create-config/for-resources/scoped-layout.d.cts.map +1 -1
- package/dist/create-config/for-resources/scoped-layout.d.mts +2 -2
- package/dist/create-config/for-resources/scoped-layout.d.mts.map +1 -1
- package/dist/create-config/for-resources/scoped-render.cjs +39 -4
- package/dist/create-config/for-resources/scoped-render.cjs.map +1 -1
- package/dist/create-config/for-resources/scoped-render.d.cts +8 -1
- package/dist/create-config/for-resources/scoped-render.d.cts.map +1 -1
- package/dist/create-config/for-resources/scoped-render.d.mts +8 -1
- package/dist/create-config/for-resources/scoped-render.d.mts.map +1 -1
- package/dist/create-config/for-resources/scoped-render.mjs +39 -4
- package/dist/create-config/for-resources/scoped-render.mjs.map +1 -1
- package/dist/create-config/index.d.cts +3 -2
- package/dist/create-config/index.d.mts +3 -2
- package/dist/create-config/layout-name.cjs +1 -1
- package/dist/create-config/layout-name.mjs +1 -1
- package/dist/create-config/lazy-resource-layout.cjs +70 -86
- package/dist/create-config/lazy-resource-layout.cjs.map +1 -1
- package/dist/create-config/lazy-resource-layout.d.cts +9 -31
- package/dist/create-config/lazy-resource-layout.d.cts.map +1 -1
- package/dist/create-config/lazy-resource-layout.d.mts +9 -31
- package/dist/create-config/lazy-resource-layout.d.mts.map +1 -1
- package/dist/create-config/lazy-resource-layout.mjs +70 -86
- package/dist/create-config/lazy-resource-layout.mjs.map +1 -1
- package/dist/create-config/preview.cjs +1 -1
- package/dist/create-config/preview.d.cts +2 -0
- package/dist/create-config/preview.d.cts.map +1 -1
- package/dist/create-config/preview.d.mts +2 -0
- package/dist/create-config/preview.d.mts.map +1 -1
- package/dist/create-config/preview.mjs +1 -1
- package/dist/create-config/render-state-context.cjs +24 -0
- package/dist/create-config/render-state-context.cjs.map +1 -0
- package/dist/create-config/render-state-context.mjs +22 -0
- package/dist/create-config/render-state-context.mjs.map +1 -0
- package/dist/create-config/render-state.cjs +58 -18
- package/dist/create-config/render-state.cjs.map +1 -1
- package/dist/create-config/render-state.d.cts +44 -21
- package/dist/create-config/render-state.d.cts.map +1 -1
- package/dist/create-config/render-state.d.mts +44 -21
- package/dist/create-config/render-state.d.mts.map +1 -1
- package/dist/create-config/render-state.mjs +55 -18
- package/dist/create-config/render-state.mjs.map +1 -1
- package/dist/create-config/state-composable.cjs +4 -2
- package/dist/create-config/state-composable.cjs.map +1 -1
- package/dist/create-config/state-composable.d.cts.map +1 -1
- package/dist/create-config/state-composable.d.mts.map +1 -1
- package/dist/create-config/state-composable.mjs +4 -2
- package/dist/create-config/state-composable.mjs.map +1 -1
- package/dist/errors/lazy-resource-error.cjs +37 -0
- package/dist/errors/lazy-resource-error.cjs.map +1 -0
- package/dist/errors/lazy-resource-error.d.cts +26 -0
- package/dist/errors/lazy-resource-error.d.cts.map +1 -0
- package/dist/errors/lazy-resource-error.d.mts +26 -0
- package/dist/errors/lazy-resource-error.d.mts.map +1 -0
- package/dist/errors/lazy-resource-error.mjs +35 -0
- package/dist/errors/lazy-resource-error.mjs.map +1 -0
- package/dist/errors/react-layout-error.cjs +1 -1
- package/dist/errors/react-layout-error.mjs +1 -1
- package/dist/errors/resource-state-error.cjs +4 -1
- package/dist/errors/resource-state-error.cjs.map +1 -1
- package/dist/errors/resource-state-error.d.cts +1 -0
- package/dist/errors/resource-state-error.d.cts.map +1 -1
- package/dist/errors/resource-state-error.d.mts +1 -0
- package/dist/errors/resource-state-error.d.mts.map +1 -1
- package/dist/errors/resource-state-error.mjs +4 -1
- package/dist/errors/resource-state-error.mjs.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.d.cts +9 -5
- package/dist/index.d.mts +9 -5
- package/dist/index.mjs +4 -3
- package/dist/lazy/create-lazy-loader.cjs +78 -0
- package/dist/lazy/create-lazy-loader.cjs.map +1 -0
- package/dist/lazy/create-lazy-loader.d.cts +19 -0
- package/dist/lazy/create-lazy-loader.d.cts.map +1 -0
- package/dist/lazy/create-lazy-loader.d.mts +19 -0
- package/dist/lazy/create-lazy-loader.d.mts.map +1 -0
- package/dist/lazy/create-lazy-loader.mjs +78 -0
- package/dist/lazy/create-lazy-loader.mjs.map +1 -0
- package/dist/lazy/create-render-state.cjs +59 -0
- package/dist/lazy/create-render-state.cjs.map +1 -0
- package/dist/lazy/create-render-state.d.cts +33 -0
- package/dist/lazy/create-render-state.d.cts.map +1 -0
- package/dist/lazy/create-render-state.d.mts +33 -0
- package/dist/lazy/create-render-state.d.mts.map +1 -0
- package/dist/lazy/create-render-state.mjs +59 -0
- package/dist/lazy/create-render-state.mjs.map +1 -0
- package/dist/lazy/fallback-props.cjs +9 -0
- package/dist/lazy/fallback-props.cjs.map +1 -0
- package/dist/lazy/fallback-props.mjs +9 -0
- package/dist/lazy/fallback-props.mjs.map +1 -0
- package/dist/lazy/inspection.cjs +51 -0
- package/dist/lazy/inspection.cjs.map +1 -0
- package/dist/lazy/inspection.d.cts +28 -0
- package/dist/lazy/inspection.d.cts.map +1 -0
- package/dist/lazy/inspection.d.mts +28 -0
- package/dist/lazy/inspection.d.mts.map +1 -0
- package/dist/lazy/inspection.mjs +50 -0
- package/dist/lazy/inspection.mjs.map +1 -0
- package/dist/lazy/lazy-boundary.cjs +63 -0
- package/dist/lazy/lazy-boundary.cjs.map +1 -0
- package/dist/lazy/lazy-boundary.mjs +63 -0
- package/dist/lazy/lazy-boundary.mjs.map +1 -0
- package/dist/lazy/scoped-content.cjs +87 -0
- package/dist/lazy/scoped-content.cjs.map +1 -0
- package/dist/lazy/scoped-content.d.cts +19 -0
- package/dist/lazy/scoped-content.d.cts.map +1 -0
- package/dist/lazy/scoped-content.d.mts +19 -0
- package/dist/lazy/scoped-content.d.mts.map +1 -0
- package/dist/lazy/scoped-content.mjs +86 -0
- package/dist/lazy/scoped-content.mjs.map +1 -0
- package/dist/lazy/types.cjs +10 -0
- package/dist/lazy/types.cjs.map +1 -0
- package/dist/lazy/types.d.cts +40 -0
- package/dist/lazy/types.d.cts.map +1 -0
- package/dist/lazy/types.d.mts +40 -0
- package/dist/lazy/types.d.mts.map +1 -0
- package/dist/lazy/types.mjs +8 -0
- package/dist/lazy/types.mjs.map +1 -0
- package/dist/props.cjs +4 -2
- package/dist/props.cjs.map +1 -1
- package/dist/props.d.cts +6 -50
- package/dist/props.d.cts.map +1 -1
- package/dist/props.d.mts +6 -50
- package/dist/props.d.mts.map +1 -1
- package/dist/props.mjs +5 -2
- package/dist/props.mjs.map +1 -1
- package/dist/resource.cjs.map +1 -1
- package/dist/resource.d.cts +1 -1
- package/dist/resource.d.cts.map +1 -1
- package/dist/resource.d.mts +1 -1
- package/dist/resource.d.mts.map +1 -1
- package/dist/resource.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,20 @@
|
|
|
1
|
+
import { LazyHandle } from "../../lazy/types.mjs";
|
|
1
2
|
import { BaseComponent, Show, UnionToIntersection } from "../../utils.mjs";
|
|
2
3
|
import { ResourceDefinition } from "../../resource.mjs";
|
|
3
|
-
import { InPropsDefinition, InPropsObject, IncludedProps, MergedLayoutInProps, PropsContextRender,
|
|
4
|
+
import { InPropsDefinition, InPropsObject, IncludedProps, MergedLayoutInProps, PropsContextRender, ResolvedIncludedPropsAsDefined } from "../../props.mjs";
|
|
5
|
+
import { BuiltinRenderStateName } from "../render-state.mjs";
|
|
6
|
+
import { ScopedCompoundName, ScopedRenderResult, reservedScopedCompoundStaticKeys } from "./scoped-render.mjs";
|
|
7
|
+
import { ScopedComponentRenderFn, ScopedLazyContent } from "../../lazy/scoped-content.mjs";
|
|
4
8
|
import { SelectedLayoutResources } from "./resource-selection.mjs";
|
|
5
|
-
import { ScopedRenderResult } from "./scoped-render.mjs";
|
|
6
9
|
import { LayoutIncludeProps, LayoutProps } from "../define-layout.mjs";
|
|
7
|
-
import { ComposableComponents } from "@jfdevelops/react-layout-composables";
|
|
10
|
+
import { ComposableComponents, MakeComposable } from "@jfdevelops/react-layout-composables";
|
|
8
11
|
import { ComponentType, JSX, ReactNode } from "react";
|
|
9
12
|
import { ResolveProps, ResolvedBuiltPropShape, SafeKeyOf } from "@jfdevelops/react-layout-validator";
|
|
10
13
|
|
|
11
14
|
//#region src/create-config/for-resources/create-component.d.ts
|
|
15
|
+
type ScopedPropsRenderDefinition<Props, RenderProps, Result, Context> = {
|
|
16
|
+
props?: Props;
|
|
17
|
+
} & ScopedLazyContent<PropsContextRender<RenderProps, Context, Result>>;
|
|
12
18
|
type ScopedComponentAvailableProps<Resources extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<Resources>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject> = MergedLayoutInProps<Resources, InProps, Composables> & LayoutCustomProps;
|
|
13
19
|
type ResourceComponentResolvedAvailableProps<Resources extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<Resources>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject, ComponentCustomProps extends InPropsObject, EntryCustomProps extends InPropsObject> = ResolvedBuiltPropShape<ScopedComponentAvailableProps<Resources, InProps, Composables, LayoutCustomProps> & ComponentCustomProps & EntryCustomProps>;
|
|
14
20
|
/** Props declared by one resource entry or createResourceComponents call. */
|
|
@@ -18,9 +24,12 @@ type ResourceComponentPropsBag<Resources extends ReadonlyArray<ResourceDefinitio
|
|
|
18
24
|
defined?: ResourceEntryDefined<Props> & Partial<ResourceComponentResolvedAvailableProps<Resources, InProps, Composables, LayoutCustomProps, ComponentCustomProps, ResourceEntryCustom<Props>>> & Record<Exclude<SafeKeyOf<ResourceEntryDefined<Props>>, SafeKeyOf<ResourceComponentResolvedAvailableProps<Resources, InProps, Composables, LayoutCustomProps, ComponentCustomProps, ResourceEntryCustom<Props>>>>, never>;
|
|
19
25
|
};
|
|
20
26
|
type ResourceEntryProps<EntryOrProps> = EntryOrProps extends {
|
|
21
|
-
render: unknown;
|
|
22
27
|
props?: infer Props;
|
|
23
|
-
}
|
|
28
|
+
} & ({
|
|
29
|
+
render: unknown;
|
|
30
|
+
} | {
|
|
31
|
+
lazy: unknown;
|
|
32
|
+
}) ? Props : EntryOrProps;
|
|
24
33
|
type ResourceEntryInclude<EntryOrProps> = ResourceEntryProps<EntryOrProps> extends {
|
|
25
34
|
include?: infer Include;
|
|
26
35
|
} ? Include extends object ? Include : {} : {};
|
|
@@ -119,7 +128,7 @@ type ScopedComponentSignature<Props> = {} extends Props ? (props?: Props) => JSX
|
|
|
119
128
|
* Function-prototype / React statics that must not appear as compound
|
|
120
129
|
* component keys on a scoped component resolved from a returned component type.
|
|
121
130
|
*/
|
|
122
|
-
type ScopedComponentCompoundStaticKey =
|
|
131
|
+
type ScopedComponentCompoundStaticKey = (typeof reservedScopedCompoundStaticKeys)[number];
|
|
123
132
|
/**
|
|
124
133
|
* Compound statics (e.g. `DataTable.Loading`) taken from a component type
|
|
125
134
|
* returned by scoped `render`.
|
|
@@ -128,12 +137,14 @@ type ScopedComponentCompoundStaticKey = 'apply' | 'arguments' | 'bind' | 'call'
|
|
|
128
137
|
* (see `withScopedCompoundStatics`), otherwise `components.DataTable.Loading`
|
|
129
138
|
* type-checks but throws at runtime.
|
|
130
139
|
*/
|
|
131
|
-
type ScopedComponentCompoundStatics<Result> = [Result] extends [never] ? {} : IsScopedRenderableComponentType<Result> extends true ? { [Key in keyof Result as Key extends ScopedComponentCompoundStaticKey ? never : Result[Key] extends ((...args: any) => any) ? Key & string : never]: Result[Key] extends ((props: infer Props) => any) ? ScopedComponentSignature<Props extends object ? Props : {}> : never } : {};
|
|
140
|
+
type ScopedComponentCompoundStatics<Result> = [Result] extends [never] ? {} : IsScopedRenderableComponentType<Result> extends true ? { [Key in keyof Result as Key extends ScopedCompoundName ? Key extends ScopedComponentCompoundStaticKey ? never : Result[Key] extends ((...args: any) => any) ? Key & string : never : never]: Result[Key] extends ((props: infer Props) => any) ? ScopedComponentSignature<Props extends object ? Props : {}> : never } : {};
|
|
132
141
|
/**
|
|
133
142
|
* A resolved scoped component: call signature from declared + returned-component
|
|
134
143
|
* props, plus any compound statics on the returned component type.
|
|
135
144
|
*/
|
|
136
|
-
type ResolvedScopedComponent<Definition> =
|
|
145
|
+
type ResolvedScopedComponent<Definition> = (Definition extends {
|
|
146
|
+
lazy: unknown;
|
|
147
|
+
} ? LazyHandle : {}) & ScopedComponentSignature<ScopedComponentCallProps<Definition>> & ScopedComponentCompoundStatics<Definition extends {
|
|
137
148
|
render: (...args: any) => infer Result;
|
|
138
149
|
} ? Result : never>;
|
|
139
150
|
/**
|
|
@@ -141,19 +152,24 @@ type ResolvedScopedComponent<Definition> = ScopedComponentSignature<ScopedCompon
|
|
|
141
152
|
* names with call-site prop types (and compound statics when applicable).
|
|
142
153
|
*/
|
|
143
154
|
type ResolvedScopedComponentsMap<Components> = { [Name in keyof NormalizeScopedComponentsMap<Components>]: ResolvedScopedComponent<NormalizeScopedComponentsMap<Components>[Name]> };
|
|
155
|
+
/** Active layout state alongside the sibling component map. */
|
|
156
|
+
type ScopedComponentRenderContext<Components, StateNames extends string = BuiltinRenderStateName> = ResolvedScopedComponentsMap<Components> & {
|
|
157
|
+
state: StateNames;
|
|
158
|
+
};
|
|
144
159
|
/**
|
|
145
160
|
* Call-site props for `context.<Resource>`: outermost createComponent
|
|
146
161
|
* include/custom props (minus `resource`).
|
|
147
162
|
*/
|
|
148
163
|
type ScopedResourceContextCallProps<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, Resource extends string, DefinedProps extends object = {}> = WithDefinedOptional<Show<Omit<ScopedResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, Resource>, 'resource'>>, DefinedProps>;
|
|
149
|
-
type ScopedResourceComponentRenderContext<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, ComponentsByResource, PropsByResource> = {
|
|
164
|
+
type ScopedResourceComponentRenderContext<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, ComponentsByResource, PropsByResource, StateNames extends string = BuiltinRenderStateName> = {
|
|
150
165
|
/**
|
|
151
166
|
* The resource layout for the component's current `resource`, created
|
|
152
167
|
* internally from that resource's entry options. Accepts the layout's
|
|
153
168
|
* custom props.
|
|
154
169
|
*/
|
|
155
170
|
Root: (props: Show<ResolveProps<LayoutCustomProps>>) => JSX.Element;
|
|
156
|
-
|
|
171
|
+
state: StateNames;
|
|
172
|
+
} & { [Resource in keyof ComponentsByResource as Capitalize<Resource & string>]-?: ScopedComponentSignature<ScopedResourceContextCallProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, Resource & string, ResourceEntryDefined<Resource extends keyof PropsByResource ? PropsByResource[Resource] : {}>>> & LazyHandle & ResolvedScopedComponentsMap<ComponentsByResource[Resource]> };
|
|
157
173
|
/**
|
|
158
174
|
* Reverse-mapped `resources` constraint.
|
|
159
175
|
*
|
|
@@ -175,7 +191,7 @@ type ScopedResourceComponentRenderContext<ResourceDefinitions extends ReadonlyAr
|
|
|
175
191
|
* contextually types parameters, and the raw capture keeps the literal for
|
|
176
192
|
* call-site resolution.
|
|
177
193
|
*/
|
|
178
|
-
type ScopedComponentResourceEntry<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, Resource extends string, EntryProps extends object, Components> = {
|
|
194
|
+
type ScopedComponentResourceEntry<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, Resource extends string, EntryProps extends object, Components, StateNames extends string = BuiltinRenderStateName> = {
|
|
179
195
|
/**
|
|
180
196
|
* Overrides the layout name used by `context.Root` for this resource.
|
|
181
197
|
* Defaults to the scope's configured name, then the capitalized resource.
|
|
@@ -197,10 +213,9 @@ type ScopedComponentResourceEntry<ResourceDefinitions extends ReadonlyArray<Reso
|
|
|
197
213
|
* call-site props). Props and compound statics of a returned component
|
|
198
214
|
* type are inferred at call sites from the render return type.
|
|
199
215
|
*/
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
type ScopedComponentResourceEntries<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, PropsByResource, ComponentsByResource> = { [Resource in keyof ComponentsByResource]: ScopedComponentResourceEntry<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, Resource & string, Resource extends keyof PropsByResource ? PropsByResource[Resource] & object : {}, ComponentsByResource[Resource]> & {
|
|
216
|
+
ScopedPropsRenderDefinition<InPropsObject, ScopedResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, WithDefinedIncluded<ComponentIncludeProps & ResourceEntryInclude<EntryProps>, ResourceEntryDefined<EntryProps>>, ComponentCustomProps & ResourceEntryCustom<EntryProps>, Resource> & Show<ResolvedBuiltPropShape<ScopedComponentOwnProps<Components[Name]>>>, ScopedRenderResult, Omit<ScopedComponentRenderContext<Components, StateNames>, Name>> & Components[Name] };
|
|
217
|
+
} & ScopedLazyContent<PropsContextRender<ScopedResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, WithDefinedIncluded<ComponentIncludeProps & ResourceEntryInclude<EntryProps>, ResourceEntryDefined<EntryProps>>, ComponentCustomProps & ResourceEntryCustom<EntryProps>, Resource>, ScopedComponentRenderContext<Components, StateNames>, ScopedRenderResult>>;
|
|
218
|
+
type ScopedComponentResourceEntries<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, PropsByResource, ComponentsByResource, StateNames extends string = BuiltinRenderStateName> = { [Resource in keyof ComponentsByResource]: ScopedComponentResourceEntry<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, Resource & string, Resource extends keyof PropsByResource ? PropsByResource[Resource] & object : {}, ComponentsByResource[Resource], StateNames> & {
|
|
204
219
|
props?: Resource extends keyof PropsByResource ? PropsByResource[Resource] extends object ? PropsByResource[Resource] & ResourceComponentPropsBag<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentCustomProps, NoInfer<PropsByResource[Resource]>> : unknown : unknown;
|
|
205
220
|
} } & Record<Exclude<keyof ComponentsByResource, SelectedLayoutResources<ResourceDefinitions, Arguments>>, never>;
|
|
206
221
|
/**
|
|
@@ -208,15 +223,19 @@ type ScopedComponentResourceEntries<ResourceDefinitions extends ReadonlyArray<Re
|
|
|
208
223
|
* so it is removed from the call site.
|
|
209
224
|
*/
|
|
210
225
|
type ScopedBoundResourceComponentProps<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, Resource extends string, RenderResult = never, DefinedProps extends object = {}> = Show<Omit<ScopedResourceComponentCallProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, Resource, RenderResult, DefinedProps>, 'resource'>>;
|
|
211
|
-
type ScopedBoundResourceComponent<Props extends object, Resource extends string, Components = {}> = BaseComponent<string, Props> & ResolvedScopedComponentsMap<Components> & {
|
|
226
|
+
type ScopedBoundResourceComponent<Props extends object, Resource extends string, Components = {}, Composables extends ComposableComponents = {}> = BaseComponent<string, Props> & LazyHandle & ResolvedScopedComponentsMap<Components> & {
|
|
212
227
|
(props: Props): JSX.Element;
|
|
213
228
|
/**
|
|
214
229
|
* Type-only property containing the bound resource. This property is
|
|
215
230
|
* `undefined` at runtime.
|
|
216
231
|
*/
|
|
217
232
|
readonly resource: Resource;
|
|
218
|
-
}
|
|
219
|
-
|
|
233
|
+
} & ([keyof Composables] extends [never] ? {
|
|
234
|
+
readonly makeComposable?: undefined;
|
|
235
|
+
} : {
|
|
236
|
+
/** Creates the bound resource's composable layout, using the scope's default name when omitted. */makeComposable: MakeComposable<Composables, string>;
|
|
237
|
+
});
|
|
238
|
+
type ScopedResourceComponent<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends IncludedProps<ScopedComponentAvailableProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps>>, ComponentCustomProps extends InPropsObject, ComponentsByResource, PropsByResource, RenderResult = never> = LazyHandle & BaseComponent<string, ScopedResourceComponentCallProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, SelectedLayoutResources<ResourceDefinitions, Arguments>, RenderResult, ResourceEntryDefined<PropsByResource[keyof PropsByResource]>>> & {
|
|
220
239
|
/**
|
|
221
240
|
* The `resource` prop drives the generic, so it is inferred from the call
|
|
222
241
|
* site. Explicit type arguments are never needed.
|
|
@@ -237,7 +256,7 @@ type ScopedResourceComponent<ResourceDefinitions extends ReadonlyArray<ResourceD
|
|
|
237
256
|
*
|
|
238
257
|
* @returns A factory producing a component bound to the given resource.
|
|
239
258
|
*/
|
|
240
|
-
asHOF(): <const Resource extends SelectedLayoutResources<ResourceDefinitions, Arguments>>(resource: Resource) => Show<ScopedBoundResourceComponent<ScopedBoundResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, Resource, RenderResult, ResourceEntryDefined<Resource extends keyof PropsByResource ? PropsByResource[Resource] : {}>>, Resource, Resource extends keyof ComponentsByResource ? ComponentsByResource[Resource] : {}>>;
|
|
259
|
+
asHOF(): <const Resource extends SelectedLayoutResources<ResourceDefinitions, Arguments>>(resource: Resource) => Show<ScopedBoundResourceComponent<ScopedBoundResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, Resource, RenderResult, ResourceEntryDefined<Resource extends keyof PropsByResource ? PropsByResource[Resource] : {}>>, Resource, Resource extends keyof ComponentsByResource ? ComponentsByResource[Resource] : {}, Composables>>;
|
|
241
260
|
};
|
|
242
261
|
/**
|
|
243
262
|
* Props bag for `setProps` / optional extras: forbids keys already present on
|
|
@@ -256,20 +275,19 @@ type ScopedComponentExtraProps<ResourceDefinitions extends ReadonlyArray<Resourc
|
|
|
256
275
|
* `(...args: any) => …`) so destructured props stay precise — an `any`
|
|
257
276
|
* constraint on Options would collapse them.
|
|
258
277
|
*/
|
|
259
|
-
type ScopedCreateResourceComponents<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, BaseCustom extends InPropsObject> = <const Resource extends SelectedLayoutResources<ResourceDefinitions, Arguments>, const Components, const Props extends object = {}>(options: {
|
|
278
|
+
type ScopedCreateResourceComponents<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, BaseCustom extends InPropsObject, StateNames extends string = BuiltinRenderStateName> = <const Resource extends SelectedLayoutResources<ResourceDefinitions, Arguments>, const Components, const Props extends object = {}>(options: {
|
|
260
279
|
resource: Resource;
|
|
261
280
|
props?: Props & ResourceComponentPropsBag<ResourceDefinitions, InProps, Composables, LayoutCustomProps, BaseCustom, NoInfer<Props>> & {
|
|
262
281
|
include?: ResourceEntryInclude<Props> & { [Key in keyof BaseInclude & string]?: never };
|
|
263
282
|
custom?: ResourceEntryCustom<Props> & { [Key in keyof BaseCustom & string]?: never };
|
|
264
283
|
};
|
|
265
284
|
name?: string;
|
|
266
|
-
components?: { [Name in keyof Components]: JustScopedComponent<Components[Name]> &
|
|
267
|
-
|
|
268
|
-
}) => ScopedComponentResourceEntry<ResourceDefinitions, InProps, Composables, LayoutCustomProps, BaseInclude, BaseCustom, Resource, Props, NormalizeScopedComponentsMap<Components>> & {
|
|
285
|
+
components?: { [Name in keyof Components]: JustScopedComponent<Components[Name]> & ScopedPropsRenderDefinition<InPropsObject, ScopedResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, WithDefinedIncluded<BaseInclude & ResourceEntryInclude<Props>, ResourceEntryDefined<Props>>, BaseCustom & ResourceEntryCustom<Props>, Resource> & Show<ResolvedBuiltPropShape<ScopedComponentOwnProps<Components[Name]>>>, ScopedRenderResult, Omit<ScopedComponentRenderContext<Components, StateNames>, Name>> & Components[Name] };
|
|
286
|
+
} & ScopedLazyContent<PropsContextRender<ScopedResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, WithDefinedIncluded<BaseInclude & ResourceEntryInclude<Props>, ResourceEntryDefined<Props>>, BaseCustom & ResourceEntryCustom<Props>, Resource>, ScopedComponentRenderContext<NormalizeScopedComponentsMap<Components>, StateNames>, ScopedRenderResult>>) => ScopedComponentResourceEntry<ResourceDefinitions, InProps, Composables, LayoutCustomProps, BaseInclude, BaseCustom, Resource, Props, NormalizeScopedComponentsMap<Components>, StateNames> & {
|
|
269
287
|
props: Props; /** Type-only metadata preserving the exact captured props bag. */
|
|
270
288
|
readonly resourceComponentProps: Props; /** Type-only metadata preserving the exact captured components map. */
|
|
271
289
|
readonly resourceComponents: NormalizeScopedComponentsMap<Components>;
|
|
272
|
-
} & ScopedReusableResourceEntry<Props, Components>;
|
|
290
|
+
} & LazyHandle & ScopedReusableResourceEntry<Props, Components>;
|
|
273
291
|
/**
|
|
274
292
|
* Options for {@link ScopedCreateComponent}. Extends the shared
|
|
275
293
|
* `{ props?, render }` shape; `props` is the layout include/custom bag, and
|
|
@@ -283,23 +301,29 @@ type ScopedCreateResourceComponents<ResourceDefinitions extends ReadonlyArray<Re
|
|
|
283
301
|
* to the `render` `props` parameter (that would circularly depend on the
|
|
284
302
|
* return).
|
|
285
303
|
*/
|
|
286
|
-
|
|
304
|
+
type ScopedCreateComponentOptions<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, ComponentIncludeProps extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, ComponentCustomProps extends InPropsObject, PropsByResource, ComponentsByResource, RenderResult extends ScopedRenderResult, StateNames extends string = BuiltinRenderStateName> = ScopedPropsRenderDefinition<LayoutProps<ResourceDefinitions, InProps, Composables, ComponentIncludeProps, ComponentCustomProps>, ScopedResourceComponentProps<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps & MergedResourceEntryInclude<PropsByResource>, ComponentCustomProps & MergedResourceEntryCustom<PropsByResource>, SelectedLayoutResources<ResourceDefinitions, Arguments>>, RenderResult, ScopedResourceComponentRenderContext<ResourceDefinitions, InProps, Composables, LayoutCustomProps, ComponentIncludeProps & MergedResourceEntryInclude<PropsByResource>, ComponentCustomProps & MergedResourceEntryCustom<PropsByResource>, ComponentsByResource, PropsByResource, StateNames>> & {
|
|
287
305
|
/**
|
|
288
306
|
* Per-resource content, keyed by resource. Each entry holds that resource's
|
|
289
307
|
* scoped `components` and its `render` — not layout option values like
|
|
290
308
|
* `title` (those are call-site props on `context.<Resource>` / the outer
|
|
291
309
|
* component).
|
|
292
310
|
*/
|
|
293
|
-
resources?: ScopedComponentResourceEntries<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, ComponentIncludeProps & MergedResourceEntryInclude<PropsByResource>, ComponentCustomProps & MergedResourceEntryCustom<PropsByResource>, PropsByResource, ComponentsByResource>;
|
|
294
|
-
}
|
|
311
|
+
resources?: ScopedComponentResourceEntries<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, ComponentIncludeProps & MergedResourceEntryInclude<PropsByResource>, ComponentCustomProps & MergedResourceEntryCustom<PropsByResource>, PropsByResource, ComponentsByResource, StateNames>;
|
|
312
|
+
};
|
|
295
313
|
/**
|
|
296
314
|
* Options for a `setProps` thunk: same as createComponent options, but
|
|
297
315
|
* optional `props` may only add keys not already defined by `setProps`.
|
|
298
316
|
*/
|
|
299
|
-
type ScopedCreateComponentWithPropsOptions<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, BaseCustom extends InPropsObject, ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, ExtraCustom extends InPropsObject, PropsByResource, ComponentsByResource, RenderResult extends ScopedRenderResult> = Omit<ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude, BaseCustom & ExtraCustom, PropsByResource, ComponentsByResource, RenderResult>, 'props'> & {
|
|
317
|
+
type ScopedCreateComponentWithPropsOptions<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, BaseCustom extends InPropsObject, ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, ExtraCustom extends InPropsObject, PropsByResource, ComponentsByResource, RenderResult extends ScopedRenderResult, StateNames extends string = BuiltinRenderStateName> = Omit<ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude, BaseCustom & ExtraCustom, PropsByResource, ComponentsByResource, RenderResult, StateNames>, 'props'> & {
|
|
300
318
|
props?: ScopedComponentExtraProps<ResourceDefinitions, InProps, Composables, BaseInclude, BaseCustom, ExtraInclude, ExtraCustom>;
|
|
301
319
|
};
|
|
302
|
-
type ScopedCreateComponentFn<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject> = <const ComponentsByResource, const RenderResult extends ScopedRenderResult, const ComponentIncludeProps extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ComponentCustomProps extends InPropsObject = {}>(options: ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, {}, ComponentsByResource, RenderResult
|
|
320
|
+
type ScopedCreateComponentFn<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, StateNames extends string = BuiltinRenderStateName> = <const ComponentsByResource, const RenderResult extends ScopedRenderResult, const ComponentIncludeProps extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ComponentCustomProps extends InPropsObject = {}>(options: ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, {}, ComponentsByResource, RenderResult, StateNames> & {
|
|
321
|
+
resources?: { [Resource in keyof NoInfer<ComponentsByResource>]: {
|
|
322
|
+
lazy?: never;
|
|
323
|
+
} | {
|
|
324
|
+
props?: never;
|
|
325
|
+
} };
|
|
326
|
+
}) => ScopedResourceComponent<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, ComponentIncludeProps, ComponentCustomProps, ComponentsByResource, {}, RenderResult>;
|
|
303
327
|
type ComponentsForResourceProps<PropsByResource, ComponentsByResource> = { [Resource in keyof PropsByResource]: Resource extends keyof ComponentsByResource ? NormalizeScopedComponentsMap<ComponentsByResource[Resource]> : {} };
|
|
304
328
|
type PropsFromCreatedResourceEntries<EntriesByResource> = { [Resource in keyof EntriesByResource]: EntriesByResource[Resource] extends {
|
|
305
329
|
readonly [scopedReusableResourceEntryBrand]: {
|
|
@@ -311,12 +335,12 @@ type ComponentsFromCreatedResourceEntries<EntriesByResource> = { [Resource in ke
|
|
|
311
335
|
components: infer Components;
|
|
312
336
|
};
|
|
313
337
|
} ? NormalizeScopedComponentsMap<Components> : {} };
|
|
314
|
-
type ScopedCreateComponentWithCreatedEntriesFn<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, BaseCustom extends InPropsObject = {}> = <const EntriesByResource, const RenderResult extends ScopedRenderResult, const ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ExtraCustom extends InPropsObject = {}>(options: Omit<ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude, BaseCustom & ExtraCustom, PropsFromCreatedResourceEntries<NoInfer<EntriesByResource>>, ComponentsFromCreatedResourceEntries<NoInfer<EntriesByResource>>, RenderResult>, 'resources'> & {
|
|
338
|
+
type ScopedCreateComponentWithCreatedEntriesFn<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, BaseCustom extends InPropsObject = {}, StateNames extends string = BuiltinRenderStateName> = <const EntriesByResource, const RenderResult extends ScopedRenderResult, const ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ExtraCustom extends InPropsObject = {}>(options: Omit<ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude, BaseCustom & ExtraCustom, PropsFromCreatedResourceEntries<NoInfer<EntriesByResource>>, ComponentsFromCreatedResourceEntries<NoInfer<EntriesByResource>>, RenderResult, StateNames>, 'resources'> & {
|
|
315
339
|
resources: { [Resource in keyof EntriesByResource]: EntriesByResource[Resource] & ScopedReusableResourceEntry<object, unknown> };
|
|
316
340
|
}) => ScopedResourceComponent<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude & MergedResourceEntryInclude<PropsFromCreatedResourceEntries<EntriesByResource>>, BaseCustom & ExtraCustom & MergedResourceEntryCustom<PropsFromCreatedResourceEntries<EntriesByResource>>, ComponentsFromCreatedResourceEntries<EntriesByResource>, PropsFromCreatedResourceEntries<EntriesByResource>, RenderResult>;
|
|
317
341
|
/** createComponent overload for entries that declare the unified props bag. */
|
|
318
|
-
type ScopedCreateComponentWithResourcePropsFn<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, BaseCustom extends InPropsObject = {}> = <const PropsByResource, const ComponentsByResource, const RenderResult extends ScopedRenderResult, const ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ExtraCustom extends InPropsObject = {}>(options: Omit<ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude, BaseCustom & ExtraCustom, PropsByResource, ComponentsForResourceProps<PropsByResource, ComponentsByResource>, RenderResult>, 'resources'> & {
|
|
319
|
-
resources: { [Resource in keyof PropsByResource]: ScopedComponentResourceEntry<ResourceDefinitions, InProps, Composables, LayoutCustomProps, BaseInclude & ExtraInclude & MergedResourceEntryInclude<PropsByResource>, BaseCustom & ExtraCustom & MergedResourceEntryCustom<PropsByResource>, Resource & string, PropsByResource[Resource] & object, Resource extends keyof ComponentsByResource ? ComponentsByResource[Resource] : unknown> & {
|
|
342
|
+
type ScopedCreateComponentWithResourcePropsFn<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, BaseCustom extends InPropsObject = {}, StateNames extends string = BuiltinRenderStateName> = <const PropsByResource, const ComponentsByResource, const RenderResult extends ScopedRenderResult, const ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ExtraCustom extends InPropsObject = {}>(options: Omit<ScopedCreateComponentOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude, BaseCustom & ExtraCustom, PropsByResource, ComponentsForResourceProps<PropsByResource, ComponentsByResource>, RenderResult, StateNames>, 'resources'> & {
|
|
343
|
+
resources: { [Resource in keyof PropsByResource]: ScopedComponentResourceEntry<ResourceDefinitions, InProps, Composables, LayoutCustomProps, BaseInclude & ExtraInclude & MergedResourceEntryInclude<PropsByResource>, BaseCustom & ExtraCustom & MergedResourceEntryCustom<PropsByResource>, Resource & string, PropsByResource[Resource] & object, Resource extends keyof ComponentsByResource ? ComponentsByResource[Resource] : unknown, StateNames> & {
|
|
320
344
|
props: PropsByResource[Resource] & ResourceComponentPropsBag<ResourceDefinitions, InProps, Composables, LayoutCustomProps, BaseCustom & ExtraCustom & MergedResourceEntryCustom<PropsByResource>, NoInfer<PropsByResource[Resource] & object>>;
|
|
321
345
|
components?: Resource extends keyof ComponentsByResource ? ComponentsByResource[Resource] : unknown;
|
|
322
346
|
} } & Record<Exclude<keyof PropsByResource, SelectedLayoutResources<ResourceDefinitions, Arguments>>, never>;
|
|
@@ -329,18 +353,18 @@ type ScopedCreateComponentWithResourcePropsFn<ResourceDefinitions extends Readon
|
|
|
329
353
|
* Merged props (base ∪ extras) type the returned component, top-level
|
|
330
354
|
* `render`, and `context.<Resource>` call sites.
|
|
331
355
|
*/
|
|
332
|
-
type ScopedCreateComponentWithProps<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, BaseCustom extends InPropsObject> = ScopedCreateComponentWithCreatedEntriesFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom> & ScopedCreateComponentWithResourcePropsFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom> & {
|
|
333
|
-
<const ComponentsByResource, const PropsByResource, const RenderResult extends ScopedRenderResult, const ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ExtraCustom extends InPropsObject = {}>(options: ScopedCreateComponentWithPropsOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom, ExtraInclude, ExtraCustom, PropsByResource, ComponentsByResource, RenderResult>): ScopedResourceComponent<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude & MergedResourceEntryInclude<PropsByResource>, BaseCustom & ExtraCustom & MergedResourceEntryCustom<PropsByResource>, ComponentsByResource, PropsByResource, RenderResult>;
|
|
334
|
-
createResourceComponents: ScopedCreateResourceComponents<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom>;
|
|
356
|
+
type ScopedCreateComponentWithProps<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables>, BaseCustom extends InPropsObject, StateNames extends string = BuiltinRenderStateName> = ScopedCreateComponentWithCreatedEntriesFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom, StateNames> & ScopedCreateComponentWithResourcePropsFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom, StateNames> & {
|
|
357
|
+
<const ComponentsByResource, const PropsByResource, const RenderResult extends ScopedRenderResult, const ExtraInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, ExtraCustom extends InPropsObject = {}>(options: ScopedCreateComponentWithPropsOptions<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom, ExtraInclude, ExtraCustom, PropsByResource, ComponentsByResource, RenderResult, StateNames>): ScopedResourceComponent<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude & ExtraInclude & MergedResourceEntryInclude<PropsByResource>, BaseCustom & ExtraCustom & MergedResourceEntryCustom<PropsByResource>, ComponentsByResource, PropsByResource, RenderResult>;
|
|
358
|
+
createResourceComponents: ScopedCreateResourceComponents<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom, StateNames>;
|
|
335
359
|
};
|
|
336
|
-
type ScopedCreateComponentSetProps<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject> = <const BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, BaseCustom extends InPropsObject = {}>(props: LayoutProps<ResourceDefinitions, InProps, Composables, BaseInclude, BaseCustom>) => ScopedCreateComponentWithProps<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom>;
|
|
337
|
-
type ScopedCreateComponent<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject> = ScopedCreateComponentFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps> & ScopedCreateComponentWithCreatedEntriesFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps> & ScopedCreateComponentWithResourcePropsFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps> & {
|
|
360
|
+
type ScopedCreateComponentSetProps<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, StateNames extends string = BuiltinRenderStateName> = <const BaseInclude extends LayoutIncludeProps<ResourceDefinitions, InProps, Composables> = {}, BaseCustom extends InPropsObject = {}>(props: LayoutProps<ResourceDefinitions, InProps, Composables, BaseInclude, BaseCustom>) => ScopedCreateComponentWithProps<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, BaseInclude, BaseCustom, StateNames>;
|
|
361
|
+
type ScopedCreateComponent<ResourceDefinitions extends ReadonlyArray<ResourceDefinition>, InProps extends InPropsDefinition<ResourceDefinitions>, Composables extends ComposableComponents, Arguments extends ReadonlyArray<unknown>, LayoutCustomProps extends InPropsObject, StateNames extends string = BuiltinRenderStateName> = ScopedCreateComponentFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, StateNames> & ScopedCreateComponentWithCreatedEntriesFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, {}, {}, StateNames> & ScopedCreateComponentWithResourcePropsFn<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, {}, {}, StateNames> & {
|
|
338
362
|
/**
|
|
339
363
|
* Prefills include/custom props for a shared createComponent thunk. The
|
|
340
364
|
* thunk still accepts optional extra props (keys already set here are
|
|
341
365
|
* forbidden) and exposes `createResourceComponents` for reusable entries.
|
|
342
366
|
*/
|
|
343
|
-
setProps: ScopedCreateComponentSetProps<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps>;
|
|
367
|
+
setProps: ScopedCreateComponentSetProps<ResourceDefinitions, InProps, Composables, Arguments, LayoutCustomProps, StateNames>;
|
|
344
368
|
};
|
|
345
369
|
//#endregion
|
|
346
370
|
export { ScopedCreateComponent, ScopedCreateResourceComponents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-component.d.mts","names":[],"sources":["../../../src/create-config/for-resources/create-component.ts"],"mappings":";;;;;;;;;;;KAsBY,6BAAA,mBACQ,aAAA,CAAc,kBAAA,mBAChB,iBAAA,CAAkB,SAAA,uBACd,oBAAA,4BACM,aAAA,IACxB,mBAAA,CAAoB,SAAA,EAAW,OAAA,EAAS,WAAA,IAAe,iBAAA;AAAA,KAEtD,uCAAA,mBACe,aAAA,CAAc,kBAAA,mBAChB,iBAAA,CAAkB,SAAA,uBACd,oBAAA,4BACM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EACA,YAAA,IAED,uBAAA,CACD,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,EACA,WAAA,GAAc,YAAA,GAAe,0BAAA,CAA2B,eAAA,GACxD,UAAA,GAAa,WAAA,GAAc,yBAAA,CAA0B,eAAA,GACrD,oBAAA,EACA,eAAA,EACA,YAAA;EAEF,wBAAA,EAA0B,8BAAA,CACxB,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,EACA,WAAA,EACA,UAAA;AAAA;AAAA,KAIM,6BAAA,6BACkB,aAAA,CAAc,kBAAA,mBAC1B,iBAAA,CAAkB,mBAAA,uBACd,oBAAA,oBACF,aAAA,qCACQ,aAAA,+BAEA,kBAAA,CACxB,mBAAA,EACA,OAAA,EACA,WAAA,2BAEiB,aAAA,OAEnB,KAAA,EAAO,WAAA,CACL,mBAAA,EACA,OAAA,EACA,WAAA,EACA,WAAA,EACA,UAAA,MAEC,8BAAA,CACH,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,EACA,WAAA,EACA,UAAA;AAAA,KAGU,qBAAA,6BACkB,aAAA,CAAc,kBAAA,mBAC1B,iBAAA,CAAkB,mBAAA,uBACd,oBAAA,oBACF,aAAA,qCACQ,aAAA,IACxB,uBAAA,CACF,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,IAEA,yCAAA,CACE,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,IAEF,wCAAA,CACE,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA;EAlxC4B;;;;;EAyxC5B,QAAA,EAAU,6BAAA,CACR,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"create-component.d.mts","names":[],"sources":["../../../src/create-config/for-resources/create-component.ts"],"mappings":";;;;;;;;;;;;;;KA6BK,2BAAA;EACH,KAAA,GA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,CAA2B,eAAA,GACxD,UAAA,GAAa,WAAA,GAAc,yBAAA,CAA0B,eAAA,GACrD,oBAAA,EACA,eAAA,EACA,YAAA;EAEF,wBAAA,EAA0B,8BAAA,CACxB,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,EACA,WAAA,EACA,UAAA,EACA,UAAA;AAAA;AAAA,KAIM,6BAAA,6BACkB,aAAA,CAAc,kBAAA,mBAC1B,iBAAA,CAAkB,mBAAA,uBACd,oBAAA,oBACF,aAAA,qCACQ,aAAA,8BACE,sBAAA,+BAEF,kBAAA,CACxB,mBAAA,EACA,OAAA,EACA,WAAA,2BAEiB,aAAA,OAEnB,KAAA,EAAO,WAAA,CACL,mBAAA,EACA,OAAA,EACA,WAAA,EACA,WAAA,EACA,UAAA,MAEC,8BAAA,CACH,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,EACA,WAAA,EACA,UAAA,EACA,UAAA;AAAA,KAGU,qBAAA,6BACkB,aAAA,CAAc,kBAAA,mBAC1B,iBAAA,CAAkB,mBAAA,uBACd,oBAAA,oBACF,aAAA,qCACQ,aAAA,8BACE,sBAAA,IAC1B,uBAAA,CACF,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,EACA,UAAA,IAEA,yCAAA,CACE,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,UAGA,UAAA,IAEF,wCAAA,CACE,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,UAGA,UAAA;EA10CA;;;;;EAi1CA,QAAA,EAAU,6BAAA,CACR,mBAAA,EACA,OAAA,EACA,WAAA,EACA,SAAA,EACA,iBAAA,EACA,UAAA;AAAA"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
const require_render_state_context = require('../render-state-context.cjs');
|
|
1
2
|
const require_layout_configuration_error = require('../../errors/layout-configuration-error.cjs');
|
|
2
3
|
const require_capitalize = require('../../utils/capitalize.cjs');
|
|
4
|
+
const require_inspection = require('../../lazy/inspection.cjs');
|
|
3
5
|
const require_scoped_render = require('./scoped-render.cjs');
|
|
6
|
+
const require_scoped_content = require('../../lazy/scoped-content.cjs');
|
|
4
7
|
let react = require("react");
|
|
5
8
|
let _jfdevelops_react_layout_validator = require("@jfdevelops/react-layout-validator");
|
|
6
9
|
|
|
7
10
|
//#region src/create-config/for-resources/create-for-resources.ts
|
|
8
|
-
function createForResources({ createLayoutForResource, createMakeComposableLayout, createResourceLayout, getComponentPropDefinitions }) {
|
|
11
|
+
function createForResources({ createLayoutForResource, createMakeComposableLayout, createResourceLayout, getComponentPropDefinitions, lazyEnvironment }) {
|
|
9
12
|
return ((...resourcesOrOptions) => {
|
|
10
13
|
const firstArgument = resourcesOrOptions[0];
|
|
11
14
|
let resourceOptions;
|
|
@@ -31,6 +34,44 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
31
34
|
function scopedForResource(options) {
|
|
32
35
|
return createLayoutForResource(options.name ?? defaultNames.get(options.resource), options.resource);
|
|
33
36
|
}
|
|
37
|
+
function normalizeContent(definition, resource, label) {
|
|
38
|
+
if (definition.lazy !== void 0 && definition.render !== void 0) throw new require_layout_configuration_error.LayoutConfigurationError(`Scoped content "${label}" must define render or lazy, never both`);
|
|
39
|
+
if (definition[require_scoped_content.scopedLazySymbol]) return definition;
|
|
40
|
+
if (definition.lazy === void 0) {
|
|
41
|
+
if (typeof definition.render !== "function") throw new require_layout_configuration_error.LayoutConfigurationError(`Scoped content "${label}" requires render or lazy`);
|
|
42
|
+
return definition;
|
|
43
|
+
}
|
|
44
|
+
const Content = require_scoped_content.createScopedLazyContent(definition, resource, label, lazyEnvironment);
|
|
45
|
+
return require_inspection.withLazyHandle({
|
|
46
|
+
...definition,
|
|
47
|
+
lazy: void 0,
|
|
48
|
+
render: (callProps, context) => (0, react.createElement)(Content, {
|
|
49
|
+
callProps,
|
|
50
|
+
context
|
|
51
|
+
}),
|
|
52
|
+
[require_scoped_content.scopedLazySymbol]: Content
|
|
53
|
+
}, Content);
|
|
54
|
+
}
|
|
55
|
+
function aggregateHandle(handles) {
|
|
56
|
+
let imports = [];
|
|
57
|
+
let pending;
|
|
58
|
+
return {
|
|
59
|
+
preload() {
|
|
60
|
+
const next = handles.map((handle) => handle.preload());
|
|
61
|
+
if (!pending || next.some((promise, index) => promise !== imports[index])) {
|
|
62
|
+
imports = next;
|
|
63
|
+
pending = Promise.all(next).then(() => void 0);
|
|
64
|
+
}
|
|
65
|
+
return pending;
|
|
66
|
+
},
|
|
67
|
+
get status() {
|
|
68
|
+
if (handles.some((handle) => handle.status === "error")) return "error";
|
|
69
|
+
if (handles.some((handle) => handle.status === "loading")) return "loading";
|
|
70
|
+
if (handles.some((handle) => handle.status === "unresolved")) return "unresolved";
|
|
71
|
+
return "resolved";
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
34
75
|
function mergeCreateComponentProps(...bags) {
|
|
35
76
|
const include = {};
|
|
36
77
|
const custom = {};
|
|
@@ -49,12 +90,15 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
49
90
|
const include = mergedProps.include ?? {};
|
|
50
91
|
const custom = mergedProps.custom ?? {};
|
|
51
92
|
const selectedResources = new Set(resourceOptions.map(({ resource }) => resource));
|
|
93
|
+
const topLevelContent = new Map([...selectedResources].map((resource) => [resource, normalizeContent(componentOptions, resource, `${resource}:content`)]));
|
|
52
94
|
const componentPropsContext = (0, react.createContext)(void 0);
|
|
53
95
|
const definedEntries = /* @__PURE__ */ new Map();
|
|
54
96
|
for (const [key, entry] of Object.entries(componentOptions.resources ?? {})) {
|
|
55
97
|
const resource = key;
|
|
56
98
|
if (!selectedResources.has(resource)) throw new require_layout_configuration_error.LayoutConfigurationError(`Resource "${key}" is not available in this scoped component`);
|
|
57
|
-
|
|
99
|
+
const normalized = normalizeContent(entry, resource, resource);
|
|
100
|
+
normalized.components = Object.fromEntries(Object.entries(entry.components ?? {}).map(([name, definition]) => [name, normalizeContent(definition, resource, `${resource}.${name}`)]));
|
|
101
|
+
definedEntries.set(resource, normalized);
|
|
58
102
|
}
|
|
59
103
|
/** Resolved scoped components, per resource. */
|
|
60
104
|
const resourceScopedComponents = /* @__PURE__ */ new Map();
|
|
@@ -75,8 +119,10 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
75
119
|
if (require_scoped_render.reservedScopedComponentNames.has(name)) throw new require_layout_configuration_error.LayoutConfigurationError(`Scoped component "${name}" for resource "${resource}" uses a reserved name`);
|
|
76
120
|
const ownPropDefinitions = definition.props ?? {};
|
|
77
121
|
let cachedOwnProps = {};
|
|
122
|
+
let cachedState;
|
|
78
123
|
let cachedReturnedComponent;
|
|
79
124
|
function ScopedComponent(ownProps) {
|
|
125
|
+
const state = (0, react.useContext)(require_render_state_context.RenderStateNameContext);
|
|
80
126
|
const componentProps = (0, react.useContext)(componentPropsContext);
|
|
81
127
|
if (componentProps === void 0) throw new require_layout_configuration_error.LayoutConfigurationError(`Scoped component "${name}" must be rendered inside its scoped component`);
|
|
82
128
|
const resolvedOwnProps = ownProps ?? {};
|
|
@@ -89,20 +135,31 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
89
135
|
...componentProps,
|
|
90
136
|
...resolvedOwnProps,
|
|
91
137
|
resource
|
|
92
|
-
},
|
|
93
|
-
|
|
138
|
+
}, {
|
|
139
|
+
...scopedComponents,
|
|
140
|
+
state
|
|
141
|
+
});
|
|
142
|
+
if (require_scoped_render.isRenderableComponentType(result)) {
|
|
143
|
+
cachedState = state;
|
|
144
|
+
cachedReturnedComponent = result;
|
|
145
|
+
}
|
|
94
146
|
return require_scoped_render.resolveScopedRenderResult(result, resolvedOwnProps);
|
|
95
147
|
}
|
|
148
|
+
if (definition[require_scoped_content.scopedLazySymbol]) require_inspection.withLazyHandle(ScopedComponent, definition[require_scoped_content.scopedLazySymbol]);
|
|
96
149
|
scopedComponents[name] = require_scoped_render.withScopedCompoundStatics(ScopedComponent, (staticName) => {
|
|
97
150
|
function CompoundStatic(ownProps) {
|
|
151
|
+
const state = (0, react.useContext)(require_render_state_context.RenderStateNameContext);
|
|
98
152
|
const componentProps = (0, react.useContext)(componentPropsContext);
|
|
99
153
|
if (componentProps === void 0) throw new require_layout_configuration_error.LayoutConfigurationError(`Scoped component "${name}.${staticName}" must be rendered inside its scoped component`);
|
|
100
|
-
let result = cachedReturnedComponent;
|
|
154
|
+
let result = cachedState === state ? cachedReturnedComponent : void 0;
|
|
101
155
|
if (!require_scoped_render.isRenderableComponentType(result)) result = definition.render({
|
|
102
156
|
...componentProps,
|
|
103
157
|
...cachedOwnProps,
|
|
104
158
|
resource
|
|
105
|
-
},
|
|
159
|
+
}, {
|
|
160
|
+
...scopedComponents,
|
|
161
|
+
state
|
|
162
|
+
});
|
|
106
163
|
if (!require_scoped_render.isRenderableComponentType(result)) throw new require_layout_configuration_error.LayoutConfigurationError(`Scoped component "${name}" must return a component type to use static "${staticName}"`);
|
|
107
164
|
const staticComponent = result[staticName];
|
|
108
165
|
if (!require_scoped_render.isRenderableComponentType(staticComponent)) throw new require_layout_configuration_error.LayoutConfigurationError(`Scoped component "${name}" has no component static "${staticName}"`);
|
|
@@ -114,6 +171,7 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
114
171
|
}
|
|
115
172
|
resourceScopedComponents.set(resource, scopedComponents);
|
|
116
173
|
function ResourceRender(ownProps) {
|
|
174
|
+
const state = (0, react.useContext)(require_render_state_context.RenderStateNameContext);
|
|
117
175
|
const componentProps = (0, react.useContext)(componentPropsContext);
|
|
118
176
|
if (componentProps === void 0) throw new require_layout_configuration_error.LayoutConfigurationError(`Render context component "${contextKey}" must be rendered inside its scoped component`);
|
|
119
177
|
const callProps = {
|
|
@@ -121,9 +179,12 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
121
179
|
...ownProps,
|
|
122
180
|
resource
|
|
123
181
|
};
|
|
124
|
-
return require_scoped_render.resolveScopedRenderResult(entry.render(callProps,
|
|
182
|
+
return require_scoped_render.resolveScopedRenderResult(entry.render(callProps, {
|
|
183
|
+
...scopedComponents,
|
|
184
|
+
state
|
|
185
|
+
}), ownProps);
|
|
125
186
|
}
|
|
126
|
-
return [contextKey, Object.assign(ResourceRender, scopedComponents)];
|
|
187
|
+
return [contextKey, require_inspection.withLazyHandle(Object.assign(ResourceRender, scopedComponents), aggregateHandle([...entry[require_scoped_content.scopedLazySymbol] ? [entry[require_scoped_content.scopedLazySymbol]] : [], ...Object.values(entry.components ?? {}).flatMap((definition) => definition[require_scoped_content.scopedLazySymbol] ? [definition[require_scoped_content.scopedLazySymbol]] : [])]))];
|
|
127
188
|
}));
|
|
128
189
|
/**
|
|
129
190
|
* Layouts are created once per resource and cached. Creating one during
|
|
@@ -174,6 +235,7 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
174
235
|
}
|
|
175
236
|
renderContext.Root = Root;
|
|
176
237
|
function Component(componentProps) {
|
|
238
|
+
const state = (0, react.useContext)(require_render_state_context.RenderStateNameContext);
|
|
177
239
|
const componentResource = componentProps.resource;
|
|
178
240
|
if (!selectedResources.has(componentResource)) throw new require_layout_configuration_error.LayoutConfigurationError(`Resource "${componentResource}" is not available in this scoped component`);
|
|
179
241
|
const resolvedComponentProps = {
|
|
@@ -195,7 +257,10 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
195
257
|
layoutName: definedEntries.get(componentResource)?.name ?? defaultNames.get(componentResource) ?? require_capitalize.capitalize(componentResource),
|
|
196
258
|
resource: componentResource
|
|
197
259
|
});
|
|
198
|
-
return (0, react.createElement)(componentPropsContext.Provider, { value: resolvedComponentProps }, require_scoped_render.resolveScopedRenderResult(
|
|
260
|
+
return (0, react.createElement)(componentPropsContext.Provider, { value: resolvedComponentProps }, require_scoped_render.resolveScopedRenderResult(topLevelContent.get(componentResource).render(resolvedComponentProps, {
|
|
261
|
+
...renderContext,
|
|
262
|
+
state
|
|
263
|
+
}), resolvedComponentProps));
|
|
199
264
|
}
|
|
200
265
|
/**
|
|
201
266
|
* Bound components are created once per resource and cached. Returning a
|
|
@@ -215,6 +280,13 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
215
280
|
props: void 0,
|
|
216
281
|
resource: void 0
|
|
217
282
|
}, resourceScopedComponents.get(resource) ?? {});
|
|
283
|
+
if (createMakeComposableLayout) Object.assign(boundComponent, { makeComposable: (options = {}) => scopedExtras.makeComposable?.({
|
|
284
|
+
...options,
|
|
285
|
+
resource
|
|
286
|
+
}) });
|
|
287
|
+
const renderResource = renderContext[require_capitalize.capitalize(resource)];
|
|
288
|
+
const ownContent = topLevelContent.get(resource)?.[require_scoped_content.scopedLazySymbol];
|
|
289
|
+
require_inspection.withLazyHandle(boundComponent, aggregateHandle([...renderResource ? [renderResource] : [], ...ownContent ? [ownContent] : []]));
|
|
218
290
|
boundComponents.set(resource, boundComponent);
|
|
219
291
|
}
|
|
220
292
|
return boundComponent;
|
|
@@ -222,6 +294,7 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
222
294
|
function asHOF() {
|
|
223
295
|
return bindResource;
|
|
224
296
|
}
|
|
297
|
+
require_inspection.withLazyHandle(Component, aggregateHandle([...Object.values(renderContext).filter((value) => "preload" in value), ...[...topLevelContent.values()].flatMap((entry) => entry[require_scoped_content.scopedLazySymbol] ? [entry[require_scoped_content.scopedLazySymbol]] : [])]));
|
|
225
298
|
return Object.assign(Component, {
|
|
226
299
|
asHOF,
|
|
227
300
|
displayName: "ScopedResourceComponent",
|
|
@@ -241,10 +314,13 @@ function createForResources({ createLayoutForResource, createMakeComposableLayou
|
|
|
241
314
|
function createResourceComponents(options) {
|
|
242
315
|
const { resource, props, ...entry } = options;
|
|
243
316
|
if (!resourceOptions.some((resourceOption) => resourceOption.resource === resource)) throw new require_layout_configuration_error.LayoutConfigurationError(`Resource "${resource}" is not available in this scoped component`);
|
|
244
|
-
|
|
245
|
-
|
|
317
|
+
const normalized = normalizeContent(entry, resource, String(resource));
|
|
318
|
+
const components = Object.fromEntries(Object.entries(normalized.components ?? {}).map(([name, definition]) => [name, normalizeContent(definition, resource, `${resource}.${name}`)]));
|
|
319
|
+
return require_inspection.withLazyHandle({
|
|
320
|
+
...normalized,
|
|
321
|
+
components,
|
|
246
322
|
props: props ?? {}
|
|
247
|
-
};
|
|
323
|
+
}, aggregateHandle([...normalized[require_scoped_content.scopedLazySymbol] ? [normalized[require_scoped_content.scopedLazySymbol]] : [], ...Object.values(components).flatMap((definition) => definition[require_scoped_content.scopedLazySymbol] ? [definition[require_scoped_content.scopedLazySymbol]] : [])]));
|
|
248
324
|
}
|
|
249
325
|
Object.assign(createComponent, { setProps: createComponentSetProps });
|
|
250
326
|
const scopedExtras = {
|