chore: @gkd-kit/api@0.6.0

This commit is contained in:
lisonge 2024-10-17 21:44:47 +08:00
parent 06cc806834
commit adb4f101fb
2 changed files with 42 additions and 21 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@gkd-kit/api", "name": "@gkd-kit/api",
"version": "0.5.0", "version": "0.6.0",
"description": "a typescript kit for gkd", "description": "a typescript kit for gkd",
"type": "module", "type": "module",
"main": "./src/index.ts", "main": "./src/index.ts",

View File

@ -237,7 +237,7 @@ export interface RawCommonProps {
/** /**
* 注意: 将在未来版本弃用此属性, 使 {@link fastQuery} * 注意: 将在未来版本弃用此属性, 使 {@link fastQuery}
* *
* , `末尾属性选择器``第一个属性选择表达式` 使 * , `末尾属性选择器``第一个属性选择表达式` 使
* *
* - [id='abc'] * - [id='abc']
@ -267,40 +267,39 @@ export interface RawCommonProps {
/** /**
* , **** 使 * , **** 使
* *
* [](https://gkd.li/selector/optimize) * [](https://gkd.li/selector/optimize)
* *
* @default false * @default false
*/ */
fastQuery?: boolean; fastQuery?: boolean;
/** /**
* *
* *
* GKD , * GKD ,
* *
* 常见情况是: 如果匹配的速度跟不上节点事件数量的产生速度, * 常见情况是: 如果匹配的速度跟不上节点事件数量的产生速度,
* *
* , (), * , (),
* *
* , , 使 * , , 使
* *
* , matchRoot=true, * , matchRoot=true,
* *
* [-16105497](https://i.gkd.li/i/16105497) 为例, 事件节点总是 _id=8 的节点, 此时如果你的选择器是 `[text*="15秒"] - [text*="跳过"]` * [-16105497](https://i.gkd.li/i/16105497) 为例, 事件节点总是 _id=8 的节点, 此时如果你的选择器是 `[text*="15秒"] - [text*="跳过"]`
* *
* matchRoot=false , * matchRoot=false ,
* *
* ![image](https://github.com/gkd-kit/gkd/assets/38517192/ec60677f-f0d7-4b0d-8ac2-56306852e4a0) * ![image](https://github.com/gkd-kit/gkd/assets/38517192/ec60677f-f0d7-4b0d-8ac2-56306852e4a0)
* *
* matchRoot=true , * matchRoot=true ,
* *
* ![image](https://github.com/gkd-kit/gkd/assets/38517192/33eb9029-c3c3-4a2e-ab60-a1f099371fef) * ![image](https://github.com/gkd-kit/gkd/assets/38517192/33eb9029-c3c3-4a2e-ab60-a1f099371fef)
* *
* @default false * @default false
*/ */
matchRoot?:boolean matchRoot?: boolean;
/** /**
* 单位: 毫秒 * 单位: 毫秒
@ -395,6 +394,28 @@ export interface RawCommonProps {
*/ */
forcedTime?: Integer; forcedTime?: Integer;
/**
* , ,
*
* , ( order ) -> ( order )
*
* , ,
*
* ,
*
* 使用场景: 某些应用开启很多规则, ,
*
* 注意: 如果全部规则都是优先级规则或只有一个规则,
*/
priorityTime?: Integer;
/**
* , ,
*
* @default 1
*/
priorityActionMaximum?: Integer;
/** /**
* / , * / ,
*/ */
@ -580,9 +601,9 @@ export interface RawAppRuleProps {
* Id startWith activityIds , * Id startWith activityIds ,
* *
* : `undefined` () `[]` (使) * : `undefined` () `[]` (使)
* *
* activityId `.` , appId + activityId * activityId `.` , appId + activityId
* *
* : `com.tencent.mm` () `.MainActivity` `com.tencent.mm.MainActivity` * : `com.tencent.mm` () `.MainActivity` `com.tencent.mm.MainActivity`
*/ */
activityIds?: IArray<string>; activityIds?: IArray<string>;
@ -591,7 +612,7 @@ export interface RawAppRuleProps {
* Id startWith excludeActivityIds , * Id startWith excludeActivityIds ,
* *
* activityIds * activityIds
* *
* activityId `.` , activityIds * activityId `.` , activityIds
*/ */
excludeActivityIds?: IArray<string>; excludeActivityIds?: IArray<string>;
@ -699,7 +720,7 @@ export type Position = {
* , , , 2.5 '2.5' * , , , 2.5 '2.5'
* *
* left/top/right/bottom/width/height/random * left/top/right/bottom/width/height/random
* *
* random 0-1 , random , 'random-random'=0 * random 0-1 , random , 'random-random'=0
* *
* @example * @example