@midscene/visualizer 1.0.1-beta-20251209112631.0 → 1.0.1-beta-20251211095502.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/player/index.mjs +2 -2
- package/dist/es/component/playground-result/index.mjs +12 -5
- package/dist/es/component/shiny-text/index.css +20 -3
- package/dist/es/component/shiny-text/index.mjs +3 -2
- package/dist/es/component/universal-playground/index.css +0 -1
- package/dist/es/component/universal-playground/index.mjs +49 -52
- package/dist/es/component/universal-playground/providers/indexeddb-storage-provider.mjs +13 -18
- package/dist/es/component/universal-playground/providers/storage-provider.mjs +2 -2
- package/dist/es/hooks/usePlaygroundExecution.mjs +105 -20
- package/dist/es/index.mjs +2 -2
- package/dist/es/store/store.mjs +23 -2
- package/dist/lib/component/player/index.js +1 -1
- package/dist/lib/component/playground-result/index.js +12 -5
- package/dist/lib/component/shiny-text/index.css +20 -3
- package/dist/lib/component/shiny-text/index.js +3 -2
- package/dist/lib/component/universal-playground/index.css +0 -1
- package/dist/lib/component/universal-playground/index.js +49 -51
- package/dist/lib/component/universal-playground/providers/indexeddb-storage-provider.js +13 -18
- package/dist/lib/component/universal-playground/providers/storage-provider.js +2 -2
- package/dist/lib/hooks/usePlaygroundExecution.js +105 -20
- package/dist/lib/index.js +3 -0
- package/dist/lib/store/store.js +26 -5
- package/dist/types/hooks/usePlaygroundExecution.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/store/store.d.ts +5 -1
- package/dist/types/types.d.ts +8 -2
- package/package.json +5 -5
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as Z from 'zustand';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const useGlobalPreference: Z.UseBoundStore<Z.StoreApi<{
|
|
3
3
|
backgroundVisible: boolean;
|
|
4
4
|
elementsVisible: boolean;
|
|
5
5
|
autoZoom: boolean;
|
|
6
|
+
modelCallDetailsEnabled: boolean;
|
|
7
|
+
darkModeEnabled: boolean;
|
|
6
8
|
setBackgroundVisible: (visible: boolean) => void;
|
|
7
9
|
setElementsVisible: (visible: boolean) => void;
|
|
8
10
|
setAutoZoom: (enabled: boolean) => void;
|
|
11
|
+
setModelCallDetailsEnabled: (enabled: boolean) => void;
|
|
12
|
+
setDarkModeEnabled: (enabled: boolean) => void;
|
|
9
13
|
}>>;
|
|
10
14
|
/**
|
|
11
15
|
* Service Mode
|
package/dist/types/types.d.ts
CHANGED
|
@@ -71,11 +71,11 @@ export declare const unwrapZodType: (field: ZodType) => {
|
|
|
71
71
|
hasDefault: boolean;
|
|
72
72
|
};
|
|
73
73
|
export declare const extractDefaultValue: (field: ZodType) => unknown;
|
|
74
|
-
import type {
|
|
74
|
+
import type { ExecutionDump, WebUIContext } from '@midscene/core';
|
|
75
75
|
import type { ExecutionOptions, PlaygroundAgent } from '@midscene/playground';
|
|
76
76
|
export interface PlaygroundResult {
|
|
77
77
|
result: any;
|
|
78
|
-
dump?:
|
|
78
|
+
dump?: ExecutionDump | null;
|
|
79
79
|
reportHTML?: string | null;
|
|
80
80
|
error: string | null;
|
|
81
81
|
}
|
|
@@ -109,9 +109,15 @@ export interface PlaygroundSDKLike {
|
|
|
109
109
|
executeAction(actionType: string, value: FormValue, options: ExecutionOptions): Promise<unknown>;
|
|
110
110
|
getActionSpace(context?: any): Promise<DeviceAction<unknown>[]>;
|
|
111
111
|
onProgressUpdate?: (callback: ProgressCallback) => void;
|
|
112
|
+
onDumpUpdate?: (callback: (dump: string, executionDump?: ExecutionDump) => void) => void;
|
|
112
113
|
cancelExecution?(requestId: string): Promise<void>;
|
|
114
|
+
getCurrentExecutionData?(): Promise<{
|
|
115
|
+
dump: ExecutionDump | null;
|
|
116
|
+
reportHTML: string | null;
|
|
117
|
+
}>;
|
|
113
118
|
overrideConfig?(config: any): Promise<void>;
|
|
114
119
|
checkStatus?(): Promise<boolean>;
|
|
120
|
+
getServiceMode?(): 'In-Browser-Extension' | 'Server';
|
|
115
121
|
id?: string;
|
|
116
122
|
}
|
|
117
123
|
export interface StorageProvider {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "1.0.1-beta-
|
|
3
|
+
"version": "1.0.1-beta-20251211095502.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",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"antd": "^5.21.6",
|
|
61
61
|
"buffer": "6.0.3",
|
|
62
62
|
"dayjs": "^1.11.11",
|
|
63
|
-
"@midscene/
|
|
64
|
-
"@midscene/
|
|
65
|
-
"@midscene/
|
|
66
|
-
"@midscene/
|
|
63
|
+
"@midscene/core": "1.0.1-beta-20251211095502.0",
|
|
64
|
+
"@midscene/playground": "1.0.1-beta-20251211095502.0",
|
|
65
|
+
"@midscene/web": "1.0.1-beta-20251211095502.0",
|
|
66
|
+
"@midscene/shared": "1.0.1-beta-20251211095502.0"
|
|
67
67
|
},
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"scripts": {
|