@strapi/admin 4.9.0-alpha.0 → 4.9.0-exp.90df253ba90fd6879eb56a720a1f80d04ff745b8
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/StrapiApp.js +1 -1
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Blocker.js +6 -10
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Overlay.js +2 -3
- package/admin/src/components/GuidedTour/Homepage/components/Step.js +1 -3
- package/admin/src/components/GuidedTour/Homepage/components/Stepper.js +1 -1
- package/admin/src/components/GuidedTour/Homepage/index.js +4 -8
- package/admin/src/components/GuidedTour/Modal/components/Content.js +35 -25
- package/admin/src/components/GuidedTour/Modal/components/Modal.js +7 -11
- package/admin/src/components/GuidedTour/Modal/components/StepNumberWithPadding.js +1 -1
- package/admin/src/components/GuidedTour/Modal/components/Stepper.js +2 -5
- package/admin/src/components/GuidedTour/Stepper/StepLine.js +1 -1
- package/admin/src/components/GuidedTour/Stepper/StepNumber.js +2 -4
- package/admin/src/components/LeftMenu/index.js +5 -10
- package/admin/src/components/Notifications/Notification/index.js +10 -3
- package/admin/src/components/Notifications/index.js +6 -4
- package/admin/src/components/Theme/index.js +1 -1
- package/admin/src/content-manager/components/AttributeFilter/Filters.js +2 -3
- package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +0 -2
- package/admin/src/content-manager/components/ComponentInitializer/index.js +4 -7
- package/admin/src/content-manager/components/DragLayer/RelationDragPreview.js +3 -3
- package/admin/src/content-manager/components/DynamicTable/CellContent/Media/FileWrapper.js +1 -2
- package/admin/src/content-manager/components/DynamicTable/CellContent/Media/index.js +3 -3
- package/admin/src/content-manager/components/DynamicTable/CellContent/MultipleMedias.js +1 -1
- package/admin/src/content-manager/components/DynamicTable/CellContent/RelationMultiple/index.js +14 -11
- package/admin/src/content-manager/components/DynamicTable/CellContent/RelationSingle/index.js +1 -1
- package/admin/src/content-manager/components/DynamicTable/CellContent/RepeatableComponent/index.js +1 -4
- package/admin/src/content-manager/components/DynamicTable/CellContent/SingleComponent/index.js +1 -2
- package/admin/src/content-manager/components/DynamicTable/CellContent/index.js +1 -2
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDelete/index.js +4 -9
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +4 -9
- package/admin/src/content-manager/components/DynamicTable/TableRows/index.js +3 -9
- package/admin/src/content-manager/components/DynamicTable/index.js +1 -2
- package/admin/src/content-manager/components/DynamicZone/components/AddComponentButton.js +2 -5
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCard.js +4 -6
- package/admin/src/content-manager/components/DynamicZone/components/ComponentCategory.js +1 -2
- package/admin/src/content-manager/components/DynamicZone/components/ComponentPicker.js +1 -4
- package/admin/src/content-manager/components/DynamicZone/components/DynamicComponent.js +3 -6
- package/admin/src/content-manager/components/DynamicZone/components/DynamicZoneLabel.js +1 -3
- package/admin/src/content-manager/components/DynamicZone/index.js +3 -3
- package/admin/src/content-manager/components/EditViewDataManagerProvider/index.js +3 -31
- package/admin/src/content-manager/components/EditViewDataManagerProvider/reducer.js +65 -134
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/findAllAndReplace.js +85 -0
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/index.js +1 -2
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/schema.js +7 -1
- package/admin/src/content-manager/components/FieldComponent/Label.js +1 -3
- package/admin/src/content-manager/components/FieldComponent/index.js +4 -7
- package/admin/src/content-manager/components/FieldTypeIcon/index.js +15 -13
- package/admin/src/content-manager/components/Hint/index.js +1 -1
- package/admin/src/content-manager/components/InjectionZoneList/index.js +1 -1
- package/admin/src/content-manager/components/InputUID/endActionStyle.js +1 -3
- package/admin/src/content-manager/components/InputUID/index.js +2 -6
- package/admin/src/content-manager/components/NonRepeatableComponent/index.js +3 -5
- package/admin/src/content-manager/components/RelationInput/RelationInput.js +17 -14
- package/admin/src/content-manager/components/RelationInput/components/Option.js +1 -2
- package/admin/src/content-manager/components/RelationInput/components/Relation.js +9 -4
- package/admin/src/content-manager/components/RelationInput/components/RelationItem.js +4 -4
- package/admin/src/content-manager/components/RelationInput/components/RelationList.js +1 -1
- package/admin/src/content-manager/components/RelationInputDataManager/RelationInputDataManager.js +39 -33
- package/admin/src/content-manager/components/RepeatableComponent/components/Component.js +12 -6
- package/admin/src/content-manager/components/Wysiwyg/Editor.js +2 -2
- package/admin/src/content-manager/components/Wysiwyg/WysiwygFooter.js +2 -4
- package/admin/src/content-manager/components/Wysiwyg/WysiwygNav.js +24 -18
- package/admin/src/content-manager/components/Wysiwyg/WysiwygStyles.js +1 -2
- package/admin/src/content-manager/components/Wysiwyg/index.js +5 -7
- package/admin/src/content-manager/components/Wysiwyg/utils/continueList.js +3 -3
- package/admin/src/content-manager/hooks/useRelation/useRelation.js +2 -2
- package/admin/src/content-manager/pages/App/LeftMenu/index.js +1 -1
- package/admin/src/content-manager/pages/App/index.js +1 -2
- package/admin/src/content-manager/pages/App/useModels.js +1 -1
- package/admin/src/content-manager/pages/App/utils/generateModelsLinks.js +9 -8
- package/admin/src/content-manager/pages/CollectionTypeRecursivePath/components/ErrorFallback.js +1 -1
- package/admin/src/content-manager/pages/EditSettingsView/components/ComponentFieldList.js +2 -5
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFieldButton.js +2 -4
- package/admin/src/content-manager/pages/EditSettingsView/components/DisplayedFields.js +6 -11
- package/admin/src/content-manager/pages/EditSettingsView/components/DynamicZoneList.js +3 -3
- package/admin/src/content-manager/pages/EditSettingsView/components/FieldButtonContent.js +2 -6
- package/admin/src/content-manager/pages/EditSettingsView/components/FormModal.js +5 -5
- package/admin/src/content-manager/pages/EditSettingsView/components/GenericInput.js +1 -3
- package/admin/src/content-manager/pages/EditSettingsView/components/LinkToCTB.js +1 -1
- package/admin/src/content-manager/pages/EditSettingsView/components/ModalForm.js +1 -2
- package/admin/src/content-manager/pages/EditSettingsView/components/RowsLayout.js +1 -1
- package/admin/src/content-manager/pages/EditSettingsView/index.js +17 -13
- package/admin/src/content-manager/pages/EditView/DeleteLink/index.js +2 -2
- package/admin/src/content-manager/pages/EditView/DraftAndPublishBadge/index.js +3 -5
- package/admin/src/content-manager/pages/EditView/GridRow/index.js +1 -1
- package/admin/src/content-manager/pages/EditView/Header/index.js +17 -16
- package/admin/src/content-manager/pages/EditView/Information/index.js +9 -9
- package/admin/src/content-manager/pages/EditView/index.js +10 -15
- package/admin/src/content-manager/pages/ListSettingsView/components/CardPreview.js +4 -8
- package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +4 -9
- package/admin/src/content-manager/pages/ListSettingsView/components/EditFieldForm.js +8 -7
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +14 -10
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +4 -9
- package/admin/src/content-manager/pages/ListSettingsView/index.js +10 -7
- package/admin/src/content-manager/pages/ListView/FieldPicker/index.js +1 -2
- package/admin/src/content-manager/pages/ListView/PaginationFooter/index.js +1 -2
- package/admin/src/content-manager/pages/ListView/index.js +12 -10
- package/admin/src/content-manager/pages/NoContentType/index.js +2 -5
- package/admin/src/content-manager/pages/NoPermissions/index.js +1 -2
- package/admin/src/content-manager/utils/createDefaultForm.js +0 -8
- package/admin/src/hooks/index.js +2 -0
- package/admin/src/hooks/useLicenseLimitNotification/index.js +5 -0
- package/admin/src/hooks/useLicenseLimits/index.js +3 -0
- package/admin/src/hooks/useMenu/reducer.js +1 -3
- package/admin/src/hooks/useRegenerate/index.js +2 -2
- package/admin/src/hooks/useSettingsMenu/utils/defaultGlobalLinks.js +7 -0
- package/admin/src/index.js +0 -1
- package/admin/src/layouts/AppLayout/index.js +1 -3
- package/admin/src/layouts/UnauthenticatedLayout/LocaleToggle/index.js +1 -1
- package/admin/src/layouts/UnauthenticatedLayout/index.js +1 -2
- package/admin/src/pages/Admin/Onboarding/index.js +26 -7
- package/admin/src/pages/App/index.js +1 -1
- package/admin/src/pages/AuthPage/components/FieldActionWrapper/index.js +1 -1
- package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +3 -9
- package/admin/src/pages/AuthPage/components/ForgotPasswordSuccess/index.js +1 -4
- package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +4 -12
- package/admin/src/pages/AuthPage/components/Oops/index.js +1 -4
- package/admin/src/pages/AuthPage/components/Register/index.js +14 -13
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +4 -11
- package/admin/src/pages/HomePage/CloudBox.js +83 -0
- package/admin/src/pages/HomePage/ContentBlocks.js +6 -7
- package/admin/src/pages/HomePage/HomeHeader.js +5 -12
- package/admin/src/pages/HomePage/SocialLinks.js +37 -34
- package/admin/src/pages/HomePage/assets/strapi-cloud-background.png +0 -0
- package/admin/src/pages/HomePage/assets/strapi-cloud-flags.svg +1 -0
- package/admin/src/pages/HomePage/assets/strapi-cloud-icon.svg +1 -0
- package/admin/src/pages/HomePage/index.js +3 -4
- package/admin/src/pages/InstalledPluginsPage/Plugins.js +14 -5
- package/admin/src/pages/InternalErrorPage/index.js +2 -5
- package/admin/src/pages/MarketplacePage/components/EmptyNpmPackageSearch/EmptyNpmPackageGrid.js +1 -2
- package/admin/src/pages/MarketplacePage/components/EmptyNpmPackageSearch/index.js +2 -5
- package/admin/src/pages/MarketplacePage/components/MissingPluginBanner/index.js +2 -3
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/CardButton.js +2 -4
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/InstallPluginButton.js +2 -4
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/PackageStats.js +4 -9
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/index.js +5 -11
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FilterSelect.js +1 -1
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +3 -6
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/index.js +2 -5
- package/admin/src/pages/MarketplacePage/components/NpmPackagesGrid/index.js +1 -1
- package/admin/src/pages/MarketplacePage/components/PageHeader/index.js +3 -3
- package/admin/src/pages/MarketplacePage/components/SortSelect/index.js +1 -2
- package/admin/src/pages/MarketplacePage/index.js +15 -8
- package/admin/src/pages/NotFoundPage/index.js +2 -5
- package/admin/src/pages/ProfilePage/index.js +27 -24
- package/admin/src/pages/SettingsPage/components/Filters/index.js +2 -3
- package/admin/src/pages/SettingsPage/components/SettingsNav/index.js +1 -1
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/EditView/components → components/Tokens}/FormHead/index.js +41 -26
- package/admin/src/pages/SettingsPage/components/Tokens/LifeSpanInput/index.js +97 -0
- package/admin/src/pages/SettingsPage/components/Tokens/Regenerate/index.js +73 -0
- package/admin/src/pages/SettingsPage/components/Tokens/Table/DeleteButton/index.js +52 -0
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/ListView/DynamicTable → components/Tokens/Table}/ReadButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/ListView/DynamicTable → components/Tokens/Table}/UpdateButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/components/Tokens/Table/index.js +145 -0
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/EditView/components/ContentBox → components/Tokens/TokenBox}/index.js +20 -18
- package/admin/src/pages/SettingsPage/components/Tokens/TokenDescription/index.js +51 -0
- package/admin/src/pages/SettingsPage/components/Tokens/TokenName/index.js +46 -0
- package/admin/src/pages/SettingsPage/components/Tokens/TokenTypeSelect/index.js +71 -0
- package/admin/src/pages/SettingsPage/components/Tokens/constants.js +2 -0
- package/admin/src/pages/SettingsPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ActionBoundRoutes/index.js +5 -7
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/BoundRoute/index.js +5 -7
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/CollapsableContentType/CheckBoxWrapper.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/CollapsableContentType/index.js +16 -9
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ContenTypesSection/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +56 -149
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/LoadingView/index.js +2 -4
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Permissions/index.js +3 -5
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Regenerate/index.js +12 -8
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +48 -19
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/utils/schema.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/index.js +18 -20
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +5 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/CustomizationInfos/index.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/index.js +8 -5
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/AddLogoDialog.js +1 -3
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromComputerForm.js +14 -11
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromUrlForm.js +1 -4
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/ImageCardAsset.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/PendingLogoDialog.js +1 -5
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +63 -74
- package/admin/src/pages/SettingsPage/pages/Roles/CreatePage/index.js +266 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/CollapseLabel/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsButton/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/index.js +2 -6
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/index.js +5 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/Collapse/index.js +4 -8
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/ActionRow/index.js +3 -5
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/CarretIcon/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/Header/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/SubActionRow/index.js +3 -7
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/utils/activeStyle.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypes/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/Curve/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/index.js +12 -12
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/Permissions/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/Permissions/utils/formatLayoutForSettingsAndPlugins.js +12 -16
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/Row/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/SubCategory/index.js +4 -12
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RoleForm/index.js +12 -10
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RowLabelWithCheckbox/index.js +1 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +6 -10
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js +1 -5
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/index.js +314 -129
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/FormTransferTokenContainer/index.js +142 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/LoadingView/index.js +48 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +221 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/utils/getDateOfExpiration.js +16 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/utils/index.js +4 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/utils/schema.js +11 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ListView/index.js +194 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ListView/utils/tableHeaders.js +48 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ProtectedCreateView/index.js +14 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ProtectedEditView/index.js +14 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ProtectedListView/index.js +12 -0
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +19 -19
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +24 -0
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js +11 -8
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +17 -12
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +32 -34
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Users/components/SelectRoles/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/EventRow.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +3 -5
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/Combobox.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js +12 -10
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js +10 -16
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +17 -15
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +183 -182
- package/admin/src/pages/SettingsPage/utils/defaultRoutes.js +51 -10
- package/admin/src/pages/UseCasePage/index.js +13 -11
- package/admin/src/permissions/defaultPermissions.js +8 -0
- package/admin/src/translations/ca.json +13 -19
- package/admin/src/translations/de.json +6 -12
- package/admin/src/translations/dk.json +6 -12
- package/admin/src/translations/en.json +220 -190
- package/admin/src/translations/es.json +6 -12
- package/admin/src/translations/eu.json +178 -184
- package/admin/src/translations/fr.json +6 -12
- package/admin/src/translations/gu.json +0 -6
- package/admin/src/translations/he.json +0 -6
- package/admin/src/translations/hi.json +6 -12
- package/admin/src/translations/hu.json +19 -25
- package/admin/src/translations/id.json +0 -6
- package/admin/src/translations/it.json +0 -6
- package/admin/src/translations/ja.json +6 -12
- package/admin/src/translations/ko.json +6 -12
- package/admin/src/translations/ml.json +6 -12
- package/admin/src/translations/nl.json +19 -25
- package/admin/src/translations/no.json +0 -6
- package/admin/src/translations/pl.json +6 -12
- package/admin/src/translations/pt-BR.json +6 -12
- package/admin/src/translations/ru.json +859 -785
- package/admin/src/translations/sa.json +6 -12
- package/admin/src/translations/sk.json +2 -8
- package/admin/src/translations/sv.json +19 -25
- package/admin/src/translations/th.json +0 -6
- package/admin/src/translations/tr.json +19 -25
- package/admin/src/translations/zh-Hans.json +895 -669
- package/admin/src/translations/zh.json +19 -25
- package/build/2637.679b590b.chunk.js +1 -0
- package/build/27d16aefee06412db90a.png +0 -0
- package/build/4049.64715f20.chunk.js +1 -0
- package/build/5563.451e91ee.chunk.js +30 -0
- package/build/7112.2bf13da3.chunk.js +14 -0
- package/build/7259.7744297b.chunk.js +1 -0
- package/build/{5015.8e3fe50b.chunk.js → 8469.853c822b.chunk.js} +1 -6
- package/build/{2223.1bfea951.chunk.js → 8580.b0dcf37c.chunk.js} +66 -177
- package/build/9816.01ee964f.chunk.js +2 -0
- package/build/Admin-authenticatedApp.5aa08bf5.chunk.js +79 -0
- package/build/Admin_InternalErrorPage.4ad8b0df.chunk.js +1 -0
- package/build/Admin_homePage.1411fb7c.chunk.js +68 -0
- package/build/Admin_marketplace.0f6c8ee2.chunk.js +22 -0
- package/build/Admin_pluginsPage.15e3b0fd.chunk.js +1 -0
- package/build/Admin_profilePage.d2a8f9ab.chunk.js +15 -0
- package/build/Admin_settingsPage.489ec4eb.chunk.js +9 -0
- package/build/Upload_ConfigureTheView.34dde278.chunk.js +1 -0
- package/build/admin-app.4b313104.chunk.js +112 -0
- package/build/admin-edit-roles-page.3b196317.chunk.js +216 -0
- package/build/admin-edit-users.af3b0f15.chunk.js +10 -0
- package/build/admin-roles-list.0ad504a7.chunk.js +2 -0
- package/build/admin-users.af8c3123.chunk.js +11 -0
- package/build/{api-tokens-create-page.a31c7fba.chunk.js → api-tokens-create-page.2a6e22bd.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.64fef287.chunk.js → api-tokens-edit-page.fa38cd63.chunk.js} +1 -1
- package/build/api-tokens-list-page.93f24348.chunk.js +16 -0
- package/build/audit-logs-settings-page.7be97e82.chunk.js +1 -0
- package/build/bb3108f7fd1e6179bde1.svg +1 -0
- package/build/bb4d0d527bdfb161bc5a.svg +1 -0
- package/build/ca-json.43e14418.chunk.js +1 -0
- package/build/content-manager.f530e141.chunk.js +1139 -0
- package/build/content-type-builder-list-view.cf38fe2f.chunk.js +191 -0
- package/build/content-type-builder-translation-zh-Hans-json.415577fb.chunk.js +1 -0
- package/build/content-type-builder.6ecd201d.chunk.js +126 -0
- package/build/de-json.fcac7381.chunk.js +1 -0
- package/build/dk-json.e34cad0d.chunk.js +1 -0
- package/build/email-settings-page.4bdbef9a.chunk.js +3 -0
- package/build/en-json.01a88a30.chunk.js +1 -0
- package/build/es-json.715b6fd8.chunk.js +1 -0
- package/build/eu-json.fb17c8f9.chunk.js +1 -0
- package/build/fr-json.f66c3211.chunk.js +1 -0
- package/build/gu-json.4d667d0c.chunk.js +1 -0
- package/build/{he-json.f0de8cdb.chunk.js → he-json.3cf0b48a.chunk.js} +1 -1
- package/build/hi-json.323be97d.chunk.js +1 -0
- package/build/hu-json.fe71e6c8.chunk.js +1 -0
- package/build/i18n-settings-page.2bb5be96.chunk.js +1 -0
- package/build/id-json.41e07c46.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/it-json.bfe27ed8.chunk.js +1 -0
- package/build/ja-json.81b6d1e3.chunk.js +1 -0
- package/build/ko-json.4539f4ba.chunk.js +1 -0
- package/build/main.43b93ff3.js +3843 -0
- package/build/ml-json.8988e374.chunk.js +1 -0
- package/build/nl-json.98345913.chunk.js +1 -0
- package/build/{no-json.9b3cd181.chunk.js → no-json.19a2dbfa.chunk.js} +1 -1
- package/build/pl-json.59a5dab3.chunk.js +1 -0
- package/build/pt-BR-json.9410688b.chunk.js +1 -0
- package/build/ru-json.6a01cea6.chunk.js +1 -0
- package/build/runtime~main.a40b1b57.js +2 -0
- package/build/sa-json.6359a11c.chunk.js +1 -0
- package/build/sk-json.2374f129.chunk.js +1 -0
- package/build/sso-settings-page.5a8588ef.chunk.js +1 -0
- package/build/sv-json.ae6e71ea.chunk.js +1 -0
- package/build/th-json.5f659396.chunk.js +1 -0
- package/build/tr-json.bac5dbd3.chunk.js +1 -0
- package/build/transfer-tokens-create-page.a1f14bb1.chunk.js +1 -0
- package/build/transfer-tokens-edit-page.00ee1c74.chunk.js +1 -0
- package/build/transfer-tokens-list-page.ce37354b.chunk.js +16 -0
- package/build/upload-settings.0200561d.chunk.js +1 -0
- package/build/upload-translation-zh-Hans-json.db163b6b.chunk.js +1 -0
- package/build/upload.c7da1611.chunk.js +13 -0
- package/build/users-advanced-settings-page.c0cae03a.chunk.js +1 -0
- package/build/users-email-settings-page.a3c80419.chunk.js +1 -0
- package/build/users-permissions-translation-zh-Hans-json.6ab714ee.chunk.js +1 -0
- package/build/users-providers-settings-page.5f86e45c.chunk.js +1 -0
- package/build/users-roles-settings-page.b02986df.chunk.js +30 -0
- package/build/webhook-edit-page.a2a2b7bb.chunk.js +23 -0
- package/build/webhook-list-page.029957a4.chunk.js +1 -0
- package/build/zh-Hans-json.4cfef87d.chunk.js +1 -0
- package/build/zh-json.3529f1e5.chunk.js +1 -0
- package/ee/admin/hooks/index.js +2 -0
- package/ee/admin/hooks/useLicenseLimitNotification/index.js +88 -0
- package/ee/admin/hooks/useLicenseLimits/index.js +31 -0
- package/ee/admin/hooks/useSettingsMenu/utils/customAdminLinks.js +12 -12
- package/ee/admin/hooks/useSettingsMenu/utils/customGlobalLinks.js +13 -21
- package/ee/admin/pages/AuthPage/components/Login/index.js +3 -7
- package/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js +1 -4
- package/ee/admin/pages/AuthPage/components/Providers/index.js +3 -10
- package/ee/admin/pages/SettingsPage/pages/ApplicationInfosPage/components/AdminSeatInfo/index.js +88 -0
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/ActionBody.js +2 -7
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/ActionItem.js +1 -2
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/index.js +1 -2
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/PaginationFooter/index.js +1 -2
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/TableRows/index.js +2 -5
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/utils/getDisplayedFilters.js +21 -10
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/utils/tableHeaders.js +1 -1
- package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +25 -11
- package/ee/admin/pages/SettingsPage/pages/Users/ListPage/CreateAction/index.js +52 -0
- package/ee/admin/pages/SettingsPage/utils/customRoutes.js +2 -16
- package/ee/admin/permissions/customPermissions.js +0 -3
- package/ee/server/bootstrap.js +1 -7
- package/ee/server/config/admin-actions.js +0 -10
- package/ee/server/controllers/admin.js +49 -0
- package/ee/server/controllers/index.js +1 -3
- package/ee/server/controllers/role.js +0 -39
- package/ee/server/controllers/user.js +62 -4
- package/ee/server/index.js +0 -1
- package/ee/server/routes/index.js +9 -122
- package/ee/server/services/audit-logs.js +15 -5
- package/ee/server/services/index.js +2 -3
- package/ee/server/services/seat-enforcement.js +114 -0
- package/ee/server/services/user.js +234 -0
- package/ee/server/validation/role.js +28 -20
- package/package.json +18 -17
- package/server/bootstrap.js +2 -1
- package/server/config/admin-actions.js +48 -0
- package/server/content-types/User.js +4 -0
- package/server/content-types/api-token.js +1 -0
- package/server/content-types/index.js +2 -0
- package/server/content-types/transfer-token-permission.js +36 -0
- package/server/content-types/transfer-token.js +66 -0
- package/server/controllers/api-token.js +8 -7
- package/server/controllers/index.js +1 -0
- package/server/controllers/permission.js +2 -4
- package/server/controllers/role.js +70 -23
- package/server/controllers/transfer/index.js +13 -0
- package/server/controllers/transfer/runner.js +28 -0
- package/server/controllers/transfer/token.js +131 -0
- package/server/controllers/user.js +7 -1
- package/server/domain/user.js +3 -0
- package/server/middlewares/data-transfer.js +26 -0
- package/server/middlewares/index.js +1 -0
- package/server/register.js +2 -9
- package/server/routes/index.js +2 -0
- package/server/routes/roles.js +48 -0
- package/server/routes/transfer.js +102 -0
- package/server/services/api-token.js +2 -3
- package/server/services/constants.js +10 -0
- package/server/services/index.js +1 -0
- package/server/services/permission/permissions-manager/index.js +9 -5
- package/server/services/permission/permissions-manager/sanitize.js +101 -4
- package/server/services/permission/queries.js +1 -74
- package/server/services/transfer/index.js +7 -0
- package/server/services/transfer/permission.js +22 -0
- package/server/services/transfer/token.js +426 -0
- package/server/services/transfer/utils.js +38 -0
- package/server/strategies/api-token.js +4 -2
- package/server/strategies/data-transfer.js +109 -0
- package/server/strategies/index.js +1 -0
- package/server/utils/index.d.ts +2 -0
- package/server/validation/api-tokens.js +1 -6
- package/server/validation/permission.js +1 -82
- package/server/validation/role.js +44 -0
- package/server/validation/transfer/index.js +5 -0
- package/server/validation/transfer/token.js +42 -0
- package/webpack.alias.js +0 -1
- package/admin/src/assets/images/hot-air-balloon.png +0 -0
- package/admin/src/assets/images/upgrade-details.png +0 -0
- package/admin/src/components/UpgradePlanModal/index.js +0 -131
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/findLeafByPathAndReplace.js +0 -51
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/recursivelyFindPathsBasedOnCondition.js +0 -79
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormBody/index.js +0 -78
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/DeleteButton/index.js +0 -40
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/index.js +0 -112
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/utils/constants.js +0 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/Collapse/utils/constants.js +0 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/ActionRow/utils/constants.js +0 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/SubActionRow/utils/constants.js +0 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/utils/constants.js +0 -3
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/SubCategory/utils/constants.js +0 -3
- package/build/1412.936ed920.chunk.js +0 -159
- package/build/1683.d59d0f23.chunk.js +0 -268
- package/build/2607.2e48dbf8.chunk.js +0 -66
- package/build/2743.646a1015.chunk.js +0 -45
- package/build/3075.3ee481f1.chunk.js +0 -108
- package/build/3632.2e378cf8.chunk.js +0 -138
- package/build/4318.cd55ce02.chunk.js +0 -30
- package/build/617f9c948fa79e6d73bd.png +0 -0
- package/build/6d21938306785f176538.png +0 -0
- package/build/8633.00ccd382.chunk.js +0 -1
- package/build/9707.b36ed71e.chunk.js +0 -96
- package/build/Admin-authenticatedApp.a73577e1.chunk.js +0 -79
- package/build/Admin_InternalErrorPage.178ddb90.chunk.js +0 -1
- package/build/Admin_homePage.c2f5f27d.chunk.js +0 -77
- package/build/Admin_marketplace.1df49c42.chunk.js +0 -26
- package/build/Admin_pluginsPage.8d824408.chunk.js +0 -6
- package/build/Admin_profilePage.cb667bc5.chunk.js +0 -15
- package/build/Admin_settingsPage.f90615fb.chunk.js +0 -178
- package/build/Upload_ConfigureTheView.d306009d.chunk.js +0 -1
- package/build/admin-app.06f07029.chunk.js +0 -112
- package/build/admin-edit-roles-page.35199b9d.chunk.js +0 -1
- package/build/admin-edit-users.9e48b00d.chunk.js +0 -10
- package/build/admin-users.cf7b4151.chunk.js +0 -11
- package/build/api-tokens-list-page.e600ad3e.chunk.js +0 -16
- package/build/audit-logs-settings-page.d4da4579.chunk.js +0 -1
- package/build/ca-json.4d999055.chunk.js +0 -1
- package/build/content-manager.255c3a59.chunk.js +0 -1139
- package/build/content-type-builder-list-view.8d7a3d68.chunk.js +0 -193
- package/build/content-type-builder-translation-zh-Hans-json.52a30266.chunk.js +0 -1
- package/build/content-type-builder.3c8558a5.chunk.js +0 -126
- package/build/de-json.866f8a28.chunk.js +0 -1
- package/build/dk-json.10f7b1d1.chunk.js +0 -1
- package/build/email-settings-page.b19f2eb2.chunk.js +0 -10
- package/build/en-json.1997583c.chunk.js +0 -1
- package/build/es-json.ea15c957.chunk.js +0 -1
- package/build/eu-json.3bc24d60.chunk.js +0 -1
- package/build/fr-json.e88fbdfd.chunk.js +0 -1
- package/build/gu-json.94f0d242.chunk.js +0 -1
- package/build/hi-json.df3a7be2.chunk.js +0 -1
- package/build/hu-json.680e6eef.chunk.js +0 -1
- package/build/i18n-settings-page.a6b49eac.chunk.js +0 -60
- package/build/id-json.e0d83d41.chunk.js +0 -1
- package/build/it-json.8be59205.chunk.js +0 -1
- package/build/ja-json.97ee41ba.chunk.js +0 -1
- package/build/ko-json.4cbbf4f2.chunk.js +0 -1
- package/build/main.7f308c20.js +0 -4322
- package/build/ml-json.e3747091.chunk.js +0 -1
- package/build/nl-json.371a15ee.chunk.js +0 -1
- package/build/pl-json.e535cbce.chunk.js +0 -1
- package/build/pt-BR-json.e5fafa46.chunk.js +0 -1
- package/build/review-workflows-settings.7b4be1b0.chunk.js +0 -63
- package/build/ru-json.866f0ff1.chunk.js +0 -1
- package/build/runtime~main.bf374148.js +0 -2
- package/build/sa-json.7efeb257.chunk.js +0 -1
- package/build/sk-json.7bbeb0af.chunk.js +0 -1
- package/build/sso-settings-page.ad2143dd.chunk.js +0 -41
- package/build/sv-json.dc40951f.chunk.js +0 -1
- package/build/th-json.f664b96d.chunk.js +0 -1
- package/build/tr-json.b79eae31.chunk.js +0 -1
- package/build/upload-settings.eb1a7908.chunk.js +0 -84
- package/build/upload-translation-zh-Hans-json.3da5cf56.chunk.js +0 -1
- package/build/upload.700e2c84.chunk.js +0 -33
- package/build/users-advanced-settings-page.aae212f2.chunk.js +0 -8
- package/build/users-email-settings-page.8a9b0da1.chunk.js +0 -23
- package/build/users-permissions-translation-zh-Hans-json.0b31c705.chunk.js +0 -1
- package/build/users-providers-settings-page.e6be909d.chunk.js +0 -99
- package/build/users-roles-settings-page.97d06a80.chunk.js +0 -30
- package/build/webhook-edit-page.9eb0f789.chunk.js +0 -75
- package/build/webhook-list-page.66082323.chunk.js +0 -42
- package/build/zh-Hans-json.30a18940.chunk.js +0 -1
- package/build/zh-json.49d84433.chunk.js +0 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/ReviewWorkflows.js +0 -137
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/actions/index.js +0 -42
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/AddStage/AddStage.js +0 -87
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/AddStage/index.js +0 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js +0 -90
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/index.js +0 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stages.js +0 -77
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/index.js +0 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/constants.js +0 -6
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/useReviewWorkflows.js +0 -63
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/index.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/reducer/index.js +0 -102
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/utils/getWorkflowValidationSchema.js +0 -25
- package/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +0 -267
- package/ee/admin/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/utils/constants.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ConditionsSelect/MenuList/utils/constants.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/Collapse/utils/constants.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/ActionRow/utils/constants.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/SubActionRow/utils/constants.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/EditPage/components/GlobalActions/utils/constants.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/EditPage/components/PluginsAndSettings/SubCategory/utils/constants.js +0 -3
- package/ee/admin/pages/SettingsPage/pages/Roles/ListPage/index.js +0 -370
- package/ee/admin/pages/SettingsPage/pages/Roles/ProtectedListPage/index.js +0 -12
- package/ee/server/constants/default-stages.json +0 -14
- package/ee/server/constants/default-workflow.json +0 -1
- package/ee/server/constants/workflows.js +0 -7
- package/ee/server/content-types/index.js +0 -9
- package/ee/server/content-types/workflow/index.js +0 -34
- package/ee/server/content-types/workflow-stage/index.js +0 -36
- package/ee/server/controllers/permission.js +0 -21
- package/ee/server/controllers/workflows/index.js +0 -36
- package/ee/server/controllers/workflows/stages/index.js +0 -57
- package/ee/server/services/review-workflows/review-workflows.js +0 -54
- package/ee/server/services/review-workflows/stages.js +0 -133
- package/ee/server/services/review-workflows/workflows.js +0 -25
- package/ee/server/utils/index.js +0 -8
- package/ee/server/utils/test.js +0 -11
- package/ee/server/validation/permission.js +0 -8
- package/ee/server/validation/review-workflows.js +0 -17
- package/server/domain/role.js +0 -29
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/ListView/DynamicTable → components/Tokens/Table}/DefaultButton/index.js +1 -1
- /package/{ee/admin → admin/src}/pages/SettingsPage/pages/Roles/CreatePage/utils/schema.js +0 -0
- /package/{ee/admin → admin/src}/pages/SettingsPage/pages/Roles/ListPage/reducer.js +0 -0
package/admin/src/StrapiApp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BrowserRouter } from 'react-router-dom';
|
|
3
|
-
import { lightTheme, darkTheme } from '@strapi/design-system
|
|
3
|
+
import { lightTheme, darkTheme } from '@strapi/design-system';
|
|
4
4
|
import merge from 'lodash/merge';
|
|
5
5
|
import pick from 'lodash/pick';
|
|
6
6
|
import isFunction from 'lodash/isFunction';
|
|
@@ -4,13 +4,9 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import styled, { keyframes } from 'styled-components';
|
|
6
6
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
7
|
-
import Clock from '@strapi/icons
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { Box } from '@strapi/design-system/Box';
|
|
11
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
12
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
13
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
7
|
+
import { Clock, Refresh } from '@strapi/icons';
|
|
8
|
+
import { Link } from '@strapi/design-system/v2';
|
|
9
|
+
import { Box, Flex, Typography } from '@strapi/design-system';
|
|
14
10
|
import { Content, IconBox, Overlay } from './Overlay';
|
|
15
11
|
|
|
16
12
|
const overlayContainer = document.createElement('div');
|
|
@@ -44,8 +40,8 @@ const Blocker = ({ displayedIcon, description, title, isOpen }) => {
|
|
|
44
40
|
if (isOpen) {
|
|
45
41
|
return ReactDOM.createPortal(
|
|
46
42
|
<Overlay>
|
|
47
|
-
<Content
|
|
48
|
-
<
|
|
43
|
+
<Content direction="column" alignItems="stretch" gap={6}>
|
|
44
|
+
<Flex direction="column" alignItems="stretch" gap={2}>
|
|
49
45
|
<Flex justifyContent="center">
|
|
50
46
|
<Typography as="h1" variant="alpha">
|
|
51
47
|
{formatMessage(title)}
|
|
@@ -56,7 +52,7 @@ const Blocker = ({ displayedIcon, description, title, isOpen }) => {
|
|
|
56
52
|
{formatMessage(description)}
|
|
57
53
|
</Typography>
|
|
58
54
|
</Flex>
|
|
59
|
-
</
|
|
55
|
+
</Flex>
|
|
60
56
|
<Flex justifyContent="center">
|
|
61
57
|
{displayedIcon === 'reload' && (
|
|
62
58
|
<IconBox padding={6} background="primary100" borderColor="primary200">
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Box } from '@strapi/design-system
|
|
3
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
2
|
+
import { Box, Flex } from '@strapi/design-system';
|
|
4
3
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
5
4
|
|
|
6
5
|
const Overlay = styled(Box)`
|
|
@@ -22,7 +21,7 @@ const Overlay = styled(Box)`
|
|
|
22
21
|
}
|
|
23
22
|
`;
|
|
24
23
|
|
|
25
|
-
const Content = styled(
|
|
24
|
+
const Content = styled(Flex)`
|
|
26
25
|
position: fixed;
|
|
27
26
|
top: 0;
|
|
28
27
|
right: 0;
|
|
@@ -2,9 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
5
|
-
import { Typography } from '@strapi/design-system
|
|
6
|
-
import { Box } from '@strapi/design-system/Box';
|
|
7
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
5
|
+
import { Typography, Box, Flex } from '@strapi/design-system';
|
|
8
6
|
import StepNumber from '../../Stepper/StepNumber';
|
|
9
7
|
import StepLine from '../../Stepper/StepLine';
|
|
10
8
|
import { IS_DONE, IS_ACTIVE, IS_NOT_DONE } from '../../constants';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { Box } from '@strapi/design-system
|
|
3
|
+
import { Box } from '@strapi/design-system';
|
|
4
4
|
import StepHomepage from './Step';
|
|
5
5
|
import { IS_DONE, IS_ACTIVE, IS_NOT_DONE } from '../../constants';
|
|
6
6
|
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useGuidedTour, useTracking, LinkButton } from '@strapi/helper-plugin';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Box } from '@strapi/design-system/Box';
|
|
7
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
8
|
-
import { Button } from '@strapi/design-system/Button';
|
|
9
|
-
import ArrowRight from '@strapi/icons/ArrowRight';
|
|
4
|
+
import { Flex, Box, Typography, Button } from '@strapi/design-system';
|
|
5
|
+
import { ArrowRight } from '@strapi/icons';
|
|
10
6
|
import StepperHomepage from './components/Stepper';
|
|
11
7
|
import layout from '../layout';
|
|
12
8
|
|
|
@@ -51,7 +47,7 @@ const GuidedTourHomepage = () => {
|
|
|
51
47
|
paddingBottom={4}
|
|
52
48
|
background="neutral0"
|
|
53
49
|
>
|
|
54
|
-
<
|
|
50
|
+
<Flex direction="column" alignItems="stretch" gap={6}>
|
|
55
51
|
<Typography variant="beta" as="h2">
|
|
56
52
|
{formatMessage({
|
|
57
53
|
id: 'app.components.GuidedTour.title',
|
|
@@ -59,7 +55,7 @@ const GuidedTourHomepage = () => {
|
|
|
59
55
|
})}
|
|
60
56
|
</Typography>
|
|
61
57
|
<StepperHomepage sections={sections} currentSectionKey={activeSection} />
|
|
62
|
-
</
|
|
58
|
+
</Flex>
|
|
63
59
|
<Flex justifyContent="flex-end">
|
|
64
60
|
<Button variant="tertiary" onClick={handleSkip}>
|
|
65
61
|
{formatMessage({ id: 'app.components.GuidedTour.skip', defaultMessage: 'Skip the tour' })}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import {
|
|
5
|
-
import { Box } from '@strapi/design-system/Box';
|
|
6
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
4
|
+
import { Flex, Box, Typography } from '@strapi/design-system';
|
|
7
5
|
import { useIntl } from 'react-intl';
|
|
8
6
|
|
|
9
7
|
const LiStyled = styled.li`
|
|
@@ -17,36 +15,48 @@ const Content = ({ id, defaultMessage }) => {
|
|
|
17
15
|
const { formatMessage } = useIntl();
|
|
18
16
|
|
|
19
17
|
return (
|
|
20
|
-
<
|
|
18
|
+
<Flex direction="column" alignItems="stretch" gap={4} paddingBottom={6}>
|
|
21
19
|
{formatMessage(
|
|
22
20
|
{ id, defaultMessage },
|
|
23
21
|
{
|
|
24
|
-
documentationLink:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
href="https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest-api.html#api-parameters"
|
|
31
|
-
>
|
|
32
|
-
{children}
|
|
33
|
-
</Typography>
|
|
34
|
-
),
|
|
35
|
-
b: (children) => <Typography fontWeight="semiBold">{children}</Typography>,
|
|
36
|
-
p: (children) => <Typography>{children}</Typography>,
|
|
37
|
-
light: (children) => <Typography textColor="neutral600">{children}</Typography>,
|
|
38
|
-
ul: (children) => (
|
|
39
|
-
<Box paddingLeft={6}>
|
|
40
|
-
<ul>{children}</ul>
|
|
41
|
-
</Box>
|
|
42
|
-
),
|
|
43
|
-
li: (children) => <LiStyled>{children}</LiStyled>,
|
|
22
|
+
documentationLink: DocumentationLink,
|
|
23
|
+
b: Bold,
|
|
24
|
+
p: Paragraph,
|
|
25
|
+
light: Light,
|
|
26
|
+
ul: List,
|
|
27
|
+
li: ListItem,
|
|
44
28
|
}
|
|
45
29
|
)}
|
|
46
|
-
</
|
|
30
|
+
</Flex>
|
|
47
31
|
);
|
|
48
32
|
};
|
|
49
33
|
|
|
34
|
+
const DocumentationLink = (children) => (
|
|
35
|
+
<Typography
|
|
36
|
+
as="a"
|
|
37
|
+
textColor="primary600"
|
|
38
|
+
target="_blank"
|
|
39
|
+
rel="noopener noreferrer"
|
|
40
|
+
href="https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest-api.html#api-parameters"
|
|
41
|
+
>
|
|
42
|
+
{children}
|
|
43
|
+
</Typography>
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
const Bold = (children) => <Typography fontWeight="semiBold">{children}</Typography>;
|
|
47
|
+
|
|
48
|
+
const Paragraph = (children) => <Typography>{children}</Typography>;
|
|
49
|
+
|
|
50
|
+
const Light = (children) => <Typography textColor="neutral600">{children}</Typography>;
|
|
51
|
+
|
|
52
|
+
const List = (children) => (
|
|
53
|
+
<Box paddingLeft={6}>
|
|
54
|
+
<ul>{children}</ul>
|
|
55
|
+
</Box>
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const ListItem = (children) => <LiStyled>{children}</LiStyled>;
|
|
59
|
+
|
|
50
60
|
Content.propTypes = {
|
|
51
61
|
id: PropTypes.string.isRequired,
|
|
52
62
|
defaultMessage: PropTypes.string.isRequired,
|
|
@@ -3,14 +3,8 @@ import styled from 'styled-components';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
6
|
-
import { Portal } from '@strapi/design-system
|
|
7
|
-
import {
|
|
8
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import { Box } from '@strapi/design-system/Box';
|
|
10
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
11
|
-
import { IconButton } from '@strapi/design-system/IconButton';
|
|
12
|
-
import { Button } from '@strapi/design-system/Button';
|
|
13
|
-
import Cross from '@strapi/icons/Cross';
|
|
6
|
+
import { Portal, FocusTrap, Flex, Box, IconButton, Button } from '@strapi/design-system';
|
|
7
|
+
import { Cross } from '@strapi/icons';
|
|
14
8
|
|
|
15
9
|
const ModalWrapper = styled(Flex)`
|
|
16
10
|
position: fixed;
|
|
@@ -27,13 +21,15 @@ const Modal = ({ onClose, onSkip, children, hideSkip }) => {
|
|
|
27
21
|
<Portal>
|
|
28
22
|
<ModalWrapper onClick={onClose} padding={8} justifyContent="center">
|
|
29
23
|
<FocusTrap onEscape={onClose}>
|
|
30
|
-
<
|
|
24
|
+
<Flex
|
|
25
|
+
direction="column"
|
|
26
|
+
alignItems="stretch"
|
|
31
27
|
background="neutral0"
|
|
32
28
|
width={pxToRem(660)}
|
|
33
29
|
shadow="popupShadow"
|
|
34
30
|
hasRadius
|
|
35
31
|
padding={4}
|
|
36
|
-
|
|
32
|
+
gap={8}
|
|
37
33
|
role="dialog"
|
|
38
34
|
aria-modal
|
|
39
35
|
onClick={(e) => e.stopPropagation()}
|
|
@@ -58,7 +54,7 @@ const Modal = ({ onClose, onSkip, children, hideSkip }) => {
|
|
|
58
54
|
</Button>
|
|
59
55
|
</Flex>
|
|
60
56
|
)}
|
|
61
|
-
</
|
|
57
|
+
</Flex>
|
|
62
58
|
</FocusTrap>
|
|
63
59
|
</ModalWrapper>
|
|
64
60
|
</Portal>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { Box } from '@strapi/design-system
|
|
3
|
+
import { Box } from '@strapi/design-system';
|
|
4
4
|
import StepNumber from '../../Stepper/StepNumber';
|
|
5
5
|
|
|
6
6
|
const StepNumberWithPadding = ({ number, last, type }) => (
|
|
@@ -2,11 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { pxToRem, LinkButton } from '@strapi/helper-plugin';
|
|
5
|
-
import { Typography } from '@strapi/design-system
|
|
6
|
-
import {
|
|
7
|
-
import { Box } from '@strapi/design-system/Box';
|
|
8
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import ArrowRight from '@strapi/icons/ArrowRight';
|
|
5
|
+
import { Typography, Button, Box, Flex } from '@strapi/design-system';
|
|
6
|
+
import { ArrowRight } from '@strapi/icons';
|
|
10
7
|
import Content from './Content';
|
|
11
8
|
import StepLine from '../../Stepper/StepLine';
|
|
12
9
|
import StepNumberWithPadding from './StepNumberWithPadding';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
4
|
-
import { Box } from '@strapi/design-system
|
|
4
|
+
import { Box } from '@strapi/design-system';
|
|
5
5
|
import { IS_DONE, IS_ACTIVE, IS_NOT_DONE } from '../constants';
|
|
6
6
|
|
|
7
7
|
const StepLine = ({ type, ...props }) => {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
4
|
-
import { Flex } from '@strapi/design-system
|
|
5
|
-
import {
|
|
6
|
-
import { Icon } from '@strapi/design-system/Icon';
|
|
7
|
-
import Check from '@strapi/icons/Check';
|
|
4
|
+
import { Flex, Icon, Typography } from '@strapi/design-system';
|
|
5
|
+
import { Check } from '@strapi/icons';
|
|
8
6
|
import { IS_DONE, IS_ACTIVE, IS_NOT_DONE } from '../constants';
|
|
9
7
|
|
|
10
8
|
const StepNumber = ({ type, number }) => {
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { NavLink as RouterNavLink, useLocation, useHistory } from 'react-router-dom';
|
|
6
|
-
import { Divider } from '@strapi/design-system
|
|
6
|
+
import { Divider, FocusTrap, Box, Typography, Flex } from '@strapi/design-system';
|
|
7
7
|
import {
|
|
8
8
|
MainNav,
|
|
9
9
|
NavBrand,
|
|
@@ -13,13 +13,8 @@ import {
|
|
|
13
13
|
NavUser,
|
|
14
14
|
NavCondense,
|
|
15
15
|
NavFooter,
|
|
16
|
-
} from '@strapi/design-system/v2
|
|
17
|
-
import {
|
|
18
|
-
import { Box } from '@strapi/design-system/Box';
|
|
19
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
20
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
21
|
-
import Write from '@strapi/icons/Write';
|
|
22
|
-
import Exit from '@strapi/icons/Exit';
|
|
16
|
+
} from '@strapi/design-system/v2';
|
|
17
|
+
import { Write, Exit } from '@strapi/icons';
|
|
23
18
|
import {
|
|
24
19
|
auth,
|
|
25
20
|
usePersistentState,
|
|
@@ -208,7 +203,7 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
|
|
208
203
|
hasRadius
|
|
209
204
|
>
|
|
210
205
|
<FocusTrap onEscape={handleToggleUserLinks}>
|
|
211
|
-
<
|
|
206
|
+
<Flex direction="column" alignItems="stretch" gap={0}>
|
|
212
207
|
<LinkUser tabIndex={0} onClick={handleToggleUserLinks} to="/me">
|
|
213
208
|
<Typography>
|
|
214
209
|
{formatMessage({
|
|
@@ -226,7 +221,7 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
|
|
226
221
|
</Typography>
|
|
227
222
|
<Exit />
|
|
228
223
|
</LinkUser>
|
|
229
|
-
</
|
|
224
|
+
</Flex>
|
|
230
225
|
</FocusTrap>
|
|
231
226
|
</LinkUserWrapper>
|
|
232
227
|
)}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useCallback } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Alert } from '@strapi/design-system
|
|
5
|
-
import { Link } from '@strapi/design-system/v2
|
|
4
|
+
import { Alert } from '@strapi/design-system';
|
|
5
|
+
import { Link } from '@strapi/design-system/v2';
|
|
6
6
|
|
|
7
7
|
const Notification = ({ dispatch, notification }) => {
|
|
8
8
|
const { formatMessage } = useIntl();
|
|
@@ -67,7 +67,14 @@ const Notification = ({ dispatch, notification }) => {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
if (title) {
|
|
70
|
-
alertTitle =
|
|
70
|
+
alertTitle =
|
|
71
|
+
typeof title === 'string'
|
|
72
|
+
? title
|
|
73
|
+
: formattedMessage({
|
|
74
|
+
id: title?.id || title,
|
|
75
|
+
defaultMessage: title?.defaultMessage || title?.id || title,
|
|
76
|
+
values: title?.values,
|
|
77
|
+
});
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NotificationsProvider } from '@strapi/helper-plugin';
|
|
2
2
|
import React, { useReducer } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import {
|
|
4
|
+
import { Flex } from '@strapi/design-system';
|
|
5
5
|
import Notification from './Notification';
|
|
6
6
|
import reducer, { initialState } from './reducer';
|
|
7
7
|
|
|
@@ -17,11 +17,13 @@ const Notifications = ({ children }) => {
|
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<NotificationsProvider toggleNotification={displayNotification}>
|
|
20
|
-
<
|
|
20
|
+
<Flex
|
|
21
21
|
left="50%"
|
|
22
22
|
marginLeft="-250px"
|
|
23
23
|
position="fixed"
|
|
24
|
-
|
|
24
|
+
direction="column"
|
|
25
|
+
alignItems="stretch"
|
|
26
|
+
gap={2}
|
|
25
27
|
top={`${46 / 16}rem`}
|
|
26
28
|
width={`${500 / 16}rem`}
|
|
27
29
|
zIndex={10}
|
|
@@ -31,7 +33,7 @@ const Notifications = ({ children }) => {
|
|
|
31
33
|
<Notification key={notification.id} dispatch={dispatch} notification={notification} />
|
|
32
34
|
);
|
|
33
35
|
})}
|
|
34
|
-
</
|
|
36
|
+
</Flex>
|
|
35
37
|
{children}
|
|
36
38
|
</NotificationsProvider>
|
|
37
39
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ThemeProvider } from '@strapi/design-system
|
|
2
|
+
import { ThemeProvider } from '@strapi/design-system';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useThemeToggle } from '../../hooks';
|
|
5
5
|
import GlobalStyle from '../GlobalStyle';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Box } from '@strapi/design-system
|
|
5
|
-
import {
|
|
6
|
-
import Filter from '@strapi/icons/Filter';
|
|
4
|
+
import { Box, Button } from '@strapi/design-system';
|
|
5
|
+
import { Filter } from '@strapi/icons';
|
|
7
6
|
import { FilterListURLQuery, FilterPopoverURLQuery, useTracking } from '@strapi/helper-plugin';
|
|
8
7
|
|
|
9
8
|
const Filters = ({ displayedFilters }) => {
|
|
@@ -210,8 +210,6 @@ const CollectionTypeFormWrapper = ({ allLayoutData, children, slug, id, origin }
|
|
|
210
210
|
|
|
211
211
|
const onDelete = useCallback(
|
|
212
212
|
async (trackerProperty) => {
|
|
213
|
-
console.log('onDelete');
|
|
214
|
-
|
|
215
213
|
try {
|
|
216
214
|
trackUsageRef.current('willDeleteEntry', trackerProperty);
|
|
217
215
|
|
|
@@ -2,11 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
|
-
import PlusCircle from '@strapi/icons
|
|
6
|
-
import { Box } from '@strapi/design-system
|
|
7
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
8
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
5
|
+
import { PlusCircle } from '@strapi/icons';
|
|
6
|
+
import { Box, Flex, Typography } from '@strapi/design-system';
|
|
10
7
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
11
8
|
import { getTrad } from '../../utils';
|
|
12
9
|
|
|
@@ -39,7 +36,7 @@ const ComponentInitializer = ({ error, isReadOnly, onClick }) => {
|
|
|
39
36
|
paddingBottom={9}
|
|
40
37
|
type="button"
|
|
41
38
|
>
|
|
42
|
-
<
|
|
39
|
+
<Flex direction="column" gap={2}>
|
|
43
40
|
<Flex justifyContent="center" style={{ cursor: isReadOnly ? 'not-allowed' : 'inherit' }}>
|
|
44
41
|
<IconWrapper>
|
|
45
42
|
<PlusCircle />
|
|
@@ -53,7 +50,7 @@ const ComponentInitializer = ({ error, isReadOnly, onClick }) => {
|
|
|
53
50
|
})}
|
|
54
51
|
</Typography>
|
|
55
52
|
</Flex>
|
|
56
|
-
</
|
|
53
|
+
</Flex>
|
|
57
54
|
</Box>
|
|
58
55
|
{error?.id && (
|
|
59
56
|
<Typography textColor="danger600" variant="pi">
|
|
@@ -6,7 +6,7 @@ import { Drag, Cross } from '@strapi/icons';
|
|
|
6
6
|
|
|
7
7
|
import { getTrad } from '../../utils';
|
|
8
8
|
import { PUBLICATION_STATES } from '../RelationInputDataManager/constants';
|
|
9
|
-
import { ChildrenWrapper,
|
|
9
|
+
import { ChildrenWrapper, FlexWrapper } from '../RelationInput/components/RelationItem';
|
|
10
10
|
import { LinkEllipsis, DisconnectButton } from '../RelationInput';
|
|
11
11
|
|
|
12
12
|
export const RelationDragPreview = ({ status, displayedValue, width }) => {
|
|
@@ -39,7 +39,7 @@ export const RelationDragPreview = ({ status, displayedValue, width }) => {
|
|
|
39
39
|
borderColor="neutral200"
|
|
40
40
|
justifyContent="space-between"
|
|
41
41
|
>
|
|
42
|
-
<
|
|
42
|
+
<FlexWrapper gap={1}>
|
|
43
43
|
<IconButton noBorder>
|
|
44
44
|
<Drag />
|
|
45
45
|
</IconButton>
|
|
@@ -59,7 +59,7 @@ export const RelationDragPreview = ({ status, displayedValue, width }) => {
|
|
|
59
59
|
</Status>
|
|
60
60
|
)}
|
|
61
61
|
</ChildrenWrapper>
|
|
62
|
-
</
|
|
62
|
+
</FlexWrapper>
|
|
63
63
|
<Box paddingLeft={4}>
|
|
64
64
|
<DisconnectButton type="button">
|
|
65
65
|
<Icon width="12px" as={Cross} />
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { Flex } from '@strapi/design-system
|
|
5
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
4
|
+
import { Flex, Typography } from '@strapi/design-system';
|
|
6
5
|
|
|
7
6
|
const Wrapper = styled(Flex)`
|
|
8
7
|
position: relative;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
4
|
-
import { Tooltip } from '@strapi/design-system
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Avatar, Tooltip } from '@strapi/design-system';
|
|
5
4
|
import { getFileExtension, prefixFileUrlWithBackendUrl } from '@strapi/helper-plugin';
|
|
5
|
+
|
|
6
6
|
import FileWrapper from './FileWrapper';
|
|
7
7
|
|
|
8
8
|
const Media = ({ url, mime, alternativeText, name, ext, formats }) => {
|
package/admin/src/content-manager/components/DynamicTable/CellContent/RelationMultiple/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
Badge,
|
|
3
|
+
Box,
|
|
4
|
+
Flex,
|
|
5
|
+
Loader,
|
|
6
|
+
MenuItem,
|
|
7
|
+
SimpleMenu,
|
|
8
|
+
Typography,
|
|
9
|
+
useNotifyAT,
|
|
10
|
+
} from '@strapi/design-system';
|
|
11
|
+
import { stopPropagation, useFetchClient } from '@strapi/helper-plugin';
|
|
2
12
|
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
13
|
+
import React, { useMemo, useState } from 'react';
|
|
4
14
|
import { useIntl } from 'react-intl';
|
|
5
|
-
import {
|
|
6
|
-
import { Box } from '@strapi/design-system/Box';
|
|
7
|
-
import { Badge } from '@strapi/design-system/Badge';
|
|
8
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import { SimpleMenu, MenuItem } from '@strapi/design-system/SimpleMenu';
|
|
10
|
-
import { Loader } from '@strapi/design-system/Loader';
|
|
15
|
+
import { useQuery } from 'react-query';
|
|
11
16
|
import styled from 'styled-components';
|
|
12
|
-
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
|
|
13
|
-
import { stopPropagation, useFetchClient } from '@strapi/helper-plugin';
|
|
14
|
-
import CellValue from '../CellValue';
|
|
15
17
|
import { getRequestUrl, getTrad } from '../../../../utils';
|
|
18
|
+
import CellValue from '../CellValue';
|
|
16
19
|
|
|
17
20
|
const TypographyMaxWidth = styled(Typography)`
|
|
18
21
|
max-width: 500px;
|
package/admin/src/content-manager/components/DynamicTable/CellContent/RepeatableComponent/index.js
CHANGED
|
@@ -2,10 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
|
-
import { Badge } from '@strapi/design-system
|
|
6
|
-
import { Box } from '@strapi/design-system/Box';
|
|
7
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
8
|
-
import { SimpleMenu, MenuItem } from '@strapi/design-system/SimpleMenu';
|
|
5
|
+
import { Badge, Box, Typography, SimpleMenu, MenuItem } from '@strapi/design-system';
|
|
9
6
|
import { stopPropagation } from '@strapi/helper-plugin';
|
|
10
7
|
|
|
11
8
|
import CellValue from '../CellValue';
|
package/admin/src/content-manager/components/DynamicTable/CellContent/SingleComponent/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { Tooltip } from '@strapi/design-system
|
|
5
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
4
|
+
import { Tooltip, Typography } from '@strapi/design-system';
|
|
6
5
|
|
|
7
6
|
import CellValue from '../CellValue';
|
|
8
7
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { Typography } from '@strapi/design-system
|
|
5
|
-
import { Tooltip } from '@strapi/design-system/Tooltip';
|
|
4
|
+
import { Typography, Tooltip } from '@strapi/design-system';
|
|
6
5
|
import Media from './Media';
|
|
7
6
|
import MultipleMedias from './MultipleMedias';
|
|
8
7
|
import RelationMultiple from './RelationMultiple';
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Dialog, DialogBody, DialogFooter } from '@strapi/design-system
|
|
5
|
-
import {
|
|
6
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
7
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
8
|
-
import { Button } from '@strapi/design-system/Button';
|
|
9
|
-
import ExclamationMarkCircle from '@strapi/icons/ExclamationMarkCircle';
|
|
10
|
-
import Trash from '@strapi/icons/Trash';
|
|
4
|
+
import { Dialog, DialogBody, DialogFooter, Flex, Typography, Button } from '@strapi/design-system';
|
|
5
|
+
import { ExclamationMarkCircle, Trash } from '@strapi/icons';
|
|
11
6
|
import InjectionZoneList from '../../InjectionZoneList';
|
|
12
7
|
|
|
13
8
|
const ConfirmDialogDelete = ({ isConfirmButtonLoading, isOpen, onToggleDialog, onConfirm }) => {
|
|
@@ -25,7 +20,7 @@ const ConfirmDialogDelete = ({ isConfirmButtonLoading, isOpen, onToggleDialog, o
|
|
|
25
20
|
isOpen={isOpen}
|
|
26
21
|
>
|
|
27
22
|
<DialogBody icon={<ExclamationMarkCircle />}>
|
|
28
|
-
<
|
|
23
|
+
<Flex direction="column" alignItems="stretch" gap={2}>
|
|
29
24
|
<Flex justifyContent="center">
|
|
30
25
|
<Typography id="confirm-description">
|
|
31
26
|
{formatMessage({
|
|
@@ -37,7 +32,7 @@ const ConfirmDialogDelete = ({ isConfirmButtonLoading, isOpen, onToggleDialog, o
|
|
|
37
32
|
<Flex>
|
|
38
33
|
<InjectionZoneList area="contentManager.listView.deleteModalAdditionalInfos" />
|
|
39
34
|
</Flex>
|
|
40
|
-
</
|
|
35
|
+
</Flex>
|
|
41
36
|
</DialogBody>
|
|
42
37
|
<DialogFooter
|
|
43
38
|
startAction={
|