clickgo 7.0.0 → 7.2.0
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/dist/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/clickgo.d.ts +14 -0
- package/dist/index.js +1 -1
- package/dist/lib/core.d.ts +15 -1
- package/dist/lib/form.d.ts +14 -0
- package/dist/lib/native/events.d.ts +37 -0
- package/dist/lib/native/update.d.ts +48 -0
- package/dist/lib/native.d.ts +16 -0
- package/doc/clickgo-rag.md +1181 -564
- package/package.json +3 -2
package/dist/app/demo.cga
CHANGED
|
Binary file
|
package/dist/app/task.cga
CHANGED
|
Binary file
|
package/dist/clickgo.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import * as lDom from './lib/dom';
|
|
|
21
21
|
import * as lForm from './lib/form';
|
|
22
22
|
import * as lFs from './lib/fs';
|
|
23
23
|
import * as lNative from './lib/native';
|
|
24
|
+
import type * as lNativeEvents from './lib/native/events';
|
|
24
25
|
import * as lStorage from './lib/storage';
|
|
25
26
|
import * as lTask from './lib/task';
|
|
26
27
|
import * as lTheme from './lib/theme';
|
|
@@ -70,6 +71,19 @@ export declare function getDevice(): typeof device;
|
|
|
70
71
|
export declare function hasFrame(): boolean;
|
|
71
72
|
/** --- 全局类 --- */
|
|
72
73
|
export declare abstract class AbstractBoot {
|
|
74
|
+
/**
|
|
75
|
+
* --- Native 普通启动及再次启动事件;网页不触发,App/Form 要求 root ---
|
|
76
|
+
* @param event 业务参数、原生工作目录、来源及请求 ID
|
|
77
|
+
* @returns 无;各层级独立收到通知,同一业务动作由应用选择一处执行
|
|
78
|
+
*/
|
|
79
|
+
onNativeLaunch(event: lNativeEvents.INativeLaunchEvent): void | Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* --- Native 文件打开全局事件,要求宿主启用 openFiles;App/Form 要求 root ---
|
|
82
|
+
* @param paths 不含 /storage/ 的 ClickGo 绝对文件路径
|
|
83
|
+
* @param info startup、second-instance、association 或 drop 来源及请求 ID
|
|
84
|
+
* @returns 无;各层级独立通知,业务自行确认、保存和打开
|
|
85
|
+
*/
|
|
86
|
+
onNativeOpenFiles(paths: string[], info: lNativeEvents.INativeOpenFilesInfo): void | Promise<void>;
|
|
73
87
|
/** --- 当前是否是 debug 模式 --- */
|
|
74
88
|
private readonly _debug;
|
|
75
89
|
/** --- 切勿传给 App --- */
|