@schema-element-editor/host-sdk 2.0.2 → 2.0.3

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/index.cjs CHANGED
@@ -206,10 +206,6 @@ function useSchemaElementEditor(config) {
206
206
  }, [getSchema, updateSchema, renderPreview]);
207
207
  (0, import_react.useEffect)(() => {
208
208
  if (enabled === false) {
209
- if (bridgeRef.current && typeof bridgeRef.current.cleanup === "function") {
210
- bridgeRef.current.cleanup();
211
- bridgeRef.current = null;
212
- }
213
209
  return;
214
210
  }
215
211
  const proxyConfig = {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useSchemaElementEditor
3
- } from "./chunk-3RNKTSDC.js";
3
+ } from "./chunk-HBZGOJIJ.js";
4
4
  import {
5
5
  createSchemaElementEditorBridge
6
6
  } from "./chunk-52EFKQHQ.js";
package/dist/react.cjs CHANGED
@@ -203,10 +203,6 @@ function useSchemaElementEditor(config) {
203
203
  }, [getSchema, updateSchema, renderPreview]);
204
204
  (0, import_react.useEffect)(() => {
205
205
  if (enabled === false) {
206
- if (bridgeRef.current && typeof bridgeRef.current.cleanup === "function") {
207
- bridgeRef.current.cleanup();
208
- bridgeRef.current = null;
209
- }
210
206
  return;
211
207
  }
212
208
  const proxyConfig = {
package/dist/react.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useSchemaElementEditor
3
- } from "./chunk-3RNKTSDC.js";
3
+ } from "./chunk-HBZGOJIJ.js";
4
4
  import "./chunk-52EFKQHQ.js";
5
5
  export {
6
6
  useSchemaElementEditor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schema-element-editor/host-sdk",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Schema Element Editor (SEE) 插件宿主接入 SDK,支持 React/Vue/纯 JS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",