@godscene/visualizer 1.7.11 → 1.7.13

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.
@@ -0,0 +1,5 @@
1
+ .insert-modal-wrap {
2
+ z-index: 999;
3
+ position: absolute !important;
4
+ }
5
+
@@ -3,6 +3,7 @@ import { SettingOutlined } from "@ant-design/icons";
3
3
  import { Alert, Button, Input, Modal, Tooltip, message } from "antd";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { useEnvConfig } from "../../store/store.mjs";
6
+ import "./index.css";
6
7
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
7
8
  try {
8
9
  var info = gen[key](arg);
@@ -182,6 +183,8 @@ function EnvConfig({ showTooltipWhenEmpty = true, showModelName = true, tooltipP
182
183
  destroyOnClose: true,
183
184
  maskClosable: true,
184
185
  centered: true,
186
+ getContainer: ()=>document.querySelector('.model-root-container') || document.body,
187
+ wrapClassName: "insert-modal-wrap",
185
188
  children: [
186
189
  /*#__PURE__*/ jsx(Input.TextArea, {
187
190
  rows: 7,
@@ -10,7 +10,7 @@
10
10
  width: 320px;
11
11
  max-width: min(320px, 100vw - 32px);
12
12
  height: 400px;
13
- position: fixed;
13
+ position: absolute;
14
14
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
15
15
  }
16
16
 
@@ -190,7 +190,7 @@ const HistorySelector = ({ onSelect, history, currentType, trigger, popupPlaceme
190
190
  })
191
191
  ]
192
192
  })
193
- }), document.body)
193
+ }), document.querySelector('.model-root-container') || document.body)
194
194
  ]
195
195
  });
196
196
  };
@@ -0,0 +1,5 @@
1
+ .insert-modal-wrap {
2
+ z-index: 999;
3
+ position: absolute !important;
4
+ }
5
+
@@ -31,6 +31,7 @@ const icons_namespaceObject = require("@ant-design/icons");
31
31
  const external_antd_namespaceObject = require("antd");
32
32
  const external_react_namespaceObject = require("react");
33
33
  const store_js_namespaceObject = require("../../store/store.js");
34
+ require("./index.css");
34
35
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
35
36
  try {
36
37
  var info = gen[key](arg);
@@ -210,6 +211,8 @@ function EnvConfig({ showTooltipWhenEmpty = true, showModelName = true, tooltipP
210
211
  destroyOnClose: true,
211
212
  maskClosable: true,
212
213
  centered: true,
214
+ getContainer: ()=>document.querySelector('.model-root-container') || document.body,
215
+ wrapClassName: "insert-modal-wrap",
213
216
  children: [
214
217
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Input.TextArea, {
215
218
  rows: 7,
@@ -10,7 +10,7 @@
10
10
  width: 320px;
11
11
  max-width: min(320px, 100vw - 32px);
12
12
  height: 400px;
13
- position: fixed;
13
+ position: absolute;
14
14
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
15
15
  }
16
16
 
@@ -230,7 +230,7 @@ const HistorySelector = ({ onSelect, history, currentType, trigger, popupPlaceme
230
230
  })
231
231
  ]
232
232
  })
233
- }), document.body)
233
+ }), document.querySelector('.model-root-container') || document.body)
234
234
  ]
235
235
  });
236
236
  };
@@ -1,4 +1,5 @@
1
1
  import type { PlaygroundSDKLike } from '../../types';
2
+ import './index.css';
2
3
  export declare function EnvConfig({ showTooltipWhenEmpty, showModelName, tooltipPlacement, mode, playgroundSDK, }: {
3
4
  showTooltipWhenEmpty?: boolean;
4
5
  showModelName?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@godscene/visualizer",
3
- "version": "1.7.11",
3
+ "version": "1.7.13",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
@@ -66,10 +66,10 @@
66
66
  "antd": "^5.21.6",
67
67
  "buffer": "6.0.3",
68
68
  "dayjs": "^1.11.11",
69
- "@godscene/core": "1.7.11",
70
- "@godscene/shared": "1.7.11",
71
- "@godscene/playground": "1.7.11",
72
- "@godscene/web": "1.7.11"
69
+ "@godscene/core": "1.7.13",
70
+ "@godscene/playground": "1.7.13",
71
+ "@godscene/shared": "1.7.13",
72
+ "@godscene/web": "1.7.13"
73
73
  },
74
74
  "license": "MIT",
75
75
  "scripts": {