react-formule 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +128 -4
- package/dist/admin/utils/fieldTypes.d.ts +147 -141
- package/dist/admin/utils/index.d.ts +1 -1
- package/dist/ai/AiChatFooter.d.ts +9 -0
- package/dist/ai/AiDiff.d.ts +9 -0
- package/dist/ai/AiSettingsDialog.d.ts +7 -0
- package/dist/ai/defaults.d.ts +4 -0
- package/dist/ai/hooks.d.ts +4 -0
- package/dist/ai/utils.d.ts +5 -0
- package/dist/contexts/CustomizationContext.d.ts +3 -1
- package/dist/exposed.d.ts +1 -1
- package/dist/forms/Form.d.ts +2 -0
- package/dist/forms/fields/base/CodeEditorField.d.ts +1 -2
- package/dist/forms/templates/utils/index.d.ts +1 -0
- package/dist/forms/widgets/base/MaskedInput/MaskedInput.d.ts +2 -1
- package/dist/index.d.ts +7 -0
- package/dist/react-formule.js +91624 -85112
- package/dist/react-formule.umd.cjs +535 -418
- package/dist/store/schemaWizard.d.ts +1 -1
- package/dist/types/index.d.ts +74 -0
- package/dist/utils/CodeDiffViewer.d.ts +2 -1
- package/dist/utils/FieldMessageTag.d.ts +4 -0
- package/package.json +6 -3
|
@@ -759,6 +759,8 @@ declare namespace collections_1 {
|
|
|
759
759
|
namespace stepsView {
|
|
760
760
|
let title_24: string;
|
|
761
761
|
export { title_24 as title };
|
|
762
|
+
let description_12: string;
|
|
763
|
+
export { description_12 as description };
|
|
762
764
|
let icon_6: import("react/jsx-runtime").JSX.Element;
|
|
763
765
|
export { icon_6 as icon };
|
|
764
766
|
let child_6: {};
|
|
@@ -959,8 +961,8 @@ declare namespace simple_1 {
|
|
|
959
961
|
export { title_27 as title };
|
|
960
962
|
let icon_7: import("react/jsx-runtime").JSX.Element;
|
|
961
963
|
export { icon_7 as icon };
|
|
962
|
-
let
|
|
963
|
-
export {
|
|
964
|
+
let description_13: string;
|
|
965
|
+
export { description_13 as description };
|
|
964
966
|
let className_3: string;
|
|
965
967
|
export { className_3 as className };
|
|
966
968
|
let child_7: {};
|
|
@@ -974,8 +976,8 @@ declare namespace simple_1 {
|
|
|
974
976
|
export namespace pattern {
|
|
975
977
|
let title_29: string;
|
|
976
978
|
export { title_29 as title };
|
|
977
|
-
let
|
|
978
|
-
export {
|
|
979
|
+
let description_14: string;
|
|
980
|
+
export { description_14 as description };
|
|
979
981
|
let type_25: string;
|
|
980
982
|
export { type_25 as type };
|
|
981
983
|
export let format: string;
|
|
@@ -1149,8 +1151,8 @@ declare namespace simple_1 {
|
|
|
1149
1151
|
export { title_31 as title };
|
|
1150
1152
|
let icon_8: import("react/jsx-runtime").JSX.Element;
|
|
1151
1153
|
export { icon_8 as icon };
|
|
1152
|
-
let
|
|
1153
|
-
export {
|
|
1154
|
+
let description_15: string;
|
|
1155
|
+
export { description_15 as description };
|
|
1154
1156
|
let child_8: {};
|
|
1155
1157
|
export { child_8 as child };
|
|
1156
1158
|
export namespace optionsSchema_10 {
|
|
@@ -1321,8 +1323,8 @@ declare namespace simple_1 {
|
|
|
1321
1323
|
export { title_34 as title };
|
|
1322
1324
|
let icon_9: import("react/jsx-runtime").JSX.Element;
|
|
1323
1325
|
export { icon_9 as icon };
|
|
1324
|
-
let
|
|
1325
|
-
export {
|
|
1326
|
+
let description_16: string;
|
|
1327
|
+
export { description_16 as description };
|
|
1326
1328
|
let child_9: {};
|
|
1327
1329
|
export { child_9 as child };
|
|
1328
1330
|
export namespace optionsSchema_11 {
|
|
@@ -1412,8 +1414,8 @@ declare namespace simple_1 {
|
|
|
1412
1414
|
export { title_37 as title };
|
|
1413
1415
|
let icon_10: import("react/jsx-runtime").JSX.Element;
|
|
1414
1416
|
export { icon_10 as icon };
|
|
1415
|
-
let
|
|
1416
|
-
export {
|
|
1417
|
+
let description_17: string;
|
|
1418
|
+
export { description_17 as description };
|
|
1417
1419
|
let child_10: {};
|
|
1418
1420
|
export { child_10 as child };
|
|
1419
1421
|
export namespace optionsSchema_12 {
|
|
@@ -1467,7 +1469,6 @@ declare namespace simple_1 {
|
|
|
1467
1469
|
items: {
|
|
1468
1470
|
title: string;
|
|
1469
1471
|
type: string;
|
|
1470
|
-
description: string;
|
|
1471
1472
|
properties: {
|
|
1472
1473
|
enum: {
|
|
1473
1474
|
title: string;
|
|
@@ -1490,6 +1491,13 @@ declare namespace simple_1 {
|
|
|
1490
1491
|
}
|
|
1491
1492
|
export { optionsSchema_12 as optionsSchema };
|
|
1492
1493
|
let optionsSchemaUiSchema_12: {
|
|
1494
|
+
items: {
|
|
1495
|
+
enum: {
|
|
1496
|
+
items: {
|
|
1497
|
+
"ui:label": boolean;
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1493
1501
|
readOnly: {
|
|
1494
1502
|
"ui:widget": string;
|
|
1495
1503
|
};
|
|
@@ -1560,8 +1568,8 @@ declare namespace simple_1 {
|
|
|
1560
1568
|
export { title_40 as title };
|
|
1561
1569
|
let icon_11: import("react/jsx-runtime").JSX.Element;
|
|
1562
1570
|
export { icon_11 as icon };
|
|
1563
|
-
let
|
|
1564
|
-
export {
|
|
1571
|
+
let description_18: string;
|
|
1572
|
+
export { description_18 as description };
|
|
1565
1573
|
let child_11: {};
|
|
1566
1574
|
export { child_11 as child };
|
|
1567
1575
|
export namespace optionsSchema_13 {
|
|
@@ -1575,8 +1583,8 @@ declare namespace simple_1 {
|
|
|
1575
1583
|
export { type_43 as type };
|
|
1576
1584
|
let title_42: string;
|
|
1577
1585
|
export { title_42 as title };
|
|
1578
|
-
let
|
|
1579
|
-
export {
|
|
1586
|
+
let description_19: string;
|
|
1587
|
+
export { description_19 as description };
|
|
1580
1588
|
let oneOf_4: {
|
|
1581
1589
|
const: string;
|
|
1582
1590
|
title: string;
|
|
@@ -1732,8 +1740,8 @@ declare namespace simple_1 {
|
|
|
1732
1740
|
export { title_44 as title };
|
|
1733
1741
|
let icon_12: import("react/jsx-runtime").JSX.Element;
|
|
1734
1742
|
export { icon_12 as icon };
|
|
1735
|
-
let
|
|
1736
|
-
export {
|
|
1743
|
+
let description_20: string;
|
|
1744
|
+
export { description_20 as description };
|
|
1737
1745
|
let child_12: {};
|
|
1738
1746
|
export { child_12 as child };
|
|
1739
1747
|
export namespace optionsSchema_14 {
|
|
@@ -1747,8 +1755,8 @@ declare namespace simple_1 {
|
|
|
1747
1755
|
export { title_46 as title };
|
|
1748
1756
|
let type_47: string;
|
|
1749
1757
|
export { type_47 as type };
|
|
1750
|
-
let
|
|
1751
|
-
export {
|
|
1758
|
+
let description_21: string;
|
|
1759
|
+
export { description_21 as description };
|
|
1752
1760
|
export namespace items_4 {
|
|
1753
1761
|
let title_47: string;
|
|
1754
1762
|
export { title_47 as title };
|
|
@@ -1831,8 +1839,8 @@ declare namespace simple_1 {
|
|
|
1831
1839
|
export { title_48 as title };
|
|
1832
1840
|
let icon_13: import("react/jsx-runtime").JSX.Element;
|
|
1833
1841
|
export { icon_13 as icon };
|
|
1834
|
-
let
|
|
1835
|
-
export {
|
|
1842
|
+
let description_22: string;
|
|
1843
|
+
export { description_22 as description };
|
|
1836
1844
|
let child_13: {};
|
|
1837
1845
|
export { child_13 as child };
|
|
1838
1846
|
export namespace optionsSchema_15 {
|
|
@@ -1912,6 +1920,13 @@ declare namespace simple_1 {
|
|
|
1912
1920
|
}
|
|
1913
1921
|
export { optionsSchema_15 as optionsSchema };
|
|
1914
1922
|
let optionsSchemaUiSchema_15: {
|
|
1923
|
+
items: {
|
|
1924
|
+
enum: {
|
|
1925
|
+
items: {
|
|
1926
|
+
"ui:label": boolean;
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1915
1930
|
readOnly: {
|
|
1916
1931
|
"ui:widget": string;
|
|
1917
1932
|
};
|
|
@@ -1976,8 +1991,8 @@ declare namespace simple_1 {
|
|
|
1976
1991
|
export { title_51 as title };
|
|
1977
1992
|
let icon_14: import("react/jsx-runtime").JSX.Element;
|
|
1978
1993
|
export { icon_14 as icon };
|
|
1979
|
-
let
|
|
1980
|
-
export {
|
|
1994
|
+
let description_23: string;
|
|
1995
|
+
export { description_23 as description };
|
|
1981
1996
|
let child_14: {};
|
|
1982
1997
|
export { child_14 as child };
|
|
1983
1998
|
export namespace optionsSchema_16 {
|
|
@@ -2002,8 +2017,8 @@ declare namespace simple_1 {
|
|
|
2002
2017
|
export { type_56 as type };
|
|
2003
2018
|
let title_54: string;
|
|
2004
2019
|
export { title_54 as title };
|
|
2005
|
-
let
|
|
2006
|
-
export {
|
|
2020
|
+
let description_24: string;
|
|
2021
|
+
export { description_24 as description };
|
|
2007
2022
|
export let tooltip: string;
|
|
2008
2023
|
}
|
|
2009
2024
|
export namespace minDate {
|
|
@@ -2104,8 +2119,8 @@ declare namespace advanced_1 {
|
|
|
2104
2119
|
export { title_57 as title };
|
|
2105
2120
|
let icon_15: import("react/jsx-runtime").JSX.Element;
|
|
2106
2121
|
export { icon_15 as icon };
|
|
2107
|
-
let
|
|
2108
|
-
export {
|
|
2122
|
+
let description_25: string;
|
|
2123
|
+
export { description_25 as description };
|
|
2109
2124
|
let child_15: {};
|
|
2110
2125
|
export { child_15 as child };
|
|
2111
2126
|
export namespace optionsSchema_17 {
|
|
@@ -2263,8 +2278,8 @@ declare namespace advanced_1 {
|
|
|
2263
2278
|
export { title_60 as title };
|
|
2264
2279
|
let icon_16: import("react/jsx-runtime").JSX.Element;
|
|
2265
2280
|
export { icon_16 as icon };
|
|
2266
|
-
let
|
|
2267
|
-
export {
|
|
2281
|
+
let description_26: string;
|
|
2282
|
+
export { description_26 as description };
|
|
2268
2283
|
let child_16: {};
|
|
2269
2284
|
export { child_16 as child };
|
|
2270
2285
|
export namespace optionsSchema_18 {
|
|
@@ -2344,8 +2359,8 @@ declare namespace advanced_1 {
|
|
|
2344
2359
|
export { title_62 as title };
|
|
2345
2360
|
let icon_17: import("react/jsx-runtime").JSX.Element;
|
|
2346
2361
|
export { icon_17 as icon };
|
|
2347
|
-
let
|
|
2348
|
-
export {
|
|
2362
|
+
let description_27: string;
|
|
2363
|
+
export { description_27 as description };
|
|
2349
2364
|
let child_17: {};
|
|
2350
2365
|
export { child_17 as child };
|
|
2351
2366
|
export namespace optionsSchema_19 {
|
|
@@ -2359,16 +2374,16 @@ declare namespace advanced_1 {
|
|
|
2359
2374
|
export { type_66 as type };
|
|
2360
2375
|
let title_64: string;
|
|
2361
2376
|
export { title_64 as title };
|
|
2362
|
-
let
|
|
2363
|
-
export {
|
|
2377
|
+
let description_28: string;
|
|
2378
|
+
export { description_28 as description };
|
|
2364
2379
|
}
|
|
2365
2380
|
export namespace tagPatternErrorMessage {
|
|
2366
2381
|
let type_67: string;
|
|
2367
2382
|
export { type_67 as type };
|
|
2368
2383
|
let title_65: string;
|
|
2369
2384
|
export { title_65 as title };
|
|
2370
|
-
let
|
|
2371
|
-
export {
|
|
2385
|
+
let description_29: string;
|
|
2386
|
+
export { description_29 as description };
|
|
2372
2387
|
}
|
|
2373
2388
|
import readOnly_13 = readOnly;
|
|
2374
2389
|
export { readOnly_13 as readOnly };
|
|
@@ -2446,8 +2461,8 @@ declare namespace advanced_1 {
|
|
|
2446
2461
|
export { title_66 as title };
|
|
2447
2462
|
let icon_18: import("react/jsx-runtime").JSX.Element;
|
|
2448
2463
|
export { icon_18 as icon };
|
|
2449
|
-
let
|
|
2450
|
-
export {
|
|
2464
|
+
let description_30: string;
|
|
2465
|
+
export { description_30 as description };
|
|
2451
2466
|
let child_18: {};
|
|
2452
2467
|
export { child_18 as child };
|
|
2453
2468
|
export namespace optionsSchema_20 {
|
|
@@ -2616,8 +2631,8 @@ declare namespace advanced_1 {
|
|
|
2616
2631
|
export { title_69 as title };
|
|
2617
2632
|
let icon_19: import("react/jsx-runtime").JSX.Element;
|
|
2618
2633
|
export { icon_19 as icon };
|
|
2619
|
-
let
|
|
2620
|
-
export {
|
|
2634
|
+
let description_31: string;
|
|
2635
|
+
export { description_31 as description };
|
|
2621
2636
|
let child_19: {};
|
|
2622
2637
|
export { child_19 as child };
|
|
2623
2638
|
export namespace optionsSchema_21 {
|
|
@@ -2626,63 +2641,12 @@ declare namespace advanced_1 {
|
|
|
2626
2641
|
let type_73: string;
|
|
2627
2642
|
export { type_73 as type };
|
|
2628
2643
|
export namespace properties_32 {
|
|
2629
|
-
export namespace validateWith {
|
|
2630
|
-
let type_74: string;
|
|
2631
|
-
export { type_74 as type };
|
|
2632
|
-
let title_71: string;
|
|
2633
|
-
export { title_71 as title };
|
|
2634
|
-
let description_31: string;
|
|
2635
|
-
export { description_31 as description };
|
|
2636
|
-
let oneOf_6: {
|
|
2637
|
-
const: string;
|
|
2638
|
-
title: string;
|
|
2639
|
-
}[];
|
|
2640
|
-
export { oneOf_6 as oneOf };
|
|
2641
|
-
}
|
|
2642
2644
|
import readOnly_15 = readOnly;
|
|
2643
2645
|
export { readOnly_15 as readOnly };
|
|
2644
2646
|
import isRequired_15 = isRequired;
|
|
2645
2647
|
export { isRequired_15 as isRequired };
|
|
2646
2648
|
}
|
|
2647
2649
|
export { properties_32 as properties };
|
|
2648
|
-
export namespace dependencies_1 {
|
|
2649
|
-
export namespace validateWith_1 {
|
|
2650
|
-
let oneOf_7: ({
|
|
2651
|
-
properties: {
|
|
2652
|
-
validateWith: {
|
|
2653
|
-
enum: string[];
|
|
2654
|
-
};
|
|
2655
|
-
validateWithUrl: {
|
|
2656
|
-
title: string;
|
|
2657
|
-
type: string;
|
|
2658
|
-
};
|
|
2659
|
-
validateWithJson?: undefined;
|
|
2660
|
-
};
|
|
2661
|
-
} | {
|
|
2662
|
-
properties: {
|
|
2663
|
-
validateWith: {
|
|
2664
|
-
enum: string[];
|
|
2665
|
-
};
|
|
2666
|
-
validateWithJson: {
|
|
2667
|
-
title: string;
|
|
2668
|
-
type: string;
|
|
2669
|
-
};
|
|
2670
|
-
validateWithUrl?: undefined;
|
|
2671
|
-
};
|
|
2672
|
-
} | {
|
|
2673
|
-
properties: {
|
|
2674
|
-
validateWith: {
|
|
2675
|
-
enum: string[];
|
|
2676
|
-
};
|
|
2677
|
-
validateWithUrl?: undefined;
|
|
2678
|
-
validateWithJson?: undefined;
|
|
2679
|
-
};
|
|
2680
|
-
})[];
|
|
2681
|
-
export { oneOf_7 as oneOf };
|
|
2682
|
-
}
|
|
2683
|
-
export { validateWith_1 as validateWith };
|
|
2684
|
-
}
|
|
2685
|
-
export { dependencies_1 as dependencies };
|
|
2686
2650
|
}
|
|
2687
2651
|
export { optionsSchema_21 as optionsSchema };
|
|
2688
2652
|
let optionsSchemaUiSchema_21: {
|
|
@@ -2692,25 +2656,6 @@ declare namespace advanced_1 {
|
|
|
2692
2656
|
isRequired: {
|
|
2693
2657
|
"ui:widget": string;
|
|
2694
2658
|
};
|
|
2695
|
-
validateWithUrl: {
|
|
2696
|
-
"ui:widget": string;
|
|
2697
|
-
};
|
|
2698
|
-
validateWithJson: {
|
|
2699
|
-
"ui:field": string;
|
|
2700
|
-
"ui:options": {
|
|
2701
|
-
showAsModal: boolean;
|
|
2702
|
-
modal: {
|
|
2703
|
-
buttonInNewLine: boolean;
|
|
2704
|
-
modalWidth: string;
|
|
2705
|
-
};
|
|
2706
|
-
codeEditor: {
|
|
2707
|
-
minimal: boolean;
|
|
2708
|
-
language: string;
|
|
2709
|
-
height: string;
|
|
2710
|
-
extraExtensions: import("@codemirror/state").Extension[];
|
|
2711
|
-
};
|
|
2712
|
-
};
|
|
2713
|
-
};
|
|
2714
2659
|
"ui:order": string[];
|
|
2715
2660
|
"ui:ObjectFieldTemplate": ({ properties }: {
|
|
2716
2661
|
properties: any;
|
|
@@ -2718,15 +2663,49 @@ declare namespace advanced_1 {
|
|
|
2718
2663
|
};
|
|
2719
2664
|
export { optionsSchemaUiSchema_21 as optionsSchemaUiSchema };
|
|
2720
2665
|
export namespace optionsUiSchema_20 {
|
|
2721
|
-
let
|
|
2722
|
-
export {
|
|
2723
|
-
let
|
|
2724
|
-
export {
|
|
2666
|
+
let type_74: string;
|
|
2667
|
+
export { type_74 as type };
|
|
2668
|
+
let title_71: string;
|
|
2669
|
+
export { title_71 as title };
|
|
2725
2670
|
let properties_33: {
|
|
2726
2671
|
"ui:options": {
|
|
2727
2672
|
type: string;
|
|
2728
2673
|
title: string;
|
|
2729
2674
|
dependencies: {
|
|
2675
|
+
validateWith: {
|
|
2676
|
+
oneOf: ({
|
|
2677
|
+
properties: {
|
|
2678
|
+
validateWith: {
|
|
2679
|
+
enum: string[];
|
|
2680
|
+
};
|
|
2681
|
+
validateWithUrl: {
|
|
2682
|
+
title: string;
|
|
2683
|
+
type: string;
|
|
2684
|
+
};
|
|
2685
|
+
validateWithJson?: undefined;
|
|
2686
|
+
};
|
|
2687
|
+
} | {
|
|
2688
|
+
properties: {
|
|
2689
|
+
validateWith: {
|
|
2690
|
+
enum: string[];
|
|
2691
|
+
};
|
|
2692
|
+
validateWithJson: {
|
|
2693
|
+
title: string;
|
|
2694
|
+
aiHint: string;
|
|
2695
|
+
type: string;
|
|
2696
|
+
};
|
|
2697
|
+
validateWithUrl?: undefined;
|
|
2698
|
+
};
|
|
2699
|
+
} | {
|
|
2700
|
+
properties: {
|
|
2701
|
+
validateWith: {
|
|
2702
|
+
enum: string[];
|
|
2703
|
+
};
|
|
2704
|
+
validateWithUrl?: undefined;
|
|
2705
|
+
validateWithJson?: undefined;
|
|
2706
|
+
};
|
|
2707
|
+
})[];
|
|
2708
|
+
};
|
|
2730
2709
|
showAsModal: {
|
|
2731
2710
|
oneOf: ({
|
|
2732
2711
|
properties: {
|
|
@@ -2778,6 +2757,15 @@ declare namespace advanced_1 {
|
|
|
2778
2757
|
}[];
|
|
2779
2758
|
tooltip: string;
|
|
2780
2759
|
};
|
|
2760
|
+
validateWith: {
|
|
2761
|
+
type: string;
|
|
2762
|
+
title: string;
|
|
2763
|
+
tooltip: string;
|
|
2764
|
+
oneOf: {
|
|
2765
|
+
const: string;
|
|
2766
|
+
title: string;
|
|
2767
|
+
}[];
|
|
2768
|
+
};
|
|
2781
2769
|
span: {
|
|
2782
2770
|
title: string;
|
|
2783
2771
|
type: string;
|
|
@@ -2806,6 +2794,25 @@ declare namespace advanced_1 {
|
|
|
2806
2794
|
export { optionsUiSchema_20 as optionsUiSchema };
|
|
2807
2795
|
let optionsUiSchemaUiSchema_20: {
|
|
2808
2796
|
"ui:options": {
|
|
2797
|
+
validateWithUrl: {
|
|
2798
|
+
"ui:widget": string;
|
|
2799
|
+
};
|
|
2800
|
+
validateWithJson: {
|
|
2801
|
+
"ui:field": string;
|
|
2802
|
+
"ui:options": {
|
|
2803
|
+
showAsModal: boolean;
|
|
2804
|
+
modal: {
|
|
2805
|
+
buttonInNewLine: boolean;
|
|
2806
|
+
modalWidth: string;
|
|
2807
|
+
};
|
|
2808
|
+
codeEditor: {
|
|
2809
|
+
minimal: boolean;
|
|
2810
|
+
language: string;
|
|
2811
|
+
height: string;
|
|
2812
|
+
extraExtensions: import("@codemirror/state").Extension[];
|
|
2813
|
+
};
|
|
2814
|
+
};
|
|
2815
|
+
};
|
|
2809
2816
|
span: {
|
|
2810
2817
|
"ui:widget": string;
|
|
2811
2818
|
};
|
|
@@ -2837,10 +2844,9 @@ declare namespace advanced_1 {
|
|
|
2837
2844
|
export { optionsUiSchemaUiSchema_20 as optionsUiSchemaUiSchema };
|
|
2838
2845
|
namespace _default_20 {
|
|
2839
2846
|
export namespace schema_19 {
|
|
2840
|
-
let
|
|
2841
|
-
export {
|
|
2842
|
-
let
|
|
2843
|
-
export { validateWith_2 as validateWith };
|
|
2847
|
+
let type_75: string;
|
|
2848
|
+
export { type_75 as type };
|
|
2849
|
+
export let validateWith: string;
|
|
2844
2850
|
}
|
|
2845
2851
|
export { schema_19 as schema };
|
|
2846
2852
|
let uiSchema_19: {
|
|
@@ -2854,8 +2860,8 @@ declare namespace advanced_1 {
|
|
|
2854
2860
|
export { _default_20 as default };
|
|
2855
2861
|
}
|
|
2856
2862
|
namespace file {
|
|
2857
|
-
let
|
|
2858
|
-
export {
|
|
2863
|
+
let title_72: string;
|
|
2864
|
+
export { title_72 as title };
|
|
2859
2865
|
let icon_20: import("react/jsx-runtime").JSX.Element;
|
|
2860
2866
|
export { icon_20 as icon };
|
|
2861
2867
|
let description_32: string;
|
|
@@ -2863,44 +2869,44 @@ declare namespace advanced_1 {
|
|
|
2863
2869
|
let child_20: {};
|
|
2864
2870
|
export { child_20 as child };
|
|
2865
2871
|
export namespace optionsSchema_22 {
|
|
2866
|
-
let
|
|
2867
|
-
export {
|
|
2868
|
-
let
|
|
2869
|
-
export {
|
|
2872
|
+
let type_76: string;
|
|
2873
|
+
export { type_76 as type };
|
|
2874
|
+
let title_73: string;
|
|
2875
|
+
export { title_73 as title };
|
|
2870
2876
|
export namespace properties_34 {
|
|
2871
2877
|
export namespace maxFiles {
|
|
2872
|
-
let
|
|
2873
|
-
export {
|
|
2878
|
+
let title_74: string;
|
|
2879
|
+
export { title_74 as title };
|
|
2874
2880
|
let description_33: string;
|
|
2875
2881
|
export { description_33 as description };
|
|
2876
|
-
let
|
|
2877
|
-
export {
|
|
2882
|
+
let type_77: string;
|
|
2883
|
+
export { type_77 as type };
|
|
2878
2884
|
export let minimum: number;
|
|
2879
2885
|
}
|
|
2880
2886
|
export namespace accept {
|
|
2881
|
-
let
|
|
2882
|
-
export {
|
|
2887
|
+
let title_75: string;
|
|
2888
|
+
export { title_75 as title };
|
|
2883
2889
|
let description_34: string;
|
|
2884
2890
|
export { description_34 as description };
|
|
2885
|
-
let
|
|
2886
|
-
export {
|
|
2891
|
+
let type_78: string;
|
|
2892
|
+
export { type_78 as type };
|
|
2887
2893
|
let uniqueItems_2: boolean;
|
|
2888
2894
|
export { uniqueItems_2 as uniqueItems };
|
|
2889
2895
|
export namespace items_6 {
|
|
2890
|
-
let
|
|
2891
|
-
export {
|
|
2896
|
+
let type_79: string;
|
|
2897
|
+
export { type_79 as type };
|
|
2892
2898
|
let pattern_1: string;
|
|
2893
2899
|
export { pattern_1 as pattern };
|
|
2894
2900
|
}
|
|
2895
2901
|
export { items_6 as items };
|
|
2896
2902
|
}
|
|
2897
2903
|
export namespace disablePreview {
|
|
2898
|
-
let
|
|
2899
|
-
export {
|
|
2904
|
+
let title_76: string;
|
|
2905
|
+
export { title_76 as title };
|
|
2900
2906
|
let description_35: string;
|
|
2901
2907
|
export { description_35 as description };
|
|
2902
|
-
let
|
|
2903
|
-
export {
|
|
2908
|
+
let type_80: string;
|
|
2909
|
+
export { type_80 as type };
|
|
2904
2910
|
}
|
|
2905
2911
|
import readOnly_16 = readOnly;
|
|
2906
2912
|
export { readOnly_16 as readOnly };
|
|
@@ -2968,11 +2974,11 @@ declare namespace advanced_1 {
|
|
|
2968
2974
|
export { optionsUiSchemaUiSchema_21 as optionsUiSchemaUiSchema };
|
|
2969
2975
|
namespace _default_21 {
|
|
2970
2976
|
export namespace schema_20 {
|
|
2971
|
-
let
|
|
2972
|
-
export {
|
|
2977
|
+
let type_81: string;
|
|
2978
|
+
export { type_81 as type };
|
|
2973
2979
|
export namespace items_7 {
|
|
2974
|
-
let
|
|
2975
|
-
export {
|
|
2980
|
+
let type_82: string;
|
|
2981
|
+
export { type_82 as type };
|
|
2976
2982
|
}
|
|
2977
2983
|
export { items_7 as items };
|
|
2978
2984
|
}
|
|
@@ -10,4 +10,4 @@ export function shoudDisplayGuideLinePopUp(schema: any): any;
|
|
|
10
10
|
export function isItTheArrayField(schema: any, uiSchema: any): boolean;
|
|
11
11
|
export function combineFieldTypes(fieldTypes: any, customFieldTypes: any): any;
|
|
12
12
|
export function timer(ms: any): Promise<any>;
|
|
13
|
-
export function
|
|
13
|
+
export function getFieldSpec(schema: any, uiSchema: any, fieldTypes: any): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type AiChatFooterProps = {
|
|
2
|
+
onApply?: () => void;
|
|
3
|
+
onReject?: () => void;
|
|
4
|
+
hideHelp?: boolean;
|
|
5
|
+
hideSettings?: boolean;
|
|
6
|
+
vibeMode?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const AiChatFooter: ({ onApply, onReject, hideHelp, hideSettings, vibeMode, }: AiChatFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AiChatFooter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AISuggestion } from '../types';
|
|
2
|
+
|
|
3
|
+
type AiDiffProps = {
|
|
4
|
+
currentSchema: object;
|
|
5
|
+
currentUiSchema: object;
|
|
6
|
+
suggestion: AISuggestion;
|
|
7
|
+
};
|
|
8
|
+
declare const AiDiff: ({ currentSchema, currentUiSchema, suggestion, }: AiDiffProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AiDiff;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type AiSettingsDialogProps = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
hideVibeMode?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const AiSettingsDialog: ({ visible, onClose, hideVibeMode, }: AiSettingsDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AiSettingsDialog;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AIProvider } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const defaultGenerationPrompt = "\n## Role\nYou are an advanced assistant for a form builder application based on RJSF and JSON Schema draft 07. Your task is to analyze user requests and generate the corresponding JSON schema and UI schema in a single step.\n\n## Input Format\n- `<FORM>`: Contains the current state of the schema and uiSchema (both JSON objects) for reference.\n- `<SPEC>`: Contains a comprehensive list of available field types with their specifications.\n- `<REQ>`: Contains the user's request for creating or modifying the form.\n\n## Response Format\nYou MUST respond with a JSON object containing the `schema` and `uiSchema`, structured as follows:\n\n{\n \"schema\": {},\n \"uiSchema\": {}\n}\n\n- If the request is irrelevant or cannot be fulfilled, respond with a JSON object containing an `error` field:\n\n{\n \"error\": \"Explanation of why the request could not be fulfilled\"\n}\n\n- The response MUST be a **plain JSON object** without any additional text, formatting, or code blocks.\n\n## Process\n1. **Field Type Detection**: Analyze `<REQ>` to identify the necessary field types.\n2. **Schema Generation**: Generate the `schema` and `uiSchema` based on the detected field types and user request, using the specifications in `<SPEC>`.\n\n## Rules\n- Only include fields and properties explicitly requested in `<REQ>` and defined in `<SPEC>`.\n- Follow the structure and properties defined in `<SPEC>` strictly. Be careful to not mix things up between different field types.\n- If a field type or property is not in `<SPEC>`, exclude it entirely. \n- Note that not all field types require a `ui:widget` or `ui:field` property (e.g. number or integer fields don't), only include them if they are explicitly specified in the defaults in `<SPEC>` for that field type.\n- If the request is ambiguous or cannot be fulfilled, provide an `error` object.\n- Do not include standard JSON Schema properties or RJSF extensions unless explicitly listed in `<SPEC>`.\n- Always keep or use a standard object as form root.\n\n## Available Field Types\n<SPEC>\n\n## Example\n\n**Input**:\n<REQ>Create a form with a text field for the name and an email field that is required</REQ>\n\n**Response**:\n{\n \"schema\": {\n \"title\": \"New Form\",\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"title\": \"Name\"\n },\n \"email\": {\n \"type\": \"string\",\n \"title\": \"Email\"\n }\n },\n \"required\": [\"email\"]\n },\n \"uiSchema\": {\n \"name\": {\n \"ui:widget\": \"text\"\n },\n \"email\": {\n \"ui:widget\": \"text\"\n }\n }\n}\n";
|
|
4
|
+
export declare const defaultProviders: Record<string, AIProvider>;
|
package/dist/exposed.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SetStateAction } from 'react';
|
|
|
2
2
|
import { RJSFSchema } from '@rjsf/utils';
|
|
3
3
|
import { FormuleContextProps } from './types';
|
|
4
4
|
|
|
5
|
-
export declare const FormuleContext: ({ children, customFieldTypes, customFields, customWidgets, customPublishedFields, customPublishedWidgets, customFunctions, theme, separator, errorBoundary, synchronizeState, transformSchema, }: FormuleContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const FormuleContext: ({ children, customFieldTypes, customFields, customWidgets, customPublishedFields, customPublishedWidgets, customFunctions, theme, separator, errorBoundary, synchronizeState, transformSchema, ai, }: FormuleContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const FormuleForm: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const initFormuleSchema: (data?: RJSFSchema, title?: string, description?: string) => void;
|
|
8
8
|
export declare const getFormuleState: () => {
|
package/dist/forms/Form.d.ts
CHANGED
|
@@ -34,12 +34,14 @@ declare namespace RJSFForm {
|
|
|
34
34
|
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
35
|
let validate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
36
36
|
let formContext: PropTypes.Requireable<object>;
|
|
37
|
+
let fields: PropTypes.Requireable<object>;
|
|
37
38
|
let widgets: PropTypes.Requireable<object>;
|
|
38
39
|
let mode: PropTypes.Requireable<string>;
|
|
39
40
|
let readonly: PropTypes.Requireable<boolean>;
|
|
40
41
|
let className: PropTypes.Requireable<string>;
|
|
41
42
|
let liveValidate: PropTypes.Requireable<boolean>;
|
|
42
43
|
let showErrorList: PropTypes.Requireable<boolean>;
|
|
44
|
+
let tagName: PropTypes.Requireable<string>;
|
|
43
45
|
let FieldTemplate: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
44
46
|
let ObjectFieldTemplate: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
45
47
|
let ArrayFieldTemplate: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export default CodeEditorField;
|
|
2
|
-
declare function CodeEditorField({ formData, onChange,
|
|
2
|
+
declare function CodeEditorField({ formData, onChange, uiSchema, readonly }: {
|
|
3
3
|
formData: any;
|
|
4
4
|
onChange: any;
|
|
5
|
-
schema: any;
|
|
6
5
|
uiSchema: any;
|
|
7
6
|
readonly: any;
|
|
8
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default MaskedInput;
|
|
2
|
-
declare function MaskedInput({ id, mask, pattern, name, onBlur, onChange, onFocus, onPressEnter, placeholder, buttons, value, disabled, message, convertToUppercase, }: {
|
|
2
|
+
declare function MaskedInput({ id, mask, pattern, name, onBlur, onChange, onFocus, onPressEnter, placeholder, buttons, value, disabled, message, convertToUppercase, autofillInfo, }: {
|
|
3
3
|
id: any;
|
|
4
4
|
mask: any;
|
|
5
5
|
pattern: any;
|
|
@@ -14,4 +14,5 @@ declare function MaskedInput({ id, mask, pattern, name, onBlur, onChange, onFocu
|
|
|
14
14
|
disabled: any;
|
|
15
15
|
message: any;
|
|
16
16
|
convertToUppercase: any;
|
|
17
|
+
autofillInfo: any;
|
|
17
18
|
}): import("react/jsx-runtime").JSX.Element;
|