@builder-builder/builder 0.0.26 → 0.0.27

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.
Files changed (33) hide show
  1. package/dist/client/schema.d.ts +25 -0
  2. package/dist/client/schema.js +3 -1
  3. package/dist/components/Builder.svelte.d.ts +24 -0
  4. package/dist/components/BuilderCollectionButtons.svelte.d.ts +22 -0
  5. package/dist/components/BuilderCollections.svelte.d.ts +23 -0
  6. package/dist/components/BuilderDescription.svelte.d.ts +18 -0
  7. package/dist/components/BuilderLayout.svelte.d.ts +24 -0
  8. package/dist/components/BuilderOption.svelte.d.ts +31 -0
  9. package/dist/components/BuilderOptionSelect.svelte.d.ts +21 -0
  10. package/dist/components/BuilderOptionToggleBoolean.svelte.d.ts +20 -0
  11. package/dist/components/BuilderOptionToggleNumber.svelte.d.ts +21 -0
  12. package/dist/components/BuilderOptionToggleString.svelte.d.ts +21 -0
  13. package/dist/components/BuilderPrice.svelte.d.ts +21 -0
  14. package/dist/components/BuilderRender.svelte.d.ts +39 -0
  15. package/dist/components/config.d.ts +2 -0
  16. package/dist/components/config.js +1 -0
  17. package/dist/components/dispatch.d.ts +1 -0
  18. package/dist/components/dispatch.js +3 -0
  19. package/dist/components/id.d.ts +1 -0
  20. package/dist/components/id.js +3 -0
  21. package/dist/components/index.d.ts +25 -0
  22. package/dist/components/index.js +7441 -0
  23. package/dist/entities/references.d.ts +48 -0
  24. package/dist/entities/serialise.d.ts +117 -0
  25. package/dist/entities/ui/describe.d.ts +48 -0
  26. package/dist/entities/ui/input.d.ts +66 -1
  27. package/dist/entities/ui/input.js +8 -2
  28. package/dist/entities/ui/page.d.ts +48 -0
  29. package/dist/entities/ui/pages.d.ts +8 -0
  30. package/dist/mappers/order.js +4 -2
  31. package/dist/mappers/render/option.d.ts +1 -0
  32. package/dist/mappers/render/option.js +1 -0
  33. package/package.json +7 -5
@@ -210,6 +210,14 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
210
210
  type: "ref";
211
211
  id: string;
212
212
  }> | undefined;
213
+ placeholderLabel?: string | Readonly<{
214
+ type: "parameter";
215
+ id: string;
216
+ name: string;
217
+ }> | Readonly<{
218
+ type: "ref";
219
+ id: string;
220
+ }> | undefined;
213
221
  metadata?: Readonly<{
214
222
  type: "parameter";
215
223
  id: string;
@@ -271,6 +279,14 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
271
279
  type: "ref";
272
280
  id: string;
273
281
  }> | undefined;
282
+ placeholderLabel?: string | Readonly<{
283
+ type: "parameter";
284
+ id: string;
285
+ name: string;
286
+ }> | Readonly<{
287
+ type: "ref";
288
+ id: string;
289
+ }> | undefined;
274
290
  metadata?: Readonly<{
275
291
  type: "parameter";
276
292
  id: string;
@@ -334,6 +350,14 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
334
350
  type: "ref";
335
351
  id: string;
336
352
  }> | undefined;
353
+ placeholderLabel?: string | Readonly<{
354
+ type: "parameter";
355
+ id: string;
356
+ name: string;
357
+ }> | Readonly<{
358
+ type: "ref";
359
+ id: string;
360
+ }> | undefined;
337
361
  metadata?: Readonly<{
338
362
  type: "parameter";
339
363
  id: string;
@@ -571,6 +595,14 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
571
595
  type: "ref";
572
596
  id: string;
573
597
  }> | undefined;
598
+ placeholderLabel?: string | Readonly<{
599
+ type: "parameter";
600
+ id: string;
601
+ name: string;
602
+ }> | Readonly<{
603
+ type: "ref";
604
+ id: string;
605
+ }> | undefined;
574
606
  metadata?: Readonly<{
575
607
  type: "parameter";
576
608
  id: string;
@@ -632,6 +664,14 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
632
664
  type: "ref";
633
665
  id: string;
634
666
  }> | undefined;
