@nocobase/plugin-embed 2.1.0-alpha.10 → 2.1.0-alpha.11
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/client/index.js +1 -1
- package/dist/externalVersion.js +3 -3
- package/package.json +2 -2
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("react-router-dom"),require("@formily/shared"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react")):"function"==typeof define&&define.amd?define("@nocobase/plugin-embed",["react-i18next","react-router-dom","@formily/shared","react","antd","@nocobase/client","@formily/react"],t):"object"==typeof exports?exports["@nocobase/plugin-embed"]=t(require("react-i18next"),require("react-router-dom"),require("@formily/shared"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react")):e["@nocobase/plugin-embed"]=t(e["react-i18next"],e["react-router-dom"],e["@formily/shared"],e.react,e.antd,e["@nocobase/client"],e["@formily/react"])}(self,function(e,t,r,n,o,a,i){return function(){var c={250:function(e,t,r){"use strict";var n=r(247),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,i,c,u,l,s,p,f=!1;t||(t={}),i=t.debug||!1;try{if(u=n(),l=document.createRange(),s=document.getSelection(),(p=document.createElement("span")).textContent=e,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(p),l.selectNodeContents(p),s.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){i&&console.error("unable to copy using execCommand: ",n),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){i&&console.error("unable to copy using clipboardData: ",n),i&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",c=r.replace(/#{\s*key\s*}/g,a),window.prompt(c,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),p&&document.body.removeChild(p),u()}return f}},247:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},230:function(e){"use strict";e.exports=i},166:function(e){"use strict";e.exports=r},342:function(e){"use strict";e.exports=a},59:function(e){"use strict";e.exports=o},155:function(e){"use strict";e.exports=n},953:function(t){"use strict";t.exports=e},442:function(e){"use strict";e.exports=t}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return c[e](r,r.exports,l),r.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.g.importScripts&&(s=l.g.location+"");var s,p=l.g.document;if(!s&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(s=p.currentScript.src),!s)){var f=p.getElementsByTagName("script");if(f.length)for(var d=f.length-1;d>-1&&(!s||!/^http(s?):/.test(s));)s=f[d--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");l.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var y={};return!function(){"use strict";var e=window.__webpack_public_path__||"/";"/"!==e.charAt(e.length-1)&&(e+="/"),l.p=e+"static/plugins/@nocobase/plugin-embed/dist/client/"}(),!function(){"use strict";l.r(y),l.d(y,{default:function(){return R}});var e=l(166),t=l(342),r=l(230),n=l(59),o=l(250),a=l.n(o),i=l(155),c=l.n(i),u=l(953),s=l(442),p=JSON.parse('{"UU":"@nocobase/plugin-embed"}'),f=function(){return c().createElement(n.Layout,{style:{height:"100%","--nb-header-height":"0px"}},c().createElement(t.LayoutContent,null))},d=function(){var e,r,n=(0,t.useCurrentUserContext)();return!1!==n.loading||(null==(r=n.data)||null==(e=r.data)?void 0:e.id)?c().createElement(t.AdminProvider,null,c().createElement(f,null)):c().createElement(m,null)};function b(){var e=(0,t.useCurrentPageUid)();return c().createElement(t.KeepAlive,{uid:e},function(e){return c().createElement(t.CurrentPageUidContext.Provider,{value:e},c().createElement(t.CurrentRouteProvider,{uid:e},c().createElement(t.RemoteSchemaComponent,{uid:e})))})}function m(){return c().createElement(n.Result,{status:"403",title:"403",subTitle:"Sorry, you are not authorized to access this page."})}function h(){var e=(0,s.useParams)().name,t=(0,r.useFieldSchema)(),o=n.App.useApp().message,i=(0,u.useTranslation)(p.UU,{nsMode:"fallback"}).t;return{title:i("Copy embedded link"),onClick:function(){var r=window.location.href.replace("/admin","/embed").replace(e,t["x-uid"]).replace(window.location.search||"","");a()(r),o.success(i("Copy successful"))}}}function g(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(n,o)}function v(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){g(a,n,o,i,c,"next",e)}function c(e){g(a,n,o,i,c,"throw",e)}i(void 0)})}}function w(e,t,r){return(w=P()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&C(o,r.prototype),o}).apply(null,arguments)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t="function"==typeof Map?new Map:void 0;return(S=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,x(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,e)})(e)}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(P=function(){return!!e})()}function E(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(i,"next",{value:u(0)}),c(i,"throw",{value:u(1)}),c(i,"return",{value:u(2)}),"function"==typeof Symbol&&c(i,Symbol.iterator,{value:function(){return this}}),i;function u(c){return function(u){var l=[c,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var O="embed",j="/".concat(O),R=function(r){var n;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");function o(){var e,t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return e=o,t=arguments,e=x(e),function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,P()?Reflect.construct(e,t||[],x(this).constructor):e.apply(this,t))}return o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),r&&C(o,r),n=[{key:"beforeLoad",value:function(){return v(function(){var t,r;return E(this,function(n){return t=new URL(window.location.href).searchParams.get("token"),r=this.app.getRouteUrl("embed"),t&&window.location.pathname.startsWith(r)&&(this.app.apiClient.storagePrefix="".concat((0,e.uid)().toUpperCase(),"_"),this.app.apiClient.storage=this.app.apiClient.createStorage("sessionStorage"),this.app.apiClient.auth.setToken(t)),[2]})}).call(this)}},{key:"load",value:function(){return v(function(){return E(this,function(e){return this.router.add(O,{path:j,Component:d}),this.router.add("".concat(O,".page"),{path:"".concat(j,"/:name"),Component:b}),this.router.add("".concat(O,".page.tab"),{path:"".concat(j,"/:name/tabs/:tabUid"),Component:t.PageTabs}),this.schemaSettingsManager.addItem("PageSettings",O,{type:"item",useComponentProps:h}),[2]})}).call(this)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(o.prototype,n),o}(S(t.Plugin))}(),y}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("react-router-dom"),require("@formily/shared"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react")):"function"==typeof define&&define.amd?define("@nocobase/plugin-embed",["react-i18next","react-router-dom","@formily/shared","react","antd","@nocobase/client","@formily/react"],t):"object"==typeof exports?exports["@nocobase/plugin-embed"]=t(require("react-i18next"),require("react-router-dom"),require("@formily/shared"),require("react"),require("antd"),require("@nocobase/client"),require("@formily/react")):e["@nocobase/plugin-embed"]=t(e["react-i18next"],e["react-router-dom"],e["@formily/shared"],e.react,e.antd,e["@nocobase/client"],e["@formily/react"])}(self,function(e,t,r,n,o,a,i){return function(){var c={250:function(e,t,r){"use strict";var n=r(247),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,i,c,u,l,s,p,f=!1;t||(t={}),i=t.debug||!1;try{if(u=n(),l=document.createRange(),s=document.getSelection(),(p=document.createElement("span")).textContent=e,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(p),l.selectNodeContents(p),s.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){i&&console.error("unable to copy using execCommand: ",n),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){i&&console.error("unable to copy using clipboardData: ",n),i&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",c=r.replace(/#{\s*key\s*}/g,a),window.prompt(c,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),p&&document.body.removeChild(p),u()}return f}},247:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},230:function(e){"use strict";e.exports=i},166:function(e){"use strict";e.exports=r},342:function(e){"use strict";e.exports=a},59:function(e){"use strict";e.exports=o},155:function(e){"use strict";e.exports=n},953:function(t){"use strict";t.exports=e},442:function(e){"use strict";e.exports=t}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return c[e](r,r.exports,l),r.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.g.importScripts&&(s=l.g.location+"");var s,p=l.g.document;if(!s&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(s=p.currentScript.src),!s)){var f=p.getElementsByTagName("script");if(f.length)for(var d=f.length-1;d>-1&&(!s||!/^http(s?):/.test(s));)s=f[d--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");l.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var m={};return!function(){"use strict";var e=window.__nocobase_public_path__||"";if(!e&&window.location&&window.location.pathname){var t=window.location.pathname||"/",r=t.indexOf("/v2/");e=r>=0?t.slice(0,r+1):"/"}e&&(e=e.replace(/\/v2\/?$/,"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),l.p=e+"static/plugins/@nocobase/plugin-embed/dist/client/"}(),!function(){"use strict";l.r(m),l.d(m,{default:function(){return R}});var e=l(166),t=l(342),r=l(230),n=l(59),o=l(250),a=l.n(o),i=l(155),c=l.n(i),u=l(953),s=l(442),p=JSON.parse('{"UU":"@nocobase/plugin-embed"}'),f=function(){return c().createElement(n.Layout,{style:{height:"100%","--nb-header-height":"0px"}},c().createElement(t.LayoutContent,null))},d=function(){var e,r,n=(0,t.useCurrentUserContext)();return!1!==n.loading||(null==(r=n.data)||null==(e=r.data)?void 0:e.id)?c().createElement(t.AdminProvider,null,c().createElement(f,null)):c().createElement(b,null)};function y(){var e=(0,t.useCurrentPageUid)();return c().createElement(t.KeepAlive,{uid:e},function(e){return c().createElement(t.CurrentPageUidContext.Provider,{value:e},c().createElement(t.CurrentRouteProvider,{uid:e},c().createElement(t.RemoteSchemaComponent,{uid:e})))})}function b(){return c().createElement(n.Result,{status:"403",title:"403",subTitle:"Sorry, you are not authorized to access this page."})}function h(){var e=(0,s.useParams)().name,t=(0,r.useFieldSchema)(),o=n.App.useApp().message,i=(0,u.useTranslation)(p.UU,{nsMode:"fallback"}).t;return{title:i("Copy embedded link"),onClick:function(){var r=window.location.href.replace("/admin","/embed").replace(e,t["x-uid"]).replace(window.location.search||"","");a()(r),o.success(i("Copy successful"))}}}function g(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){r(e);return}c.done?t(u):Promise.resolve(u).then(n,o)}function v(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){g(a,n,o,i,c,"next",e)}function c(e){g(a,n,o,i,c,"throw",e)}i(void 0)})}}function w(e,t,r){return(w=P()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&C(o,r.prototype),o}).apply(null,arguments)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t="function"==typeof Map?new Map:void 0;return(S=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,x(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,e)})(e)}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(P=function(){return!!e})()}function E(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(i,"next",{value:u(0)}),c(i,"throw",{value:u(1)}),c(i,"return",{value:u(2)}),"function"==typeof Symbol&&c(i,Symbol.iterator,{value:function(){return this}}),i;function u(c){return function(u){var l=[c,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var O="embed",j="/".concat(O),R=function(r){var n;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");function o(){var e,t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return e=o,t=arguments,e=x(e),function(e,t){var r;if(t&&("object"==((r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,P()?Reflect.construct(e,t||[],x(this).constructor):e.apply(this,t))}return o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),r&&C(o,r),n=[{key:"beforeLoad",value:function(){return v(function(){var t,r;return E(this,function(n){return t=new URL(window.location.href).searchParams.get("token"),r=this.app.getRouteUrl("embed"),t&&window.location.pathname.startsWith(r)&&(this.app.apiClient.storagePrefix="".concat((0,e.uid)().toUpperCase(),"_"),this.app.apiClient.storage=this.app.apiClient.createStorage("sessionStorage"),this.app.apiClient.auth.setToken(t)),[2]})}).call(this)}},{key:"load",value:function(){return v(function(){return E(this,function(e){return this.router.add(O,{path:j,Component:d}),this.router.add("".concat(O,".page"),{path:"".concat(j,"/:name"),Component:y}),this.router.add("".concat(O,".page.tab"),{path:"".concat(j,"/:name/tabs/:tabUid"),Component:t.PageTabs}),this.schemaSettingsManager.addItem("PageSettings",O,{type:"item",useComponentProps:h}),[2]})}).call(this)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(o.prototype,n),o}(S(t.Plugin))}(),m}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/react": "2.3.7",
|
|
12
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
12
|
+
"@nocobase/client": "2.1.0-alpha.11",
|
|
13
13
|
"antd": "5.24.2",
|
|
14
14
|
"react": "18.2.0",
|
|
15
15
|
"react-i18next": "11.18.6",
|
|
16
16
|
"react-router-dom": "6.30.1",
|
|
17
17
|
"@formily/shared": "2.3.7",
|
|
18
|
-
"@nocobase/server": "2.1.0-alpha.
|
|
19
|
-
"@nocobase/test": "2.1.0-alpha.
|
|
18
|
+
"@nocobase/server": "2.1.0-alpha.11",
|
|
19
|
+
"@nocobase/test": "2.1.0-alpha.11"
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "嵌入 NocoBase",
|
|
5
5
|
"description": "Embed NocoBase into another system or webpage, integrating it as a part of that system or webpage.",
|
|
6
6
|
"description.zh-CN": "将 NocoBase 嵌入外部系统或页面中,使其成为该系统或页面的一部分。",
|
|
7
|
-
"version": "2.1.0-alpha.
|
|
7
|
+
"version": "2.1.0-alpha.11",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"homepage": "https://docs.nocobase.com/handbook/embed",
|
|
10
10
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/embed",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@nocobase/client": "2.x"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "bb96d633a6371afb586072ff516bd0613c757db0",
|
|
31
31
|
"license": "Apache-2.0"
|
|
32
32
|
}
|