@nocobase/client-v2 3.0.0-alpha.1 → 3.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.mjs CHANGED
@@ -327,7 +327,7 @@ ${n}`,u)}}let o=T(e.issues.filter(e=>"runtime"===e.type)),n=o?`Key runtime issue
327
327
  .ant-pagination-item-link {
328
328
  min-width: ${l}px;
329
329
  }
330
- `},i,a.default.createElement("div",{style:o},t)):i},h=(e,t)=>t?{...e,showTotal:!1,showSizeChanger:!1,showLessItems:!0,className:p(e.className,c())}:e},5703(e,t,l){l.d(t,{n:()=>n});var o=l(504);let n=()=>(0,o.useFlowEngineContext)().app},2202(e,t,l){l.d(t,{g:()=>i});var o=l(504),n=l(1649);function i(){let e=(0,o.useFlowEngineContext)(),[t,l]=(0,n.useState)();return(0,n.useEffect)(()=>{let t=!0;return Promise.resolve(e.appInfo).then(e=>{t&&l(e||{})}).catch(e=>{console.error(e)}),()=>{t=!1}},[e]),t}},6625(e,t,l){l.d(t,{n:()=>n});var o=l(5703);function n(e){return(0,o.n)().pm.get(e)}},6553(e,t,l){l.d(t,{A:()=>o});let o={"ar-EG":{label:"العربية"},"az-AZ":{label:"Azərbaycan dili"},"bg-BG":{label:"Български"},"bn-BD":{label:"Bengali"},"by-BY":{label:"Беларускі"},"ca-ES":{label:"Сatal\xe0/Espanya"},"cs-CZ":{label:"Česky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"Ελληνικά"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xf1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"فارسی"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xe7ais(BE)"},"fr-CA":{label:"Fran\xe7ais(CA)"},"fr-FR":{label:"Fran\xe7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"עברית"},"hi-IN":{label:"हिन्दी"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"Հայերեն"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xcdslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"日本語"},"ka-GE":{label:"ქართული"},"kk-KZ":{label:"Қазақ тілі"},"km-KH":{label:"ភាសាខ្មែរ"},"kn-IN":{label:"ಕನ್ನಡ"},"ko-KR":{label:"한국어"},"ku-IQ":{label:"کوردی"},"lt-LT":{label:"lietuvių"},"lv-LV":{label:"Latviešu valoda"},"mk-MK":{label:"македонски јазик"},"ml-IN":{label:"മലയാളം"},"mn-MN":{label:"Монгол хэл"},"ms-MY":{label:"بهاس ملايو"},"my-MM":{label:"မြန်မာဘာသာ"},"nb-NO":{label:"Norsk bokm\xe5l"},"ne-NP":{label:"नेपाली"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xeas brasileiro"},"pt-PT":{label:"Portugu\xeas"},"ro-RO":{label:"Rom\xe2nia"},"ru-RU":{label:"Русский"},"si-LK":{label:"සිංහල"},"sk-SK":{label:"Slovenčina"},"sl-SI":{label:"Slovenščina"},"sr-RS":{label:"српски језик"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"ภาษาไทย"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xfcrk\xe7e"},"uk-UA":{label:"Українська"},"ur-PK":{label:"اردو"},"uz-UZ":{label:"Oʻzbekcha"},"vi-VN":{label:"Tiếng Việt"},"zh-CN":{label:"简体中文"},"zh-HK":{label:"繁體中文(香港)"},"zh-TW":{label:"繁體中文(台湾)"}}},4302(e,t,l){l.r(t),l.d(t,{AdminSettingsLayout:()=>w,default:()=>S,InternalAdminSettingsLayout:()=>M});var o=l(1178),n=l(4829),i=l(691),r=l(504),a=l(2793),s=l(1649),d=l(7843),u=l(8356),c=l(5703),p=l(6681),m=l(3589);let h=[{key:"applications",title:"Applications",primary:"multi-portal"},{key:"plugins",title:"Plugin manager",primary:"plugin-manager"},{key:"data",title:"Data sources",primary:"data-source-manager"},{key:"access",title:"Users & Permissions",primary:"users-permissions"},{key:"automation",title:"Workflow",primary:"workflow"},{key:"ai",title:"AI employees",primary:"ai"},{key:"system",title:"Other settings"}],f="system",g={"multi-portal":"applications","plugin-manager":"plugins","data-source-manager":"data","users-permissions":"access",workflow:"automation",ai:"ai"};function v(e){if(!e)return f;let t=e.group;return t&&h.some(e=>e.key===t)?t:g[e.name]||f}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h.map(t=>{let l=e.filter(e=>v(e)===t.key),o=t.primary?l.findIndex(e=>e.name===t.primary):-1;return{...t,settings:o>0?[l[o],...l.slice(0,o),...l.slice(o+1)]:l}}).filter(e=>e.settings.length>0)}var _=l(6431);function b(){let e=(0,c.n)(),t=(0,u.useLocation)(),l=(0,m.MK)(),o=(0,s.useMemo)(()=>(0,_.Ui)(e.pluginSettingsManager.getList(!1)),[e.pluginSettingsManager]),n=(0,s.useMemo)(()=>{let t=(0,_.eD)((0,_.Ui)(e.pluginSettingsManager.getList(!0)));return(0,_.p$)(t.filter(e=>e.name!==_.Bm||l.includes("pm")))},[e.pluginSettingsManager,l]),i=(0,s.useMemo)(()=>y(n),[n]),r=(0,s.useMemo)(()=>(0,_.nC)(o),[o]),a=(0,s.useMemo)(()=>(0,_.CM)(r,t.pathname),[t.pathname,r]),d=(0,s.useMemo)(()=>a?o.find(e=>e.name===a.topLevelName)||a:null,[o,a]),p=(0,s.useMemo)(()=>{var e,t;if(!d)return(null==(t=i[0])?void 0:t.key)??null;let l=v(d);return i.some(e=>e.key===l)?l:(null==(e=i[0])?void 0:e.key)??null},[d,i]),h=(0,s.useMemo)(()=>i.find(e=>e.key===p),[p,i]);return{activeGroupKey:p,activeGroupSettings:(null==h?void 0:h.settings)??[],allSettings:o,currentSetting:a,currentTopLevelSetting:d,getGroupEntryPath:(0,s.useCallback)(e=>{var t;let l=i.find(t=>t.key===e);if(l)return null==(t=(0,_.X2)(l.settings))?void 0:t.path},[i]),groups:i,visibleSettings:n}}function x(e){let{type:t}=e,{t:l}=(0,d.useTranslation)();return"route"===t?(0,o.jsx)(a.Result,{status:"warning",title:l("Current settings page is unavailable"),subTitle:l("The requested settings page does not exist or you do not have permission to access it.")}):(0,o.jsx)(a.Result,{status:"info",title:l("No settings pages available"),subTitle:l("No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.")})}let M=()=>{var e,t,l;let i=(0,c.n)(),r=(0,u.useNavigate)(),d=(0,u.useLocation)(),{token:p}=a.theme.useToken(),{activeGroupSettings:m,allSettings:h,currentSetting:f,currentTopLevelSetting:g,visibleSettings:v}=b(),y=(0,s.useMemo)(()=>(0,_.nC)(v),[v]),M=(0,s.useMemo)(()=>(0,_.CM)(y,d.pathname),[d.pathname,y]),w=(0,s.useMemo)(()=>f&&v.find(e=>e.name===f.topLevelName)||null,[v,f]),S=(0,s.useMemo)(()=>(0,_.C9)(v),[v]),k=i.pluginSettingsManager.getRoutePath(""),F=k.replace(/\/$/,""),C=(0,s.useMemo)(()=>(0,_.IA)(m),[m]),A=m.length>1,P=(0,s.useMemo)(()=>{let e=((null==w?void 0:w.children)||[]).filter(e=>!e.hidden&&!e.link&&e.path);return e.length>1?e.map(e=>({key:e.path,label:e.label??e.title})):[]},[w]),T=(0,s.useMemo)(()=>{var e;if(!P.length)return;let t=P.find(e=>d.pathname===e.key||d.pathname.startsWith(`${e.key}/`));return(null==t?void 0:t.key)??(null==(e=P[0])?void 0:e.key)},[d.pathname,P]),j=(0,s.useMemo)(()=>(0,_.xD)(m,null==M?void 0:M.name)||(0,_.xD)(m,null==w?void 0:w.name),[m,null==M?void 0:M.name,null==w?void 0:w.name]),I=M&&M.title!==(null==g?void 0:g.title)?M.title:void 0;(0,s.useEffect)(()=>{let e=g&&"string"==typeof g.title?g.title:null==g?void 0:g.topLevelName;e&&(document.title=e)},[g]);let L=d.pathname===k||d.pathname===F||d.pathname===`${k}index`;if(L&&S)return(0,o.jsx)(u.Navigate,{replace:!0,to:S});if(L&&!S)return(0,o.jsx)(x,{type:"home"});if(!f||!M&&!1===f.isAllow)return(0,o.jsx)(x,{type:"route"});if(f.link)return(0,o.jsx)(u.Navigate,{replace:!0,to:f.link});if(d.pathname===(null==g?void 0:g.path)&&(null==g||null==(e=g.children)?void 0:e.length)){let e=null==w||null==(l=w.children)||null==(t=l.find(e=>"index"===e.pageKey))?void 0:t.path,n=(0,_.C9)(null==w?void 0:w.children),i=e||n;if(i&&i!==d.pathname)return(0,o.jsx)(u.Navigate,{replace:!0,to:i})}return(0,o.jsxs)(a.Layout,{style:{height:"100%",minHeight:"100%",background:p.colorBgLayout,borderRadius:p.borderRadiusLG,overflow:"hidden"},children:[A?(0,o.jsx)(a.Layout.Sider,{width:200,style:{background:p.colorBgContainer,borderInlineEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,minHeight:0,overflowY:"auto",overflowX:"hidden"},children:(0,o.jsx)(a.Menu,{mode:"inline",inlineIndent:16,selectedKeys:j?[j]:[],style:{height:"100%",borderInlineEnd:"none"},onClick:e=>{var t;let{key:l}=e,o=(0,_.R0)(m,String(l));if(!o)return;if(o.link)return void window.open(o.link,"_blank","noopener,noreferrer");let n=(null==(t=o.children)?void 0:t.length)?(0,_.C9)(o.children):o.path;n&&n!==d.pathname&&r(n)},items:C})}):null,(0,o.jsx)(a.Layout.Content,{style:{background:p.colorBgLayout,flex:1,display:"flex",flexDirection:"column",minWidth:0,minHeight:0,overflow:"hidden"},children:(0,o.jsxs)("div",{style:{flex:1,minHeight:0,boxSizing:"border-box",overflow:"auto"},children:[(0,o.jsx)(n.PageHeader,{ghost:!1,title:null==g?void 0:g.title,subTitle:P.length?void 0:I,footer:P.length?(0,o.jsx)(a.Tabs,{activeKey:T,items:P,tabBarStyle:{marginBottom:0},onChange:e=>{e!==d.pathname&&r(e)}}):void 0,style:{background:p.colorBgContainer,borderBlockEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,paddingBottom:P.length?0:p.padding}}),(0,o.jsx)("div",{style:{padding:p.paddingLG},children:(0,o.jsx)(u.Outlet,{})})]})})]})},w=e=>{let t=(0,r.useFlowEngine)(),l=(0,s.useRef)(null),n=(0,s.useMemo)(()=>(0,o.jsx)(M,{...e}),[e]),a=(0,i.css)`
330
+ `},i,a.default.createElement("div",{style:o},t)):i},h=(e,t)=>t?{...e,showTotal:!1,showSizeChanger:!1,showLessItems:!0,className:p(e.className,c())}:e},5703(e,t,l){l.d(t,{n:()=>n});var o=l(504);let n=()=>(0,o.useFlowEngineContext)().app},2202(e,t,l){l.d(t,{g:()=>i});var o=l(504),n=l(1649);function i(){let e=(0,o.useFlowEngineContext)(),[t,l]=(0,n.useState)();return(0,n.useEffect)(()=>{let t=!0;return Promise.resolve(e.appInfo).then(e=>{t&&l(e||{})}).catch(e=>{console.error(e)}),()=>{t=!1}},[e]),t}},6625(e,t,l){l.d(t,{n:()=>n});var o=l(5703);function n(e){return(0,o.n)().pm.get(e)}},6553(e,t,l){l.d(t,{A:()=>o});let o={"ar-EG":{label:"العربية"},"az-AZ":{label:"Azərbaycan dili"},"bg-BG":{label:"Български"},"bn-BD":{label:"Bengali"},"by-BY":{label:"Беларускі"},"ca-ES":{label:"Сatal\xe0/Espanya"},"cs-CZ":{label:"Česky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"Ελληνικά"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xf1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"فارسی"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xe7ais(BE)"},"fr-CA":{label:"Fran\xe7ais(CA)"},"fr-FR":{label:"Fran\xe7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"עברית"},"hi-IN":{label:"हिन्दी"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"Հայերեն"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xcdslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"日本語"},"ka-GE":{label:"ქართული"},"kk-KZ":{label:"Қазақ тілі"},"km-KH":{label:"ភាសាខ្មែរ"},"kn-IN":{label:"ಕನ್ನಡ"},"ko-KR":{label:"한국어"},"ku-IQ":{label:"کوردی"},"lt-LT":{label:"lietuvių"},"lv-LV":{label:"Latviešu valoda"},"mk-MK":{label:"македонски јазик"},"ml-IN":{label:"മലയാളം"},"mn-MN":{label:"Монгол хэл"},"ms-MY":{label:"بهاس ملايو"},"my-MM":{label:"မြန်မာဘာသာ"},"nb-NO":{label:"Norsk bokm\xe5l"},"ne-NP":{label:"नेपाली"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xeas brasileiro"},"pt-PT":{label:"Portugu\xeas"},"ro-RO":{label:"Rom\xe2nia"},"ru-RU":{label:"Русский"},"si-LK":{label:"සිංහල"},"sk-SK":{label:"Slovenčina"},"sl-SI":{label:"Slovenščina"},"sr-RS":{label:"српски језик"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"ภาษาไทย"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xfcrk\xe7e"},"uk-UA":{label:"Українська"},"ur-PK":{label:"اردو"},"uz-UZ":{label:"Oʻzbekcha"},"vi-VN":{label:"Tiếng Việt"},"zh-CN":{label:"简体中文"},"zh-HK":{label:"繁體中文(香港)"},"zh-TW":{label:"繁體中文(台湾)"}}},4302(e,t,l){l.r(t),l.d(t,{AdminSettingsLayout:()=>w,default:()=>S,InternalAdminSettingsLayout:()=>M});var o=l(1178),n=l(4829),i=l(691),r=l(504),a=l(2793),s=l(1649),d=l(7843),u=l(8356),c=l(5703),p=l(6681),m=l(3589);let h=[{key:"applications",title:"Applications",primary:"multi-portal"},{key:"data",title:"Data sources",primary:"data-source-manager"},{key:"access",title:"Users & Permissions",primary:"users-permissions"},{key:"automation",title:"Workflow",primary:"workflow"},{key:"ai",title:"AI employees",primary:"ai"},{key:"plugins",title:"Plugin manager",primary:"plugin-manager"},{key:"system",title:"Other settings"}],f="system",g={"multi-portal":"applications","plugin-manager":"plugins","data-source-manager":"data","users-permissions":"access",workflow:"automation",ai:"ai"};function v(e){if(!e)return f;let t=e.group;return t&&h.some(e=>e.key===t)?t:g[e.name]||f}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h.map(t=>{let l=e.filter(e=>v(e)===t.key),o=t.primary?l.findIndex(e=>e.name===t.primary):-1;return{...t,settings:o>0?[l[o],...l.slice(0,o),...l.slice(o+1)]:l}}).filter(e=>e.settings.length>0)}var _=l(6431);function b(){let e=(0,c.n)(),t=(0,u.useLocation)(),l=(0,m.MK)(),o=(0,s.useMemo)(()=>(0,_.Ui)(e.pluginSettingsManager.getList(!1)),[e.pluginSettingsManager]),n=(0,s.useMemo)(()=>{let t=(0,_.eD)((0,_.Ui)(e.pluginSettingsManager.getList(!0)));return(0,_.p$)(t.filter(e=>e.name!==_.Bm||l.includes("pm")))},[e.pluginSettingsManager,l]),i=(0,s.useMemo)(()=>y(n),[n]),r=(0,s.useMemo)(()=>(0,_.nC)(o),[o]),a=(0,s.useMemo)(()=>(0,_.CM)(r,t.pathname),[t.pathname,r]),d=(0,s.useMemo)(()=>a?o.find(e=>e.name===a.topLevelName)||a:null,[o,a]),p=(0,s.useMemo)(()=>{var e,t;if(!d)return(null==(t=i[0])?void 0:t.key)??null;let l=v(d);return i.some(e=>e.key===l)?l:(null==(e=i[0])?void 0:e.key)??null},[d,i]),h=(0,s.useMemo)(()=>i.find(e=>e.key===p),[p,i]);return{activeGroupKey:p,activeGroupSettings:(null==h?void 0:h.settings)??[],allSettings:o,currentSetting:a,currentTopLevelSetting:d,getGroupEntryPath:(0,s.useCallback)(e=>{var t;let l=i.find(t=>t.key===e);if(l)return null==(t=(0,_.X2)(l.settings))?void 0:t.path},[i]),groups:i,visibleSettings:n}}function x(e){let{type:t}=e,{t:l}=(0,d.useTranslation)();return"route"===t?(0,o.jsx)(a.Result,{status:"warning",title:l("Current settings page is unavailable"),subTitle:l("The requested settings page does not exist or you do not have permission to access it.")}):(0,o.jsx)(a.Result,{status:"info",title:l("No settings pages available"),subTitle:l("No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.")})}let M=()=>{var e,t,l;let i=(0,c.n)(),r=(0,u.useNavigate)(),d=(0,u.useLocation)(),{token:p}=a.theme.useToken(),{activeGroupSettings:m,allSettings:h,currentSetting:f,currentTopLevelSetting:g,visibleSettings:v}=b(),y=(0,s.useMemo)(()=>(0,_.nC)(v),[v]),M=(0,s.useMemo)(()=>(0,_.CM)(y,d.pathname),[d.pathname,y]),w=(0,s.useMemo)(()=>f&&v.find(e=>e.name===f.topLevelName)||null,[v,f]),S=(0,s.useMemo)(()=>(0,_.C9)(v),[v]),k=i.pluginSettingsManager.getRoutePath(""),F=k.replace(/\/$/,""),C=(0,s.useMemo)(()=>(0,_.IA)(m),[m]),A=m.length>1,P=(0,s.useMemo)(()=>{let e=((null==w?void 0:w.children)||[]).filter(e=>!e.hidden&&!e.link&&e.path);return e.length>1?e.map(e=>({key:e.path,label:e.label??e.title})):[]},[w]),T=(0,s.useMemo)(()=>{var e;if(!P.length)return;let t=P.find(e=>d.pathname===e.key||d.pathname.startsWith(`${e.key}/`));return(null==t?void 0:t.key)??(null==(e=P[0])?void 0:e.key)},[d.pathname,P]),j=(0,s.useMemo)(()=>(0,_.xD)(m,null==M?void 0:M.name)||(0,_.xD)(m,null==w?void 0:w.name),[m,null==M?void 0:M.name,null==w?void 0:w.name]),I=M&&M.title!==(null==g?void 0:g.title)?M.title:void 0;(0,s.useEffect)(()=>{let e=g&&"string"==typeof g.title?g.title:null==g?void 0:g.topLevelName;e&&(document.title=e)},[g]);let L=d.pathname===k||d.pathname===F||d.pathname===`${k}index`;if(L&&S)return(0,o.jsx)(u.Navigate,{replace:!0,to:S});if(L&&!S)return(0,o.jsx)(x,{type:"home"});if(!f||!M&&!1===f.isAllow)return(0,o.jsx)(x,{type:"route"});if(f.link)return(0,o.jsx)(u.Navigate,{replace:!0,to:f.link});if(d.pathname===(null==g?void 0:g.path)&&(null==g||null==(e=g.children)?void 0:e.length)){let e=null==w||null==(l=w.children)||null==(t=l.find(e=>"index"===e.pageKey))?void 0:t.path,n=(0,_.C9)(null==w?void 0:w.children),i=e||n;if(i&&i!==d.pathname)return(0,o.jsx)(u.Navigate,{replace:!0,to:i})}return(0,o.jsxs)(a.Layout,{style:{height:"100%",minHeight:"100%",background:p.colorBgLayout,borderRadius:p.borderRadiusLG,overflow:"hidden"},children:[A?(0,o.jsx)(a.Layout.Sider,{width:200,style:{background:p.colorBgContainer,borderInlineEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,minHeight:0,overflowY:"auto",overflowX:"hidden"},children:(0,o.jsx)(a.Menu,{mode:"inline",inlineIndent:16,selectedKeys:j?[j]:[],style:{height:"100%",borderInlineEnd:"none"},onClick:e=>{var t;let{key:l}=e,o=(0,_.R0)(m,String(l));if(!o)return;if(o.link)return void window.open(o.link,"_blank","noopener,noreferrer");let n=(null==(t=o.children)?void 0:t.length)?(0,_.C9)(o.children):o.path;n&&n!==d.pathname&&r(n)},items:C})}):null,(0,o.jsx)(a.Layout.Content,{style:{background:p.colorBgLayout,flex:1,display:"flex",flexDirection:"column",minWidth:0,minHeight:0,overflow:"hidden"},children:(0,o.jsxs)("div",{style:{flex:1,minHeight:0,boxSizing:"border-box",overflow:"auto"},children:[(0,o.jsx)(n.PageHeader,{ghost:!1,title:null==g?void 0:g.title,subTitle:P.length?void 0:I,footer:P.length?(0,o.jsx)(a.Tabs,{activeKey:T,items:P,tabBarStyle:{marginBottom:0},onChange:e=>{e!==d.pathname&&r(e)}}):void 0,style:{background:p.colorBgContainer,borderBlockEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,paddingBottom:P.length?0:p.padding}}),(0,o.jsx)("div",{style:{padding:p.paddingLG},children:(0,o.jsx)(u.Outlet,{})})]})})]})},w=e=>{let t=(0,r.useFlowEngine)(),l=(0,s.useRef)(null),n=(0,s.useMemo)(()=>(0,o.jsx)(M,{...e}),[e]),a=(0,i.css)`
331
331
  height: 100%;
