lingee-ui 0.0.22 → 0.0.23

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 (53) hide show
  1. package/dist/button/index.d.mts +1 -1
  2. package/dist/button/index.d.ts +1 -1
  3. package/dist/button/index.js +1 -1
  4. package/dist/button/index.mjs +1 -1
  5. package/dist/{chunk-G5VOLG6L.mjs → chunk-4VICYRWD.mjs} +1 -1
  6. package/dist/{chunk-3IO42CRF.js → chunk-B3BNV2BA.js} +1 -1
  7. package/dist/chunk-CHYJKCAM.mjs +1 -0
  8. package/dist/{chunk-GUINI25L.js → chunk-CJUKQFAJ.js} +1 -1
  9. package/dist/{chunk-IBX6LBGA.js → chunk-CQVDHCVR.js} +1 -1
  10. package/dist/{chunk-DIBP224Q.mjs → chunk-FDENIWMP.mjs} +1 -1
  11. package/dist/chunk-LS4LPBJT.js +2 -0
  12. package/dist/chunk-PEXFBRR4.mjs +2 -0
  13. package/dist/chunk-RNRDXECM.js +1 -0
  14. package/dist/{chunk-EOVPC2E4.js → chunk-RTCATZUZ.js} +1 -1
  15. package/dist/chunk-S5TTZBPX.mjs +1 -0
  16. package/dist/{chunk-KWRU5RWD.mjs → chunk-T3QXFSH7.mjs} +1 -1
  17. package/dist/{index-89atTLPD.d.mts → index-7pb5YOcq.d.mts} +2 -2
  18. package/dist/{index-89atTLPD.d.ts → index-7pb5YOcq.d.ts} +2 -2
  19. package/dist/index.css +1 -1
  20. package/dist/index.d.mts +8 -8
  21. package/dist/index.d.ts +8 -8
  22. package/dist/index.js +2 -2
  23. package/dist/index.mjs +2 -2
  24. package/dist/input/index.css +1 -1
  25. package/dist/input/index.js +1 -1
  26. package/dist/input/index.mjs +1 -1
  27. package/dist/tabs/index.css +1 -1
  28. package/dist/tabs/index.js +1 -1
  29. package/dist/tabs/index.mjs +1 -1
  30. package/dist/toast/index.css +1 -1
  31. package/dist/toast/index.d.mts +30 -1
  32. package/dist/toast/index.d.ts +30 -1
  33. package/dist/toast/index.js +1 -1
  34. package/dist/toast/index.mjs +1 -1
  35. package/dist/tooltip/index.js +1 -1
  36. package/dist/tooltip/index.mjs +1 -1
  37. package/dist/tree/index.css +1 -1
  38. package/dist/tree/index.js +1 -1
  39. package/dist/tree/index.mjs +1 -1
  40. package/package.json +1 -1
  41. package/skill/AGENTS-SNIPPET.md +1 -1
  42. package/skill/SKILL.md +2 -2
  43. package/skill/VERSION.json +2 -2
  44. package/skill/references/components/toast.md +29 -1
  45. package/skill/references/setup.md +1 -1
  46. package/skill/references/tokens.md +1 -1
  47. package/dist/chunk-H44VO62M.mjs +0 -1
  48. package/dist/chunk-JWOTGIJI.mjs +0 -2
  49. package/dist/chunk-KXUUVDLA.mjs +0 -1
  50. package/dist/chunk-P427AFIE.js +0 -1
  51. package/dist/chunk-TJMCJSHN.mjs +0 -1
  52. package/dist/chunk-TRDCCPJD.js +0 -1
  53. package/dist/chunk-U4ZQGUSG.js +0 -2
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { B as ButtonProps } from './index-89atTLPD.mjs';
2
- export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-89atTLPD.mjs';
1
+ import { B as ButtonProps } from './index-7pb5YOcq.mjs';
2
+ export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-7pb5YOcq.mjs';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
5
5
  import { TooltipProps } from './tooltip/index.mjs';
@@ -10,7 +10,7 @@ export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowP
10
10
  export { Switch, SwitchProps, SwitchSize } from './switch/index.mjs';
11
11
  export { Input, InputProps, InputShape, InputSize } from './input/index.mjs';
12
12
  export { T as Textarea, a as TextareaAutoSizeConfig, b as TextareaProps } from './index-CZhoE8dw.mjs';
