@duke333/builder-ui 0.2.2 → 0.2.4
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/{BuilderAdminPages-C-jaMLOa.d.ts → BuilderAdminPages-DwwdA8Dv.d.ts} +24 -2
- package/dist/{RuntimeEntryDialog-Bw741XbS.d.ts → RuntimeEntryDialog-B4TbF8os.d.ts} +1 -1
- package/dist/admin/index.d.ts +2 -2
- package/dist/admin/index.js +172 -23
- package/dist/admin/index.js.map +1 -1
- package/dist/api/index.d.ts +14 -0
- package/dist/api/index.js +19 -2
- package/dist/api/index.js.map +1 -1
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.js +44 -14
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.js +30 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.d.ts +236 -33
- package/dist/index.js +1114 -521
- package/dist/index.js.map +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js +221 -28
- package/dist/integration/index.js.map +1 -1
- package/dist/runtime/index.d.ts +16 -26
- package/dist/runtime/index.js +41 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtimeUtils-CCtLyIf1.d.ts +33 -0
- package/dist/styles.css +155 -0
- package/dist/styles.css.map +1 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
4
|
import { BuilderApiContracts, BuilderApiClient, BuilderApiTransport, BuilderFieldOptionsQuery } from './api/index.js';
|
|
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
|
-
|
|
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-DwwdA8Dv.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-
|
|
12
|
-
export { BuilderRuntimeEntryLike, BuilderRuntimeEntryValues, BuilderRuntimeFieldLike, BuilderRuntimeFormSchemaLike, BuilderRuntimeFormValues, BuilderRuntimePresentation, BuilderRuntimeViewLike, createBuilderEntryDefaultValues, createBuilderFormDefaultValues, formatBuilderRuntimeValue } from './
|
|
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
|
-
|
|
16
|
+
|
|
17
|
+
type BuilderFormProps = {
|
|
18
|
+
formId: string;
|
|
19
|
+
};
|
|
20
|
+
type BuilderGridProps = {
|
|
21
|
+
listId: string;
|
|
22
|
+
};
|
|
23
|
+
type BuilderViewProps = {
|
|
24
|
+
viewId: string;
|
|
25
|
+
};
|
|
26
|
+
type BuilderRuntimeComponents = {
|
|
27
|
+
Form?: ComponentType<BuilderFormProps>;
|
|
28
|
+
Grid?: ComponentType<BuilderGridProps>;
|
|
29
|
+
View?: ComponentType<BuilderViewProps>;
|
|
30
|
+
};
|
|
15
31
|
|
|
16
32
|
type ReadyBuilderContracts = BuilderApiContracts & {
|
|
17
33
|
BuilderDbTable: BuilderDbTable;
|
|
@@ -43,6 +59,9 @@ type ReadyBuilderContracts = BuilderApiContracts & {
|
|
|
43
59
|
BuilderFieldTriggerResponse: BuilderFieldTriggerResponse;
|
|
44
60
|
ListBuilderViewEntriesQuery: ListBuilderViewEntriesQuery;
|
|
45
61
|
ListBuilderViewEntriesResponse: ListBuilderViewEntriesResponse;
|
|
62
|
+
BuilderFileUploadRequest: BuilderFileUploadRequest;
|
|
63
|
+
BuilderFileUploadResponse: BuilderFileUploadResponse;
|
|
64
|
+
BuilderFilePresignResponse: BuilderFilePresignResponse;
|
|
46
65
|
};
|
|
47
66
|
|
|
48
67
|
type BuilderNotification = {
|
|
@@ -85,7 +104,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
85
104
|
fields: {
|
|
86
105
|
key: string;
|
|
87
106
|
label: string;
|
|
88
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
107
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
89
108
|
required: boolean;
|
|
90
109
|
hidden: boolean;
|
|
91
110
|
disabled: boolean;
|
|
@@ -96,6 +115,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
96
115
|
debounceMs: number;
|
|
97
116
|
config: Record<string, unknown>;
|
|
98
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;
|
|
99
123
|
placeholder?: string | undefined;
|
|
100
124
|
description?: string | undefined;
|
|
101
125
|
options?: {
|
|
@@ -194,7 +218,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
194
218
|
fields: {
|
|
195
219
|
key: string;
|
|
196
220
|
label: string;
|
|
197
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
221
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
198
222
|
required: boolean;
|
|
199
223
|
hidden: boolean;
|
|
200
224
|
disabled: boolean;
|
|
@@ -205,6 +229,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
205
229
|
debounceMs: number;
|
|
206
230
|
config: Record<string, unknown>;
|
|
207
231
|
}[];
|
|
232
|
+
defaultValue?: string | number | boolean | undefined;
|
|
233
|
+
storage?: "s3" | "server" | undefined;
|
|
234
|
+
contentKind?: "file" | "image" | undefined;
|
|
235
|
+
multiple?: boolean | undefined;
|
|
236
|
+
maxBytes?: number | undefined;
|
|
208
237
|
placeholder?: string | undefined;
|
|
209
238
|
description?: string | undefined;
|
|
210
239
|
options?: {
|
|
@@ -279,7 +308,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
279
308
|
fields: {
|
|
280
309
|
key: string;
|
|
281
310
|
label: string;
|
|
282
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
311
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
283
312
|
required: boolean;
|
|
284
313
|
hidden: boolean;
|
|
285
314
|
disabled: boolean;
|
|
@@ -290,6 +319,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
290
319
|
debounceMs: number;
|
|
291
320
|
config: Record<string, unknown>;
|
|
292
321
|
}[];
|
|
322
|
+
defaultValue?: string | number | boolean | undefined;
|
|
323
|
+
storage?: "s3" | "server" | undefined;
|
|
324
|
+
contentKind?: "file" | "image" | undefined;
|
|
325
|
+
multiple?: boolean | undefined;
|
|
326
|
+
maxBytes?: number | undefined;
|
|
293
327
|
placeholder?: string | undefined;
|
|
294
328
|
description?: string | undefined;
|
|
295
329
|
options?: {
|
|
@@ -345,7 +379,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
345
379
|
fields: {
|
|
346
380
|
key: string;
|
|
347
381
|
label: string;
|
|
348
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
382
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
349
383
|
required: boolean;
|
|
350
384
|
hidden: boolean;
|
|
351
385
|
disabled: boolean;
|
|
@@ -356,6 +390,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
356
390
|
debounceMs: number;
|
|
357
391
|
config: Record<string, unknown>;
|
|
358
392
|
}[];
|
|
393
|
+
defaultValue?: string | number | boolean | undefined;
|
|
394
|
+
storage?: "s3" | "server" | undefined;
|
|
395
|
+
contentKind?: "file" | "image" | undefined;
|
|
396
|
+
multiple?: boolean | undefined;
|
|
397
|
+
maxBytes?: number | undefined;
|
|
359
398
|
placeholder?: string | undefined;
|
|
360
399
|
description?: string | undefined;
|
|
361
400
|
options?: {
|
|
@@ -441,7 +480,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
441
480
|
fields: {
|
|
442
481
|
key: string;
|
|
443
482
|
label: string;
|
|
444
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
483
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
445
484
|
required: boolean;
|
|
446
485
|
hidden: boolean;
|
|
447
486
|
disabled: boolean;
|
|
@@ -452,6 +491,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
452
491
|
debounceMs: number;
|
|
453
492
|
config: Record<string, unknown>;
|
|
454
493
|
}[];
|
|
494
|
+
defaultValue?: string | number | boolean | undefined;
|
|
495
|
+
storage?: "s3" | "server" | undefined;
|
|
496
|
+
contentKind?: "file" | "image" | undefined;
|
|
497
|
+
multiple?: boolean | undefined;
|
|
498
|
+
maxBytes?: number | undefined;
|
|
455
499
|
placeholder?: string | undefined;
|
|
456
500
|
description?: string | undefined;
|
|
457
501
|
options?: {
|
|
@@ -507,7 +551,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
507
551
|
fields: {
|
|
508
552
|
key: string;
|
|
509
553
|
label: string;
|
|
510
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
554
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
511
555
|
required: boolean;
|
|
512
556
|
hidden: boolean;
|
|
513
557
|
disabled: boolean;
|
|
@@ -518,6 +562,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
518
562
|
debounceMs: number;
|
|
519
563
|
config: Record<string, unknown>;
|
|
520
564
|
}[];
|
|
565
|
+
defaultValue?: string | number | boolean | undefined;
|
|
566
|
+
storage?: "s3" | "server" | undefined;
|
|
567
|
+
contentKind?: "file" | "image" | undefined;
|
|
568
|
+
multiple?: boolean | undefined;
|
|
569
|
+
maxBytes?: number | undefined;
|
|
521
570
|
placeholder?: string | undefined;
|
|
522
571
|
description?: string | undefined;
|
|
523
572
|
options?: {
|
|
@@ -604,7 +653,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
604
653
|
fields: {
|
|
605
654
|
key: string;
|
|
606
655
|
label: string;
|
|
607
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
656
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
608
657
|
required: boolean;
|
|
609
658
|
hidden: boolean;
|
|
610
659
|
disabled: boolean;
|
|
@@ -615,6 +664,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
615
664
|
debounceMs: number;
|
|
616
665
|
config: Record<string, unknown>;
|
|
617
666
|
}[];
|
|
667
|
+
defaultValue?: string | number | boolean | undefined;
|
|
668
|
+
storage?: "s3" | "server" | undefined;
|
|
669
|
+
contentKind?: "file" | "image" | undefined;
|
|
670
|
+
multiple?: boolean | undefined;
|
|
671
|
+
maxBytes?: number | undefined;
|
|
618
672
|
placeholder?: string | undefined;
|
|
619
673
|
description?: string | undefined;
|
|
620
674
|
options?: {
|
|
@@ -691,7 +745,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
691
745
|
fields: {
|
|
692
746
|
key: string;
|
|
693
747
|
label: string;
|
|
694
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
748
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
695
749
|
required: boolean;
|
|
696
750
|
hidden: boolean;
|
|
697
751
|
disabled: boolean;
|
|
@@ -702,6 +756,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
702
756
|
debounceMs: number;
|
|
703
757
|
config: Record<string, unknown>;
|
|
704
758
|
}[];
|
|
759
|
+
defaultValue?: string | number | boolean | undefined;
|
|
760
|
+
storage?: "s3" | "server" | undefined;
|
|
761
|
+
contentKind?: "file" | "image" | undefined;
|
|
762
|
+
multiple?: boolean | undefined;
|
|
763
|
+
maxBytes?: number | undefined;
|
|
705
764
|
placeholder?: string | undefined;
|
|
706
765
|
description?: string | undefined;
|
|
707
766
|
options?: {
|
|
@@ -781,8 +840,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
781
840
|
key: string;
|
|
782
841
|
label: string;
|
|
783
842
|
sortable: boolean;
|
|
843
|
+
hidden: boolean;
|
|
784
844
|
align: "left" | "right";
|
|
785
845
|
}[];
|
|
846
|
+
orderBy?: {
|
|
847
|
+
field: string;
|
|
848
|
+
direction: "asc" | "desc";
|
|
849
|
+
}[] | undefined;
|
|
786
850
|
};
|
|
787
851
|
triggers: {
|
|
788
852
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -822,8 +886,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
822
886
|
key: string;
|
|
823
887
|
label: string;
|
|
824
888
|
sortable: boolean;
|
|
889
|
+
hidden: boolean;
|
|
825
890
|
align: "left" | "right";
|
|
826
891
|
}[];
|
|
892
|
+
orderBy?: {
|
|
893
|
+
field: string;
|
|
894
|
+
direction: "asc" | "desc";
|
|
895
|
+
}[] | undefined;
|
|
827
896
|
};
|
|
828
897
|
triggers: {
|
|
829
898
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -859,8 +928,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
859
928
|
key: string;
|
|
860
929
|
label: string;
|
|
861
930
|
sortable: boolean;
|
|
931
|
+
hidden: boolean;
|
|
862
932
|
align: "left" | "right";
|
|
863
933
|
}[];
|
|
934
|
+
orderBy?: {
|
|
935
|
+
field: string;
|
|
936
|
+
direction: "asc" | "desc";
|
|
937
|
+
}[] | undefined;
|
|
864
938
|
};
|
|
865
939
|
triggers: {
|
|
866
940
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -877,8 +951,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
877
951
|
key: string;
|
|
878
952
|
label: string;
|
|
879
953
|
sortable: boolean;
|
|
954
|
+
hidden: boolean;
|
|
880
955
|
align: "left" | "right";
|
|
881
956
|
}[];
|
|
957
|
+
orderBy?: {
|
|
958
|
+
field: string;
|
|
959
|
+
direction: "asc" | "desc";
|
|
960
|
+
}[] | undefined;
|
|
882
961
|
};
|
|
883
962
|
description?: string | null | undefined;
|
|
884
963
|
source?: {
|
|
@@ -925,8 +1004,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
925
1004
|
key: string;
|
|
926
1005
|
label: string;
|
|
927
1006
|
sortable: boolean;
|
|
1007
|
+
hidden: boolean;
|
|
928
1008
|
align: "left" | "right";
|
|
929
1009
|
}[];
|
|
1010
|
+
orderBy?: {
|
|
1011
|
+
field: string;
|
|
1012
|
+
direction: "asc" | "desc";
|
|
1013
|
+
}[] | undefined;
|
|
930
1014
|
};
|
|
931
1015
|
triggers: {
|
|
932
1016
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -943,8 +1027,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
943
1027
|
key: string;
|
|
944
1028
|
label: string;
|
|
945
1029
|
sortable: boolean;
|
|
1030
|
+
hidden: boolean;
|
|
946
1031
|
align: "left" | "right";
|
|
947
1032
|
}[];
|
|
1033
|
+
orderBy?: {
|
|
1034
|
+
field: string;
|
|
1035
|
+
direction: "asc" | "desc";
|
|
1036
|
+
}[] | undefined;
|
|
948
1037
|
};
|
|
949
1038
|
version: number;
|
|
950
1039
|
description?: string | null | undefined;
|
|
@@ -992,8 +1081,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
992
1081
|
key: string;
|
|
993
1082
|
label: string;
|
|
994
1083
|
sortable: boolean;
|
|
1084
|
+
hidden: boolean;
|
|
995
1085
|
align: "left" | "right";
|
|
996
1086
|
}[];
|
|
1087
|
+
orderBy?: {
|
|
1088
|
+
field: string;
|
|
1089
|
+
direction: "asc" | "desc";
|
|
1090
|
+
}[] | undefined;
|
|
997
1091
|
};
|
|
998
1092
|
triggers: {
|
|
999
1093
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1031,8 +1125,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1031
1125
|
key: string;
|
|
1032
1126
|
label: string;
|
|
1033
1127
|
sortable: boolean;
|
|
1128
|
+
hidden: boolean;
|
|
1034
1129
|
align: "left" | "right";
|
|
1035
1130
|
}[];
|
|
1131
|
+
orderBy?: {
|
|
1132
|
+
field: string;
|
|
1133
|
+
direction: "asc" | "desc";
|
|
1134
|
+
}[] | undefined;
|
|
1036
1135
|
};
|
|
1037
1136
|
triggers: {
|
|
1038
1137
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1089,7 +1188,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1089
1188
|
fields: {
|
|
1090
1189
|
key: string;
|
|
1091
1190
|
label: string;
|
|
1092
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
1191
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
1093
1192
|
required: boolean;
|
|
1094
1193
|
hidden: boolean;
|
|
1095
1194
|
disabled: boolean;
|
|
@@ -1100,6 +1199,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1100
1199
|
debounceMs: number;
|
|
1101
1200
|
config: Record<string, unknown>;
|
|
1102
1201
|
}[];
|
|
1202
|
+
defaultValue?: string | number | boolean | undefined;
|
|
1203
|
+
storage?: "s3" | "server" | undefined;
|
|
1204
|
+
contentKind?: "file" | "image" | undefined;
|
|
1205
|
+
multiple?: boolean | undefined;
|
|
1206
|
+
maxBytes?: number | undefined;
|
|
1103
1207
|
placeholder?: string | undefined;
|
|
1104
1208
|
description?: string | undefined;
|
|
1105
1209
|
options?: {
|
|
@@ -1172,8 +1276,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1172
1276
|
key: string;
|
|
1173
1277
|
label: string;
|
|
1174
1278
|
sortable: boolean;
|
|
1279
|
+
hidden: boolean;
|
|
1175
1280
|
align: "left" | "right";
|
|
1176
1281
|
}[];
|
|
1282
|
+
orderBy?: {
|
|
1283
|
+
field: string;
|
|
1284
|
+
direction: "asc" | "desc";
|
|
1285
|
+
}[] | undefined;
|
|
1177
1286
|
};
|
|
1178
1287
|
triggers: {
|
|
1179
1288
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1232,7 +1341,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1232
1341
|
fields: {
|
|
1233
1342
|
key: string;
|
|
1234
1343
|
label: string;
|
|
1235
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
1344
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
1236
1345
|
required: boolean;
|
|
1237
1346
|
hidden: boolean;
|
|
1238
1347
|
disabled: boolean;
|
|
@@ -1243,6 +1352,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1243
1352
|
debounceMs: number;
|
|
1244
1353
|
config: Record<string, unknown>;
|
|
1245
1354
|
}[];
|
|
1355
|
+
defaultValue?: string | number | boolean | undefined;
|
|
1356
|
+
storage?: "s3" | "server" | undefined;
|
|
1357
|
+
contentKind?: "file" | "image" | undefined;
|
|
1358
|
+
multiple?: boolean | undefined;
|
|
1359
|
+
maxBytes?: number | undefined;
|
|
1246
1360
|
placeholder?: string | undefined;
|
|
1247
1361
|
description?: string | undefined;
|
|
1248
1362
|
options?: {
|
|
@@ -1315,8 +1429,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1315
1429
|
key: string;
|
|
1316
1430
|
label: string;
|
|
1317
1431
|
sortable: boolean;
|
|
1432
|
+
hidden: boolean;
|
|
1318
1433
|
align: "left" | "right";
|
|
1319
1434
|
}[];
|
|
1435
|
+
orderBy?: {
|
|
1436
|
+
field: string;
|
|
1437
|
+
direction: "asc" | "desc";
|
|
1438
|
+
}[] | undefined;
|
|
1320
1439
|
};
|
|
1321
1440
|
triggers: {
|
|
1322
1441
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1385,7 +1504,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1385
1504
|
fields: {
|
|
1386
1505
|
key: string;
|
|
1387
1506
|
label: string;
|
|
1388
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
1507
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
1389
1508
|
required: boolean;
|
|
1390
1509
|
hidden: boolean;
|
|
1391
1510
|
disabled: boolean;
|
|
@@ -1396,6 +1515,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1396
1515
|
debounceMs: number;
|
|
1397
1516
|
config: Record<string, unknown>;
|
|
1398
1517
|
}[];
|
|
1518
|
+
defaultValue?: string | number | boolean | undefined;
|
|
1519
|
+
storage?: "s3" | "server" | undefined;
|
|
1520
|
+
contentKind?: "file" | "image" | undefined;
|
|
1521
|
+
multiple?: boolean | undefined;
|
|
1522
|
+
maxBytes?: number | undefined;
|
|
1399
1523
|
placeholder?: string | undefined;
|
|
1400
1524
|
description?: string | undefined;
|
|
1401
1525
|
options?: {
|
|
@@ -1468,8 +1592,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1468
1592
|
key: string;
|
|
1469
1593
|
label: string;
|
|
1470
1594
|
sortable: boolean;
|
|
1595
|
+
hidden: boolean;
|
|
1471
1596
|
align: "left" | "right";
|
|
1472
1597
|
}[];
|
|
1598
|
+
orderBy?: {
|
|
1599
|
+
field: string;
|
|
1600
|
+
direction: "asc" | "desc";
|
|
1601
|
+
}[] | undefined;
|
|
1473
1602
|
};
|
|
1474
1603
|
triggers: {
|
|
1475
1604
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1539,7 +1668,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1539
1668
|
fields: {
|
|
1540
1669
|
key: string;
|
|
1541
1670
|
label: string;
|
|
1542
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
1671
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
1543
1672
|
required: boolean;
|
|
1544
1673
|
hidden: boolean;
|
|
1545
1674
|
disabled: boolean;
|
|
@@ -1550,6 +1679,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1550
1679
|
debounceMs: number;
|
|
1551
1680
|
config: Record<string, unknown>;
|
|
1552
1681
|
}[];
|
|
1682
|
+
defaultValue?: string | number | boolean | undefined;
|
|
1683
|
+
storage?: "s3" | "server" | undefined;
|
|
1684
|
+
contentKind?: "file" | "image" | undefined;
|
|
1685
|
+
multiple?: boolean | undefined;
|
|
1686
|
+
maxBytes?: number | undefined;
|
|
1553
1687
|
placeholder?: string | undefined;
|
|
1554
1688
|
description?: string | undefined;
|
|
1555
1689
|
options?: {
|
|
@@ -1622,8 +1756,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1622
1756
|
key: string;
|
|
1623
1757
|
label: string;
|
|
1624
1758
|
sortable: boolean;
|
|
1759
|
+
hidden: boolean;
|
|
1625
1760
|
align: "left" | "right";
|
|
1626
1761
|
}[];
|
|
1762
|
+
orderBy?: {
|
|
1763
|
+
field: string;
|
|
1764
|
+
direction: "asc" | "desc";
|
|
1765
|
+
}[] | undefined;
|
|
1627
1766
|
};
|
|
1628
1767
|
triggers: {
|
|
1629
1768
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1680,7 +1819,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1680
1819
|
fields: {
|
|
1681
1820
|
key: string;
|
|
1682
1821
|
label: string;
|
|
1683
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
1822
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
1684
1823
|
required: boolean;
|
|
1685
1824
|
hidden: boolean;
|
|
1686
1825
|
disabled: boolean;
|
|
@@ -1691,6 +1830,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1691
1830
|
debounceMs: number;
|
|
1692
1831
|
config: Record<string, unknown>;
|
|
1693
1832
|
}[];
|
|
1833
|
+
defaultValue?: string | number | boolean | undefined;
|
|
1834
|
+
storage?: "s3" | "server" | undefined;
|
|
1835
|
+
contentKind?: "file" | "image" | undefined;
|
|
1836
|
+
multiple?: boolean | undefined;
|
|
1837
|
+
maxBytes?: number | undefined;
|
|
1694
1838
|
placeholder?: string | undefined;
|
|
1695
1839
|
description?: string | undefined;
|
|
1696
1840
|
options?: {
|
|
@@ -1763,8 +1907,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1763
1907
|
key: string;
|
|
1764
1908
|
label: string;
|
|
1765
1909
|
sortable: boolean;
|
|
1910
|
+
hidden: boolean;
|
|
1766
1911
|
align: "left" | "right";
|
|
1767
1912
|
}[];
|
|
1913
|
+
orderBy?: {
|
|
1914
|
+
field: string;
|
|
1915
|
+
direction: "asc" | "desc";
|
|
1916
|
+
}[] | undefined;
|
|
1768
1917
|
};
|
|
1769
1918
|
triggers: {
|
|
1770
1919
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1804,7 +1953,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1804
1953
|
fields: {
|
|
1805
1954
|
key: string;
|
|
1806
1955
|
label: string;
|
|
1807
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
1956
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
1808
1957
|
required: boolean;
|
|
1809
1958
|
hidden: boolean;
|
|
1810
1959
|
disabled: boolean;
|
|
@@ -1815,6 +1964,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1815
1964
|
debounceMs: number;
|
|
1816
1965
|
config: Record<string, unknown>;
|
|
1817
1966
|
}[];
|
|
1967
|
+
defaultValue?: string | number | boolean | undefined;
|
|
1968
|
+
storage?: "s3" | "server" | undefined;
|
|
1969
|
+
contentKind?: "file" | "image" | undefined;
|
|
1970
|
+
multiple?: boolean | undefined;
|
|
1971
|
+
maxBytes?: number | undefined;
|
|
1818
1972
|
placeholder?: string | undefined;
|
|
1819
1973
|
description?: string | undefined;
|
|
1820
1974
|
options?: {
|
|
@@ -1888,6 +2042,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1888
2042
|
runRuntimeBuilderFormFieldTrigger: (formId: string, fieldKey: string, event: "onChange" | "onBlur", input: {
|
|
1889
2043
|
values: Record<string, unknown>;
|
|
1890
2044
|
value?: unknown;
|
|
2045
|
+
parentValues?: Record<string, unknown> | undefined;
|
|
1891
2046
|
}) => Promise<{
|
|
1892
2047
|
schema: {
|
|
1893
2048
|
field: string;
|
|
@@ -1926,8 +2081,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1926
2081
|
key: string;
|
|
1927
2082
|
label: string;
|
|
1928
2083
|
sortable: boolean;
|
|
2084
|
+
hidden: boolean;
|
|
1929
2085
|
align: "left" | "right";
|
|
1930
2086
|
}[];
|
|
2087
|
+
orderBy?: {
|
|
2088
|
+
field: string;
|
|
2089
|
+
direction: "asc" | "desc";
|
|
2090
|
+
}[] | undefined;
|
|
1931
2091
|
};
|
|
1932
2092
|
triggers: {
|
|
1933
2093
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -1999,7 +2159,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
1999
2159
|
fields: {
|
|
2000
2160
|
key: string;
|
|
2001
2161
|
label: string;
|
|
2002
|
-
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "textarea";
|
|
2162
|
+
type: "number" | "select" | "date" | "text" | "money" | "checkbox" | "file" | "textarea" | "richtext";
|
|
2003
2163
|
required: boolean;
|
|
2004
2164
|
hidden: boolean;
|
|
2005
2165
|
disabled: boolean;
|
|
@@ -2010,6 +2170,11 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
2010
2170
|
debounceMs: number;
|
|
2011
2171
|
config: Record<string, unknown>;
|
|
2012
2172
|
}[];
|
|
2173
|
+
defaultValue?: string | number | boolean | undefined;
|
|
2174
|
+
storage?: "s3" | "server" | undefined;
|
|
2175
|
+
contentKind?: "file" | "image" | undefined;
|
|
2176
|
+
multiple?: boolean | undefined;
|
|
2177
|
+
maxBytes?: number | undefined;
|
|
2013
2178
|
placeholder?: string | undefined;
|
|
2014
2179
|
description?: string | undefined;
|
|
2015
2180
|
options?: {
|
|
@@ -2082,8 +2247,13 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
2082
2247
|
key: string;
|
|
2083
2248
|
label: string;
|
|
2084
2249
|
sortable: boolean;
|
|
2250
|
+
hidden: boolean;
|
|
2085
2251
|
align: "left" | "right";
|
|
2086
2252
|
}[];
|
|
2253
|
+
orderBy?: {
|
|
2254
|
+
field: string;
|
|
2255
|
+
direction: "asc" | "desc";
|
|
2256
|
+
}[] | undefined;
|
|
2087
2257
|
};
|
|
2088
2258
|
triggers: {
|
|
2089
2259
|
action: "callApi" | "webhook" | "audit" | "notify" | "validate";
|
|
@@ -2099,6 +2269,7 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
2099
2269
|
runRuntimeBuilderViewFieldTrigger: (viewId: string, fieldKey: string, event: "onChange" | "onBlur", input: {
|
|
2100
2270
|
values: Record<string, unknown>;
|
|
2101
2271
|
value?: unknown;
|
|
2272
|
+
parentValues?: Record<string, unknown> | undefined;
|
|
2102
2273
|
}) => Promise<{
|
|
2103
2274
|
schema: {
|
|
2104
2275
|
field: string;
|
|
@@ -2183,9 +2354,29 @@ declare function createBuilderClient({ transport, apiBasePath }: CreateBuilderCl
|
|
|
2183
2354
|
updatedAt: string;
|
|
2184
2355
|
}>;
|
|
2185
2356
|
deleteBuilderViewEntry: (viewId: string, id: string) => Promise<void>;
|
|
2357
|
+
presignRuntimeBuilderFile: (context: {
|
|
2358
|
+
formId?: string;
|
|
2359
|
+
viewId?: string;
|
|
2360
|
+
}, fieldKey: string, input: {
|
|
2361
|
+
contentType: string;
|
|
2362
|
+
contentLength: number;
|
|
2363
|
+
}) => Promise<{
|
|
2364
|
+
url: string;
|
|
2365
|
+
key: string;
|
|
2366
|
+
uploadUrl: string;
|
|
2367
|
+
expiresInSeconds: number;
|
|
2368
|
+
}>;
|
|
2369
|
+
uploadRuntimeBuilderFile: (context: {
|
|
2370
|
+
formId?: string;
|
|
2371
|
+
viewId?: string;
|
|
2372
|
+
}, fieldKey: string, file: Blob) => Promise<{
|
|
2373
|
+
url: string;
|
|
2374
|
+
key: string;
|
|
2375
|
+
}>;
|
|
2186
2376
|
};
|
|
2187
2377
|
type BuilderContextValue = {
|
|
2188
2378
|
client: BuilderClient;
|
|
2379
|
+
components: BuilderRuntimeComponents;
|
|
2189
2380
|
hooks: BuilderHooks<ReadyBuilderContracts>;
|
|
2190
2381
|
notify(notification: BuilderNotification): void;
|
|
2191
2382
|
};
|
|
@@ -2194,29 +2385,41 @@ type BuilderProviderProps = {
|
|
|
2194
2385
|
client?: BuilderClient;
|
|
2195
2386
|
transport?: BuilderApiTransport;
|
|
2196
2387
|
apiBasePath?: string;
|
|
2388
|
+
components?: BuilderRuntimeComponents;
|
|
2197
2389
|
queryClient?: QueryClient;
|
|
2198
2390
|
onNotify?(notification: BuilderNotification): void;
|
|
2199
2391
|
};
|
|
2200
|
-
declare function BuilderProvider({ children, client: configuredClient, transport, apiBasePath, queryClient, onNotify, }: BuilderProviderProps): react.JSX.Element;
|
|
2392
|
+
declare function BuilderProvider({ children, client: configuredClient, transport, apiBasePath, components, queryClient, onNotify, }: BuilderProviderProps): react.JSX.Element;
|
|
2201
2393
|
declare function useBuilderRuntime(): BuilderContextValue;
|
|
2202
2394
|
declare function builderErrorMessage(error: unknown, fallback: string): string;
|
|
2203
2395
|
|
|
2204
|
-
|
|
2205
|
-
|
|
2396
|
+
declare function BuilderForm(props: BuilderFormProps): react.JSX.Element;
|
|
2397
|
+
declare function BuilderGrid(props: BuilderGridProps): react.JSX.Element;
|
|
2398
|
+
declare function BuilderView(props: BuilderViewProps): react.JSX.Element;
|
|
2399
|
+
|
|
2400
|
+
type Props$1<T extends FieldValues> = {
|
|
2401
|
+
field: BuilderField;
|
|
2402
|
+
formId?: string;
|
|
2403
|
+
viewId?: string;
|
|
2404
|
+
name: Path<T>;
|
|
2206
2405
|
};
|
|
2207
|
-
|
|
2208
|
-
|
|
2406
|
+
declare function ReadyFileField<T extends FieldValues>({ field, formId, viewId, name }: Props$1<T>): react.JSX.Element;
|
|
2407
|
+
|
|
2408
|
+
type Props<T extends FieldValues> = {
|
|
2409
|
+
field: BuilderField;
|
|
2410
|
+
name: Path<T>;
|
|
2209
2411
|
};
|
|
2210
|
-
|
|
2211
|
-
|
|
2412
|
+
declare function ReadyRichTextField<T extends FieldValues>({ field, name }: Props<T>): react.JSX.Element;
|
|
2413
|
+
|
|
2414
|
+
type RichTextContentProps = {
|
|
2415
|
+
className?: string;
|
|
2416
|
+
value: unknown;
|
|
2212
2417
|
};
|
|
2213
|
-
declare function
|
|
2214
|
-
declare function BuilderGrid({ listId }: BuilderGridProps): react.JSX.Element;
|
|
2215
|
-
declare function BuilderView({ viewId }: BuilderViewProps): react.JSX.Element;
|
|
2418
|
+
declare function RichTextContent({ className, value }: RichTextContentProps): react.JSX.Element;
|
|
2216
2419
|
|
|
2217
2420
|
declare const builderUiPackage: {
|
|
2218
2421
|
readonly name: "@duke333/builder-ui";
|
|
2219
|
-
readonly version: "0.2.
|
|
2422
|
+
readonly version: "0.2.4";
|
|
2220
2423
|
};
|
|
2221
2424
|
|
|
2222
|
-
export { BuilderApiClient, BuilderApiContracts, BuilderApiTransport, type BuilderClient, BuilderFieldOptionsQuery, BuilderForm, type BuilderFormProps, BuilderGrid, type BuilderGridProps, BuilderHooks, type BuilderNotification, BuilderProvider, type BuilderProviderProps, BuilderView, type BuilderViewProps, type CreateBuilderClientOptions, type ReadyBuilderContracts, builderErrorMessage, builderUiPackage, createBuilderClient, useBuilderRuntime };
|
|
2425
|
+
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 };
|