@zzdadelu/schema-builder 1.0.0-alpha.26 → 1.0.0-alpha.27

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,5 +1,5 @@
1
1
  var createIframeContent = function createIframeContent() {
2
- 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 <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css\" />\n\n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n\n // \u5B89\u5168\u4EE3\u7406\uFF1A\u9632\u6B62 getFormRenderMaterial \u672A\u5B9A\u4E49\u65F6\u629B\u5F02\u5E38\n (function installGetFormRenderMaterialProxy() {\n if (window.__getFormRenderMaterial_installed) return;\n window.__getFormRenderMaterial_installed = true;\n window.__getFormRenderMaterial_queue = [];\n\n Object.defineProperty(window, 'getFormRenderMaterial', {\n configurable: true,\n enumerable: true,\n get: function() {\n if (window.__real_getFormRenderMaterial) return window.__real_getFormRenderMaterial;\n return function() {\n window.__getFormRenderMaterial_queue.push(Array.prototype.slice.call(arguments));\n };\n },\n set: function(val) {\n if (typeof val === 'function') {\n window.__real_getFormRenderMaterial = val;\n var q = window.__getFormRenderMaterial_queue.splice(0);\n q.forEach(function(args) {\n try { window.__real_getFormRenderMaterial.apply(null, args); } catch (e) {}\n });\n try {\n Object.defineProperty(window, 'getFormRenderMaterial', {\n value: window.__real_getFormRenderMaterial,\n writable: true,\n configurable: true\n });\n } catch (e) {}\n } else {\n console.warn('Ignored non-function assignment to window.getFormRenderMaterial:', val);\n }\n }\n });\n\n try {\n setTimeout(function tryProxyParent() {\n try {\n if (window.parent && window.parent !== window && typeof window.parent.getFormRenderMaterial === 'function') {\n window.getFormRenderMaterial = function() {\n return window.parent.getFormRenderMaterial.apply(window.parent, arguments);\n };\n }\n } catch (e) {}\n }, 0);\n } catch (e) {}\n })();\n\n // \u987A\u5E8F\u52A0\u8F7D\u811A\u672C\u7684\u51FD\u6570\uFF08\u6BCF\u4E2A\u811A\u672C onload \u540E\u624D\u52A0\u8F7D\u4E0B\u4E00\u4E2A\uFF09\n function loadScriptsSequential(urls, cb) {\n var i = 0;\n function next() {\n if (i >= urls.length) {\n if (cb) cb();\n return;\n }\n var url = urls[i++];\n var s = document.createElement('script');\n s.src = url;\n s.crossOrigin = 'anonymous';\n s.onload = next;\n s.onerror = function() {\n console.warn('Script failed to load:', url);\n next(); // \u5373\u4F7F\u5931\u8D25\u4E5F\u7EE7\u7EED\u52A0\u8F7D\u4E0B\u4E00\u4E2A\n };\n document.head.appendChild(s);\n }\n next();\n }\n </script>\n </head>\n <body>\n <div id=\"lce-container\"></div>\n\n <script>\n // \u6240\u6709\u811A\u672C URL\uFF0C\u7EDF\u4E00\u52A0\u65F6\u95F4\u6233\u53C2\u6570\u4EE5\u907F\u514D\u7F13\u5B58\n var timestamp = Math.floor(Date.now() / 1000);\n var urls = [\n \"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js?t=\" + timestamp,\n \"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js?t=\" + timestamp,\n \"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js?t=\" + timestamp,\n \"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js?t=\" + timestamp,\n \"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js?t=\" + timestamp,\n \"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js?t=\" + timestamp,\n \"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js?t=\" + timestamp,\n \"https://alifd.alicdn.com/npm/@alilc/lowcode-react-simulator-renderer@latest/dist/js/react-simulator-renderer.js?t=\" + timestamp,\n \"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/js/index.js?t=\" + timestamp\n ];\n\n // \u4E25\u683C\u987A\u5E8F\u52A0\u8F7D\u6240\u6709\u811A\u672C\uFF0C\u6700\u540E\u4E00\u4E2A\u52A0\u8F7D\u5B8C\u540E\u624D\u901A\u77E5\u7236\u7A97\u53E3\n loadScriptsSequential(urls, function() {\n // \u6240\u6709\u811A\u672C\u52A0\u8F7D\u5B8C\u6BD5\u540E\uFF0C\u5EF6\u8FDF\u4E00\u70B9\u786E\u4FDD\u5168\u5C40\u5BF9\u8C61\u521D\u59CB\u5316\u5B8C\u6210\n setTimeout(function() {\n try {\n window.__FR_GENERATOR_LOADED__ = true;\n parent.postMessage({ type: 'engine-load' }, '*');\n } catch (e) {\n console.error('Failed to postMessage engine-load:', e);\n }\n }, 100);\n });\n </script>\n </body>\n </html>\n ";
2
+ 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 <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css\" />\n\n <!-- Shim: ensure getFormRenderMaterial exists and is safe before any external scripts run -->\n <script>\n (function(){\n if (window.__getFormRenderMaterial_installed) return;\n window.__getFormRenderMaterial_installed = true;\n window.__getFormRenderMaterial_queue = [];\n\n // Safe placeholder factory: provides common APIs so callers won't crash\n function makeSafePlaceholder() {\n function noop(){};\n var placeholder = {\n __isPlaceholder: true,\n autoRender: noop,\n render: noop,\n getComponent: function(){ return {}; },\n };\n var callable = function(){ return placeholder; };\n return new Proxy(callable, {\n get: function(target, prop) {\n if (prop === 'prototype') return {};\n return placeholder[prop] || noop;\n },\n apply: function(target, thisArg, args) {\n return placeholder;\n }\n });\n }\n\n // Queueing wrapper: stores calls and sets a placeholder on window[name]\n function queueingGetFormRenderMaterial(name, pkg) {\n try { window.__getFormRenderMaterial_queue.push([name, pkg]); } catch(e){}\n try { window[name] = makeSafePlaceholder(); } catch(e){}\n return window[name];\n }\n\n Object.defineProperty(window, 'getFormRenderMaterial', {\n configurable: true,\n enumerable: true,\n get: function() {\n if (window.__real_getFormRenderMaterial) return window.__real_getFormRenderMaterial;\n return queueingGetFormRenderMaterial;\n },\n set: function(fn) {\n if (typeof fn !== 'function') {\n console.warn('Ignored non-function assignment to window.getFormRenderMaterial', fn);\n return;\n }\n window.__real_getFormRenderMaterial = fn;\n try {\n Object.defineProperty(window, 'getFormRenderMaterial', {\n value: window.__real_getFormRenderMaterial,\n writable: true,\n configurable: true\n });\n } catch (e) {}\n var q = window.__getFormRenderMaterial_queue || [];\n for (var i = 0; i < q.length; i++) {\n try {\n var args = q[i];\n var name = args[0];\n var pkg = args[1];\n var res = window.__real_getFormRenderMaterial(name, pkg);\n try { if (res !== undefined) window[name] = res; } catch(e){}\n } catch (e) {\n console.error('Error replaying getFormRenderMaterial call', e);\n }\n }\n window.__getFormRenderMaterial_queue = [];\n }\n });\n })();\n </script>\n\n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n </script>\n \n <script src=\"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js\"></script>\n <script src=\"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js\"></script>\n <script src=\"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js\"></script>\n <script src=\"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js\"></script>\n <script src=\"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js\"></script>\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\"></script>\n </body>\n </html>\n ";
3
3
  return html;
4
4
  };
