@duke333/builder-ui 0.2.3 → 0.2.5

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/index.d.ts CHANGED
@@ -5,13 +5,14 @@ import { BuilderApiContracts, BuilderApiClient, BuilderApiTransport, BuilderFiel
5
5
  export { BuilderApiClientOptions, BuilderApiQuery, BuilderApiQueryValue, createBuilderApiClient } from './api/index.js';
6
6
  import { BuilderHooks } from './hooks/index.js';
7
7
  export { createBuilderHooks, createBuilderKeys } from './hooks/index.js';
8
- import { BuilderDbTable, BuilderForm as BuilderForm$1, BuilderList, BuilderView as BuilderView$1, BuilderViewEntry, ListBuilderFormsQuery, ListBuilderFormsResponse, CreateBuilderFormInput, UpdateBuilderFormInput, ListBuilderListsQuery, ListBuilderListsResponse, CreateBuilderListInput, UpdateBuilderListInput, ListBuilderViewsQuery, ListBuilderViewsResponse, CreateBuilderViewInput, UpdateBuilderViewInput, ReplicateBuilderEntityInput, CreateBuilderViewEntryInput, CreateCompositeBuilderViewEntryInput, UpdateCompositeBuilderViewEntryInput, UpdateBuilderViewEntryInput, ListBuilderFieldOptionsQuery, ListBuilderFieldOptionsResponse, RunBuilderFieldTriggerInput, BuilderFieldTriggerEvent, BuilderFieldTriggerResponse, ListBuilderViewEntriesQuery, ListBuilderViewEntriesResponse } from '@duke333/builder-contracts';
9
- export { B as BUILDER_EDITOR_NONE_VALUE, a as BuilderAdminPageContracts, b as BuilderAdminPagesOptions, c as BuilderAdminPagesRoutes, d as BuilderDefaultEntity, e as BuilderDefaultEntityListResult, f as BuilderDefaultEntityManagerDependencies, g as BuilderDefaultEntityManagerLabels, h as BuilderDefaultEntityManagerState, i as BuilderDefaultEntityMutation, j as BuilderDefaultEntityQueryResult, k as BuilderDefaultFormEditorBodyOptions, l as BuilderDefaultListEditorBodyOptions, m as BuilderDefaultOption, n as BuilderEditorDbTable, o as BuilderEditorSelectOption, p as BuilderEditorTriggerValues, q as BuilderFormEditorBodyProps, r as BuilderFormEditorEntity, s as BuilderFormEditorFieldValues, t as BuilderFormEditorPageDependencies, u as BuilderFormEditorValues, v as BuilderListEditorBodyProps, w as BuilderListEditorColumnValues, x as BuilderListEditorEntity, y as BuilderListEditorOrderByValues, z as BuilderListEditorPageDependencies, A as BuilderListEditorValues, C as BuilderViewEditorEntity, D as BuilderViewEditorValues, E as builderEditorOptionsToText, F as builderEditorSearchFieldsToText, G as builderEditorTextToOptions, H as builderEditorTextToSearchFields, I as builderFormEditorFieldsFromTable, J as builderFormEditorInputFromValues, K as builderFormEditorValuesFromEntity, L as builderListEditorColumnsFromTable, M as builderListEditorInputFromValues, N as builderListEditorValuesFromEntity, O as builderViewEditorInputFromValues, P as builderViewEditorValuesFromEntity, Q as createBuilderAdminPages, R as createBuilderDefaultEntityManagerComponent, S as createBuilderDefaultFormEditorBody, T as createBuilderDefaultListEditorBody, U as createBuilderFormEditorPageComponent, V as createBuilderListEditorPageComponent, W as getBuilderEditorTriggerRoute } from './BuilderAdminPages-DrOrFyIX.js';
8
+ import { BuilderDbTable, BuilderForm as BuilderForm$1, BuilderList, BuilderView as BuilderView$1, BuilderViewEntry, ListBuilderFormsQuery, ListBuilderFormsResponse, CreateBuilderFormInput, UpdateBuilderFormInput, ListBuilderListsQuery, ListBuilderListsResponse, CreateBuilderListInput, UpdateBuilderListInput, ListBuilderViewsQuery, ListBuilderViewsResponse, CreateBuilderViewInput, UpdateBuilderViewInput, ReplicateBuilderEntityInput, CreateBuilderViewEntryInput, CreateCompositeBuilderViewEntryInput, UpdateCompositeBuilderViewEntryInput, UpdateBuilderViewEntryInput, ListBuilderFieldOptionsQuery, ListBuilderFieldOptionsResponse, RunBuilderFieldTriggerInput, BuilderFieldTriggerEvent, BuilderFieldTriggerResponse, ListBuilderViewEntriesQuery, ListBuilderViewEntriesResponse, BuilderFileUploadRequest, BuilderFileUploadResponse, BuilderFilePresignResponse, BuilderField } from '@duke333/builder-contracts';
9
+ import { FieldValues, Path } from 'react-hook-form';
10
+ export { richTextToPlainText, toRichTextDocument } from './runtime/index.js';
11
+ export { B as BUILDER_EDITOR_NONE_VALUE, a as BuilderAdminPageContracts, b as BuilderAdminPagesOptions, c as BuilderAdminPagesRoutes, d as BuilderDefaultEntity, e as BuilderDefaultEntityListResult, f as BuilderDefaultEntityManagerDependencies, g as BuilderDefaultEntityManagerLabels, h as BuilderDefaultEntityManagerState, i as BuilderDefaultEntityMutation, j as BuilderDefaultEntityQueryResult, k as BuilderDefaultFormEditorBodyOptions, l as BuilderDefaultListEditorBodyOptions, m as BuilderDefaultOption, n as BuilderEditorDbTable, o as BuilderEditorSelectOption, p as BuilderEditorTriggerValues, q as BuilderFormEditorBodyProps, r as BuilderFormEditorEntity, s as BuilderFormEditorFieldValues, t as BuilderFormEditorPageDependencies, u as BuilderFormEditorValues, v as BuilderListEditorBodyProps, w as BuilderListEditorColumnValues, x as BuilderListEditorEntity, y as BuilderListEditorOrderByValues, z as BuilderListEditorPageDependencies, A as BuilderListEditorValues, C as BuilderViewEditorEntity, D as BuilderViewEditorValues, E as builderEditorOptionsToText, F as builderEditorSearchFieldsToText, G as builderEditorTextToOptions, H as builderEditorTextToSearchFields, I as builderFormEditorFieldsFromTable, J as builderFormEditorInputFromValues, K as builderFormEditorValuesFromEntity, L as builderListEditorColumnsFromTable, M as builderListEditorInputFromValues, N as builderListEditorValuesFromEntity, O as builderViewEditorInputFromValues, P as builderViewEditorValuesFromEntity, Q as createBuilderAdminPages, R as createBuilderDefaultEntityManagerComponent, S as createBuilderDefaultFormEditorBody, T as createBuilderDefaultListEditorBody, U as createBuilderFormEditorPageComponent, V as createBuilderListEditorPageComponent, W as getBuilderEditorTriggerRoute } from './BuilderAdminPages-bV-lwDOp.js';
10
12
  export { BuilderDefaultViewEditorContracts, BuilderDefaultViewEditorPageOptions, BuilderEntityDialogManagerDependencies, BuilderEntityManagerActions, BuilderEntityManagerAddButtonProps, BuilderEntityManagerDataGridProps, BuilderEntityManagerDeleteDialogProps, BuilderEntityManagerDependencies, BuilderEntityManagerDialogAddButtonProps, BuilderEntityManagerEditorDialogProps, BuilderEntityManagerEntity, BuilderEntityManagerHookResult, BuilderEntityManagerLabels, BuilderEntityManagerMutation, BuilderFormLayoutDragPayload, BuilderFormLayoutItem, BuilderViewDialogBodyProps, BuilderViewDialogDependencies, BuilderViewDialogProps, BuilderViewDialogShellProps, builderFormLayoutDragDataType, clampBuilderFormLayoutSpan, createBuilderDefaultViewEditorPage, createBuilderEntityDialogManagerComponent, createBuilderEntityManagerComponent, createBuilderViewDialogComponent, nextBuilderFormLayoutGroupId, parseBuilderFormLayoutDragPayload, serializeBuilderFormLayoutDragPayload, swapBuilderFormLayoutItems, useBuilderFormLayoutEditor } from './admin/index.js';
11
- export { D as DynamicFormContracts, a as DynamicFormDependencies, b as DynamicFormErrorStateProps, c as DynamicFormFieldsProps, d as DynamicFormNotifications, e as DynamicFormProps, f as DynamicFormShellProps, g as DynamicFormSubmitProps, h as DynamicListContracts, i as DynamicListDataGridProps, j as DynamicListDependencies, k as DynamicListErrorStateProps, l as DynamicListProps, m as DynamicViewAddButtonProps, n as DynamicViewColumnActions, o as DynamicViewContracts, p as DynamicViewDataGridProps, q as DynamicViewDeleteDialogProps, r as DynamicViewDependencies, s as DynamicViewEntryDialogProps, t as DynamicViewErrorStateProps, u as DynamicViewInteractionEvent, v as DynamicViewProps, w as RuntimeEntryDialogActionsProps, x as RuntimeEntryDialogDependencies, y as RuntimeEntryDialogFieldsProps, z as RuntimeEntryDialogNotifications, A as RuntimeEntryDialogProps, B as RuntimeEntryDialogSaveArgs, C as RuntimeEntryDialogShellProps, E as RuntimeEntryDialogViewLike, F as createDynamicFormComponent, G as createDynamicListComponent, H as createDynamicViewComponent, I as createRuntimeEntryDialogComponent, J as shouldHandleDynamicViewRowClick } from './RuntimeEntryDialog-Bw741XbS.js';
12
- export { BuilderRuntimeEntryLike, BuilderRuntimeEntryValues, BuilderRuntimeFieldLike, BuilderRuntimeFormSchemaLike, BuilderRuntimeFormValues, BuilderRuntimePresentation, BuilderRuntimeViewLike, createBuilderEntryDefaultValues, createBuilderFormDefaultValues, formatBuilderRuntimeValue } from './runtime/index.js';
13
+ export { D as DynamicFormContracts, a as DynamicFormDependencies, b as DynamicFormErrorStateProps, c as DynamicFormFieldsProps, d as DynamicFormNotifications, e as DynamicFormProps, f as DynamicFormShellProps, g as DynamicFormSubmitProps, h as DynamicListContracts, i as DynamicListDataGridProps, j as DynamicListDependencies, k as DynamicListErrorStateProps, l as DynamicListProps, m as DynamicViewAddButtonProps, n as DynamicViewColumnActions, o as DynamicViewContracts, p as DynamicViewDataGridProps, q as DynamicViewDeleteDialogProps, r as DynamicViewDependencies, s as DynamicViewEntryDialogProps, t as DynamicViewErrorStateProps, u as DynamicViewInteractionEvent, v as DynamicViewProps, w as RuntimeEntryDialogActionsProps, x as RuntimeEntryDialogDependencies, y as RuntimeEntryDialogFieldsProps, z as RuntimeEntryDialogNotifications, A as RuntimeEntryDialogProps, B as RuntimeEntryDialogSaveArgs, C as RuntimeEntryDialogShellProps, E as RuntimeEntryDialogViewLike, F as createDynamicFormComponent, G as createDynamicListComponent, H as createDynamicViewComponent, I as createRuntimeEntryDialogComponent, J as shouldHandleDynamicViewRowClick } from './RuntimeEntryDialog-B4TbF8os.js';
14
+ export { b as BuilderRuntimeEntryLike, c as BuilderRuntimeEntryValues, f as BuilderRuntimeFieldLike, a as BuilderRuntimeFormSchemaLike, d as BuilderRuntimeFormValues, B as BuilderRuntimePresentation, e as BuilderRuntimeViewLike, g as createBuilderEntryDefaultValues, h as createBuilderFormDefaultValues, i as formatBuilderRuntimeValue } from './runtimeUtils-CCtLyIf1.js';
13
15
  export { BuilderFrontendSetupValidation, BuilderIntegration, BuilderIntegrationConfig, BuilderIntegrationRoutes, createBuilderIntegration, createBuilderPortalIntegration, validateBuilderFrontendSetup } from './integration/index.js';
14
- import 'react-hook-form';
15
16
 
16
17
  type BuilderFormProps = {
17
18
  formId: string;
@@ -58,6 +59,9 @@ type ReadyBuilderContracts = BuilderApiContracts & {
58
59
  BuilderFieldTriggerResponse: BuilderFieldTriggerResponse;
59
60
  ListBuilderViewEntriesQuery: ListBuilderViewEntriesQuery;
60
61
  ListBuilderViewEntriesResponse: ListBuilderViewEntriesResponse;
62
+ BuilderFileUploadRequest: BuilderFileUploadRequest;
63
+ BuilderFileUploadResponse: BuilderFileUploadResponse;
64
+ BuilderFilePresignResponse: BuilderFilePresignResponse;
61
65
  };
62
66
 
63
67
  type BuilderNotification = {
@@ -100,7 +104,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
100
104
  fields: {
101
105
  key: string;
102
106
  label: string;
103
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
107
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
104
108
  required: boolean;
105
109
  hidden: boolean;
106
110
  disabled: boolean;
@@ -111,6 +115,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
111
115
  debounceMs: number;
112
116
  config: Record<string, unknown>;
113
117
  }[];
118
+ defaultValue?: string | number | boolean | undefined;
119
+ storage?: "s3" | "server" | undefined;
120
+ contentKind?: "file" | "image" | undefined;
121
+ multiple?: boolean | undefined;
122
+ maxBytes?: number | undefined;
114
123
  placeholder?: string | undefined;
115
124
  description?: string | undefined;
116
125
  options?: {
@@ -140,6 +149,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
140
149
  icon?: string | undefined;
141
150
  }[];
142
151
  layout?: {
152
+ presentation: "stacked" | "tabs";
143
153
  groups: {
144
154
  id: string;
145
155
  columns: 8 | 6 | 12;
@@ -209,7 +219,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
209
219
  fields: {
210
220
  key: string;
211
221
  label: string;
212
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
222
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
213
223
  required: boolean;
214
224
  hidden: boolean;
215
225
  disabled: boolean;
@@ -220,6 +230,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
220
230
  debounceMs: number;
221
231
  config: Record<string, unknown>;
222
232
  }[];
233
+ defaultValue?: string | number | boolean | undefined;
234
+ storage?: "s3" | "server" | undefined;
235
+ contentKind?: "file" | "image" | undefined;
236
+ multiple?: boolean | undefined;
237
+ maxBytes?: number | undefined;
223
238
  placeholder?: string | undefined;
224
239
  description?: string | undefined;
225
240
  options?: {
@@ -249,6 +264,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
249
264
  icon?: string | undefined;
250
265
  }[];
251
266
  layout?: {
267
+ presentation: "stacked" | "tabs";
252
268
  groups: {
253
269
  id: string;
254
270
  columns: 8 | 6 | 12;
@@ -294,7 +310,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
294
310
  fields: {
295
311
  key: string;
296
312
  label: string;
297
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
313
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
298
314
  required: boolean;
299
315
  hidden: boolean;
300
316
  disabled: boolean;
@@ -305,6 +321,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
305
321
  debounceMs: number;
306
322
  config: Record<string, unknown>;
307
323
  }[];
324
+ defaultValue?: string | number | boolean | undefined;
325
+ storage?: "s3" | "server" | undefined;
326
+ contentKind?: "file" | "image" | undefined;
327
+ multiple?: boolean | undefined;
328
+ maxBytes?: number | undefined;
308
329
  placeholder?: string | undefined;
309
330
  description?: string | undefined;
310
331
  options?: {
@@ -334,6 +355,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
334
355
  icon?: string | undefined;
335
356
  }[];
336
357
  layout?: {
358
+ presentation: "stacked" | "tabs";
337
359
  groups: {
338
360
  id: string;
339
361
  columns: 8 | 6 | 12;
@@ -360,7 +382,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
360
382
  fields: {
361
383
  key: string;
362
384
  label: string;
363
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
385
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
364
386
  required: boolean;
365
387
  hidden: boolean;
366
388
  disabled: boolean;
@@ -371,6 +393,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
371
393
  debounceMs: number;
372
394
  config: Record<string, unknown>;
373
395
  }[];
396
+ defaultValue?: string | number | boolean | undefined;
397
+ storage?: "s3" | "server" | undefined;
398
+ contentKind?: "file" | "image" | undefined;
399
+ multiple?: boolean | undefined;
400
+ maxBytes?: number | undefined;
374
401
  placeholder?: string | undefined;
375
402
  description?: string | undefined;
376
403
  options?: {
@@ -400,6 +427,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
400
427
  icon?: string | undefined;
401
428
  }[];
402
429
  layout?: {
430
+ presentation: "stacked" | "tabs";
403
431
  groups: {
404
432
  id: string;
405
433
  columns: 8 | 6 | 12;
@@ -456,7 +484,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
456
484
  fields: {
457
485
  key: string;
458
486
  label: string;
459
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
487
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
460
488
  required: boolean;
461
489
  hidden: boolean;
462
490
  disabled: boolean;
@@ -467,6 +495,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
467
495
  debounceMs: number;
468
496
  config: Record<string, unknown>;
469
497
  }[];
498
+ defaultValue?: string | number | boolean | undefined;
499
+ storage?: "s3" | "server" | undefined;
500
+ contentKind?: "file" | "image" | undefined;
501
+ multiple?: boolean | undefined;
502
+ maxBytes?: number | undefined;
470
503
  placeholder?: string | undefined;
471
504
  description?: string | undefined;
472
505
  options?: {
@@ -496,6 +529,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
496
529
  icon?: string | undefined;
497
530
  }[];
498
531
  layout?: {
532
+ presentation: "stacked" | "tabs";
499
533
  groups: {
500
534
  id: string;
501
535
  columns: 8 | 6 | 12;
@@ -522,7 +556,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
522
556
  fields: {
523
557
  key: string;
524
558
  label: string;
525
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
559
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
526
560
  required: boolean;
527
561
  hidden: boolean;
528
562
  disabled: boolean;
@@ -533,6 +567,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
533
567
  debounceMs: number;
534
568
  config: Record<string, unknown>;
535
569
  }[];
570
+ defaultValue?: string | number | boolean | undefined;
571
+ storage?: "s3" | "server" | undefined;
572
+ contentKind?: "file" | "image" | undefined;
573
+ multiple?: boolean | undefined;
574
+ maxBytes?: number | undefined;
536
575
  placeholder?: string | undefined;
537
576
  description?: string | undefined;
538
577
  options?: {
@@ -562,6 +601,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
562
601
  icon?: string | undefined;
563
602
  }[];
564
603
  layout?: {
604
+ presentation: "stacked" | "tabs";
565
605
  groups: {
566
606
  id: string;
567
607
  columns: 8 | 6 | 12;
@@ -619,7 +659,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
619
659
  fields: {
620
660
  key: string;
621
661
  label: string;
622
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
662
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
623
663
  required: boolean;
624
664
  hidden: boolean;
625
665
  disabled: boolean;
@@ -630,6 +670,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
630
670
  debounceMs: number;
631
671
  config: Record<string, unknown>;
632
672
  }[];
673
+ defaultValue?: string | number | boolean | undefined;
674
+ storage?: "s3" | "server" | undefined;
675
+ contentKind?: "file" | "image" | undefined;
676
+ multiple?: boolean | undefined;
677
+ maxBytes?: number | undefined;
633
678
  placeholder?: string | undefined;
634
679
  description?: string | undefined;
635
680
  options?: {
@@ -659,6 +704,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
659
704
  icon?: string | undefined;
660
705
  }[];
661
706
  layout?: {
707
+ presentation: "stacked" | "tabs";
662
708
  groups: {
663
709
  id: string;
664
710
  columns: 8 | 6 | 12;
@@ -706,7 +752,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
706
752
  fields: {
707
753
  key: string;
708
754
  label: string;
709
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
755
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
710
756
  required: boolean;
711
757
  hidden: boolean;
712
758
  disabled: boolean;
@@ -717,6 +763,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
717
763
  debounceMs: number;
718
764
  config: Record<string, unknown>;
719
765
  }[];
766
+ defaultValue?: string | number | boolean | undefined;
767
+ storage?: "s3" | "server" | undefined;
768
+ contentKind?: "file" | "image" | undefined;
769
+ multiple?: boolean | undefined;
770
+ maxBytes?: number | undefined;
720
771
  placeholder?: string | undefined;
721
772
  description?: string | undefined;
722
773
  options?: {
@@ -746,6 +797,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
746
797
  icon?: string | undefined;
747
798
  }[];
748
799
  layout?: {
800
+ presentation: "stacked" | "tabs";
749
801
  groups: {
750
802
  id: string;
751
803
  columns: 8 | 6 | 12;
@@ -1144,7 +1196,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1144
1196
  fields: {
1145
1197
  key: string;
1146
1198
  label: string;
1147
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
1199
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
1148
1200
  required: boolean;
1149
1201
  hidden: boolean;
1150
1202
  disabled: boolean;
@@ -1155,6 +1207,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1155
1207
  debounceMs: number;
1156
1208
  config: Record<string, unknown>;
1157
1209
  }[];
1210
+ defaultValue?: string | number | boolean | undefined;
1211
+ storage?: "s3" | "server" | undefined;
1212
+ contentKind?: "file" | "image" | undefined;
1213
+ multiple?: boolean | undefined;
1214
+ maxBytes?: number | undefined;
1158
1215
  placeholder?: string | undefined;
1159
1216
  description?: string | undefined;
1160
1217
  options?: {
@@ -1184,6 +1241,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1184
1241
  icon?: string | undefined;
1185
1242
  }[];
1186
1243
  layout?: {
1244
+ presentation: "stacked" | "tabs";
1187
1245
  groups: {
1188
1246
  id: string;
1189
1247
  columns: 8 | 6 | 12;
@@ -1292,7 +1350,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1292
1350
  fields: {
1293
1351
  key: string;
1294
1352
  label: string;
1295
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
1353
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
1296
1354
  required: boolean;
1297
1355
  hidden: boolean;
1298
1356
  disabled: boolean;
@@ -1303,6 +1361,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1303
1361
  debounceMs: number;
1304
1362
  config: Record<string, unknown>;
1305
1363
  }[];
1364
+ defaultValue?: string | number | boolean | undefined;
1365
+ storage?: "s3" | "server" | undefined;
1366
+ contentKind?: "file" | "image" | undefined;
1367
+ multiple?: boolean | undefined;
1368
+ maxBytes?: number | undefined;
1306
1369
  placeholder?: string | undefined;
1307
1370
  description?: string | undefined;
1308
1371
  options?: {
@@ -1332,6 +1395,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1332
1395
  icon?: string | undefined;
1333
1396
  }[];
1334
1397
  layout?: {
1398
+ presentation: "stacked" | "tabs";
1335
1399
  groups: {
1336
1400
  id: string;
1337
1401
  columns: 8 | 6 | 12;
@@ -1450,7 +1514,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1450
1514
  fields: {
1451
1515
  key: string;
1452
1516
  label: string;
1453
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
1517
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
1454
1518
  required: boolean;
1455
1519
  hidden: boolean;
1456
1520
  disabled: boolean;
@@ -1461,6 +1525,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1461
1525
  debounceMs: number;
1462
1526
  config: Record<string, unknown>;
1463
1527
  }[];
1528
+ defaultValue?: string | number | boolean | undefined;
1529
+ storage?: "s3" | "server" | undefined;
1530
+ contentKind?: "file" | "image" | undefined;
1531
+ multiple?: boolean | undefined;
1532
+ maxBytes?: number | undefined;
1464
1533
  placeholder?: string | undefined;
1465
1534
  description?: string | undefined;
1466
1535
  options?: {
@@ -1490,6 +1559,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1490
1559
  icon?: string | undefined;
1491
1560
  }[];
1492
1561
  layout?: {
1562
+ presentation: "stacked" | "tabs";
1493
1563
  groups: {
1494
1564
  id: string;
1495
1565
  columns: 8 | 6 | 12;
@@ -1609,7 +1679,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1609
1679
  fields: {
1610
1680
  key: string;
1611
1681
  label: string;
1612
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
1682
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
1613
1683
  required: boolean;
1614
1684
  hidden: boolean;
1615
1685
  disabled: boolean;
@@ -1620,6 +1690,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1620
1690
  debounceMs: number;
1621
1691
  config: Record<string, unknown>;
1622
1692
  }[];
1693
+ defaultValue?: string | number | boolean | undefined;
1694
+ storage?: "s3" | "server" | undefined;
1695
+ contentKind?: "file" | "image" | undefined;
1696
+ multiple?: boolean | undefined;
1697
+ maxBytes?: number | undefined;
1623
1698
  placeholder?: string | undefined;
1624
1699
  description?: string | undefined;
1625
1700
  options?: {
@@ -1649,6 +1724,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1649
1724
  icon?: string | undefined;
1650
1725
  }[];
1651
1726
  layout?: {
1727
+ presentation: "stacked" | "tabs";
1652
1728
  groups: {
1653
1729
  id: string;
1654
1730
  columns: 8 | 6 | 12;
@@ -1755,7 +1831,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1755
1831
  fields: {
1756
1832
  key: string;
1757
1833
  label: string;
1758
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
1834
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
1759
1835
  required: boolean;
1760
1836
  hidden: boolean;
1761
1837
  disabled: boolean;
@@ -1766,6 +1842,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1766
1842
  debounceMs: number;
1767
1843
  config: Record<string, unknown>;
1768
1844
  }[];
1845
+ defaultValue?: string | number | boolean | undefined;
1846
+ storage?: "s3" | "server" | undefined;
1847
+ contentKind?: "file" | "image" | undefined;
1848
+ multiple?: boolean | undefined;
1849
+ maxBytes?: number | undefined;
1769
1850
  placeholder?: string | undefined;
1770
1851
  description?: string | undefined;
1771
1852
  options?: {
@@ -1795,6 +1876,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1795
1876
  icon?: string | undefined;
1796
1877
  }[];
1797
1878
  layout?: {
1879
+ presentation: "stacked" | "tabs";
1798
1880
  groups: {
1799
1881
  id: string;
1800
1882
  columns: 8 | 6 | 12;
@@ -1884,7 +1966,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1884
1966
  fields: {
1885
1967
  key: string;
1886
1968
  label: string;
1887
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
1969
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
1888
1970
  required: boolean;
1889
1971
  hidden: boolean;
1890
1972
  disabled: boolean;
@@ -1895,6 +1977,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1895
1977
  debounceMs: number;
1896
1978
  config: Record<string, unknown>;
1897
1979
  }[];
1980
+ defaultValue?: string | number | boolean | undefined;
1981
+ storage?: "s3" | "server" | undefined;
1982
+ contentKind?: "file" | "image" | undefined;
1983
+ multiple?: boolean | undefined;
1984
+ maxBytes?: number | undefined;
1898
1985
  placeholder?: string | undefined;
1899
1986
  description?: string | undefined;
1900
1987
  options?: {
@@ -1924,6 +2011,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1924
2011
  icon?: string | undefined;
1925
2012
  }[];
1926
2013
  layout?: {
2014
+ presentation: "stacked" | "tabs";
1927
2015
  groups: {
1928
2016
  id: string;
1929
2017
  columns: 8 | 6 | 12;
@@ -1968,6 +2056,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
1968
2056
  runRuntimeBuilderFormFieldTrigger: (formId: string, fieldKey: string, event: "onChange" | "onBlur", input: {
1969
2057
  values: Record<string, unknown>;
1970
2058
  value?: unknown;
2059
+ parentValues?: Record<string, unknown> | undefined;
1971
2060
  }) => Promise<{
1972
2061
  schema: {
1973
2062
  field: string;
@@ -2084,7 +2173,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
2084
2173
  fields: {
2085
2174
  key: string;
2086
2175
  label: string;
2087
- type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
2176
+ type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
2088
2177
  required: boolean;
2089
2178
  hidden: boolean;
2090
2179
  disabled: boolean;
@@ -2095,6 +2184,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
2095
2184
  debounceMs: number;
2096
2185
  config: Record<string, unknown>;
2097
2186
  }[];
2187
+ defaultValue?: string | number | boolean | undefined;
2188
+ storage?: "s3" | "server" | undefined;
2189
+ contentKind?: "file" | "image" | undefined;
2190
+ multiple?: boolean | undefined;
2191
+ maxBytes?: number | undefined;
2098
2192
  placeholder?: string | undefined;
2099
2193
  description?: string | undefined;
2100
2194
  options?: {
@@ -2124,6 +2218,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
2124
2218
  icon?: string | undefined;
2125
2219
  }[];
2126
2220
  layout?: {
2221
+ presentation: "stacked" | "tabs";
2127
2222
  groups: {
2128
2223
  id: string;
2129
2224
  columns: 8 | 6 | 12;
@@ -2189,6 +2284,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
2189
2284
  runRuntimeBuilderViewFieldTrigger: (viewId: string, fieldKey: string, event: "onChange" | "onBlur", input: {
2190
2285
  values: Record<string, unknown>;
2191
2286
  value?: unknown;
2287
+ parentValues?: Record<string, unknown> | undefined;
2192
2288
  }) => Promise<{
2193
2289
  schema: {
2194
2290
  field: string;
@@ -2273,6 +2369,25 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
2273
2369
  updatedAt: string;
2274
2370
  }>;
2275
2371
  deleteBuilderViewEntry: (viewId: string, id: string) => Promise<void>;
2372
+ presignRuntimeBuilderFile: (context: {
2373
+ formId?: string;
2374
+ viewId?: string;
2375
+ }, fieldKey: string, input: {
2376
+ contentType: string;
2377
+ contentLength: number;
2378
+ }) => Promise<{
2379
+ url: string;
2380
+ key: string;
2381
+ uploadUrl: string;
2382
+ expiresInSeconds: number;
2383
+ }>;
2384
+ uploadRuntimeBuilderFile: (context: {
2385
+ formId?: string;
2386
+ viewId?: string;
2387
+ }, fieldKey: string, file: Blob) => Promise<{
2388
+ url: string;
2389
+ key: string;
2390
+ }>;
2276
2391
  };
2277
2392
  type BuilderContextValue = {
2278
2393
  client: BuilderClient;
@@ -2297,9 +2412,29 @@ declare function BuilderForm(props: BuilderFormProps): react.JSX.Element;
2297
2412
  declare function BuilderGrid(props: BuilderGridProps): react.JSX.Element;
2298
2413
  declare function BuilderView(props: BuilderViewProps): react.JSX.Element;
2299
2414
 
2415
+ type Props$1<T extends FieldValues> = {
2416
+ field: BuilderField;
2417
+ formId?: string;
2418
+ viewId?: string;
2419
+ name: Path<T>;
2420
+ };
2421
+ declare function ReadyFileField<T extends FieldValues>({ field, formId, viewId, name }: Props$1<T>): react.JSX.Element;
2422
+
2423
+ type Props<T extends FieldValues> = {
2424
+ field: BuilderField;
2425
+ name: Path<T>;
2426
+ };
2427
+ declare function ReadyRichTextField<T extends FieldValues>({ field, name }: Props<T>): react.JSX.Element;
2428
+
2429
+ type RichTextContentProps = {
2430
+ className?: string;
2431
+ value: unknown;
2432
+ };
2433
+ declare function RichTextContent({ className, value }: RichTextContentProps): react.JSX.Element;
2434
+
2300
2435
  declare const builderUiPackage: {
2301
2436
  readonly name: "@duke333/builder-ui";
2302
- readonly version: "0.2.2";
2437
+ readonly version: "0.2.5";
2303
2438
  };
2304
2439
 
2305
- export { BuilderApiClient, BuilderApiContracts, BuilderApiTransport, type BuilderClient, BuilderFieldOptionsQuery, BuilderForm, type BuilderFormProps, BuilderGrid, type BuilderGridProps, BuilderHooks, type BuilderNotification, BuilderProvider, type BuilderProviderProps, type BuilderRuntimeComponents, BuilderView, type BuilderViewProps, type CreateBuilderClientOptions, type ReadyBuilderContracts, builderErrorMessage, builderUiPackage, createBuilderClient, useBuilderRuntime };
2440
+ export { BuilderApiClient, BuilderApiContracts, BuilderApiTransport, type BuilderClient, BuilderFieldOptionsQuery, BuilderForm, type BuilderFormProps, BuilderGrid, type BuilderGridProps, BuilderHooks, type BuilderNotification, BuilderProvider, type BuilderProviderProps, type BuilderRuntimeComponents, BuilderView, type BuilderViewProps, type CreateBuilderClientOptions, type ReadyBuilderContracts, ReadyFileField, ReadyRichTextField, RichTextContent, type RichTextContentProps, builderErrorMessage, builderUiPackage, createBuilderClient, useBuilderRuntime };