z-biz-tool-shared 0.1.3 → 0.1.4

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 (51) hide show
  1. package/dist/agent/AgentManager.d.ts +1 -1
  2. package/dist/agent/AgentPanel.js +2 -2
  3. package/dist/agent/SQLEditor.js +1 -1
  4. package/dist/agent/index.d.ts +5 -5
  5. package/dist/agent/index.js +5 -5
  6. package/dist/ai/AIManager.d.ts +3 -3
  7. package/dist/ai/AIManager.js +1 -1
  8. package/dist/ai/clients.d.ts +1 -1
  9. package/dist/ai/context.d.ts +1 -1
  10. package/dist/ai/index.d.ts +3 -3
  11. package/dist/ai/index.js +3 -3
  12. package/dist/capability/index.d.ts +1 -1
  13. package/dist/capability/index.js +1 -1
  14. package/dist/components/Navbar.js +1 -1
  15. package/dist/components/Spotlight.js +1 -1
  16. package/dist/components/SpotlightProvider.js +1 -1
  17. package/dist/components/UIDesignSystem.js +1 -1
  18. package/dist/components/index.d.ts +8 -8
  19. package/dist/components/index.js +8 -8
  20. package/dist/index.d.ts +12 -12
  21. package/dist/index.js +12 -12
  22. package/dist/interactions/index.d.ts +1 -1
  23. package/dist/interactions/index.js +1 -1
  24. package/dist/notifications/ToastContainer.js +1 -1
  25. package/dist/notifications/index.d.ts +2 -2
  26. package/dist/notifications/index.js +2 -2
  27. package/dist/notifications/notificationManager.d.ts +1 -1
  28. package/dist/protocol/deeplinkReceiver.d.ts +1 -1
  29. package/dist/protocol/deeplinkReceiver.js +1 -1
  30. package/dist/protocol/index.d.ts +3 -3
  31. package/dist/protocol/index.js +3 -3
  32. package/dist/shared/AppShell.js +1 -1
  33. package/dist/shared/ThemeContext.d.ts +1 -1
  34. package/dist/shared/ThemeContext.js +1 -1
  35. package/dist/shared/index.d.ts +9 -9
  36. package/dist/shared/index.js +9 -9
  37. package/dist/shortcuts/index.d.ts +2 -2
  38. package/dist/shortcuts/index.js +2 -2
  39. package/dist/shortcuts/shortcutManager.d.ts +1 -1
  40. package/dist/styles/index.d.ts +2 -2
  41. package/dist/styles/index.js +2 -2
  42. package/dist/theme/ThemeContext.d.ts +1 -1
  43. package/dist/theme/ThemeContext.js +1 -1
  44. package/dist/theme/index.d.ts +3 -3
  45. package/dist/theme/index.js +3 -3
  46. package/dist/theme/themeManager.d.ts +1 -1
  47. package/dist/theme/themeManager.js +1 -1
  48. package/dist/types/index.d.ts +1 -1
  49. package/dist/types/index.js +1 -1
  50. package/dist/types/product.d.ts +1 -1
  51. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- import { AgentConfig, AgentMessage, AgentContext, AgentResponse } from './types';