5
5
  export default (function () {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var createIframeContent = function createIframeContent() {
8
- 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 <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css\" />\n\n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n\n // \u5B89\u5168\u4EE3\u7406\uFF1A\u9632\u6B62 getFormRenderMaterial \u672A\u5B9A\u4E49\u65F6\u629B\u5F02\u5E38\n (function installGetFormRenderMaterialProxy() {\n if (window.__getFormRenderMaterial_installed) return;\n window.__getFormRenderMaterial_installed = true;\n window.__getFormRenderMaterial_queue = [];\n\n Object.defineProperty(window, 'getFormRenderMaterial', {\n configurable: true,\n enumerable: true,\n get: function() {\n if (window.__real_getFormRenderMaterial) return window.__real_getFormRenderMaterial;\n return function() {\n window.__getFormRenderMaterial_queue.push(Array.prototype.slice.call(arguments));\n };\n },\n set: function(val) {\n if (typeof val === 'function') {\n window.__real_getFormRenderMaterial = val;\n var q = window.__getFormRenderMaterial_queue.splice(0);\n q.forEach(function(args) {\n try { window.__real_getFormRenderMaterial.apply(null, args); } catch (e) {}\n });\n try {\n Object.defineProperty(window, 'getFormRenderMaterial', {\n value: window.__real_getFormRenderMaterial,\n writable: true,\n configurable: true\n });\n } catch (e) {}\n } else {\n console.warn('Ignored non-function assignment to window.getFormRenderMaterial:', val);\n }\n }\n });\n\n try {\n setTimeout(function tryProxyParent() {\n try {\n if (window.parent && window.parent !== window && typeof window.parent.getFormRenderMaterial === 'function') {\n window.getFormRenderMaterial = function() {\n return window.parent.getFormRenderMaterial.apply(window.parent, arguments);\n };\n }\n } catch (e) {}\n }, 0);\n } catch (e) {}\n })();\n\n // \u987A\u5E8F\u52A0\u8F7D\u811A\u672C\u7684\u51FD\u6570\uFF08\u6BCF\u4E2A\u811A\u672C onload \u540E\u624D\u52A0\u8F7D\u4E0B\u4E00\u4E2A\uFF09\n function loadScriptsSequential(urls, cb) {\n var i = 0;\n function next() {\n if (i >= urls.length) {\n if (cb) cb();\n return;\n }\n var url = urls[i++];\n var s = document.createElement('script');\n s.src = url;\n s.crossOrigin = 'anonymous';\n s.onload = next;\n s.onerror = function() {\n console.warn('Script failed to load:', url);\n next(); // \u5373\u4F7F\u5931\u8D25\u4E5F\u7EE7\u7EED\u52A0\u8F7D\u4E0B\u4E00\u4E2A\n };\n document.head.appendChild(s);\n }\n next();\n }\n </script>\n </head>\n <body>\n <div id=\"lce-container\"></div>\n\n <script>\n // \u6240\u6709\u811A\u672C URL\uFF0C\u7EDF\u4E00\u52A0\u65F6\u95F4\u6233\u53C2\u6570\u4EE5\u907F\u514D\u7F13\u5B58\n var timestamp = Math.floor(Date.now() / 1000);\n var urls = [\n \"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js?t=\" + timestamp,\n \"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js?t=\" + timestamp,\n \"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js?t=\" + timestamp,\n \"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js?t=\" + timestamp,\n \"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js?t=\" + timestamp,\n \"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js?t=\" + timestamp,\n \"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js?t=\" + timestamp,\n \"https://alifd.alicdn.com/npm/@alilc/lowcode-react-simulator-renderer@latest/dist/js/react-simulator-renderer.js?t=\" + timestamp,\n \"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/js/index.js?t=\" + timestamp\n ];\n\n // \u4E25\u683C\u987A\u5E8F\u52A0\u8F7D\u6240\u6709\u811A\u672C\uFF0C\u6700\u540E\u4E00\u4E2A\u52A0\u8F7D\u5B8C\u540E\u624D\u901A\u77E5\u7236\u7A97\u53E3\n loadScriptsSequential(urls, function() {\n // \u6240\u6709\u811A\u672C\u52A0\u8F7D\u5B8C\u6BD5\u540E\uFF0C\u5EF6\u8FDF\u4E00\u70B9\u786E\u4FDD\u5168\u5C40\u5BF9\u8C61\u521D\u59CB\u5316\u5B8C\u6210\n setTimeout(function() {\n try {\n window.__FR_GENERATOR_LOADED__ = true;\n parent.postMessage({ type: 'engine-load' }, '*');\n } catch (e) {\n console.error('Failed to postMessage engine-load:', e);\n }\n }, 100);\n });\n </script>\n </body>\n </html>\n ";
8
+ 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 <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css\" rel=\"stylesheet\" />\n <link href=\"https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css\" rel=\"stylesheet\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/css/engine-core.css\" />\n <link rel=\"stylesheet\" href=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/css/engine-ext.css\" />\n <link rel=\"stylesheet\" href=\"https://g.alicdn.com/fone-lowcode/fr-generator/1.1.0/css/index.css\" />\n\n <!-- Shim: ensure getFormRenderMaterial exists and is safe before any external scripts run -->\n <script>\n (function(){\n if (window.__getFormRenderMaterial_installed) return;\n window.__getFormRenderMaterial_installed = true;\n window.__getFormRenderMaterial_queue = [];\n\n // Safe placeholder factory: provides common APIs so callers won't crash\n function makeSafePlaceholder() {\n function noop(){};\n var placeholder = {\n __isPlaceholder: true,\n autoRender: noop,\n render: noop,\n getComponent: function(){ return {}; },\n };\n var callable = function(){ return placeholder; };\n return new Proxy(callable, {\n get: function(target, prop) {\n if (prop === 'prototype') return {};\n return placeholder[prop] || noop;\n },\n apply: function(target, thisArg, args) {\n return placeholder;\n }\n });\n }\n\n // Queueing wrapper: stores calls and sets a placeholder on window[name]\n function queueingGetFormRenderMaterial(name, pkg) {\n try { window.__getFormRenderMaterial_queue.push([name, pkg]); } catch(e){}\n try { window[name] = makeSafePlaceholder(); } catch(e){}\n return window[name];\n }\n\n Object.defineProperty(window, 'getFormRenderMaterial', {\n configurable: true,\n enumerable: true,\n get: function() {\n if (window.__real_getFormRenderMaterial) return window.__real_getFormRenderMaterial;\n return queueingGetFormRenderMaterial;\n },\n set: function(fn) {\n if (typeof fn !== 'function') {\n console.warn('Ignored non-function assignment to window.getFormRenderMaterial', fn);\n return;\n }\n window.__real_getFormRenderMaterial = fn;\n try {\n Object.defineProperty(window, 'getFormRenderMaterial', {\n value: window.__real_getFormRenderMaterial,\n writable: true,\n configurable: true\n });\n } catch (e) {}\n var q = window.__getFormRenderMaterial_queue || [];\n for (var i = 0; i < q.length; i++) {\n try {\n var args = q[i];\n var name = args[0];\n var pkg = args[1];\n var res = window.__real_getFormRenderMaterial(name, pkg);\n try { if (res !== undefined) window[name] = res; } catch(e){}\n } catch (e) {\n console.error('Error replaying getFormRenderMaterial call', e);\n }\n }\n window.__getFormRenderMaterial_queue = [];\n }\n });\n })();\n </script>\n\n <script>\n window.React = window.parent.React;\n window.ReactDOM = window.parent.ReactDOM;\n </script>\n \n <script src=\"https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js\"></script>\n <script src=\"https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js\"></script>\n <script src=\"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js\"></script>\n <script src=\"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js\"></script>\n <script src=\"https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.2.3/dist/js/engine-core.js\"></script>\n <script crossorigin=\"anonymous\" src=\"https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6/dist/js/engine-ext.js\"></script>\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\"></script>\n </body>\n </html>\n ";
9
9
  return html;
10
10
  };
11
11
  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.26",
3
+ "version": "1.0.0-alpha.27",
4
4
  "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5
5
  "keywords": [
6
6
  "Form",