@midscene/visualizer 1.7.4 → 1.7.5-beta-20260420031652.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/es/component/config-selector/index.mjs +2 -2
- package/dist/es/component/history-selector/index.css +83 -16
- package/dist/es/component/history-selector/index.mjs +2 -2
- package/dist/es/component/playground/index.css +193 -1
- package/dist/es/component/playground-result/index.css +28 -0
- package/dist/es/component/playground-result/index.mjs +39 -54
- package/dist/es/component/prompt-input/index.css +165 -1
- package/dist/es/component/prompt-input/index.mjs +305 -130
- package/dist/es/component/universal-playground/index.css +47 -15
- package/dist/es/component/universal-playground/index.mjs +162 -102
- package/dist/es/utils/action-label.mjs +14 -0
- package/dist/es/utils/playground-utils.mjs +1 -9
- package/dist/es/utils/prompt-input-utils.mjs +45 -0
- package/dist/lib/component/config-selector/index.js +2 -2
- package/dist/lib/component/history-selector/index.css +83 -16
- package/dist/lib/component/history-selector/index.js +2 -2
- package/dist/lib/component/playground/index.css +193 -1
- package/dist/lib/component/playground-result/index.css +28 -0
- package/dist/lib/component/playground-result/index.js +39 -54
- package/dist/lib/component/prompt-input/index.css +165 -1
- package/dist/lib/component/prompt-input/index.js +307 -130
- package/dist/lib/component/universal-playground/index.css +47 -15
- package/dist/lib/component/universal-playground/index.js +161 -101
- package/dist/lib/utils/action-label.js +51 -0
- package/dist/lib/utils/playground-utils.js +2 -10
- package/dist/lib/utils/prompt-input-utils.js +82 -0
- package/dist/types/component/config-selector/index.d.ts +2 -0
- package/dist/types/component/history-selector/index.d.ts +2 -0
- package/dist/types/component/prompt-input/index.d.ts +2 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +50 -0
- package/dist/types/utils/action-label.d.ts +11 -0
- package/dist/types/utils/playground-utils.d.ts +6 -1
- package/dist/types/utils/prompt-input-utils.d.ts +24 -0
- package/package.json +5 -5
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DeviceAction } from '@midscene/core';
|
|
2
|
+
export interface InlineStructuredFieldConfig {
|
|
3
|
+
name: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Compute the list of action identifiers that should be offered in the prompt
|
|
8
|
+
* input's action dropdown.
|
|
9
|
+
*
|
|
10
|
+
* Inclusion rules:
|
|
11
|
+
* - If `actionSpace` is empty/undefined, fall back to the full metadata set
|
|
12
|
+
* so dry-mode / offline renderers still show something to pick from.
|
|
13
|
+
* - `aiAct` is included **only when the current `actionSpace` exposes it**.
|
|
14
|
+
* It is the universal "natural-language" action and usually lives in every
|
|
15
|
+
* device's action space, but we intentionally do not force-inject it —
|
|
16
|
+
* devices that truly cannot run `aiAct` should not see a broken entry.
|
|
17
|
+
* - `extraction` and `validation` APIs are kept even when not in the device's
|
|
18
|
+
* `actionSpace`: they are executed against the captured UI context rather
|
|
19
|
+
* than being dispatched to the device, so they apply universally.
|
|
20
|
+
* - All remaining `actionSpace` entries are included verbatim (device-specific
|
|
21
|
+
* actions surface automatically).
|
|
22
|
+
*/
|
|
23
|
+
export declare const getAvailablePromptActionTypes: (actionSpace: DeviceAction<any>[] | undefined) => string[];
|
|
24
|
+
export declare const getInlineStructuredFieldConfig: (actionSpace: DeviceAction<any>[] | undefined, selectedType: string) => InlineStructuredFieldConfig | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5-beta-20260420031652.0",
|
|
4
4
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
5
5
|
"homepage": "https://midscenejs.com/",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"antd": "^5.21.6",
|
|
59
59
|
"buffer": "6.0.3",
|
|
60
60
|
"dayjs": "^1.11.11",
|
|
61
|
-
"@midscene/core": "1.7.
|
|
62
|
-
"@midscene/
|
|
63
|
-
"@midscene/web": "1.7.
|
|
64
|
-
"@midscene/
|
|
61
|
+
"@midscene/core": "1.7.5-beta-20260420031652.0",
|
|
62
|
+
"@midscene/shared": "1.7.5-beta-20260420031652.0",
|
|
63
|
+
"@midscene/web": "1.7.5-beta-20260420031652.0",
|
|
64
|
+
"@midscene/playground": "1.7.5-beta-20260420031652.0"
|
|
65
65
|
},
|
|
66
66
|
"license": "MIT",
|
|
67
67
|
"scripts": {
|