@dappworks/kit 0.4.63 → 0.4.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/{PromiseState-2a8c856c.d.ts → PromiseState-phP8daDG.d.ts} +2 -2
  2. package/dist/{chunk-CO3IV6BN.mjs → chunk-52OE5FHP.mjs} +9 -13
  3. package/dist/chunk-52OE5FHP.mjs.map +1 -0
  4. package/dist/{chunk-G55EHFDV.mjs → chunk-7FI42NGB.mjs} +5 -9
  5. package/dist/chunk-7FI42NGB.mjs.map +1 -0
  6. package/dist/chunk-7LQSAVH2.mjs +46 -0
  7. package/dist/chunk-7LQSAVH2.mjs.map +1 -0
  8. package/dist/{chunk-FOR424HO.mjs → chunk-AIZ7XDNV.mjs} +16 -19
  9. package/dist/chunk-AIZ7XDNV.mjs.map +1 -0
  10. package/dist/{chunk-5Z72MRKS.mjs → chunk-CDOZMM72.mjs} +9 -24
  11. package/dist/chunk-CDOZMM72.mjs.map +1 -0
  12. package/dist/{chunk-AJ6UVJXP.mjs → chunk-IKFUALQ2.mjs} +76 -98
  13. package/dist/chunk-IKFUALQ2.mjs.map +1 -0
  14. package/dist/chunk-J4DZJDMK.mjs +5 -5
  15. package/dist/chunk-J4DZJDMK.mjs.map +1 -1
  16. package/dist/{chunk-7UR5JQZB.mjs → chunk-O3TH7DXC.mjs} +10 -16
  17. package/dist/chunk-O3TH7DXC.mjs.map +1 -0
  18. package/dist/chunk-OCLML5CM.mjs +9 -0
  19. package/dist/chunk-OCLML5CM.mjs.map +1 -0
  20. package/dist/chunk-ONVPCAMQ.mjs +4 -4
  21. package/dist/chunk-ONVPCAMQ.mjs.map +1 -1
  22. package/dist/{chunk-74WDT7TZ.mjs → chunk-QO5RPRUY.mjs} +11 -24
  23. package/dist/chunk-QO5RPRUY.mjs.map +1 -0
  24. package/dist/{chunk-5E65QCNB.mjs → chunk-R4SQKVDQ.mjs} +3 -11
  25. package/dist/chunk-R4SQKVDQ.mjs.map +1 -0
  26. package/dist/{chunk-HRWHDF2F.mjs → chunk-XJMRAPHI.mjs} +13 -14
  27. package/dist/chunk-XJMRAPHI.mjs.map +1 -0
  28. package/dist/dev.d.mts +1 -1
  29. package/dist/dev.mjs +40 -66
  30. package/dist/dev.mjs.map +1 -1
  31. package/dist/experimental.d.mts +5 -3
  32. package/dist/experimental.mjs +17 -35
  33. package/dist/experimental.mjs.map +1 -1
  34. package/dist/form.d.mts +5 -5
  35. package/dist/form.mjs +94 -198
  36. package/dist/form.mjs.map +1 -1
  37. package/dist/index.d.mts +14 -9
  38. package/dist/index.mjs +27 -71
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/inspector.d.mts +1 -1
  41. package/dist/inspector.mjs +6 -7
  42. package/dist/inspector.mjs.map +1 -1
  43. package/dist/jsontable.d.mts +2 -2
  44. package/dist/jsontable.mjs +10 -14
  45. package/dist/jsontable.mjs.map +1 -1
  46. package/dist/metrics.d.mts +1 -1
  47. package/dist/metrics.mjs +27 -64
  48. package/dist/metrics.mjs.map +1 -1
  49. package/dist/plugins.d.mts +2 -2
  50. package/dist/plugins.mjs +20 -46
  51. package/dist/plugins.mjs.map +1 -1
  52. package/dist/{root-766ae985.d.ts → root-C3lZnoCI.d.ts} +1 -1
  53. package/dist/ui.mjs +12 -23
  54. package/dist/ui.mjs.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/chunk-5E65QCNB.mjs.map +0 -1
  57. package/dist/chunk-5Z72MRKS.mjs.map +0 -1
  58. package/dist/chunk-74WDT7TZ.mjs.map +0 -1
  59. package/dist/chunk-7UR5JQZB.mjs.map +0 -1
  60. package/dist/chunk-AJ6UVJXP.mjs.map +0 -1
  61. package/dist/chunk-CO3IV6BN.mjs.map +0 -1
  62. package/dist/chunk-DUK5IHQE.mjs +0 -8453
  63. package/dist/chunk-DUK5IHQE.mjs.map +0 -1
  64. package/dist/chunk-FOR424HO.mjs.map +0 -1
  65. package/dist/chunk-G55EHFDV.mjs.map +0 -1
  66. package/dist/chunk-HRWHDF2F.mjs.map +0 -1
  67. package/dist/chunk-SXQEYWUP.mjs +0 -13
  68. package/dist/chunk-SXQEYWUP.mjs.map +0 -1
  69. /package/dist/{PaginationState-c19e621a.d.ts → PaginationState-Bmrrw0ky.d.ts} +0 -0
