@builder-builder/builder 0.0.9 → 0.0.10
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/entities/bind.d.ts +4 -0
- package/dist/entities/bind.js +44 -0
- package/dist/entities/builder/bind.d.ts +85 -0
- package/dist/entities/builder/bind.js +9 -0
- package/dist/entities/builder/builder.d.ts +111 -92
- package/dist/entities/builder/builder.js +11 -8
- package/dist/entities/builder/builders.d.ts +23 -8
- package/dist/entities/builder/builders.js +6 -5
- package/dist/entities/builder/index.d.ts +3 -3
- package/dist/entities/builder/index.js +1 -1
- package/dist/entities/builder/methods.d.ts +17 -17
- package/dist/entities/builder/state.d.ts +4 -4
- package/dist/entities/builder/validate.js +7 -7
- package/dist/entities/collection/collection.d.ts +6 -5
- package/dist/entities/collection/collection.js +6 -5
- package/dist/entities/collection/config.d.ts +280 -232
- package/dist/entities/collection/config.js +4 -4
- package/dist/entities/collection/index.d.ts +1 -1
- package/dist/entities/collection/index.js +1 -1
- package/dist/entities/collection/when.d.ts +5 -5
- package/dist/entities/component/component.d.ts +91 -90
- package/dist/entities/component/component.js +5 -4
- package/dist/entities/component/details.d.ts +16 -16
- package/dist/entities/component/details.js +2 -2
- package/dist/entities/component/index.d.ts +1 -1
- package/dist/entities/component/index.js +1 -1
- package/dist/entities/component/when.d.ts +5 -5
- package/dist/entities/index.d.ts +10 -8
- package/dist/entities/index.js +7 -6
- package/dist/entities/kind.d.ts +6 -0
- package/dist/entities/kind.js +6 -0
- package/dist/entities/option/index.d.ts +1 -1
- package/dist/entities/option/index.js +1 -1
- package/dist/entities/option/option.d.ts +39 -38
- package/dist/entities/option/option.js +5 -4
- package/dist/entities/option/values.d.ts +5 -7
- package/dist/entities/option/values.js +4 -4
- package/dist/entities/option/when.d.ts +5 -5
- package/dist/entities/serialise.d.ts +1582 -2226
- package/dist/entities/serialise.js +52 -22
- package/dist/entities/ui/bind.d.ts +10 -0
- package/dist/entities/ui/bind.js +9 -0
- package/dist/entities/ui/describe.d.ts +26 -51
- package/dist/entities/ui/describe.js +3 -4
- package/dist/entities/ui/index.d.ts +5 -7
- package/dist/entities/ui/index.js +2 -3
- package/dist/entities/ui/page.d.ts +26 -51
- package/dist/entities/ui/page.js +3 -4
- package/dist/entities/ui/pages.d.ts +17 -405
- package/dist/entities/ui/pages.js +6 -6
- package/dist/entities/ui/ui.d.ts +307 -688
- package/dist/entities/ui/ui.js +16 -17
- package/dist/entities/ui/uis.d.ts +11 -5
- package/dist/entities/ui/uis.js +9 -10
- package/dist/entities/ui/validate.d.ts +2 -2
- package/dist/entities/ui/validate.js +3 -3
- package/dist/entities/validate.d.ts +3 -3
- package/dist/entities/when.d.ts +45 -44
- package/dist/entities/when.js +10 -7
- package/dist/index.d.ts +19 -15
- package/dist/index.js +6 -3
- package/dist/mappers/assert/builder.js +13 -13
- package/dist/mappers/assert/ui.js +4 -4
- package/dist/mappers/index.d.ts +2 -0
- package/dist/mappers/index.js +1 -0
- package/dist/mappers/refs.d.ts +12 -0
- package/dist/mappers/refs.js +36 -0
- package/dist/mappers/render/render.js +3 -3
- package/dist/model.d.ts +29 -8
- package/dist/model.js +9 -1
- package/dist/references.d.ts +55 -29
- package/dist/references.js +25 -10
- package/dist/walker/walker.d.ts +13 -5
- package/dist/walker/walker.js +39 -27
- package/dist/walker/walkers.d.ts +4 -3
- package/dist/walker/walkers.js +18 -14
- package/package.json +9 -7
- package/dist/entities/builder/parameter.d.ts +0 -62
- package/dist/entities/builder/parameter.js +0 -18
- package/dist/entities/ui/label.d.ts +0 -18
- package/dist/entities/ui/label.js +0 -12
- package/dist/entities/ui/parameter.d.ts +0 -7
- package/dist/entities/ui/parameter.js +0 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
import {
|
|
2
|
+
import { paramable } from '../../references.js';
|
|
3
3
|
import { serialisable } from '../../serialisable.js';
|
|
4
4
|
import { BuilderSerialisedSchema } from '../builder/index.js';
|
|
5
5
|
export class BuilderCollectionConfig {
|
|
@@ -14,9 +14,9 @@ export class BuilderCollectionConfig {
|
|
|
14
14
|
}
|
|
15
15
|
export const BuilderCollectionConfigSchema = v.instance(BuilderCollectionConfig);
|
|
16
16
|
export const BuilderCollectionConfigSerialisedSchema = serialisable(BuilderCollectionConfig, v.object({
|
|
17
|
-
builder:
|
|
18
|
-
min:
|
|
19
|
-
max:
|
|
17
|
+
builder: paramable(v.lazy(() => BuilderSerialisedSchema)),
|
|
18
|
+
min: paramable(v.number()),
|
|
19
|
+
max: paramable(v.number())
|
|
20
20
|
}));
|
|
21
21
|
export function collectionConfig(builder, min, max) {
|
|
22
22
|
return new BuilderCollectionConfig(builder, min, max);
|
|
@@ -2,7 +2,7 @@ export type { BuilderCollectionPayload, BuilderCollections, BuilderCollectionSer
|
|
|
2
2
|
export type { BuilderCollectionConfigSerialised } from './config';
|
|
3
3
|
export type { CollectionsAsserted, CollectionsExpected } from './expectation';
|
|
4
4
|
export type { BuilderCollectionWhen } from './when';
|
|
5
|
-
export { BuilderCollection, BuilderCollectionSchema, BuilderCollectionSerialisedSchema, BuilderCollectionsSerialisedSchema, BuilderCollectionWhenSerialisedSchema } from './collection.js';
|
|
5
|
+
export { BuilderCollection, BuilderCollectionSchema, BuilderCollectionSelectMapSerialisedSchema, BuilderCollectionSerialisedSchema, BuilderCollectionsSerialisedSchema, BuilderCollectionWhenSerialisedSchema } from './collection.js';
|
|
6
6
|
export { BuilderCollectionConfig, BuilderCollectionConfigSchema, BuilderCollectionConfigSerialisedSchema, collectionConfig } from './config.js';
|
|
7
7
|
export { collectionExpectation } from './expectation.js';
|
|
8
8
|
export { collectionWhen } from './when.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BuilderCollection, BuilderCollectionSchema, BuilderCollectionSerialisedSchema, BuilderCollectionsSerialisedSchema, BuilderCollectionWhenSerialisedSchema } from './collection.js';
|
|
1
|
+
export { BuilderCollection, BuilderCollectionSchema, BuilderCollectionSelectMapSerialisedSchema, BuilderCollectionSerialisedSchema, BuilderCollectionsSerialisedSchema, BuilderCollectionWhenSerialisedSchema } from './collection.js';
|
|
2
2
|
export { BuilderCollectionConfig, BuilderCollectionConfigSchema, BuilderCollectionConfigSerialisedSchema, collectionConfig } from './config.js';
|
|
3
3
|
export { collectionExpectation } from './expectation.js';
|
|
4
4
|
export { collectionWhen } from './when.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Paramable } from '../../references';
|
|
2
2
|
import type { BuilderWhen } from '../when';
|
|
3
3
|
import type { BuilderCollectionConfig } from './config';
|
|
4
|
-
export type BuilderCollectionWhen = BuilderWhen<
|
|
4
|
+
export type BuilderCollectionWhen = BuilderWhen<Paramable<BuilderCollectionConfig>>;
|
|
5
5
|
export declare const collectionWhen: {
|
|
6
|
-
enable: <const Values extends
|
|
7
|
-
match: <const MatchPayload extends
|
|
8
|
-
unless: <const Values extends
|
|
6
|
+
enable: <const Values extends Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderGeneric>, Paramable<number>, Paramable<number>>>>(values: Values) => import("../when").BuilderEnableConfig<Values>;
|
|
7
|
+
match: <const MatchPayload extends Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderGeneric>, Paramable<number>, Paramable<number>>>, const MatchPath extends Paramable<import("../..").BuilderPath>, const SelectMap extends Paramable<import("../when").BuilderMatchSelectMap<Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderGeneric>, Paramable<number>, Paramable<number>>>>>>(matchPath: MatchPath, selectMap: SelectMap) => import("../when").BuilderMatchConfig<MatchPayload, MatchPath, SelectMap>;
|
|
8
|
+
unless: <const Values extends Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderGeneric>, Paramable<number>, Paramable<number>>>, const UnlessPath extends Paramable<import("../..").BuilderPath>>(unlessPath: UnlessPath, disabledValues: import("../..").BuilderPrimitives, values: Values) => import("../when").BuilderUnlessConfig<Values, UnlessPath>;
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { BuilderPaths } from '../../paths';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Paramable } from '../../references';
|
|
3
3
|
import type { BuilderWhen, WhenSerialised } from '../when';
|
|
4
4
|
import type { BuilderComponentDetails, BuilderComponentDetailsSerialised } from './details';
|
|
5
5
|
import * as v from 'valibot';
|
|
6
|
-
export type BuilderComponentPayload = BuilderComponentDetails | BuilderWhen<
|
|
7
|
-
export declare class BuilderComponent<const Name extends string = string, const Payload extends
|
|
6
|
+
export type BuilderComponentPayload = BuilderComponentDetails | BuilderWhen<Paramable<BuilderComponentDetails>>;
|
|
7
|
+
export declare class BuilderComponent<const Name extends string = string, const Payload extends Paramable<BuilderComponentPayload> = Paramable<BuilderComponentPayload>, const GatePaths extends Paramable<BuilderPaths> = Paramable<BuilderPaths>> {
|
|
8
8
|
readonly type: 'component';
|
|
9
9
|
readonly name: Name;
|
|
10
10
|
readonly payload: Payload;
|
|
@@ -15,26 +15,27 @@ export declare const BuilderComponentSchema: v.InstanceSchema<typeof BuilderComp
|
|
|
15
15
|
export type BuilderComponents = ReadonlyArray<BuilderComponent>;
|
|
16
16
|
export declare const BuilderComponentWhenSerialisedSchema: v.GenericSchema;
|
|
17
17
|
export type BuilderComponentWhenSerialised = WhenSerialised<BuilderComponentDetailsSerialised>;
|
|
18
|
+
export declare const BuilderComponentSelectMapSerialisedSchema: v.GenericSchema;
|
|
18
19
|
export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
19
20
|
readonly name: v.StringSchema<undefined>;
|
|
20
21
|
readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
21
|
-
readonly type: v.LiteralSchema<"
|
|
22
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
22
23
|
readonly id: v.StringSchema<undefined>;
|
|
23
24
|
readonly name: v.StringSchema<undefined>;
|
|
24
25
|
}, undefined>, v.ReadonlyAction<{
|
|
25
|
-
type: "
|
|
26
|
+
type: "parameter";
|
|
26
27
|
id: string;
|
|
27
28
|
name: string;
|
|
28
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
29
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
29
30
|
readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
30
|
-
readonly type: v.LiteralSchema<"
|
|
31
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
31
32
|
readonly id: v.StringSchema<undefined>;
|
|
32
33
|
readonly name: v.StringSchema<undefined>;
|
|
33
34
|
}, undefined>, v.ReadonlyAction<{
|
|
34
|
-
type: "
|
|
35
|
+
type: "parameter";
|
|
35
36
|
id: string;
|
|
36
37
|
name: string;
|
|
37
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
38
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
38
39
|
readonly name: v.StringSchema<undefined>;
|
|
39
40
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
40
41
|
}, undefined>, v.MetadataAction<{
|
|
@@ -49,15 +50,15 @@ export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly
|
|
|
49
50
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
50
51
|
name: string;
|
|
51
52
|
kind: "option" | "component" | "collection" | "detail";
|
|
52
|
-
}>[]>]>], undefined>, v.MetadataAction<
|
|
53
|
-
type: "
|
|
53
|
+
}>[]>]>], undefined>, v.MetadataAction<Readonly<{
|
|
54
|
+
type: "parameter";
|
|
54
55
|
id: string;
|
|
55
56
|
name: string;
|
|
56
|
-
}> | readonly Readonly<{
|
|
57
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
57
58
|
name: string;
|
|
58
59
|
kind: "option" | "component" | "collection" | "detail";
|
|
59
60
|
}>[], {
|
|
60
|
-
readonly
|
|
61
|
+
readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
61
62
|
readonly name: v.StringSchema<undefined>;
|
|
62
63
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
63
64
|
}, undefined>, v.MetadataAction<{
|
|
@@ -75,11 +76,11 @@ export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly
|
|
|
75
76
|
}>[]>]>;
|
|
76
77
|
}>]>;
|
|
77
78
|
}, undefined>, v.MetadataAction<{
|
|
78
|
-
expectations:
|
|
79
|
-
type: "
|
|
79
|
+
expectations: Readonly<{
|
|
80
|
+
type: "parameter";
|
|
80
81
|
id: string;
|
|
81
82
|
name: string;
|
|
82
|
-
}> | readonly Readonly<{
|
|
83
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
83
84
|
name: string;
|
|
84
85
|
kind: "option" | "component" | "collection" | "detail";
|
|
85
86
|
}>[];
|
|
@@ -87,25 +88,25 @@ export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly
|
|
|
87
88
|
readonly serialisable: typeof BuilderComponentDetails;
|
|
88
89
|
readonly instance: v.InstanceSchema<typeof BuilderComponentDetails, undefined>;
|
|
89
90
|
}>, v.ReadonlyAction<{
|
|
90
|
-
expectations:
|
|
91
|
-
type: "
|
|
91
|
+
expectations: Readonly<{
|
|
92
|
+
type: "parameter";
|
|
92
93
|
id: string;
|
|
93
94
|
name: string;
|
|
94
|
-
}> | readonly Readonly<{
|
|
95
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
95
96
|
name: string;
|
|
96
97
|
kind: "option" | "component" | "collection" | "detail";
|
|
97
98
|
}>[];
|
|
98
99
|
}>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
|
|
99
|
-
readonly
|
|
100
|
+
readonly paramable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
100
101
|
readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
101
|
-
readonly type: v.LiteralSchema<"
|
|
102
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
102
103
|
readonly id: v.StringSchema<undefined>;
|
|
103
104
|
readonly name: v.StringSchema<undefined>;
|
|
104
105
|
}, undefined>, v.ReadonlyAction<{
|
|
105
|
-
type: "
|
|
106
|
+
type: "parameter";
|
|
106
107
|
id: string;
|
|
107
108
|
name: string;
|
|
108
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
109
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
109
110
|
readonly name: v.StringSchema<undefined>;
|
|
110
111
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
111
112
|
}, undefined>, v.MetadataAction<{
|
|
@@ -120,15 +121,15 @@ export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly
|
|
|
120
121
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
121
122
|
name: string;
|
|
122
123
|
kind: "option" | "component" | "collection" | "detail";
|
|
123
|
-
}>[]>]>], undefined>, v.MetadataAction<
|
|
124
|
-
type: "
|
|
124
|
+
}>[]>]>], undefined>, v.MetadataAction<Readonly<{
|
|
125
|
+
type: "parameter";
|
|
125
126
|
id: string;
|
|
126
127
|
name: string;
|
|
127
|
-
}> | readonly Readonly<{
|
|
128
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
128
129
|
name: string;
|
|
129
130
|
kind: "option" | "component" | "collection" | "detail";
|
|
130
131
|
}>[], {
|
|
131
|
-
readonly
|
|
132
|
+
readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
132
133
|
readonly name: v.StringSchema<undefined>;
|
|
133
134
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
134
135
|
}, undefined>, v.MetadataAction<{
|
|
@@ -146,11 +147,11 @@ export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly
|
|
|
146
147
|
}>[]>]>;
|
|
147
148
|
}>]>;
|
|
148
149
|
}, undefined>, v.MetadataAction<{
|
|
149
|
-
expectations:
|
|
150
|
-
type: "
|
|
150
|
+
expectations: Readonly<{
|
|
151
|
+
type: "parameter";
|
|
151
152
|
id: string;
|
|
152
153
|
name: string;
|
|
153
|
-
}> | readonly Readonly<{
|
|
154
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
154
155
|
name: string;
|
|
155
156
|
kind: "option" | "component" | "collection" | "detail";
|
|
156
157
|
}>[];
|
|
@@ -158,72 +159,72 @@ export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly
|
|
|
158
159
|
readonly serialisable: typeof BuilderComponentDetails;
|
|
159
160
|
readonly instance: v.InstanceSchema<typeof BuilderComponentDetails, undefined>;
|
|
160
161
|
}>, v.ReadonlyAction<{
|
|
161
|
-
expectations:
|
|
162
|
-
type: "
|
|
162
|
+
expectations: Readonly<{
|
|
163
|
+
type: "parameter";
|
|
163
164
|
id: string;
|
|
164
165
|
name: string;
|
|
165
|
-
}> | readonly Readonly<{
|
|
166
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
166
167
|
name: string;
|
|
167
168
|
kind: "option" | "component" | "collection" | "detail";
|
|
168
169
|
}>[];
|
|
169
170
|
}>]>, v.GenericSchema], undefined>;
|
|
170
171
|
}>]>;
|
|
171
172
|
readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
172
|
-
readonly type: v.LiteralSchema<"
|
|
173
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
173
174
|
readonly id: v.StringSchema<undefined>;
|
|
174
175
|
readonly name: v.StringSchema<undefined>;
|
|
175
176
|
}, undefined>, v.ReadonlyAction<{
|
|
176
|
-
type: "
|
|
177
|
+
type: "parameter";
|
|
177
178
|
id: string;
|
|
178
179
|
name: string;
|
|
179
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
180
|
-
type: "
|
|
180
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | Readonly<{
|
|
181
|
+
type: "parameter";
|
|
181
182
|
id: string;
|
|
182
183
|
name: string;
|
|
183
|
-
}>, {
|
|
184
|
-
readonly
|
|
184
|
+
}> | import("../..").BuilderParameter<string>, {
|
|
185
|
+
readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
|
|
185
186
|
}>]>, undefined>;
|
|
186
187
|
}, undefined>, v.MetadataAction<{
|
|
187
188
|
name: string;
|
|
188
189
|
payload: unknown;
|
|
189
|
-
gatePaths?: readonly (readonly (string | number)[])[] |
|
|
190
|
-
type: "
|
|
190
|
+
gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
|
|
191
|
+
type: "parameter";
|
|
191
192
|
id: string;
|
|
192
193
|
name: string;
|
|
193
|
-
}> | undefined;
|
|
194
|
+
}> | import("../..").BuilderParameter<string> | undefined;
|
|
194
195
|
}, {
|
|
195
196
|
readonly serialisable: typeof BuilderComponent;
|
|
196
197
|
readonly instance: v.InstanceSchema<typeof BuilderComponent, undefined>;
|
|
197
198
|
}>, v.ReadonlyAction<{
|
|
198
199
|
name: string;
|
|
199
200
|
payload: unknown;
|
|
200
|
-
gatePaths?: readonly (readonly (string | number)[])[] |
|
|
201
|
-
type: "
|
|
201
|
+
gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
|
|
202
|
+
type: "parameter";
|
|
202
203
|
id: string;
|
|
203
204
|
name: string;
|
|
204
|
-
}> | undefined;
|
|
205
|
+
}> | import("../..").BuilderParameter<string> | undefined;
|
|
205
206
|
}>]>;
|
|
206
207
|
export type BuilderComponentSerialised = v.InferOutput<typeof BuilderComponentSerialisedSchema>;
|
|
207
208
|
export declare const BuilderComponentsSerialisedSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
208
209
|
readonly name: v.StringSchema<undefined>;
|
|
209
210
|
readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
210
|
-
readonly type: v.LiteralSchema<"
|
|
211
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
211
212
|
readonly id: v.StringSchema<undefined>;
|
|
212
213
|
readonly name: v.StringSchema<undefined>;
|
|
213
214
|
}, undefined>, v.ReadonlyAction<{
|
|
214
|
-
type: "
|
|
215
|
+
type: "parameter";
|
|
215
216
|
id: string;
|
|
216
217
|
name: string;
|
|
217
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
218
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
218
219
|
readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
219
|
-
readonly type: v.LiteralSchema<"
|
|
220
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
220
221
|
readonly id: v.StringSchema<undefined>;
|
|
221
222
|
readonly name: v.StringSchema<undefined>;
|
|
222
223
|
}, undefined>, v.ReadonlyAction<{
|
|
223
|
-
type: "
|
|
224
|
+
type: "parameter";
|
|
224
225
|
id: string;
|
|
225
226
|
name: string;
|
|
226
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
227
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
227
228
|
readonly name: v.StringSchema<undefined>;
|
|
228
229
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
229
230
|
}, undefined>, v.MetadataAction<{
|
|
@@ -238,15 +239,15 @@ export declare const BuilderComponentsSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
238
239
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
239
240
|
name: string;
|
|
240
241
|
kind: "option" | "component" | "collection" | "detail";
|
|
241
|
-
}>[]>]>], undefined>, v.MetadataAction<
|
|
242
|
-
type: "
|
|
242
|
+
}>[]>]>], undefined>, v.MetadataAction<Readonly<{
|
|
243
|
+
type: "parameter";
|
|
243
244
|
id: string;
|
|
244
245
|
name: string;
|
|
245
|
-
}> | readonly Readonly<{
|
|
246
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
246
247
|
name: string;
|
|
247
248
|
kind: "option" | "component" | "collection" | "detail";
|
|
248
249
|
}>[], {
|
|
249
|
-
readonly
|
|
250
|
+
readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
250
251
|
readonly name: v.StringSchema<undefined>;
|
|
251
252
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
252
253
|
}, undefined>, v.MetadataAction<{
|
|
@@ -264,11 +265,11 @@ export declare const BuilderComponentsSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
264
265
|
}>[]>]>;
|
|
265
266
|
}>]>;
|
|
266
267
|
}, undefined>, v.MetadataAction<{
|
|
267
|
-
expectations:
|
|
268
|
-
type: "
|
|
268
|
+
expectations: Readonly<{
|
|
269
|
+
type: "parameter";
|
|
269
270
|
id: string;
|
|
270
271
|
name: string;
|
|
271
|
-
}> | readonly Readonly<{
|
|
272
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
272
273
|
name: string;
|
|
273
274
|
kind: "option" | "component" | "collection" | "detail";
|
|
274
275
|
}>[];
|
|
@@ -276,25 +277,25 @@ export declare const BuilderComponentsSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
276
277
|
readonly serialisable: typeof BuilderComponentDetails;
|
|
277
278
|
readonly instance: v.InstanceSchema<typeof BuilderComponentDetails, undefined>;
|
|
278
279
|
}>, v.ReadonlyAction<{
|
|
279
|
-
expectations:
|
|
280
|
-
type: "
|
|
280
|
+
expectations: Readonly<{
|
|
281
|
+
type: "parameter";
|
|
281
282
|
id: string;
|
|
282
283
|
name: string;
|
|
283
|
-
}> | readonly Readonly<{
|
|
284
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
284
285
|
name: string;
|
|
285
286
|
kind: "option" | "component" | "collection" | "detail";
|
|
286
287
|
}>[];
|
|
287
288
|
}>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
|
|
288
|
-
readonly
|
|
289
|
+
readonly paramable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
289
290
|
readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
290
|
-
readonly type: v.LiteralSchema<"
|
|
291
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
291
292
|
readonly id: v.StringSchema<undefined>;
|
|
292
293
|
readonly name: v.StringSchema<undefined>;
|
|
293
294
|
}, undefined>, v.ReadonlyAction<{
|
|
294
|
-
type: "
|
|
295
|
+
type: "parameter";
|
|
295
296
|
id: string;
|
|
296
297
|
name: string;
|
|
297
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
298
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
298
299
|
readonly name: v.StringSchema<undefined>;
|
|
299
300
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
300
301
|
}, undefined>, v.MetadataAction<{
|
|
@@ -309,15 +310,15 @@ export declare const BuilderComponentsSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
309
310
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
310
311
|
name: string;
|
|
311
312
|
kind: "option" | "component" | "collection" | "detail";
|
|
312
|
-
}>[]>]>], undefined>, v.MetadataAction<
|
|
313
|
-
type: "
|
|
313
|
+
}>[]>]>], undefined>, v.MetadataAction<Readonly<{
|
|
314
|
+
type: "parameter";
|
|
314
315
|
id: string;
|
|
315
316
|
name: string;
|
|
316
|
-
}> | readonly Readonly<{
|
|
317
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
317
318
|
name: string;
|
|
318
319
|
kind: "option" | "component" | "collection" | "detail";
|
|
319
320
|
}>[], {
|
|
320
|
-
readonly
|
|
321
|
+
readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
321
322
|
readonly name: v.StringSchema<undefined>;
|
|
322
323
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
323
324
|
}, undefined>, v.MetadataAction<{
|
|
@@ -335,11 +336,11 @@ export declare const BuilderComponentsSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
335
336
|
}>[]>]>;
|
|
336
337
|
}>]>;
|
|
337
338
|
}, undefined>, v.MetadataAction<{
|
|
338
|
-
expectations:
|
|
339
|
-
type: "
|
|
339
|
+
expectations: Readonly<{
|
|
340
|
+
type: "parameter";
|
|
340
341
|
id: string;
|
|
341
342
|
name: string;
|
|
342
|
-
}> | readonly Readonly<{
|
|
343
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
343
344
|
name: string;
|
|
344
345
|
kind: "option" | "component" | "collection" | "detail";
|
|
345
346
|
}>[];
|
|
@@ -347,57 +348,57 @@ export declare const BuilderComponentsSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
347
348
|
readonly serialisable: typeof BuilderComponentDetails;
|
|
348
349
|
readonly instance: v.InstanceSchema<typeof BuilderComponentDetails, undefined>;
|
|
349
350
|
}>, v.ReadonlyAction<{
|
|
350
|
-
expectations:
|
|
351
|
-
type: "
|
|
351
|
+
expectations: Readonly<{
|
|
352
|
+
type: "parameter";
|
|
352
353
|
id: string;
|
|
353
354
|
name: string;
|
|
354
|
-
}> | readonly Readonly<{
|
|
355
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
355
356
|
name: string;
|
|
356
357
|
kind: "option" | "component" | "collection" | "detail";
|
|
357
358
|
}>[];
|
|
358
359
|
}>]>, v.GenericSchema], undefined>;
|
|
359
360
|
}>]>;
|
|
360
361
|
readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
361
|
-
readonly type: v.LiteralSchema<"
|
|
362
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
362
363
|
readonly id: v.StringSchema<undefined>;
|
|
363
364
|
readonly name: v.StringSchema<undefined>;
|
|
364
365
|
}, undefined>, v.ReadonlyAction<{
|
|
365
|
-
type: "
|
|
366
|
+
type: "parameter";
|
|
366
367
|
id: string;
|
|
367
368
|
name: string;
|
|
368
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
369
|
-
type: "
|
|
369
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | Readonly<{
|
|
370
|
+
type: "parameter";
|
|
370
371
|
id: string;
|
|
371
372
|
name: string;
|
|
372
|
-
}>, {
|
|
373
|
-
readonly
|
|
373
|
+
}> | import("../..").BuilderParameter<string>, {
|
|
374
|
+
readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
|
|
374
375
|
}>]>, undefined>;
|
|
375
376
|
}, undefined>, v.MetadataAction<{
|
|
376
377
|
name: string;
|
|
377
378
|
payload: unknown;
|
|
378
|
-
gatePaths?: readonly (readonly (string | number)[])[] |
|
|
379
|
-
type: "
|
|
379
|
+
gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
|
|
380
|
+
type: "parameter";
|
|
380
381
|
id: string;
|
|
381
382
|
name: string;
|
|
382
|
-
}> | undefined;
|
|
383
|
+
}> | import("../..").BuilderParameter<string> | undefined;
|
|
383
384
|
}, {
|
|
384
385
|
readonly serialisable: typeof BuilderComponent;
|
|
385
386
|
readonly instance: v.InstanceSchema<typeof BuilderComponent, undefined>;
|
|
386
387
|
}>, v.ReadonlyAction<{
|
|
387
388
|
name: string;
|
|
388
389
|
payload: unknown;
|
|
389
|
-
gatePaths?: readonly (readonly (string | number)[])[] |
|
|
390
|
-
type: "
|
|
390
|
+
gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
|
|
391
|
+
type: "parameter";
|
|
391
392
|
id: string;
|
|
392
393
|
name: string;
|
|
393
|
-
}> | undefined;
|
|
394
|
+
}> | import("../..").BuilderParameter<string> | undefined;
|
|
394
395
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
395
396
|
name: string;
|
|
396
397
|
payload: unknown;
|
|
397
|
-
gatePaths?: readonly (readonly (string | number)[])[] |
|
|
398
|
-
type: "
|
|
398
|
+
gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
|
|
399
|
+
type: "parameter";
|
|
399
400
|
id: string;
|
|
400
401
|
name: string;
|
|
401
|
-
}> | undefined;
|
|
402
|
+
}> | import("../..").BuilderParameter<string> | undefined;
|
|
402
403
|
}>[]>]>;
|
|
403
404
|
export type BuilderComponentsSerialised = v.InferOutput<typeof BuilderComponentsSerialisedSchema>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { BuilderPathsSchema } from '../../paths.js';
|
|
3
|
-
import {
|
|
3
|
+
import { paramable } from '../../references.js';
|
|
4
4
|
import { serialisable } from '../../serialisable.js';
|
|
5
|
-
import { createWhenSerialisedSchema } from '../when.js';
|
|
5
|
+
import { createSelectMapSerialisedSchema, createWhenSerialisedSchema } from '../when.js';
|
|
6
6
|
import { BuilderComponentDetailsSerialisedSchema } from './details.js';
|
|
7
7
|
export class BuilderComponent {
|
|
8
8
|
name;
|
|
@@ -16,9 +16,10 @@ export class BuilderComponent {
|
|
|
16
16
|
}
|
|
17
17
|
export const BuilderComponentSchema = v.instance(BuilderComponent);
|
|
18
18
|
export const BuilderComponentWhenSerialisedSchema = createWhenSerialisedSchema(BuilderComponentDetailsSerialisedSchema);
|
|
19
|
+
export const BuilderComponentSelectMapSerialisedSchema = createSelectMapSerialisedSchema(BuilderComponentDetailsSerialisedSchema);
|
|
19
20
|
export const BuilderComponentSerialisedSchema = serialisable(BuilderComponent, v.object({
|
|
20
21
|
name: v.string(),
|
|
21
|
-
payload:
|
|
22
|
-
gatePaths: v.optional(
|
|
22
|
+
payload: paramable(v.union([BuilderComponentDetailsSerialisedSchema, BuilderComponentWhenSerialisedSchema])),
|
|
23
|
+
gatePaths: v.optional(paramable(BuilderPathsSchema))
|
|
23
24
|
}));
|
|
24
25
|
export const BuilderComponentsSerialisedSchema = v.pipe(v.array(BuilderComponentSerialisedSchema), v.readonly());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Paramable } from '../../references';
|
|
2
2
|
import type { BuilderExpectations } from '../expectation';
|
|
3
3
|
import * as v from 'valibot';
|
|
4
|
-
export declare class BuilderComponentDetails<Expectations extends
|
|
4
|
+
export declare class BuilderComponentDetails<Expectations extends Paramable<BuilderExpectations> = Paramable<BuilderExpectations>> {
|
|
5
5
|
readonly type: 'component-details';
|
|
6
6
|
expectations: Expectations;
|
|
7
7
|
constructor(expectations: Expectations);
|
|
@@ -9,14 +9,14 @@ export declare class BuilderComponentDetails<Expectations extends Refable<Builde
|
|
|
9
9
|
export declare const BuilderComponentDetailsSchema: v.InstanceSchema<typeof BuilderComponentDetails, undefined>;
|
|
10
10
|
export declare const BuilderComponentDetailsSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
11
11
|
readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
12
|
-
readonly type: v.LiteralSchema<"
|
|
12
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
13
13
|
readonly id: v.StringSchema<undefined>;
|
|
14
14
|
readonly name: v.StringSchema<undefined>;
|
|
15
15
|
}, undefined>, v.ReadonlyAction<{
|
|
16
|
-
type: "
|
|
16
|
+
type: "parameter";
|
|
17
17
|
id: string;
|
|
18
18
|
name: string;
|
|
19
|
-
}>]>, v.InstanceSchema<typeof import("../..").
|
|
19
|
+
}>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
20
20
|
readonly name: v.StringSchema<undefined>;
|
|
21
21
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
22
22
|
}, undefined>, v.MetadataAction<{
|
|
@@ -31,15 +31,15 @@ export declare const BuilderComponentDetailsSerialisedSchema: v.SchemaWithPipe<r
|
|
|
31
31
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
32
32
|
name: string;
|
|
33
33
|
kind: "option" | "component" | "collection" | "detail";
|
|
34
|
-
}>[]>]>], undefined>, v.MetadataAction<
|
|
35
|
-
type: "
|
|
34
|
+
}>[]>]>], undefined>, v.MetadataAction<Readonly<{
|
|
35
|
+
type: "parameter";
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
38
|
-
}> | readonly Readonly<{
|
|
38
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
39
39
|
name: string;
|
|
40
40
|
kind: "option" | "component" | "collection" | "detail";
|
|
41
41
|
}>[], {
|
|
42
|
-
readonly
|
|
42
|
+
readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
43
43
|
readonly name: v.StringSchema<undefined>;
|
|
44
44
|
readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
|
|
45
45
|
}, undefined>, v.MetadataAction<{
|
|
@@ -57,11 +57,11 @@ export declare const BuilderComponentDetailsSerialisedSchema: v.SchemaWithPipe<r
|
|
|
57
57
|
}>[]>]>;
|
|
58
58
|
}>]>;
|
|
59
59
|
}, undefined>, v.MetadataAction<{
|
|
60
|
-
expectations:
|
|
61
|
-
type: "
|
|
60
|
+
expectations: Readonly<{
|
|
61
|
+
type: "parameter";
|
|
62
62
|
id: string;
|
|
63
63
|
name: string;
|
|
64
|
-
}> | readonly Readonly<{
|
|
64
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
65
65
|
name: string;
|
|
66
66
|
kind: "option" | "component" | "collection" | "detail";
|
|
67
67
|
}>[];
|
|
@@ -69,14 +69,14 @@ export declare const BuilderComponentDetailsSerialisedSchema: v.SchemaWithPipe<r
|
|
|
69
69
|
readonly serialisable: typeof BuilderComponentDetails;
|
|
70
70
|
readonly instance: v.InstanceSchema<typeof BuilderComponentDetails, undefined>;
|
|
71
71
|
}>, v.ReadonlyAction<{
|
|
72
|
-
expectations:
|
|
73
|
-
type: "
|
|
72
|
+
expectations: Readonly<{
|
|
73
|
+
type: "parameter";
|
|
74
74
|
id: string;
|
|
75
75
|
name: string;
|
|
76
|
-
}> | readonly Readonly<{
|
|
76
|
+
}> | import("../..").BuilderParameter<string> | readonly Readonly<{
|
|
77
77
|
name: string;
|
|
78
78
|
kind: "option" | "component" | "collection" | "detail";
|
|
79
79
|
}>[];
|
|
80
80
|
}>]>;
|
|
81
81
|
export type BuilderComponentDetailsSerialised = v.InferOutput<typeof BuilderComponentDetailsSerialisedSchema>;
|
|
82
|
-
export declare function componentDetails<const Expectations extends
|
|
82
|
+
export declare function componentDetails<const Expectations extends Paramable<BuilderExpectations> = Paramable<BuilderExpectations>>(expectations?: Expectations): BuilderComponentDetails;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { BuilderExpectationsSerialisedSchema } from '../expectation.js';
|
|
3
|
-
import {
|
|
3
|
+
import { paramable } from '../../references.js';
|
|
4
4
|
import { serialisable } from '../../serialisable.js';
|
|
5
5
|
export class BuilderComponentDetails {
|
|
6
6
|
expectations;
|
|
@@ -10,7 +10,7 @@ export class BuilderComponentDetails {
|
|
|
10
10
|
}
|
|
11
11
|
export const BuilderComponentDetailsSchema = v.instance(BuilderComponentDetails);
|
|
12
12
|
export const BuilderComponentDetailsSerialisedSchema = serialisable(BuilderComponentDetails, v.object({
|
|
13
|
-
expectations:
|
|
13
|
+
expectations: paramable(BuilderExpectationsSerialisedSchema)
|
|
14
14
|
}));
|
|
15
15
|
export function componentDetails(expectations) {
|
|
16
16
|
return new BuilderComponentDetails((expectations ?? []));
|
|
@@ -2,7 +2,7 @@ export type { BuilderComponentPayload, BuilderComponents, BuilderComponentSerial
|
|
|
2
2
|
export type { BuilderComponentDetailsSerialised } from './details';
|
|
3
3
|
export type { ComponentAsserted, ComponentsExpected } from './expectation';
|
|
4
4
|
export type { BuilderComponentWhen } from './when';
|
|
5
|
-
export { BuilderComponent, BuilderComponentSchema, BuilderComponentSerialisedSchema, BuilderComponentsSerialisedSchema, BuilderComponentWhenSerialisedSchema } from './component.js';
|
|
5
|
+
export { BuilderComponent, BuilderComponentSchema, BuilderComponentSelectMapSerialisedSchema, BuilderComponentSerialisedSchema, BuilderComponentsSerialisedSchema, BuilderComponentWhenSerialisedSchema } from './component.js';
|
|
6
6
|
export { BuilderComponentDetails, BuilderComponentDetailsSchema, BuilderComponentDetailsSerialisedSchema, componentDetails } from './details.js';
|
|
7
7
|
export { componentExpectation, detailExpectation } from './expectation.js';
|
|
8
8
|
export { componentWhen } from './when.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BuilderComponent, BuilderComponentSchema, BuilderComponentSerialisedSchema, BuilderComponentsSerialisedSchema, BuilderComponentWhenSerialisedSchema } from './component.js';
|
|
1
|
+
export { BuilderComponent, BuilderComponentSchema, BuilderComponentSelectMapSerialisedSchema, BuilderComponentSerialisedSchema, BuilderComponentsSerialisedSchema, BuilderComponentWhenSerialisedSchema } from './component.js';
|
|
2
2
|
export { BuilderComponentDetails, BuilderComponentDetailsSchema, BuilderComponentDetailsSerialisedSchema, componentDetails } from './details.js';
|
|
3
3
|
export { componentExpectation, detailExpectation } from './expectation.js';
|
|
4
4
|
export { componentWhen } from './when.js';
|