shineout 3.10.2-beta.5 → 3.10.2-beta.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/cjs/index.js CHANGED
@@ -545,5 +545,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
545
545
  // 此文件由脚本自动生成,请勿直接修改。
546
546
  // This file was generated automatically by a script. Please do not modify it directly.
547
547
  var _default = exports.default = {
548
- version: '3.10.2-beta.5'
548
+ version: '3.10.2-beta.7'
549
549
  };
package/dist/shineout.js CHANGED
@@ -2242,20 +2242,6 @@ function getDisplayName(Component) {
2242
2242
 
2243
2243
  /***/ }),
2244
2244
 
2245
- /***/ 1717:
2246
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2247
-
2248
- "use strict";
2249
-
2250
-
2251
- var m = __webpack_require__(5156);
2252
- if (true) {
2253
- exports.createRoot = m.createRoot;
2254
- exports.hydrateRoot = m.hydrateRoot;
2255
- } else { var i; }
2256
-
2257
- /***/ }),
2258
-
2259
2245
  /***/ 5284:
2260
2246
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2261
2247
 
@@ -3190,6 +3176,21 @@ if (true) {
3190
3176
 
3191
3177
  /***/ }),
3192
3178
 
3179
+ /***/ 8035:
3180
+ /***/ (function(module) {
3181
+
3182
+ function webpackEmptyContext(req) {
3183
+ var e = new Error("Cannot find module '" + req + "'");
3184
+ e.code = 'MODULE_NOT_FOUND';
3185
+ throw e;
3186
+ }
3187
+ webpackEmptyContext.keys = function() { return []; };
3188
+ webpackEmptyContext.resolve = webpackEmptyContext;
3189
+ webpackEmptyContext.id = 8035;
3190
+ module.exports = webpackEmptyContext;
3191
+
3192
+ /***/ }),
3193
+
3193
3194
  /***/ 297:
3194
3195
  /***/ (function(module) {
3195
3196
 
@@ -13735,7 +13736,7 @@ var handleStyle = function handleStyle(style) {
13735
13736
  };
13736
13737
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
13737
13738
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
13738
- /* harmony default export */ var version = ('3.10.2-beta.5');
13739
+ /* harmony default export */ var version = ('3.10.2-beta.7');
13739
13740
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
13740
13741
 
13741
13742
 
@@ -51770,8 +51771,10 @@ if (mainVersion >= 18 && typeof fullClone.createRoot === 'function') {
51770
51771
  var pendingQueue = null;
51771
51772
  if (!createRoot && mainVersion >= 18) {
51772
51773
  pendingQueue = [];
51773
- Promise.resolve().then(function () {
51774
- return interopRequireWildcard_default()(__webpack_require__(1717));
51774
+ // 用字符串拼接绕过 webpack 静态分析,避免 React 17 下因 react-dom/client 不存在而构建报错
51775
+ var clientModule = 'react-dom' + '/client';
51776
+ Promise.resolve("".concat( /* webpackIgnore: true */clientModule)).then(function (s) {
51777
+ return interopRequireWildcard_default()(__webpack_require__(8035)(s));
51775
51778
  }).then(function (client) {
51776
51779
  createRoot = client.createRoot;
51777
51780
  }).catch(function () {
@@ -67816,6 +67819,7 @@ var useTableLayout = function useTableLayout(props) {
67816
67819
  }
67817
67820
 
67818
67821
  // 直接操作 DOM classList,不触发 React re-render
67822
+ // JSS 生成的 className 可能包含多个空格分隔的类名,classList.toggle 只接受单个 token
67819
67823
  var classes = floatClassRef.current;
67820
67824
  var el = (_props$tableElRef = props.tableElRef) === null || _props$tableElRef === void 0 ? void 0 : _props$tableElRef.current;
67821
67825
  if (!classes || !el) return;
@@ -67823,7 +67827,9 @@ var useTableLayout = function useTableLayout(props) {
67823
67827
  var l = left > min;
67824
67828
  if (l !== floatLeftRef.current) {
67825
67829
  floatLeftRef.current = l;
67826
- el.classList.toggle(classes.left, l);
67830
+ classes.left.forEach(function (cls) {
67831
+ return el.classList.toggle(cls, l);
67832
+ });
67827
67833
  }
67828
67834
  }
67829
67835
  if (hasFixedRight) {
@@ -67831,7 +67837,9 @@ var useTableLayout = function useTableLayout(props) {
67831
67837
  var r = max - left > 1;
67832
67838
  if (r !== floatRightRef.current) {
67833
67839
  floatRightRef.current = r;
67834
- el.classList.toggle(classes.right, r);
67840
+ classes.right.forEach(function (cls) {
67841
+ return el.classList.toggle(cls, r);
67842
+ });
67835
67843
  }
67836
67844
  }
67837
67845
  });
@@ -67957,10 +67965,11 @@ var useTableLayout = function useTableLayout(props) {
67957
67965
  }
67958
67966
 
67959
67967
  // 注册 float class name,由 table.tsx 初始化时调用
67968
+ // 预拆分空格分隔的类名,避免 checkFloat 高频路径重复 split
67960
67969
  var registerFloatClass = use_persist_fn(function (left, right) {
67961
67970
  floatClassRef.current = {
67962
- left: left,
67963
- right: right
67971
+ left: left.split(/\s+/).filter(Boolean),
67972
+ right: right.split(/\s+/).filter(Boolean)
67964
67973
  };
67965
67974
  });
67966
67975
  return {
@@ -80135,7 +80144,7 @@ var watermark_interface = __webpack_require__(6640);
80135
80144
 
80136
80145
 
80137
80146
  /* harmony default export */ var src_0 = ({
80138
- version: '3.10.2-beta.5'
80147
+ version: '3.10.2-beta.7'
80139
80148
  });
80140
80149
  }();
80141
80150
  /******/ return __webpack_exports__;