@strapi/admin 4.7.0-beta.0 → 4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d
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 +3 -7
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Overlay.js +1 -2
- 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 +2 -6
- package/admin/src/components/GuidedTour/Modal/components/Content.js +1 -3
- package/admin/src/components/GuidedTour/Modal/components/Modal.js +2 -8
- 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 +3 -8
- package/admin/src/components/Notifications/Notification/index.js +2 -2
- package/admin/src/components/Notifications/index.js +1 -1
- package/admin/src/components/Theme/index.js +1 -1
- package/admin/src/components/UpgradePlanModal/index.js +3 -10
- package/admin/src/content-manager/components/AttributeFilter/Filters.js +2 -3
- package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +4 -14
- package/admin/src/content-manager/components/ComponentInitializer/index.js +2 -5
- 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 +15 -12
- 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 +10 -7
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +10 -7
- 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 +1 -3
- 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/DynamicZoneLabel.js +1 -3
- package/admin/src/content-manager/components/EditViewDataManagerProvider/reducer.js +39 -9
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/cleanData.js +9 -15
- package/admin/src/content-manager/components/FieldComponent/Label.js +1 -3
- package/admin/src/content-manager/components/FieldComponent/index.js +2 -5
- 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 +1 -3
- package/admin/src/content-manager/components/RelationInput/RelationInput.js +16 -12
- package/admin/src/content-manager/components/RelationInput/components/Option.js +1 -2
- package/admin/src/content-manager/components/RelationInput/components/Relation.js +1 -2
- package/admin/src/content-manager/components/RelationInput/components/RelationList.js +1 -1
- package/admin/src/content-manager/components/SingleTypeFormWrapper/index.js +4 -12
- 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 +1 -3
- 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 +2 -7
- 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 +15 -11
- package/admin/src/content-manager/pages/EditView/DeleteLink/index.js +8 -10
- 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 +12 -10
- package/admin/src/content-manager/pages/EditView/index.js +2 -7
- package/admin/src/content-manager/pages/ListSettingsView/components/CardPreview.js +2 -6
- package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +2 -7
- package/admin/src/content-manager/pages/ListSettingsView/components/EditFieldForm.js +8 -7
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +10 -6
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +10 -7
- 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 +18 -21
- 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/hooks/useMenu/reducer.js +1 -3
- 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 +15 -2
- 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 +1 -7
- package/admin/src/pages/AuthPage/components/ForgotPasswordSuccess/index.js +1 -4
- package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +11 -10
- package/admin/src/pages/AuthPage/components/Oops/index.js +1 -4
- package/admin/src/pages/AuthPage/components/Register/index.js +13 -11
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +2 -9
- package/admin/src/pages/HomePage/CloudBox.js +83 -0
- package/admin/src/pages/HomePage/ContentBlocks.js +4 -5
- package/admin/src/pages/HomePage/HomeHeader.js +3 -6
- package/admin/src/pages/HomePage/SocialLinks.js +33 -30
- 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 +1 -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 +2 -7
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/index.js +3 -9
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FilterSelect.js +1 -1
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +1 -4
- 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 +17 -14
- package/admin/src/pages/SettingsPage/components/Filters/index.js +2 -3
- package/admin/src/pages/SettingsPage/components/SettingsNav/index.js +16 -3
- package/admin/src/pages/SettingsPage/components/Tokens/FormHead/index.js +2 -5
- package/admin/src/pages/SettingsPage/components/Tokens/FormiTokenContainer/LifeSpanInput.js +1 -2
- package/admin/src/pages/SettingsPage/components/Tokens/LifeSpanInput/index.js +1 -2
- package/admin/src/pages/SettingsPage/components/Tokens/Regenerate/index.js +2 -2
- package/admin/src/pages/SettingsPage/components/Tokens/Table/DeleteButton/index.js +22 -10
- package/admin/src/pages/SettingsPage/components/Tokens/Table/ReadButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/components/Tokens/Table/UpdateButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/components/Tokens/Table/index.js +15 -5
- package/admin/src/pages/SettingsPage/components/Tokens/TokenBox/index.js +8 -6
- package/admin/src/pages/SettingsPage/components/Tokens/TokenDescription/index.js +1 -1
- package/admin/src/pages/SettingsPage/components/Tokens/TokenName/index.js +1 -1
- package/admin/src/pages/SettingsPage/components/Tokens/TokenTypeSelect/index.js +1 -1
- 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 +1 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/BoundRoute/index.js +1 -3
- 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 +13 -8
- 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 +1 -4
- 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 +1 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Regenerate/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +12 -6
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/index.js +13 -7
- 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 +13 -9
- 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 +56 -70
- 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 +1 -4
- 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 +2 -5
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/CollapsePropertyMatrix/ActionRow/index.js +1 -2
- 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 +1 -4
- 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 +1 -4
- 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 +1 -5
- 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 +11 -8
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RowLabelWithCheckbox/index.js +1 -4
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +2 -6
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js +1 -5
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/index.js +16 -10
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/FormTransferTokenContainer/index.js +1 -5
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/LoadingView/index.js +2 -4
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +23 -5
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ListView/index.js +16 -4
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +12 -9
- 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 +9 -7
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +9 -5
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/MagicLinkWrapper.js +3 -20
- 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 +1 -3
- 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 +11 -8
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js +2 -8
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +11 -9
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +26 -18
- package/admin/src/pages/UseCasePage/index.js +12 -9
- package/admin/src/permissions/defaultPermissions.js +2 -15
- package/admin/src/translations/ar.json +4 -4
- package/admin/src/translations/ca.json +4 -4
- package/admin/src/translations/cs.json +4 -4
- package/admin/src/translations/de.json +4 -4
- package/admin/src/translations/dk.json +4 -4
- package/admin/src/translations/en.json +7 -4
- package/admin/src/translations/es.json +4 -4
- package/admin/src/translations/eu.json +4 -4
- package/admin/src/translations/fr.json +4 -4
- package/admin/src/translations/gu.json +4 -4
- package/admin/src/translations/he.json +4 -4
- package/admin/src/translations/hi.json +4 -4
- package/admin/src/translations/hu.json +4 -4
- package/admin/src/translations/id.json +4 -4
- package/admin/src/translations/it.json +4 -4
- package/admin/src/translations/ja.json +4 -4
- package/admin/src/translations/ko.json +4 -4
- package/admin/src/translations/ml.json +4 -4
- package/admin/src/translations/ms.json +4 -4
- package/admin/src/translations/nl.json +4 -4
- package/admin/src/translations/no.json +4 -4
- package/admin/src/translations/pl.json +4 -4
- package/admin/src/translations/pt-BR.json +4 -4
- package/admin/src/translations/pt.json +4 -4
- package/admin/src/translations/ru.json +785 -789
- package/admin/src/translations/sa.json +4 -4
- package/admin/src/translations/sk.json +4 -4
- package/admin/src/translations/sv.json +4 -4
- package/admin/src/translations/th.json +4 -4
- package/admin/src/translations/tr.json +4 -4
- package/admin/src/translations/uk.json +4 -4
- package/admin/src/translations/vi.json +4 -4
- package/admin/src/translations/zh-Hans.json +4 -4
- package/admin/src/translations/zh.json +4 -4
- package/build/2637.679b590b.chunk.js +1 -0
- package/build/27d16aefee06412db90a.png +0 -0
- package/build/{7407.883fb1f5.chunk.js → 4049.16583eee.chunk.js} +1 -1
- package/build/4649.b7e84a29.chunk.js +30 -0
- package/build/4849.7abafe52.chunk.js +98 -0
- package/build/6487.83e219bf.chunk.js +14 -0
- package/build/7259.3f04094f.chunk.js +1 -0
- package/build/{5015.8e3fe50b.chunk.js → 8469.853c822b.chunk.js} +1 -6
- package/build/9816.01ee964f.chunk.js +2 -0
- package/build/Admin-authenticatedApp.49265c1c.chunk.js +79 -0
- package/build/Admin_InternalErrorPage.4ad8b0df.chunk.js +1 -0
- package/build/Admin_homePage.1f10437f.chunk.js +78 -0
- package/build/Admin_marketplace.a8ea585f.chunk.js +22 -0
- package/build/Admin_pluginsPage.15e3b0fd.chunk.js +1 -0
- package/build/Admin_profilePage.b27e40f6.chunk.js +15 -0
- package/build/Admin_settingsPage.5a329b58.chunk.js +178 -0
- package/build/Upload_ConfigureTheView.34dde278.chunk.js +1 -0
- package/build/admin-app.df9adf93.chunk.js +112 -0
- package/build/admin-edit-roles-page.fd041d89.chunk.js +1 -0
- package/build/admin-edit-users.08a60ea2.chunk.js +10 -0
- package/build/admin-users.74f5629d.chunk.js +11 -0
- package/build/{api-tokens-create-page.0db3aec1.chunk.js → api-tokens-create-page.4328b852.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.671e0e26.chunk.js → api-tokens-edit-page.bce5050f.chunk.js} +1 -1
- package/build/api-tokens-list-page.149903c8.chunk.js +16 -0
- package/build/ar-json.39e54aba.chunk.js +1 -0
- package/build/audit-logs-settings-page.bc1784fe.chunk.js +1 -0
- package/build/bb3108f7fd1e6179bde1.svg +1 -0
- package/build/bb4d0d527bdfb161bc5a.svg +1 -0
- package/build/{ca-json.f6a0f472.chunk.js → ca-json.4d999055.chunk.js} +1 -1
- package/build/content-manager.6ed87531.chunk.js +1139 -0
- package/build/content-type-builder-list-view.c2f917b6.chunk.js +191 -0
- package/build/content-type-builder.b7fb1e65.chunk.js +126 -0
- package/build/cs-json.4b44411c.chunk.js +1 -0
- package/build/{de-json.30e1f35b.chunk.js → de-json.866f8a28.chunk.js} +1 -1
- package/build/{dk-json.e6d9ffa4.chunk.js → dk-json.10f7b1d1.chunk.js} +1 -1
- package/build/email-settings-page.884cfb8b.chunk.js +3 -0
- package/build/en-json.8e5451b1.chunk.js +1 -0
- package/build/es-json.ea15c957.chunk.js +1 -0
- package/build/{eu-json.fceecd8b.chunk.js → eu-json.3bc24d60.chunk.js} +1 -1
- package/build/{fr-json.78545ef8.chunk.js → fr-json.e88fbdfd.chunk.js} +1 -1
- package/build/{gu-json.676518f2.chunk.js → gu-json.94f0d242.chunk.js} +1 -1
- package/build/{he-json.ad22e8cc.chunk.js → he-json.f0de8cdb.chunk.js} +1 -1
- package/build/{hi-json.19b51c09.chunk.js → hi-json.df3a7be2.chunk.js} +1 -1
- package/build/{hu-json.f947088f.chunk.js → hu-json.680e6eef.chunk.js} +1 -1
- package/build/i18n-settings-page.c7bc29fc.chunk.js +1 -0
- package/build/{id-json.504daa84.chunk.js → id-json.e0d83d41.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/{it-json.2fd90f4d.chunk.js → it-json.8be59205.chunk.js} +1 -1
- package/build/{ja-json.c9f12d0b.chunk.js → ja-json.97ee41ba.chunk.js} +1 -1
- package/build/{ko-json.ef463065.chunk.js → ko-json.4cbbf4f2.chunk.js} +1 -1
- package/build/main.8009bfe8.js +3930 -0
- package/build/{ml-json.490f666c.chunk.js → ml-json.e3747091.chunk.js} +1 -1
- package/build/ms-json.0eddffd9.chunk.js +1 -0
- package/build/{nl-json.c416295a.chunk.js → nl-json.371a15ee.chunk.js} +1 -1
- package/build/{no-json.1a2258ba.chunk.js → no-json.9b3cd181.chunk.js} +1 -1
- package/build/{pl-json.8cf0c871.chunk.js → pl-json.e535cbce.chunk.js} +1 -1
- package/build/{pt-BR-json.51fab8d0.chunk.js → pt-BR-json.e5fafa46.chunk.js} +1 -1
- package/build/pt-json.ee554a41.chunk.js +1 -0
- package/build/{ru-json.aa5cd123.chunk.js → ru-json.866f0ff1.chunk.js} +1 -1
- package/build/{runtime~main.84941a97.js → runtime~main.86cd21d5.js} +2 -2
- package/build/{sa-json.f3fa5407.chunk.js → sa-json.7efeb257.chunk.js} +1 -1
- package/build/{sk-json.9ec60d9f.chunk.js → sk-json.7bbeb0af.chunk.js} +1 -1
- package/build/sso-settings-page.82d84043.chunk.js +1 -0
- package/build/{sv-json.c6b0c237.chunk.js → sv-json.dc40951f.chunk.js} +1 -1
- package/build/{th-json.6e68155c.chunk.js → th-json.f664b96d.chunk.js} +1 -1
- package/build/{tr-json.9f41dc08.chunk.js → tr-json.b79eae31.chunk.js} +1 -1
- package/build/{transfer-tokens-create-page.16e23791.chunk.js → transfer-tokens-create-page.a1f14bb1.chunk.js} +1 -1
- package/build/{transfer-tokens-edit-page.3886c973.chunk.js → transfer-tokens-edit-page.00ee1c74.chunk.js} +1 -1
- package/build/transfer-tokens-list-page.1e15926d.chunk.js +16 -0
- package/build/uk-json.b7e38370.chunk.js +1 -0
- package/build/upload-settings.c18b010f.chunk.js +1 -0
- package/build/upload.0876ab69.chunk.js +13 -0
- package/build/users-advanced-settings-page.677e1973.chunk.js +1 -0
- package/build/users-email-settings-page.a3c80419.chunk.js +1 -0
- package/build/users-providers-settings-page.87a9c77d.chunk.js +1 -0
- package/build/users-roles-settings-page.79c19845.chunk.js +30 -0
- package/build/vi-json.ee4c5537.chunk.js +1 -0
- package/build/webhook-edit-page.cfbdd3fd.chunk.js +23 -0
- package/build/webhook-list-page.3daa4fe2.chunk.js +1 -0
- package/build/{zh-Hans-json.9c0eac99.chunk.js → zh-Hans-json.30a18940.chunk.js} +1 -1
- package/build/{zh-json.f88f563d.chunk.js → zh-json.49d84433.chunk.js} +1 -1
- package/ee/admin/pages/AuthPage/components/Login/index.js +1 -5
- package/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js +1 -4
- package/ee/admin/pages/AuthPage/components/Providers/index.js +1 -8
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/ActionBody.js +1 -6
- 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/Roles/CreatePage/index.js +15 -11
- package/ee/admin/pages/SettingsPage/pages/Roles/ListPage/index.js +16 -10
- package/ee/admin/pages/SettingsPage/pages/SingleSignOn/index.js +15 -9
- package/ee/admin/permissions/customPermissions.js +4 -0
- package/package.json +13 -13
- package/server/config/admin-actions.js +0 -16
- package/server/controllers/admin.js +0 -55
- package/server/routes/admin.js +0 -28
- package/webpack.alias.js +0 -1
- package/webpack.config.js +0 -3
- package/build/1412.936ed920.chunk.js +0 -159
- package/build/1683.c8aa7b7c.chunk.js +0 -268
- package/build/2607.2e48dbf8.chunk.js +0 -66
- package/build/2743.6d1632f9.chunk.js +0 -45
- package/build/3075.dc3894fe.chunk.js +0 -108
- package/build/3632.0317b618.chunk.js +0 -138
- package/build/4649.15cc0afe.chunk.js +0 -30
- package/build/4855.bd092921.chunk.js +0 -209
- package/build/7259.aa68d808.chunk.js +0 -1
- package/build/9707.7290fd92.chunk.js +0 -96
- package/build/Admin-authenticatedApp.f29f6021.chunk.js +0 -79
- package/build/Admin_InternalErrorPage.157152a8.chunk.js +0 -1
- package/build/Admin_homePage.b1730882.chunk.js +0 -77
- package/build/Admin_marketplace.ea0316c2.chunk.js +0 -26
- package/build/Admin_pluginsPage.5c24f963.chunk.js +0 -6
- package/build/Admin_profilePage.59af1978.chunk.js +0 -15
- package/build/Admin_settingsPage.178dc6e3.chunk.js +0 -178
- package/build/Upload_ConfigureTheView.3f2b6e6a.chunk.js +0 -1
- package/build/admin-app.77a50e1f.chunk.js +0 -112
- package/build/admin-edit-roles-page.446b69dc.chunk.js +0 -1
- package/build/admin-edit-users.2ed69bfd.chunk.js +0 -10
- package/build/admin-users.fc003b10.chunk.js +0 -11
- package/build/api-tokens-list-page.7387102c.chunk.js +0 -16
- package/build/ar-json.932794f7.chunk.js +0 -1
- package/build/audit-logs-settings-page.c3dce30d.chunk.js +0 -1
- package/build/content-manager.42b24d46.chunk.js +0 -1139
- package/build/content-type-builder-list-view.79e84b36.chunk.js +0 -193
- package/build/content-type-builder.855db321.chunk.js +0 -126
- package/build/cs-json.79879fb6.chunk.js +0 -1
- package/build/email-settings-page.d1fcc7a3.chunk.js +0 -10
- package/build/en-json.b0748970.chunk.js +0 -1
- package/build/es-json.e275481d.chunk.js +0 -1
- package/build/i18n-settings-page.b8d8753e.chunk.js +0 -60
- package/build/main.1022ed01.js +0 -4393
- package/build/ms-json.db87d8d3.chunk.js +0 -1
- package/build/pt-json.62927d1e.chunk.js +0 -1
- package/build/sso-settings-page.b85ad080.chunk.js +0 -41
- package/build/transfer-tokens-list-page.e8010a89.chunk.js +0 -16
- package/build/uk-json.b2fcd567.chunk.js +0 -1
- package/build/upload-settings.ef64bbf9.chunk.js +0 -84
- package/build/upload.c5730dfa.chunk.js +0 -33
- package/build/users-advanced-settings-page.fce9908e.chunk.js +0 -8
- package/build/users-email-settings-page.343d0ad2.chunk.js +0 -23
- package/build/users-providers-settings-page.e5a9a3f1.chunk.js +0 -99
- package/build/users-roles-settings-page.66312f31.chunk.js +0 -30
- package/build/vi-json.f08d7d03.chunk.js +0 -1
- package/build/webhook-edit-page.73e51e64.chunk.js +0 -75
- package/build/webhook-list-page.1134f130.chunk.js +0 -42
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NavLink } from 'react-router-dom';
|
|
2
|
+
import { NavLink, useLocation } from 'react-router-dom';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import { useTracking } from '@strapi/helper-plugin';
|
|
5
6
|
import {
|
|
6
7
|
SubNav,
|
|
7
8
|
SubNavHeader,
|
|
8
9
|
SubNavSection,
|
|
9
10
|
SubNavSections,
|
|
10
11
|
SubNavLink,
|
|
11
|
-
} from '@strapi/design-system/v2
|
|
12
|
+
} from '@strapi/design-system/v2';
|
|
12
13
|
import { getSectionsToDisplay } from '../../utils';
|
|
13
14
|
|
|
14
15
|
const SettingsNav = ({ menu }) => {
|
|
15
16
|
const { formatMessage } = useIntl();
|
|
17
|
+
const { trackUsage } = useTracking();
|
|
18
|
+
const { pathname } = useLocation();
|
|
16
19
|
|
|
17
20
|
const filteredMenu = getSectionsToDisplay(menu);
|
|
18
21
|
|
|
@@ -35,6 +38,10 @@ const SettingsNav = ({ menu }) => {
|
|
|
35
38
|
defaultMessage: 'Settings',
|
|
36
39
|
});
|
|
37
40
|
|
|
41
|
+
const handleClickOnLink = (destination = null) => {
|
|
42
|
+
trackUsage('willNavigate', { from: pathname, to: destination });
|
|
43
|
+
};
|
|
44
|
+
|
|
38
45
|
return (
|
|
39
46
|
<SubNav ariaLabel={label}>
|
|
40
47
|
<SubNavHeader label={label} />
|
|
@@ -42,7 +49,13 @@ const SettingsNav = ({ menu }) => {
|
|
|
42
49
|
{sections.map((section) => (
|
|
43
50
|
<SubNavSection key={section.id} label={formatMessage(section.intlLabel)}>
|
|
44
51
|
{section.links.map((link) => (
|
|
45
|
-
<SubNavLink
|
|
52
|
+
<SubNavLink
|
|
53
|
+
as={NavLink}
|
|
54
|
+
withBullet={link.hasNotification}
|
|
55
|
+
to={link.to}
|
|
56
|
+
onClick={() => handleClickOnLink(link.to)}
|
|
57
|
+
key={link.id}
|
|
58
|
+
>
|
|
46
59
|
{formatMessage(link.intlLabel)}
|
|
47
60
|
</SubNavLink>
|
|
48
61
|
))}
|
|
@@ -2,11 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Link } from '@strapi/helper-plugin';
|
|
5
|
-
import ArrowLeft from '@strapi/icons
|
|
6
|
-
import
|
|
7
|
-
import { Button } from '@strapi/design-system/Button';
|
|
8
|
-
import { HeaderLayout } from '@strapi/design-system/Layout';
|
|
9
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
5
|
+
import { ArrowLeft, Check } from '@strapi/icons';
|
|
6
|
+
import { Button, HeaderLayout, Stack } from '@strapi/design-system';
|
|
10
7
|
import Regenerate from '../Regenerate';
|
|
11
8
|
|
|
12
9
|
const FormHead = ({
|
|
@@ -2,8 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { usePersistentState } from '@strapi/helper-plugin';
|
|
5
|
-
import { Select, Option } from '@strapi/design-system
|
|
6
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
5
|
+
import { Select, Option, Typography } from '@strapi/design-system';
|
|
7
6
|
import { getDateOfExpiration } from '../../../pages/ApiTokens/EditView/utils';
|
|
8
7
|
|
|
9
8
|
const LifeSpanInput = ({ token, errors, values, onChange, disabled }) => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Select, Option } from '@strapi/design-system
|
|
5
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
4
|
+
import { Select, Option, Typography } from '@strapi/design-system';
|
|
6
5
|
import { getDateOfExpiration } from '../../../pages/ApiTokens/EditView/utils';
|
|
7
6
|
|
|
8
7
|
const LifeSpanInput = ({ token, errors, values, onChange, isCreating }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Button } from '@strapi/design-system
|
|
5
|
-
import Refresh from '@strapi/icons
|
|
4
|
+
import { Button } from '@strapi/design-system';
|
|
5
|
+
import { Refresh } from '@strapi/icons';
|
|
6
6
|
import { ConfirmDialog } from '@strapi/helper-plugin';
|
|
7
7
|
import { useRegenerate } from '../../../../../hooks';
|
|
8
8
|
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Trash from '@strapi/icons
|
|
3
|
-
import { IconButton } from '@strapi/design-system
|
|
4
|
-
import {
|
|
5
|
-
import { stopPropagation, useTracking } from '@strapi/helper-plugin';
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Trash } from '@strapi/icons';
|
|
3
|
+
import { IconButton, Box } from '@strapi/design-system';
|
|
4
|
+
import { useTracking, ConfirmDialog } from '@strapi/helper-plugin';
|
|
6
5
|
import { useIntl } from 'react-intl';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
|
|
9
|
-
const DeleteButton = ({ tokenName, onClickDelete }) => {
|
|
8
|
+
const DeleteButton = ({ tokenName, onClickDelete, tokenType }) => {
|
|
10
9
|
const { formatMessage } = useIntl();
|
|
11
|
-
const { trackUsage } = useTracking();
|
|
10
|
+
const { trackUsage } = useTracking();
|
|
11
|
+
const [showConfirmDialog, setShowConfirmDialog] = useState(false);
|
|
12
|
+
const handleClickDelete = () => {
|
|
13
|
+
setShowConfirmDialog(false);
|
|
14
|
+
trackUsage('willDeleteToken', {
|
|
15
|
+
tokenType,
|
|
16
|
+
});
|
|
17
|
+
onClickDelete();
|
|
18
|
+
};
|
|
12
19
|
|
|
13
20
|
return (
|
|
14
|
-
<Box paddingLeft={1} {
|
|
21
|
+
<Box paddingLeft={1} onClick={(e) => e.stopPropagation()}>
|
|
15
22
|
<IconButton
|
|
16
23
|
onClick={() => {
|
|
17
|
-
|
|
18
|
-
onClickDelete();
|
|
24
|
+
setShowConfirmDialog(true);
|
|
19
25
|
}}
|
|
20
26
|
label={formatMessage(
|
|
21
27
|
{
|
|
@@ -28,6 +34,11 @@ const DeleteButton = ({ tokenName, onClickDelete }) => {
|
|
|
28
34
|
noBorder
|
|
29
35
|
icon={<Trash />}
|
|
30
36
|
/>
|
|
37
|
+
<ConfirmDialog
|
|
38
|
+
onToggleDialog={() => setShowConfirmDialog(false)}
|
|
39
|
+
onConfirm={handleClickDelete}
|
|
40
|
+
isOpen={showConfirmDialog}
|
|
41
|
+
/>
|
|
31
42
|
</Box>
|
|
32
43
|
);
|
|
33
44
|
};
|
|
@@ -35,6 +46,7 @@ const DeleteButton = ({ tokenName, onClickDelete }) => {
|
|
|
35
46
|
DeleteButton.propTypes = {
|
|
36
47
|
tokenName: PropTypes.string.isRequired,
|
|
37
48
|
onClickDelete: PropTypes.func.isRequired,
|
|
49
|
+
tokenType: PropTypes.string.isRequired,
|
|
38
50
|
};
|
|
39
51
|
|
|
40
52
|
export default DeleteButton;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useHistory } from 'react-router-dom';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { Typography } from '@strapi/design-system
|
|
5
|
-
import { Tbody, Tr, Td } from '@strapi/design-system/Table';
|
|
6
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
4
|
+
import { Typography, Flex, Tbody, Tr, Td } from '@strapi/design-system';
|
|
7
5
|
import {
|
|
8
6
|
RelativeTime,
|
|
9
7
|
onRowClick,
|
|
@@ -16,7 +14,15 @@ import DeleteButton from './DeleteButton';
|
|
|
16
14
|
import UpdateButton from './UpdateButton';
|
|
17
15
|
import ReadButton from './ReadButton';
|
|
18
16
|
|
|
19
|
-
const Table = ({
|
|
17
|
+
const Table = ({
|
|
18
|
+
permissions,
|
|
19
|
+
headers,
|
|
20
|
+
contentType,
|
|
21
|
+
isLoading,
|
|
22
|
+
tokens,
|
|
23
|
+
onConfirmDelete,
|
|
24
|
+
tokenType,
|
|
25
|
+
}) => {
|
|
20
26
|
const { canDelete, canUpdate, canRead } = permissions;
|
|
21
27
|
const withBulkActions = canDelete || canUpdate || canRead;
|
|
22
28
|
const [{ query }] = useQueryParams();
|
|
@@ -49,7 +55,9 @@ const Table = ({ permissions, headers, contentType, isLoading, tokens, onConfirm
|
|
|
49
55
|
key={token.id}
|
|
50
56
|
{...onRowClick({
|
|
51
57
|
fn() {
|
|
52
|
-
trackUsage('willEditTokenFromList'
|
|
58
|
+
trackUsage('willEditTokenFromList', {
|
|
59
|
+
tokenType,
|
|
60
|
+
});
|
|
53
61
|
push(`${pathname}/${token.id}`);
|
|
54
62
|
},
|
|
55
63
|
condition: canUpdate,
|
|
@@ -89,6 +97,7 @@ const Table = ({ permissions, headers, contentType, isLoading, tokens, onConfirm
|
|
|
89
97
|
<DeleteButton
|
|
90
98
|
tokenName={token.name}
|
|
91
99
|
onClickDelete={() => onConfirmDelete(token.id)}
|
|
100
|
+
tokenType={tokenType}
|
|
92
101
|
/>
|
|
93
102
|
)}
|
|
94
103
|
</Flex>
|
|
@@ -123,6 +132,7 @@ Table.propTypes = {
|
|
|
123
132
|
contentType: PropTypes.string.isRequired,
|
|
124
133
|
isLoading: PropTypes.bool,
|
|
125
134
|
onConfirmDelete: PropTypes.func,
|
|
135
|
+
tokenType: PropTypes.string.isRequired,
|
|
126
136
|
};
|
|
127
137
|
|
|
128
138
|
Table.defaultProps = {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
+
import { ContentBox, useNotification, useTracking } from '@strapi/helper-plugin';
|
|
4
|
+
import { IconButton } from '@strapi/design-system';
|
|
5
|
+
import { Duplicate, Key } from '@strapi/icons';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
4
7
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
5
|
-
import { ContentBox, useNotification, useTracking } from '@strapi/helper-plugin';
|
|
6
|
-
import { IconButton } from '@strapi/design-system/IconButton';
|
|
7
|
-
import Duplicate from '@strapi/icons/Duplicate';
|
|
8
|
-
import Key from '@strapi/icons/Key';
|
|
9
8
|
|
|
10
|
-
const TokenBox = ({ token }) => {
|
|
9
|
+
const TokenBox = ({ token, tokenType }) => {
|
|
11
10
|
const { formatMessage } = useIntl();
|
|
12
11
|
const toggleNotification = useNotification();
|
|
13
12
|
const { trackUsage } = useTracking(); // TODO: Track different types of tokens
|
|
@@ -20,7 +19,9 @@ const TokenBox = ({ token }) => {
|
|
|
20
19
|
<span style={{ alignSelf: 'start' }}>
|
|
21
20
|
<CopyToClipboard
|
|
22
21
|
onCopy={() => {
|
|
23
|
-
trackUsageRef.current('didCopyTokenKey'
|
|
22
|
+
trackUsageRef.current('didCopyTokenKey', {
|
|
23
|
+
tokenType,
|
|
24
|
+
});
|
|
24
25
|
toggleNotification({
|
|
25
26
|
type: 'success',
|
|
26
27
|
message: { id: 'Settings.tokens.notification.copied' },
|
|
@@ -71,6 +72,7 @@ TokenBox.defaultProps = {
|
|
|
71
72
|
|
|
72
73
|
TokenBox.propTypes = {
|
|
73
74
|
token: PropTypes.string,
|
|
75
|
+
tokenType: PropTypes.string.isRequired,
|
|
74
76
|
};
|
|
75
77
|
|
|
76
78
|
export default TokenBox;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Textarea } from '@strapi/design-system
|
|
4
|
+
import { Textarea } from '@strapi/design-system';
|
|
5
5
|
|
|
6
6
|
const TokenDescription = ({ errors, values, onChange, canEditInputs }) => {
|
|
7
7
|
const { formatMessage } = useIntl();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { TextInput } from '@strapi/design-system
|
|
4
|
+
import { TextInput } from '@strapi/design-system';
|
|
5
5
|
|
|
6
6
|
const TokenName = ({ errors, values, onChange, canEditInputs }) => {
|
|
7
7
|
const { formatMessage } = useIntl();
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
|
|
5
|
-
import { Select, Option } from '@strapi/design-system
|
|
5
|
+
import { Select, Option } from '@strapi/design-system';
|
|
6
6
|
|
|
7
7
|
const TokenTypeSelect = ({ errors, values, onChange, canEditInputs, options, label }) => {
|
|
8
8
|
const { formatMessage } = useIntl();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import React, { memo, useMemo } from 'react';
|
|
13
13
|
import { LoadingIndicatorPage, useStrapiApp } from '@strapi/helper-plugin';
|
|
14
14
|
import { Switch, Redirect, Route, useParams } from 'react-router-dom';
|
|
15
|
-
import { Layout } from '@strapi/design-system
|
|
15
|
+
import { Layout } from '@strapi/design-system';
|
|
16
16
|
import { useIntl } from 'react-intl';
|
|
17
17
|
import { Helmet } from 'react-helmet';
|
|
18
18
|
import { useSettingsMenu } from '../../hooks';
|
package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ActionBoundRoutes/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Typography } from '@strapi/design-system
|
|
4
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
5
|
-
import { GridItem } from '@strapi/design-system/Grid';
|
|
3
|
+
import { Typography, Stack, GridItem } from '@strapi/design-system';
|
|
6
4
|
import BoundRoute from '../BoundRoute';
|
|
7
5
|
import { useApiTokenPermissionsContext } from '../../../../../../../contexts/ApiTokenPermissions';
|
|
8
6
|
|
package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/BoundRoute/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { Stack } from '@strapi/design-system
|
|
4
|
-
import { Box } from '@strapi/design-system/Box';
|
|
5
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
3
|
+
import { Stack, Box, Typography } from '@strapi/design-system';
|
|
6
4
|
import map from 'lodash/map';
|
|
7
5
|
import tail from 'lodash/tail';
|
|
8
6
|
import { useIntl } from 'react-intl';
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { capitalize } from 'lodash';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
+
import {
|
|
5
|
+
Accordion,
|
|
6
|
+
AccordionToggle,
|
|
7
|
+
AccordionContent,
|
|
8
|
+
Checkbox,
|
|
9
|
+
Grid,
|
|
10
|
+
GridItem,
|
|
11
|
+
Typography,
|
|
12
|
+
Box,
|
|
13
|
+
Flex,
|
|
14
|
+
} from '@strapi/design-system';
|
|
15
|
+
import { Cog } from '@strapi/icons';
|
|
4
16
|
import styled from 'styled-components';
|
|
5
17
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { Accordion, AccordionToggle, AccordionContent } from '@strapi/design-system/Accordion';
|
|
7
|
-
import { Checkbox } from '@strapi/design-system/Checkbox';
|
|
8
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
9
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
10
|
-
import { Box } from '@strapi/design-system/Box';
|
|
11
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
12
|
-
import CogIcon from '@strapi/icons/Cog';
|
|
13
18
|
import { useApiTokenPermissionsContext } from '../../../../../../../contexts/ApiTokenPermissions';
|
|
14
19
|
import CheckboxWrapper from './CheckBoxWrapper';
|
|
15
20
|
|
|
@@ -117,7 +122,7 @@ const CollapsableContentType = ({
|
|
|
117
122
|
}
|
|
118
123
|
style={{ display: 'inline-flex', alignItems: 'center' }}
|
|
119
124
|
>
|
|
120
|
-
<
|
|
125
|
+
<Cog />
|
|
121
126
|
</button>
|
|
122
127
|
</CheckboxWrapper>
|
|
123
128
|
</GridItem>
|
package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/ContenTypesSection/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } 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 CollapsableContentType from '../CollapsableContentType';
|
|
5
5
|
|
|
6
6
|
const ContentTypesSection = ({ section, ...props }) => {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { Box } from '@strapi/design-system
|
|
5
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
6
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
7
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
4
|
+
import { Box, Grid, GridItem, Stack, Typography } from '@strapi/design-system';
|
|
8
5
|
import LifeSpanInput from '../../../../../components/Tokens/LifeSpanInput';
|
|
9
6
|
import TokenName from '../../../../../components/Tokens/TokenName';
|
|
10
7
|
import TokenDescription from '../../../../../components/Tokens/TokenDescription';
|
package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/LoadingView/index.js
CHANGED
|
@@ -4,10 +4,8 @@ import {
|
|
|
4
4
|
LoadingIndicatorPage,
|
|
5
5
|
useFocusWhenNavigate,
|
|
6
6
|
} from '@strapi/helper-plugin';
|
|
7
|
-
import { HeaderLayout, ContentLayout } from '@strapi/design-system
|
|
8
|
-
import {
|
|
9
|
-
import { Button } from '@strapi/design-system/Button';
|
|
10
|
-
import Check from '@strapi/icons/Check';
|
|
7
|
+
import { HeaderLayout, ContentLayout, Main, Button } from '@strapi/design-system';
|
|
8
|
+
import { Check } from '@strapi/icons';
|
|
11
9
|
import { useIntl } from 'react-intl';
|
|
12
10
|
import PropTypes from 'prop-types';
|
|
13
11
|
|
package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Permissions/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Typography } from '@strapi/design-system
|
|
4
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
5
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
3
|
+
import { Typography, Stack, Grid, GridItem } from '@strapi/design-system';
|
|
6
4
|
import ContentTypesSection from '../ContenTypesSection';
|
|
7
5
|
import ActionBoundRoutes from '../ActionBoundRoutes';
|
|
8
6
|
import { useApiTokenPermissionsContext } from '../../../../../../../contexts/ApiTokenPermissions';
|
package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Regenerate/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Button } from '@strapi/design-system
|
|
5
|
-
import Refresh from '@strapi/icons
|
|
4
|
+
import { Button } from '@strapi/design-system';
|
|
5
|
+
import { Refresh } from '@strapi/icons';
|
|
6
6
|
import { ConfirmDialog } from '@strapi/helper-plugin';
|
|
7
7
|
import { useRegenerate } from '../../../../../../../hooks';
|
|
8
8
|
|
|
@@ -11,12 +11,10 @@ import {
|
|
|
11
11
|
useRBAC,
|
|
12
12
|
useFetchClient,
|
|
13
13
|
} from '@strapi/helper-plugin';
|
|
14
|
-
import { Main } from '@strapi/design-system
|
|
14
|
+
import { Main, ContentLayout, Stack } from '@strapi/design-system';
|
|
15
15
|
import { Formik } from 'formik';
|
|
16
16
|
import { useRouteMatch, useHistory } from 'react-router-dom';
|
|
17
17
|
import { useQuery } from 'react-query';
|
|
18
|
-
import { ContentLayout } from '@strapi/design-system/Layout';
|
|
19
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
20
18
|
import { formatAPIErrors } from '../../../../../utils';
|
|
21
19
|
import { schema } from './utils';
|
|
22
20
|
import LoadingView from './components/LoadingView';
|
|
@@ -28,6 +26,7 @@ import Permissions from './components/Permissions';
|
|
|
28
26
|
import FormApiTokenContainer from './components/FormApiTokenContainer';
|
|
29
27
|
import TokenBox from '../../../components/Tokens/TokenBox';
|
|
30
28
|
import FormHead from '../../../components/Tokens/FormHead';
|
|
29
|
+
import { API_TOKEN_TYPE } from '../../../components/Tokens/constants';
|
|
31
30
|
|
|
32
31
|
const MSG_ERROR_NAME_TAKEN = 'Name already taken';
|
|
33
32
|
|
|
@@ -109,7 +108,9 @@ const ApiTokenCreateView = () => {
|
|
|
109
108
|
);
|
|
110
109
|
|
|
111
110
|
useEffect(() => {
|
|
112
|
-
trackUsageRef.current(isCreating ? 'didAddTokenFromList' : 'didEditTokenFromList'
|
|
111
|
+
trackUsageRef.current(isCreating ? 'didAddTokenFromList' : 'didEditTokenFromList', {
|
|
112
|
+
tokenType: API_TOKEN_TYPE,
|
|
113
|
+
});
|
|
113
114
|
}, [isCreating]);
|
|
114
115
|
|
|
115
116
|
const { status } = useQuery(
|
|
@@ -154,7 +155,9 @@ const ApiTokenCreateView = () => {
|
|
|
154
155
|
);
|
|
155
156
|
|
|
156
157
|
const handleSubmit = async (body, actions) => {
|
|
157
|
-
trackUsageRef.current(isCreating ? 'willCreateToken' : 'willEditToken'
|
|
158
|
+
trackUsageRef.current(isCreating ? 'willCreateToken' : 'willEditToken', {
|
|
159
|
+
tokenType: API_TOKEN_TYPE,
|
|
160
|
+
});
|
|
158
161
|
lockApp();
|
|
159
162
|
const lifespanVal =
|
|
160
163
|
body.lifespan && parseInt(body.lifespan, 10) && body.lifespan !== '0'
|
|
@@ -201,6 +204,7 @@ const ApiTokenCreateView = () => {
|
|
|
201
204
|
|
|
202
205
|
trackUsageRef.current(isCreating ? 'didCreateToken' : 'didEditToken', {
|
|
203
206
|
type: apiToken.type,
|
|
207
|
+
tokenType: API_TOKEN_TYPE,
|
|
204
208
|
});
|
|
205
209
|
} catch (err) {
|
|
206
210
|
const errors = formatAPIErrors(err.response.data);
|
|
@@ -299,7 +303,9 @@ const ApiTokenCreateView = () => {
|
|
|
299
303
|
|
|
300
304
|
<ContentLayout>
|
|
301
305
|
<Stack spacing={6}>
|
|
302
|
-
{Boolean(apiToken?.name) &&
|
|
306
|
+
{Boolean(apiToken?.name) && (
|
|
307
|
+
<TokenBox token={apiToken?.accessKey} tokenType={API_TOKEN_TYPE} />
|
|
308
|
+
)}
|
|
303
309
|
<FormApiTokenContainer
|
|
304
310
|
errors={errors}
|
|
305
311
|
onChange={handleChange}
|
|
@@ -16,14 +16,13 @@ import {
|
|
|
16
16
|
useFetchClient,
|
|
17
17
|
LinkButton,
|
|
18
18
|
} from '@strapi/helper-plugin';
|
|
19
|
-
import { HeaderLayout, ContentLayout } from '@strapi/design-system
|
|
20
|
-
import {
|
|
21
|
-
import { Button } from '@strapi/design-system/Button';
|
|
22
|
-
import Plus from '@strapi/icons/Plus';
|
|
19
|
+
import { HeaderLayout, ContentLayout, Main, Button } from '@strapi/design-system';
|
|
20
|
+
import { Plus } from '@strapi/icons';
|
|
23
21
|
|
|
24
22
|
import adminPermissions from '../../../../../permissions';
|
|
25
23
|
import tableHeaders from './utils/tableHeaders';
|
|
26
24
|
import Table from '../../../components/Tokens/Table';
|
|
25
|
+
import { API_TOKEN_TYPE } from '../../../components/Tokens/constants';
|
|
27
26
|
|
|
28
27
|
const ApiTokenListView = () => {
|
|
29
28
|
useFocusWhenNavigate();
|
|
@@ -64,12 +63,14 @@ const ApiTokenListView = () => {
|
|
|
64
63
|
} = useQuery(
|
|
65
64
|
['api-tokens'],
|
|
66
65
|
async () => {
|
|
67
|
-
trackUsage('willAccessTokenList'
|
|
66
|
+
trackUsage('willAccessTokenList', {
|
|
67
|
+
tokenType: API_TOKEN_TYPE,
|
|
68
|
+
});
|
|
68
69
|
const {
|
|
69
70
|
data: { data },
|
|
70
71
|
} = await get(`/admin/api-tokens`);
|
|
71
72
|
|
|
72
|
-
trackUsage('didAccessTokenList', { number: data.length });
|
|
73
|
+
trackUsage('didAccessTokenList', { number: data.length, tokenType: API_TOKEN_TYPE });
|
|
73
74
|
|
|
74
75
|
return data;
|
|
75
76
|
},
|
|
@@ -129,7 +130,11 @@ const ApiTokenListView = () => {
|
|
|
129
130
|
data-testid="create-api-token-button"
|
|
130
131
|
startIcon={<Plus />}
|
|
131
132
|
size="S"
|
|
132
|
-
onClick={() =>
|
|
133
|
+
onClick={() =>
|
|
134
|
+
trackUsage('willAddTokenFromList', {
|
|
135
|
+
tokenType: API_TOKEN_TYPE,
|
|
136
|
+
})
|
|
137
|
+
}
|
|
133
138
|
to="/settings/api-tokens/create"
|
|
134
139
|
>
|
|
135
140
|
{formatMessage({
|
|
@@ -151,6 +156,7 @@ const ApiTokenListView = () => {
|
|
|
151
156
|
isLoading={isLoading}
|
|
152
157
|
onConfirmDelete={(id) => deleteMutation.mutateAsync(id)}
|
|
153
158
|
tokens={apiTokens}
|
|
159
|
+
tokenType={API_TOKEN_TYPE}
|
|
154
160
|
/>
|
|
155
161
|
)}
|
|
156
162
|
{shouldDisplayNoContentWithCreationButton && (
|
|
@@ -2,9 +2,7 @@ import React, { useReducer, forwardRef, useImperativeHandle } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { useTracking } from '@strapi/helper-plugin';
|
|
5
|
-
import { Grid, GridItem } from '@strapi/design-system
|
|
6
|
-
import { Box } from '@strapi/design-system/Box';
|
|
7
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
5
|
+
import { Grid, GridItem, Box, Typography } from '@strapi/design-system';
|
|
8
6
|
import { useConfigurations } from '../../../../../../hooks';
|
|
9
7
|
import { DIMENSION, SIZE } from '../../utils/constants';
|
|
10
8
|
import LogoInput from '../LogoInput';
|
package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React, { useReducer } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import {
|
|
5
|
+
CarouselInput,
|
|
6
|
+
CarouselSlide,
|
|
7
|
+
CarouselActions,
|
|
8
|
+
IconButton,
|
|
9
|
+
Box,
|
|
10
|
+
} from '@strapi/design-system';
|
|
11
|
+
import { Plus, Refresh } from '@strapi/icons';
|
|
9
12
|
import LogoModalStepper from '../LogoModalStepper';
|
|
10
13
|
import reducer, { initialState } from './reducer';
|
|
11
14
|
import stepper from './stepper';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { Tabs, Tab, TabGroup, TabPanels, TabPanel } from '@strapi/design-system
|
|
5
|
-
import { Box } from '@strapi/design-system/Box';
|
|
6
|
-
import { Divider } from '@strapi/design-system/Divider';
|
|
4
|
+
import { Tabs, Tab, TabGroup, TabPanels, TabPanel, Box, Divider } from '@strapi/design-system';
|
|
7
5
|
import FromComputerForm from './FromComputerForm';
|
|
8
6
|
import FromUrlForm from './FromUrlForm';
|
|
9
7
|
|
|
@@ -2,15 +2,19 @@ import React, { useState, useRef } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import {
|
|
6
|
+
Box,
|
|
7
|
+
Stack,
|
|
8
|
+
Flex,
|
|
9
|
+
Icon,
|
|
10
|
+
Typography,
|
|
11
|
+
ModalFooter,
|
|
12
|
+
Button,
|
|
13
|
+
Field,
|
|
14
|
+
FieldError,
|
|
15
|
+
FieldInput,
|
|
16
|
+
} from '@strapi/design-system';
|
|
17
|
+
import { PicturePlus } from '@strapi/icons';
|
|
14
18
|
import { parseFileMetadatas } from '../../utils/parseFileMetadatas';
|
|
15
19
|
import { ACCEPTED_FORMAT, SIZE, DIMENSION } from '../../utils/constants';
|
|
16
20
|
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React, { 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 { Button } from '@strapi/design-system/Button';
|
|
6
|
-
import { TextInput } from '@strapi/design-system/TextInput';
|
|
7
|
-
import { ModalFooter } from '@strapi/design-system/ModalLayout';
|
|
4
|
+
import { Box, Button, TextInput, ModalFooter } from '@strapi/design-system';
|
|
8
5
|
import urlToFile from '../../utils/urlToFile';
|
|
9
6
|
import { parseFileMetadatas } from '../../utils/parseFileMetadatas';
|
|
10
7
|
import { SIZE, DIMENSION } from '../../utils/constants';
|