@strapi/admin 4.13.4 → 4.13.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/Wysiwyg/EditorLayout.js +3 -3
- package/admin/src/index.js +7 -1
- package/build/1049.bf5230e6.chunk.js +1 -0
- package/build/1227.c72e74e9.chunk.js +1 -0
- package/build/{1386.ea73b677.chunk.js → 1386.8c070d59.chunk.js} +1 -1
- package/build/2225.73c9a224.chunk.js +79 -0
- package/build/2237.a7992513.chunk.js +114 -0
- package/build/2379.27c6ab54.chunk.js +1 -0
- package/build/{2395.0e5e8ded.chunk.js → 2395.120256d6.chunk.js} +2 -2
- package/build/{6691.4985ef22.chunk.js → 2659.cb94f1e7.chunk.js} +28 -28
- package/build/{2801.8e1aa82a.chunk.js → 2801.fdd4d8a2.chunk.js} +1 -1
- package/build/{1387.a86ac314.chunk.js → 2950.216f2e89.chunk.js} +1 -1
- package/build/3021.33ad47fb.chunk.js +103 -0
- package/build/3911.488fbde3.chunk.js +95 -0
- package/build/4174.6efb0dc6.chunk.js +1 -0
- package/build/{4546.6dbd695f.chunk.js → 4546.9710f321.chunk.js} +1 -1
- package/build/4724.a0ce68f3.chunk.js +6 -0
- package/build/{502.7bba43b1.chunk.js → 502.d26ea06b.chunk.js} +1 -1
- package/build/{4628.9cbb6df5.chunk.js → 5158.c85f841a.chunk.js} +1 -1
- package/build/{9806.5d5a0e8d.chunk.js → 6272.4017459a.chunk.js} +25 -25
- package/build/6715.48e37308.chunk.js +1 -0
- package/build/6812.31979984.chunk.js +26 -0
- package/build/{7464.eb057bec.chunk.js → 7464.d3d1414f.chunk.js} +1 -1
- package/build/{8276.be3ed581.chunk.js → 8276.b55f4600.chunk.js} +2 -2
- package/build/{Admin-authenticatedApp.579f5f40.chunk.js → Admin-authenticatedApp.69c7ea72.chunk.js} +7 -7
- package/build/Admin_InternalErrorPage.18ba7fd6.chunk.js +1 -0
- package/build/{Admin_homePage.6f128523.chunk.js → Admin_homePage.86c8d4c9.chunk.js} +10 -10
- package/build/{Admin_marketplace.061a6e5a.chunk.js → Admin_marketplace.e75c9cf4.chunk.js} +9 -9
- package/build/Admin_pluginsPage.d1afbf28.chunk.js +6 -0
- package/build/{Admin_profilePage.678bce24.chunk.js → Admin_profilePage.079903a3.chunk.js} +2 -2
- package/build/Admin_settingsPage.60a3e46e.chunk.js +111 -0
- package/build/Upload_ConfigureTheView.949535b8.chunk.js +1 -0
- package/build/{admin-app.2a8615ab.chunk.js → admin-app.1fde8f7a.chunk.js} +8 -8
- package/build/{admin-edit-roles-page.38a6c863.chunk.js → admin-edit-roles-page.f76cb0aa.chunk.js} +37 -37
- package/build/admin-edit-users.186c9d90.chunk.js +10 -0
- package/build/admin-roles-list.3a4edfa2.chunk.js +22 -0
- package/build/admin-users.e276bd9a.chunk.js +11 -0
- package/build/{api-tokens-create-page.e0c15627.chunk.js → api-tokens-create-page.f5a85725.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.9f2dce47.chunk.js → api-tokens-edit-page.06a32cef.chunk.js} +1 -1
- package/build/api-tokens-list-page.bb27d544.chunk.js +16 -0
- package/build/audit-logs-settings-page.0d9bc0f6.chunk.js +1 -0
- package/build/{content-manager.f448efdf.chunk.js → content-manager.f9abb63f.chunk.js} +17 -17
- package/build/{content-type-builder-list-view.b71cf240.chunk.js → content-type-builder-list-view.b75fb938.chunk.js} +14 -14
- package/build/{content-type-builder.e5669749.chunk.js → content-type-builder.5ff93edd.chunk.js} +17 -17
- package/build/email-settings-page.07d417d5.chunk.js +11 -0
- package/build/i18n-settings-page.7107e28a.chunk.js +9 -0
- package/build/i18n-translation-tr-json.3bfc812f.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.9ed36326.js +2860 -0
- package/build/review-workflows-settings-create-view.b96b7be1.chunk.js +1 -0
- package/build/review-workflows-settings-edit-view.21a682a0.chunk.js +1 -0
- package/build/review-workflows-settings-list-view.14212324.chunk.js +56 -0
- package/build/{runtime~main.de9b894e.js → runtime~main.562cc892.js} +2 -2
- package/build/sso-settings-page.d93bd81f.chunk.js +1 -0
- package/build/{transfer-tokens-create-page.ebba16d8.chunk.js → transfer-tokens-create-page.6e7049ff.chunk.js} +1 -1
- package/build/{transfer-tokens-edit-page.d7bb2b3e.chunk.js → transfer-tokens-edit-page.449b4502.chunk.js} +1 -1
- package/build/transfer-tokens-list-page.34caf827.chunk.js +16 -0
- package/build/upload-settings.fede24b9.chunk.js +14 -0
- package/build/upload.a96e2452.chunk.js +58 -0
- package/build/users-advanced-settings-page.ac7968e7.chunk.js +9 -0
- package/build/users-email-settings-page.125a89e2.chunk.js +9 -0
- package/build/users-providers-settings-page.ce34951c.chunk.js +14 -0
- package/build/{users-roles-settings-page.2b051e6a.chunk.js → users-roles-settings-page.d415835a.chunk.js} +2 -2
- package/build/{webhook-edit-page.de45c635.chunk.js → webhook-edit-page.7498417e.chunk.js} +3 -3
- package/build/webhook-list-page.1b085c7f.chunk.js +63 -0
- package/ee/admin/content-manager/pages/EditView/InformationBox/components/AssigneeSelect/AssigneeSelect.js +5 -15
- package/ee/server/bootstrap.js +2 -2
- package/package.json +11 -11
- package/scripts/build.js +2 -3
- package/scripts/create-dev-plugins-file.js +2 -3
- package/server/bootstrap.js +3 -1
- package/server/services/metrics.js +17 -0
- package/utils/create-cache-dir.js +5 -102
- package/utils/plugins.js +217 -0
- package/webpack.config.js +2 -2
- package/build/1049.ec69f5e0.chunk.js +0 -1
- package/build/1227.9f37e1dc.chunk.js +0 -1
- package/build/1504.eff012f7.chunk.js +0 -95
- package/build/2225.649fb7bc.chunk.js +0 -79
- package/build/2237.b832ae6e.chunk.js +0 -114
- package/build/2379.1f98a31a.chunk.js +0 -1
- package/build/3739.63e352f1.chunk.js +0 -103
- package/build/4174.f1f39e40.chunk.js +0 -1
- package/build/448.829e1344.chunk.js +0 -1
- package/build/4724.aea5c8c1.chunk.js +0 -6
- package/build/9944.7af075a5.chunk.js +0 -26
- package/build/Admin_InternalErrorPage.38155af3.chunk.js +0 -1
- package/build/Admin_pluginsPage.16f837b8.chunk.js +0 -6
- package/build/Admin_settingsPage.af7309e4.chunk.js +0 -111
- package/build/Upload_ConfigureTheView.3fc1c100.chunk.js +0 -1
- package/build/admin-edit-users.545fc882.chunk.js +0 -10
- package/build/admin-roles-list.1e2e814d.chunk.js +0 -22
- package/build/admin-users.b8ea5677.chunk.js +0 -11
- package/build/api-tokens-list-page.d747051c.chunk.js +0 -16
- package/build/audit-logs-settings-page.96f9d608.chunk.js +0 -1
- package/build/email-settings-page.2809f0bf.chunk.js +0 -11
- package/build/i18n-settings-page.5f716172.chunk.js +0 -9
- package/build/i18n-translation-tr-json.10f0600d.chunk.js +0 -1
- package/build/main.5a7255d6.js +0 -2863
- package/build/review-workflows-settings-create-view.4a156a19.chunk.js +0 -1
- package/build/review-workflows-settings-edit-view.ce984d1f.chunk.js +0 -1
- package/build/review-workflows-settings-list-view.419b8deb.chunk.js +0 -56
- package/build/sso-settings-page.45153df5.chunk.js +0 -1
- package/build/transfer-tokens-list-page.cfe1736c.chunk.js +0 -16
- package/build/upload-settings.5e55266d.chunk.js +0 -14
- package/build/upload.0660a088.chunk.js +0 -58
- package/build/users-advanced-settings-page.818d84eb.chunk.js +0 -9
- package/build/users-email-settings-page.c1967c09.chunk.js +0 -9
- package/build/users-providers-settings-page.11893e08.chunk.js +0 -14
- package/build/webhook-list-page.ca91df8b.chunk.js +0 -63
- package/utils/create-plugins-exclude-path.js +0 -20
- package/utils/get-plugins.js +0 -110
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5905],{14417:function(oe,O,n){n.r(O),n.d(O,{default:function(){return lt}});var e=n(32735),C=n(
|
|
1
|
+
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[5905],{14417:function(oe,O,n){n.r(O),n.d(O,{default:function(){return lt}});var e=n(32735),C=n(64092),m=n(84642),P=n(91779),H=n(56932),g=n(77981),r=n(30126),M=n(82064),w=n(40501),D=n(63318),X=n(70788),V=n(33795),l=n.n(V),f=n(23973),T=n.n(f),v=n(89793),x=n.n(v),k=n(23940),z=n.n(k),F=n(67879),J=n(53038),G=n(23699),ge=n(41013),fe=n(45037),_=n(27947),Z=n(8365),Be=n(22116),Pe=n(60216),o=n.n(Pe),K=n(97782),he=n(20666),b=n(32105),$=n(8471),ye=$.ZP.tr`
|
|
2
2
|
&.component-row,
|
|
3
3
|
&.dynamiczone-row {
|
|
4
4
|
position: relative;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
&.dynamiczone-row > td:first-of-type {
|
|
30
30
|
padding: 0;
|
|
31
31
|
}
|
|
32
|
-
`;function ae({customRowComponent:t,component:a,isFromDynamicZone:i,isNestedInDZComponent:s,firstLoopComponentUid:
|
|
32
|
+
`;function ae({customRowComponent:t,component:a,isFromDynamicZone:i,isNestedInDZComponent:s,firstLoopComponentUid:u}){const{modifiedData:d}=(0,K.Z)(),{schema:{attributes:h}}=l()(d,["components",a],{schema:{attributes:[]}});return e.createElement(ye,{isChildOfDynamicZone:i,className:"component-row"},e.createElement("td",{colSpan:12},e.createElement(xe,{customRowComponent:t,items:h,targetUid:a,firstLoopComponentUid:u||a,editTarget:"components",isFromDynamicZone:i,isNestedInDZComponent:s,isSub:!0,secondLoopComponentUid:u?a:null})))}ae.defaultProps={component:null,customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1},ae.propTypes={component:o().string,customRowComponent:o().func,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,isNestedInDZComponent:o().bool};var Ee=ae,ke=n(98610),je=n(18129),ve=n(51401);function re({isActive:t,icon:a}){return e.createElement(m.k,{alignItems:"center",background:t?"primary200":"neutral200",justifyContent:"center",height:8,width:8,borderRadius:"50%"},e.createElement(je.J,{as:ve.c[a]||ve.c.cube,height:5,width:5}))}re.defaultProps={isActive:!1,icon:"Cube"},re.propTypes={isActive:o().bool,icon:o().string};const be=(0,$.ZP)(g.x)`
|
|
33
33
|
position: absolute;
|
|
34
34
|
display: none;
|
|
35
35
|
top: 5px;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
fill: ${({theme:t})=>t.colors.primary600};
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
`,
|
|
46
|
+
`,Ie=(0,$.ZP)(m.k)`
|
|
47
47
|
width: ${(0,r.Q1)(140)};
|
|
48
48
|
height: ${(0,r.Q1)(80)};
|
|
49
49
|
position: relative;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`;function le({component:t,dzName:a,index:i,isActive:s,isInDevelopmentMode:
|
|
81
|
+
`;function le({component:t,dzName:a,index:i,isActive:s,isInDevelopmentMode:u,onClick:d}){const{modifiedData:h,removeComponentFromDynamicZone:j}=(0,K.Z)(),{schema:{icon:L,displayName:R}}=l()(h,["components",t],{schema:{}}),y=c=>{c.stopPropagation(),j(a,i)};return e.createElement(Ie,{alignItems:"center",direction:"column",className:s?"active":"",borderRadius:"borderRadius",justifyContent:"center",paddingLeft:4,paddingRight:4,shrink:0,onClick:d,role:"tab",tabIndex:s?0:-1,cursor:"pointer","aria-selected":s,"aria-controls":`dz-${a}-panel-${i}`,id:`dz-${a}-tab-${i}`},e.createElement(re,{icon:L,isActive:s}),e.createElement(g.x,{marginTop:1,maxWidth:"100%"},e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",ellipsis:!0},R)),u&&e.createElement(be,{as:"button",onClick:y},e.createElement(ke.Z,null)))}le.defaultProps={component:null,isActive:!1,isInDevelopmentMode:!1,onClick(){}},le.propTypes={component:o().string,dzName:o().string.isRequired,index:o().number.isRequired,isActive:o().bool,isInDevelopmentMode:o().bool,onClick:o().func};var Fe=le;const Ae=(0,$.ZP)(M.Z)`
|
|
82
82
|
width: ${(0,r.Q1)(32)};
|
|
83
83
|
height: ${(0,r.Q1)(32)};
|
|
84
84
|
padding: ${(0,r.Q1)(9)};
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
path {
|
|
88
88
|
fill: ${({theme:t})=>t.colors.primary600};
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,Se=(0,$.ZP)(g.x)`
|
|
91
91
|
height: ${(0,r.Q1)(90)};
|
|
92
92
|
position: absolute;
|
|
93
93
|
width: 100%;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
`,Oe=(0,$.ZP)(m.k)`
|
|
97
97
|
width: 100%;
|
|
98
98
|
overflow-x: auto;
|
|
99
|
-
`,
|
|
99
|
+
`,we=(0,$.ZP)(g.x)`
|
|
100
100
|
padding-top: ${(0,r.Q1)(90)};
|
|
101
101
|
`,Ue=(0,$.ZP)(m.k)`
|
|
102
102
|
flex-shrink: 0;
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
height: ${(0,r.Q1)(80)};
|
|
105
105
|
justify-content: center;
|
|
106
106
|
align-items: center;
|
|
107
|
-
`;function ie({customRowComponent:t,components:a,addComponent:i,name:s,targetUid:
|
|
107
|
+
`;function ie({customRowComponent:t,components:a,addComponent:i,name:s,targetUid:u}){const{isInDevelopmentMode:d}=(0,K.Z)(),[h,j]=(0,e.useState)(0),{formatMessage:L}=(0,F.Z)(),R=c=>{h!==c&&j(c)},y=()=>{i(s)};return e.createElement(ye,{className:"dynamiczone-row",isFromDynamicZone:!0},e.createElement("td",{colSpan:12},e.createElement(Se,{paddingLeft:8},e.createElement(Oe,{gap:2},d&&e.createElement("button",{type:"button",onClick:y},e.createElement(Ue,{direction:"column",alignItems:"stretch",gap:1},e.createElement(Ae,null),e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600"},L({id:(0,b.Z)("button.component.add"),formatMessage:"Add a component"})))),e.createElement(m.k,{role:"tablist",gap:2},a.map((c,p)=>e.createElement(Fe,{key:c,dzName:s,index:p,component:c,isActive:h===p,isInDevelopmentMode:d,onClick:()=>R(p)}))))),e.createElement(we,null,a.map((c,p)=>{const E={customRowComponent:t,component:c};return e.createElement(g.x,{id:`dz-${s}-panel-${p}`,role:"tabpanel",tabindex:0,"aria-labelledby":`dz-${s}-tab-${p}`,key:c,style:{display:h===p?"block":"none"}},e.createElement("table",null,e.createElement("tbody",null,e.createElement(Ee,{...E,isFromDynamicZone:!0,targetUid:u,key:c}))))}))))}ie.defaultProps={addComponent(){},components:[],customRowComponent:null,name:null},ie.propTypes={addComponent:o().func,components:o().instanceOf(Array),customRowComponent:o().func,name:o().string,targetUid:o().string.isRequired};var We=ie;const ze=(0,$.ZP)(g.x)`
|
|
108
108
|
height: ${24/16}rem;
|
|
109
109
|
width: ${24/16}rem;
|
|
110
110
|
border-radius: 50%;
|
|
@@ -120,14 +120,14 @@
|
|
|
120
120
|
svg path {
|
|
121
121
|
fill: ${({theme:t,color:a})=>t.colors[`${a}600`]};
|
|
122
122
|
}
|
|
123
|
-
`,
|
|
123
|
+
`,Ne=(0,$.ZP)(g.x)`
|
|
124
124
|
border-radius: 0 0 ${({theme:t})=>t.borderRadius} ${({theme:t})=>t.borderRadius};
|
|
125
125
|
display: block;
|
|
126
126
|
width: 100%;
|
|
127
127
|
border: none;
|
|
128
128
|
position: relative;
|
|
129
129
|
left: -0.25rem;
|
|
130
|
-
`,Ce=({children:t,icon:a,color:i,...s})=>e.createElement(
|
|
130
|
+
`,Ce=({children:t,icon:a,color:i,...s})=>e.createElement(Ne,{paddingBottom:4,paddingTop:4,as:"button",type:"button",...s},e.createElement(m.k,null,e.createElement(ze,{color:i,"aria-hidden":!0,background:`${i}200`},a),e.createElement(g.x,{paddingLeft:3},e.createElement(Z.Z,{variant:"pi",fontWeight:"bold",textColor:`${i}600`},t))));Ce.propTypes={color:o().string.isRequired,children:o().string.isRequired,icon:o().node.isRequired};var Qe=Ce,Ve=(0,$.ZP)(g.x)`
|
|
131
131
|
table {
|
|
132
132
|
width: 100%;
|
|
133
133
|
white-space: nowrap;
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
color: ${({theme:t})=>t.colors.neutral600};
|
|
163
163
|
outline-offset: -4px;
|
|
164
164
|
}
|
|
165
|
-
`;function se({addComponentToDZ:t,customRowComponent:a,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:
|
|
165
|
+
`;function se({addComponentToDZ:t,customRowComponent:a,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:u,isMain:d,isNestedInDZComponent:h,isSub:j,items:L,secondLoopComponentUid:R,targetUid:y}){const{formatMessage:c}=(0,F.Z)(),{trackUsage:p}=(0,r.rS)(),{isInDevelopmentMode:E,modifiedData:N,isInContentTypeView:A}=(0,K.Z)(),{onOpenModalAddField:U}=(0,he.Z)(),I=()=>{p("hasClickedCTBAddFieldBanner"),U({forTarget:i,targetUid:y})};return y?L.length===0&&d?e.createElement(G.i,{colCount:2,rowCount:2},e.createElement(ge.h,null,e.createElement(fe.Tr,null,e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{action:e.createElement(P.z,{onClick:I,size:"L",startIcon:e.createElement(M.Z,null),variant:"secondary"},c({id:(0,b.Z)("table.button.no-fields"),defaultMessage:"Add new field"})),colSpan:2,content:A?{id:(0,b.Z)("table.content.no-fields.collection-type"),defaultMessage:"Add your first field to this Collection-Type"}:{id:(0,b.Z)("table.content.no-fields.component"),defaultMessage:"Add your first field to this component"}})):e.createElement(Ve,null,e.createElement(g.x,{paddingLeft:6,paddingRight:d?6:0,...d&&{style:{overflowX:"auto"}}},e.createElement("table",null,d&&e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement("th",{colSpan:"2"},e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement("tbody",null,L.map(S=>{const{type:Q}=S,Y=a;return e.createElement(e.Fragment,{key:S.name},e.createElement(Y,{...S,isNestedInDZComponent:h,targetUid:y,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:u,secondLoopComponentUid:R}),Q==="component"&&e.createElement(Ee,{...S,customRowComponent:a,targetUid:y,isNestedInDZComponent:u,editTarget:i,firstLoopComponentUid:s}),Q==="dynamiczone"&&e.createElement(We,{...S,customRowComponent:a,addComponent:t,targetUid:y}))})))),d&&E&&e.createElement(Be.c,{icon:e.createElement(M.Z,null),onClick:I},c({id:(0,b.Z)(`form.button.add.field.to.${N.contentType?N.contentType.schema.kind:i||"collectionType"}`),defaultMessage:"Add another field"})),j&&E&&e.createElement(Qe,{icon:e.createElement(M.Z,null),onClick:I,color:u?"primary":"neutral"},c({id:(0,b.Z)("form.button.add.field.to.component"),defaultMessage:"Add another field"}))):e.createElement(G.i,{colCount:2,rowCount:2},e.createElement(ge.h,null,e.createElement(fe.Tr,null,e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.name",defaultMessage:"Name"}))),e.createElement(_.Th,null,e.createElement(Z.Z,{variant:"sigma",textColor:"neutral600"},c({id:"global.type",defaultMessage:"Type"}))))),e.createElement(r.c4,{colSpan:2,content:{id:(0,b.Z)("table.content.create-first-content-type"),defaultMessage:"Create your first Collection-Type"}}))}se.defaultProps={addComponentToDZ(){},customRowComponent:null,firstLoopComponentUid:null,isFromDynamicZone:!1,isNestedInDZComponent:!1,isMain:!1,isSub:!1,items:[],secondLoopComponentUid:null,targetUid:null},se.propTypes={addComponentToDZ:o().func,customRowComponent:o().func,editTarget:o().string.isRequired,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,isNestedInDZComponent:o().bool,isMain:o().bool,items:o().instanceOf(Array),secondLoopComponentUid:o().string,targetUid:o().string,isSub:o().bool};var xe=se,Te=n(14763),Ke=n(94997),He=n(36328);const Xe=(0,$.ZP)(g.x)`
|
|
166
166
|
position: absolute;
|
|
167
167
|
left: -1.125rem;
|
|
168
168
|
top: 0px;
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
* {
|
|
183
183
|
fill: ${({theme:t,color:a})=>t.colors[a]};
|
|
184
184
|
}
|
|
185
|
-
`,Ze=t=>e.createElement(Xe,null,e.createElement(Je,{width:"20",height:"23",viewBox:"0 0 20 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.02477 14.7513C8.65865 17.0594 11.6046 18.6059 17.5596 18.8856C18.6836 18.9384 19.5976 19.8435 19.5976 20.9688V20.9688C19.5976 22.0941 18.6841 23.0125 17.5599 22.9643C10.9409 22.6805 6.454 20.9387 3.75496 17.1258C0.937988 13.1464 0.486328 7.39309 0.486328 0.593262H4.50974C4.50974 7.54693 5.06394 11.9813 7.02477 14.7513Z"})));Ze.propTypes={color:o().string.isRequired};var Ge=Ze,Ye=n(
|
|
185
|
+
`,Ze=t=>e.createElement(Xe,null,e.createElement(Je,{width:"20",height:"23",viewBox:"0 0 20 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.02477 14.7513C8.65865 17.0594 11.6046 18.6059 17.5596 18.8856C18.6836 18.9384 19.5976 19.8435 19.5976 20.9688V20.9688C19.5976 22.0941 18.6841 23.0125 17.5599 22.9643C10.9409 22.6805 6.454 20.9387 3.75496 17.1258C0.937988 13.1464 0.486328 7.39309 0.486328 0.593262H4.50974C4.50974 7.54693 5.06394 11.9813 7.02477 14.7513Z"})));Ze.propTypes={color:o().string.isRequired};var Ge=Ze,Ye=n(65589);const ce=({content:t})=>z()(t);ce.defaultProps={content:null},ce.propTypes={content:o().string};var qe=ce,_e=(0,$.ZP)(g.x)`
|
|
186
186
|
position: relative;
|
|
187
|
-
`;const de=({type:t,customField:a,repeatable:i})=>{const{formatMessage:s}=(0,
|
|
187
|
+
`;const de=({type:t,customField:a,repeatable:i})=>{const{formatMessage:s}=(0,F.Z)();let u=t;return["integer","biginteger","float","decimal"].includes(t)?u="number":["string"].includes(t)&&(u="text"),a?e.createElement(Z.Z,null,s({id:(0,b.Z)("attribute.customField"),defaultMessage:"Custom field"})):e.createElement(Z.Z,null,s({id:(0,b.Z)(`attribute.${u}`),defaultMessage:t}),"\xA0",i&&s({id:(0,b.Z)("component.repeatable"),defaultMessage:"(repeatable)"}))};de.defaultProps={customField:null,repeatable:!1},de.propTypes={type:o().string.isRequired,customField:o().string,repeatable:o().bool};var et=de;function me({configurable:t,customField:a,editTarget:i,firstLoopComponentUid:s,isFromDynamicZone:u,name:d,onClick:h,relation:j,repeatable:L,secondLoopComponentUid:R,target:y,targetUid:c,type:p}){const{contentTypes:E,isInDevelopmentMode:N,removeAttribute:A}=(0,K.Z)(),{formatMessage:U}=(0,F.Z)(),I=p==="relation"&&j.includes("morph"),S=["integer","biginteger","float","decimal"].includes(p)?"number":p,Q=l()(E,[y],{}),Y=l()(Q,["schema","displayName"],""),q=l()(Q,"plugin"),pe=y?"relation":S,ee=()=>{I||t!==!1&&h(i,R||s||c,d,p,a)};let W;return R&&s?W=2:s?W=1:W=0,e.createElement(_e,{as:"tr",...(0,r.X7)({fn:ee,condition:N&&t&&!I})},e.createElement("td",{style:{position:"relative"}},W!==0&&e.createElement(Ge,{color:u?"primary200":"neutral150"}),e.createElement(m.k,{paddingLeft:2,gap:4},e.createElement(Ye.Z,{type:pe,customField:a}),e.createElement(Z.Z,{fontWeight:"bold"},d))),e.createElement("td",null,y?e.createElement(Z.Z,null,U({id:(0,b.Z)(`modelPage.attribute.${I?"relation-polymorphic":"relationWith"}`),defaultMessage:"Relation with"}),"\xA0",e.createElement("span",{style:{fontStyle:"italic"}},e.createElement(qe,{content:Y}),"\xA0",q&&`(${U({id:(0,b.Z)("from"),defaultMessage:"from"})}: ${q})`)):e.createElement(et,{type:p,customField:a,repeatable:L})),e.createElement("td",null,N?e.createElement(m.k,{justifyContent:"flex-end",...r.UW},t?e.createElement(m.k,{gap:1},!I&&e.createElement(Te.h,{onClick:ee,label:`${U({id:"app.utils.edit",defaultMessage:"Edit"})} ${d}`,noBorder:!0,icon:e.createElement(D.Z,null)}),e.createElement(Te.h,{onClick:te=>{te.stopPropagation(),A(i,d,R||s||"")},label:`${U({id:"global.delete",defaultMessage:"Delete"})} ${d}`,noBorder:!0,icon:e.createElement(Ke.Z,null)})):e.createElement(He.Z,null)):e.createElement(g.x,{height:(0,r.Q1)(32)})))}me.defaultProps={configurable:!0,customField:null,firstLoopComponentUid:null,isFromDynamicZone:!1,onClick(){},relation:"",repeatable:!1,secondLoopComponentUid:null,target:null,targetUid:null,type:null},me.propTypes={configurable:o().bool,customField:o().string,editTarget:o().string.isRequired,firstLoopComponentUid:o().string,isFromDynamicZone:o().bool,name:o().string.isRequired,onClick:o().func,relation:o().string,repeatable:o().bool,secondLoopComponentUid:o().string,target:o().string,targetUid:o().string,type:o().string};var tt=(0,e.memo)(me),nt=t=>{let a;switch(t){case"date":case"datetime":case"time":case"timestamp":a="date";break;case"integer":case"biginteger":case"decimal":case"float":a="number";break;case"string":case"text":a="text";break;case"":a="relation";break;default:a=t}return a},ot=n(9780);const at={collectionTypesConfigurations:[{action:"plugin::content-manager.collection-types.configure-view",subject:null}],componentsConfigurations:[{action:"plugin::content-manager.components.configure-layout",subject:null}],singleTypesConfigurations:[{action:"plugin::content-manager.single-types.configure-view",subject:null}]},ue=({disabled:t,isTemporary:a,isInContentTypeView:i,contentTypeKind:s,targetUid:u})=>{const{formatMessage:d}=(0,F.Z)(),{push:h}=(0,J.k6)(),{collectionTypesConfigurations:j,componentsConfigurations:L,singleTypesConfigurations:R}=at,y=d({id:"content-type-builder.form.button.configure-view"});let c=j;const p=()=>(a||h(i?`/content-manager/collectionType/${u}/configurations/edit`:`/content-manager/components/${u}/configurations/edit`),!1);return i&&s==="singleType"&&(c=R),i||(c=L),e.createElement(r.jW,{permissions:c},e.createElement(P.z,{startIcon:e.createElement(ot.Z,null),variant:"tertiary",onClick:p,disabled:a||t},y))};ue.defaultProps={contentTypeKind:"collectionType",isInContentTypeView:!0,isTemporary:!1,targetUid:""},ue.propTypes={disabled:o().bool.isRequired,contentTypeKind:o().string,isInContentTypeView:o().bool,isTemporary:o().bool,targetUid:o().string};var rt=(0,e.memo)(ue),lt=()=>{const{initialData:t,modifiedData:a,isInDevelopmentMode:i,isInContentTypeView:s,submitData:u}=(0,K.Z)(),{formatMessage:d}=(0,F.Z)(),{trackUsage:h}=(0,r.rS)(),j=(0,J.$B)("/plugins/content-type-builder/:kind/:currentUID"),{onOpenModalAddComponentsToDZ:L,onOpenModalAddField:R,onOpenModalEditField:y,onOpenModalEditSchema:c,onOpenModalEditCustomField:p}=(0,he.Z)(),E=s?"contentType":"component",N=[E,"schema","attributes"],A=l()(a,[E,"uid"]),U=l()(a,[E,"isTemporary"],!1),I=l()(a,[E,"schema","kind"],null),S=l()(a,N,[]),Q=T()(t,[E,"plugin"]),Y=!x()(a,t),q=s?"contentType":"component",pe=B=>{L({dynamicZoneTarget:B,targetUid:A})},ee=async(B,$e,Me,De,Re)=>{const Le=nt(De);Re?p({forTarget:B,targetUid:$e,attributeName:Me,attributeType:Le,customFieldUid:Re}):y({forTarget:B,targetUid:$e,attributeName:Me,attributeType:Le,step:De==="component"?"2":null})};let W=l()(a,[E,"schema","displayName"],"");const te=l()(a,[E,"schema","kind"],""),ne=j?.params.currentUID==="create-content-type";!W&&ne&&(W=d({id:(0,b.Z)("button.model.create"),defaultMessage:"Create new collection type"}));const it=()=>{const B=te||E;B==="collectionType"&&h("willEditNameOfContentType"),B==="singleType"&&h("willEditNameOfSingleType"),c({modalType:E,forTarget:E,targetUid:A,kind:B})};return e.createElement(e.Fragment,null,e.createElement(J.NL,{message:B=>B.hash==="#back"?!1:d({id:(0,b.Z)("prompt.unsaved")}),when:Y}),e.createElement(C.T,{id:"title",primaryAction:i&&e.createElement(m.k,{gap:2},!ne&&e.createElement(P.z,{startIcon:e.createElement(M.Z,null),variant:"secondary",onClick:()=>{R({forTarget:q,targetUid:A})}},d({id:(0,b.Z)("button.attributes.add.another")})),e.createElement(P.z,{startIcon:e.createElement(w.Z,null),onClick:()=>u(),type:"submit",disabled:x()(a,t)},d({id:"global.save",defaultMessage:"Save"}))),secondaryAction:i&&!Q&&!ne&&e.createElement(P.z,{startIcon:e.createElement(D.Z,null),variant:"tertiary",onClick:it},d({id:"app.utils.edit",defaultMessage:"Edit"})),title:z()(W),subtitle:d({id:(0,b.Z)("listView.headerLayout.description"),defaultMessage:"Build the data architecture of your content"}),navigationAction:e.createElement(r.rU,{startIcon:e.createElement(X.Z,null),to:"/plugins/content-type-builder/"},d({id:"global.back",defaultMessage:"Back"}))}),e.createElement(H.D,null,e.createElement(m.k,{direction:"column",alignItems:"stretch",gap:4},e.createElement(m.k,{justifyContent:"flex-end"},e.createElement(m.k,{gap:2},e.createElement(rt,{key:"link-to-cm-settings-view",targetUid:A,isTemporary:U,isInContentTypeView:s,contentTypeKind:I,disabled:ne}))),e.createElement(g.x,{background:"neutral0",shadow:"filterShadow",hasRadius:!0},e.createElement(xe,{items:S,customRowComponent:B=>e.createElement(tt,{...B,onClick:ee}),addComponentToDZ:pe,targetUid:A,editTarget:q,isMain:!0})))))}},56932:function(oe,O,n){n.d(O,{D:function(){return m}});var e=n(74512),C=n(77981);const m=({children:P})=>(0,e.jsx)(C.x,{paddingLeft:10,paddingRight:10,children:P})},64092:function(oe,O,n){n.d(O,{T:function(){return D}});var e=n(74512),C=n(32735),m=n(8471);const P=l=>{const f=(0,C.useRef)(null),[T,v]=(0,C.useState)(!0),x=([k])=>{v(k.isIntersecting)};return(0,C.useEffect)(()=>{const k=f.current,z=new IntersectionObserver(x,l);return k&&z.observe(f.current),()=>{k&&z.disconnect()}},[f,l]),[f,T]};var H=n(81957);const g=(l,f)=>{const T=(0,H.W)(f);(0,C.useLayoutEffect)(()=>{const v=new ResizeObserver(T);return Array.isArray(l)?l.forEach(x=>{x.current&&v.observe(x.current)}):l.current&&v.observe(l.current),()=>{v.disconnect()}},[l,T])};var r=n(77981),M=n(84642),w=n(8365);const D=l=>{const f=(0,C.useRef)(null),[T,v]=(0,C.useState)(null),[x,k]=P({root:null,rootMargin:"0px",threshold:0});return g(x,()=>{x.current&&v(x.current.getBoundingClientRect())}),(0,C.useEffect)(()=>{f.current&&v(f.current.getBoundingClientRect())},[f]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{style:{height:T?.height},ref:x,children:k&&(0,e.jsx)(V,{ref:f,...l})}),!k&&(0,e.jsx)(V,{...l,sticky:!0,width:T?.width})]})};D.displayName="HeaderLayout";const X=(0,m.ZP)(r.x)`
|
|
188
188
|
width: ${({width:l})=>l?`${l/16}rem`:void 0};
|
|
189
189
|
z-index: ${({theme:l})=>l.zIndices[1]};
|
|
190
|
-
`,
|
|
190
|
+
`,V=C.forwardRef(({navigationAction:l,primaryAction:f,secondaryAction:T,subtitle:v,title:x,sticky:k,width:z,...F},J)=>{const G=typeof v=="string";return k?(0,e.jsx)(X,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:z,"data-strapi-header-sticky":!0,children:(0,e.jsxs)(M.k,{justifyContent:"space-between",children:[(0,e.jsxs)(M.k,{children:[l&&(0,e.jsx)(r.x,{paddingRight:3,children:l}),(0,e.jsxs)(r.x,{children:[(0,e.jsx)(w.Z,{variant:"beta",as:"h1",...F,children:x}),G?(0,e.jsx)(w.Z,{variant:"pi",textColor:"neutral600",children:v}):v]}),T?(0,e.jsx)(r.x,{paddingLeft:4,children:T}):null]}),(0,e.jsx)(M.k,{children:f?(0,e.jsx)(r.x,{paddingLeft:2,children:f}):void 0})]})}):(0,e.jsxs)(r.x,{ref:J,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:l?6:8,background:"neutral100","data-strapi-header":!0,children:[l?(0,e.jsx)(r.x,{paddingBottom:2,children:l}):null,(0,e.jsxs)(M.k,{justifyContent:"space-between",children:[(0,e.jsxs)(M.k,{minWidth:0,children:[(0,e.jsx)(w.Z,{as:"h1",variant:"alpha",...F,children:x}),T?(0,e.jsx)(r.x,{paddingLeft:4,children:T}):null]}),f]}),G?(0,e.jsx)(w.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:v}):v]})})},22116:function(oe,O,n){n.d(O,{c:function(){return w}});var e=n(74512),C=n(8471),m=n(77981),P=n(2775),H=n(84642),g=n(8365);const r=(0,C.ZP)(m.x)`
|
|
191
191
|
height: ${24/16}rem;
|
|
192
192
|
width: ${24/16}rem;
|
|
193
193
|
border-radius: 50%;
|
|
@@ -208,4 +208,4 @@
|
|
|
208
208
|
display: block;
|
|
209
209
|
width: 100%;
|
|
210
210
|
border: none;
|
|
211
|
-
`,
|
|
211
|
+
`,w=({children:D,icon:X,...V})=>(0,e.jsxs)("div",{children:[(0,e.jsx)(P.i,{}),(0,e.jsx)(M,{as:"button",background:"primary100",padding:5,...V,children:(0,e.jsxs)(H.k,{children:[(0,e.jsx)(r,{"aria-hidden":!0,background:"primary200",children:X}),(0,e.jsx)(m.x,{paddingLeft:3,children:(0,e.jsx)(g.Z,{variant:"pi",fontWeight:"bold",textColor:"primary600",children:D})})]})})]})}}]);
|