@nocobase/plugin-theme-editor 2.1.0-alpha.12 → 2.1.0-alpha.14

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.
@@ -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("@emotion/css"),require("@ant-design/cssinjs"),require("react"),require("antd"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("lodash")):"function"==typeof define&&define.amd?define("@nocobase/plugin-theme-editor",["react-i18next","@emotion/css","@ant-design/cssinjs","react","antd","@nocobase/client","@ant-design/icons","@nocobase/utils/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-theme-editor"]=t(require("react-i18next"),require("@emotion/css"),require("@ant-design/cssinjs"),require("react"),require("antd"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("lodash")):e["@nocobase/plugin-theme-editor"]=t(e["react-i18next"],e["@emotion/css"],e["@ant-design/cssinjs"],e.react,e.antd,e["@nocobase/client"],e["@ant-design/icons"],e["@nocobase/utils/client"],e.lodash)}(self,function(e,t,n,r,o,i,u,a,c){return function(){"use strict";var l,s,f,p={4811:function(e,t,n){n.r(t),n.d(t,{useThemeId:function(){return f}});var r=n(3342),o=n(7768),i=n(9155),u=n.n(i),a=n(9394),c=n(8070),l=n(5954),s=u().createContext({}),f=function(){return u().useContext(s)},p=function(e){var t,n,f,p=e.children,d=(0,r.useCurrentUserContext)(),h=(0,r.useGlobalTheme)().setTheme,m=(0,l.useThemeListContext)(),b=m.run,y=m.data,v=m.loading,g=(0,i.useMemo)(function(){return null==y?void 0:y.find(function(e){return e.default})},[y]),O=(0,i.useRef)(null),w=(0,r.useAPIClient)();(0,i.useEffect)(function(){var e=w.auth.getOption("theme");if(e)try{h((0,c.m)(JSON.parse(e)).config)}catch(e){(0,o.error)(e)}},[]),(0,i.useEffect)(function(){if(!y)return b();var e,t,n,o,i=null==d||null==(n=d.data)||null==(t=n.data)||null==(e=t.systemSettings)?void 0:e.themeId;null!=i&&(o=y.find(function(e){return e.id===i})),o||(o=g),o?(O.current=o.id,h(o.config),w.auth.setOption("theme",JSON.stringify(Object.assign(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},o),{config:(0,a.M)(o.config)})))):(h(r.defaultTheme),w.auth.setOption("theme",null))},[w.auth,null==d||null==(f=d.data)||null==(n=f.data)||null==(t=n.systemSettings)?void 0:t.themeId,y,b,h,g]);var j=v&&!y||d.loading?{}:{currentThemeId:O.current,defaultThemeId:null==g?void 0:g.id};return u().createElement(s.Provider,{value:j},p)};p.displayName="InitializeTheme",t.default=p},5954:function(e,t,n){n.r(t),n.d(t,{ThemeListProvider:function(){return s},useThemeListContext:function(){return l}});var r=n(3342),o=n(7768),i=n(9155),u=n.n(i),a=n(8070),c=(0,i.createContext)(null);c.displayName="ThemeListContext";var l=function(){return u().useContext(c)},s=function(e){var t=e.children,n=(0,r.useRequest)({url:"themeConfig:list",params:{sort:"id",paginate:!1}},{manual:!0}),l=n.data,s=n.error,f=n.run,p=n.refresh,d=n.loading,h=(0,i.useMemo)(function(){var e;return null==l||null==(e=l.data)?void 0:e.map(function(e){return(0,a.m)(e)})},[l]);return s&&(0,o.error)(s),u().createElement(c.Provider,{value:{data:h,error:s,run:f,refresh:p,loading:d}},t)};s.displayName="ThemeListProvider"},2166:function(e,t,n){n.d(t,{j:function(){return l}});var r=n(3342),o=n(7768),i=n(9155);function u(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function l(){var e=(0,r.useAPIClient)(),t=(0,r.useCurrentUserContext)();return{updateUserThemeSettings:(0,i.useCallback)(function(n){var r;return(r=function(){var r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(u,"next",{value:c(0)}),a(u,"throw",{value:c(1)}),a(u,"return",{value:c(2)}),"function"==typeof Symbol&&a(u,Symbol.iterator,{value:function(){return this}}),u;function c(a){return function(c){var l=[a,c];if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e.resource("users").updateTheme({values:{themeId:n}})];case 1:return i.sent(),t.mutate({data:c(a({},t.data.data),{systemSettings:c(a({},t.data.data.systemSettings||{}),{themeId:n})})}),window.location.reload(),[3,3];case 2:return r=i.sent(),console.log(o.error),(0,o.error)(r),[3,3];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)})})()},[e,t])}}},9394:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(2059),o=n(6773),i=n.n(o);function u(e){return(e=i().cloneDeep(e)).algorithm&&(Array.isArray(e.algorithm)?e.algorithm=e.algorithm.map(function(e){return a(e)}).filter(Boolean):e.algorithm=a(e.algorithm),i().isEmpty(e.algorithm)&&delete e.algorithm),e}function a(e){return"string"==typeof e?e:e.toString()===r.theme.darkAlgorithm.toString()?"darkAlgorithm":e.toString()===r.theme.compactAlgorithm.toString()?"compactAlgorithm":void 0}},8070:function(e,t,n){n.d(t,{m:function(){return u}});var r=n(2059),o=n(6773),i=n.n(o);function u(e){var t;return e=i().cloneDeep(e),i().isString(e.config.algorithm)&&(e.config.algorithm=r.theme[e.config.algorithm]),Array.isArray(null==(t=e.config)?void 0:t.algorithm)&&(e.config.algorithm=e.config.algorithm.map(function(e){return i().isString(e)?r.theme[e]:e})),e}},3872:function(e,t,n){n.d(t,{B:function(){return i},C:function(){return o}});var r=n(5953),o="theme-editor";function i(){return(0,r.useTranslation)([o,"client"],{nsMode:"fallback"})}},1802:function(e){e.exports=n},7375:function(e){e.exports=u},5477:function(e){e.exports=t},3342:function(e){e.exports=i},7768:function(e){e.exports=a},2059:function(e){e.exports=o},6773:function(e){e.exports=c},9155:function(e){e.exports=r},5953:function(t){t.exports=e}},d={};function h(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return p[e](n,n.exports,h),n.exports}h.m=p,h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.u=function(e){return""+({183:"f505fcce6b7af08d",200:"5e9edfa3bd0bbecf",446:"fe8c0cbc80d4e8b9",494:"cf9a9b6e59fca224",936:"27403773798a05bc"})[e]+".js"},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m={},h.l=function(e,t,n,r){if(m[e])return void m[e].push(t);if(void 0!==n)for(var o,i,u=document.getElementsByTagName("script"),a=0;a<u.length;a++){var c=u[a];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@nocobase/plugin-theme-editor:"+n){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,h.nc&&o.setAttribute("nonce",h.nc),o.setAttribute("data-rspack","@nocobase/plugin-theme-editor:"+n),o.src=e),m[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=m[e];if(delete m[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},h.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.nc=void 0,h.g.importScripts&&(b=h.g.location+"");var m,b,y=h.g.document;if(!b&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(b=y.currentScript.src),!b)){var v=y.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!b||!/^http(s?):/.test(b));)b=v[g--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");h.p=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l={889:0},h.f.j=function(e,t){var n=h.o(l,e)?l[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=l[e]=[t,r]});t.push(n[2]=r);var o=h.p+h.u(e),i=Error();h.l(o,function(t){if(h.o(l,e)&&(0!==(n=l[e])&&(l[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},s=function(e,t){var n,r,o=t[0],i=t[1],u=t[2],a=0;if(o.some(function(e){return 0!==l[e]})){for(n in i)h.o(i,n)&&(h.m[n]=i[n]);u&&u(h)}for(e&&e(t);a<o.length;a++)r=o[a],h.o(l,r)&&l[r]&&l[r][0](),l[r]=0},(f=self.webpackChunk_nocobase_plugin_theme_editor=self.webpackChunk_nocobase_plugin_theme_editor||[]).forEach(s.bind(null,0)),f.push=s.bind(null,f.push.bind(f));var O={},w=window.__nocobase_public_path__||"";if(!w&&window.location&&window.location.pathname){var j=window.location.pathname||"/",P=j.indexOf("/v2/");w=P>=0?j.slice(0,P+1):"/"}return w&&(w=w.replace(/\/v2\/?$/,"/")),w||(w="/"),"/"!==w.charAt(w.length-1)&&(w+="/"),h.p=w+"static/plugins/@nocobase/plugin-theme-editor/dist/client/",!function(){h.r(O),h.d(O,{PluginThemeEditorClient:function(){return k},default:function(){return _}});var e=h(3342),t=h(2059),n=h(6773),r=h.n(n),o=h(9155),i=h.n(o),u=h(7768),a=h(4811),c=h(5954),l=h(3872),s=h(2166),f=function(){var t=(0,l.B)().t,n=(0,c.useThemeListContext)(),r=n.run,f=n.error,p=n.data,d=(0,s.j)().updateUserThemeSettings,h=(0,a.useThemeId)().currentThemeId,m=(0,o.useMemo)(function(){return null==p?void 0:p.filter(function(e){return e.optional}).map(function(e){return{label:t(e.config.name),value:e.id}})},[p,t]);return((0,o.useEffect)(function(){p||r()},[]),f)?((0,u.error)(f),null):i().createElement(e.SchemaSettingsSelectItem,{title:t("Theme"),options:m,value:h,onChange:function(e){d(e)}})};function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function m(e,t,n){return(m=g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&y(o,n.prototype),o}).apply(null,arguments)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=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,n)}function n(){return m(e,arguments,b(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function w(){var e,t,n=(e=["\n overflow: hidden;\n border-left: 1px solid ",";\n animation: 0.1s ease-out 0s 1 slideInFromRight;\n @keyframes slideInFromRight {\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return w=function(){return n},n}var j=(0,e.lazy)(function(){return Promise.resolve().then(h.bind(h,4811))}),P=(0,e.lazy)(function(){return h.e("446").then(h.bind(h,733))},"ThemeEditorProvider").ThemeEditorProvider,S=(0,e.lazy)(function(){return Promise.all([h.e("494"),h.e("936"),h.e("200")]).then(h.bind(h,7787))}),x=(0,e.lazy)(function(){return Promise.resolve().then(h.bind(h,5954))},"ThemeListProvider").ThemeListProvider,T=(0,e.lazy)(function(){return Promise.all([h.e("494"),h.e("936"),h.e("183")]).then(h.bind(h,8042))}),C=(0,e.createStyles)(function(e){var t=e.css,n=e.token;return{editor:t(w(),n.colorBorderSecondary)}}),E=i().memo(function(n){var u,a,c=function(e){if(Array.isArray(e))return e}(u=i().useState(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){u=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw n}}return o}}(u)||function(e){if(e){if("string"==typeof e)return p(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,2)}}(u)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=c[0],s=c[1],f=(0,e.useGlobalTheme)(),d=f.theme,h=f.setTheme,m=C().styles,b=(0,o.useMemo)(function(){return l?{transform:"rotate(0)",flexGrow:1,width:0,height:"100%"}:{flexGrow:1,width:0,height:"100%"}},[l]),y=i().createElement("div",{style:{display:"flex",overflow:"hidden",height:"100%"}},i().createElement("div",{style:b},n.children),l?i().createElement("div",{className:m.editor},i().createElement(T,{onThemeChange:h})):null);return(null==d||null==(a=d.token)?void 0:a.motionUnit)||r().set(d,"token.motionUnit",e.defaultTheme.token.motionUnit),i().createElement(t.ConfigProvider,{theme:d},i().createElement(x,null,i().createElement(j,null,i().createElement(P,{open:l,setOpen:s},y))))});E.displayName="CustomThemeProvider";var k=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=b(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,g()?Reflect.construct(e,t||[],b(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&y(n,e),t=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(u,"next",{value:c(0)}),a(u,"throw",{value:c(1)}),a(u,"return",{value:c(2)}),"function"==typeof Symbol&&a(u,Symbol.iterator,{value:function(){return this}}),u;function c(a){return function(c){var l=[a,c];if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){return this.app.use(E),this.app.pluginSettingsManager.add(l.C,{title:'{{t("Theme editor", {ns:"'.concat(l.C,'"})}}'),icon:"BgColorsOutlined",Component:S,aclSnippet:"pm.theme-editor.themes"}),this.app.addUserCenterSettingsItem({name:"theme",sort:310,Component:f}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function u(e){d(i,r,o,u,a,"next",e)}function a(e){d(i,r,o,u,a,"throw",e)}u(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(v(e.Plugin)),_=k}(),O}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@emotion/css"),require("@ant-design/cssinjs"),require("react"),require("antd"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("lodash")):"function"==typeof define&&define.amd?define("@nocobase/plugin-theme-editor",["react-i18next","@emotion/css","@ant-design/cssinjs","react","antd","@nocobase/client","@ant-design/icons","@nocobase/utils/client","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-theme-editor"]=t(require("react-i18next"),require("@emotion/css"),require("@ant-design/cssinjs"),require("react"),require("antd"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("lodash")):e["@nocobase/plugin-theme-editor"]=t(e["react-i18next"],e["@emotion/css"],e["@ant-design/cssinjs"],e.react,e.antd,e["@nocobase/client"],e["@ant-design/icons"],e["@nocobase/utils/client"],e.lodash)}(self,function(e,t,n,r,o,i,u,a,c){return function(){"use strict";var l,s,f,p={4811:function(e,t,n){n.r(t),n.d(t,{useThemeId:function(){return f}});var r=n(3342),o=n(7768),i=n(9155),u=n.n(i),a=n(9394),c=n(8070),l=n(5954),s=u().createContext({}),f=function(){return u().useContext(s)},p=function(e){var t,n,f,p=e.children,d=(0,r.useCurrentUserContext)(),h=(0,r.useGlobalTheme)().setTheme,m=(0,l.useThemeListContext)(),b=m.run,y=m.data,v=m.loading,g=(0,i.useMemo)(function(){return null==y?void 0:y.find(function(e){return e.default})},[y]),w=(0,i.useRef)(null),O=(0,r.useAPIClient)();(0,i.useEffect)(function(){var e=O.auth.getOption("theme");if(e)try{h((0,c.m)(JSON.parse(e)).config)}catch(e){(0,o.error)(e)}},[]),(0,i.useEffect)(function(){if(!y)return b();var e,t,n,o,i=null==d||null==(n=d.data)||null==(t=n.data)||null==(e=t.systemSettings)?void 0:e.themeId;null!=i&&(o=y.find(function(e){return e.id===i})),o||(o=g),o?(w.current=o.id,h(o.config),O.auth.setOption("theme",JSON.stringify(Object.assign(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},o),{config:(0,a.M)(o.config)})))):(h(r.defaultTheme),O.auth.setOption("theme",null))},[O.auth,null==d||null==(f=d.data)||null==(n=f.data)||null==(t=n.systemSettings)?void 0:t.themeId,y,b,h,g]);var j=v&&!y||d.loading?{}:{currentThemeId:w.current,defaultThemeId:null==g?void 0:g.id};return u().createElement(s.Provider,{value:j},p)};p.displayName="InitializeTheme",t.default=p},5954:function(e,t,n){n.r(t),n.d(t,{ThemeListProvider:function(){return s},useThemeListContext:function(){return l}});var r=n(3342),o=n(7768),i=n(9155),u=n.n(i),a=n(8070),c=(0,i.createContext)(null);c.displayName="ThemeListContext";var l=function(){return u().useContext(c)},s=function(e){var t=e.children,n=(0,r.useRequest)({url:"themeConfig:list",params:{sort:"id",paginate:!1}},{manual:!0}),l=n.data,s=n.error,f=n.run,p=n.refresh,d=n.loading,h=(0,i.useMemo)(function(){var e;return null==l||null==(e=l.data)?void 0:e.map(function(e){return(0,a.m)(e)})},[l]);return s&&(0,o.error)(s),u().createElement(c.Provider,{value:{data:h,error:s,run:f,refresh:p,loading:d}},t)};s.displayName="ThemeListProvider"},2166:function(e,t,n){n.d(t,{j:function(){return l}});var r=n(3342),o=n(7768),i=n(9155);function u(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function l(){var e=(0,r.useAPIClient)(),t=(0,r.useCurrentUserContext)();return{updateUserThemeSettings:(0,i.useCallback)(function(n){var r;return(r=function(){var r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(u,"next",{value:c(0)}),a(u,"throw",{value:c(1)}),a(u,"return",{value:c(2)}),"function"==typeof Symbol&&a(u,Symbol.iterator,{value:function(){return this}}),u;function c(a){return function(c){var l=[a,c];if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e.resource("users").updateTheme({values:{themeId:n}})];case 1:return i.sent(),t.mutate({data:c(a({},t.data.data),{systemSettings:c(a({},t.data.data.systemSettings||{}),{themeId:n})})}),window.location.reload(),[3,3];case 2:return r=i.sent(),console.log(o.error),(0,o.error)(r),[3,3];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)})})()},[e,t])}}},9394:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(2059),o=n(6773),i=n.n(o);function u(e){return(e=i().cloneDeep(e)).algorithm&&(Array.isArray(e.algorithm)?e.algorithm=e.algorithm.map(function(e){return a(e)}).filter(Boolean):e.algorithm=a(e.algorithm),i().isEmpty(e.algorithm)&&delete e.algorithm),e}function a(e){return"string"==typeof e?e:e.toString()===r.theme.darkAlgorithm.toString()?"darkAlgorithm":e.toString()===r.theme.compactAlgorithm.toString()?"compactAlgorithm":void 0}},8070:function(e,t,n){n.d(t,{m:function(){return u}});var r=n(2059),o=n(6773),i=n.n(o);function u(e){var t;return e=i().cloneDeep(e),i().isString(e.config.algorithm)&&(e.config.algorithm=r.theme[e.config.algorithm]),Array.isArray(null==(t=e.config)?void 0:t.algorithm)&&(e.config.algorithm=e.config.algorithm.map(function(e){return i().isString(e)?r.theme[e]:e})),e}},3872:function(e,t,n){n.d(t,{B:function(){return i},C:function(){return o}});var r=n(5953),o="theme-editor";function i(){return(0,r.useTranslation)([o,"client"],{nsMode:"fallback"})}},1802:function(e){e.exports=n},7375:function(e){e.exports=u},5477:function(e){e.exports=t},3342:function(e){e.exports=i},7768:function(e){e.exports=a},2059:function(e){e.exports=o},6773:function(e){e.exports=c},9155:function(e){e.exports=r},5953:function(t){t.exports=e}},d={};function h(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return p[e](n,n.exports,h),n.exports}h.m=p,h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.u=function(e){return""+({183:"f505fcce6b7af08d",200:"5e9edfa3bd0bbecf",446:"fe8c0cbc80d4e8b9",494:"cf9a9b6e59fca224",936:"27403773798a05bc"})[e]+".js"},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m={},h.l=function(e,t,n,r){if(m[e])return void m[e].push(t);if(void 0!==n)for(var o,i,u=document.getElementsByTagName("script"),a=0;a<u.length;a++){var c=u[a];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@nocobase/plugin-theme-editor:"+n){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,h.nc&&o.setAttribute("nonce",h.nc),o.setAttribute("data-rspack","@nocobase/plugin-theme-editor:"+n),o.src=e),m[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=m[e];if(delete m[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},h.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.nc=void 0,h.g.importScripts&&(b=h.g.location+"");var m,b,y=h.g.document;if(!b&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(b=y.currentScript.src),!b)){var v=y.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!b||!/^http(s?):/.test(b));)b=v[g--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");h.p=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l={889:0},h.f.j=function(e,t){var n=h.o(l,e)?l[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=l[e]=[t,r]});t.push(n[2]=r);var o=h.p+h.u(e),i=Error();h.l(o,function(t){if(h.o(l,e)&&(0!==(n=l[e])&&(l[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}},s=function(e,t){var n,r,o=t[0],i=t[1],u=t[2],a=0;if(o.some(function(e){return 0!==l[e]})){for(n in i)h.o(i,n)&&(h.m[n]=i[n]);u&&u(h)}for(e&&e(t);a<o.length;a++)r=o[a],h.o(l,r)&&l[r]&&l[r][0](),l[r]=0},(f=self.webpackChunk_nocobase_plugin_theme_editor=self.webpackChunk_nocobase_plugin_theme_editor||[]).forEach(s.bind(null,0)),f.push=s.bind(null,f.push.bind(f));var w={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-theme-editor/dist/client/")}if(!e){if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var r=window.location.pathname||"/",o=r.indexOf("/v2/");e=o>=0?r.slice(0,o+1):"/"}e&&(e=e.replace(/\/v2\/?$/,"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-theme-editor/dist/client/"}h.p=e}(),!function(){h.r(w),h.d(w,{PluginThemeEditorClient:function(){return k},default:function(){return _}});var e=h(3342),t=h(2059),n=h(6773),r=h.n(n),o=h(9155),i=h.n(o),u=h(7768),a=h(4811),c=h(5954),l=h(3872),s=h(2166),f=function(){var t=(0,l.B)().t,n=(0,c.useThemeListContext)(),r=n.run,f=n.error,p=n.data,d=(0,s.j)().updateUserThemeSettings,h=(0,a.useThemeId)().currentThemeId,m=(0,o.useMemo)(function(){return null==p?void 0:p.filter(function(e){return e.optional}).map(function(e){return{label:t(e.config.name),value:e.id}})},[p,t]);return((0,o.useEffect)(function(){p||r()},[]),f)?((0,u.error)(f),null):i().createElement(e.SchemaSettingsSelectItem,{title:t("Theme"),options:m,value:h,onChange:function(e){d(e)}})};function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function m(e,t,n){return(m=g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&y(o,n.prototype),o}).apply(null,arguments)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=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,n)}function n(){return m(e,arguments,b(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function O(){var e,t,n=(e=["\n overflow: hidden;\n border-left: 1px solid ",";\n animation: 0.1s ease-out 0s 1 slideInFromRight;\n @keyframes slideInFromRight {\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return O=function(){return n},n}var j=(0,e.lazy)(function(){return Promise.resolve().then(h.bind(h,4811))}),S=(0,e.lazy)(function(){return h.e("446").then(h.bind(h,733))},"ThemeEditorProvider").ThemeEditorProvider,P=(0,e.lazy)(function(){return Promise.all([h.e("494"),h.e("936"),h.e("200")]).then(h.bind(h,7787))}),x=(0,e.lazy)(function(){return Promise.resolve().then(h.bind(h,5954))},"ThemeListProvider").ThemeListProvider,T=(0,e.lazy)(function(){return Promise.all([h.e("494"),h.e("936"),h.e("183")]).then(h.bind(h,8042))}),C=(0,e.createStyles)(function(e){var t=e.css,n=e.token;return{editor:t(O(),n.colorBorderSecondary)}}),E=i().memo(function(n){var u,a,c=function(e){if(Array.isArray(e))return e}(u=i().useState(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){u=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw n}}return o}}(u)||function(e){if(e){if("string"==typeof e)return p(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return p(e,2)}}(u)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=c[0],s=c[1],f=(0,e.useGlobalTheme)(),d=f.theme,h=f.setTheme,m=C().styles,b=(0,o.useMemo)(function(){return l?{transform:"rotate(0)",flexGrow:1,width:0,height:"100%"}:{flexGrow:1,width:0,height:"100%"}},[l]),y=i().createElement("div",{style:{display:"flex",overflow:"hidden",height:"100%"}},i().createElement("div",{style:b},n.children),l?i().createElement("div",{className:m.editor},i().createElement(T,{onThemeChange:h})):null);return(null==d||null==(a=d.token)?void 0:a.motionUnit)||r().set(d,"token.motionUnit",e.defaultTheme.token.motionUnit),i().createElement(t.ConfigProvider,{theme:d},i().createElement(x,null,i().createElement(j,null,i().createElement(S,{open:l,setOpen:s},y))))});E.displayName="CustomThemeProvider";var k=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=b(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,g()?Reflect.construct(e,t||[],b(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&y(n,e),t=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(u,"next",{value:c(0)}),a(u,"throw",{value:c(1)}),a(u,"return",{value:c(2)}),"function"==typeof Symbol&&a(u,Symbol.iterator,{value:function(){return this}}),u;function c(a){return function(c){var l=[a,c];if(n)throw TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){return this.app.use(E),this.app.pluginSettingsManager.add(l.C,{title:'{{t("Theme editor", {ns:"'.concat(l.C,'"})}}'),icon:"BgColorsOutlined",Component:P,aclSnippet:"pm.theme-editor.themes"}),this.app.addUserCenterSettingsItem({name:"theme",sort:310,Component:f}),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function u(e){d(i,r,o,u,a,"next",e)}function a(e){d(i,r,o,u,a,"throw",e)}u(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(v(e.Plugin)),_=k}(),w}()});
@@ -8,16 +8,16 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-alpha.12",
11
+ "@nocobase/client": "2.1.0-alpha.14",
12
12
  "react": "18.2.0",
13
13
  "antd": "5.24.2",
14
14
  "lodash": "4.17.21",
15
- "@nocobase/server": "2.1.0-alpha.12",
15
+ "@nocobase/server": "2.1.0-alpha.14",
16
16
  "@ant-design/cssinjs": "1.21.1",
17
17
  "@ant-design/icons": "5.6.1",
18
- "@nocobase/utils": "2.1.0-alpha.12",
18
+ "@nocobase/utils": "2.1.0-alpha.14",
19
19
  "react-i18next": "11.18.6",
20
- "@nocobase/actions": "2.1.0-alpha.12",
21
- "@nocobase/database": "2.1.0-alpha.12",
20
+ "@nocobase/actions": "2.1.0-alpha.14",
21
+ "@nocobase/database": "2.1.0-alpha.14",
22
22
  "@emotion/css": "11.13.0"
23
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-theme-editor",
3
- "version": "2.1.0-alpha.12",
3
+ "version": "2.1.0-alpha.14",
4
4
  "main": "dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/theme-editor",
6
6
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/theme-editor",
@@ -34,7 +34,7 @@
34
34
  "@nocobase/test": "2.x",
35
35
  "@nocobase/utils": "2.x"
36
36
  },
37
- "gitHead": "f12c4a75470590b1670ce54510b96ef94c2cd7a2",
37
+ "gitHead": "d8735b541de0ff9557bba704de49c799b4962672",
38
38
  "keywords": [
39
39
  "System management"
40
40
  ],