@midscene/visualizer 0.28.5-beta-20250911120303.0 → 0.28.5

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.
@@ -6,7 +6,6 @@ import { usePlaygroundExecution } from "../../hooks/usePlaygroundExecution.mjs";
6
6
  import { usePlaygroundState } from "../../hooks/usePlaygroundState.mjs";
7
7
  import { useEnvConfig } from "../../store/store.mjs";
8
8
  import { ContextPreview } from "../context-preview/index.mjs";
9
- import { EnvConfigReminder } from "../env-config-reminder/index.mjs";
10
9
  import { PlaygroundResultView } from "../playground-result/index.mjs";
11
10
  import "./index.css";
12
11
  import avatar from "../../icons/avatar.mjs";
@@ -36,8 +35,7 @@ function UniversalPlayground(param) {
36
35
  let { playgroundSDK, storage, contextProvider, config: componentConfig = {}, branding = {}, className = '', dryMode = false, showContextPreview = true } = param;
37
36
  const [form] = Form.useForm();
38
37
  const { deepThink, screenshotIncluded, domIncluded, config } = useEnvConfig();
39
- const enablePersistence = false !== componentConfig.enablePersistence;
40
- const { loading, setLoading, infoList, setInfoList, actionSpace, actionSpaceLoading, uiContextPreview, setUiContextPreview, showScrollToBottomButton, verticalMode, replayCounter, setReplayCounter, infoListRef, currentRunningIdRef, interruptedFlagRef, clearInfoList, handleScrollToBottom } = usePlaygroundState(playgroundSDK, storage, contextProvider, enablePersistence);
38
+ const { loading, setLoading, infoList, setInfoList, actionSpace, actionSpaceLoading, uiContextPreview, setUiContextPreview, showScrollToBottomButton, verticalMode, replayCounter, setReplayCounter, infoListRef, currentRunningIdRef, interruptedFlagRef, clearInfoList, refreshContext, handleScrollToBottom } = usePlaygroundState(playgroundSDK, storage, contextProvider);
41
39
  const { handleRun: executeAction, handleStop, canStop } = usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef);