667
+ placeholderLabel?: string | Readonly<{
668
+ type: "parameter";
669
+ id: string;
670
+ name: string;
671
+ }> | Readonly<{
672
+ type: "ref";
673
+ id: string;
674
+ }> | undefined;
635
675
  metadata?: Readonly<{
636
676
  type: "parameter";
637
677
  id: string;
@@ -695,6 +735,14 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
695
735
  type: "ref";
696
736
  id: string;
697
737
  }> | undefined;
738
+ placeholderLabel?: string | Readonly<{
739
+ type: "parameter";
740
+ id: string;
741
+ name: string;
742
+ }> | Readonly<{
743
+ type: "ref";
744
+ id: string;
745
+ }> | undefined;
698
746
  metadata?: Readonly<{
699
747
  type: "parameter";
700
748
  id: string;
@@ -551,6 +551,21 @@ export declare const entitiesMap: {
551
551
  type: "ref";
552
552
  id: string;
553
553
  }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
554
+ readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
555
+ readonly type: v.LiteralSchema<"parameter", undefined>;
556
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
557
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
558
+ }, undefined>, v.ReadonlyAction<{
559
+ type: "parameter";
560
+ id: string;
561
+ name: string;
562
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
563
+ readonly type: v.LiteralSchema<"ref", undefined>;
564
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
565
+ }, undefined>, v.ReadonlyAction<{
566
+ type: "ref";
567
+ id: string;
568
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
554
569
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
555
570
  readonly type: v.LiteralSchema<"parameter", undefined>;
556
571
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -609,6 +624,14 @@ export declare const entitiesMap: {
609
624
  type: "ref";
610
625
  id: string;
611
626
  }> | undefined;
627
+ placeholderLabel?: string | Readonly<{
628
+ type: "parameter";
629
+ id: string;
630
+ name: string;
631
+ }> | Readonly<{
632
+ type: "ref";
633
+ id: string;
634
+ }> | undefined;
612
635
  metadata?: Readonly<{
613
636
  type: "parameter";
614
637
  id: string;
@@ -653,6 +676,14 @@ export declare const entitiesMap: {
653
676
  type: "ref";
654
677
  id: string;
655
678
  }> | undefined;
679
+ placeholderLabel?: string | Readonly<{
680
+ type: "parameter";
681
+ id: string;
682
+ name: string;
683
+ }> | Readonly<{
684
+ type: "ref";
685
+ id: string;
686
+ }> | undefined;
656
687
  metadata?: Readonly<{
657
688
  type: "parameter";
658
689
  id: string;
@@ -697,6 +728,14 @@ export declare const entitiesMap: {
697
728
  type: "ref";
698
729
  id: string;
699
730
  }> | undefined;
731
+ placeholderLabel?: string | Readonly<{
732
+ type: "parameter";
733
+ id: string;
734
+ name: string;
735
+ }> | Readonly<{
736
+ type: "ref";
737
+ id: string;
738
+ }> | undefined;
700
739
  metadata?: Readonly<{
701
740
  type: "parameter";
702
741
  id: string;
@@ -760,6 +799,14 @@ export declare const entitiesMap: {
760
799
  type: "ref";
761
800
  id: string;
762
801
  }> | undefined;
802
+ placeholderLabel?: string | Readonly<{
803
+ type: "parameter";
804
+ id: string;
805
+ name: string;
806
+ }> | Readonly<{
807
+ type: "ref";
808
+ id: string;
809
+ }> | undefined;
763
810
  metadata?: Readonly<{
764
811
  type: "parameter";
765
812
  id: string;
@@ -915,6 +962,21 @@ export declare const entitiesMap: {
915
962
  type: "ref";
916
963
  id: string;
917
964
  }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
965
+ readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
966
+ readonly type: v.LiteralSchema<"parameter", undefined>;
967
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
968
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
969
+ }, undefined>, v.ReadonlyAction<{
970
+ type: "parameter";
971
+ id: string;
972
+ name: string;
973
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
974
+ readonly type: v.LiteralSchema<"ref", undefined>;
975
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
976
+ }, undefined>, v.ReadonlyAction<{
977
+ type: "ref";
978
+ id: string;
979
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
918
980
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
919
981
  readonly type: v.LiteralSchema<"parameter", undefined>;
920
982
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -973,6 +1035,14 @@ export declare const entitiesMap: {
973
1035
  type: "ref";
974
1036
  id: string;
975
1037
  }> | undefined;
1038
+ placeholderLabel?: string | Readonly<{
1039
+ type: "parameter";
1040
+ id: string;
1041
+ name: string;
1042
+ }> | Readonly<{
1043
+ type: "ref";
1044
+ id: string;
1045
+ }> | undefined;
976
1046
  metadata?: Readonly<{
977
1047
  type: "parameter";
978
1048
  id: string;
@@ -1017,6 +1087,14 @@ export declare const entitiesMap: {
1017
1087
  type: "ref";
1018
1088
  id: string;
1019
1089
  }> | undefined;
1090
+ placeholderLabel?: string | Readonly<{
1091
+ type: "parameter";
1092
+ id: string;
1093
+ name: string;
1094
+ }> | Readonly<{
1095
+ type: "ref";
1096
+ id: string;
1097
+ }> | undefined;
1020
1098
  metadata?: Readonly<{
1021
1099
  type: "parameter";
1022
1100
  id: string;
@@ -1061,6 +1139,14 @@ export declare const entitiesMap: {
1061
1139
  type: "ref";
1062
1140
  id: string;
1063
1141
  }> | undefined;
1142
+ placeholderLabel?: string | Readonly<{
1143
+ type: "parameter";
1144
+ id: string;
1145
+ name: string;
1146
+ }> | Readonly<{
1147
+ type: "ref";
1148
+ id: string;
1149
+ }> | undefined;
1064
1150
  metadata?: Readonly<{
1065
1151
  type: "parameter";
1066
1152
  id: string;
@@ -1124,6 +1210,14 @@ export declare const entitiesMap: {
1124
1210
  type: "ref";
1125
1211
  id: string;
1126
1212
  }> | undefined;
1213
+ placeholderLabel?: string | Readonly<{
1214
+ type: "parameter";
1215
+ id: string;
1216
+ name: string;
1217
+ }> | Readonly<{
1218
+ type: "ref";
1219
+ id: string;
1220
+ }> | undefined;
1127
1221
  metadata?: Readonly<{
1128
1222
  type: "parameter";
1129
1223
  id: string;
@@ -1192,6 +1286,21 @@ export declare const entitiesMap: {
1192
1286
  type: "ref";
1193
1287
  id: string;
1194
1288
  }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
1289
+ readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
1290
+ readonly type: v.LiteralSchema<"parameter", undefined>;
1291
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1292
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1293
+ }, undefined>, v.ReadonlyAction<{
1294
+ type: "parameter";
1295
+ id: string;
1296
+ name: string;
1297
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1298
+ readonly type: v.LiteralSchema<"ref", undefined>;
1299
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1300
+ }, undefined>, v.ReadonlyAction<{
1301
+ type: "ref";
1302
+ id: string;
1303
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
1195
1304
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
1196
1305
  readonly type: v.LiteralSchema<"parameter", undefined>;
1197
1306
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -1250,6 +1359,14 @@ export declare const entitiesMap: {
1250
1359
  type: "ref";
1251
1360
  id: string;
1252
1361
  }> | undefined;
1362
+ placeholderLabel?: string | Readonly<{
1363
+ type: "parameter";
1364
+ id: string;
1365
+ name: string;
1366
+ }> | Readonly<{
1367
+ type: "ref";
1368
+ id: string;
1369
+ }> | undefined;
1253
1370
  metadata?: Readonly<{
1254
1371
  type: "parameter";
1255
1372
  id: string;
@@ -107,6 +107,21 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
107
107
  type: "ref";
108
108
  id: string;
109
109
  }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
110
+ readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
111
+ readonly type: v.LiteralSchema<"parameter", undefined>;
112
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
113
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
114
+ }, undefined>, v.ReadonlyAction<{
115
+ type: "parameter";
116
+ id: string;
117
+ name: string;
118
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
119
+ readonly type: v.LiteralSchema<"ref", undefined>;
120
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
121
+ }, undefined>, v.ReadonlyAction<{
122
+ type: "ref";
123
+ id: string;
124
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
110
125
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
111
126
  readonly type: v.LiteralSchema<"parameter", undefined>;
112
127
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -165,6 +180,14 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
165
180
  type: "ref";
166
181
  id: string;
167
182
  }> | undefined;
183
+ placeholderLabel?: string | Readonly<{
184
+ type: "parameter";
185
+ id: string;
186
+ name: string;
187
+ }> | Readonly<{
188
+ type: "ref";
189
+ id: string;
190
+ }> | undefined;
168
191
  metadata?: Readonly<{
169
192
  type: "parameter";
170
193
  id: string;
@@ -209,6 +232,14 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
209
232
  type: "ref";
210
233
  id: string;
211
234
  }> | undefined;
235
+ placeholderLabel?: string | Readonly<{
236
+ type: "parameter";
237
+ id: string;
238
+ name: string;
239
+ }> | Readonly<{
240
+ type: "ref";
241
+ id: string;
242
+ }> | undefined;
212
243
  metadata?: Readonly<{
213
244
  type: "parameter";
214
245
  id: string;
@@ -253,6 +284,14 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
253
284
  type: "ref";
254
285
  id: string;
255
286
  }> | undefined;
287
+ placeholderLabel?: string | Readonly<{
288
+ type: "parameter";
289
+ id: string;
290
+ name: string;
291
+ }> | Readonly<{
292
+ type: "ref";
293
+ id: string;
294
+ }> | undefined;
256
295
  metadata?: Readonly<{
257
296
  type: "parameter";
258
297
  id: string;
@@ -316,6 +355,14 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
316
355
  type: "ref";
317
356
  id: string;
318
357
  }> | undefined;
358
+ placeholderLabel?: string | Readonly<{
359
+ type: "parameter";
360
+ id: string;
361
+ name: string;
362
+ }> | Readonly<{
363
+ type: "ref";
364
+ id: string;
365
+ }> | undefined;
319
366
  metadata?: Readonly<{
320
367
  type: "parameter";
321
368
  id: string;
@@ -339,6 +386,7 @@ export declare const validateUIDescribe: (input: unknown, references?: import(".
339
386
  readonly path: readonly (string | number)[];
340
387
  readonly displayName?: string | undefined;
341
388
  readonly kind?: string | undefined;
389
+ readonly placeholderLabel?: string | undefined;
342
390
  readonly metadata?: {
343
391
  readonly [x: string]: unknown;
344
392
  } | undefined;
@@ -12,11 +12,13 @@ export declare class BuilderUIInput<const Path extends Paramable<BuilderPath> =
12
12
  readonly path: Path;
13
13
  readonly displayName?: DisplayName;
14
14
  readonly kind?: Kind;
15
+ readonly placeholderLabel?: Paramable<string>;
15
16
  readonly metadata?: Metadata;
16
17
  readonly tags?: BuilderTags;
17
- constructor(path: Path, displayName?: DisplayName, kind?: Kind, metadata?: Metadata, tags?: BuilderTags);
18
+ constructor(path: Path, displayName?: DisplayName, kind?: Kind, placeholderLabel?: Paramable<string>, metadata?: Metadata, tags?: BuilderTags);
18
19
  display<const NewDisplayName extends Paramable<string>>(displayName: NewDisplayName): BuilderUIInput<Path, NewDisplayName, Kind, Metadata>;
19
20
  as<const NewKind extends Paramable<string>>(kind: NewKind): BuilderUIInput<Path, DisplayName, NewKind, Metadata>;
21
+ placeholder(placeholderLabel: Paramable<string>): BuilderUIInput<Path, DisplayName, Kind, Metadata>;
20
22
  meta<const NewMetadata extends BuilderUIInputMetadata>(metadata: NewMetadata): BuilderUIInput<Path, DisplayName, Kind, NewMetadata>;
21
23
  tag(...tags: Array<string>): BuilderUIInput<Path, DisplayName, Kind, Metadata>;
22
24
  }
@@ -86,6 +88,21 @@ export declare const BuilderUIInputSerialisedSchema: v.SchemaWithPipe<readonly [
86
88
  type: "ref";
87
89
  id: string;
88
90
  }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
91
+ readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
92
+ readonly type: v.LiteralSchema<"parameter", undefined>;
93
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
94
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
95
+ }, undefined>, v.ReadonlyAction<{
96
+ type: "parameter";
97
+ id: string;
98
+ name: string;
99
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
100
+ readonly type: v.LiteralSchema<"ref", undefined>;
101
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
102
+ }, undefined>, v.ReadonlyAction<{
103
+ type: "ref";
104
+ id: string;
105
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
89
106
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
90
107
  readonly type: v.LiteralSchema<"parameter", undefined>;
91
108
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -144,6 +161,14 @@ export declare const BuilderUIInputSerialisedSchema: v.SchemaWithPipe<readonly [
144
161
  type: "ref";
145
162
  id: string;
146
163
  }> | undefined;
164
+ placeholderLabel?: string | Readonly<{
165
+ type: "parameter";
166
+ id: string;
167
+ name: string;
168
+ }> | Readonly<{
169
+ type: "ref";
170
+ id: string;
171
+ }> | undefined;
147
172
  metadata?: Readonly<{
148
173
  type: "parameter";
149
174
  id: string;
@@ -218,6 +243,21 @@ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly
218
243
  type: "ref";
219
244
  id: string;
220
245
  }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
246
+ readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
247
+ readonly type: v.LiteralSchema<"parameter", undefined>;
248
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
249
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
250
+ }, undefined>, v.ReadonlyAction<{
251
+ type: "parameter";
252
+ id: string;
253
+ name: string;
254
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
255
+ readonly type: v.LiteralSchema<"ref", undefined>;
256
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
257
+ }, undefined>, v.ReadonlyAction<{
258
+ type: "ref";
259
+ id: string;
260
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
221
261
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
222
262
  readonly type: v.LiteralSchema<"parameter", undefined>;
223
263
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -276,6 +316,14 @@ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly
276
316
  type: "ref";
277
317
  id: string;
278
318
  }> | undefined;
319
+ placeholderLabel?: string | Readonly<{
320
+ type: "parameter";
321
+ id: string;
322
+ name: string;
323
+ }> | Readonly<{
324
+ type: "ref";
325
+ id: string;
326
+ }> | undefined;
279
327
  metadata?: Readonly<{
280
328
  type: "parameter";
281
329
  id: string;
@@ -320,6 +368,14 @@ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly
320
368
  type: "ref";
321
369
  id: string;
322
370
  }> | undefined;
371
+ placeholderLabel?: string | Readonly<{
372
+ type: "parameter";
373
+ id: string;
374
+ name: string;
375
+ }> | Readonly<{
376
+ type: "ref";
377
+ id: string;
378
+ }> | undefined;
323
379
  metadata?: Readonly<{
324
380
  type: "parameter";
325
381
  id: string;
@@ -364,6 +420,14 @@ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly
364
420
  type: "ref";
365
421
  id: string;
366
422
  }> | undefined;
423
+ placeholderLabel?: string | Readonly<{
424
+ type: "parameter";
425
+ id: string;
426
+ name: string;
427
+ }> | Readonly<{
428
+ type: "ref";
429
+ id: string;
430
+ }> | undefined;
367
431
  metadata?: Readonly<{
368
432
  type: "parameter";
369
433
  id: string;
@@ -382,6 +446,7 @@ export declare const validateUIInput: (input: unknown, references?: import("..")
382
446
  readonly path: readonly (string | number)[];
383
447
  readonly displayName?: string | undefined;
384
448
  readonly kind?: string | undefined;
449
+ readonly placeholderLabel?: string | undefined;
385
450
  readonly metadata?: {
386
451
  readonly [x: string]: unknown;
387
452
  } | undefined;
@@ -10,17 +10,19 @@ export class BuilderUIInput {
10
10
  path;
11
11
  displayName;
12
12
  kind;
13
+ placeholderLabel;
13
14
  metadata;
14
15
  tags;
15
- constructor(path, displayName, kind, metadata, tags) {
16
+ constructor(path, displayName, kind, placeholderLabel, metadata, tags) {
16
17
  this.path = path;
17
18
  this.displayName = displayName;
18
19
  this.kind = kind;
20
+ this.placeholderLabel = placeholderLabel;
19
21
  this.metadata = metadata;
20
22
  this.tags = tags;
21
23
  }
22
24
  #next(patch) {
23
- return new BuilderUIInput(this.path, patch.displayName ?? this.displayName, patch.kind ?? this.kind, patch.metadata ?? this.metadata, patch.tags ?? this.tags);
25
+ return new BuilderUIInput(this.path, patch.displayName ?? this.displayName, patch.kind ?? this.kind, patch.placeholderLabel ?? this.placeholderLabel, patch.metadata ?? this.metadata, patch.tags ?? this.tags);
24
26
  }
25
27
  display(displayName) {
26
28
  return this.#next({
@@ -30,6 +32,9 @@ export class BuilderUIInput {
30
32
  as(kind) {
31
33
  return this.#next({ kind: kind });
32
34
  }
35
+ placeholder(placeholderLabel) {
36
+ return this.#next({ placeholderLabel });
37
+ }
33
38
  meta(metadata) {
34
39
  return this.#next({ metadata: metadata });
35
40
  }
@@ -47,6 +52,7 @@ export const BuilderUIInputSerialisedSchema = serialisable(v.object({
47
52
  path: paramable(BuilderPathSchema),
48
53
  displayName: v.optional(paramable(NameSchema)),
49
54
  kind: v.optional(paramable(NameSchema)),
55
+ placeholderLabel: v.optional(paramable(NameSchema)),
50
56
  metadata: v.optional(paramable(BuilderUIInputMetadataSchema)),
51
57
  tags: v.optional(BuilderTagsSchema)
52
58
  }));
@@ -103,6 +103,21 @@ export declare const BuilderUIPageSerialisedSchema: v.SchemaWithPipe<readonly [v
103
103
  type: "ref";
104
104
  id: string;
105
105
  }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
106
+ readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
107
+ readonly type: v.LiteralSchema<"parameter", undefined>;
108
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
109
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
110
+ }, undefined>, v.ReadonlyAction<{
111
+ type: "parameter";
112
+ id: string;
113
+ name: string;
114
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
115
+ readonly type: v.LiteralSchema<"ref", undefined>;
116
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
117
+ }, undefined>, v.ReadonlyAction<{
118
+ type: "ref";
119
+ id: string;
120
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
106
121
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
107
122
  readonly type: v.LiteralSchema<"parameter", undefined>;
108
123
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -161,6 +176,14 @@ export declare const BuilderUIPageSerialisedSchema: v.SchemaWithPipe<readonly [v
161
176
  type: "ref";
162
177
  id: string;
163
178
  }> | undefined;
179
+ placeholderLabel?: string | Readonly<{
180
+ type: "parameter";
181
+ id: string;
182
+ name: string;
183
+ }> | Readonly<{
184
+ type: "ref";
185
+ id: string;
186
+ }> | undefined;
164
187
  metadata?: Readonly<{
165
188
  type: "parameter";
166
189
  id: string;
@@ -205,6 +228,14 @@ export declare const BuilderUIPageSerialisedSchema: v.SchemaWithPipe<readonly [v
205
228
  type: "ref";
206
229
  id: string;
207
230
  }> | undefined;
231
+ placeholderLabel?: string | Readonly<{
232
+ type: "parameter";
233
+ id: string;
234
+ name: string;
235
+ }> | Readonly<{
236
+ type: "ref";
237
+ id: string;
238
+ }> | undefined;
208
239
  metadata?: Readonly<{
209
240
  type: "parameter";
210
241
  id: string;
@@ -249,6 +280,14 @@ export declare const BuilderUIPageSerialisedSchema: v.SchemaWithPipe<readonly [v
249
280
  type: "ref";
250
281
  id: string;
251
282
  }> | undefined;
283
+ placeholderLabel?: string | Readonly<{
284
+ type: "parameter";
285
+ id: string;
286
+ name: string;
287
+ }> | Readonly<{
288
+ type: "ref";
289
+ id: string;
290
+ }> | undefined;
252
291
  metadata?: Readonly<{
253
292
  type: "parameter";
254
293
  id: string;
@@ -312,6 +351,14 @@ export declare const BuilderUIPageSerialisedSchema: v.SchemaWithPipe<readonly [v
312
351
  type: "ref";
313
352
  id: string;
314
353
  }> | undefined;
354
+ placeholderLabel?: string | Readonly<{
355
+ type: "parameter";
356
+ id: string;
357
+ name: string;
358
+ }> | Readonly<{
359
+ type: "ref";
360
+ id: string;
361
+ }> | undefined;
315
362
  metadata?: Readonly<{
316
363
  type: "parameter";
317
364
  id: string;
@@ -335,6 +382,7 @@ export declare const validateUIPage: (input: unknown, references?: import("..").
335
382
  readonly path: readonly (string | number)[];
336
383
  readonly displayName?: string | undefined;
337
384
  readonly kind?: string | undefined;
385
+ readonly placeholderLabel?: string | undefined;
338
386
  readonly metadata?: {
339
387
  readonly [x: string]: unknown;
340
388
  } | undefined;