@strapi/admin 4.0.0-beta.12 → 4.0.0-beta.16
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/components/AuthenticatedApp/index.js +2 -1
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Blocker.js +3 -2
- package/admin/src/components/GlobalStyle/index.js +1 -0
- package/admin/src/components/LeftMenu/index.js +5 -5
- package/admin/src/components/{UpgradePlanModal /index.js → UpgradePlanModal/index.js} +7 -11
- package/admin/src/content-manager/components/AttributeFilter/hooks/useAllowedAttributes.js +2 -7
- package/admin/src/content-manager/components/ComponentInitializer/index.js +48 -29
- package/admin/src/content-manager/components/DynamicTable/CellContent/Media/FileWrapper.js +4 -2
- package/admin/src/content-manager/components/DynamicTable/CellContent/Relation/PopoverContent.js +4 -4
- package/admin/src/content-manager/components/DynamicTable/CellContent/Relation/index.js +5 -5
- package/admin/src/content-manager/components/DynamicTable/CellContent/index.js +5 -5
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDelete/index.js +3 -3
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +3 -3
- package/admin/src/content-manager/components/DynamicTable/TableRows/index.js +8 -3
- package/admin/src/content-manager/components/DynamicTable/index.js +1 -1
- package/admin/src/content-manager/components/DynamicZone/components/AddComponentButton/index.js +14 -6
- package/admin/src/content-manager/components/DynamicZone/components/Component/Rectangle.js +1 -1
- package/admin/src/content-manager/components/DynamicZone/components/Component/index.js +52 -16
- package/admin/src/content-manager/components/DynamicZone/components/ComponentPicker/Category/ComponentCard/index.js +4 -4
- package/admin/src/content-manager/components/DynamicZone/components/ComponentPicker/Category/index.js +1 -1
- package/admin/src/content-manager/components/DynamicZone/components/ComponentPicker/index.js +3 -3
- package/admin/src/content-manager/components/DynamicZone/components/DzLabel/index.js +10 -3
- package/admin/src/content-manager/components/DynamicZone/index.js +1 -0
- package/admin/src/content-manager/components/EditViewDataManagerProvider/index.js +17 -8
- package/admin/src/content-manager/components/EditViewDataManagerProvider/reducer.js +1 -1
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/schema.js +1 -1
- package/admin/src/content-manager/components/FieldComponent/Label.js +10 -4
- package/admin/src/content-manager/components/{InputJSON/Hint.js → Hint/index.js} +3 -3
- package/admin/src/content-manager/components/InputJSON/FieldError.js +9 -3
- package/admin/src/content-manager/components/InputJSON/Label.js +9 -3
- package/admin/src/content-manager/components/InputJSON/index.js +1 -1
- package/admin/src/content-manager/components/InputUID/index.js +7 -7
- package/admin/src/content-manager/components/NonRepeatableComponent/index.js +1 -1
- package/admin/src/content-manager/components/RepeatableComponent/AccordionGroupCustom/index.js +34 -6
- package/admin/src/content-manager/components/RepeatableComponent/AddFieldButton.js +3 -3
- package/admin/src/content-manager/components/RepeatableComponent/DragPreview.js +12 -7
- package/admin/src/content-manager/components/RepeatableComponent/DraggedItem/DraggingSibling.js +3 -3
- package/admin/src/content-manager/components/RepeatableComponent/DraggedItem/index.js +16 -25
- package/admin/src/content-manager/components/RepeatableComponent/index.js +34 -153
- package/admin/src/content-manager/components/SelectMany/ListItem.js +3 -4
- package/admin/src/content-manager/components/SelectMany/index.js +11 -2
- package/admin/src/content-manager/components/SelectOne/SingleValue.js +2 -2
- package/admin/src/content-manager/components/SelectOne/index.js +34 -21
- package/admin/src/content-manager/components/SelectWrapper/Label.js +9 -3
- package/admin/src/content-manager/components/SelectWrapper/Option.js +2 -2
- package/admin/src/content-manager/components/SelectWrapper/index.js +4 -7
- package/admin/src/content-manager/components/State/index.js +3 -3
- package/admin/src/content-manager/components/Wysiwyg/Editor.js +6 -5
- package/admin/src/content-manager/components/Wysiwyg/EditorLayout.js +133 -0
- package/admin/src/content-manager/components/Wysiwyg/{EditorWrapper.js → EditorStylesContainer.js} +6 -5
- package/admin/src/content-manager/components/Wysiwyg/WysiwygFooter.js +3 -3
- package/admin/src/content-manager/components/Wysiwyg/WysiwygNav.js +18 -21
- package/admin/src/content-manager/components/Wysiwyg/WysiwygStyles.js +0 -51
- package/admin/src/content-manager/components/Wysiwyg/index.js +80 -89
- package/admin/src/content-manager/components/Wysiwyg/utils/utils.js +7 -2
- package/admin/src/content-manager/pages/EditSettingsView/components/ComponentFieldList.js +2 -2
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +5 -5
- package/admin/src/content-manager/pages/EditSettingsView/components/FieldButton.js +3 -3
- package/admin/src/content-manager/pages/EditSettingsView/components/FormModal.js +3 -3
- package/admin/src/content-manager/pages/EditSettingsView/components/RelationalFields.js +5 -5
- package/admin/src/content-manager/pages/EditSettingsView/index.js +5 -5
- package/admin/src/content-manager/pages/EditView/DraftAndPublishBadge/index.js +5 -5
- package/admin/src/content-manager/pages/EditView/Header/index.js +10 -10
- package/admin/src/content-manager/pages/EditView/Informations/index.js +11 -10
- package/admin/src/content-manager/pages/EditView/index.js +7 -8
- package/admin/src/content-manager/pages/ListSettingsView/components/CardPreview.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/EditFieldForm.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +3 -3
- package/admin/src/content-manager/pages/ListView/FieldPicker/index.js +3 -3
- package/admin/src/content-manager/pages/ListView/PaginationFooter/index.js +1 -1
- package/admin/src/content-manager/pages/ListView/index.js +20 -25
- package/admin/src/content-manager/pages/ListViewLayoutManager/index.js +0 -1
- package/admin/src/content-manager/sharedReducers/crudReducer/reducer.js +2 -2
- package/admin/src/index.js +1 -0
- package/admin/src/pages/Admin/Onboarding/index.js +4 -4
- package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +10 -5
- package/admin/src/pages/AuthPage/components/ForgotPasswordSuccess/index.js +7 -7
- package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +12 -7
- package/admin/src/pages/AuthPage/components/Oops/index.js +6 -6
- package/admin/src/pages/AuthPage/components/Register/index.js +5 -14
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +10 -5
- package/admin/src/pages/AuthPage/index.js +1 -0
- package/admin/src/pages/AuthPage/utils/forms.js +2 -2
- package/admin/src/pages/HomePage/HomeHeader.js +5 -5
- package/admin/src/pages/HomePage/SocialLinks.js +5 -9
- package/admin/src/pages/InstalledPluginsPage/Plugins.js +111 -0
- package/admin/src/pages/InstalledPluginsPage/index.js +4 -108
- package/admin/src/pages/InstalledPluginsPage/utils/api.js +11 -0
- package/admin/src/pages/MarketplacePage/assets/marketplace-coming-soon.png +0 -0
- package/admin/src/pages/MarketplacePage/index.js +93 -126
- package/admin/src/pages/ProfilePage/index.js +10 -9
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ContentBox/index.js +5 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +16 -4
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/DeleteButton/index.js +6 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/index.js +25 -15
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/index.js +7 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/index.js +7 -16
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/Collapse/index.js +4 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/CarretIcon/index.js +0 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/Header/index.js +6 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/SubActionRow/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/utils/activeStyle.js +6 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/index.js +3 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/Row/index.js +7 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/SubCategory/index.js +4 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RoleForm/index.js +5 -5
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RowLabelWithCheckbox/index.js +8 -2
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/EmptyRole/index.js +0 -32
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js +8 -4
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/index.js +8 -8
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +8 -8
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js +6 -5
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +7 -5
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/schema.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js +5 -3
- package/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/MagicLinkWrapper.js +1 -0
- package/admin/src/pages/SettingsPage/pages/Users/utils/validations/users/edit.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Users/utils/validations/users/profile.js +6 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +9 -5
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/Combobox.js +8 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js +24 -28
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +213 -220
- package/admin/src/plugins.js +14 -18
- package/admin/src/translations/en.json +12 -2
- package/admin/src/utils/getFullName.js +9 -0
- package/admin/src/utils/index.js +1 -1
- package/build/01a600d9e6e0dea21e33017a97bdf431.png +0 -0
- package/build/1024.1b15fbb5.chunk.js +1 -0
- package/build/1024.664cd4ee.chunk.js +1 -0
- package/build/1156.ef17a73a.chunk.js +1 -0
- package/build/1593.57ba5d9f.chunk.js +1 -0
- package/build/1856.53d42ce5.chunk.js +1 -0
- package/build/1856.e06c9787.chunk.js +1 -0
- package/build/2912.591ddc96.chunk.js +1 -0
- package/build/2912.b0ac46e0.chunk.js +1 -0
- package/build/3063.bafab3b5.chunk.js +1 -0
- package/build/3226.0dc582b2.chunk.js +2 -0
- package/build/3226.0dc582b2.chunk.js.LICENSE.txt +15 -0
- package/build/3226.e8fe1445.chunk.js +2 -0
- package/build/3226.e8fe1445.chunk.js.LICENSE.txt +15 -0
- package/build/3471.327fa7e3.chunk.js +2 -0
- package/build/3471.327fa7e3.chunk.js.LICENSE.txt +13 -0
- package/build/3480.86145dfa.chunk.js +1 -0
- package/build/3669.270feaf7.chunk.js +1 -0
- package/build/4064.2683bcce.chunk.js +1 -0
- package/build/4064.56677f11.chunk.js +1 -0
- package/build/4261.a08a535e.chunk.js +1 -0
- package/build/4261.b7b7ac00.chunk.js +1 -0
- package/build/4282.30e4e53c.chunk.js +2 -0
- package/build/4282.30e4e53c.chunk.js.LICENSE.txt +4 -0
- package/build/4362.60f0937a.chunk.js +1 -0
- package/build/4362.aefff6ad.chunk.js +1 -0
- package/build/4362.de6b3788.chunk.js +1 -0
- package/build/4362.fd69112c.chunk.js +1 -0
- package/build/4715.2f51454b.chunk.js +1 -0
- package/build/4715.35096dd7.chunk.js +1 -0
- package/build/4715.bb03cfd8.chunk.js +1 -0
- package/build/4741.1fb6ad6e.chunk.js +2 -0
- package/build/4741.1fb6ad6e.chunk.js.LICENSE.txt +9 -0
- package/build/4741.45afdeda.chunk.js +2 -0
- package/build/4741.45afdeda.chunk.js.LICENSE.txt +9 -0
- package/build/4868.7f99c7b9.chunk.js +1 -0
- package/build/497.05fa226b.chunk.js +1 -0
- package/build/497.838781d7.chunk.js +1 -0
- package/build/4982.5031302b.chunk.js +1 -0
- package/build/4982.a7f87e6c.chunk.js +1 -0
- package/build/5273.41d98db5.chunk.js +2 -0
- package/build/5273.41d98db5.chunk.js.LICENSE.txt +15 -0
- package/build/5367.5b2bdd38.chunk.js +1 -0
- package/build/5603.f1165699.chunk.js +1 -0
- package/build/5881.4bf14a31.chunk.js +2 -0
- package/build/5881.4bf14a31.chunk.js.LICENSE.txt +4 -0
- package/build/5936.2ec3e56a.chunk.js +1 -0
- package/build/6250.11ba8b50.chunk.js +1 -0
- package/build/6250.50133e63.chunk.js +1 -0
- package/build/6250.785ba0da.chunk.js +1 -0
- package/build/6456.9da00bc3.chunk.js +2 -0
- package/build/6456.9da00bc3.chunk.js.LICENSE.txt +13 -0
- package/build/6925.4767e761.chunk.js +2 -0
- package/build/6925.4767e761.chunk.js.LICENSE.txt +4 -0
- package/build/7427.881b5bba.chunk.js +1 -0
- package/build/7841.736189f7.chunk.js +1 -0
- package/build/7841.cc8241a5.chunk.js +1 -0
- package/build/8447.32ee17be.chunk.js +2 -0
- package/build/8447.32ee17be.chunk.js.LICENSE.txt +22 -0
- package/build/8447.686f702c.chunk.js +2 -0
- package/build/8447.686f702c.chunk.js.LICENSE.txt +22 -0
- package/build/8469.8d819a3c.chunk.js +1 -0
- package/build/849.3ddc11eb.chunk.js +1 -0
- package/build/849.abcc3b07.chunk.js +1 -0
- package/build/849.fc26299c.chunk.js +1 -0
- package/build/9238.9258f79b.chunk.js +1 -0
- package/build/9238.f112d6c9.chunk.js +1 -0
- package/build/9292.20d16885.chunk.js +2 -0
- package/build/9292.20d16885.chunk.js.LICENSE.txt +14 -0
- package/build/9293.cb94e2c6.chunk.js +1 -0
- package/build/9964.345994e8.chunk.js +2 -0
- package/build/9964.345994e8.chunk.js.LICENSE.txt +15 -0
- package/build/9965.d72ae284.chunk.js +2 -0
- package/build/9965.d72ae284.chunk.js.LICENSE.txt +1 -0
- package/build/Admin-authenticatedApp.62e5ca51.chunk.js +1 -0
- package/build/Admin-authenticatedApp.7bdfbab4.chunk.js +1 -0
- package/build/Admin-authenticatedApp.994268cd.chunk.js +1 -0
- package/build/Admin-authenticatedApp.b1104a6a.chunk.js +1 -0
- package/build/Admin-authenticatedApp.bfdec496.chunk.js +1 -0
- package/build/Admin_homePage.1745827a.chunk.js +1 -0
- package/build/Admin_homePage.31e37124.chunk.js +1 -0
- package/build/Admin_homePage.4398cf1a.chunk.js +1 -0
- package/build/Admin_marketplace.201373e2.chunk.js +1 -0
- package/build/Admin_marketplace.6582ddcf.chunk.js +1 -0
- package/build/Admin_pluginsPage.5e75b3e8.chunk.js +1 -0
- package/build/Admin_pluginsPage.db5748e1.chunk.js +1 -0
- package/build/Admin_profilePage.3aa61921.chunk.js +1 -0
- package/build/Admin_profilePage.e7eb483d.chunk.js +1 -0
- package/build/Admin_profilePage.e941f627.chunk.js +1 -0
- package/build/Admin_profilePage.f9369a69.chunk.js +1 -0
- package/build/Admin_settingsPage.174d91c2.chunk.js +1 -0
- package/build/Admin_settingsPage.363ad01d.chunk.js +1 -0
- package/build/Admin_settingsPage.60a92e51.chunk.js +1 -0
- package/build/Admin_settingsPage.ea6de611.chunk.js +1 -0
- package/build/admin-edit-roles-page.dbe15373.chunk.js +1 -0
- package/build/admin-edit-roles-page.e91bd9e5.chunk.js +1 -0
- package/build/admin-edit-users.110f6f05.chunk.js +1 -0
- package/build/admin-edit-users.bcdd2e4d.chunk.js +1 -0
- package/build/admin-edit-users.fa3fac98.chunk.js +1 -0
- package/build/admin-users.640b6123.chunk.js +1 -0
- package/build/admin-users.8f957bf7.chunk.js +1 -0
- package/build/admin-users.a2d08780.chunk.js +1 -0
- package/build/admin-users.fcabe1ed.chunk.js +1 -0
- package/build/api-tokens-create-page.451be52c.chunk.js +1 -0
- package/build/api-tokens-create-page.57119445.chunk.js +1 -0
- package/build/api-tokens-create-page.5e332b85.chunk.js +1 -0
- package/build/api-tokens-create-page.ac4285ba.chunk.js +1 -0
- package/build/api-tokens-edit-page.7b419f29.chunk.js +1 -0
- package/build/api-tokens-edit-page.b1c3ef5c.chunk.js +1 -0
- package/build/api-tokens-edit-page.b8900ddd.chunk.js +1 -0
- package/build/api-tokens-edit-page.e473ee7e.chunk.js +1 -0
- package/build/api-tokens-list-page.5acd2590.chunk.js +1 -0
- package/build/api-tokens-list-page.b053ddcd.chunk.js +1 -0
- package/build/api-tokens-list-page.d451255e.chunk.js +1 -0
- package/build/codemirror-addon-closebrackets.5d703a8f.chunk.js +1 -0
- package/build/codemirror-addon-lint-js.2bb54ef7.chunk.js +1 -0
- package/build/codemirror-addon-lint.91580cda.chunk.js +1 -0
- package/build/codemirror-addon-lint.d0f380b7.chunk.js +1 -0
- package/build/codemirror-addon-mark-selection.06aef3b0.chunk.js +1 -0
- package/build/codemirror-css.7b034e03.chunk.js +1 -0
- package/build/codemirror-javacript.debb6b5f.chunk.js +1 -0
- package/build/codemirror-theme.4a209ed5.chunk.js +1 -0
- package/build/codemirror-theme.4d046631.chunk.js +1 -0
- package/build/content-manager.08eae196.chunk.js +1 -0
- package/build/content-manager.196287ea.chunk.js +1 -0
- package/build/content-manager.a6c34b64.chunk.js +1 -0
- package/build/content-manager.d09d2a3a.chunk.js +1 -0
- package/build/content-manager.dae306dc.chunk.js +1 -0
- package/build/content-type-builder-translation-uk-json.dd141133.chunk.js +1 -0
- package/build/content-type-builder.0e689f6b.chunk.js +1 -0
- package/build/content-type-builder.d0e98469.chunk.js +1 -0
- package/build/content-type-builder.e9231547.chunk.js +1 -0
- package/build/cropper-css.b71d1229.chunk.js +1 -0
- package/build/cs-json.ff08076e.chunk.js +1 -0
- package/build/documentation-page.d8a45deb.chunk.js +1 -0
- package/build/documentation-settings.8c40ee4f.chunk.js +1 -0
- package/build/documentation-translation-pt-json.da1090dc.chunk.js +1 -0
- package/build/email-settings-page.8f0ee2a7.chunk.js +1 -0
- package/build/email-settings-page.b0b914fd.chunk.js +1 -0
- package/build/email-settings-page.b1048dc6.chunk.js +1 -0
- package/build/en-json.0e021d52.chunk.js +1 -0
- package/build/en-json.6282a00f.chunk.js +1 -0
- package/build/fontawesome-css-all.162c8569.chunk.js +1 -0
- package/build/fontawesome-css-all.5744d394.chunk.js +1 -0
- package/build/fontawesome-css.1638752f.chunk.js +1 -0
- package/build/fontawesome-css.b1736497.chunk.js +1 -0
- package/build/fontawesome-js.2639263c.chunk.js +2 -0
- package/build/fontawesome-js.2639263c.chunk.js.LICENSE.txt +4 -0
- package/build/fontawesome-js.6c44ac22.chunk.js +1 -0
- package/build/highlight.js.3f31aed7.chunk.js +1 -0
- package/build/i18n-settings-page.5fe86c22.chunk.js +1 -0
- package/build/i18n-settings-page.acc3a212.chunk.js +1 -0
- package/build/i18n-settings-page.f1881c6c.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.3414cc4f.js +2 -0
- package/build/main.3414cc4f.js.LICENSE.txt +91 -0
- package/build/main.af6b238d.js +2 -0
- package/build/main.af6b238d.js.LICENSE.txt +73 -0
- package/build/main.e21a82f5.js +2 -0
- package/build/main.e21a82f5.js.LICENSE.txt +91 -0
- package/build/main.f425e7e8.js +2 -0
- package/build/main.f425e7e8.js.LICENSE.txt +91 -0
- package/build/main.fa2000bd.js +2 -0
- package/build/main.fa2000bd.js.LICENSE.txt +82 -0
- package/build/runtime~main.15acd133.js +1 -0
- package/build/runtime~main.3f600349.js +1 -0
- package/build/runtime~main.44db7ede.js +1 -0
- package/build/runtime~main.a6ae89c4.js +1 -0
- package/build/runtime~main.cc96a027.js +1 -0
- package/build/sso-settings-page.0f5feb29.chunk.js +1 -0
- package/build/sso-settings-page.bd7a8fd7.chunk.js +1 -0
- package/build/upload-settings.4c2a1426.chunk.js +1 -0
- package/build/upload-settings.4daf6206.chunk.js +1 -0
- package/build/upload-settings.7d40d236.chunk.js +1 -0
- package/build/upload-translation-zh-json.9ad30216.chunk.js +1 -0
- package/build/upload.1090e6c4.chunk.js +1 -0
- package/build/upload.c11a292c.chunk.js +1 -0
- package/build/upload.e53f8430.chunk.js +1 -0
- package/build/users-advanced-settings-page.2dfeffe8.chunk.js +1 -0
- package/build/users-advanced-settings-page.669b059c.chunk.js +1 -0
- package/build/users-advanced-settings-page.e637319d.chunk.js +1 -0
- package/build/users-email-settings-page.a4e19b13.chunk.js +1 -0
- package/build/users-email-settings-page.b1d1f551.chunk.js +1 -0
- package/build/users-email-settings-page.cb6065a5.chunk.js +1 -0
- package/build/users-providers-settings-page.733a51ec.chunk.js +1 -0
- package/build/users-providers-settings-page.866ddeed.chunk.js +1 -0
- package/build/users-providers-settings-page.96c66f6f.chunk.js +1 -0
- package/build/users-roles-settings-page.2f12885b.chunk.js +1 -0
- package/build/users-roles-settings-page.3629c123.chunk.js +1 -0
- package/build/users-roles-settings-page.dd20c4ab.chunk.js +1 -0
- package/build/users-roles-settings-page.fafcbe29.chunk.js +1 -0
- package/build/webhook-edit-page.634e50da.chunk.js +1 -0
- package/build/webhook-edit-page.f4f6935d.chunk.js +1 -0
- package/build/webhook-edit-page.f6d2e962.chunk.js +1 -0
- package/build/webhook-list-page.68c100bf.chunk.js +1 -0
- package/build/webhook-list-page.aae66737.chunk.js +1 -0
- package/build/webhook-list-page.fc554fbe.chunk.js +1 -0
- package/ee/admin/pages/AuthPage/components/Login/index.js +3 -3
- package/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js +2 -2
- package/ee/admin/pages/AuthPage/components/Providers/index.js +12 -6
- package/ee/admin/pages/SettingsPage/SingleSignOn/index.js +119 -115
- package/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +5 -5
- package/ee/admin/pages/SettingsPage/pages/Roles/ListPage/index.js +7 -7
- package/ee/server/controllers/authentication/middlewares.js +1 -1
- package/package.json +10 -15
- package/scripts/build.js +13 -1
- package/scripts/create-dev-plugins-file.js +69 -0
- package/scripts/create-plugins-file.js +92 -0
- package/server/controllers/admin.js +8 -2
- package/server/services/content-type.js +4 -4
- package/server/services/permission/permissions-manager/sanitize.js +14 -7
- package/server/services/user.js +14 -0
- package/server/strategies/api-token.js +19 -9
- package/server/validation/authentication/register.js +2 -2
- package/server/validation/common-validators.js +1 -1
- package/server/validation/user.js +3 -3
- package/webpack.alias.js +0 -6
- package/admin/src/content-manager/components/DraggedField/Close/index.js +0 -10
- package/admin/src/content-manager/components/DraggedField/GrabWrapper.js +0 -38
- package/admin/src/content-manager/components/DraggedField/Link.js +0 -17
- package/admin/src/content-manager/components/DraggedField/NameWrapper.js +0 -29
- package/admin/src/content-manager/components/DraggedField/RemoveWrapper.js +0 -32
- package/admin/src/content-manager/components/DraggedField/SubWrapper.js +0 -36
- package/admin/src/content-manager/components/DraggedField/Wrapper.js +0 -129
- package/admin/src/content-manager/components/DraggedField/index.js +0 -198
- package/admin/src/content-manager/components/DraggedField/utils/getColor.js +0 -12
- package/admin/src/content-manager/components/DraggedField/utils/getHeight.js +0 -3
- package/admin/src/content-manager/components/DraggedFieldWithPreview/Carret.js +0 -24
- package/admin/src/content-manager/components/DraggedFieldWithPreview/DynamicComponent.js +0 -71
- package/admin/src/content-manager/components/DraggedFieldWithPreview/DynamicZoneWrapper.js +0 -10
- package/admin/src/content-manager/components/DraggedFieldWithPreview/Tooltip.js +0 -19
- package/admin/src/content-manager/components/DraggedFieldWithPreview/Wrapper.js +0 -23
- package/admin/src/content-manager/components/DraggedFieldWithPreview/index.js +0 -194
- package/admin/src/content-manager/components/Inputs/ComingSoonInput.js +0 -72
- package/admin/src/content-manager/components/PopupForm/index.js +0 -93
- package/admin/src/content-manager/components/RepeatableComponent/Banner.js +0 -114
- package/admin/src/content-manager/components/Separator/index.js +0 -9
- package/admin/src/content-manager/components/SettingsViewWrapper/index.js +0 -306
- package/admin/src/content-manager/components/SortWrapper/index.js +0 -9
- package/admin/src/content-manager/components/Wysiwyg/MediaLibrary.js +0 -58
- package/admin/src/content-manager/components/Wysiwyg/WysiwygExpand.js +0 -135
- package/admin/src/content-manager/components/old/Wysiwyg/MediaLib.js +0 -68
- package/admin/src/pages/InstalledPluginsPage/ListWrapper.js +0 -7
- package/admin/src/pages/InstalledPluginsPage/Logo.js +0 -36
- package/admin/src/pages/InstalledPluginsPage/Row.js +0 -99
- package/admin/src/pages/InstalledPluginsPage/utils/generateRows.js +0 -19
- package/ee/admin/components/ProviderButton/ProviderButtonStyles.js +0 -31
- package/ee/admin/components/ProviderButton/index.js +0 -42
|
@@ -9,12 +9,13 @@ import PluginsInitializer from '../PluginsInitializer';
|
|
|
9
9
|
import RBACProvider from '../RBACProvider';
|
|
10
10
|
import { fetchAppInfo, fetchCurrentUserPermissions, fetchStrapiLatestRelease } from './utils/api';
|
|
11
11
|
import checkLatestStrapiVersion from './utils/checkLatestStrapiVersion';
|
|
12
|
+
import { getFullName } from '../../utils';
|
|
12
13
|
|
|
13
14
|
const strapiVersion = packageJSON.version;
|
|
14
15
|
|
|
15
16
|
const AuthenticatedApp = () => {
|
|
16
17
|
const userInfo = auth.getUserInfo();
|
|
17
|
-
const userName = get(userInfo, 'username') ||
|
|
18
|
+
const userName = get(userInfo, 'username') || getFullName(userInfo.firstname, userInfo.lastname);
|
|
18
19
|
const [userDisplayName, setUserDisplayName] = useState(userName);
|
|
19
20
|
const { showReleaseNotification } = useConfigurations();
|
|
20
21
|
const [
|
|
@@ -10,7 +10,6 @@ import { Link } from '@strapi/design-system/Link';
|
|
|
10
10
|
import { Box } from '@strapi/design-system/Box';
|
|
11
11
|
import { Stack } from '@strapi/design-system/Stack';
|
|
12
12
|
import { Flex } from '@strapi/design-system/Flex';
|
|
13
|
-
import { H1 } from '@strapi/design-system/Text';
|
|
14
13
|
import { Typography } from '@strapi/design-system/Typography';
|
|
15
14
|
import { Content, IconBox, Overlay } from './Overlay';
|
|
16
15
|
|
|
@@ -48,7 +47,9 @@ const Blocker = ({ displayedIcon, description, title, isOpen }) => {
|
|
|
48
47
|
<Content size={6}>
|
|
49
48
|
<Stack size={2}>
|
|
50
49
|
<Flex justifyContent="center">
|
|
51
|
-
<
|
|
50
|
+
<Typography as="h1" variant="alpha">
|
|
51
|
+
{formatMessage(title)}
|
|
52
|
+
</Typography>
|
|
52
53
|
</Flex>
|
|
53
54
|
<Flex justifyContent="center">
|
|
54
55
|
<Typography as="h2" textColor="neutral600" fontSize={4} fontWeight="regular">
|
|
@@ -6,6 +6,7 @@ const loadCss = async () => {
|
|
|
6
6
|
/* webpackChunkName: "fontawesome-css-all" */ '@fortawesome/fontawesome-free/css/all.css'
|
|
7
7
|
);
|
|
8
8
|
await import(/* webpackChunkName: "fontawesome-js" */ '@fortawesome/fontawesome-free/js/all.min');
|
|
9
|
+
await import(/* webpackChunkName: "cropper-css" */ 'cropperjs/dist/cropper.css');
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
loadCss();
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from '@strapi/design-system/MainNav';
|
|
16
16
|
import { FocusTrap } from '@strapi/design-system/FocusTrap';
|
|
17
17
|
import { Box } from '@strapi/design-system/Box';
|
|
18
|
-
import {
|
|
18
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
19
19
|
import { Stack } from '@strapi/design-system/Stack';
|
|
20
20
|
import Write from '@strapi/icons/Write';
|
|
21
21
|
import Exit from '@strapi/icons/Exit';
|
|
@@ -144,20 +144,20 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
|
|
144
144
|
<FocusTrap onEscape={handleToggleUserLinks}>
|
|
145
145
|
<Stack size={0}>
|
|
146
146
|
<LinkUser onClick={handleToggleUserLinks} to="/me">
|
|
147
|
-
<
|
|
147
|
+
<Typography>
|
|
148
148
|
{formatMessage({
|
|
149
149
|
id: 'app.components.LeftMenu.profile',
|
|
150
150
|
defaultMessage: 'Profile',
|
|
151
151
|
})}
|
|
152
|
-
</
|
|
152
|
+
</Typography>
|
|
153
153
|
</LinkUser>
|
|
154
154
|
<LinkUser onClick={handleLogout} logout="logout" to="/auth/login">
|
|
155
|
-
<
|
|
155
|
+
<Typography textColor="danger600">
|
|
156
156
|
{formatMessage({
|
|
157
157
|
id: 'app.components.LeftMenu.logout',
|
|
158
158
|
defaultMessage: 'Logout',
|
|
159
159
|
})}
|
|
160
|
-
</
|
|
160
|
+
</Typography>
|
|
161
161
|
<Exit />
|
|
162
162
|
</LinkUser>
|
|
163
163
|
</Stack>
|
|
@@ -8,7 +8,7 @@ import { IconButton } from '@strapi/design-system/IconButton';
|
|
|
8
8
|
import { LinkButton } from '@strapi/design-system/LinkButton';
|
|
9
9
|
import { Box } from '@strapi/design-system/Box';
|
|
10
10
|
import { Flex } from '@strapi/design-system/Flex';
|
|
11
|
-
import {
|
|
11
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
12
12
|
import { Stack } from '@strapi/design-system/Stack';
|
|
13
13
|
import ExternalLink from '@strapi/icons/ExternalLink';
|
|
14
14
|
import Cross from '@strapi/icons/Cross';
|
|
@@ -48,10 +48,6 @@ const UpgradeContainer = styled(Flex)`
|
|
|
48
48
|
}
|
|
49
49
|
`;
|
|
50
50
|
|
|
51
|
-
const TextBold = styled(Text)`
|
|
52
|
-
font-weight: 700;
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
51
|
const StackFlexStart = styled(Stack)`
|
|
56
52
|
align-items: flex-start;
|
|
57
53
|
max-width: ${400 / 16}rem;
|
|
@@ -82,26 +78,26 @@ const UpgradePlanModal = ({ onClose, isOpen }) => {
|
|
|
82
78
|
<IconButton onClick={onClose} aria-label="Close" icon={<Cross />} />
|
|
83
79
|
</CloseButtonContainer>
|
|
84
80
|
<StackFlexStart size={6}>
|
|
85
|
-
<
|
|
81
|
+
<Typography fontWeight="bold" textColor="primary600">
|
|
86
82
|
{formatMessage({
|
|
87
83
|
id: 'app.components.UpgradePlanModal.text-ce',
|
|
88
84
|
defaultMessage: 'COMMUNITY EDITION',
|
|
89
85
|
})}
|
|
90
|
-
</
|
|
86
|
+
</Typography>
|
|
91
87
|
<Stack size={2}>
|
|
92
|
-
<
|
|
88
|
+
<Typography variant="alpha" as="h2" id="upgrade-plan">
|
|
93
89
|
{formatMessage({
|
|
94
90
|
id: 'app.components.UpgradePlanModal.limit-reached',
|
|
95
91
|
defaultMessage: 'You have reached the limit',
|
|
96
92
|
})}
|
|
97
|
-
</
|
|
98
|
-
<
|
|
93
|
+
</Typography>
|
|
94
|
+
<Typography>
|
|
99
95
|
{formatMessage({
|
|
100
96
|
id: 'app.components.UpgradePlanModal.text-power',
|
|
101
97
|
defaultMessage:
|
|
102
98
|
'Unlock the full power of Strapi by upgrading your plan to the Enterprise Edition',
|
|
103
99
|
})}
|
|
104
|
-
</
|
|
100
|
+
</Typography>
|
|
105
101
|
</Stack>
|
|
106
102
|
<LinkButton href="https://strapi.io/pricing-self-hosted" endIcon={<ExternalLink />}>
|
|
107
103
|
{formatMessage({
|
|
@@ -2,16 +2,11 @@ import get from 'lodash/get';
|
|
|
2
2
|
import { useRBACProvider, findMatchingPermissions } from '@strapi/helper-plugin';
|
|
3
3
|
|
|
4
4
|
const NOT_ALLOWED_FILTERS = ['json', 'component', 'media', 'richtext', 'dynamiczone', 'password'];
|
|
5
|
+
const TIMESTAMPS = ['createdAt', 'updatedAt'];
|
|
5
6
|
|
|
6
7
|
const useAllowedAttributes = (contentType, slug) => {
|
|
7
8
|
const { allPermissions } = useRBACProvider();
|
|
8
9
|
|
|
9
|
-
let timestamps = get(contentType, ['options', 'timestamps']);
|
|
10
|
-
|
|
11
|
-
if (!Array.isArray(timestamps)) {
|
|
12
|
-
timestamps = [];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
const readPermissionsForSlug = findMatchingPermissions(allPermissions, [
|
|
16
11
|
{
|
|
17
12
|
action: 'plugin::content-manager.explorer.read',
|
|
@@ -33,7 +28,7 @@ const useAllowedAttributes = (contentType, slug) => {
|
|
|
33
28
|
return false;
|
|
34
29
|
}
|
|
35
30
|
|
|
36
|
-
if (!readPermissionForAttr.includes(attr) && attr !== 'id' && !
|
|
31
|
+
if (!readPermissionForAttr.includes(attr) && attr !== 'id' && !TIMESTAMPS.includes(attr)) {
|
|
37
32
|
return false;
|
|
38
33
|
}
|
|
39
34
|
|
|
@@ -6,7 +6,7 @@ import PlusCircle from '@strapi/icons/PlusCircle';
|
|
|
6
6
|
import { Box } from '@strapi/design-system/Box';
|
|
7
7
|
import { Stack } from '@strapi/design-system/Stack';
|
|
8
8
|
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import {
|
|
9
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
10
10
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
11
11
|
import { getTrad } from '../../utils';
|
|
12
12
|
|
|
@@ -23,45 +23,64 @@ const IconWrapper = styled.span`
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
-
const ComponentInitializer = ({ isReadOnly, onClick }) => {
|
|
26
|
+
const ComponentInitializer = ({ error, isReadOnly, onClick }) => {
|
|
27
27
|
const { formatMessage } = useIntl();
|
|
28
28
|
|
|
29
29
|
return (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<
|
|
43
|
-
<
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
30
|
+
<>
|
|
31
|
+
<Box
|
|
32
|
+
as="button"
|
|
33
|
+
background="neutral100"
|
|
34
|
+
borderColor={error ? 'danger600' : 'neutral200'}
|
|
35
|
+
disabled={isReadOnly}
|
|
36
|
+
hasRadius
|
|
37
|
+
onClick={onClick}
|
|
38
|
+
paddingTop={9}
|
|
39
|
+
paddingBottom={9}
|
|
40
|
+
type="button"
|
|
41
|
+
>
|
|
42
|
+
<Stack size={2}>
|
|
43
|
+
<Flex justifyContent="center" style={{ cursor: isReadOnly ? 'not-allowed' : 'inherit' }}>
|
|
44
|
+
<IconWrapper>
|
|
45
|
+
<PlusCircle />
|
|
46
|
+
</IconWrapper>
|
|
47
|
+
</Flex>
|
|
48
|
+
<Flex justifyContent="center">
|
|
49
|
+
<Typography textColor="primary600" variant="pi" fontWeight="bold">
|
|
50
|
+
{formatMessage({
|
|
51
|
+
id: getTrad('components.empty-repeatable'),
|
|
52
|
+
defaultMessage: 'No entry yet. Click on the button below to add one.',
|
|
53
|
+
})}
|
|
54
|
+
</Typography>
|
|
55
|
+
</Flex>
|
|
56
|
+
</Stack>
|
|
57
|
+
</Box>
|
|
58
|
+
{error?.id && (
|
|
59
|
+
<Typography textColor="danger600" variant="pi">
|
|
60
|
+
{formatMessage(
|
|
61
|
+
{
|
|
62
|
+
id: error.id,
|
|
63
|
+
defaultMessage: error.defaultMessage,
|
|
64
|
+
},
|
|
65
|
+
error.values
|
|
66
|
+
)}
|
|
67
|
+
</Typography>
|
|
68
|
+
)}
|
|
69
|
+
</>
|
|
57
70
|
);
|
|
58
71
|
};
|
|
59
72
|
|
|
60
73
|
ComponentInitializer.defaultProps = {
|
|
74
|
+
error: undefined,
|
|
61
75
|
isReadOnly: false,
|
|
62
76
|
};
|
|
63
77
|
|
|
64
78
|
ComponentInitializer.propTypes = {
|
|
79
|
+
error: PropTypes.shape({
|
|
80
|
+
id: PropTypes.string.isRequired,
|
|
81
|
+
defaultMessage: PropTypes.string.isRequired,
|
|
82
|
+
values: PropTypes.object,
|
|
83
|
+
}),
|
|
65
84
|
isReadOnly: PropTypes.bool,
|
|
66
85
|
onClick: PropTypes.func.isRequired,
|
|
67
86
|
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Flex } from '@strapi/design-system/Flex';
|
|
5
|
-
import {
|
|
5
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
6
6
|
|
|
7
7
|
const Wrapper = styled(Flex)`
|
|
8
8
|
position: relative;
|
|
@@ -22,7 +22,9 @@ const Wrapper = styled(Flex)`
|
|
|
22
22
|
const FileWrapper = ({ children, ...props }) => {
|
|
23
23
|
return (
|
|
24
24
|
<Wrapper justifyContent="center" alignItems="center" as="span" {...props}>
|
|
25
|
-
<
|
|
25
|
+
<Typography variant="sigma" textColor="neutral600">
|
|
26
|
+
{children}
|
|
27
|
+
</Typography>
|
|
26
28
|
</Wrapper>
|
|
27
29
|
);
|
|
28
30
|
};
|
package/admin/src/content-manager/components/DynamicTable/CellContent/Relation/PopoverContent.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useQuery } from 'react-query';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { Box } from '@strapi/design-system/Box';
|
|
6
|
-
import {
|
|
6
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
7
7
|
import { Loader } from '@strapi/design-system/Loader';
|
|
8
8
|
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
|
|
9
9
|
import { axiosInstance } from '../../../../../core/utils';
|
|
@@ -52,19 +52,19 @@ const PopoverContent = ({ fieldSchema, name, rowId, targetModel, queryInfos }) =
|
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
54
|
<Box as="li" key={entry.id} padding={3}>
|
|
55
|
-
<
|
|
55
|
+
<Typography>
|
|
56
56
|
{value ? (
|
|
57
57
|
<CellValue type={fieldSchema.schema.type} value={entry[fieldSchema.name]} />
|
|
58
58
|
) : (
|
|
59
59
|
'-'
|
|
60
60
|
)}
|
|
61
|
-
</
|
|
61
|
+
</Typography>
|
|
62
62
|
</Box>
|
|
63
63
|
);
|
|
64
64
|
})}
|
|
65
65
|
{data?.pagination.total > 10 && (
|
|
66
66
|
<Box as="li" padding={3}>
|
|
67
|
-
<
|
|
67
|
+
<Typography>[...]</Typography>
|
|
68
68
|
</Box>
|
|
69
69
|
)}
|
|
70
70
|
</ul>
|
|
@@ -2,7 +2,7 @@ import React, { useState, useRef } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { IconButton } from '@strapi/design-system/IconButton';
|
|
5
|
-
import {
|
|
5
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
6
6
|
import { Box } from '@strapi/design-system/Box';
|
|
7
7
|
import { Badge } from '@strapi/design-system/Badge';
|
|
8
8
|
import { Flex } from '@strapi/design-system/Flex';
|
|
@@ -34,9 +34,9 @@ const Relation = ({ fieldSchema, metadatas, queryInfos, name, rowId, value }) =>
|
|
|
34
34
|
|
|
35
35
|
if (SINGLE_RELATIONS.includes(fieldSchema.relation)) {
|
|
36
36
|
return (
|
|
37
|
-
<
|
|
37
|
+
<Typography textColor="neutral800">
|
|
38
38
|
<CellValue type={metadatas.mainField.schema.type} value={value[metadatas.mainField.name]} />
|
|
39
|
-
</
|
|
39
|
+
</Typography>
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -46,7 +46,7 @@ const Relation = ({ fieldSchema, metadatas, queryInfos, name, rowId, value }) =>
|
|
|
46
46
|
<Flex {...stopPropagation}>
|
|
47
47
|
<RelationCountBadge>{value.count}</RelationCountBadge>
|
|
48
48
|
<Box paddingLeft={2}>
|
|
49
|
-
<
|
|
49
|
+
<Typography textColor="neutral800">
|
|
50
50
|
{formatMessage(
|
|
51
51
|
{
|
|
52
52
|
id: 'content-manager.containers.ListPage.items',
|
|
@@ -54,7 +54,7 @@ const Relation = ({ fieldSchema, metadatas, queryInfos, name, rowId, value }) =>
|
|
|
54
54
|
},
|
|
55
55
|
{ number: value.count }
|
|
56
56
|
)}
|
|
57
|
-
</
|
|
57
|
+
</Typography>
|
|
58
58
|
</Box>
|
|
59
59
|
{value.count > 0 && (
|
|
60
60
|
<ActionWrapper>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import {
|
|
4
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
5
5
|
import Media from './Media';
|
|
6
6
|
import MultipleMedias from './MultipleMedias';
|
|
7
7
|
import Relation from './Relation';
|
|
8
8
|
import CellValue from './CellValue';
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const TypographyMaxWidth = styled(Typography)`
|
|
11
11
|
max-width: 300px;
|
|
12
12
|
`;
|
|
13
13
|
|
|
14
14
|
const CellContent = ({ content, fieldSchema, metadatas, name, queryInfos, rowId }) => {
|
|
15
15
|
if (content === null || content === undefined) {
|
|
16
|
-
return <
|
|
16
|
+
return <Typography textColor="neutral800">-</Typography>;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
if (fieldSchema.type === 'media' && !fieldSchema.multiple) {
|
|
@@ -38,9 +38,9 @@ const CellContent = ({ content, fieldSchema, metadatas, name, queryInfos, rowId
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<TypographyMaxWidth ellipsis textColor="neutral800">
|
|
42
42
|
<CellValue type={fieldSchema.type} value={content} />
|
|
43
|
-
</
|
|
43
|
+
</TypographyMaxWidth>
|
|
44
44
|
);
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -4,7 +4,7 @@ import { useIntl } from 'react-intl';
|
|
|
4
4
|
import { Dialog, DialogBody, DialogFooter } from '@strapi/design-system/Dialog';
|
|
5
5
|
import { Stack } from '@strapi/design-system/Stack';
|
|
6
6
|
import { Flex } from '@strapi/design-system/Flex';
|
|
7
|
-
import {
|
|
7
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
8
8
|
import { Button } from '@strapi/design-system/Button';
|
|
9
9
|
import ExclamationMarkCircle from '@strapi/icons/ExclamationMarkCircle';
|
|
10
10
|
import Trash from '@strapi/icons/Trash';
|
|
@@ -27,12 +27,12 @@ const ConfirmDialogDelete = ({ isConfirmButtonLoading, isOpen, onToggleDialog, o
|
|
|
27
27
|
<DialogBody icon={<ExclamationMarkCircle />}>
|
|
28
28
|
<Stack size={2}>
|
|
29
29
|
<Flex justifyContent="center">
|
|
30
|
-
<
|
|
30
|
+
<Typography id="confirm-description">
|
|
31
31
|
{formatMessage({
|
|
32
32
|
id: 'components.popUpWarning.message',
|
|
33
33
|
defaultMessage: 'Are you sure you want to delete this?',
|
|
34
34
|
})}
|
|
35
|
-
</
|
|
35
|
+
</Typography>
|
|
36
36
|
</Flex>
|
|
37
37
|
<Flex>
|
|
38
38
|
<InjectionZoneList area="contentManager.listView.deleteModalAdditionalInfos" />
|
|
@@ -4,7 +4,7 @@ import { useIntl } from 'react-intl';
|
|
|
4
4
|
import { Dialog, DialogBody, DialogFooter } from '@strapi/design-system/Dialog';
|
|
5
5
|
import { Stack } from '@strapi/design-system/Stack';
|
|
6
6
|
import { Flex } from '@strapi/design-system/Flex';
|
|
7
|
-
import {
|
|
7
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
8
8
|
import { Button } from '@strapi/design-system/Button';
|
|
9
9
|
import ExclamationMarkCircle from '@strapi/icons/ExclamationMarkCircle';
|
|
10
10
|
import Trash from '@strapi/icons/Trash';
|
|
@@ -28,12 +28,12 @@ const ConfirmDialogDeleteAll = ({ isConfirmButtonLoading, isOpen, onToggleDialog
|
|
|
28
28
|
<DialogBody icon={<ExclamationMarkCircle />}>
|
|
29
29
|
<Stack size={2}>
|
|
30
30
|
<Flex justifyContent="center">
|
|
31
|
-
<
|
|
31
|
+
<Typography id="confirm-description">
|
|
32
32
|
{formatMessage({
|
|
33
33
|
id: getTrad('popUpWarning.bodyMessage.contentType.delete.all'),
|
|
34
34
|
defaultMessage: 'Are you sure you want to delete these entries?',
|
|
35
35
|
})}
|
|
36
|
-
</
|
|
36
|
+
</Typography>
|
|
37
37
|
</Flex>
|
|
38
38
|
<Flex>
|
|
39
39
|
<InjectionZoneList area="contentManager.listView.deleteModalAdditionalInfos" />
|
|
@@ -13,6 +13,7 @@ import { useHistory } from 'react-router-dom';
|
|
|
13
13
|
import { useIntl } from 'react-intl';
|
|
14
14
|
import { usePluginsQueryParams } from '../../../hooks';
|
|
15
15
|
import CellContent from '../CellContent';
|
|
16
|
+
import { getFullName } from '../../../../utils';
|
|
16
17
|
|
|
17
18
|
const TableRows = ({
|
|
18
19
|
canCreate,
|
|
@@ -51,7 +52,7 @@ const TableRows = ({
|
|
|
51
52
|
key={data.id}
|
|
52
53
|
{...onRowClick({
|
|
53
54
|
fn: () => {
|
|
54
|
-
trackUsage('
|
|
55
|
+
trackUsage('willEditEntryFromList');
|
|
55
56
|
push({
|
|
56
57
|
pathname: `${pathname}/${data.id}`,
|
|
57
58
|
state: { from: pathname },
|
|
@@ -69,7 +70,7 @@ const TableRows = ({
|
|
|
69
70
|
id: 'app.component.table.select.one-entry',
|
|
70
71
|
defaultMessage: `Select {target}`,
|
|
71
72
|
},
|
|
72
|
-
{ target:
|
|
73
|
+
{ target: getFullName(data.firstname, data.lastname) }
|
|
73
74
|
)}
|
|
74
75
|
checked={isChecked}
|
|
75
76
|
onChange={() => {
|
|
@@ -141,7 +142,11 @@ const TableRows = ({
|
|
|
141
142
|
{canDelete && (
|
|
142
143
|
<Box paddingLeft={1}>
|
|
143
144
|
<IconButton
|
|
144
|
-
onClick={() =>
|
|
145
|
+
onClick={() => {
|
|
146
|
+
trackUsage('willDeleteEntryFromList');
|
|
147
|
+
|
|
148
|
+
onClickDelete(data.id);
|
|
149
|
+
}}
|
|
145
150
|
label={formatMessage(
|
|
146
151
|
{ id: 'app.component.table.delete', defaultMessage: 'Delete {target}' },
|
|
147
152
|
{ target: itemLineText }
|
|
@@ -81,6 +81,7 @@ const DynamicTable = ({
|
|
|
81
81
|
headers={tableHeaders}
|
|
82
82
|
onConfirmDelete={onConfirmDelete}
|
|
83
83
|
onConfirmDeleteAll={onConfirmDeleteAll}
|
|
84
|
+
onOpenDeleteAllModalTrackedEvent="willBulkDeleteEntries"
|
|
84
85
|
rows={rows}
|
|
85
86
|
withBulkActions
|
|
86
87
|
withMainAction={canDelete && isBulkable}
|
|
@@ -108,7 +109,6 @@ DynamicTable.propTypes = {
|
|
|
108
109
|
contentType: PropTypes.shape({
|
|
109
110
|
attributes: PropTypes.object.isRequired,
|
|
110
111
|
metadatas: PropTypes.object.isRequired,
|
|
111
|
-
info: PropTypes.shape({ label: PropTypes.string.isRequired }).isRequired,
|
|
112
112
|
layouts: PropTypes.shape({
|
|
113
113
|
list: PropTypes.array.isRequired,
|
|
114
114
|
editRelations: PropTypes.array,
|
package/admin/src/content-manager/components/DynamicZone/components/AddComponentButton/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import PlusCircle from '@strapi/icons/PlusCircle';
|
|
|
12
12
|
import { BaseButton } from '@strapi/design-system/BaseButton';
|
|
13
13
|
import { Box } from '@strapi/design-system/Box';
|
|
14
14
|
import { Flex } from '@strapi/design-system/Flex';
|
|
15
|
-
import {
|
|
15
|
+
import { Typography } from '@strapi/design-system/Typography';
|
|
16
16
|
import { getTrad } from '../../../../utils';
|
|
17
17
|
|
|
18
18
|
const StyledAddIcon = styled(PlusCircle)`
|
|
@@ -29,8 +29,12 @@ const StyledAddIcon = styled(PlusCircle)`
|
|
|
29
29
|
|
|
30
30
|
const StyledButton = styled(BaseButton)`
|
|
31
31
|
border-radius: 26px;
|
|
32
|
+
border-color: ${({ theme }) => theme.colors.neutral150};
|
|
32
33
|
background: ${({ theme }) => theme.colors.neutral0};
|
|
33
|
-
padding: ${({ theme }) => theme.spaces[3]};
|
|
34
|
+
padding-top: ${({ theme }) => theme.spaces[3]};
|
|
35
|
+
padding-right: ${({ theme }) => theme.spaces[4]};
|
|
36
|
+
padding-bottom: ${({ theme }) => theme.spaces[3]};
|
|
37
|
+
padding-left: ${({ theme }) => theme.spaces[4]};
|
|
34
38
|
|
|
35
39
|
box-shadow: ${({ theme }) => theme.shadows.filterShadow};
|
|
36
40
|
|
|
@@ -43,7 +47,7 @@ const StyledButton = styled(BaseButton)`
|
|
|
43
47
|
}
|
|
44
48
|
&:hover {
|
|
45
49
|
color: ${({ theme }) => theme.colors.primary600} !important;
|
|
46
|
-
${
|
|
50
|
+
${Typography} {
|
|
47
51
|
color: ${({ theme }) => theme.colors.primary600} !important;
|
|
48
52
|
}
|
|
49
53
|
|
|
@@ -57,7 +61,7 @@ const StyledButton = styled(BaseButton)`
|
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
&:active {
|
|
60
|
-
${
|
|
64
|
+
${Typography} {
|
|
61
65
|
color: ${({ theme }) => theme.colors.primary600};
|
|
62
66
|
}
|
|
63
67
|
${StyledAddIcon} {
|
|
@@ -124,9 +128,13 @@ const AddComponentButton = ({
|
|
|
124
128
|
<BoxFullHeight aria-hidden paddingRight={2}>
|
|
125
129
|
<StyledAddIcon $isOpen={isOpen} $hasError={hasError && !isOpen} />
|
|
126
130
|
</BoxFullHeight>
|
|
127
|
-
<
|
|
131
|
+
<Typography
|
|
132
|
+
variant="pi"
|
|
133
|
+
fontWeight="bold"
|
|
134
|
+
textColor={hasError && !isOpen ? 'danger600' : 'neutral500'}
|
|
135
|
+
>
|
|
128
136
|
{buttonLabel}
|
|
129
|
-
</
|
|
137
|
+
</Typography>
|
|
130
138
|
</Flex>
|
|
131
139
|
</StyledButton>
|
|
132
140
|
</Box>
|