42
40
  useEffect(()=>{
43
41
  const completeConfig = {
@@ -67,10 +65,10 @@ function UniversalPlayground(param) {
67
65
  form,
68
66
  executeAction
69
67
  ]);
70
- const configAlreadySet = Object.keys(config || {}).length >= 1;
71
- const runButtonEnabled = componentConfig.serverMode || !dryMode && !actionSpaceLoading && configAlreadySet;
68
+ const runButtonEnabled = !dryMode && !actionSpaceLoading;
72
69
  const selectedType = Form.useWatch('type', form);
73
70
  const finalShowContextPreview = showContextPreview && false !== componentConfig.showContextPreview;
71
+ const enablePersistence = false !== componentConfig.enablePersistence;
74
72
  const layout = componentConfig.layout || 'vertical';
75
73
  const showVersionInfo = false !== componentConfig.showVersionInfo;
76
74
  return /*#__PURE__*/ jsx("div", {
@@ -91,7 +89,7 @@ function UniversalPlayground(param) {
91
89
  /*#__PURE__*/ jsxs("div", {
92
90
  className: "middle-dialog-area",
93
91
  children: [
94
- infoList.length > 1 && /*#__PURE__*/ jsx("div", {
92
+ infoList.length > 1 && enablePersistence && /*#__PURE__*/ jsx("div", {
95
93
  className: "clear-button-container",
96
94
  children: /*#__PURE__*/ jsx(Button, {
97
95
  size: "small",
@@ -242,23 +240,20 @@ function UniversalPlayground(param) {
242
240
  })
243
241
  ]
244
242
  }),
245
- /*#__PURE__*/ jsxs("div", {
243
+ /*#__PURE__*/ jsx("div", {
246
244
  className: "bottom-input-section",
247
- children: [
248
- !componentConfig.serverMode && /*#__PURE__*/ jsx(EnvConfigReminder, {}),
249
- /*#__PURE__*/ jsx(PromptInput, {
250
- runButtonEnabled: runButtonEnabled,
251
- form: form,
252
- serviceMode: 'Server',
253
- selectedType: selectedType,
254
- dryMode: dryMode,
255
- stoppable: canStop,
256
- loading: loading,
257
- onRun: handleFormRun,
258
- onStop: handleStop,
259
- actionSpace: actionSpace
260
- })
261
- ]
245
+ children: /*#__PURE__*/ jsx(PromptInput, {
246
+ runButtonEnabled: runButtonEnabled,
247
+ form: form,
248
+ serviceMode: 'Server',
249
+ selectedType: selectedType,
250
+ dryMode: dryMode,
251
+ stoppable: canStop,
252
+ loading: loading,
253
+ onRun: handleFormRun,
254
+ onStop: handleStop,
255
+ actionSpace: actionSpace
256
+ })
262
257
  }),
263
258
  showVersionInfo && branding.version && /*#__PURE__*/ jsx("div", {
264
259
  className: "version-info-section",
@@ -1,7 +1,6 @@
1
1
  import { useCallback, useEffect, useRef, useState } from "react";
2
2
  import { WELCOME_MESSAGE_TEMPLATE } from "../utils/constants.mjs";
3
3
  function usePlaygroundState(playgroundSDK, storage, contextProvider) {
4
- let enablePersistence = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : true;
5
4
  const [loading, setLoading] = useState(false);
6
5
  const [infoList, setInfoList] = useState([]);
7
6
  const [actionSpace, setActionSpace] = useState([]);
@@ -20,7 +19,7 @@ function usePlaygroundState(playgroundSDK, storage, contextProvider) {
20
19
  id: 'welcome',
21
20
  timestamp: new Date()
22
21
  };
23
- if (enablePersistence && (null == storage ? void 0 : storage.loadMessages)) try {
22
+ if (null == storage ? void 0 : storage.loadMessages) try {
24
23
  const storedMessages = await storage.loadMessages();
25
24
  const hasWelcomeMessage = storedMessages.some((msg)=>'welcome' === msg.id);
26
25
  hasWelcomeMessage ? setInfoList(storedMessages) : setInfoList([
@@ -40,13 +39,12 @@ function usePlaygroundState(playgroundSDK, storage, contextProvider) {
40
39
  if (0 === infoList.length) initializeMessages();
41
40
  }, []);
42
41
  useEffect(()=>{
43
- if (enablePersistence && (null == storage ? void 0 : storage.saveMessages) && infoList.length > 1) storage.saveMessages(infoList).catch((error)=>{
42
+ if ((null == storage ? void 0 : storage.saveMessages) && infoList.length > 1) storage.saveMessages(infoList).catch((error)=>{
44
43
  console.error('Failed to save messages:', error);
45
44
  });
46
45
  }, [
47
46
  infoList,
48
- storage,
49
- enablePersistence
47
+ storage
50
48
  ]);
51
49
  useEffect(()=>{
52
50
  if (!(null == contextProvider ? void 0 : contextProvider.getUIContext) || uiContextPreview) return;
@@ -135,14 +133,13 @@ function usePlaygroundState(playgroundSDK, storage, contextProvider) {
135
133
  setInfoList([
136
134
  welcomeMessage
137
135
  ]);
138
- if (enablePersistence && (null == storage ? void 0 : storage.clearMessages)) try {
136
+ if (null == storage ? void 0 : storage.clearMessages) try {
139
137
  await storage.clearMessages();
140
138
  } catch (error) {
141
139
  console.error('Failed to clear stored messages:', error);
142
140
  }
143
141
  }, [
144
- storage,
145
- enablePersistence
142
+ storage
146
143
  ]);
147
144
  const refreshContext = useCallback(async ()=>{
148
145
  if (null == contextProvider ? void 0 : contextProvider.refreshContext) try {
package/dist/es/index.mjs CHANGED
@@ -4,7 +4,6 @@ import { allScriptsFromDump, generateAnimationScripts } from "./utils/replay-scr
4
4
  import { useEnvConfig } from "./store/store.mjs";
5
5
  import { colorForName, globalThemeConfig, highlightColorForType } from "./utils/color.mjs";
6
6
  import { EnvConfig } from "./component/env-config/index.mjs";
7
- import { EnvConfigReminder } from "./component/env-config-reminder/index.mjs";
8
7
  import { Logo } from "./component/logo/index.mjs";
9
8
  import { iconForStatus, timeCostStrElement } from "./component/misc/index.mjs";
10
9
  import { useServerValid } from "./hooks/useServerValid.mjs";
@@ -21,4 +20,4 @@ import shiny_text from "./component/shiny-text/index.mjs";
21
20
  import universal_playground, { UniversalPlayground } from "./component/universal-playground/index.mjs";
22
21
  import { LocalStorageProvider, MemoryStorageProvider, NoOpStorageProvider } from "./component/universal-playground/providers/storage-provider.mjs";
23
22
  import { AgentContextProvider, BaseContextProvider, NoOpContextProvider, StaticContextProvider } from "./component/universal-playground/providers/context-provider.mjs";
24
- export { AgentContextProvider, BaseContextProvider, Blackboard, ContextPreview, EnvConfig, EnvConfigReminder, GithubStar, LocalStorageProvider, Logo, MemoryStorageProvider, NoOpContextProvider, NoOpStorageProvider, Player, PlaygroundResultView, PromptInput, ServiceModeControl, shiny_text as ShinyText, StaticContextProvider, UniversalPlayground, universal_playground as UniversalPlaygroundDefault, actionNameForType, allScriptsFromDump, colorForName, filterBase64Value, generateAnimationScripts, getPlaceholderForType, globalThemeConfig, highlightColorForType, iconForStatus, staticAgentFromContext, timeCostStrElement, timeStr, useEnvConfig, useServerValid };
23
+ export { AgentContextProvider, BaseContextProvider, Blackboard, ContextPreview, EnvConfig, GithubStar, LocalStorageProvider, Logo, MemoryStorageProvider, NoOpContextProvider, NoOpStorageProvider, Player, PlaygroundResultView, PromptInput, ServiceModeControl, shiny_text as ShinyText, StaticContextProvider, UniversalPlayground, universal_playground as UniversalPlaygroundDefault, actionNameForType, allScriptsFromDump, colorForName, filterBase64Value, generateAnimationScripts, getPlaceholderForType, globalThemeConfig, highlightColorForType, iconForStatus, staticAgentFromContext, timeCostStrElement, timeStr, useEnvConfig, useServerValid };
@@ -45,7 +45,6 @@ const usePlaygroundExecution_js_namespaceObject = require("../../hooks/usePlaygr
45
45
  const usePlaygroundState_js_namespaceObject = require("../../hooks/usePlaygroundState.js");
46
46
  const store_js_namespaceObject = require("../../store/store.js");
47
47
  const index_js_namespaceObject = require("../context-preview/index.js");
48
- const external_env_config_reminder_index_js_namespaceObject = require("../env-config-reminder/index.js");
49
48
  const external_playground_result_index_js_namespaceObject = require("../playground-result/index.js");
50
49
  require("./index.css");
51
50
  const avatar_js_namespaceObject = require("../../icons/avatar.js");
@@ -76,8 +75,7 @@ function UniversalPlayground(param) {
76
75
  let { playgroundSDK, storage, contextProvider, config: componentConfig = {}, branding = {}, className = '', dryMode = false, showContextPreview = true } = param;
77
76
  const [form] = external_antd_namespaceObject.Form.useForm();
78
77
  const { deepThink, screenshotIncluded, domIncluded, config } = (0, store_js_namespaceObject.useEnvConfig)();
79
- const enablePersistence = false !== componentConfig.enablePersistence;
80
- const { loading, setLoading, infoList, setInfoList, actionSpace, actionSpaceLoading, uiContextPreview, setUiContextPreview, showScrollToBottomButton, verticalMode, replayCounter, setReplayCounter, infoListRef, currentRunningIdRef, interruptedFlagRef, clearInfoList, handleScrollToBottom } = (0, usePlaygroundState_js_namespaceObject.usePlaygroundState)(playgroundSDK, storage, contextProvider, enablePersistence);
78
+ const { loading, setLoading, infoList, setInfoList, actionSpace, actionSpaceLoading, uiContextPreview, setUiContextPreview, showScrollToBottomButton, verticalMode, replayCounter, setReplayCounter, infoListRef, currentRunningIdRef, interruptedFlagRef, clearInfoList, refreshContext, handleScrollToBottom } = (0, usePlaygroundState_js_namespaceObject.usePlaygroundState)(playgroundSDK, storage, contextProvider);
81
79
  const { handleRun: executeAction, handleStop, canStop } = (0, usePlaygroundExecution_js_namespaceObject.usePlaygroundExecution)(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef);
82
80
  (0, external_react_namespaceObject.useEffect)(()=>{
83
81
  const completeConfig = {
@@ -107,10 +105,10 @@ function UniversalPlayground(param) {
107
105
  form,
108
106
  executeAction
109
107
  ]);
110
- const configAlreadySet = Object.keys(config || {}).length >= 1;
111
- const runButtonEnabled = componentConfig.serverMode || !dryMode && !actionSpaceLoading && configAlreadySet;
108
+ const runButtonEnabled = !dryMode && !actionSpaceLoading;
112
109
  const selectedType = external_antd_namespaceObject.Form.useWatch('type', form);
113
110
  const finalShowContextPreview = showContextPreview && false !== componentConfig.showContextPreview;
111
+ const enablePersistence = false !== componentConfig.enablePersistence;
114
112
  const layout = componentConfig.layout || 'vertical';
115
113
  const showVersionInfo = false !== componentConfig.showVersionInfo;
116
114
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
@@ -131,7 +129,7 @@ function UniversalPlayground(param) {
131
129
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
132
130
  className: "middle-dialog-area",
133
131
  children: [
134
- infoList.length > 1 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
132
+ infoList.length > 1 && enablePersistence && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
135
133
  className: "clear-button-container",
136
134
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Button, {
137
135
  size: "small",
@@ -282,23 +280,20 @@ function UniversalPlayground(param) {
282
280
  })
283
281
  ]
284
282
  }),
285
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
283
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
286
284
  className: "bottom-input-section",
287
- children: [
288
- !componentConfig.serverMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_env_config_reminder_index_js_namespaceObject.EnvConfigReminder, {}),
289
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_prompt_input_index_js_namespaceObject.PromptInput, {
290
- runButtonEnabled: runButtonEnabled,
291
- form: form,
292
- serviceMode: 'Server',
293
- selectedType: selectedType,
294
- dryMode: dryMode,
295
- stoppable: canStop,
296
- loading: loading,
297
- onRun: handleFormRun,
298
- onStop: handleStop,
299
- actionSpace: actionSpace
300
- })
301
- ]
285
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_prompt_input_index_js_namespaceObject.PromptInput, {
286
+ runButtonEnabled: runButtonEnabled,
287
+ form: form,
288
+ serviceMode: 'Server',
289
+ selectedType: selectedType,
290
+ dryMode: dryMode,
291
+ stoppable: canStop,
292
+ loading: loading,
293
+ onRun: handleFormRun,
294
+ onStop: handleStop,
295
+ actionSpace: actionSpace
296
+ })
302
297
  }),
303
298
  showVersionInfo && branding.version && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
304
299
  className: "version-info-section",
@@ -29,7 +29,6 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  const external_react_namespaceObject = require("react");
30
30
  const constants_js_namespaceObject = require("../utils/constants.js");
31
31
  function usePlaygroundState(playgroundSDK, storage, contextProvider) {
32
- let enablePersistence = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : true;
33
32
  const [loading, setLoading] = (0, external_react_namespaceObject.useState)(false);
34
33
  const [infoList, setInfoList] = (0, external_react_namespaceObject.useState)([]);
35
34
  const [actionSpace, setActionSpace] = (0, external_react_namespaceObject.useState)([]);
@@ -48,7 +47,7 @@ function usePlaygroundState(playgroundSDK, storage, contextProvider) {
48
47
  id: 'welcome',
49
48
  timestamp: new Date()
50
49
  };
51
- if (enablePersistence && (null == storage ? void 0 : storage.loadMessages)) try {
50
+ if (null == storage ? void 0 : storage.loadMessages) try {
52
51
  const storedMessages = await storage.loadMessages();
53
52
  const hasWelcomeMessage = storedMessages.some((msg)=>'welcome' === msg.id);
54
53
  hasWelcomeMessage ? setInfoList(storedMessages) : setInfoList([
@@ -68,13 +67,12 @@ function usePlaygroundState(playgroundSDK, storage, contextProvider) {
68
67
  if (0 === infoList.length) initializeMessages();
69
68
  }, []);
70
69
  (0, external_react_namespaceObject.useEffect)(()=>{
71
- if (enablePersistence && (null == storage ? void 0 : storage.saveMessages) && infoList.length > 1) storage.saveMessages(infoList).catch((error)=>{
70
+ if ((null == storage ? void 0 : storage.saveMessages) && infoList.length > 1) storage.saveMessages(infoList).catch((error)=>{
72
71
  console.error('Failed to save messages:', error);
73
72
  });
74
73
  }, [
75
74
  infoList,
76
- storage,
77
- enablePersistence
75
+ storage
78
76
  ]);
79
77
  (0, external_react_namespaceObject.useEffect)(()=>{
80
78
  if (!(null == contextProvider ? void 0 : contextProvider.getUIContext) || uiContextPreview) return;
@@ -163,14 +161,13 @@ function usePlaygroundState(playgroundSDK, storage, contextProvider) {
163
161
  setInfoList([
164
162
  welcomeMessage
165
163
  ]);
166
- if (enablePersistence && (null == storage ? void 0 : storage.clearMessages)) try {
164
+ if (null == storage ? void 0 : storage.clearMessages) try {
167
165
  await storage.clearMessages();
168
166
  } catch (error) {
169
167
  console.error('Failed to clear stored messages:', error);
170
168
  }
171
169
  }, [
172
- storage,
173
- enablePersistence
170
+ storage
174
171
  ]);
175
172
  const refreshContext = (0, external_react_namespaceObject.useCallback)(async ()=>{
176
173
  if (null == contextProvider ? void 0 : contextProvider.refreshContext) try {
package/dist/lib/index.js CHANGED
@@ -53,19 +53,18 @@ __webpack_require__.d(__webpack_exports__, {
53
53
  Logo: ()=>logo_index_js_namespaceObject.Logo,
54
54
  UniversalPlayground: ()=>universal_playground_index_js_namespaceObject.UniversalPlayground,
55
55
  useEnvConfig: ()=>store_js_namespaceObject.useEnvConfig,
56
- NoOpStorageProvider: ()=>storage_provider_js_namespaceObject.NoOpStorageProvider,
57
- ContextPreview: ()=>context_preview_index_js_namespaceObject.ContextPreview,
58
56
  PromptInput: ()=>prompt_input_index_js_namespaceObject.PromptInput,
57
+ ContextPreview: ()=>context_preview_index_js_namespaceObject.ContextPreview,
58
+ NoOpStorageProvider: ()=>storage_provider_js_namespaceObject.NoOpStorageProvider,
59
59
  StaticContextProvider: ()=>context_provider_js_namespaceObject.StaticContextProvider,
60
60
  Blackboard: ()=>blackboard_index_js_namespaceObject.Blackboard,
61
61
  Player: ()=>player_index_js_namespaceObject.Player,
62
62
  AgentContextProvider: ()=>context_provider_js_namespaceObject.AgentContextProvider,
63
- EnvConfigReminder: ()=>env_config_reminder_index_js_namespaceObject.EnvConfigReminder,
64
63
  filterBase64Value: ()=>external_utils_index_js_namespaceObject.filterBase64Value,
65
64
  NoOpContextProvider: ()=>context_provider_js_namespaceObject.NoOpContextProvider,
66
65
  highlightColorForType: ()=>color_js_namespaceObject.highlightColorForType,
67
- globalThemeConfig: ()=>color_js_namespaceObject.globalThemeConfig,
68
66
  iconForStatus: ()=>misc_index_js_namespaceObject.iconForStatus,
67
+ globalThemeConfig: ()=>color_js_namespaceObject.globalThemeConfig,
69
68
  MemoryStorageProvider: ()=>storage_provider_js_namespaceObject.MemoryStorageProvider
70
69
  });
71
70
  require("./component/playground/index.css");
@@ -74,7 +73,6 @@ const replay_scripts_js_namespaceObject = require("./utils/replay-scripts.js");
74
73
  const store_js_namespaceObject = require("./store/store.js");
75
74
  const color_js_namespaceObject = require("./utils/color.js");
76
75
  const index_js_namespaceObject = require("./component/env-config/index.js");
77
- const env_config_reminder_index_js_namespaceObject = require("./component/env-config-reminder/index.js");
78
76
  const logo_index_js_namespaceObject = require("./component/logo/index.js");
79
77
  const misc_index_js_namespaceObject = require("./component/misc/index.js");
80
78
  const useServerValid_js_namespaceObject = require("./hooks/useServerValid.js");
@@ -98,7 +96,6 @@ exports.BaseContextProvider = __webpack_exports__.BaseContextProvider;
98
96
  exports.Blackboard = __webpack_exports__.Blackboard;
99
97
  exports.ContextPreview = __webpack_exports__.ContextPreview;
100
98
  exports.EnvConfig = __webpack_exports__.EnvConfig;
101
- exports.EnvConfigReminder = __webpack_exports__.EnvConfigReminder;
102
99
  exports.GithubStar = __webpack_exports__.GithubStar;
103
100
  exports.LocalStorageProvider = __webpack_exports__.LocalStorageProvider;
104
101
  exports.Logo = __webpack_exports__.Logo;
@@ -133,7 +130,6 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
133
130
  "Blackboard",
134
131
  "ContextPreview",
135
132
  "EnvConfig",
136
- "EnvConfigReminder",
137
133
  "GithubStar",
138
134
  "LocalStorageProvider",
139
135
  "Logo",
@@ -3,7 +3,7 @@ import type { ContextProvider, InfoListItem, PlaygroundSDKLike, StorageProvider
3
3
  /**
4
4
  * Hook for managing playground state
5
5
  */
6
- export declare function usePlaygroundState(playgroundSDK: PlaygroundSDKLike, storage?: StorageProvider, contextProvider?: ContextProvider, enablePersistence?: boolean): {
6
+ export declare function usePlaygroundState(playgroundSDK: PlaygroundSDKLike, storage?: StorageProvider, contextProvider?: ContextProvider): {
7
7
  loading: boolean;
8
8
  setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
9
  infoList: InfoListItem[];
@@ -4,7 +4,6 @@ export { type AnimationScript, type ReplayScriptsInfo, allScriptsFromDump, gener
4
4
  export { useEnvConfig } from './store/store';
5
5
  export { colorForName, highlightColorForType, globalThemeConfig, } from './utils/color';
6
6
  export { EnvConfig } from './component/env-config';
7
- export { EnvConfigReminder } from './component/env-config-reminder';
8
7
  export { Logo } from './component/logo';
9
8
  export { iconForStatus, timeCostStrElement } from './component/misc';
10
9
  export { useServerValid } from './hooks/useServerValid';
@@ -146,7 +146,6 @@ export interface UniversalPlaygroundConfig {
146
146
  layout?: 'vertical' | 'horizontal';
147
147
  showVersionInfo?: boolean;
148
148
  enableScrollToBottom?: boolean;
149
- serverMode?: boolean;
150
149
  }
151
150
  export interface PlaygroundBranding {
152
151
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "0.28.5-beta-20250911120303.0",
3
+ "version": "0.28.5",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
@@ -70,10 +70,10 @@
70
70
  "antd": "^5.21.6",
71
71
  "buffer": "6.0.3",
72
72
  "dayjs": "^1.11.11",
73
- "@midscene/core": "0.28.5-beta-20250911120303.0",
74
- "@midscene/playground": "0.28.5-beta-20250911120303.0",
75
- "@midscene/shared": "0.28.5-beta-20250911120303.0",
76
- "@midscene/web": "0.28.5-beta-20250911120303.0"
73
+ "@midscene/core": "0.28.5",
74
+ "@midscene/shared": "0.28.5",
75
+ "@midscene/web": "0.28.5",
76
+ "@midscene/playground": "0.28.5"
77
77
  },
78
78
  "license": "MIT",
79
79
  "scripts": {
@@ -1,22 +0,0 @@
1
- .env-config-reminder {
2
- background: #fff2e8;
3
- border-radius: 12px;
4
- align-items: center;
5
- gap: 12px;
6
- margin-bottom: 12px;
7
- padding: 12px 16px;
8
- display: flex;
9
- }
10
-
11
- .env-config-reminder .reminder-icon {
12
- color: #fa541c;
13
- width: 16px;
14
- height: 16px;
15
- }
16
-
17
- .env-config-reminder .reminder-text {
18
- color: #000;
19
- flex: 1;
20
- font-size: 14px;
21
- }
22
-
@@ -1,28 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { ExclamationCircleFilled } from "@ant-design/icons";
3
- import { useEnvConfig } from "../../store/store.mjs";
4
- import { EnvConfig } from "../env-config/index.mjs";
5
- import "./index.css";
6
- const EnvConfigReminder = (param)=>{
7
- let { className = '' } = param;
8
- const { config } = useEnvConfig();
9
- const configAlreadySet = Object.keys(config || {}).length >= 1;
10
- if (configAlreadySet) return null;
11
- return /*#__PURE__*/ jsxs("div", {
12
- className: `env-config-reminder ${className}`,
13
- children: [
14
- /*#__PURE__*/ jsx(ExclamationCircleFilled, {
15
- className: "reminder-icon"
16
- }),
17
- /*#__PURE__*/ jsx("span", {
18
- className: "reminder-text",
19
- children: "Please set up your environment variables before using."
20
- }),
21
- /*#__PURE__*/ jsx(EnvConfig, {
22
- mode: "text",
23
- showTooltipWhenEmpty: false
24
- })
25
- ]
26
- });
27
- };
28
- export { EnvConfigReminder };
@@ -1,22 +0,0 @@
1
- .env-config-reminder {
2
- background: #fff2e8;
3
- border-radius: 12px;
4
- align-items: center;
5
- gap: 12px;
6
- margin-bottom: 12px;
7
- padding: 12px 16px;
8
- display: flex;
9
- }
10
-
11
- .env-config-reminder .reminder-icon {
12
- color: #fa541c;
13
- width: 16px;
14
- height: 16px;
15
- }
16
-
17
- .env-config-reminder .reminder-text {
18
- color: #000;
19
- flex: 1;
20
- font-size: 14px;
21
- }
22
-
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, definition)=>{
5
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
- enumerable: true,
7
- get: definition[key]
8
- });
9
- };
10
- })();
11
- (()=>{
12
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
- })();
14
- (()=>{
15
- __webpack_require__.r = (exports1)=>{
16
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
- value: 'Module'
18
- });
19
- Object.defineProperty(exports1, '__esModule', {
20
- value: true
21
- });
22
- };
23
- })();
24
- var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- EnvConfigReminder: ()=>EnvConfigReminder
28
- });
29
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
- const icons_namespaceObject = require("@ant-design/icons");
31
- const store_js_namespaceObject = require("../../store/store.js");
32
- const index_js_namespaceObject = require("../env-config/index.js");
33
- require("./index.css");
34
- const EnvConfigReminder = (param)=>{
35
- let { className = '' } = param;
36
- const { config } = (0, store_js_namespaceObject.useEnvConfig)();
37
- const configAlreadySet = Object.keys(config || {}).length >= 1;
38
- if (configAlreadySet) return null;
39
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
40
- className: `env-config-reminder ${className}`,
41
- children: [
42
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ExclamationCircleFilled, {
43
- className: "reminder-icon"
44
- }),
45
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
46
- className: "reminder-text",
47
- children: "Please set up your environment variables before using."
48
- }),
49
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.EnvConfig, {
50
- mode: "text",
51
- showTooltipWhenEmpty: false
52
- })
53
- ]
54
- });
55
- };
56
- exports.EnvConfigReminder = __webpack_exports__.EnvConfigReminder;
57
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
58
- "EnvConfigReminder"
59
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
60
- Object.defineProperty(exports, '__esModule', {
61
- value: true
62
- });
@@ -1,6 +0,0 @@
1
- import './index.less';
2
- interface EnvConfigReminderProps {
3
- className?: string;
4
- }
5
- export declare const EnvConfigReminder: React.FC<EnvConfigReminderProps>;
6
- export {};