clickgo 7.2.0 → 7.3.1

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.
@@ -600,6 +600,15 @@ export interface IListItemdblclickedEvent {
600
600
  'arrow': boolean;
601
601
  };
602
602
  }
603
+ /** --- 面包屑历史层级的激活通知,不包含自动跳转行为 --- */
604
+ export interface IBreadcrumbSelectEvent {
605
+ 'detail': {
606
+ /** --- 层级标识,未设置 name 时为 label --- */
607
+ 'name': string;
608
+ /** --- 当前显示顺序中的零起始索引 --- */
609
+ 'index': number;
610
+ };
611
+ }
603
612
  export interface INavItemSelectEvent extends ICustomEvent {
604
613
  'detail': {
605
614
  'name': string;
@@ -0,0 +1,25 @@
1
+ /** --- 共享文本编码;GB18030 不使用 BOM --- */
2
+ export type TTextEncoding = 'utf-8' | 'utf-16le' | 'utf-16be' | 'gb18030';
3
+ /** --- 文本保存编码及是否保留文件头 BOM --- */
4
+ export interface ITextEncoding {
5
+ 'encoding': TTextEncoding;
6
+ 'bom': boolean;
7
+ }
8
+ /** --- 严格解码结果,BOM 不计入正文 --- */
9
+ export interface IDecodedText extends ITextEncoding {
10
+ 'text': string;
11
+ }
12
+ /**
13
+ * --- 严格解码文本;自动模式按 BOM 识别,否则采用 UTF-8,不猜测传统编码 ---
14
+ * @param data 原始字节,Uint8Array 仅处理其视图范围
15
+ * @param encoding 显式编码;省略时自动识别,显式编码与 BOM 冲突时失败
16
+ * @returns 正文与实际采用的编码/BOM;非法字节、不支持的编码或 UTF-32 BOM 为 false
17
+ */
18
+ export declare function decodeText(data: ArrayBuffer | Uint8Array, encoding?: TTextEncoding): IDecodedText | false;
19
+ /**
20
+ * --- 将正文无损编码为字节,不自动规范化换行 ---
21
+ * @param text 正文,不含文件头 BOM;正文自身的 U+FEFF 保留
22
+ * @param options 编码及 BOM;默认 UTF-8 且无 BOM,GB18030 不允许 BOM
23
+ * @returns 新字节数组;非法 UTF-16 代理项、无损编码失败或无效选项为 false,不用替代字符
24
+ */
25
+ export declare function encodeText(text: string, options?: ITextEncoding): Uint8Array<ArrayBuffer> | false;
@@ -1,3 +1,5 @@
1
+ export { decodeText, encodeText } from './tool/encoding.js';
2
+ export type { TTextEncoding, ITextEncoding, IDecodedText } from './tool/encoding.js';
1
3
  /**
2
4
  * Copyright 2007-2025 MAIYUN.NET
3
5
  *
Binary file
Binary file
Binary file
Binary file
Binary file