332
332
  > div {
333
333
  height: 100%;
package/lib/index.js CHANGED
@@ -327,7 +327,7 @@ ${n}`,u)}}let o=T(e.issues.filter(e=>"runtime"===e.type)),n=o?`Key runtime issue
327
327
  .ant-pagination-item-link {
328
328
  min-width: ${l}px;
329
329
  }
330
- `},i,a.default.createElement("div",{style:o},t)):i},h=(e,t)=>t?{...e,showTotal:!1,showSizeChanger:!1,showLessItems:!0,className:p(e.className,c())}:e},5703(e,t,l){l.d(t,{n:()=>n});var o=l(504);let n=()=>(0,o.useFlowEngineContext)().app},2202(e,t,l){l.d(t,{g:()=>i});var o=l(504),n=l(1649);function i(){let e=(0,o.useFlowEngineContext)(),[t,l]=(0,n.useState)();return(0,n.useEffect)(()=>{let t=!0;return Promise.resolve(e.appInfo).then(e=>{t&&l(e||{})}).catch(e=>{console.error(e)}),()=>{t=!1}},[e]),t}},6625(e,t,l){l.d(t,{n:()=>n});var o=l(5703);function n(e){return(0,o.n)().pm.get(e)}},6553(e,t,l){l.d(t,{A:()=>o});let o={"ar-EG":{label:"العربية"},"az-AZ":{label:"Azərbaycan dili"},"bg-BG":{label:"Български"},"bn-BD":{label:"Bengali"},"by-BY":{label:"Беларускі"},"ca-ES":{label:"Сatal\xe0/Espanya"},"cs-CZ":{label:"Česky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"Ελληνικά"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xf1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"فارسی"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xe7ais(BE)"},"fr-CA":{label:"Fran\xe7ais(CA)"},"fr-FR":{label:"Fran\xe7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"עברית"},"hi-IN":{label:"हिन्दी"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"Հայերեն"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xcdslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"日本語"},"ka-GE":{label:"ქართული"},"kk-KZ":{label:"Қазақ тілі"},"km-KH":{label:"ភាសាខ្មែរ"},"kn-IN":{label:"ಕನ್ನಡ"},"ko-KR":{label:"한국어"},"ku-IQ":{label:"کوردی"},"lt-LT":{label:"lietuvių"},"lv-LV":{label:"Latviešu valoda"},"mk-MK":{label:"македонски јазик"},"ml-IN":{label:"മലയാളം"},"mn-MN":{label:"Монгол хэл"},"ms-MY":{label:"بهاس ملايو"},"my-MM":{label:"မြန်မာဘာသာ"},"nb-NO":{label:"Norsk bokm\xe5l"},"ne-NP":{label:"नेपाली"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xeas brasileiro"},"pt-PT":{label:"Portugu\xeas"},"ro-RO":{label:"Rom\xe2nia"},"ru-RU":{label:"Русский"},"si-LK":{label:"සිංහල"},"sk-SK":{label:"Slovenčina"},"sl-SI":{label:"Slovenščina"},"sr-RS":{label:"српски језик"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"ภาษาไทย"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xfcrk\xe7e"},"uk-UA":{label:"Українська"},"ur-PK":{label:"اردو"},"uz-UZ":{label:"Oʻzbekcha"},"vi-VN":{label:"Tiếng Việt"},"zh-CN":{label:"简体中文"},"zh-HK":{label:"繁體中文(香港)"},"zh-TW":{label:"繁體中文(台湾)"}}},4302(e,t,l){l.r(t),l.d(t,{AdminSettingsLayout:()=>S,default:()=>w,InternalAdminSettingsLayout:()=>_});var o=l(1178),n=l(4829),i=l(691),r=l(504),a=l(2793),s=l(1649),d=l(7843),u=l(8356),c=l(5703),p=l(6681),m=l(3589);let h=[{key:"applications",title:"Applications",primary:"multi-portal"},{key:"plugins",title:"Plugin manager",primary:"plugin-manager"},{key:"data",title:"Data sources",primary:"data-source-manager"},{key:"access",title:"Users & Permissions",primary:"users-permissions"},{key:"automation",title:"Workflow",primary:"workflow"},{key:"ai",title:"AI employees",primary:"ai"},{key:"system",title:"Other settings"}],f="system",g={"multi-portal":"applications","plugin-manager":"plugins","data-source-manager":"data","users-permissions":"access",workflow:"automation",ai:"ai"};function v(e){if(!e)return f;let t=e.group;return t&&h.some(e=>e.key===t)?t:g[e.name]||f}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h.map(t=>{let l=e.filter(e=>v(e)===t.key),o=t.primary?l.findIndex(e=>e.name===t.primary):-1;return{...t,settings:o>0?[l[o],...l.slice(0,o),...l.slice(o+1)]:l}}).filter(e=>e.settings.length>0)}var b=l(6431);function x(){let e=(0,c.n)(),t=(0,u.useLocation)(),l=(0,m.MK)(),o=(0,s.useMemo)(()=>(0,b.Ui)(e.pluginSettingsManager.getList(!1)),[e.pluginSettingsManager]),n=(0,s.useMemo)(()=>{let t=(0,b.eD)((0,b.Ui)(e.pluginSettingsManager.getList(!0)));return(0,b.p$)(t.filter(e=>e.name!==b.Bm||l.includes("pm")))},[e.pluginSettingsManager,l]),i=(0,s.useMemo)(()=>y(n),[n]),r=(0,s.useMemo)(()=>(0,b.nC)(o),[o]),a=(0,s.useMemo)(()=>(0,b.CM)(r,t.pathname),[t.pathname,r]),d=(0,s.useMemo)(()=>a?o.find(e=>e.name===a.topLevelName)||a:null,[o,a]),p=(0,s.useMemo)(()=>{var e,t;if(!d)return(null==(t=i[0])?void 0:t.key)??null;let l=v(d);return i.some(e=>e.key===l)?l:(null==(e=i[0])?void 0:e.key)??null},[d,i]),h=(0,s.useMemo)(()=>i.find(e=>e.key===p),[p,i]);return{activeGroupKey:p,activeGroupSettings:(null==h?void 0:h.settings)??[],allSettings:o,currentSetting:a,currentTopLevelSetting:d,getGroupEntryPath:(0,s.useCallback)(e=>{var t;let l=i.find(t=>t.key===e);if(l)return null==(t=(0,b.X2)(l.settings))?void 0:t.path},[i]),groups:i,visibleSettings:n}}function M(e){let{type:t}=e,{t:l}=(0,d.useTranslation)();return"route"===t?(0,o.jsx)(a.Result,{status:"warning",title:l("Current settings page is unavailable"),subTitle:l("The requested settings page does not exist or you do not have permission to access it.")}):(0,o.jsx)(a.Result,{status:"info",title:l("No settings pages available"),subTitle:l("No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.")})}let _=()=>{var e,t,l;let i=(0,c.n)(),r=(0,u.useNavigate)(),d=(0,u.useLocation)(),{token:p}=a.theme.useToken(),{activeGroupSettings:m,allSettings:h,currentSetting:f,currentTopLevelSetting:g,visibleSettings:v}=x(),y=(0,s.useMemo)(()=>(0,b.nC)(v),[v]),_=(0,s.useMemo)(()=>(0,b.CM)(y,d.pathname),[d.pathname,y]),S=(0,s.useMemo)(()=>f&&v.find(e=>e.name===f.topLevelName)||null,[v,f]),w=(0,s.useMemo)(()=>(0,b.C9)(v),[v]),F=i.pluginSettingsManager.getRoutePath(""),k=F.replace(/\/$/,""),C=(0,s.useMemo)(()=>(0,b.IA)(m),[m]),A=m.length>1,P=(0,s.useMemo)(()=>{let e=((null==S?void 0:S.children)||[]).filter(e=>!e.hidden&&!e.link&&e.path);return e.length>1?e.map(e=>({key:e.path,label:e.label??e.title})):[]},[S]),T=(0,s.useMemo)(()=>{var e;if(!P.length)return;let t=P.find(e=>d.pathname===e.key||d.pathname.startsWith(`${e.key}/`));return(null==t?void 0:t.key)??(null==(e=P[0])?void 0:e.key)},[d.pathname,P]),I=(0,s.useMemo)(()=>(0,b.xD)(m,null==_?void 0:_.name)||(0,b.xD)(m,null==S?void 0:S.name),[m,null==_?void 0:_.name,null==S?void 0:S.name]),L=_&&_.title!==(null==g?void 0:g.title)?_.title:void 0;(0,s.useEffect)(()=>{let e=g&&"string"==typeof g.title?g.title:null==g?void 0:g.topLevelName;e&&(document.title=e)},[g]);let j=d.pathname===F||d.pathname===k||d.pathname===`${F}index`;if(j&&w)return(0,o.jsx)(u.Navigate,{replace:!0,to:w});if(j&&!w)return(0,o.jsx)(M,{type:"home"});if(!f||!_&&!1===f.isAllow)return(0,o.jsx)(M,{type:"route"});if(f.link)return(0,o.jsx)(u.Navigate,{replace:!0,to:f.link});if(d.pathname===(null==g?void 0:g.path)&&(null==g||null==(e=g.children)?void 0:e.length)){let e=null==S||null==(l=S.children)||null==(t=l.find(e=>"index"===e.pageKey))?void 0:t.path,n=(0,b.C9)(null==S?void 0:S.children),i=e||n;if(i&&i!==d.pathname)return(0,o.jsx)(u.Navigate,{replace:!0,to:i})}return(0,o.jsxs)(a.Layout,{style:{height:"100%",minHeight:"100%",background:p.colorBgLayout,borderRadius:p.borderRadiusLG,overflow:"hidden"},children:[A?(0,o.jsx)(a.Layout.Sider,{width:200,style:{background:p.colorBgContainer,borderInlineEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,minHeight:0,overflowY:"auto",overflowX:"hidden"},children:(0,o.jsx)(a.Menu,{mode:"inline",inlineIndent:16,selectedKeys:I?[I]:[],style:{height:"100%",borderInlineEnd:"none"},onClick:e=>{var t;let{key:l}=e,o=(0,b.R0)(m,String(l));if(!o)return;if(o.link)return void window.open(o.link,"_blank","noopener,noreferrer");let n=(null==(t=o.children)?void 0:t.length)?(0,b.C9)(o.children):o.path;n&&n!==d.pathname&&r(n)},items:C})}):null,(0,o.jsx)(a.Layout.Content,{style:{background:p.colorBgLayout,flex:1,display:"flex",flexDirection:"column",minWidth:0,minHeight:0,overflow:"hidden"},children:(0,o.jsxs)("div",{style:{flex:1,minHeight:0,boxSizing:"border-box",overflow:"auto"},children:[(0,o.jsx)(n.PageHeader,{ghost:!1,title:null==g?void 0:g.title,subTitle:P.length?void 0:L,footer:P.length?(0,o.jsx)(a.Tabs,{activeKey:T,items:P,tabBarStyle:{marginBottom:0},onChange:e=>{e!==d.pathname&&r(e)}}):void 0,style:{background:p.colorBgContainer,borderBlockEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,paddingBottom:P.length?0:p.padding}}),(0,o.jsx)("div",{style:{padding:p.paddingLG},children:(0,o.jsx)(u.Outlet,{})})]})})]})},S=e=>{let t=(0,r.useFlowEngine)(),l=(0,s.useRef)(null),n=(0,s.useMemo)(()=>(0,o.jsx)(_,{...e}),[e]),a=(0,i.css)`
330
+ `},i,a.default.createElement("div",{style:o},t)):i},h=(e,t)=>t?{...e,showTotal:!1,showSizeChanger:!1,showLessItems:!0,className:p(e.className,c())}:e},5703(e,t,l){l.d(t,{n:()=>n});var o=l(504);let n=()=>(0,o.useFlowEngineContext)().app},2202(e,t,l){l.d(t,{g:()=>i});var o=l(504),n=l(1649);function i(){let e=(0,o.useFlowEngineContext)(),[t,l]=(0,n.useState)();return(0,n.useEffect)(()=>{let t=!0;return Promise.resolve(e.appInfo).then(e=>{t&&l(e||{})}).catch(e=>{console.error(e)}),()=>{t=!1}},[e]),t}},6625(e,t,l){l.d(t,{n:()=>n});var o=l(5703);function n(e){return(0,o.n)().pm.get(e)}},6553(e,t,l){l.d(t,{A:()=>o});let o={"ar-EG":{label:"العربية"},"az-AZ":{label:"Azərbaycan dili"},"bg-BG":{label:"Български"},"bn-BD":{label:"Bengali"},"by-BY":{label:"Беларускі"},"ca-ES":{label:"Сatal\xe0/Espanya"},"cs-CZ":{label:"Česky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"Ελληνικά"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xf1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"فارسی"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xe7ais(BE)"},"fr-CA":{label:"Fran\xe7ais(CA)"},"fr-FR":{label:"Fran\xe7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"עברית"},"hi-IN":{label:"हिन्दी"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"Հայերեն"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xcdslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"日本語"},"ka-GE":{label:"ქართული"},"kk-KZ":{label:"Қазақ тілі"},"km-KH":{label:"ភាសាខ្មែរ"},"kn-IN":{label:"ಕನ್ನಡ"},"ko-KR":{label:"한국어"},"ku-IQ":{label:"کوردی"},"lt-LT":{label:"lietuvių"},"lv-LV":{label:"Latviešu valoda"},"mk-MK":{label:"македонски јазик"},"ml-IN":{label:"മലയാളം"},"mn-MN":{label:"Монгол хэл"},"ms-MY":{label:"بهاس ملايو"},"my-MM":{label:"မြန်မာဘာသာ"},"nb-NO":{label:"Norsk bokm\xe5l"},"ne-NP":{label:"नेपाली"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xeas brasileiro"},"pt-PT":{label:"Portugu\xeas"},"ro-RO":{label:"Rom\xe2nia"},"ru-RU":{label:"Русский"},"si-LK":{label:"සිංහල"},"sk-SK":{label:"Slovenčina"},"sl-SI":{label:"Slovenščina"},"sr-RS":{label:"српски језик"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"ภาษาไทย"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xfcrk\xe7e"},"uk-UA":{label:"Українська"},"ur-PK":{label:"اردو"},"uz-UZ":{label:"Oʻzbekcha"},"vi-VN":{label:"Tiếng Việt"},"zh-CN":{label:"简体中文"},"zh-HK":{label:"繁體中文(香港)"},"zh-TW":{label:"繁體中文(台湾)"}}},4302(e,t,l){l.r(t),l.d(t,{AdminSettingsLayout:()=>S,default:()=>w,InternalAdminSettingsLayout:()=>_});var o=l(1178),n=l(4829),i=l(691),r=l(504),a=l(2793),s=l(1649),d=l(7843),u=l(8356),c=l(5703),p=l(6681),m=l(3589);let h=[{key:"applications",title:"Applications",primary:"multi-portal"},{key:"data",title:"Data sources",primary:"data-source-manager"},{key:"access",title:"Users & Permissions",primary:"users-permissions"},{key:"automation",title:"Workflow",primary:"workflow"},{key:"ai",title:"AI employees",primary:"ai"},{key:"plugins",title:"Plugin manager",primary:"plugin-manager"},{key:"system",title:"Other settings"}],f="system",g={"multi-portal":"applications","plugin-manager":"plugins","data-source-manager":"data","users-permissions":"access",workflow:"automation",ai:"ai"};function v(e){if(!e)return f;let t=e.group;return t&&h.some(e=>e.key===t)?t:g[e.name]||f}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h.map(t=>{let l=e.filter(e=>v(e)===t.key),o=t.primary?l.findIndex(e=>e.name===t.primary):-1;return{...t,settings:o>0?[l[o],...l.slice(0,o),...l.slice(o+1)]:l}}).filter(e=>e.settings.length>0)}var b=l(6431);function x(){let e=(0,c.n)(),t=(0,u.useLocation)(),l=(0,m.MK)(),o=(0,s.useMemo)(()=>(0,b.Ui)(e.pluginSettingsManager.getList(!1)),[e.pluginSettingsManager]),n=(0,s.useMemo)(()=>{let t=(0,b.eD)((0,b.Ui)(e.pluginSettingsManager.getList(!0)));return(0,b.p$)(t.filter(e=>e.name!==b.Bm||l.includes("pm")))},[e.pluginSettingsManager,l]),i=(0,s.useMemo)(()=>y(n),[n]),r=(0,s.useMemo)(()=>(0,b.nC)(o),[o]),a=(0,s.useMemo)(()=>(0,b.CM)(r,t.pathname),[t.pathname,r]),d=(0,s.useMemo)(()=>a?o.find(e=>e.name===a.topLevelName)||a:null,[o,a]),p=(0,s.useMemo)(()=>{var e,t;if(!d)return(null==(t=i[0])?void 0:t.key)??null;let l=v(d);return i.some(e=>e.key===l)?l:(null==(e=i[0])?void 0:e.key)??null},[d,i]),h=(0,s.useMemo)(()=>i.find(e=>e.key===p),[p,i]);return{activeGroupKey:p,activeGroupSettings:(null==h?void 0:h.settings)??[],allSettings:o,currentSetting:a,currentTopLevelSetting:d,getGroupEntryPath:(0,s.useCallback)(e=>{var t;let l=i.find(t=>t.key===e);if(l)return null==(t=(0,b.X2)(l.settings))?void 0:t.path},[i]),groups:i,visibleSettings:n}}function M(e){let{type:t}=e,{t:l}=(0,d.useTranslation)();return"route"===t?(0,o.jsx)(a.Result,{status:"warning",title:l("Current settings page is unavailable"),subTitle:l("The requested settings page does not exist or you do not have permission to access it.")}):(0,o.jsx)(a.Result,{status:"info",title:l("No settings pages available"),subTitle:l("No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.")})}let _=()=>{var e,t,l;let i=(0,c.n)(),r=(0,u.useNavigate)(),d=(0,u.useLocation)(),{token:p}=a.theme.useToken(),{activeGroupSettings:m,allSettings:h,currentSetting:f,currentTopLevelSetting:g,visibleSettings:v}=x(),y=(0,s.useMemo)(()=>(0,b.nC)(v),[v]),_=(0,s.useMemo)(()=>(0,b.CM)(y,d.pathname),[d.pathname,y]),S=(0,s.useMemo)(()=>f&&v.find(e=>e.name===f.topLevelName)||null,[v,f]),w=(0,s.useMemo)(()=>(0,b.C9)(v),[v]),F=i.pluginSettingsManager.getRoutePath(""),k=F.replace(/\/$/,""),C=(0,s.useMemo)(()=>(0,b.IA)(m),[m]),A=m.length>1,P=(0,s.useMemo)(()=>{let e=((null==S?void 0:S.children)||[]).filter(e=>!e.hidden&&!e.link&&e.path);return e.length>1?e.map(e=>({key:e.path,label:e.label??e.title})):[]},[S]),T=(0,s.useMemo)(()=>{var e;if(!P.length)return;let t=P.find(e=>d.pathname===e.key||d.pathname.startsWith(`${e.key}/`));return(null==t?void 0:t.key)??(null==(e=P[0])?void 0:e.key)},[d.pathname,P]),I=(0,s.useMemo)(()=>(0,b.xD)(m,null==_?void 0:_.name)||(0,b.xD)(m,null==S?void 0:S.name),[m,null==_?void 0:_.name,null==S?void 0:S.name]),L=_&&_.title!==(null==g?void 0:g.title)?_.title:void 0;(0,s.useEffect)(()=>{let e=g&&"string"==typeof g.title?g.title:null==g?void 0:g.topLevelName;e&&(document.title=e)},[g]);let j=d.pathname===F||d.pathname===k||d.pathname===`${F}index`;if(j&&w)return(0,o.jsx)(u.Navigate,{replace:!0,to:w});if(j&&!w)return(0,o.jsx)(M,{type:"home"});if(!f||!_&&!1===f.isAllow)return(0,o.jsx)(M,{type:"route"});if(f.link)return(0,o.jsx)(u.Navigate,{replace:!0,to:f.link});if(d.pathname===(null==g?void 0:g.path)&&(null==g||null==(e=g.children)?void 0:e.length)){let e=null==S||null==(l=S.children)||null==(t=l.find(e=>"index"===e.pageKey))?void 0:t.path,n=(0,b.C9)(null==S?void 0:S.children),i=e||n;if(i&&i!==d.pathname)return(0,o.jsx)(u.Navigate,{replace:!0,to:i})}return(0,o.jsxs)(a.Layout,{style:{height:"100%",minHeight:"100%",background:p.colorBgLayout,borderRadius:p.borderRadiusLG,overflow:"hidden"},children:[A?(0,o.jsx)(a.Layout.Sider,{width:200,style:{background:p.colorBgContainer,borderInlineEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,minHeight:0,overflowY:"auto",overflowX:"hidden"},children:(0,o.jsx)(a.Menu,{mode:"inline",inlineIndent:16,selectedKeys:I?[I]:[],style:{height:"100%",borderInlineEnd:"none"},onClick:e=>{var t;let{key:l}=e,o=(0,b.R0)(m,String(l));if(!o)return;if(o.link)return void window.open(o.link,"_blank","noopener,noreferrer");let n=(null==(t=o.children)?void 0:t.length)?(0,b.C9)(o.children):o.path;n&&n!==d.pathname&&r(n)},items:C})}):null,(0,o.jsx)(a.Layout.Content,{style:{background:p.colorBgLayout,flex:1,display:"flex",flexDirection:"column",minWidth:0,minHeight:0,overflow:"hidden"},children:(0,o.jsxs)("div",{style:{flex:1,minHeight:0,boxSizing:"border-box",overflow:"auto"},children:[(0,o.jsx)(n.PageHeader,{ghost:!1,title:null==g?void 0:g.title,subTitle:P.length?void 0:L,footer:P.length?(0,o.jsx)(a.Tabs,{activeKey:T,items:P,tabBarStyle:{marginBottom:0},onChange:e=>{e!==d.pathname&&r(e)}}):void 0,style:{background:p.colorBgContainer,borderBlockEnd:`${p.lineWidth}px solid ${p.colorBorderSecondary}`,paddingBottom:P.length?0:p.padding}}),(0,o.jsx)("div",{style:{padding:p.paddingLG},children:(0,o.jsx)(u.Outlet,{})})]})})]})},S=e=>{let t=(0,r.useFlowEngine)(),l=(0,s.useRef)(null),n=(0,s.useMemo)(()=>(0,o.jsx)(_,{...e}),[e]),a=(0,i.css)`
331
331
  height: 100%;
332
332
  > div {
333
333
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/client-v2",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -27,11 +27,11 @@
27
27
  "@formily/antd-v5": "1.2.3",
28
28
  "@formily/react": "^2.2.27",
29
29
  "@formily/shared": "^2.2.27",
30
- "@nocobase/evaluators": "3.0.0-alpha.1",
31
- "@nocobase/flow-engine": "3.0.0-alpha.1",
32
- "@nocobase/sdk": "3.0.0-alpha.1",
33
- "@nocobase/shared": "3.0.0-alpha.1",
34
- "@nocobase/utils": "3.0.0-alpha.1",
30
+ "@nocobase/evaluators": "3.0.0-alpha.3",
31
+ "@nocobase/flow-engine": "3.0.0-alpha.3",
32
+ "@nocobase/sdk": "3.0.0-alpha.3",
33
+ "@nocobase/shared": "3.0.0-alpha.3",
34
+ "@nocobase/utils": "3.0.0-alpha.3",
35
35
  "ahooks": "^3.7.2",
36
36
  "antd": "5.24.2",
37
37
  "antd-style": "3.7.1",
@@ -48,5 +48,5 @@
48
48
  "react-i18next": "^11.15.1",
49
49
  "react-router-dom": "^6.30.1"
50
50
  },
51
- "gitHead": "22d8be8ece179cfa5c8a4ebb2c896c92bd418e03"
51
+ "gitHead": "9899cd799c070c7bd85140148ea5b100b046bdc7"
52
52
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ import { describe, expect, it } from 'vitest';
11
+ import { SETTINGS_GROUPS } from '../groups';
12
+
13
+ describe('settings center groups', () => {
14
+ it('places the plugin manager immediately after AI employees', () => {
15
+ expect(SETTINGS_GROUPS.map((group) => group.key)).toEqual([
16
+ 'applications',
17
+ 'data',
18
+ 'access',
19
+ 'automation',
20
+ 'ai',
21
+ 'plugins',
22
+ 'system',
23
+ ]);
24
+ });
25
+ });
@@ -42,11 +42,11 @@ export type SettingsGroupDefinition = {
42
42
  */
43
43
  export const SETTINGS_GROUPS: SettingsGroupDefinition[] = [
44
44
  { key: 'applications', title: 'Applications', primary: 'multi-portal' },
45
- { key: 'plugins', title: 'Plugin manager', primary: 'plugin-manager' },
46
45
  { key: 'data', title: 'Data sources', primary: 'data-source-manager' },
47
46
  { key: 'access', title: 'Users & Permissions', primary: 'users-permissions' },
48
47
  { key: 'automation', title: 'Workflow', primary: 'workflow' },
49
48
  { key: 'ai', title: 'AI employees', primary: 'ai' },
49
+ { key: 'plugins', title: 'Plugin manager', primary: 'plugin-manager' },
50
50
  { key: 'system', title: 'Other settings' },
51
51
  ];
52
52