niuma-ui 1.2.5 → 1.2.6

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/CHANGELOG.md CHANGED
@@ -6,6 +6,17 @@
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.2.6] - 2026-09-01
10
+
11
+ ### 修复
12
+
13
+ - `niumaUiHost` 不再把 `reka-ui` / `@lucide/vue` / `vue-sonner` 写进宿主 `optimizeDeps.include`。这些包在 pnpm 下只装在 niuma-ui 里,cloud / site 解析不到会告警。
14
+ - `RsSplitPane` 的 `collapse` / `expand` 在尺寸已到位时不再提交新数组、不再重复发事件。
15
+
16
+ ### 变更
17
+
18
+ - `exports` 一律指向 `dist`(含 vite-plugins)。开发仓 `pnpm install` 时若还没有 dist,`prepare` 会编一次;npm 包没有 src,不会重编。`pnpm dev` 联调源码仍由 `niumaUiHost` 改写。
19
+
9
20
  ## [1.2.5] - 2026-08-30
10
21
 
11
22
  ### 变更
@@ -337,7 +337,9 @@ var RsSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
337
337
  const index = indexOfKey(key);
338
338
  if (index < 0) return;
339
339
  const before = sizes.value.slice();
340
- commit(collapseSplitPane(sizes.value, constraints.value, index));
340
+ const next = collapseSplitPane(sizes.value, constraints.value, index);
341
+ if (splitSizesEqual(before, next)) return;
342
+ commit(next);
341
343
  emitBoundaryTransitions(before, sizes.value);
342
344
  emit("resize-end", sizes.value.slice());
343
345
  }
@@ -345,7 +347,9 @@ var RsSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
345
347
  const index = indexOfKey(key);
346
348
  if (index < 0) return;
347
349
  const before = sizes.value.slice();
348
- commit(expandSplitPane(sizes.value, constraints.value, index, resolveExpandSize(key, index, toSize)));
350
+ const next = expandSplitPane(sizes.value, constraints.value, index, resolveExpandSize(key, index, toSize));
351
+ if (splitSizesEqual(before, next)) return;
352
+ commit(next);
349
353
  emitBoundaryTransitions(before, sizes.value);
350
354
  emit("resize-end", sizes.value.slice());
351
355
  }
@@ -49,6 +49,8 @@ function niumaUiHostAlias(ctx) {
49
49
  : [];
50
50
  return {
51
51
  resolve: alias.length > 0 ? { alias } : {},
52
+ // 不要把 reka-ui / @lucide/vue / vue-sonner 写进 include:
53
+ // 它们装在 niuma-ui 下,pnpm 宿主(cloud / site)resolve 不到,Vite 会报 Failed to resolve dependency。
52
54
  optimizeDeps: {
53
55
  exclude: ['@niuma/ui', 'niuma-ui'],
54
56
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niuma-ui",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Vue 3 工作台设计系统(Rs* 组件、--rs-* token;含可选编辑器 / 终端)",