@zzdadelu/schema-builder 1.0.0-alpha.67 → 1.0.0-alpha.68

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.
@@ -1,6 +1,6 @@
1
1
  var createIframeContent = function createIframeContent() {
2
2
  var timestamp = new Date().getTime();
3
- var html = "\n <html>\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\" />\n <title>XRender</title>\n <link rel=\"icon\" href=\"https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png\">\n \n <!-- \u6837\u5F0F -->\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css?t=".concat(timestamp, "\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css?t=").concat(timestamp, "\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css?t=").concat(timestamp, "\" />\n\n <script>\n // \u5728\u6700\u5F00\u59CB\u5B9A\u4E49\uFF0C\u786E\u4FDD\u4E0D\u4F1A\u88AB\u8986\u76D6\n (function() {\n // \u5B58\u50A8\u7EC4\u4EF6\u6570\u636E\u7684\u53D8\u91CF\n var __editorWidgets = {};\n \n // \u5B9A\u4E49 getFormRenderMaterial \u51FD\u6570\n window.getFormRenderMaterial = function(name, packageName) {\n console.log('[Proxy] getFormRenderMaterial called with:', name, packageName);\n console.log('[Proxy] current editorWidgets keys:', Object.keys(__editorWidgets));\n return Object.assign({__esModule: true}, __editorWidgets, {});\n };\n \n // \u66B4\u9732\u4E00\u4E2A\u65B9\u6CD5\u6765\u66F4\u65B0\u7EC4\u4EF6\u6570\u636E\n window.__updateEditorWidgets = function(newWidgets) {\n console.log('[Proxy] Updating editorWidgets with:', Object.keys(newWidgets || {}));\n __editorWidgets = newWidgets || {};\n };\n \n console.log('[Proxy] getFormRenderMaterial proxy installed');\n })();\n </script>\n \n <!-- \u5176\u4ED6\u811A\u672C -->\n <script src=\"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js?t=").concat(timestamp, "\"></script>\n <script type=\"text/javascript\" src=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/js/index.js?t=").concat(timestamp, "\"></script>\n \n <!-- \u8FD9\u4E2A\u811A\u672C\u5728 fr-generator \u4E4B\u540E\u8FD0\u884C\uFF0C\u7528\u4E8E\u62E6\u622A polling -->\n <script>\n // \u7B49\u5F85 fr-generator \u52A0\u8F7D\n var checkInterval = setInterval(function() {\n if (window.__FR_ENGINE__ && typeof window.__FR_ENGINE__.polling === 'function') {\n clearInterval(checkInterval);\n \n // \u4FDD\u5B58\u539F\u59CB polling \u65B9\u6CD5\n var originalPolling = window.__FR_ENGINE__.polling;\n \n // \u91CD\u5199 polling\n window.__FR_ENGINE__.polling = function(editorWidgets) {\n console.log('[Proxy] Intercepted polling call with widgets:', Object.keys(editorWidgets || {}));\n \n // \u66F4\u65B0\u6211\u4EEC\u7684\u7EC4\u4EF6\u6570\u636E\n if (window.__updateEditorWidgets) {\n window.__updateEditorWidgets(editorWidgets);\n }\n \n // \u8C03\u7528\u539F\u59CB polling\n return originalPolling.call(this, editorWidgets);\n };\n \n console.log('[Proxy] Successfully overridden polling method');\n }\n }, 10);\n \n // \u8D85\u65F6\u8BBE\u7F6E\n setTimeout(function() {\n clearInterval(checkInterval);\n console.warn('[Proxy] Timeout waiting for FR_ENGINE.polling');\n }, 5000);\n </script>\n \n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n window.__is_simulator_env__ = true;\n </script>\n </head>\n\n <body>\n <div id=\"lce-container\"></div>\n \n <script>\n window.addEventListener('load', function() {\n console.log('iframe loaded, getFormRenderMaterial is a function?', typeof window.getFormRenderMaterial);\n // \u901A\u77E5\u7236\u7A97\u53E3\u5F15\u64CE\u5DF2\u52A0\u8F7D\n window.parent.postMessage({ type: 'engine-load' }, '*');\n });\n </script>\n </body>\n </html>\n ");
3
+ var html = "\n <html>\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\" />\n <title>XRender</title>\n <link rel=\"icon\" href=\"https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png\">\n \n <!-- \u6837\u5F0F -->\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css?t=".concat(timestamp, "\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css?t=").concat(timestamp, "\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css?t=").concat(timestamp, "\" />\n\n <script>\n // \u5728\u6700\u5F00\u59CB\u5B9A\u4E49\uFF0C\u786E\u4FDD\u4E0D\u4F1A\u88AB\u8986\u76D6\n (function() {\n // \u5B58\u50A8\u7EC4\u4EF6\u6570\u636E\u7684\u53D8\u91CF\n var __editorWidgets = {};\n \n // \u5B9A\u4E49 getFormRenderMaterial \u51FD\u6570\n window.getFormRenderMaterial = function(name, packageName) {\n console.log('[Proxy] getFormRenderMaterial called with:', name, packageName);\n console.log('[Proxy] current editorWidgets keys:', Object.keys(__editorWidgets));\n return Object.assign({__esModule: true}, __editorWidgets, {});\n };\n \n // \u66B4\u9732\u4E00\u4E2A\u65B9\u6CD5\u6765\u66F4\u65B0\u7EC4\u4EF6\u6570\u636E\n window.__updateEditorWidgets = function(newWidgets) {\n console.log('[Proxy] Updating editorWidgets with:', Object.keys(newWidgets || {}));\n __editorWidgets = newWidgets || {};\n };\n \n console.log('[Proxy] getFormRenderMaterial proxy installed');\n })();\n </script>\n \n <!-- \u5176\u4ED6\u811A\u672C -->\n <script src=\"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js?t=").concat(timestamp, "\"></script>\n \n \n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n </script>\n </head>\n\n <body>\n <div id=\"lce-container\"></div>\n <script type=\"text/javascript\" src=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/js/index.js?t=").concat(timestamp, "\"></script>\n\n <script>\n window.addEventListener('load', function() {\n console.log('iframe loaded, getFormRenderMaterial is a function?', typeof window.getFormRenderMaterial);\n // \u901A\u77E5\u7236\u7A97\u53E3\u5F15\u64CE\u5DF2\u52A0\u8F7D\n window.parent.postMessage({ type: 'engine-load' }, '*');\n });\n </script>\n </body>\n </html>\n ");
4
4
  return html;
5
5
  };
