shineout 3.1.7 → 3.1.8-fix.1
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/cjs/index.js +1 -1
- package/dist/shineout.js +14 -19
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.1.
|
|
479
|
+
version: '3.1.8-fix.1'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11949,7 +11949,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11949
11949
|
};
|
|
11950
11950
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11951
11951
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11952
|
-
/* harmony default export */ var version = ('3.1.
|
|
11952
|
+
/* harmony default export */ var version = ('3.1.8-fix.1');
|
|
11953
11953
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11954
11954
|
|
|
11955
11955
|
|
|
@@ -30803,19 +30803,18 @@ function useInputAble(props) {
|
|
|
30803
30803
|
var render = useRender(syncValue);
|
|
30804
30804
|
var shouldUseState = delay || !control;
|
|
30805
30805
|
var value = shouldUseState ? stateValue : valuePo;
|
|
30806
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
30807
|
-
if (context.timer) {
|
|
30808
|
-
clearTimeout(context.timer);
|
|
30809
|
-
context.timer = null;
|
|
30810
|
-
}
|
|
30806
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
30811
30807
|
if (delay && props.value !== stateValue) {
|
|
30812
30808
|
changeStateValue(props.value);
|
|
30809
|
+
} else if (context.timer) {
|
|
30810
|
+
clearTimeout(context.timer);
|
|
30811
|
+
context.timer = null;
|
|
30813
30812
|
}
|
|
30814
30813
|
}, [props.value, delay]);
|
|
30815
30814
|
var forceDelayChange = use_persist_fn(function () {
|
|
30816
|
-
if (context.
|
|
30815
|
+
if (context.delayChange) context.delayChange();
|
|
30816
|
+
if (context.timer) {
|
|
30817
30817
|
clearTimeout(context.timer);
|
|
30818
|
-
context.delayChange();
|
|
30819
30818
|
context.timer = null;
|
|
30820
30819
|
context.delayChange = null;
|
|
30821
30820
|
}
|
|
@@ -33881,18 +33880,14 @@ function castImmutable(value) {
|
|
|
33881
33880
|
}
|
|
33882
33881
|
|
|
33883
33882
|
;// CONCATENATED MODULE: ../hooks/src/utils/immer.ts
|
|
33884
|
-
// import { produce as produce2, getSnapshot } from '@shined/reactive/vanilla';
|
|
33885
|
-
|
|
33886
|
-
// export const produce = ((...args: any) => {
|
|
33887
|
-
// return produce2.apply(null, args);
|
|
33888
|
-
// }) as typeof produce2;
|
|
33889
33883
|
|
|
33890
|
-
// export const current = getSnapshot;
|
|
33891
33884
|
|
|
33892
|
-
|
|
33893
|
-
|
|
33894
|
-
var
|
|
33895
|
-
|
|
33885
|
+
var utils_immer_produce = function produce() {
|
|
33886
|
+
setAutoFreeze(false);
|
|
33887
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33888
|
+
args[_key] = arguments[_key];
|
|
33889
|
+
}
|
|
33890
|
+
return immer_produce.apply(null, args);
|
|
33896
33891
|
};
|
|
33897
33892
|
;// CONCATENATED MODULE: ../hooks/src/utils/clone.ts
|
|
33898
33893
|
|
|
@@ -62041,7 +62036,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
62041
62036
|
|
|
62042
62037
|
|
|
62043
62038
|
/* harmony default export */ var src_0 = ({
|
|
62044
|
-
version: '3.1.
|
|
62039
|
+
version: '3.1.8-fix.1'
|
|
62045
62040
|
});
|
|
62046
62041
|
}();
|
|
62047
62042
|
/******/ return __webpack_exports__;
|