@midscene/visualizer 1.8.0 → 1.8.1-beta-20260513084557.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.
@@ -148,7 +148,7 @@ const parseConfig = (configString)=>{
148
148
  const trimmed = line.trim();
149
149
  if (trimmed.startsWith('#')) return;
150
150
  const cleanLine = trimmed.replace(/^export\s+/i, '').replace(/;$/, '').trim();
151
- const match = cleanLine.match(/^(\w+)=(.*)$/);
151
+ const match = cleanLine.match(/^(\w+)\s*=\s*(.*)$/);
152
152
  if (match) {
153
153
  const [, key, value] = match;
154
154
  let parsedValue = value.trim();
@@ -274,4 +274,4 @@ const useEnvConfig = store_create((set, get)=>{
274
274
  }
275
275
  };
276
276
  });
277
- export { useEnvConfig, useGlobalPreference };
277
+ export { parseConfig, useEnvConfig, useGlobalPreference };
@@ -24,6 +24,7 @@ var __webpack_require__ = {};
24
24
  var __webpack_exports__ = {};
25
25
  __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
+ parseConfig: ()=>parseConfig,
27
28
  useEnvConfig: ()=>useEnvConfig,
28
29
  useGlobalPreference: ()=>useGlobalPreference
29
30
  });
@@ -150,7 +151,7 @@ const parseConfig = (configString)=>{
150
151
  const trimmed = line.trim();
151
152
  if (trimmed.startsWith('#')) return;
152
153
  const cleanLine = trimmed.replace(/^export\s+/i, '').replace(/;$/, '').trim();
153
- const match = cleanLine.match(/^(\w+)=(.*)$/);
154
+ const match = cleanLine.match(/^(\w+)\s*=\s*(.*)$/);
154
155
  if (match) {
155
156
  const [, key, value] = match;
156
157
  let parsedValue = value.trim();
@@ -276,9 +277,11 @@ const useEnvConfig = create((set, get)=>{
276
277
  }
277
278
  };
278
279
  });
280
+ exports.parseConfig = __webpack_exports__.parseConfig;
279
281
  exports.useEnvConfig = __webpack_exports__.useEnvConfig;
280
282
  exports.useGlobalPreference = __webpack_exports__.useGlobalPreference;
281
283
  for(var __rspack_i in __webpack_exports__)if (-1 === [
284
+ "parseConfig",
282
285
  "useEnvConfig",
283
286
  "useGlobalPreference"
284
287
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
@@ -16,6 +16,7 @@ export declare const useGlobalPreference: Z.UseBoundStore<Z.StoreApi<{
16
16
  setPlaybackSpeed: (speed: PlaybackSpeedType) => void;
17
17
  setSubtitleEnabled: (enabled: boolean) => void;
18
18
  }>>;
19
+ export declare const parseConfig: (configString: string) => Record<string, string>;
19
20
  /**
20
21
  * Service Mode
21
22
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "1.8.0",
3
+ "version": "1.8.1-beta-20260513084557.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",
@@ -65,10 +65,10 @@
65
65
  "antd": "^5.21.6",
66
66
  "buffer": "6.0.3",
67
67
  "dayjs": "^1.11.11",
68
- "@midscene/core": "1.8.0",
69
- "@midscene/playground": "1.8.0",
70
- "@midscene/shared": "1.8.0",
71
- "@midscene/web": "1.8.0"
68
+ "@midscene/core": "1.8.1-beta-20260513084557.0",
69
+ "@midscene/shared": "1.8.1-beta-20260513084557.0",
70
+ "@midscene/playground": "1.8.1-beta-20260513084557.0",
71
+ "@midscene/web": "1.8.1-beta-20260513084557.0"
72
72
  },
73
73
  "license": "MIT",
74
74
  "scripts": {