6
6
  export default (function () {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var createIframeContent = function createIframeContent() {
8
8
  var timestamp = new Date().getTime();
9
- var html = "\n <html>\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\" />\n <title>XRender</title>\n <link rel=\"icon\" href=\"https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png\">\n \n <!-- \u6837\u5F0F -->\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css?t=".concat(timestamp, "\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css?t=").concat(timestamp, "\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css?t=").concat(timestamp, "\" />\n\n <script>\n // \u5728\u6700\u5F00\u59CB\u5B9A\u4E49\uFF0C\u786E\u4FDD\u4E0D\u4F1A\u88AB\u8986\u76D6\n (function() {\n // \u5B58\u50A8\u7EC4\u4EF6\u6570\u636E\u7684\u53D8\u91CF\n var __editorWidgets = {};\n \n // \u5B9A\u4E49 getFormRenderMaterial \u51FD\u6570\n window.getFormRenderMaterial = function(name, packageName) {\n console.log('[Proxy] getFormRenderMaterial called with:', name, packageName);\n console.log('[Proxy] current editorWidgets keys:', Object.keys(__editorWidgets));\n return Object.assign({__esModule: true}, __editorWidgets, {});\n };\n \n // \u66B4\u9732\u4E00\u4E2A\u65B9\u6CD5\u6765\u66F4\u65B0\u7EC4\u4EF6\u6570\u636E\n window.__updateEditorWidgets = function(newWidgets) {\n console.log('[Proxy] Updating editorWidgets with:', Object.keys(newWidgets || {}));\n __editorWidgets = newWidgets || {};\n };\n \n console.log('[Proxy] getFormRenderMaterial proxy installed');\n })();\n </script>\n \n <!-- \u5176\u4ED6\u811A\u672C -->\n <script src=\"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js?t=").concat(timestamp, "\"></script>\n <script type=\"text/javascript\" src=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/js/index.js?t=").concat(timestamp, "\"></script>\n \n <!-- \u8FD9\u4E2A\u811A\u672C\u5728 fr-generator \u4E4B\u540E\u8FD0\u884C\uFF0C\u7528\u4E8E\u62E6\u622A polling -->\n <script>\n // \u7B49\u5F85 fr-generator \u52A0\u8F7D\n var checkInterval = setInterval(function() {\n if (window.__FR_ENGINE__ && typeof window.__FR_ENGINE__.polling === 'function') {\n clearInterval(checkInterval);\n \n // \u4FDD\u5B58\u539F\u59CB polling \u65B9\u6CD5\n var originalPolling = window.__FR_ENGINE__.polling;\n \n // \u91CD\u5199 polling\n window.__FR_ENGINE__.polling = function(editorWidgets) {\n console.log('[Proxy] Intercepted polling call with widgets:', Object.keys(editorWidgets || {}));\n \n // \u66F4\u65B0\u6211\u4EEC\u7684\u7EC4\u4EF6\u6570\u636E\n if (window.__updateEditorWidgets) {\n window.__updateEditorWidgets(editorWidgets);\n }\n \n // \u8C03\u7528\u539F\u59CB polling\n return originalPolling.call(this, editorWidgets);\n };\n \n console.log('[Proxy] Successfully overridden polling method');\n }\n }, 10);\n \n // \u8D85\u65F6\u8BBE\u7F6E\n setTimeout(function() {\n clearInterval(checkInterval);\n console.warn('[Proxy] Timeout waiting for FR_ENGINE.polling');\n }, 5000);\n </script>\n \n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n window.__is_simulator_env__ = true;\n </script>\n </head>\n\n <body>\n <div id=\"lce-container\"></div>\n \n <script>\n window.addEventListener('load', function() {\n console.log('iframe loaded, getFormRenderMaterial is a function?', typeof window.getFormRenderMaterial);\n // \u901A\u77E5\u7236\u7A97\u53E3\u5F15\u64CE\u5DF2\u52A0\u8F7D\n window.parent.postMessage({ type: 'engine-load' }, '*');\n });\n </script>\n </body>\n </html>\n ");
9
+ var html = "\n <html>\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\" />\n <title>XRender</title>\n <link rel=\"icon\" href=\"https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png\">\n \n <!-- \u6837\u5F0F -->\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css?t=".concat(timestamp, "\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css?t=").concat(timestamp, "\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css?t=").concat(timestamp, "\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css?t=").concat(timestamp, "\" />\n\n <script>\n // \u5728\u6700\u5F00\u59CB\u5B9A\u4E49\uFF0C\u786E\u4FDD\u4E0D\u4F1A\u88AB\u8986\u76D6\n (function() {\n // \u5B58\u50A8\u7EC4\u4EF6\u6570\u636E\u7684\u53D8\u91CF\n var __editorWidgets = {};\n \n // \u5B9A\u4E49 getFormRenderMaterial \u51FD\u6570\n window.getFormRenderMaterial = function(name, packageName) {\n console.log('[Proxy] getFormRenderMaterial called with:', name, packageName);\n console.log('[Proxy] current editorWidgets keys:', Object.keys(__editorWidgets));\n return Object.assign({__esModule: true}, __editorWidgets, {});\n };\n \n // \u66B4\u9732\u4E00\u4E2A\u65B9\u6CD5\u6765\u66F4\u65B0\u7EC4\u4EF6\u6570\u636E\n window.__updateEditorWidgets = function(newWidgets) {\n console.log('[Proxy] Updating editorWidgets with:', Object.keys(newWidgets || {}));\n __editorWidgets = newWidgets || {};\n };\n \n console.log('[Proxy] getFormRenderMaterial proxy installed');\n })();\n </script>\n \n <!-- \u5176\u4ED6\u811A\u672C -->\n <script src=\"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js?t=").concat(timestamp, "\"></script>\n <script src=\"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js?t=").concat(timestamp, "\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js?t=").concat(timestamp, "\"></script>\n \n \n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n </script>\n </head>\n\n <body>\n <div id=\"lce-container\"></div>\n <script type=\"text/javascript\" src=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/js/index.js?t=").concat(timestamp, "\"></script>\n\n <script>\n window.addEventListener('load', function() {\n console.log('iframe loaded, getFormRenderMaterial is a function?', typeof window.getFormRenderMaterial);\n // \u901A\u77E5\u7236\u7A97\u53E3\u5F15\u64CE\u5DF2\u52A0\u8F7D\n window.parent.postMessage({ type: 'engine-load' }, '*');\n });\n </script>\n </body>\n </html>\n ");
10
10
  return html;
11
11
  };
12
12
  var _default = exports.default = function _default() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzdadelu/schema-builder",
3
- "version": "1.0.0-alpha.67",
3
+ "version": "1.0.0-alpha.68",
4
4
  "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5
5
  "keywords": [
6
6
  "Form",