package/dist/form.mjs CHANGED
@@ -1,45 +1,23 @@
1
- import {
2
- JSONEditor
3
- } from "./chunk-7UR5JQZB.mjs";
4
- import {
5
- helper
6
- } from "./chunk-CO3IV6BN.mjs";
7
- import {
8
- PaginationState
9
- } from "./chunk-ONVPCAMQ.mjs";
10
- import {
11
- useStore
12
- } from "./chunk-SXQEYWUP.mjs";
13
- import {
14
- RootStore
15
- } from "./chunk-HRWHDF2F.mjs";
16
- import {
17
- lodash_exports
18
- } from "./chunk-DUK5IHQE.mjs";
19
- import {
20
- cn
21
- } from "./chunk-FOR424HO.mjs";
22
- import {
23
- __objRest,
24
- __spreadProps,
25
- __spreadValues
26
- } from "./chunk-5E65QCNB.mjs";
1
+ export { JSONEditor } from './chunk-O3TH7DXC.mjs';
2
+ import { helper } from './chunk-52OE5FHP.mjs';
3
+ export { PaginationState } from './chunk-ONVPCAMQ.mjs';
4
+ import { useStore } from './chunk-OCLML5CM.mjs';
5
+ import { RootStore } from './chunk-XJMRAPHI.mjs';
6
+ import { _ } from './chunk-7LQSAVH2.mjs';
7
+ import { cn } from './chunk-AIZ7XDNV.mjs';
8
+ import { __objRest, __spreadValues, __spreadProps } from './chunk-R4SQKVDQ.mjs';
9
+ import React7, { useEffect, useMemo, useState, createRef } from 'react';
10
+ import { Modal, ModalContent, ModalHeader, ModalBody, Button, Checkbox, Input, Card, Tabs, Tab } from '@nextui-org/react';
11
+ import { ChevronUp, ChevronDown, Check } from 'lucide-react';
12
+ import MonacoEditor from '@monaco-editor/react';
13
+ import validator from '@rjsf/validator-ajv8';
14
+ import { makeAutoObservable, makeObservable, computed, observable, action, toJS } from 'mobx';
15
+ import Form from '@rjsf/core';
16
+ import * as Utils from '@rjsf/utils';
17
+ import { observer, useLocalObservable } from 'mobx-react-lite';
18
+ import Draggable from 'react-draggable';
19
+ import EventEmitter from 'events';
27
20
 
