@sheinx/base 3.1.24 → 3.1.25

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.
@@ -3,7 +3,7 @@ import type { ModalOptions } from './modal-func.type';
3
3
  export declare const closeAll: () => void;
4
4
  type MethodType = 'info' | 'warning' | 'error' | 'confirm' | 'show' | 'success';
5
5
  declare const _default: {
6
- type: (type: MethodType, jssStyle: ModalJssStyle) => (options: Omit<ModalOptions, "jssStyle">) => void;
6
+ type: (type: MethodType, jssStyle: ModalJssStyle) => (options: Omit<ModalOptions, "jssStyle">) => (() => void) | undefined;
7
7
  closeAll: () => void;
8
8
  };
9
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"modal-func.d.ts","sourceRoot":"","sources":["modal-func.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYtD,eAAO,MAAM,QAAQ,YAIpB,CAAC;AA8CF,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;;;;;AA4DhF,wBAGE"}
1
+ {"version":3,"file":"modal-func.d.ts","sourceRoot":"","sources":["modal-func.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYtD,eAAO,MAAM,QAAQ,YAIpB,CAAC;AA8CF,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;;;;;AAoEhF,wBAGE"}
@@ -124,6 +124,7 @@ var method = function method(type, jssStyle) {
124
124
  children: options.content || options.children
125
125
  }));
126
126
  _hooks.util.ReactRender(Content, root);
127
+ return destroyModal;
127
128
  };
128
129
  };
129
130
  var _default = exports.default = {
@@ -3,7 +3,7 @@ import type { ModalOptions } from './modal-func.type';
3
3
  export declare const closeAll: () => void;
4
4
  type MethodType = 'info' | 'warning' | 'error' | 'confirm' | 'show' | 'success';
5
5
  declare const _default: {
6
- type: (type: MethodType, jssStyle: ModalJssStyle) => (options: Omit<ModalOptions, "jssStyle">) => void;
6
+ type: (type: MethodType, jssStyle: ModalJssStyle) => (options: Omit<ModalOptions, "jssStyle">) => (() => void) | undefined;
7
7
  closeAll: () => void;
8
8
  };
9
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"modal-func.d.ts","sourceRoot":"","sources":["modal-func.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYtD,eAAO,MAAM,QAAQ,YAIpB,CAAC;AA8CF,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;;;;;AA4DhF,wBAGE"}
1
+ {"version":3,"file":"modal-func.d.ts","sourceRoot":"","sources":["modal-func.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYtD,eAAO,MAAM,QAAQ,YAIpB,CAAC;AA8CF,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;;;;;AAoEhF,wBAGE"}
@@ -118,6 +118,7 @@ var method = function method(type, jssStyle) {
118
118
  children: options.content || options.children
119
119
  }));
120
120
  util.ReactRender(Content, root);
121
+ return destroyModal;
121
122
  };
122
123
  };
123
124
  export default {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.1.24",
3
+ "version": "3.1.25",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.1.24",
13
+ "@sheinx/hooks": "3.1.25",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"