1
+ import { AgentConfig, AgentMessage, AgentContext, AgentResponse } from './types.js';
2
2
  /**
3
3
  * 查询结果的行数据。
4
4
  *
@@ -4,8 +4,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  import { useState, useEffect, useRef } from 'react';
5
5
  import { Card, Input, Button, Space, Typography, Spin, Avatar, List, Tag } from 'antd';
6
6
  import { RobotOutlined, SendOutlined } from '@ant-design/icons';
7
- import { useAgentStore } from '../agent/AgentManager';
8
- import { errorMessage } from '../shared/errorMessage';
7
+ import { useAgentStore } from '../agent/AgentManager.js';
8
+ import { errorMessage } from '../shared/errorMessage.js';
9
9
  const { TextArea } = Input;
10
10
  const { Text } = Typography;
11
11
  export const AgentPanel = () => {
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState } from 'react';
4
4
  import { Card, Button, Space, Input, message } from 'antd';
5
5
  import { PlayCircleOutlined, CopyOutlined, SaveOutlined } from '@ant-design/icons';
6
- import { errorMessage } from '../shared/errorMessage';
6
+ import { errorMessage } from '../shared/errorMessage.js';
7
7
  export const SQLEditor = ({ value = '', onChange, onExecute, }) => {
8
8
  const [code, setCode] = useState(value);
9
9
  const [isExecuting, setIsExecuting] = useState(false);
@@ -1,6 +1,6 @@
1
- export * from './types';
2
- export * from './AgentManager';
3
- export * from './AgentPanel';
4
- export * from './QueryHistoryViewer';
5
- export * from './SQLEditor';
1
+ export * from './types.js';
2
+ export * from './AgentManager.js';
3
+ export * from './AgentPanel.js';
4
+ export * from './QueryHistoryViewer.js';
5
+ export * from './SQLEditor.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
1
  // Agent 模块导出
2
- export * from './types';
3
- export * from './AgentManager';
4
- export * from './AgentPanel';
5
- export * from './QueryHistoryViewer';
6
- export * from './SQLEditor';
2
+ export * from './types.js';
3
+ export * from './AgentManager.js';
4
+ export * from './AgentPanel.js';
5
+ export * from './QueryHistoryViewer.js';
6
+ export * from './SQLEditor.js';
7
7
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import type { AIConfig, AIFunctionType, AIFunctionParams, AIResult, AIContext, Agent } from './types';
2
- import { type FetchLike } from './clients';
3
- export type { AIClient, FetchLike } from './clients';
1
+ import type { AIConfig, AIFunctionType, AIFunctionParams, AIResult, AIContext, Agent } from './types.js';
2
+ import { type FetchLike } from './clients.js';
3
+ export type { AIClient, FetchLike } from './clients.js';
4
4
  /** 设置/清除 fetch 实现;传 undefined 恢复真实 fetch。返回一个还原函数。 */
5
5
  export declare function setFetchImplementation(impl: FetchLike | undefined): () => void;