28
- // components/JSONForm/index.tsx
29
- import React14 from "react";
30
-
31
- // components/JSONForm/Layouts/gridLayout.tsx
32
- import React10, { useEffect } from "react";
33
- import { Card } from "@nextui-org/react";
34
-
35
- // components/JSONForm/Layouts/format.tsx
36
- import React6, { useState as useState2 } from "react";
37
- import { Button as Button2 } from "@nextui-org/react";
38
-
39
- // components/JSONFormWidgets/CheckboxWidget/index.tsx
40
- import React2 from "react";
41
- import { Checkbox } from "@nextui-org/react";
42
- import { Check } from "lucide-react";
43
21
  function CheckboxWidget({
44
22
  onChange,
45
23
  options,
@@ -51,7 +29,7 @@ function CheckboxWidget({
51
29
  }) {
52
30
  const { size = "sm", color = "primary" } = options;
53
31
  const { description } = schema;
54
- return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
32
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(
55
33
  Checkbox,
56
34
  {
57
35
  id,
@@ -64,7 +42,7 @@ function CheckboxWidget({
64
42
  },
65
43
  defaultSelected: value,
66
44
  isDisabled: disabled,
67
- icon: /* @__PURE__ */ React2.createElement(Check, { className: "bg-white dark:bg-black" }),
45
+ icon: /* @__PURE__ */ React7.createElement(Check, { className: "bg-white dark:bg-black" }),
68
46
  color,
69
47
  size,
70
48
  onChange: (e) => {
@@ -73,13 +51,9 @@ function CheckboxWidget({
73
51
  }
74
52
  },
75
53
  label
76
- ), description && /* @__PURE__ */ React2.createElement("div", { className: "mt-1 text-xs text-[#A1A1A9] dark:text-[#717179]" }, description));
54
+ ), description && /* @__PURE__ */ React7.createElement("div", { className: "mt-1 text-xs text-[#A1A1A9] dark:text-[#717179]" }, description));
77
55
  }
78
56
  var CheckboxWidget_default = CheckboxWidget;
79
-
80
- // components/JSONFormWidgets/InputWidget/index.tsx
81
- import React3 from "react";
82
- import { Input } from "@nextui-org/react";
83
57
  function InputWidget(props) {
84
58
  const {
85
59
  onChange,
@@ -93,7 +67,7 @@ function InputWidget(props) {
93
67
  } = props;
94
68
  const { className, labelPlacement = "inside", size = "sm" } = options;
95
69
  const placeholder = props.placeholder || options.placeholder;
96
- return /* @__PURE__ */ React3.createElement(
70
+ return /* @__PURE__ */ React7.createElement(
97
71
  Input,
98
72
  {
99
73
  id,
@@ -113,16 +87,13 @@ function InputWidget(props) {
113
87
  );
114
88
  }
115
89
  var InputWidget_default = InputWidget;
116
-
117
- // components/JSONFormWidgets/SelectWidget/index.tsx
118
- import React4 from "react";
119
90
  function SelectWidget(props) {
120
91
  const { onChange, options, id, label, value, required, disabled, schema } = props;
121
92
  const { className, labelPlacement = "top", placeholder = "Select an option" } = options;
122
93
  const { selectOptions = [], description } = schema;
123
94
  const labelText = label == null ? void 0 : label.trim();
124
95
  const placeholderText = props.placeholder || placeholder;
125
- return /* @__PURE__ */ React4.createElement("div", { className: cn("", className) }, /* @__PURE__ */ React4.createElement(
96
+ return /* @__PURE__ */ React7.createElement("div", { className: cn("", className) }, /* @__PURE__ */ React7.createElement(
126
97
  "div",
127
98
  {
128
99
  className: cn("flex flex-col", {
@@ -130,7 +101,7 @@ function SelectWidget(props) {
130
101
  }),
131
102
  id
132
103
  },
133
- labelText && /* @__PURE__ */ React4.createElement(
104
+ labelText && /* @__PURE__ */ React7.createElement(
134
105
  "label",
135
106
  {
136
107
  className: cn("flex items-center text-sm whitespace-nowrap", {
@@ -139,32 +110,27 @@ function SelectWidget(props) {
139
110
  })
140
111
  },
141
112
  labelText,
142
- required && /* @__PURE__ */ React4.createElement("span", { className: "ml-[2px] font-bold text-red-600" }, "*")
113
+ required && /* @__PURE__ */ React7.createElement("span", { className: "ml-[2px] font-bold text-red-600" }, "*")
143
114
  ),
144
- /* @__PURE__ */ React4.createElement("select", { className: "w-full p-3 text-sm rounded-md bg-[#F4F4F5] dark:bg-[#27272A]", defaultValue: value, disabled, onChange: (event) => onChange(event.target.value) }, /* @__PURE__ */ React4.createElement("option", { value: "", disabled: true, selected: true }, placeholderText), selectOptions.map((item) => {
145
- return /* @__PURE__ */ React4.createElement("option", { key: item.value, value: item.value }, item.label);
115
+ /* @__PURE__ */ React7.createElement("select", { className: "w-full p-3 text-sm rounded-md bg-[#F4F4F5] dark:bg-[#27272A]", defaultValue: value, disabled, onChange: (event) => onChange(event.target.value) }, /* @__PURE__ */ React7.createElement("option", { value: "", disabled: true, selected: true }, placeholderText), selectOptions.map((item) => {
116
+ return /* @__PURE__ */ React7.createElement("option", { key: item.value, value: item.value }, item.label);
146
117
  }))
147
- ), description && /* @__PURE__ */ React4.createElement("div", { className: "mt-1 text-xs text-[#A1A1A9] dark:text-[#717179]" }, description));
118
+ ), description && /* @__PURE__ */ React7.createElement("div", { className: "mt-1 text-xs text-[#A1A1A9] dark:text-[#717179]" }, description));
148
119
  }
149
120
  var SelectWidget_default = SelectWidget;
150
-
151
- // components/JSONFormWidgets/EditorWidget/index.tsx
152
- import React5, { useState } from "react";
153
- import MonacoEditor from "@monaco-editor/react";
154
- import { Button } from "@nextui-org/react";
155
121
  var EditorWidget = ({ id, label, options = {}, value, required, schema, disabled, onChange }) => {
156
122
  const { editorHeight = "200px", readOnly = false, language = "json", jsonStrSpace, languageSelectorOptions = [], onChangeLanguage, onRun, onMount } = options;
157
123
  const [selectedLanguage, setSelectedLanguage] = useState("");
158
124
  const [runLoading, setRunLoading] = useState(false);
159
125
  const showLanguageSelector = languageSelectorOptions.length > 0;
160
- return /* @__PURE__ */ React5.createElement("div", { className: "flex flex-col relative" }, /* @__PURE__ */ React5.createElement("div", { className: cn("flex justify-between items-center", { "mb-[10px]": label.trim() || showLanguageSelector }) }, label && /* @__PURE__ */ React5.createElement(
126
+ return /* @__PURE__ */ React7.createElement("div", { className: "flex flex-col relative" }, /* @__PURE__ */ React7.createElement("div", { className: cn("flex justify-between items-center", { "mb-[10px]": label.trim() || showLanguageSelector }) }, label && /* @__PURE__ */ React7.createElement(
161
127
  "label",
162
128
  {
163
129
  className: "mr-2 flex items-center text-sm"
164
130
  },
165
131
  label,
166
- required && /* @__PURE__ */ React5.createElement("span", { className: "font-bold text-red-600" }, "*")
167
- ), showLanguageSelector && /* @__PURE__ */ React5.createElement(
132
+ required && /* @__PURE__ */ React7.createElement("span", { className: "font-bold text-red-600" }, "*")
133
+ ), showLanguageSelector && /* @__PURE__ */ React7.createElement(
168
134
  "select",
169
135
  {
170
136
  className: "w-full p-3 text-sm rounded-md bg-[#F4F4F5] dark:bg-[#27272A]",
@@ -176,9 +142,9 @@ var EditorWidget = ({ id, label, options = {}, value, required, schema, disabled
176
142
  }
177
143
  },
178
144
  languageSelectorOptions.map((item) => {
179
- return /* @__PURE__ */ React5.createElement("option", { key: item.value, value: item.value }, item.label);
145
+ return /* @__PURE__ */ React7.createElement("option", { key: item.value, value: item.value }, item.label);
180
146
  })
181
- )), schema.description && /* @__PURE__ */ React5.createElement("div", { className: "mb-2 text-xs text-[#A1A1A9]" }, schema.description), /* @__PURE__ */ React5.createElement("div", { className: "rounded-lg overflow-hidden" }, /* @__PURE__ */ React5.createElement(
147
+ )), schema.description && /* @__PURE__ */ React7.createElement("div", { className: "mb-2 text-xs text-[#A1A1A9]" }, schema.description), /* @__PURE__ */ React7.createElement("div", { className: "rounded-lg overflow-hidden" }, /* @__PURE__ */ React7.createElement(
182
148
  MonacoEditor,
183
149
  {
184
150
  options: { readOnly: readOnly || disabled, minimap: { enabled: false } },
@@ -195,7 +161,7 @@ var EditorWidget = ({ id, label, options = {}, value, required, schema, disabled
195
161
  }
196
162
  }
197
163
  }
198
- )), onRun && /* @__PURE__ */ React5.createElement(
164
+ )), onRun && /* @__PURE__ */ React7.createElement(
199
165
  Button,
200
166
  {
201
167
  className: "absolute bottom-2 right-4",
@@ -211,11 +177,6 @@ var EditorWidget = ({ id, label, options = {}, value, required, schema, disabled
211
177
  ));
212
178
  };
213
179
  var EditorWidget_default = EditorWidget;
214
-
215
- // store/standard/JSONSchemaState.ts
216
- import { createRef } from "react";
217
- import validator from "@rjsf/validator-ajv8";
218
- import { action, computed, makeObservable, observable, toJS } from "mobx";
219
180
  var JSONSchemaFormState = class {
220
181
  constructor(args = {}) {
221
182
  this.value = new JSONValue();
@@ -417,9 +378,9 @@ var getFormState = (props, formLayout = {}) => {
417
378
  };
418
379
  var BatchSubmitButton = ({ formStates, onSubmit, buttonProps }) => {
419
380
  const _a = buttonProps || {}, { className, onClick, children, isLoading, onBatchSubmit } = _a, rest = __objRest(_a, ["className", "onClick", "children", "isLoading", "onBatchSubmit"]);
420
- const [loading, setLoading] = useState2(false);
421
- return /* @__PURE__ */ React6.createElement(
422
- Button2,
381
+ const [loading, setLoading] = useState(false);
382
+ return /* @__PURE__ */ React7.createElement(
383
+ Button,
423
384
  __spreadValues({
424
385
  className: cn("mt-4 ml-auto", className),
425
386
  size: "sm",
@@ -459,9 +420,9 @@ var BatchSubmitButton = ({ formStates, onSubmit, buttonProps }) => {
459
420
  };
460
421
  var SubmitButton = ({ formKey, formState, buttonProps }) => {
461
422
  const _a = buttonProps || {}, { className, onClick, children, isLoading, onAfterSubmit } = _a, rest = __objRest(_a, ["className", "onClick", "children", "isLoading", "onAfterSubmit"]);
462
- const [loading, setLoading] = useState2(false);
463
- return /* @__PURE__ */ React6.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React6.createElement(
464
- Button2,
423
+ const [loading, setLoading] = useState(false);
424
+ return /* @__PURE__ */ React7.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React7.createElement(
425
+ Button,
465
426
  __spreadValues({
466
427
  className: cn("mt-4 ml-auto", className),
467
428
  type: "submit",
@@ -491,14 +452,6 @@ var SubmitButton = ({ formKey, formState, buttonProps }) => {
491
452
  children || "Submit"
492
453
  ));
493
454
  };
494
-
495
- // components/JSONSchemaForm/index.tsx
496
- import React7, { useState as useState3 } from "react";
497
- import { Button as Button3 } from "@nextui-org/react";
498
- import Form from "@rjsf/core";
499
- import * as Utils from "@rjsf/utils";
500
- import { ChevronDown, ChevronUp } from "lucide-react";
501
- import { observer } from "mobx-react-lite";
502
455
  function FieldTemplate(props) {
503
456
  const { id, classNames, label, help, required, description, errors, children, schema, uiSchema } = props;
504
457
  if (uiSchema && uiSchema["ui:widget"] === "hidden") {
@@ -522,7 +475,7 @@ var renderLayout = (layout, fields, n = 1) => {
522
475
  });
523
476
  };
524
477
  var ObjectFieldTemplate = ({ title, idSchema: { $id }, properties, uiSchema: { layout } }) => {
525
- const [opened, setOpened] = useState3(false);
478
+ const [opened, setOpened] = useState(false);
526
479
  const fields = Object.fromEntries(properties.map((item) => [item.name, item.content]));
527
480
  return /* @__PURE__ */ React7.createElement("div", { className: "w-full space-y-2.5" }, $id === "root" ? layout ? renderLayout(layout, fields) : properties.map((element) => {
528
481
  return /* @__PURE__ */ React7.createElement("div", { key: element.content.key }, element.content);
@@ -546,7 +499,7 @@ var SubmitButton2 = ({ uiSchema }) => {
546
499
  if (norender) {
547
500
  return null;
548
501
  }
549
- return /* @__PURE__ */ React7.createElement("div", { className: "flex justify-end" }, /* @__PURE__ */ React7.createElement(Button3, { type: "submit", color: "primary", size: "sm" }, submitText));
502
+ return /* @__PURE__ */ React7.createElement("div", { className: "flex justify-end" }, /* @__PURE__ */ React7.createElement(Button, { type: "submit", color: "primary", size: "sm" }, submitText));
550
503
  };
551
504
  var JSONSchemaForm = observer(({ children, formState }) => {
552
505
  var _a;
@@ -576,9 +529,6 @@ var JSONSchemaForm = observer(({ children, formState }) => {
576
529
  );
577
530
  });
578
531
 
579
- // components/ui/grid/col.tsx
580
- import React8 from "react";
581
-
582
532
  // components/ui/grid/styles.tsx
583
533
  var gridCols = {
584
534
  0: "grid-cols-none",
@@ -702,7 +652,7 @@ var colSpanLg = {
702
652
  };
703
653
 
704
654
  // components/ui/grid/col.tsx
705
- var Col = React8.forwardRef((props, ref) => {
655
+ var Col = React7.forwardRef((props, ref) => {
706
656
  const _a = props, { numColSpan = 1, numColSpanSm, numColSpanMd, numColSpanLg, children, className } = _a, other = __objRest(_a, ["numColSpan", "numColSpanSm", "numColSpanMd", "numColSpanLg", "children", "className"]);
707
657
  const getColSpan = (numColSpan2, colSpanMapping) => {
708
658
  if (!numColSpan2)
@@ -718,13 +668,10 @@ var Col = React8.forwardRef((props, ref) => {
718
668
  const spanLg = getColSpan(numColSpanLg, colSpanLg);
719
669
  return cn(spanBase, spanSm, spanMd, spanLg);
720
670
  };
721
- return /* @__PURE__ */ React8.createElement("div", __spreadValues({ ref, className: cn(getColSpanClassNames(), className) }, other), children);
671
+ return /* @__PURE__ */ React7.createElement("div", __spreadValues({ ref, className: cn(getColSpanClassNames(), className) }, other), children);
722
672
  });
723
673
  Col.displayName = "Col";
724
674
  var col_default = Col;
725
-
726
- // components/ui/grid/grid.tsx
727
- import React9 from "react";
728
675
  var getGridCols = (numCols, gridColsMapping) => {
729
676
  if (!numCols)
730
677
  return "";
@@ -732,14 +679,14 @@ var getGridCols = (numCols, gridColsMapping) => {
732
679
  return "";
733
680
  return gridColsMapping[numCols];
734
681
  };
735
- var Grid = React9.forwardRef((props, ref) => {
682
+ var Grid = React7.forwardRef((props, ref) => {
736
683
  const _a = props, { numItems = 1, numItemsSm, numItemsMd, numItemsLg, children, className } = _a, other = __objRest(_a, ["numItems", "numItemsSm", "numItemsMd", "numItemsLg", "children", "className"]);
737
684
  const colsBase = getGridCols(numItems, gridCols);
738
685
  const colsSm = getGridCols(numItemsSm, gridColsSm);
739
686
  const colsMd = getGridCols(numItemsMd, gridColsMd);
740
687
  const colsLg = getGridCols(numItemsLg, gridColsLg);
741
688
  const colClassNames = cn(colsBase, colsSm, colsMd, colsLg);
742
- return /* @__PURE__ */ React9.createElement("div", __spreadValues({ ref, className: cn("grid", colClassNames, className) }, other), children);
689
+ return /* @__PURE__ */ React7.createElement("div", __spreadValues({ ref, className: cn("grid", colClassNames, className) }, other), children);
743
690
  });
744
691
  Grid.displayName = "Grid";
745
692
  var grid_default = Grid;
@@ -754,64 +701,53 @@ var GridLayout = (props) => {
754
701
  onReady(formStates);
755
702
  }
756
703
  }, [formStates]);
757
- return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(grid_default, { numItems: $gridColumn != null ? $gridColumn : 1, className: "gap-2" }, Object.keys(formStates).map((key) => {
704
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(grid_default, { numItems: $gridColumn != null ? $gridColumn : 1, className: "gap-2" }, Object.keys(formStates).map((key) => {
758
705
  var _a2;
759
706
  const layout = formLayout[key];
760
- return /* @__PURE__ */ React10.createElement(col_default, { numColSpan: (_a2 = layout == null ? void 0 : layout.colSpan) != null ? _a2 : 1, key, id: `form-${key}` }, /* @__PURE__ */ React10.createElement(Card, { className: cn("h-full m-0 p-4 shadow-sm border-1", layout == null ? void 0 : layout.cardCss) }, /* @__PURE__ */ React10.createElement("div", { className: cn("mb-2 font-bold text-center", layout == null ? void 0 : layout.titleBoxCss) }, (layout == null ? void 0 : layout.title) || key), /* @__PURE__ */ React10.createElement(JSONSchemaForm, { formState: formStates[key] }, (layout == null ? void 0 : layout.submitButtonProps) && /* @__PURE__ */ React10.createElement(SubmitButton, { formKey: key, formState: formStates[key], buttonProps: layout.submitButtonProps }))));
761
- })), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React10.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React10.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
707
+ return /* @__PURE__ */ React7.createElement(col_default, { numColSpan: (_a2 = layout == null ? void 0 : layout.colSpan) != null ? _a2 : 1, key, id: `form-${key}` }, /* @__PURE__ */ React7.createElement(Card, { className: cn("h-full m-0 p-4 shadow-sm border-1", layout == null ? void 0 : layout.cardCss) }, /* @__PURE__ */ React7.createElement("div", { className: cn("mb-2 font-bold text-center", layout == null ? void 0 : layout.titleBoxCss) }, (layout == null ? void 0 : layout.title) || key), /* @__PURE__ */ React7.createElement(JSONSchemaForm, { formState: formStates[key] }, (layout == null ? void 0 : layout.submitButtonProps) && /* @__PURE__ */ React7.createElement(SubmitButton, { formKey: key, formState: formStates[key], buttonProps: layout.submitButtonProps }))));
708
+ })), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React7.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React7.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
762
709
  };
763
-
764
- // components/JSONForm/Layouts/listLayout.tsx
765
- import React11, { useEffect as useEffect2, useState as useState4 } from "react";
766
- import { ChevronDown as ChevronDown2, ChevronUp as ChevronUp2 } from "lucide-react";
767
710
  var CollapsibleBox = ({ formKey, title, titleBoxCss, formState, submitButtonProps }) => {
768
- const [opened, setOpened] = useState4(true);
769
- return /* @__PURE__ */ React11.createElement("div", { id: `form-${formKey}` }, /* @__PURE__ */ React11.createElement(
711
+ const [opened, setOpened] = useState(true);
712
+ return /* @__PURE__ */ React7.createElement("div", { id: `form-${formKey}` }, /* @__PURE__ */ React7.createElement(
770
713
  "div",
771
714
  {
772
715
  className: "mt-5 mb-[10px] flex justify-between items-center cursor-pointer border-t-[1px solid #E5E5EA] py-[5px] hover:bg-[#F2F2F7] dark:hover:bg-gray-900",
773
716
  onClick: () => setOpened((o) => !o)
774
717
  },
775
- /* @__PURE__ */ React11.createElement("div", { className: cn("text-gray-900 dark:text-gray-100 font-bold text-base", titleBoxCss) }, title),
776
- opened ? /* @__PURE__ */ React11.createElement(ChevronUp2, null) : /* @__PURE__ */ React11.createElement(ChevronDown2, null)
777
- ), /* @__PURE__ */ React11.createElement("div", { className: cn("mt-2", opened ? "block" : "hidden") }, /* @__PURE__ */ React11.createElement(JSONSchemaForm, { formState }, submitButtonProps && /* @__PURE__ */ React11.createElement(SubmitButton, { formKey, formState, buttonProps: submitButtonProps }))));
718
+ /* @__PURE__ */ React7.createElement("div", { className: cn("text-gray-900 dark:text-gray-100 font-bold text-base", titleBoxCss) }, title),
719
+ opened ? /* @__PURE__ */ React7.createElement(ChevronUp, null) : /* @__PURE__ */ React7.createElement(ChevronDown, null)
720
+ ), /* @__PURE__ */ React7.createElement("div", { className: cn("mt-2", opened ? "block" : "hidden") }, /* @__PURE__ */ React7.createElement(JSONSchemaForm, { formState }, submitButtonProps && /* @__PURE__ */ React7.createElement(SubmitButton, { formKey, formState, buttonProps: submitButtonProps }))));
778
721
  };
779
722
  var ListLayout = (props) => {
780
723
  const { layoutConfig = {}, onBatchSubmit, batchSubmitButtonProps, onReady } = props;
781
- const _a = layoutConfig, { $type } = _a, formLayout = __objRest(_a, ["$type"]);
724
+ const _a = layoutConfig, formLayout = __objRest(_a, ["$type"]);
782
725
  const formStates = getFormState(props, formLayout);
783
- useEffect2(() => {
726
+ useEffect(() => {
784
727
  if (formStates && onReady) {
785
728
  onReady(formStates);
786
729
  }
787
730
  }, [formStates]);
788
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, Object.keys(formStates).map((key) => {
731
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, Object.keys(formStates).map((key) => {
789
732
  const layout = formLayout[key];
790
733
  const formState = formStates[key];
791
- return /* @__PURE__ */ React11.createElement(CollapsibleBox, { key, formKey: key, title: (layout == null ? void 0 : layout.title) || key, titleBoxCss: layout == null ? void 0 : layout.titleBoxCss, formState, submitButtonProps: layout == null ? void 0 : layout.submitButtonProps });
792
- }), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React11.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React11.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
734
+ return /* @__PURE__ */ React7.createElement(CollapsibleBox, { key, formKey: key, title: (layout == null ? void 0 : layout.title) || key, titleBoxCss: layout == null ? void 0 : layout.titleBoxCss, formState, submitButtonProps: layout == null ? void 0 : layout.submitButtonProps });
735
+ }), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React7.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React7.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
793
736
  };
794
-
795
- // components/JSONForm/Layouts/simpleLayout.tsx
796
- import React12, { useEffect as useEffect3 } from "react";
797
737
  var SimpleLayout = (props) => {
798
738
  const { layoutConfig = {}, onBatchSubmit, batchSubmitButtonProps, onReady } = props;
799
- const _a = layoutConfig, { $type } = _a, formLayout = __objRest(_a, ["$type"]);
739
+ const _a = layoutConfig, formLayout = __objRest(_a, ["$type"]);
800
740
  const formStates = getFormState(props, formLayout);
801
- useEffect3(() => {
741
+ useEffect(() => {
802
742
  if (formStates && onReady) {
803
743
  onReady(formStates);
804
744
  }
805
745
  }, [formStates]);
806
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("div", { className: "space-y-2" }, Object.keys(formStates).map((key) => {
746
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("div", { className: "space-y-2" }, Object.keys(formStates).map((key) => {
807
747
  const layout = formLayout[key];
808
- return /* @__PURE__ */ React12.createElement("div", { key, id: `form-${key}` }, /* @__PURE__ */ React12.createElement(JSONSchemaForm, { formState: formStates[key] }, (layout == null ? void 0 : layout.submitButtonProps) && /* @__PURE__ */ React12.createElement(SubmitButton, { formKey: key, formState: formStates[key], buttonProps: layout.submitButtonProps })));
809
- })), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React12.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React12.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
748
+ return /* @__PURE__ */ React7.createElement("div", { key, id: `form-${key}` }, /* @__PURE__ */ React7.createElement(JSONSchemaForm, { formState: formStates[key] }, (layout == null ? void 0 : layout.submitButtonProps) && /* @__PURE__ */ React7.createElement(SubmitButton, { formKey: key, formState: formStates[key], buttonProps: layout.submitButtonProps })));
749
+ })), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React7.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React7.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
810
750
  };
811
-
812
- // components/JSONForm/Layouts/tabLayout.tsx
813
- import React13, { useEffect as useEffect4, useMemo, useState as useState5 } from "react";
814
- import { Tab, Tabs } from "@nextui-org/react";
815
751
  var TabLayout = (props) => {
816
752
  const { layoutConfig = {}, onBatchSubmit, batchSubmitButtonProps, onReady } = props;
817
753
  const _a = layoutConfig, {
@@ -825,13 +761,13 @@ var TabLayout = (props) => {
825
761
  ]);
826
762
  const formStates = useMemo(() => getFormState(props, formLayout), [props.formData, props.formConfig, props.layoutConfig]);
827
763
  const formKeys = Object.keys(formStates);
828
- const [selectedTab, setSelectedTab] = useState5(formKeys[0] || "");
829
- useEffect4(() => {
764
+ const [selectedTab, setSelectedTab] = useState(formKeys[0] || "");
765
+ useEffect(() => {
830
766
  if (formStates && onReady) {
831
767
  onReady(formStates);
832
768
  }
833
769
  }, [formStates]);
834
- return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
770
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(
835
771
  Tabs,
836
772
  __spreadProps(__spreadValues({}, $tabsProps), {
837
773
  selectedKey: selectedTab,
@@ -841,20 +777,20 @@ var TabLayout = (props) => {
841
777
  }),
842
778
  formKeys.map((key) => {
843
779
  const layout = formLayout[key];
844
- return /* @__PURE__ */ React13.createElement(Tab, { id: `form-${key}-tab-menu`, key, title: /* @__PURE__ */ React13.createElement("div", { className: layout == null ? void 0 : layout.titleBoxCss }, (layout == null ? void 0 : layout.title) || key) });
780
+ return /* @__PURE__ */ React7.createElement(Tab, { id: `form-${key}-tab-menu`, key, title: /* @__PURE__ */ React7.createElement("div", { className: layout == null ? void 0 : layout.titleBoxCss }, (layout == null ? void 0 : layout.title) || key) });
845
781
  })
846
782
  ), formKeys.map((key) => {
847
783
  const layout = formLayout[key];
848
- return /* @__PURE__ */ React13.createElement(
784
+ return /* @__PURE__ */ React7.createElement(
849
785
  "div",
850
786
  {
851
787
  key,
852
788
  id: `form-${key}-tab-content`,
853
789
  className: cn("mt-4", selectedTab === key ? "" : "hidden")
854
790
  },
855
- /* @__PURE__ */ React13.createElement(JSONSchemaForm, { formState: formStates[key] }, (layout == null ? void 0 : layout.submitButtonProps) && /* @__PURE__ */ React13.createElement(SubmitButton, { formKey: key, formState: formStates[key], buttonProps: layout.submitButtonProps }))
791
+ /* @__PURE__ */ React7.createElement(JSONSchemaForm, { formState: formStates[key] }, (layout == null ? void 0 : layout.submitButtonProps) && /* @__PURE__ */ React7.createElement(SubmitButton, { formKey: key, formState: formStates[key], buttonProps: layout.submitButtonProps }))
856
792
  );
857
- }), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React13.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React13.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
793
+ }), (onBatchSubmit || (batchSubmitButtonProps == null ? void 0 : batchSubmitButtonProps.onBatchSubmit)) && /* @__PURE__ */ React7.createElement("div", { className: "w-full flex" }, /* @__PURE__ */ React7.createElement(BatchSubmitButton, { formStates, onSubmit: onBatchSubmit, buttonProps: batchSubmitButtonProps })));
858
794
  };
859
795
 
860
796
  // components/JSONForm/index.tsx
@@ -868,32 +804,21 @@ var JSONForm = (props) => {
868
804
  var _a;
869
805
  const type = ((_a = props.layoutConfig) == null ? void 0 : _a.$type) || "SimpleLayout";
870
806
  const Component = components[type];
871
- return /* @__PURE__ */ React14.createElement(
807
+ return /* @__PURE__ */ React7.createElement(
872
808
  "div",
873
809
  { className: props.className },
874
810
  // @ts-ignore
875
- /* @__PURE__ */ React14.createElement(Component, __spreadValues({}, props))
811
+ /* @__PURE__ */ React7.createElement(Component, __spreadValues({}, props))
876
812
  );
877
813
  };
878
-
879
- // components/JSONFormWidgets/TextareaWidget/index.tsx
880
- import React15 from "react";
881
- import { Textarea } from "@nextui-org/react";
882
-
883
- // module/ComplexFormModal/Provider.tsx
884
- import { Modal, ModalBody, ModalContent, ModalHeader } from "@nextui-org/react";
885
- import { observer as observer2, useLocalObservable } from "mobx-react-lite";
886
- import Draggable from "react-draggable";
887
- import { useEffect as useEffect5, useMemo as useMemo2 } from "react";
888
- import React16 from "react";
889
- var JSONViewModal = observer2(() => {
814
+ var JSONViewModal = observer(() => {
890
815
  const rootStore = useStore();
891
816
  const complexFormModal = rootStore.get(FormPlugin);
892
817
  const { formData, isOpen } = complexFormModal;
893
818
  const store = useLocalObservable(() => ({
894
819
  isMobile: false
895
820
  }));
896
- useEffect5(() => {
821
+ useEffect(() => {
897
822
  const handleResize = () => {
898
823
  store.isMobile = window.innerWidth < 991;
899
824
  };
@@ -904,7 +829,7 @@ var JSONViewModal = observer2(() => {
904
829
  };
905
830
  }, []);
906
831
  const isMobile = store.isMobile;
907
- const ModalMemo = useMemo2(() => {
832
+ const ModalMemo = useMemo(() => {
908
833
  if (!formData) {
909
834
  return null;
910
835
  }
@@ -917,7 +842,7 @@ var JSONViewModal = observer2(() => {
917
842
  }
918
843
  });
919
844
  }
920
- return /* @__PURE__ */ React16.createElement(
845
+ return /* @__PURE__ */ React7.createElement(
921
846
  Modal,
922
847
  {
923
848
  className: complexFormModal.className,
@@ -932,7 +857,7 @@ var JSONViewModal = observer2(() => {
932
857
  }
933
858
  }
934
859
  },
935
- /* @__PURE__ */ React16.createElement("div", { className: "z-50 fixed top-0 left-0 w-screen h-screen" }, /* @__PURE__ */ React16.createElement(Draggable, { handle: ".draggable-handle" }, /* @__PURE__ */ React16.createElement(ModalContent, null, complexFormModal.title && /* @__PURE__ */ React16.createElement(ModalHeader, { className: "flex flex-col gap-1 draggable-handle cursor-move" }, complexFormModal.title), /* @__PURE__ */ React16.createElement(ModalBody, { className: cn("max-h-[90vh] overflow-auto") }, /* @__PURE__ */ React16.createElement(
860
+ /* @__PURE__ */ React7.createElement("div", { className: "z-50 fixed top-0 left-0 w-screen h-screen" }, /* @__PURE__ */ React7.createElement(Draggable, { handle: ".draggable-handle" }, /* @__PURE__ */ React7.createElement(ModalContent, null, complexFormModal.title && /* @__PURE__ */ React7.createElement(ModalHeader, { className: "flex flex-col gap-1 draggable-handle cursor-move" }, complexFormModal.title), /* @__PURE__ */ React7.createElement(ModalBody, { className: cn("max-h-[90vh] overflow-auto") }, /* @__PURE__ */ React7.createElement(
936
861
  JSONForm,
937
862
  {
938
863
  formData,
@@ -952,15 +877,10 @@ var JSONViewModal = observer2(() => {
952
877
  return ModalMemo;
953
878
  });
954
879
  var Provider_default = JSONViewModal;
955
-
956
- // module/ComplexFormModal/index.tsx
957
- import EventEmitter from "events";
958
- import { makeAutoObservable } from "mobx";
959
- import React17 from "react";
960
880
  var FormPlugin = class {
961
881
  constructor(args) {
962
882
  this.sid = "FormPlugin";
963
- this.provider = () => /* @__PURE__ */ React17.createElement(Provider_default, null);
883
+ this.provider = () => /* @__PURE__ */ React7.createElement(Provider_default, null);
964
884
  this.isOpen = false;
965
885
  this.title = "";
966
886
  this.className = "";
@@ -1012,26 +932,15 @@ async function getComplexFormData(v) {
1012
932
  });
1013
933
  });
1014
934
  }
1015
-
1016
- // module/FormModal/index.tsx
1017
- import EventEmitter2 from "events";
1018
- import React19 from "react";
1019
- import { makeAutoObservable as makeAutoObservable2 } from "mobx";
1020
-
1021
- // module/FormModal/Provider.tsx
1022
- import { Modal as Modal2, ModalBody as ModalBody2, ModalContent as ModalContent2, ModalHeader as ModalHeader2 } from "@nextui-org/react";
1023
- import { observer as observer3 } from "mobx-react-lite";
1024
- import Draggable2 from "react-draggable";
1025
- import React18 from "react";
1026
- var JSONFormModal = observer3(() => {
935
+ var JSONFormModal = observer(() => {
1027
936
  const rootStore = useStore();
1028
937
  const formModal = rootStore.get(FormModalStore);
1029
938
  const { form, closeOnOverlayClick } = formModal;
1030
939
  if (!form) {
1031
940
  return null;
1032
941
  }
1033
- return /* @__PURE__ */ React18.createElement(
1034
- Modal2,
942
+ return /* @__PURE__ */ React7.createElement(
943
+ Modal,
1035
944
  {
1036
945
  className: formModal.className,
1037
946
  classNames: formModal.classNames,
@@ -1045,7 +954,7 @@ var JSONFormModal = observer3(() => {
1045
954
  }
1046
955
  }
1047
956
  },
1048
- /* @__PURE__ */ React18.createElement("div", { className: "z-50 fixed top-0 left-0 w-screen h-screen flex items-center justify-center" }, /* @__PURE__ */ React18.createElement(Draggable2, { handle: ".draggable-handle" }, /* @__PURE__ */ React18.createElement(ModalContent2, null, formModal.title && /* @__PURE__ */ React18.createElement(ModalHeader2, { className: "flex flex-col gap-1 draggable-handle cursor-move" }, formModal.title), /* @__PURE__ */ React18.createElement(ModalBody2, { className: "max-h-[90vh] overflow-auto" }, /* @__PURE__ */ React18.createElement(JSONSchemaForm, { formState: form })))))
957
+ /* @__PURE__ */ React7.createElement("div", { className: "z-50 fixed top-0 left-0 w-screen h-screen flex items-center justify-center" }, /* @__PURE__ */ React7.createElement(Draggable, { handle: ".draggable-handle" }, /* @__PURE__ */ React7.createElement(ModalContent, null, formModal.title && /* @__PURE__ */ React7.createElement(ModalHeader, { className: "flex flex-col gap-1 draggable-handle cursor-move" }, formModal.title), /* @__PURE__ */ React7.createElement(ModalBody, { className: "max-h-[90vh] overflow-auto" }, /* @__PURE__ */ React7.createElement(JSONSchemaForm, { formState: form })))))
1049
958
  );
1050
959
  });
1051
960
  var Provider_default2 = JSONFormModal;
@@ -1054,7 +963,7 @@ var Provider_default2 = JSONFormModal;
1054
963
  var FormModalStore = class {
1055
964
  constructor(args) {
1056
965
  this.sid = "FormModalStore";
1057
- this.provider = () => /* @__PURE__ */ React19.createElement(Provider_default2, null);
966
+ this.provider = () => /* @__PURE__ */ React7.createElement(Provider_default2, null);
1058
967
  this.isOpen = false;
1059
968
  this.title = "";
1060
969
  //@ts-ignore
@@ -1063,9 +972,9 @@ var FormModalStore = class {
1063
972
  this.modalSize = "md";
1064
973
  this.scrollBehavior = "normal";
1065
974
  this.closeOnOverlayClick = false;
1066
- this.event = new EventEmitter2();
975
+ this.event = new EventEmitter();
1067
976
  Object.assign(this, args);
1068
- makeAutoObservable2(this);
977
+ makeAutoObservable(this);
1069
978
  }
1070
979
  setData(v) {
1071
980
  Object.assign(this, v);
@@ -1202,9 +1111,6 @@ async function getSimpleFormData(data, metadata = {}, config, onSet = (v, form)
1202
1111
  form
1203
1112
  }));
1204
1113
  }
1205
-
1206
- // module/JSONView/index.tsx
1207
- import React20 from "react";
1208
1114
  var _JSONViewPlugin = class _JSONViewPlugin {
1209
1115
  constructor() {
1210
1116
  this.sid = "JSONViewPlugin";
@@ -1212,7 +1118,7 @@ var _JSONViewPlugin = class _JSONViewPlugin {
1212
1118
  this.JSONView = {
1213
1119
  Test: {
1214
1120
  name: "Test",
1215
- render: () => /* @__PURE__ */ React20.createElement("div", null, "Test")
1121
+ render: () => /* @__PURE__ */ React7.createElement("div", null, "Test")
1216
1122
  }
1217
1123
  };
1218
1124
  }
@@ -1230,9 +1136,9 @@ var _JSONViewPlugin = class _JSONViewPlugin {
1230
1136
  };
1231
1137
  _JSONViewPlugin.JSONView = (props) => {
1232
1138
  const jsonviewplugin = RootStore.Get(_JSONViewPlugin);
1233
- return /* @__PURE__ */ React20.createElement(React20.Fragment, null, Object.keys(props.uiConfigs).map((key) => {
1139
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, Object.keys(props.uiConfigs).map((key) => {
1234
1140
  const config = props.uiConfigs[key];
1235
- const data = lodash_exports.get(props.datas, key);
1141
+ const data = _.get(props.datas, key);
1236
1142
  const Component = jsonviewplugin.JSONView[config.type].render;
1237
1143
  const rootStore = RootStore.init();
1238
1144
  Object.values(data).forEach((i) => {
@@ -1242,21 +1148,11 @@ _JSONViewPlugin.JSONView = (props) => {
1242
1148
  });
1243
1149
  }
1244
1150
  });
1245
- return /* @__PURE__ */ React20.createElement(Component, { key, data, uiConfig: config });
1151
+ return /* @__PURE__ */ React7.createElement(Component, { key, data, uiConfig: config });
1246
1152
  }));
1247
1153
  };
1248
1154
  var JSONViewPlugin = _JSONViewPlugin;
1249
- export {
1250
- FormModalStore,
1251
- FormPlugin,
1252
- JSONEditor,
1253
- JSONForm,
1254
- JSONSchemaForm,
1255
- JSONViewPlugin,
1256
- PaginationState,
1257
- getComplexFormData,
1258
- getFormData,
1259
- getFormState2 as getFormState,
1260
- getSimpleFormData
1261
- };
1155
+
1156
+ export { FormModalStore, FormPlugin, JSONForm, JSONSchemaForm, JSONViewPlugin, getComplexFormData, getFormData, getFormState2 as getFormState, getSimpleFormData };
1157
+ //# sourceMappingURL=out.js.map
1262
1158
  //# sourceMappingURL=form.mjs.map