shineout 3.0.0-alpha.27 → 3.0.0-alpha.28
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 +19 -4
- 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 +4 -4
package/cjs/index.js
CHANGED
|
@@ -456,6 +456,6 @@ exports.TYPE = _TYPE;
|
|
|
456
456
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
457
457
|
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; }
|
|
458
458
|
var _default = {
|
|
459
|
-
version: '3.0.0-alpha.
|
|
459
|
+
version: '3.0.0-alpha.28'
|
|
460
460
|
};
|
|
461
461
|
exports.default = _default;
|
package/dist/shineout.js
CHANGED
|
@@ -18466,6 +18466,8 @@ var css_jss_esm_css = createCss();
|
|
|
18466
18466
|
/* harmony default export */ var css_jss_esm = (css_jss_esm_css);
|
|
18467
18467
|
|
|
18468
18468
|
;// CONCATENATED MODULE: ../../node_modules/.pnpm/react-jss@10.9.2_react@18.2.0/node_modules/react-jss/dist/react-jss.esm.js
|
|
18469
|
+
"use client";
|
|
18470
|
+
|
|
18469
18471
|
|
|
18470
18472
|
|
|
18471
18473
|
|
|
@@ -19118,7 +19120,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
19118
19120
|
};
|
|
19119
19121
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
19120
19122
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
19121
|
-
/* harmony default export */ var version = ('3.0.0-alpha.
|
|
19123
|
+
/* harmony default export */ var version = ('3.0.0-alpha.28');
|
|
19122
19124
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
19123
19125
|
|
|
19124
19126
|
|
|
@@ -47137,7 +47139,8 @@ var useForm = function useForm(props) {
|
|
|
47137
47139
|
lastValue: props.value || emptyObj,
|
|
47138
47140
|
resetTime: 0,
|
|
47139
47141
|
mounted: false,
|
|
47140
|
-
unmounted: false
|
|
47142
|
+
unmounted: false,
|
|
47143
|
+
removeLock: false
|
|
47141
47144
|
}),
|
|
47142
47145
|
context = _React$useRef.current;
|
|
47143
47146
|
var update = function update(name) {
|
|
@@ -47387,7 +47390,7 @@ var useForm = function useForm(props) {
|
|
|
47387
47390
|
delete context.defaultValues[n];
|
|
47388
47391
|
delete context.updateMap[n];
|
|
47389
47392
|
context.names.delete(n);
|
|
47390
|
-
if (!reserveAble) {
|
|
47393
|
+
if (!reserveAble && !context.removeLock) {
|
|
47391
47394
|
addRemove(n);
|
|
47392
47395
|
}
|
|
47393
47396
|
},
|
|
@@ -47463,6 +47466,7 @@ var useForm = function useForm(props) {
|
|
|
47463
47466
|
|
|
47464
47467
|
// 默认值更新
|
|
47465
47468
|
external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
|
|
47469
|
+
context.removeLock = false;
|
|
47466
47470
|
if (props.value === context.lastValue) return;
|
|
47467
47471
|
context.value = props.value || emptyObj;
|
|
47468
47472
|
if (initValidate && !context.resetTime) {
|
|
@@ -47485,6 +47489,9 @@ var useForm = function useForm(props) {
|
|
|
47485
47489
|
context.unmounted = true;
|
|
47486
47490
|
};
|
|
47487
47491
|
}, []);
|
|
47492
|
+
if (props.value !== context.lastValue) {
|
|
47493
|
+
context.removeLock = true;
|
|
47494
|
+
}
|
|
47488
47495
|
return {
|
|
47489
47496
|
getFormProps: getFormProps,
|
|
47490
47497
|
Provider: Provider,
|
|
@@ -56406,6 +56413,14 @@ var Sticky = function Sticky(props) {
|
|
|
56406
56413
|
} else {
|
|
56407
56414
|
target.parentNode.insertBefore(context.div, target);
|
|
56408
56415
|
}
|
|
56416
|
+
var _style4 = window.getComputedStyle(target);
|
|
56417
|
+
if (_style4.position === 'absolute' || _style4.position === 'fixed') {
|
|
56418
|
+
context.div.style.position = _style4.position;
|
|
56419
|
+
context.div.style.top = _style4.top;
|
|
56420
|
+
context.div.style.left = _style4.left;
|
|
56421
|
+
context.div.style.right = _style4.right;
|
|
56422
|
+
context.div.style.bottom = _style4.bottom;
|
|
56423
|
+
}
|
|
56409
56424
|
if (window.IntersectionObserver) {
|
|
56410
56425
|
var observer = new IntersectionObserver(handlePosition, {
|
|
56411
56426
|
root: target,
|
|
@@ -64975,7 +64990,7 @@ var upload_interface = __webpack_require__(7818);
|
|
|
64975
64990
|
|
|
64976
64991
|
|
|
64977
64992
|
/* harmony default export */ var src_0 = ({
|
|
64978
|
-
version: '3.0.0-alpha.
|
|
64993
|
+
version: '3.0.0-alpha.28'
|
|
64979
64994
|
});
|
|
64980
64995
|
}();
|
|
64981
64996
|
/******/ return __webpack_exports__;
|