13
- export { ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.mjs';
13
+ export { ToastAction, ToastActionCommand, ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.mjs';
14
14
  import * as react_jsx_runtime from 'react/jsx-runtime';
15
15
  import { T as TagProps } from './index-B0J-mUew.mjs';
16
16
  export { a as TagPresetColor, b as TagShape, c as TagSize, d as TagVariant, e as Tree, f as TreeAllowDropOptions, g as TreeCheckInfo, h as TreeDropInfo, i as TreeExpandAction, j as TreeExpandInfo, k as TreeFieldNames, l as TreeIndentGuide, m as TreeNodeAction, n as TreeNodeData, o as TreeNodeExtra, p as TreeNodeExtraRenderContext, q as TreeNodeItemPresentation, r as TreeNodeState, s as TreeNodeTag, t as TreeProps, u as TreeSelectInfo, v as TreeSize } from './index-B0J-mUew.mjs';
@@ -810,13 +810,13 @@ declare function confirm(options: DialogConfirmOptions): Promise<boolean>;
810
810
  */
811
811
  declare function closeConfirm(): void;
812
812
 
813
- /** 当前页面是否运行在宿主弹窗内(含端侧 webview 与浏览器 iframe 两种承载) */
813
+ /** 当前页面是否运行在宿主弹窗内(含端侧 webview 与 iframe 两种承载) */
814
814
  declare function isInHostModal(): boolean;
815
815
  /**
816
816
  * 读取宿主传入的业务入参(同步)。
817
817
  *
818
- * 仅端侧承载可用 —— 那边是同步 IPC。浏览器 iframe 承载下必然返回 null,
819
- * 需要用 `HostModalPage`(内部走异步通道)。
818
+ * 仅端侧承载可用 —— 那边是同步 IPC。iframe 承载下必然返回 null(即便页面注入了
819
+ * lingeeBridge),需要用 `HostModalPage`(内部走异步通道)。
820
820
  */
821
821
  declare function getHostModalParams<T = unknown>(): T | null;
822
822
  /**
@@ -848,8 +848,8 @@ interface HostModalPageProps<P> {
848
848
  * 若业务页还需等接口,传入 `!loading` 让 loading 占位保留到数据到位,
849
849
  * 避免撤早了露出骨架或空列表。
850
850
  *
851
- * ⚠️ 注意宿主有 8 秒兜底超时,超时会切「连接失败」错误态。
852
- * 接口可能慢过 8 秒的页面建议先渲染骨架并立即上报,数据到位后局部刷新。
851
+ * ⚠️ 宿主有兜底超时:数秒后撤掉 loading 直接露出页面,长时间仍未上报会切
852
+ * 「连接失败」错误态。接口可能较慢的页面建议先渲染骨架并立即上报,数据到位后局部刷新。
853
853
  */
854
854
  ready?: boolean;
855
855
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { B as ButtonProps } from './index-89atTLPD.js';
2
- export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-89atTLPD.js';
1
+ import { B as ButtonProps } from './index-7pb5YOcq.js';
2
+ export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-7pb5YOcq.js';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
5
5
  import { TooltipProps } from './tooltip/index.js';
@@ -10,7 +10,7 @@ export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowP
10
10
  export { Switch, SwitchProps, SwitchSize } from './switch/index.js';
11
11
  export { Input, InputProps, InputShape, InputSize } from './input/index.js';
12
12
  export { T as Textarea, a as TextareaAutoSizeConfig, b as TextareaProps } from './index-CZhoE8dw.js';
13
- export { ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.js';
13
+ export { ToastAction, ToastActionCommand, ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.js';
14
14
  import * as react_jsx_runtime from 'react/jsx-runtime';
15
15
  import { T as TagProps } from './index-Dmm11UAd.js';
16
16
  export { a as TagPresetColor, b as TagShape, c as TagSize, d as TagVariant, e as Tree, f as TreeAllowDropOptions, g as TreeCheckInfo, h as TreeDropInfo, i as TreeExpandAction, j as TreeExpandInfo, k as TreeFieldNames, l as TreeIndentGuide, m as TreeNodeAction, n as TreeNodeData, o as TreeNodeExtra, p as TreeNodeExtraRenderContext, q as TreeNodeItemPresentation, r as TreeNodeState, s as TreeNodeTag, t as TreeProps, u as TreeSelectInfo, v as TreeSize } from './index-Dmm11UAd.js';
@@ -810,13 +810,13 @@ declare function confirm(options: DialogConfirmOptions): Promise<boolean>;
810
810
  */
811
811
  declare function closeConfirm(): void;
812
812
 
813
- /** 当前页面是否运行在宿主弹窗内(含端侧 webview 与浏览器 iframe 两种承载) */
813
+ /** 当前页面是否运行在宿主弹窗内(含端侧 webview 与 iframe 两种承载) */
814
814
  declare function isInHostModal(): boolean;
815
815
  /**
816
816
  * 读取宿主传入的业务入参(同步)。
817
817
  *
818
- * 仅端侧承载可用 —— 那边是同步 IPC。浏览器 iframe 承载下必然返回 null,
819
- * 需要用 `HostModalPage`(内部走异步通道)。
818
+ * 仅端侧承载可用 —— 那边是同步 IPC。iframe 承载下必然返回 null(即便页面注入了
819
+ * lingeeBridge),需要用 `HostModalPage`(内部走异步通道)。
820
820
  */
821
821
  declare function getHostModalParams<T = unknown>(): T | null;
822
822
  /**
@@ -848,8 +848,8 @@ interface HostModalPageProps<P> {
848
848
  * 若业务页还需等接口,传入 `!loading` 让 loading 占位保留到数据到位,
849
849
  * 避免撤早了露出骨架或空列表。
850
850
  *
851
- * ⚠️ 注意宿主有 8 秒兜底超时,超时会切「连接失败」错误态。
852
- * 接口可能慢过 8 秒的页面建议先渲染骨架并立即上报,数据到位后局部刷新。
851
+ * ⚠️ 宿主有兜底超时:数秒后撤掉 loading 直接露出页面,长时间仍未上报会切
852
+ * 「连接失败」错误态。接口可能较慢的页面建议先渲染骨架并立即上报,数据到位后局部刷新。
853
853
  */
854
854
  ready?: boolean;
855
855
  /**