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",
"version": "0.5.0",
"version": "0.6.0",
"description": "a typescript kit for gkd",
"type": "module",
"main": "./src/index.ts",

View File

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