@douyinfe/semi-ui 2.59.0-beta.0 → 2.59.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.
@@ -358,6 +358,7 @@ function withField(Component, opts) {
358
358
  validateRef.current = validate;
359
359
  }, [rules, validate]);
360
360
  useIsomorphicEffect(() => {
361
+ isUnmounted.current = false;
361
362
  // exec validate once when trigger include 'mount'
362
363
  if (validateOnMount) {
363
364
  fieldValidate(value);
@@ -12,6 +12,7 @@ const buildFieldApi = (formApi, field) => ({
12
12
  getTouched: () => formApi.getTouched(field),
13
13
  setTouched: isTouched => formApi.setTouched(field, isTouched),
14
14
  getValue: () => formApi.getValue(field),
15
+ // @ts-ignore
15
16
  setValue: value => formApi.setValue(field, value)
16
17
  });
17
18
  function useFieldApi(field) {
@@ -85,3 +85,4 @@ export { default as LocaleConsumer } from './locale/localeConsumer';
85
85
  export { Form, useFormApi, useFormState, useFieldApi, useFieldState, withFormState, withFormApi, withField, ArrayField, } from './form';
86
86
  export { default as Image } from './image';
87
87
  export { Preview as ImagePreview } from './image';
88
+ export { default as semiGlobal } from "./_utils/semi-global";
package/lib/cjs/index.js CHANGED
@@ -531,6 +531,12 @@ Object.defineProperty(exports, "Upload", {
531
531
  return _upload.default;
532
532
  }
533
533
  });
534
+ Object.defineProperty(exports, "semiGlobal", {
535
+ enumerable: true,
536
+ get: function () {
537
+ return _semiGlobal.default;
538
+ }
539
+ });
534
540
  Object.defineProperty(exports, "useFieldApi", {
535
541
  enumerable: true,
536
542
  get: function () {
@@ -658,6 +664,7 @@ var _localeProvider = _interopRequireDefault(require("./locale/localeProvider"))
658
664
  var _localeConsumer = _interopRequireDefault(require("./locale/localeConsumer"));
659
665
  var _form = require("./form");
660
666
  var _image = _interopRequireWildcard(require("./image"));
667
+ var _semiGlobal = _interopRequireDefault(require("./_utils/semi-global"));
661
668
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
662
669
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
663
670
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -348,6 +348,7 @@ function withField(Component, opts) {
348
348
  validateRef.current = validate;
349
349
  }, [rules, validate]);
350
350
  useIsomorphicEffect(() => {
351
+ isUnmounted.current = false;
351
352
  // exec validate once when trigger include 'mount'
352
353
  if (validateOnMount) {
353
354
  fieldValidate(value);
@@ -5,6 +5,7 @@ const buildFieldApi = (formApi, field) => ({
5
5
  getTouched: () => formApi.getTouched(field),
6
6
  setTouched: isTouched => formApi.setTouched(field, isTouched),
7
7
  getValue: () => formApi.getValue(field),
8
+ // @ts-ignore
8
9
  setValue: value => formApi.setValue(field, value)
9
10
  });
10
11
  function useFieldApi(field) {
package/lib/es/index.d.ts CHANGED
@@ -85,3 +85,4 @@ export { default as LocaleConsumer } from './locale/localeConsumer';
85
85
  export { Form, useFormApi, useFormState, useFieldApi, useFieldState, withFormState, withFormApi, withField, ArrayField, } from './form';
86
86
  export { default as Image } from './image';
87
87
  export { Preview as ImagePreview } from './image';
88
+ export { default as semiGlobal } from "./_utils/semi-global";
package/lib/es/index.js CHANGED
@@ -84,4 +84,5 @@ export { default as LocaleConsumer } from './locale/localeConsumer';
84
84
  /** Form */
85
85
  export { Form, useFormApi, useFormState, useFieldApi, useFieldState, withFormState, withFormApi, withField, ArrayField } from './form';
86
86
  export { default as Image } from './image';
87
- export { Preview as ImagePreview } from './image';
87
+ export { Preview as ImagePreview } from './image';
88
+ export { default as semiGlobal } from "./_utils/semi-global";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.59.0-beta.0",
3
+ "version": "2.59.0",
4
4
  "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -20,12 +20,12 @@
20
20
  "@dnd-kit/core": "^6.0.8",
21
21
  "@dnd-kit/sortable": "^7.0.2",
22
22
  "@dnd-kit/utilities": "^3.2.1",
23
- "@douyinfe/semi-animation": "2.59.0-beta.0",
24
- "@douyinfe/semi-animation-react": "2.59.0-beta.0",
25
- "@douyinfe/semi-foundation": "2.59.0-beta.0",
26
- "@douyinfe/semi-icons": "2.59.0-beta.0",
27
- "@douyinfe/semi-illustrations": "2.59.0-beta.0",
28
- "@douyinfe/semi-theme-default": "2.59.0-beta.0",
23
+ "@douyinfe/semi-animation": "2.59.0",
24
+ "@douyinfe/semi-animation-react": "2.59.0",
25
+ "@douyinfe/semi-foundation": "2.59.0",
26
+ "@douyinfe/semi-icons": "2.59.0",
27
+ "@douyinfe/semi-illustrations": "2.59.0",
28
+ "@douyinfe/semi-theme-default": "2.59.0",
29
29
  "async-validator": "^3.5.0",
30
30
  "classnames": "^2.2.6",
31
31
  "copy-text-to-clipboard": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  ],
76
76
  "author": "",
77
77
  "license": "MIT",
78
- "gitHead": "cafc3d7cf008cd4fd117c3d55cc48e0b4430c4a9",
78
+ "gitHead": "b9a08d8581277fdc6ae9c33cdfc78b39938e5de1",
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^7.15.8",
81
81
  "@babel/plugin-transform-runtime": "^7.15.8",