@strapi/admin 4.11.4 → 4.11.6
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/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +8 -5
- package/admin/src/content-manager/components/Inputs/index.js +3 -47
- package/admin/src/content-manager/components/SingleTypeFormWrapper/index.js +34 -37
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +23 -21
- package/admin/src/content-manager/pages/EditSettingsView/components/ModalForm.js +21 -50
- package/admin/src/content-manager/pages/EditView/Information/index.js +1 -1
- package/admin/src/content-manager/pages/EditView/InformationBox/InformationBoxCE.js +1 -2
- package/admin/src/content-manager/pages/EditView/InformationBox/index.js +1 -3
- package/admin/src/content-manager/pages/EditView/index.js +14 -2
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +24 -22
- package/admin/src/content-manager/pages/ListView/components/CellContent/RelationMultiple/index.js +61 -67
- package/admin/src/content-manager/pages/ListView/components/CellContent/RepeatableComponent/index.js +28 -21
- package/admin/src/content-manager/pages/ListView/components/TableRows/index.js +97 -14
- package/admin/src/content-manager/pages/ListView/index.js +65 -59
- package/admin/src/content-manager/pages/ListView/utils/buildValidGetParams.js +30 -0
- package/admin/src/content-manager/pages/ListView/utils/index.js +1 -1
- package/admin/src/hooks/useAdminUsers/useAdminUsers.js +3 -3
- package/admin/src/hooks/useEnterprise/useEnterprise.js +4 -4
- package/admin/src/hooks/useSettingsMenu/index.js +35 -21
- package/admin/src/layouts/UnauthenticatedLayout/LocaleToggle/index.js +7 -7
- package/admin/src/pages/App/index.js +0 -3
- package/admin/src/pages/AuthPage/components/Login/index.js +3 -5
- package/admin/src/pages/AuthPage/components/Register/index.js +5 -1
- package/admin/src/pages/AuthPage/constants.js +3 -2
- package/admin/src/pages/AuthPage/index.js +18 -1
- package/admin/src/pages/HomePage/index.js +19 -7
- package/admin/src/pages/ProfilePage/index.js +12 -12
- package/admin/src/pages/SettingsPage/components/SettingsNav/index.js +13 -11
- package/admin/src/pages/SettingsPage/components/Tokens/TokenBox/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +17 -1
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +16 -3
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +2 -4
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +15 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +36 -5
- package/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/index.js +3 -5
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +16 -1
- package/admin/src/translations/zh-Hans.json +1 -1
- package/build/1049.758a01f5.chunk.js +1 -0
- package/build/{3528.4845cf92.chunk.js → 1386.762d6eb8.chunk.js} +1 -1
- package/build/1727.b49f0713.chunk.js +1 -0
- package/build/{5563.86f9aa9c.chunk.js → 2225.15d1df72.chunk.js} +3 -3
- package/build/2379.3ba39b61.chunk.js +1 -0
- package/build/2395.c27eb585.chunk.js +26 -0
- package/build/2801.93343c11.chunk.js +1 -0
- package/build/{7394.423886bd.chunk.js → 3100.21c343fa.chunk.js} +1 -1
- package/build/311.cb0884bb.chunk.js +1 -0
- package/build/3483.642d2321.chunk.js +1 -0
- package/build/{970.89601f27.chunk.js → 3739.63e352f1.chunk.js} +52 -20
- package/build/3984.298bdb66.chunk.js +1 -0
- package/build/4546.5aac90fe.chunk.js +1 -0
- package/build/502.f6b78f85.chunk.js +1 -0
- package/build/{5542.c62d0daf.chunk.js → 5542.2415a393.chunk.js} +6 -6
- package/build/6158.f9d82db9.chunk.js +1 -0
- package/build/7030.b98dcedf.chunk.js +1 -0
- package/build/7464.fe31804b.chunk.js +1 -0
- package/build/8276.d03dc679.chunk.js +26 -0
- package/build/918.54414509.chunk.js +1 -0
- package/build/978.bab58f0a.chunk.js +1 -0
- package/build/{9932.7e2b71de.chunk.js → 9932.b5a3bb3a.chunk.js} +81 -81
- package/build/9944.7af075a5.chunk.js +26 -0
- package/build/{Admin-authenticatedApp.cb649fc1.chunk.js → Admin-authenticatedApp.b3060bbe.chunk.js} +5 -5
- package/build/Admin_InternalErrorPage.f45f2462.chunk.js +1 -0
- package/build/{Admin_homePage.be30ef4e.chunk.js → Admin_homePage.ac9dfb86.chunk.js} +23 -15
- package/build/{Admin_marketplace.74a58e20.chunk.js → Admin_marketplace.f0b87fce.chunk.js} +1 -1
- package/build/{Admin_pluginsPage.ce464189.chunk.js → Admin_pluginsPage.8728ff6e.chunk.js} +1 -1
- package/build/{Admin_profilePage.2131eb68.chunk.js → Admin_profilePage.a968035f.chunk.js} +2 -2
- package/build/Admin_settingsPage.8c600d1a.chunk.js +111 -0
- package/build/Upload_ConfigureTheView.345ac1e0.chunk.js +1 -0
- package/build/admin-app.1c3f7fd6.chunk.js +36 -0
- package/build/{admin-edit-roles-page.3fdd6b9d.chunk.js → admin-edit-roles-page.a49b9f4f.chunk.js} +4 -4
- package/build/admin-edit-users.67704088.chunk.js +10 -0
- package/build/{admin-roles-list.e17b00d7.chunk.js → admin-roles-list.0c129e98.chunk.js} +1 -1
- package/build/admin-users.3279ffb0.chunk.js +11 -0
- package/build/api-tokens-create-page.46c2ea84.chunk.js +1 -0
- package/build/{api-tokens-edit-page.9a1dd2fa.chunk.js → api-tokens-edit-page.58139df9.chunk.js} +1 -1
- package/build/{api-tokens-list-page.a103f526.chunk.js → api-tokens-list-page.505bf7e0.chunk.js} +2 -2
- package/build/audit-logs-settings-page.4b422831.chunk.js +1 -0
- package/build/content-manager.9f7f0cb8.chunk.js +1101 -0
- package/build/{content-type-builder-list-view.a200a358.chunk.js → content-type-builder-list-view.bf9be456.chunk.js} +9 -9
- package/build/{content-type-builder-translation-ar-json.56d8fcf4.chunk.js → content-type-builder-translation-ar-json.3e808e2f.chunk.js} +1 -1
- package/build/{content-type-builder-translation-cs-json.a5b299ca.chunk.js → content-type-builder-translation-cs-json.1ef9e106.chunk.js} +1 -1
- package/build/{content-type-builder-translation-de-json.393a76c0.chunk.js → content-type-builder-translation-de-json.63fcff7b.chunk.js} +1 -1
- package/build/{content-type-builder-translation-dk-json.fbd39bb7.chunk.js → content-type-builder-translation-dk-json.fd626b67.chunk.js} +1 -1
- package/build/{content-type-builder-translation-en-json.f592325b.chunk.js → content-type-builder-translation-en-json.9f2b9c49.chunk.js} +1 -1
- package/build/{content-type-builder-translation-es-json.9288474b.chunk.js → content-type-builder-translation-es-json.a4a361a9.chunk.js} +1 -1
- package/build/{content-type-builder-translation-fr-json.d35e269c.chunk.js → content-type-builder-translation-fr-json.499c3a46.chunk.js} +1 -1
- package/build/{content-type-builder-translation-id-json.f0513929.chunk.js → content-type-builder-translation-id-json.65255f93.chunk.js} +1 -1
- package/build/{content-type-builder-translation-it-json.aaf16753.chunk.js → content-type-builder-translation-it-json.e268ab74.chunk.js} +1 -1
- package/build/{content-type-builder-translation-ko-json.8fe21a7f.chunk.js → content-type-builder-translation-ko-json.04cb309d.chunk.js} +1 -1
- package/build/{content-type-builder-translation-ms-json.3b5d2d3e.chunk.js → content-type-builder-translation-ms-json.f6b743b9.chunk.js} +1 -1
- package/build/{content-type-builder-translation-nl-json.225ef5d3.chunk.js → content-type-builder-translation-nl-json.997fe8cc.chunk.js} +1 -1
- package/build/{content-type-builder-translation-pl-json.92f36be2.chunk.js → content-type-builder-translation-pl-json.634f638b.chunk.js} +1 -1
- package/build/{content-type-builder-translation-pt-BR-json.3bd10f89.chunk.js → content-type-builder-translation-pt-BR-json.6a95dc71.chunk.js} +1 -1
- package/build/{content-type-builder-translation-ru-json.9bfe47ce.chunk.js → content-type-builder-translation-ru-json.3af65503.chunk.js} +1 -1
- package/build/{content-type-builder-translation-sk-json.d03cc18a.chunk.js → content-type-builder-translation-sk-json.c6078082.chunk.js} +1 -1
- package/build/{content-type-builder-translation-sv-json.d23dcd32.chunk.js → content-type-builder-translation-sv-json.a6df2462.chunk.js} +1 -1
- package/build/{content-type-builder-translation-th-json.7ad256e2.chunk.js → content-type-builder-translation-th-json.122277cc.chunk.js} +1 -1
- package/build/{content-type-builder-translation-tr-json.926f6191.chunk.js → content-type-builder-translation-tr-json.41f44f77.chunk.js} +1 -1
- package/build/{content-type-builder-translation-uk-json.7bf19546.chunk.js → content-type-builder-translation-uk-json.e1315acd.chunk.js} +1 -1
- package/build/{content-type-builder-translation-zh-Hans-json.415577fb.chunk.js → content-type-builder-translation-zh-Hans-json.6ff57db6.chunk.js} +1 -1
- package/build/{content-type-builder-translation-zh-json.ad24dbeb.chunk.js → content-type-builder-translation-zh-json.3532b962.chunk.js} +1 -1
- package/build/content-type-builder.7a90cece.chunk.js +170 -0
- package/build/{email-settings-page.45695daa.chunk.js → email-settings-page.d494d1eb.chunk.js} +2 -2
- package/build/{i18n-settings-page.29308d0b.chunk.js → i18n-settings-page.47f78016.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/main.22e2d4ec.js +2856 -0
- package/build/review-workflows-settings.f1104fb9.chunk.js +110 -0
- package/build/{runtime~main.efd966f6.js → runtime~main.437fdcbb.js} +2 -2
- package/build/sso-settings-page.ed6f3f15.chunk.js +1 -0
- package/build/transfer-tokens-create-page.1597e6ab.chunk.js +1 -0
- package/build/transfer-tokens-edit-page.8741529f.chunk.js +1 -0
- package/build/{transfer-tokens-list-page.7237443d.chunk.js → transfer-tokens-list-page.22147d2c.chunk.js} +2 -2
- package/build/upload-settings.cac210a0.chunk.js +14 -0
- package/build/upload.cbfeefa5.chunk.js +58 -0
- package/build/{users-advanced-settings-page.750b1f76.chunk.js → users-advanced-settings-page.18379a56.chunk.js} +1 -1
- package/build/users-email-settings-page.a87978e5.chunk.js +9 -0
- package/build/users-providers-settings-page.8876c1ee.chunk.js +14 -0
- package/build/{users-roles-settings-page.1f505119.chunk.js → users-roles-settings-page.0431f48c.chunk.js} +2 -2
- package/build/webhook-edit-page.a91f27a1.chunk.js +33 -0
- package/build/{webhook-list-page.940a40f1.chunk.js → webhook-list-page.65e1b5bb.chunk.js} +1 -1
- package/build/{zh-Hans-json.4cfef87d.chunk.js → zh-Hans-json.fada6f40.chunk.js} +1 -1
- package/ee/admin/content-manager/pages/EditView/InformationBox/InformationBoxEE.js +1 -1
- package/ee/admin/content-manager/pages/EditView/InformationBox/index.js +1 -3
- package/ee/admin/content-manager/{components/DynamicTable/CellContent/ReviewWorkflowsStage → pages/ListView/ReviewWorkflowsColumn}/ReviewWorkflowsStageEE.js +7 -2
- package/ee/admin/content-manager/pages/ListView/ReviewWorkflowsColumn/constants.js +24 -0
- package/ee/admin/content-manager/pages/ListView/ReviewWorkflowsColumn/index.js +1 -0
- package/ee/admin/hooks/useLicenseLimitNotification/index.js +17 -6
- package/ee/admin/hooks/useLicenseLimits/index.js +1 -32
- package/ee/admin/hooks/useLicenseLimits/useLicenseLimits.js +44 -0
- package/ee/admin/pages/AuthPage/components/Login/index.js +3 -5
- package/ee/admin/pages/HomePage/index.js +11 -0
- package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +7 -7
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/hooks/useAuditLogsData.js +6 -4
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/useReviewWorkflows.js +3 -5
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +11 -6
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/index.js +13 -0
- package/ee/admin/pages/SettingsPage/pages/Users/components/MagicLink/index.js +3 -5
- package/ee/admin/pages/SettingsPage/pages/Webhooks/EditView/components/EventTable/index.js +1 -3
- package/index.js +0 -14
- package/package.json +12 -21
- package/webpack.alias.js +0 -3
- package/webpack.config.js +1 -75
- package/admin/src/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn.js +0 -2
- package/admin/src/content-manager/pages/ListView/utils/buildQueryString.js +0 -36
- package/admin/src/content-manager/pages/ListView/utils/createPluginsFilter.js +0 -4
- package/admin/src/pages/App/utils/index.js +0 -3
- package/admin/src/pages/App/utils/unique-identifier.js +0 -12
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +0 -5
- package/build/1386.3b2aa6a7.chunk.js +0 -3
- package/build/1799.44d2e264.chunk.js +0 -33
- package/build/1970.39a2d75e.chunk.js +0 -1
- package/build/3269.1ea0f5a6.chunk.js +0 -1
- package/build/5932.6a23b88c.chunk.js +0 -1
- package/build/7018.98feed67.chunk.js +0 -1
- package/build/7259.fb69d4bf.chunk.js +0 -1
- package/build/Admin_InternalErrorPage.8911cb49.chunk.js +0 -1
- package/build/Admin_settingsPage.4069bb8a.chunk.js +0 -79
- package/build/Upload_ConfigureTheView.7a1cb9c9.chunk.js +0 -1
- package/build/admin-app.fea867af.chunk.js +0 -61
- package/build/admin-edit-users.200551e3.chunk.js +0 -10
- package/build/admin-users.3b12dca2.chunk.js +0 -11
- package/build/api-tokens-create-page.3dd4e921.chunk.js +0 -1
- package/build/audit-logs-settings-page.f538490f.chunk.js +0 -1
- package/build/content-manager.c40f5ff9.chunk.js +0 -1088
- package/build/content-type-builder.bd1bbff1.chunk.js +0 -166
- package/build/main.ee36abd9.js +0 -2927
- package/build/review-workflows-settings.93808ae0.chunk.js +0 -110
- package/build/sso-settings-page.0cdb96a6.chunk.js +0 -1
- package/build/transfer-tokens-create-page.de14cad4.chunk.js +0 -1
- package/build/transfer-tokens-edit-page.4f5e39af.chunk.js +0 -1
- package/build/upload-settings.cb6c14c3.chunk.js +0 -14
- package/build/upload.7e629643.chunk.js +0 -26
- package/build/users-email-settings-page.e9bcd865.chunk.js +0 -9
- package/build/users-providers-settings-page.a94253e9.chunk.js +0 -14
- package/build/webhook-edit-page.77ef4f1a.chunk.js +0 -33
- package/ee/admin/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/getTableColumn.js +0 -58
- package/ee/admin/content-manager/components/DynamicTable/CellContent/ReviewWorkflowsStage/index.js +0 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5542],{88058:function(o,u,n){var t=n(87650);function r(e,s){var i=e==null?0:e.length;return!!i&&t(e,s,0)>-1}o.exports=r},37431:function(o){function u(n,t,r){for(var e=-1,s=n==null?0:n.length;++e<s;)if(r(t,n[e]))return!0;return!1}o.exports=u},91096:function(o,u,n){var t=n(61124),r=n(88058),e=n(37431),s=n(26460),i=n(76535),d=n(30555),a=200;function x(g,
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5542],{88058:function(o,u,n){var t=n(87650);function r(e,s){var i=e==null?0:e.length;return!!i&&t(e,s,0)>-1}o.exports=r},37431:function(o){function u(n,t,r){for(var e=-1,s=n==null?0:n.length;++e<s;)if(r(t,n[e]))return!0;return!1}o.exports=u},91096:function(o,u,n){var t=n(61124),r=n(88058),e=n(37431),s=n(26460),i=n(76535),d=n(30555),a=200;function x(g,v,E,m){var c=-1,l=r,p=!0,h=g.length,f=[],M=v.length;if(!h)return f;E&&(v=s(v,i(E))),m?(l=e,p=!1):v.length>=a&&(l=d,p=!1,v=new t(v));n:for(;++c<h;){var j=g[c],P=E==null?j:E(j);if(j=m||j!==0?j:0,p&&P===P){for(var _=M;_--;)if(v[_]===P)continue n;f.push(j)}else l(v,P,m)||f.push(j)}return f}o.exports=x},56671:function(o,u,n){var t=n(35897),r=n(74741),e=r(t);o.exports=e},60528:function(o){function u(n,t,r,e){for(var s=n.length,i=r+(e?1:-1);e?i--:++i<s;)if(t(n[i],i,n))return i;return-1}o.exports=u},87650:function(o,u,n){var t=n(60528),r=n(25556),e=n(54256);function s(i,d,a){return d===d?e(i,d,a):t(i,r,a)}o.exports=s},25556:function(o){function u(n){return n!==n}o.exports=u},52920:function(o,u,n){var t=n(56671),r=n(81580);function e(s,i){var d=-1,a=r(s)?Array(s.length):[];return t(s,function(x,g,v){a[++d]=i(x,g,v)}),a}o.exports=e},50690:function(o,u,n){var t=n(26460),r=n(80166),e=n(88904),s=n(52920),i=n(36024),d=n(76535),a=n(1397),x=n(15362),g=n(77236);function v(E,m,c){m.length?m=t(m,function(h){return g(h)?function(f){return r(f,h.length===1?h[0]:h)}:h}):m=[x];var l=-1;m=t(m,d(e));var p=s(E,function(h,f,M){var j=t(m,function(P){return P(h)});return{criteria:j,index:++l,value:h}});return i(p,function(h,f){return a(h,f,c)})}o.exports=v},36024:function(o){function u(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}o.exports=u},40709:function(o,u,n){var t=n(22945);function r(e,s){if(e!==s){var i=e!==void 0,d=e===null,a=e===e,x=t(e),g=s!==void 0,v=s===null,E=s===s,m=t(s);if(!v&&!m&&!x&&e>s||x&&g&&E&&!v&&!m||d&&g&&E||!i&&E||!a)return 1;if(!d&&!x&&!m&&e<s||m&&i&&a&&!d&&!x||v&&i&&a||!g&&a||!E)return-1}return 0}o.exports=r},1397:function(o,u,n){var t=n(40709);function r(e,s,i){for(var d=-1,a=e.criteria,x=s.criteria,g=a.length,v=i.length;++d<g;){var E=t(a[d],x[d]);if(E){if(d>=v)return E;var m=i[d];return E*(m=="desc"?-1:1)}}return e.index-s.index}o.exports=r},74741:function(o,u,n){var t=n(81580);function r(e,s){return function(i,d){if(i==null)return i;if(!t(i))return e(i,d);for(var a=i.length,x=s?a:-1,g=Object(i);(s?x--:++x<a)&&d(g[x],x,g)!==!1;);return i}}o.exports=r},54256:function(o){function u(n,t,r){for(var e=r-1,s=n.length;++e<s;)if(n[e]===t)return e;return-1}o.exports=u},37213:function(o,u,n){var t=n(26460),r=n(88904),e=n(52920),s=n(77236);function i(d,a){var x=s(d)?t:e;return x(d,r(a,3))}o.exports=i},98978:function(o,u,n){var t=n(40314),r=n(50690),e=n(94569),s=n(63108),i=e(function(d,a){if(d==null)return[];var x=a.length;return x>1&&s(d,a[0],a[1])?a=[]:x>2&&s(a[0],a[1],a[2])&&(a=[a[0]]),r(d,t(a,1),[])});o.exports=i},15738:function(o,u,n){var t=n(4293);function r(e){var s=e==null?0:e.length;return s?t(e,1,s):[]}o.exports=r},88708:function(o,u,n){var t=n(4293),r=n(25225);function e(s,i,d){return s&&s.length?(i=d||i===void 0?1:r(i),t(s,0,i<0?0:i)):[]}o.exports=e},86205:function(o,u,n){var t=n(91096),r=n(94569),e=n(99747),s=r(function(i,d){return e(i)?t(i,d):[]});o.exports=s},83828:function(o,u,n){"use strict";n.d(u,{U:function(){return m},y:function(){return v}});var t=n(74512),r=n(32735),e=n(8471),s=n(91045),i=n(74971),d=n(49372),a=n(87933),x=n(72850);const g=({theme:c,expanded:l,variant:p,disabled:h,error:f})=>f?`1px solid ${c.colors.danger600} !important`:h?`1px solid ${c.colors.neutral150}`:l?`1px solid ${c.colors.primary600}`:p==="primary"?`1px solid ${c.colors.neutral0}`:`1px solid ${c.colors.neutral100}`,v=(0,e.ZP)(d.Z)``,E=(0,e.ZP)(x.x)`
|
|
2
2
|
border: ${g};
|
|
3
3
|
|
|
4
4
|
&:hover:not([aria-disabled='true']) {
|
|
5
5
|
border: 1px solid ${({theme:c})=>c.colors.primary600};
|
|
6
6
|
|
|
7
|
-
${
|
|
7
|
+
${v} {
|
|
8
8
|
color: ${({theme:c,expanded:l})=>l?void 0:c.colors.primary700};
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
background: ${({theme:c})=>c.colors.primary200};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
23
|
+
`,m=({children:c,disabled:l=!1,error:p,expanded:h=!1,hasErrorMessage:f=!0,id:M,onToggle:j,toggle:P,size:_="M",variant:O="primary",shadow:y})=>{const b=(0,i.M)(M),A=r.useMemo(()=>({expanded:h,onToggle:j,toggle:P,id:b,size:_,variant:O,disabled:l}),[l,h,b,j,_,P,O]);return(0,t.jsxs)(s.S.Provider,{value:A,children:[(0,t.jsx)(E,{"data-strapi-expanded":h,disabled:l,"aria-disabled":l,expanded:h,hasRadius:!0,variant:O,error:p,shadow:y,children:c}),p&&f&&(0,t.jsx)(x.x,{paddingTop:1,children:(0,t.jsx)(d.Z,{variant:"pi",textColor:"danger600",children:p})})]})}},89966:function(o,u,n){"use strict";n.d(u,{v:function(){return s}});var t=n(74512),r=n(91045),e=n(72850);const s=({children:i,...d})=>{const{expanded:a,id:x}=(0,r.A)();if(!a)return null;const g=`accordion-content-${x}`,v=`accordion-label-${x}`,E=`accordion-desc-${x}`;return(0,t.jsx)(e.x,{role:"region",id:g,"aria-labelledby":v,"aria-describedby":E,...d,children:i})}},91045:function(o,u,n){"use strict";n.d(u,{A:function(){return e},S:function(){return r}});var t=n(32735);const r=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),e=()=>(0,t.useContext)(r)},61762:function(o,u,n){"use strict";n.d(u,{B:function(){return c}});var t=n(74512),r=n(16899),e=n(8471),s=n(83828),i=n(91045);const d=({expanded:l,disabled:p,variant:h})=>{let f="neutral100";return l?f="primary100":p?f="neutral150":h==="primary"&&(f="neutral0"),f};var a=n(7563),x=n(99140),g=n(87933),v=n(49372);const E=(0,e.ZP)(a.A)`
|
|
24
24
|
text-align: left;
|
|
25
25
|
|
|
26
26
|
// necessary to make the ellipsis prop work on the title
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
fill: ${({theme:l,expanded:p})=>p?l.colors.primary600:l.colors.neutral500};
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,m=(0,e.ZP)(g.k)`
|
|
40
40
|
min-height: ${({theme:l,size:p})=>l.sizes.accordions[p]};
|
|
41
41
|
border-radius: ${({theme:l,expanded:p})=>p?`${l.borderRadius} ${l.borderRadius} 0 0`:l.borderRadius};
|
|
42
42
|
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`,c=({title:l,description:p,as:h="span",togglePosition:f="right",action:M,...j})=>{const{onToggle:P,toggle:
|
|
50
|
+
`,c=({title:l,description:p,as:h="span",togglePosition:f="right",action:M,...j})=>{const{onToggle:P,toggle:_,expanded:O,id:y,size:b,variant:A,disabled:B}=(0,i.A)(),w=`accordion-content-${y}`,D=`accordion-label-${y}`,W=`accordion-desc-${y}`,C=b==="M"?6:4,L=b==="M"?C:C-2,U=d({expanded:O,disabled:B,variant:A}),I={as:h,fontWeight:b==="S"?"bold":void 0,id:D,textColor:O?"primary600":"neutral700",ellipsis:!0,variant:b==="M"?"delta":void 0},K=O?"primary600":"neutral600",Z=O?"primary200":"neutral200",T=b==="M"?`${32/16}rem`:`${24/16}rem`,R=()=>{B||(_&&!P?(console.warn('Deprecation warning: Usage of "toggle" prop in Accordion component is deprecated. This is discouraged and will be removed in the next major release. Please use "onToggle" instead'),_()):P&&P())},$=(0,t.jsx)(g.k,{justifyContent:"center",borderRadius:"50%",height:T,width:T,transform:O?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:Z,cursor:B?"not-allowed":"pointer",onClick:R,shrink:0,children:(0,t.jsx)(x.J,{as:r.Z,width:b==="M"?`${11/16}rem`:`${8/16}rem`,color:O?"primary600":"neutral600"})});return(0,t.jsx)(m,{paddingBottom:L,paddingLeft:C,paddingRight:C,paddingTop:L,background:U,expanded:O,size:b,justifyContent:"space-between",cursor:B?"not-allowed":"",children:(0,t.jsxs)(g.k,{gap:3,flex:1,maxWidth:"100%",children:[f==="left"&&$,(0,t.jsx)(E,{onClick:R,"aria-disabled":B,"aria-expanded":O,"aria-controls":w,"aria-labelledby":D,"data-strapi-accordion-toggle":!0,expanded:O,type:"button",flex:1,minWidth:0,...j,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.y,{...I,children:l}),p&&(0,t.jsx)(v.Z,{as:"p",id:W,textColor:K,children:p})]})}),f==="right"&&(0,t.jsxs)(g.k,{gap:3,children:[$,M]}),f==="left"&&M]})})}},99223:function(o,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512),r=n(87933);const e=({startActions:s,endActions:i})=>!s&&!i?null:(0,t.jsxs)(r.k,{justifyContent:"space-between",alignItems:"flex-start",paddingBottom:4,paddingLeft:10,paddingRight:10,children:[(0,t.jsx)(r.k,{gap:2,wrap:"wrap",children:s}),(0,t.jsx)(r.k,{gap:2,shrink:0,wrap:"wrap",children:i})]})},17e3:function(o,u,n){"use strict";n.d(u,{D:function(){return e}});var t=n(74512),r=n(72850);const e=({children:s})=>(0,t.jsx)(r.x,{paddingLeft:10,paddingRight:10,children:s})},82055:function(o,u,n){"use strict";n.d(u,{T:function(){return v}});var t=n(74512),r=n(32735),e=n(8471);const s=c=>{const l=(0,r.useRef)(null),[p,h]=(0,r.useState)(!0),f=([M])=>{h(M.isIntersecting)};return(0,r.useEffect)(()=>{const M=l.current,j=new IntersectionObserver(f,c);return M&&j.observe(l.current),()=>{M&&j.disconnect()}},[l,c]),[l,p]};var i=n(81957);const d=(c,l)=>{const p=(0,i.W)(l);(0,r.useLayoutEffect)(()=>{const h=new ResizeObserver(p);return Array.isArray(c)?c.forEach(f=>{f.current&&h.observe(f.current)}):c.current&&h.observe(c.current),()=>{h.disconnect()}},[c,p])};var a=n(72850),x=n(87933),g=n(49372);const v=c=>{const l=(0,r.useRef)(null),[p,h]=(0,r.useState)(null),[f,M]=s({root:null,rootMargin:"0px",threshold:0});return d(f,()=>{f.current&&h(f.current.getBoundingClientRect())}),(0,r.useEffect)(()=>{l.current&&h(l.current.getBoundingClientRect())},[l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:p?.height},ref:f,children:M&&(0,t.jsx)(m,{ref:l,...c})}),!M&&(0,t.jsx)(m,{...c,sticky:!0,width:p?.width})]})};v.displayName="HeaderLayout";const E=(0,e.ZP)(a.x)`
|
|
51
51
|
width: ${({width:c})=>c?`${c/16}rem`:void 0};
|
|
52
52
|
z-index: ${({theme:c})=>c.zIndices[1]};
|
|
53
|
-
`,
|
|
53
|
+
`,m=r.forwardRef(({navigationAction:c,primaryAction:l,secondaryAction:p,subtitle:h,title:f,sticky:M,width:j,...P},_)=>{const O=typeof h=="string";return M?(0,t.jsx)(E,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:j,"data-strapi-header-sticky":!0,children:(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{children:[c&&(0,t.jsx)(a.x,{paddingRight:3,children:c}),(0,t.jsxs)(a.x,{children:[(0,t.jsx)(g.Z,{variant:"beta",as:"h1",...P,children:f}),O?(0,t.jsx)(g.Z,{variant:"pi",textColor:"neutral600",children:h}):h]}),p?(0,t.jsx)(a.x,{paddingLeft:4,children:p}):null]}),(0,t.jsx)(x.k,{children:l?(0,t.jsx)(a.x,{paddingLeft:2,children:l}):void 0})]})}):(0,t.jsxs)(a.x,{ref:_,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:c?6:8,background:"neutral100","data-strapi-header":!0,children:[c?(0,t.jsx)(a.x,{paddingBottom:2,children:c}):null,(0,t.jsxs)(x.k,{justifyContent:"space-between",children:[(0,t.jsxs)(x.k,{minWidth:0,children:[(0,t.jsx)(g.Z,{as:"h1",variant:"alpha",...P,children:f}),p?(0,t.jsx)(a.x,{paddingLeft:4,children:p}):null]}),l]}),O?(0,t.jsx)(g.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:h}):h]})})},96709:function(o,u,n){"use strict";n.d(u,{A:function(){return d}});var t=n(74512),r=n(8471),e=n(72850);const s=(0,r.ZP)(e.x)`
|
|
54
54
|
display: grid;
|
|
55
55
|
grid-template-columns: ${({hasSideNav:a})=>a?"auto 1fr":"1fr"};
|
|
56
56
|
`,i=(0,r.ZP)(e.x)`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[6158],{76158:function(n,a,e){e.r(a),e.d(a,{REVIEW_WORKFLOW_COLUMNS_EE:function(){return t}});var s=e(7921);const t={key:"__strapi_reviewWorkflows_stage_temp_key__",name:"strapi_reviewWorkflows_stage",fieldSchema:{type:"relation"},metadatas:{label:{id:(0,s.Z)("containers.ListPage.table-headers.reviewWorkflows.stage"),defaultMessage:"Review stage"},searchable:!1,sortable:!0,mainField:{name:"name",schema:{type:"string"}}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7030],{61442:function(d,a,n){n.r(a),n.d(a,{EventTableEE:function(){return s}});var e=n(32735),t=n(36795);const r={"review-workflows":["review-workflows.updateEntryStage"]},l=()=>[{id:"review-workflows.updateEntryStage",defaultMessage:"Stage Change"}];function s(){return e.createElement(t.Z.Root,null,e.createElement(t.Z.Headers,null),e.createElement(t.Z.Body,null),e.createElement(t.Z.Headers,{getHeaders:l}),e.createElement(t.Z.Body,{providedEvents:r}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[7464],{27005:function(I,E,t){t.d(E,{pl:function(){return p},aY:function(){return B},q5:function(){return v}});var l=t(32735),o=t(19565),g=t(86209),L=t(97889);const C={data:[],isLoading:!0};var D=(s,i)=>(0,L.ZP)(s,e=>{switch(i.type){case"GET_DATA_SUCCEEDED":{e.data=i.data,e.isLoading=!1;break}case"GET_DATA_ERROR":{e.isLoading=!1;break}default:return e}}),p=({ssoEnabled:s})=>{const[i,e]=(0,l.useReducer)(D,C),r=(0,o.lm)(),{get:c}=(0,o.kY)();return(0,l.useEffect)(()=>{(async()=>{try{if(!s){e({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:a}=await c((0,g.IF)("providers"));e({type:"GET_DATA_SUCCEEDED",data:a})}catch(a){console.error(a),e({type:"GET_DATA_ERROR"}),r({type:"warning",message:{id:"notification.error"}})}})()},[c,s,r]),i},R=t(36866),P=t.n(R),O=t(67879),S=t(53038),y=t(20108),M=t(15062),U=t(30305);function N(){const s=(0,M.v9)(U._),{get:i}=(0,o.kY)(),{isLoading:e,allowedActions:{canRead:r,canCreate:c,canUpdate:d,canDelete:a}}=(0,o.ss)(s.settings.users),f=r&&c&&d&&a,{data:n,isError:m,isLoading:A}=(0,y.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:T}}=await i("/admin/license-limit-information");return T},{enabled:!e&&f}),u=n??{},Y=l.useCallback(T=>(u?.features??[]).find(F=>F.name===T)?.options??{},[u?.features]);return{license:u,getFeature:Y,isError:m,isLoading:A}}var v=N;const h="strapi-notification-seat-limit",G="https://cloud.strapi.io/profile/billing",H="https://strapi.io/billing/request-seats";var B=()=>{const{formatMessage:s}=(0,O.Z)();let{license:i,isError:e,isLoading:r}=v();const c=(0,o.lm)(),{pathname:d}=(0,S.TH)(),{enforcementUserCount:a,permittedSeats:f,licenseLimitStatus:n,isHostedOnStrapiCloud:m}=i;(0,l.useEffect)(()=>{if(e||r)return;const A=!P()(f)&&!window.sessionStorage.getItem(`${h}-${d}`)&&(n==="AT_LIMIT"||n==="OVER_LIMIT");let u;n==="OVER_LIMIT"?u="warning":n==="AT_LIMIT"&&(u="softWarning"),A&&c({type:u,message:s({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:n}),title:s({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:n,enforcementUserCount:a,permittedSeats:f}),link:{url:m?G:H,label:s({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:m})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${h}-${d}`,!0)}})},[c,i,d,s,r,f,n,a,m,e])}},37363:function(I,E,t){t.r(E),t.d(E,{HomePageEE:function(){return L}});var l=t(32735),o=t(83555),g=t(27005);function L(){return(0,g.aY)(),l.createElement(o.HomePageCE,null)}}}]);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[8276],{27005:function($,O,e){e.d(O,{pl:function(){return R},aY:function(){return f},q5:function(){return S}});var t=e(32735),c=e(19565),T=e(86209),E=e(97889);const d={data:[],isLoading:!0};var C=(a,o)=>(0,E.ZP)(a,s=>{switch(o.type){case"GET_DATA_SUCCEEDED":{s.data=o.data,s.isLoading=!1;break}case"GET_DATA_ERROR":{s.isLoading=!1;break}default:return s}}),R=({ssoEnabled:a})=>{const[o,s]=(0,t.useReducer)(C,d),L=(0,c.lm)(),{get:P}=(0,c.kY)();return(0,t.useEffect)(()=>{(async()=>{try{if(!a){s({type:"GET_DATA_SUCCEEDED",data:[]});return}const{data:g}=await P((0,T.IF)("providers"));s({type:"GET_DATA_SUCCEEDED",data:g})}catch(g){console.error(g),s({type:"GET_DATA_ERROR"}),L({type:"warning",message:{id:"notification.error"}})}})()},[P,a,L]),o},M=e(36866),h=e.n(M),y=e(67879),I=e(53038),l=e(20108),v=e(15062),n=e(30305);function p(){const a=(0,v.v9)(n._),{get:o}=(0,c.kY)(),{isLoading:s,allowedActions:{canRead:L,canCreate:P,canUpdate:D,canDelete:g}}=(0,c.ss)(a.settings.users),U=L&&P&&D&&g,{data:m,isError:B,isLoading:N}=(0,l.useQuery)(["ee","license-limit-info"],async()=>{const{data:{data:W}}=await o("/admin/license-limit-information");return W},{enabled:!s&&U}),A=m??{},F=t.useCallback(W=>(A?.features??[]).find(G=>G.name===W)?.options??{},[A?.features]);return{license:A,getFeature:F,isError:B,isLoading:N}}var S=p;const i="strapi-notification-seat-limit",x="https://cloud.strapi.io/profile/billing",Z="https://strapi.io/billing/request-seats";var f=()=>{const{formatMessage:a}=(0,y.Z)();let{license:o,isError:s,isLoading:L}=S();const P=(0,c.lm)(),{pathname:D}=(0,I.TH)(),{enforcementUserCount:g,permittedSeats:U,licenseLimitStatus:m,isHostedOnStrapiCloud:B}=o;(0,t.useEffect)(()=>{if(s||L)return;const N=!h()(U)&&!window.sessionStorage.getItem(`${i}-${D}`)&&(m==="AT_LIMIT"||m==="OVER_LIMIT");let A;m==="OVER_LIMIT"?A="warning":m==="AT_LIMIT"&&(A="softWarning"),N&&P({type:A,message:a({id:"notification.ee.warning.over-.message",defaultMessage:"Add seats to {licenseLimitStatus, select, OVER_LIMIT {invite} other {re-enable}} Users. If you already did it but it's not reflected in Strapi yet, make sure to restart your app."},{licenseLimitStatus:m}),title:a({id:"notification.ee.warning.at-seat-limit.title",defaultMessage:"{licenseLimitStatus, select, OVER_LIMIT {Over} other {At}} seat limit ({enforcementUserCount}/{permittedSeats})"},{licenseLimitStatus:m,enforcementUserCount:g,permittedSeats:U}),link:{url:B?x:Z,label:a({id:"notification.ee.warning.seat-limit.link",defaultMessage:"{isHostedOnStrapiCloud, select, true {ADD SEATS} other {CONTACT SALES}}"},{isHostedOnStrapiCloud:B})},blockTransition:!0,onClose(){window.sessionStorage.setItem(`${i}-${D}`,!0)}})},[P,o,D,a,L,U,m,g,B,s])}},68726:function($,O,e){var t=e(32735),c=e(87933),T=e(63919),E=e(49372),d=e(15335),u=e(5803),C=e(60216),r=e.n(C),R=e(67879),M=e(14911),h=e(8471);const y=h.ZP.a`
|
|
2
|
+
width: ${136/16}rem;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
height: ${48/16}rem;
|
|
7
|
+
border: 1px solid ${({theme:n})=>n.colors.neutral150};
|
|
8
|
+
border-radius: ${({theme:n})=>n.borderRadius};
|
|
9
|
+
text-decoration: inherit;
|
|
10
|
+
&:link {
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
}
|
|
13
|
+
color: ${({theme:n})=>n.colors.neutral600};
|
|
14
|
+
`,I=(0,h.ZP)(c.k)`
|
|
15
|
+
& a:not(:first-child):not(:last-child) {
|
|
16
|
+
margin: 0 ${({theme:n})=>n.spaces[2]};
|
|
17
|
+
}
|
|
18
|
+
& a:first-child {
|
|
19
|
+
margin-right: ${({theme:n})=>n.spaces[2]};
|
|
20
|
+
}
|
|
21
|
+
& a:last-child {
|
|
22
|
+
margin-left: ${({theme:n})=>n.spaces[2]};
|
|
23
|
+
}
|
|
24
|
+
`,l=({provider:n})=>t.createElement(T.u,{label:n.displayName},t.createElement(y,{href:`${window.strapi.backendURL}/admin/connect/${n.uid}`},n.icon?t.createElement("img",{src:n.icon,"aria-hidden":!0,alt:"",height:"32px"}):t.createElement(E.Z,null,n.displayName)));l.propTypes={provider:r().shape({icon:r().string,displayName:r().string.isRequired,uid:r().string.isRequired}).isRequired};const v=({providers:n,displayAllProviders:p})=>{const{formatMessage:S}=(0,R.Z)();return p?t.createElement(d.r,{gap:4},n.map(i=>t.createElement(u.P,{key:i.uid,col:4},t.createElement(l,{provider:i})))):n.length>2&&!p?t.createElement(d.r,{gap:4},n.slice(0,2).map(i=>t.createElement(u.P,{key:i.uid,col:4},t.createElement(l,{provider:i}))),t.createElement(u.P,{col:4},t.createElement(T.u,{label:S({id:"global.see-more"})},t.createElement(y,{as:M.rU,to:"/auth/providers"},t.createElement("span",{"aria-hidden":!0},"\u2022\u2022\u2022"))))):t.createElement(I,{justifyContent:"center"},n.map(i=>t.createElement(l,{key:i.uid,provider:i})))};v.defaultProps={displayAllProviders:!0},v.propTypes={providers:r().arrayOf(r().object).isRequired,displayAllProviders:r().bool},O.Z=v},18276:function($,O,e){e.r(O),e.d(O,{FORMS:function(){return x}});var t=e(32735),c=e(9026),T=e(27649),E=e(72850),d=e(49372),u=e(87933),C=e(23866),r=e(41415),R=e(19565),M=e(67879),h=e(53038),y=e(8471),I=e(73678),l=e(11060),v=e(27005),n=e(68726);const p=(0,y.ZP)(c.i)`
|
|
25
|
+
flex: 1;
|
|
26
|
+
`;var i=()=>{const Z=window.strapi.features.isEnabled(window.strapi.features.SSO),{push:K}=(0,h.k6)(),{formatMessage:f}=(0,M.Z)(),{isLoading:a,data:o}=(0,v.pl)({ssoEnabled:Z}),s=()=>{K("/auth/login")};return!Z||!a&&o.length===0?t.createElement(h.l_,{to:"/auth/login"}):t.createElement(l.ZP,null,t.createElement(T.o,null,t.createElement(l.bU,null,t.createElement(l.sg,null,t.createElement(I.Z,null),t.createElement(E.x,{paddingTop:6,paddingBottom:1},t.createElement(d.Z,{as:"h1",variant:"alpha"},f({id:"Auth.form.welcome.title"}))),t.createElement(E.x,{paddingBottom:7},t.createElement(d.Z,{variant:"epsilon",textColor:"neutral600"},f({id:"Auth.login.sso.subtitle"})))),t.createElement(u.k,{direction:"column",alignItems:"stretch",gap:7},a?t.createElement(u.k,{justifyContent:"center"},t.createElement(C.a,null,f({id:"Auth.login.sso.loading"}))):t.createElement(n.Z,{providers:o}),t.createElement(u.k,null,t.createElement(p,null),t.createElement(E.x,{paddingLeft:3,paddingRight:3},t.createElement(d.Z,{variant:"sigma",textColor:"neutral600"},f({id:"or"}))),t.createElement(p,null)),t.createElement(r.z,{fullWidth:!0,size:"L",onClick:s},f({id:"Auth.form.button.login.strapi"})))),t.createElement(u.k,{justifyContent:"center"},t.createElement(E.x,{paddingTop:4},t.createElement(R.rU,{to:"/auth/forgot-password"},t.createElement(d.Z,{variant:"pi"},f({id:"Auth.link.forgot-password"})))))))};const x={providers:{Component:i,endPoint:null,fieldsToDisable:[],fieldsToOmit:[],schema:null,inputsPrefix:""}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[918],{50918:function(t,e,s){s.r(e),s.d(e,{LINKS_EE:function(){return i}});const i={global:[...window.strapi.features.isEnabled(window.strapi.features.SSO)?[{intlLabel:{id:"Settings.sso.title",defaultMessage:"Single Sign-On"},to:"/settings/single-sign-on",id:"sso"}]:[],...window.strapi.features.isEnabled(window.strapi.features.REVIEW_WORKFLOWS)?[{intlLabel:{id:"Settings.review-workflows.page.title",defaultMessage:"Review Workflows"},to:"/settings/review-workflows",id:"review-workflows"}]:[]],admin:[...window.strapi.features.isEnabled(window.strapi.features.AUDIT_LOGS)?[{intlLabel:{id:"global.auditLogs",defaultMessage:"Audit Logs"},to:"/settings/audit-logs?pageSize=50&page=1&sort=date:DESC",id:"auditLogs"}]:[]]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[978],{90978:function(y,u,t){t.r(u),t.d(u,{InformationBoxEE:function(){return v}});var e=t(32735),a=t(77035),l=t(87933),d=t(49372),r=t(23866),o=t(19565),i=t(67879),s=t(20108),n=t(98865),m=t(32329),O=t(68886);const c="strapi_reviewWorkflows_stage";function v(){const{initialData:g,isCreatingEntry:S,layout:{uid:R},isSingleType:k,onChange:D}=(0,o.Wq)(),{put:I}=(0,o.kY)(),E=g?.[c]??null,P=Object.prototype.hasOwnProperty.call(g,c),{formatMessage:h}=(0,i.Z)(),{formatAPIError:L}=(0,o.So)(),M=(0,o.lm)(),{workflows:N,isLoading:G}=(0,m.n)(),C=N?.[0]??null,{error:W,isLoading:U,mutateAsync:_}=(0,s.useMutation)(async({entityId:f,stageId:w,uid:T})=>{const A=k?"single-types":"collection-types",{data:{data:p}}=await I(`/admin/content-manager/${A}/${T}/${f}/stage`,{data:{id:w}});return D({target:{name:c,value:p[c]}},!0),p},{onSuccess(){M({type:"success",message:{id:"content-manager.reviewWorkflows.stage.notification.saved",defaultMessage:"Review stage updated"}})}}),B=E===null&&!G&&!S&&h({id:"content-manager.reviewWorkflows.stage.select.placeholder",defaultMessage:"Select a stage"}),K=W&&L(W)||B||null,F=async({value:f})=>{try{await _({entityId:g.id,stageId:f,uid:R})}catch{}},{themeColorName:x}=E?.color?(0,O.k)(E?.color):{};return e.createElement(n.d.Root,null,e.createElement(n.d.Title,null),P&&!S&&e.createElement(a.q4,{error:K,name:c,id:c,value:E?.id,onChange:f=>F({value:f}),label:h({id:"content-manager.reviewWorkflows.stage.label",defaultMessage:"Review stage"}),startIcon:e.createElement(l.k,{as:"span",height:2,background:E?.color,borderColor:x==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2,marginRight:"-3px"}),customizeContent:()=>e.createElement(l.k,{as:"span",justifyContent:"space-between",alignItems:"center",width:"100%"},e.createElement(d.Z,{textColor:"neutral800",ellipsis:!0},E?.name),U?e.createElement(r.a,{small:!0,style:{display:"flex"}}):null)},C?C.stages.map(({id:f,color:w,name:T})=>{const{themeColorName:A}=(0,O.k)(w);return e.createElement(a.ag,{startIcon:e.createElement(l.k,{height:2,background:w,borderColor:A==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),value:f,textValue:T},T)}):[]),e.createElement(n.d.Body,null))}},2121:function(y,u,t){t.d(u,{$k:function(){return i},FT:function(){return n},Nj:function(){return o},Ot:function(){return r},QM:function(){return l},lv:function(){return s},sN:function(){return a},uL:function(){return m},x4:function(){return d}});var e=t(12301);const a="settings_review-workflows",l="Settings/Review_Workflows/SET_WORKFLOWS",d="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",r="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",o="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",i="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",s={primary600:"Blue",primary200:"Lilac",alternative600:"Violet",alternative200:"Lavender",success600:"Green",success200:"Pale Green",danger500:"Cherry",danger200:"Pink",warning600:"Orange",warning200:"Yellow",secondary600:"Teal",secondary200:"Baby Blue",neutral400:"Gray",neutral0:"White"},n=e.W.colors.primary600,m={STAGE:"stage"}},32329:function(y,u,t){t.d(u,{n:function(){return l}});var e=t(19565),a=t(20108);function l(d={}){const{id:r="",...o}=d,i={populate:"stages"},{get:s}=(0,e.kY)(),{data:n,isLoading:m,status:O,refetch:c}=(0,a.useQuery)(["review-workflows","workflows",r],async()=>{try{const{data:{data:g}}=await s(`/admin/review-workflows/workflows/${r}`,{params:{...i,...o}});return g}catch{return null}});let v=[];return r&&n?v=[n]:Array.isArray(n)&&(v=n),{workflows:v,isLoading:m,status:O,refetch:c}}},68886:function(y,u,t){t.d(u,{k:function(){return l},s:function(){return d}});var e=t(12301),a=t(2121);function l(r){if(!r)return null;const i=Object.entries(e.W.colors).filter(([,s])=>s.toUpperCase()===r.toUpperCase()).reduce((s,[n])=>(a.lv?.[n]&&(s=n),s),null);return i?{themeColorName:i,name:a.lv[i]}:null}function d(){return Object.entries(a.lv).map(([r,o])=>({hex:e.W.colors[r].toUpperCase(),name:o}))}}}]);
|