@jnrs/lingshu-smart 2.2.35 → 2.2.37

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.
Files changed (35) hide show
  1. package/AGENTS.md +35 -12
  2. package/README.md +10 -10
  3. package/dist/assets/data/editor_preset_menu.d.ts +8 -0
  4. package/dist/components/debug/DebugPanel.vue.d.ts +1 -60
  5. package/dist/components/debug/WsProxy/ConnPanel.vue.d.ts +13 -4
  6. package/dist/components/debug/WsProxy/index.vue.d.ts +3 -6
  7. package/dist/components/debug/WsProxy/proxy.d.ts +16 -4
  8. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +87 -87
  9. package/dist/components/editor/OptionCard/Equipment/models/Pallet.vue.d.ts +2 -0
  10. package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupDialog.vue.d.ts +8 -0
  11. package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupLayers.vue.d.ts +2 -0
  12. package/dist/components/index.d.ts +1 -2
  13. package/dist/components/index.js +6452 -31974
  14. package/dist/components/preview/index.vue.d.ts +504 -0
  15. package/dist/composables/useCaseLoading.d.ts +10 -0
  16. package/dist/index-YxSpi9Af.js +131 -0
  17. package/dist/index.js +41 -145
  18. package/dist/lingshu-smart/wsProxyConfig.json +30 -0
  19. package/dist/locales/index.js +2 -2
  20. package/dist/playground/ViewPageDemo.vue.d.ts +1107 -103
  21. package/dist/stores/index.js +7 -0
  22. package/dist/stores/useAppStore.d.ts +1651 -139
  23. package/dist/stores/useDataStore.d.ts +1651 -139
  24. package/dist/stores/useDebugStore.d.ts +30 -12
  25. package/dist/types/components/config.types.d.ts +5 -0
  26. package/dist/types/enums.d.ts +2 -1
  27. package/dist/types/guards.d.ts +7 -1
  28. package/dist/types/models/config.types.d.ts +29 -1
  29. package/dist/types/models/operating.types.d.ts +15 -1
  30. package/dist/ui/models/Pallet.d.ts +25 -0
  31. package/dist/ui/models/ShuttleStation.d.ts +17 -4
  32. package/dist/useAppStore-DQI1btcH.js +26123 -0
  33. package/package.json +6 -2
  34. package/dist/components/debug/WsProxy/WsProxyPage.vue.d.ts +0 -14
  35. package/dist/components/debug/WsProxy/broadcast.d.ts +0 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/lingshu-smart",
3
- "version": "2.2.35",
3
+ "version": "2.2.37",
4
4
  "description": "LingShu Smart 2D Digital Twin System.",
5
5
  "keywords": [
6
6
  "jnrs",
@@ -38,6 +38,10 @@
38
38
  "./components": {
39
39
  "import": "./dist/components/index.js",
40
40
  "types": "./dist/components/index.d.ts"
41
+ },
42
+ "./stores": {
43
+ "import": "./dist/stores/index.js",
44
+ "types": "./dist/stores/index.d.ts"
41
45
  }
42
46
  },
43
47
  "peerDependencies": {
@@ -48,7 +52,7 @@
48
52
  "pinia-plugin-persistedstate": "^4.7.1",
49
53
  "vue": "^3.5.22",
50
54
  "vue-i18n": "^9.14.5",
51
- "@jnrs/shared": "1.1.36"
55
+ "@jnrs/shared": "1.1.37"
52
56
  },
53
57
  "devDependencies": {
54
58
  "@types/lodash-es": "^4.17.12",
@@ -1,14 +0,0 @@
1
- import { IScene } from '../../../types';
2
- import { DictFn } from './proxy';
3
- type __VLS_Props = {
4
- /** 场景信息:用于字段映射中像素换算(如 currentCase.scene) */
5
- scene?: IScene | null;
6
- /** 字典转换函数:用于「字典 Label / 字典 Color」特殊处理
7
- * 入参 (name, value, type),返回 string 赋给画布字段 */
8
- dictFn?: DictFn;
9
- };
10
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
- scene: IScene | null;
12
- dictFn: DictFn;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
- export default _default;
@@ -1,31 +0,0 @@
1
- /**
2
- * @File : broadcast.ts
3
- * @Desc. : WsProxy 跨标签页数据流转(BroadcastChannel)
4
- * 独立标签页运行代理器(standalone)时,将转换后的 operating / raw / 状态
5
- * 通过 BroadcastChannel 广播给同源的其他标签页(如数字孪生预览页),
6
- * 实现「独立 tab 配置代理 → 预览页驱动图形运转」的数据流转。
7
- */
8
- /** 广播频道名:同源多个标签页共享 */
9
- export declare const PROXY_CHANNEL = "jnrs-wsproxy-v1";
10
- /** 广播消息类型 */
11
- export type ProxyBroadcastMsg = {
12
- type: 'operating';
13
- data: unknown;
14
- } | {
15
- type: 'raw';
16
- data: unknown;
17
- } | {
18
- type: 'status';
19
- connected: boolean;
20
- };
21
- /**
22
- * 创建广播通道
23
- * @returns BroadcastChannel 实例(浏览器不支持时返回 null)
24
- */
25
- export declare function createProxyChannel(): BroadcastChannel | null;
26
- /** 向广播通道发送消息(standalone 代理器广播用) */
27
- export declare function broadcastProxy(channel: BroadcastChannel | null, msg: ProxyBroadcastMsg): void;
28
- /** 订阅广播通道消息(预览页接收用),返回取消订阅函数 */
29
- export declare function subscribeProxy(channel: BroadcastChannel | null, handler: (msg: ProxyBroadcastMsg) => void): () => void;
30
- /** 关闭广播通道 */
31
- export declare function closeProxyChannel(channel: BroadcastChannel | null): void;