6
6
  export interface AIStore {
@@ -1,5 +1,5 @@
1
1
  import { create } from 'zustand';
2
- import { createClient } from './clients';
2
+ import { createClient } from './clients.js';
3
3
  /**
4
4
  * 可注入的 fetch 实现。
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { AIConfig, AIFunctionType, AIFunctionParams, AIResult, AIContext } from './types';
1
+ import type { AIConfig, AIFunctionType, AIFunctionParams, AIResult, AIContext } from './types.js';
2
2
  /** fetch 的最小结构(只声明本文件用得到的字段,便于测试注入桩) */
3
3
  export interface AIClientRequestInit {
4
4
  method?: string;
@@ -1,4 +1,4 @@
1
- import { AIContext } from './types';
1
+ import { AIContext } from './types.js';
2
2
  export declare class ContextManager {
3
3
  private context;
4
4
  private maxHistorySize;
@@ -1,4 +1,4 @@
1
- export * from './AIManager';
2
- export * from './types';
3
- export * from './context';
1
+ export * from './AIManager.js';
2
+ export * from './types.js';
3
+ export * from './context.js';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/ai/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // AI 能力中台导出
2
- export * from './AIManager';
3
- export * from './types';
4
- export * from './context';
2
+ export * from './AIManager.js';
3
+ export * from './types.js';
4
+ export * from './context.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useTheme } from '../theme';
2
+ import { useTheme } from '../theme/index.js';
3
3
  // 导航栏组件
4
4
  export const Navbar = ({ title, actions = [] }) => {
5
5
  const { themeColors } = useTheme();
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useMemo, useRef } from 'react';
3
- import { useTheme } from '../theme';
3
+ import { useTheme } from '../theme/index.js';
4
4
  // Spotlight 组件
5
5
  export const Spotlight = ({ isOpen, onClose, commands = [], emptyHint = '没有匹配的命令' }) => {
6
6
  const { themeColors } = useTheme();
@@ -1,6 +1,6 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect } from 'react';
3
- import { useSpotlight } from './Spotlight';
3
+ import { useSpotlight } from './Spotlight.js';
4
4
  // Spotlight Provider - 管理全局 Spotlight
5
5
  export const SpotlightProvider = ({ children }) => {
6
6
  const { toggleSpotlight } = useSpotlight();
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useTheme } from '../theme';
2
+ import { useTheme } from '../theme/index.js';
3
3
  // 设计令牌
4
4
  export const DESIGN_TOKENS = {
5
5
  borderRadius: {
@@ -1,9 +1,9 @@
1
- export * from './ShortcutDisplay';
2
- export * from './StateIndicator';
3
- export * from './ProgressIndicator';
4
- export * from './Spotlight';
5
- export * from './SpotlightProvider';
6
- export * from './GlobalShortcutHandler';
7
- export * from './Navbar';
8
- export * from './UIDesignSystem';
1
+ export * from './ShortcutDisplay.js';
2
+ export * from './StateIndicator.js';
3
+ export * from './ProgressIndicator.js';
4
+ export * from './Spotlight.js';
5
+ export * from './SpotlightProvider.js';
6
+ export * from './GlobalShortcutHandler.js';
7
+ export * from './Navbar.js';
8
+ export * from './UIDesignSystem.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,10 @@
1
1
  // 共享组件导出
2
- export * from './ShortcutDisplay';
3
- export * from './StateIndicator';
4
- export * from './ProgressIndicator';
5
- export * from './Spotlight';
6
- export * from './SpotlightProvider';
7
- export * from './GlobalShortcutHandler';
8
- export * from './Navbar';
9
- export * from './UIDesignSystem';
2
+ export * from './ShortcutDisplay.js';
3
+ export * from './StateIndicator.js';
4
+ export * from './ProgressIndicator.js';
5
+ export * from './Spotlight.js';
6
+ export * from './SpotlightProvider.js';
7
+ export * from './GlobalShortcutHandler.js';
8
+ export * from './Navbar.js';
9
+ export * from './UIDesignSystem.js';
10
10
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- export * from './ai';
2
- export * from './agent';
3
- export * from './theme';
4
- export * from './shortcuts';
5
- export * from './notifications';
6
- export * from './components';
7
- export * from './interactions';
8
- export * from './styles';
9
- export * from './capability';
10
- export * from './protocol';
11
- export * from './types';
12
- export { AppShell, Omnibar, TabsBar, DragHandle, type DragHandleProps, ThemeToggle, ThemeSelector, LoadingState, ErrorState, CollapsiblePanel, useKeyboardShortcuts, formatShortcut, type ShortcutSpec, ShortcutBadge, ShortcutPanel, radius, shadow, size, motion, gradient, hoverBackground, backgroundGradient, } from './shared';
1
+ export * from './ai/index.js';
2
+ export * from './agent/index.js';
3
+ export * from './theme/index.js';
4
+ export * from './shortcuts/index.js';
5
+ export * from './notifications/index.js';
6
+ export * from './components/index.js';
7
+ export * from './interactions/index.js';
8
+ export * from './styles/index.js';
9
+ export * from './capability/index.js';
10
+ export * from './protocol/index.js';
11
+ export * from './types/index.js';
12
+ export { AppShell, Omnibar, TabsBar, DragHandle, type DragHandleProps, ThemeToggle, ThemeSelector, LoadingState, ErrorState, CollapsiblePanel, useKeyboardShortcuts, formatShortcut, type ShortcutSpec, ShortcutBadge, ShortcutPanel, radius, shadow, size, motion, gradient, hoverBackground, backgroundGradient, } from './shared/index.js';
13
13
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  // 核心模块导出
2
- export * from './ai';
3
- export * from './agent';
4
- export * from './theme';
5
- export * from './shortcuts';
6
- export * from './notifications';
7
- export * from './components';
8
- export * from './interactions';
9
- export * from './styles';
10
- export * from './capability';
11
- export * from './protocol';
12
- export * from './types';
2
+ export * from './ai/index.js';
3
+ export * from './agent/index.js';
4
+ export * from './theme/index.js';
5
+ export * from './shortcuts/index.js';
6
+ export * from './notifications/index.js';
7
+ export * from './components/index.js';
8
+ export * from './interactions/index.js';
9
+ export * from './styles/index.js';
10
+ export * from './capability/index.js';
11
+ export * from './protocol/index.js';
12
+ export * from './types/index.js';
13
13
  // shared 模块与 theme/components 存在重名成员
14
14
  // (ThemeProvider/useTheme、EmptyState),顶层只显式导出无冲突部分
15
- export { AppShell, Omnibar, TabsBar, DragHandle, ThemeToggle, ThemeSelector, LoadingState, ErrorState, CollapsiblePanel, useKeyboardShortcuts, formatShortcut, ShortcutBadge, ShortcutPanel, radius, shadow, size, motion, gradient, hoverBackground, backgroundGradient, } from './shared';
15
+ export { AppShell, Omnibar, TabsBar, DragHandle, ThemeToggle, ThemeSelector, LoadingState, ErrorState, CollapsiblePanel, useKeyboardShortcuts, formatShortcut, ShortcutBadge, ShortcutPanel, radius, shadow, size, motion, gradient, hoverBackground, backgroundGradient, } from './shared/index.js';
16
16
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './interactionPatterns';
1
+ export * from './interactionPatterns.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // 交互模式导出
2
- export * from './interactionPatterns';
2
+ export * from './interactionPatterns.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { useNotificationStore } from '../notifications/notificationManager';
2
+ import { useNotificationStore } from '../notifications/notificationManager.js';
3
3
  // Toast 样式
4
4
  const toastStyles = {
5
5
  success: 'bg-green-500 text-white',
@@ -1,3 +1,3 @@
1
- export * from './notificationManager';
2
- export * from './ToastContainer';
1
+ export * from './notificationManager.js';
2
+ export * from './ToastContainer.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // 通知系统导出
2
- export * from './notificationManager';
3
- export * from './ToastContainer';
2
+ export * from './notificationManager.js';
3
+ export * from './ToastContainer.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { ToastConfig } from './types';
1
+ import type { ToastConfig } from './types.js';
2
2
  export interface NotificationStore {
3
3
  toasts: ToastConfig[];
4
4
  addToast: (toast: Omit<ToastConfig, 'id'>) => string;
@@ -32,7 +32,7 @@
32
32
  * 所有依赖都靠注入 —— 因为本模块要能在 vitest(无 Tauri)与浏览器预览里跑,
33
33
  * 直接 import `@tauri-apps/api` 会让非 Tauri 环境一进来就炸。
34
34
  */
35
- import { type Handoff } from "./deeplink";
35
+ import { type Handoff } from "./deeplink.js";
36
36
  /** 取队列的命令名。家族统一,各仓同名(Rust 侧 wrapper 在各仓自己的 commands.rs)。 */
37
37
  export declare const ZBIZ_TAKE_PENDING = "zbiz_take_pending";
38
38
  /**
@@ -35,7 +35,7 @@
35
35
  /* ------------------------------------------------------------------ *
36
36
  * 常量
37
37
  * ------------------------------------------------------------------ */
38
- import { DEEPLINK_EVENT } from "./deeplink";
38
+ import { DEEPLINK_EVENT } from "./deeplink.js";
39
39
  /** 取队列的命令名。家族统一,各仓同名(Rust 侧 wrapper 在各仓自己的 commands.rs)。 */
40
40
  export const ZBIZ_TAKE_PENDING = "zbiz_take_pending";
41
41
  /* ------------------------------------------------------------------ *
@@ -1,4 +1,4 @@
1
- export * from './deeplink';
2
- export * from './deeplinkReceiver';
3
- export * from './familyEvents';
1
+ export * from './deeplink.js';
2
+ export * from './deeplinkReceiver.js';
3
+ export * from './familyEvents.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -9,7 +9,7 @@
9
9
  //
10
10
  // 产品元数据在 ../types/product.ts —— 因为它是「会过期的数据」,
11
11
  // 该有主人,而不是和协议格式混在一起。
12
- export * from './deeplink';
13
- export * from './deeplinkReceiver';
14
- export * from './familyEvents';
12
+ export * from './deeplink.js';
13
+ export * from './deeplinkReceiver.js';
14
+ export * from './familyEvents.js';
15
15
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  import { Layout, Button, Space, Typography, Tooltip } from "antd";
4
4
  import { BulbOutlined, BulbFilled, MenuUnfoldOutlined, MenuFoldOutlined, FolderOutlined, } from "@ant-design/icons";
5
- import { useTheme } from "./ThemeContext";
5
+ import { useTheme } from "./ThemeContext.js";
6
6
  const { Header, Sider, Content } = Layout;
7
7
  export function AppShell({ title, icon, sidebar, headerExtra, children, siderWidth = 220, collapsedSider = false, onToggleSider, }) {
8
8
  const { mode, toggle } = useTheme();
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import { type ResolvedThemeMode, type ThemePreference } from "../theme/themeMode";
2
+ import { type ResolvedThemeMode, type ThemePreference } from "../theme/themeMode.js";
3
3
  interface ThemeContextType {
4
4
  mode: ResolvedThemeMode;
5
5
  /** 用户偏好:跟随系统 / 强制亮色 / 强制暗色 */
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useContext, useState, useEffect } from "react";
3
3
  import { theme as antdTheme, Button } from "antd";
4
4
  import { MoonOutlined, SunOutlined } from "@ant-design/icons";
5
- import { isThemePreference, nextPreference, readStoredPreference, resolveThemeMode, writeStoredPreference, } from "../theme/themeMode";
5
+ import { isThemePreference, nextPreference, readStoredPreference, resolveThemeMode, writeStoredPreference, } from "../theme/themeMode.js";
6
6
  const ThemeContext = createContext(undefined);
7
7
  /** 系统是否偏好暗色;无 window(SSR / Node 测试)时按亮色处理 */
8
8
  function systemPrefersDark() {
@@ -1,10 +1,10 @@
1
- export { AppShell } from "./AppShell";
2
- export { default as Omnibar } from "./Omnibar";
3
- export { default as TabsBar } from "./TabsBar";
4
- export { DragHandle, type DragHandleProps } from "./DragHandle";
5
- export { ThemeProvider, useTheme, ThemeToggle, ThemeSelector } from "./ThemeContext";
6
- export * from "./designTokens";
7
- export { EmptyState, LoadingState, ErrorState } from "./States";
8
- export { CollapsiblePanel } from "./CollapsiblePanel";
9
- export { useKeyboardShortcuts, formatShortcut, type ShortcutSpec, ShortcutBadge, ShortcutPanel } from "./useKeyboardShortcuts";
1
+ export { AppShell } from "./AppShell.js";
2
+ export { default as Omnibar } from "./Omnibar.js";
3
+ export { default as TabsBar } from "./TabsBar.js";
4
+ export { DragHandle, type DragHandleProps } from "./DragHandle.js";
5
+ export { ThemeProvider, useTheme, ThemeToggle, ThemeSelector } from "./ThemeContext.js";
6
+ export * from "./designTokens.js";
7
+ export { EmptyState, LoadingState, ErrorState } from "./States.js";
8
+ export { CollapsiblePanel } from "./CollapsiblePanel.js";
9
+ export { useKeyboardShortcuts, formatShortcut, type ShortcutSpec, ShortcutBadge, ShortcutPanel } from "./useKeyboardShortcuts.js";
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,10 @@
1
- export { AppShell } from "./AppShell";
2
- export { default as Omnibar } from "./Omnibar";
3
- export { default as TabsBar } from "./TabsBar";
4
- export { DragHandle } from "./DragHandle";
5
- export { ThemeProvider, useTheme, ThemeToggle, ThemeSelector } from "./ThemeContext";
6
- export * from "./designTokens";
7
- export { EmptyState, LoadingState, ErrorState } from "./States";
8
- export { CollapsiblePanel } from "./CollapsiblePanel";
9
- export { useKeyboardShortcuts, formatShortcut, ShortcutBadge, ShortcutPanel } from "./useKeyboardShortcuts";
1
+ export { AppShell } from "./AppShell.js";
2
+ export { default as Omnibar } from "./Omnibar.js";
3
+ export { default as TabsBar } from "./TabsBar.js";
4
+ export { DragHandle } from "./DragHandle.js";
5
+ export { ThemeProvider, useTheme, ThemeToggle, ThemeSelector } from "./ThemeContext.js";
6
+ export * from "./designTokens.js";
7
+ export { EmptyState, LoadingState, ErrorState } from "./States.js";
8
+ export { CollapsiblePanel } from "./CollapsiblePanel.js";
9
+ export { useKeyboardShortcuts, formatShortcut, ShortcutBadge, ShortcutPanel } from "./useKeyboardShortcuts.js";
10
10
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export * from './shortcutManager';
2
- export * from './types';
1
+ export * from './shortcutManager.js';
2
+ export * from './types.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // 快捷键系统导出
2
- export * from './shortcutManager';
3
- export * from './types';
2
+ export * from './shortcutManager.js';
3
+ export * from './types.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { ShortcutConfig } from './types';
1
+ import type { ShortcutConfig } from './types.js';
2
2
  declare class ShortcutConflictDetector {
3
3
  private shortcuts;
4
4
  register(shortcut: string, action: string): boolean;
@@ -1,3 +1,3 @@
1
- export * from './designTokens';
2
- export * from './globalStyles';
1
+ export * from './designTokens.js';
2
+ export * from './globalStyles.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // 样式模块导出
2
- export * from './designTokens';
3
- export * from './globalStyles';
2
+ export * from './designTokens.js';
3
+ export * from './globalStyles.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@
2
2
  * 主题 Context - 提供给组件使用
3
3
  */
4
4
  import React from 'react';
5
- import type { ThemeColors, ThemeName } from './types';
5
+ import type { ThemeColors, ThemeName } from './types.js';
6
6
  interface ThemeContextType {
7
7
  currentTheme: ThemeName;
8
8
  themeColors: ThemeColors;
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  * 主题 Context - 提供给组件使用
4
4
  */
5
5
  import { createContext, useContext, useEffect } from 'react';
6
- import { useThemeStore, initTheme } from './themeManager';
6
+ import { useThemeStore, initTheme } from './themeManager.js';
7
7
  const ThemeContext = createContext(undefined);
8
8
  export const ThemeProvider = ({ children }) => {
9
9
  useEffect(() => {
@@ -1,4 +1,4 @@
1
- export * from './themeManager';
2
- export * from './ThemeContext';
3
- export * from './types';
1
+ export * from './themeManager.js';
2
+ export * from './ThemeContext.js';
3
+ export * from './types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  // 主题系统导出
2
- export * from './themeManager';
3
- export * from './ThemeContext';
4
- export * from './types';
2
+ export * from './themeManager.js';
3
+ export * from './ThemeContext.js';
4
+ export * from './types.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { ThemeName, ThemeConfig, type ThemeColors } from './types';
1
+ import { ThemeName, ThemeConfig, type ThemeColors } from './types.js';
2
2
  export interface ThemeStore {
3
3
  currentTheme: ThemeName;
4
4
  themeConfig: ThemeConfig;
@@ -1,5 +1,5 @@
1
1
  import { create } from 'zustand';
2
- import { LEGACY_THEME_NAME_KEY, THEME_NAME_KEY } from './themeMode';
2
+ import { LEGACY_THEME_NAME_KEY, THEME_NAME_KEY } from './themeMode.js';
3
3
  // 主题配置
4
4
  const themes = {
5
5
  dark: {
@@ -1,2 +1,2 @@
1
- export * from './product';
1
+ export * from './product.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // 家族级类型定义。
2
- export * from './product';
2
+ export * from './product.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -20,7 +20,7 @@
20
20
  * 那三个仓没有用户可见的窗口,无法被 deep-link 唤起。
21
21
  * 把它们列进产品清单会让 box 的家族面板显示出三个打不开的卡片。
22
22
  */
23
- import type { DeepLinkResult } from "../protocol/deeplink";
23
+ import type { DeepLinkResult } from "../protocol/deeplink.js";
24
24
  /**
25
25
  * 家族产品 id。
26
26
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "z-biz-tool-shared",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "license": "MIT",
5
5
  "description": "z-biz-tool 核心共享模块(AI/Agent/主题/快捷键/组件)",
6
6
  "type": "module",
@@ -69,8 +69,9 @@
69
69
  ],
70
70
  "scripts": {
71
71
  "clean": "rm -rf dist",
72
- "build": "npm run clean && tsc -p tsconfig.build.json && node scripts/check-dist.mjs",
73
- "verify": "node scripts/check-dist.mjs",
72
+ "build": "npm run clean && tsc -p tsconfig.build.json && npm run fix-dist-ext && node scripts/check-dist.mjs && node scripts/check-dist-importable.mjs",
73
+ "fix-dist-ext": "node scripts/fix-dist-ext.mjs",
74
+ "verify": "node scripts/check-dist.mjs && node scripts/check-dist-importable.mjs",
74
75
  "prepublishOnly": "npm run build",
75
76
  "typecheck": "tsc --noEmit",
76
77
  "test": "node --experimental-strip-types --import ./tests/register-ts-ext.mjs --test tests/*.test.ts",