assistsx-js 0.0.2026 → 0.0.2027
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/AssistsX.d.ts +5 -0
- package/dist/AssistsX.js +8 -0
- package/dist/CallMethod.d.ts +1 -0
- package/dist/CallMethod.js +1 -0
- package/package.json +1 -1
- package/src/AssistsX.ts +9 -0
- package/src/CallMethod.ts +1 -0
package/dist/AssistsX.d.ts
CHANGED
|
@@ -120,6 +120,11 @@ export declare class AssistsX {
|
|
|
120
120
|
* @returns 是否设置成功
|
|
121
121
|
*/
|
|
122
122
|
static setNodeText(node: Node, text: string): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* 获取剪贴板最新文本
|
|
125
|
+
* @returns 剪贴板最新文本
|
|
126
|
+
*/
|
|
127
|
+
static getClipboardLatestText(): any;
|
|
123
128
|
static isAppInstalled(packageName: string): boolean;
|
|
124
129
|
/**
|
|
125
130
|
* 对指定节点进行截图
|
package/dist/AssistsX.js
CHANGED
|
@@ -159,6 +159,14 @@ export class AssistsX {
|
|
|
159
159
|
});
|
|
160
160
|
return response.getDataOrDefault(false);
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* 获取剪贴板最新文本
|
|
164
|
+
* @returns 剪贴板最新文本
|
|
165
|
+
*/
|
|
166
|
+
static getClipboardLatestText() {
|
|
167
|
+
const response = this.call(CallMethod.getClipboardLatestText);
|
|
168
|
+
return response.getDataOrDefault({});
|
|
169
|
+
}
|
|
162
170
|
static isAppInstalled(packageName) {
|
|
163
171
|
const response = this.call(CallMethod.isAppInstalled, {
|
|
164
172
|
args: { packageName },
|
package/dist/CallMethod.d.ts
CHANGED
|
@@ -48,5 +48,6 @@ export declare const CallMethod: {
|
|
|
48
48
|
readonly getDeviceInfo: "getDeviceInfo";
|
|
49
49
|
readonly getNetworkType: "getNetworkType";
|
|
50
50
|
readonly isAppInstalled: "isAppInstalled";
|
|
51
|
+
readonly getClipboardLatestText: "getClipboardLatestText";
|
|
51
52
|
};
|
|
52
53
|
export type CallMethodType = (typeof CallMethod)[keyof typeof CallMethod];
|
package/dist/CallMethod.js
CHANGED
package/package.json
CHANGED
package/src/AssistsX.ts
CHANGED
|
@@ -255,6 +255,15 @@ export class AssistsX {
|
|
|
255
255
|
});
|
|
256
256
|
return response.getDataOrDefault(false);
|
|
257
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* 获取剪贴板最新文本
|
|
260
|
+
* @returns 剪贴板最新文本
|
|
261
|
+
*/
|
|
262
|
+
public static getClipboardLatestText(): any {
|
|
263
|
+
const response = this.call(CallMethod.getClipboardLatestText);
|
|
264
|
+
return response.getDataOrDefault({});
|
|
265
|
+
}
|
|
266
|
+
|
|
258
267
|
public static isAppInstalled(packageName: string): boolean {
|
|
259
268
|
const response = this.call(CallMethod.isAppInstalled, {
|
|
260
269
|
args: { packageName },
|