@flowgram.ai/form 0.4.6 → 0.4.7

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/esm/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // src/react/field.tsx
2
2
  import * as React2 from "react";
3
- import { isFunction } from "lodash";
3
+ import { isFunction } from "lodash-es";
4
4
  import { DisposableCollection, useRefresh } from "@flowgram.ai/utils";
5
5
  import { useReadonlyReactiveState } from "@flowgram.ai/reactive";
6
6
 
7
7
  // src/utils/object.ts
8
- import { clone, toPath } from "lodash";
8
+ import { clone, toPath } from "lodash-es";
9
9
  var isObject = (obj) => obj !== null && typeof obj === "object";
10
10
  var isInteger = (obj) => String(Math.floor(Number(obj))) === obj;
11
11
  function getIn(obj, key, def, p = 0) {
@@ -59,7 +59,7 @@ function isCheckBoxEvent(e) {
59
59
  }
60
60
 
61
61
  // src/utils/glob.ts
62
- import { flatten, get, isArray, isObject as isObject2 } from "lodash";
62
+ import { flatten, get, isArray, isObject as isObject2 } from "lodash-es";
63
63
  var Glob;
64
64
  ((Glob2) => {
65
65
  Glob2.DIVIDER = ".";
@@ -215,10 +215,10 @@ var ValidateTrigger = /* @__PURE__ */ ((ValidateTrigger2) => {
215
215
  })(ValidateTrigger || {});
216
216
 
217
217
  // src/core/utils.ts
218
- import { isEmpty, isEqual } from "lodash";
218
+ import { isEmpty, isEqual } from "lodash-es";
219
219
 
220
220
  // src/core/path.ts
221
- import { toPath as toPath2 } from "lodash";
221
+ import { toPath as toPath2 } from "lodash-es";
222
222
  var Path = class _Path {
223
223
  constructor(path) {
224
224
  this._path = [];
@@ -597,7 +597,7 @@ function Field({
597
597
 
598
598
  // src/react/form.tsx
599
599
  import React3, { Children, useEffect as useEffect2, useMemo as useMemo2 } from "react";
600
- import { isFunction as isFunction2 } from "lodash";
600
+ import { isFunction as isFunction2 } from "lodash-es";
601
601
 
602
602
  // src/core/to-field-array.ts
603
603
  function toFieldArray(model) {
@@ -635,7 +635,7 @@ function toFieldArray(model) {
635
635
  }
636
636
 
637
637
  // src/core/form-model.ts
638
- import { flatten as flatten2, get as get4 } from "lodash";
638
+ import { flatten as flatten2, get as get4 } from "lodash-es";
639
639
  import { deepEqual } from "fast-equals";
640
640
  import { Emitter as Emitter3 } from "@flowgram.ai/utils";
641
641
  import { ReactiveState as ReactiveState2 } from "@flowgram.ai/reactive";
@@ -689,7 +689,7 @@ function createFieldModelState(initialState) {
689
689
  }
690
690
 
691
691
  // src/core/store.ts
692
- import { get as get2, clone as clone2, cloneDeep } from "lodash";
692
+ import { get as get2, clone as clone2, cloneDeep } from "lodash-es";
693
693
  var Store = class {
694
694
  get values() {
695
695
  return clone2(this._values);
@@ -709,7 +709,7 @@ var Store = class {
709
709
 
710
710
  // src/core/field-model.ts
711
711
  import { nanoid } from "nanoid";
712
- import { get as get3, groupBy, some } from "lodash";
712
+ import { get as get3, groupBy, some } from "lodash-es";
713
713
  import { DisposableCollection as DisposableCollection2, Emitter } from "@flowgram.ai/utils";
714
714
  import { ReactiveState } from "@flowgram.ai/reactive";
715
715
  var FieldModel = class {
@@ -1536,7 +1536,7 @@ function useWatch(name) {
1536
1536
 
1537
1537
  // src/react/field-array.tsx
1538
1538
  import * as React4 from "react";
1539
- import { isFunction as isFunction3 } from "lodash";
1539
+ import { isFunction as isFunction3 } from "lodash-es";
1540
1540
  import { DisposableCollection as DisposableCollection3, useRefresh as useRefresh3 } from "@flowgram.ai/utils";
1541
1541
  import { useReadonlyReactiveState as useReadonlyReactiveState2 } from "@flowgram.ai/reactive";
1542
1542
  function FieldArray({