@strapi/admin 4.14.0-alpha.0 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/components/RBACProvider/index.js +1 -1
- package/admin/src/content-manager/components/BlocksEditor/BlocksInput/index.js +87 -0
- package/admin/src/content-manager/components/BlocksEditor/Toolbar/index.js +463 -0
- package/admin/src/content-manager/components/BlocksEditor/hooks/useBlocksStore.js +451 -0
- package/admin/src/content-manager/components/BlocksEditor/hooks/useModifiersStore.js +102 -0
- package/admin/src/content-manager/components/BlocksEditor/index.js +126 -0
- package/admin/src/content-manager/components/InputUID/index.js +92 -109
- package/admin/src/content-manager/components/Inputs/index.js +3 -1
- package/admin/src/content-manager/components/Inputs/utils/getInputType.js +2 -0
- package/admin/src/content-manager/components/RelationInput/RelationInput.js +59 -43
- package/admin/src/content-manager/components/Wysiwyg/EditorLayout.js +2 -2
- package/admin/src/content-manager/hooks/useRelation/useRelation.js +84 -86
- package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/ConfirmBulkActionDialog/index.js +3 -0
- package/admin/src/content-manager/pages/ListView/components/BulkActionButtons/SelectedEntriesModal/index.js +2 -1
- package/admin/src/content-manager/pages/ListView/index.js +1 -0
- package/admin/src/content-manager/utils/schema.js +22 -0
- package/admin/src/index.js +7 -1
- package/admin/src/pages/MarketplacePage/components/EmptyNpmPackageSearch/index.js +1 -1
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/index.js +0 -1
- package/admin/src/pages/MarketplacePage/components/NpmPackagesGrid/index.js +1 -1
- package/admin/src/translations/en.json +17 -0
- package/build/1049.acb0e730.chunk.js +1 -0
- package/build/1227.969e24e6.chunk.js +1 -0
- package/build/{1386.ea73b677.chunk.js → 1386.db9a2795.chunk.js} +1 -1
- package/build/2225.78fb9b89.chunk.js +79 -0
- package/build/2379.906334f0.chunk.js +1 -0
- package/build/{2395.0e5e8ded.chunk.js → 2395.f6ac2863.chunk.js} +2 -2
- package/build/2614.3e088d3e.chunk.js +35 -0
- package/build/{6691.4985ef22.chunk.js → 2659.cb94f1e7.chunk.js} +28 -28
- package/build/{2801.8e1aa82a.chunk.js → 2801.2afb4757.chunk.js} +1 -1
- package/build/{1387.a86ac314.chunk.js → 2950.216f2e89.chunk.js} +1 -1
- package/build/3021.33ad47fb.chunk.js +103 -0
- package/build/3911.488fbde3.chunk.js +95 -0
- package/build/4174.3e13fb26.chunk.js +1 -0
- package/build/4546.1203ac95.chunk.js +1 -0
- package/build/{502.7bba43b1.chunk.js → 502.9918bff7.chunk.js} +1 -1
- package/build/{4628.9cbb6df5.chunk.js → 5158.c85f841a.chunk.js} +1 -1
- package/build/6266.e8990811.chunk.js +146 -0
- package/build/6715.48e37308.chunk.js +1 -0
- package/build/6812.00ef5b0d.chunk.js +26 -0
- package/build/{7464.eb057bec.chunk.js → 7464.0280cf59.chunk.js} +1 -1
- package/build/7897.4a39de37.chunk.js +6 -0
- package/build/{8276.be3ed581.chunk.js → 8276.951e198e.chunk.js} +2 -2
- package/build/9832.65ed5a44.chunk.js +181 -0
- package/build/{Admin-authenticatedApp.d200a4ee.chunk.js → Admin-authenticatedApp.7e17bf9f.chunk.js} +7 -7
- package/build/Admin_InternalErrorPage.b3163562.chunk.js +1 -0
- package/build/{Admin_homePage.6f128523.chunk.js → Admin_homePage.6cb51f18.chunk.js} +10 -10
- package/build/Admin_marketplace.3eb5e132.chunk.js +55 -0
- package/build/Admin_pluginsPage.b9fa2947.chunk.js +6 -0
- package/build/{Admin_profilePage.678bce24.chunk.js → Admin_profilePage.a4d41380.chunk.js} +2 -2
- package/build/Admin_settingsPage.6dc2af9f.chunk.js +111 -0
- package/build/Upload_ConfigureTheView.cc7ca628.chunk.js +1 -0
- package/build/{admin-app.582877a3.chunk.js → admin-app.98cdf43a.chunk.js} +8 -8
- package/build/{admin-edit-roles-page.0aa65505.chunk.js → admin-edit-roles-page.418bb1c5.chunk.js} +30 -30
- package/build/admin-edit-users.9b42cc9e.chunk.js +10 -0
- package/build/admin-roles-list.cf964578.chunk.js +22 -0
- package/build/admin-users.8385dd73.chunk.js +11 -0
- package/build/{api-tokens-create-page.e0c15627.chunk.js → api-tokens-create-page.2f25ddf6.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.9f2dce47.chunk.js → api-tokens-edit-page.45faac16.chunk.js} +1 -1
- package/build/api-tokens-list-page.5baabf1a.chunk.js +16 -0
- package/build/audit-logs-settings-page.91489670.chunk.js +1 -0
- package/build/content-manager.0d2b4a60.chunk.js +1199 -0
- package/build/{content-type-builder-list-view.b71cf240.chunk.js → content-type-builder-list-view.aa8a5d1a.chunk.js} +14 -14
- package/build/content-type-builder-translation-en-json.b9e5cacd.chunk.js +1 -0
- package/build/content-type-builder.885f2cad.chunk.js +146 -0
- package/build/email-settings-page.6bd7b280.chunk.js +11 -0
- package/build/{en-json.e12fd5fc.chunk.js → en-json.a3973ff5.chunk.js} +1 -1
- package/build/i18n-settings-page.6c0157e7.chunk.js +9 -0
- package/build/i18n-translation-tr-json.3bfc812f.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.105dcf23.js +2665 -0
- package/build/review-workflows-settings-create-view.ae369a88.chunk.js +1 -0
- package/build/review-workflows-settings-edit-view.9a61c69f.chunk.js +1 -0
- package/build/{review-workflows-settings-list-view.7e300ecb.chunk.js → review-workflows-settings-list-view.067e0c35.chunk.js} +5 -5
- package/build/{runtime~main.9de029f4.js → runtime~main.866715be.js} +2 -2
- package/build/sso-settings-page.a29e6c38.chunk.js +1 -0
- package/build/{transfer-tokens-create-page.ebba16d8.chunk.js → transfer-tokens-create-page.6e1b8cee.chunk.js} +1 -1
- package/build/{transfer-tokens-edit-page.d7bb2b3e.chunk.js → transfer-tokens-edit-page.10bb22e2.chunk.js} +1 -1
- package/build/transfer-tokens-list-page.0306652c.chunk.js +16 -0
- package/build/upload-settings.0af6edc5.chunk.js +14 -0
- package/build/upload.19e14c8e.chunk.js +58 -0
- package/build/users-advanced-settings-page.ed69812f.chunk.js +9 -0
- package/build/users-email-settings-page.131a00fb.chunk.js +9 -0
- package/build/users-providers-settings-page.b3dca41d.chunk.js +14 -0
- package/build/{users-roles-settings-page.2b051e6a.chunk.js → users-roles-settings-page.afab5a0d.chunk.js} +4 -4
- package/build/{webhook-edit-page.de45c635.chunk.js → webhook-edit-page.4c037da4.chunk.js} +3 -3
- package/build/webhook-list-page.56c82f4a.chunk.js +63 -0
- package/ee/admin/content-manager/pages/EditView/InformationBox/components/AssigneeSelect/AssigneeSelect.js +5 -15
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/utils/getDisplayedFilters.js +1 -1
- package/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js +48 -20
- package/ee/server/bootstrap.js +3 -3
- package/ee/server/content-types/workflow-stage/index.js +1 -1
- package/ee/server/controllers/admin.js +1 -1
- package/ee/server/controllers/user.js +1 -1
- package/ee/server/destroy.js +1 -1
- package/ee/server/migrations/review-workflows-stages-roles.js +68 -0
- package/ee/server/migrations/review-workflows-workflow-name.js +7 -0
- package/ee/server/register.js +3 -1
- package/ee/server/routes/utils.js +1 -1
- package/ee/server/services/audit-logs.js +1 -1
- package/ee/server/services/passport/sso.js +1 -1
- package/ee/server/services/passport.js +1 -1
- package/ee/server/services/review-workflows/stage-permissions.js +1 -1
- package/ee/server/services/review-workflows/stages.js +10 -2
- package/ee/server/services/seat-enforcement.js +1 -1
- package/ee/server/utils/sso-lock.js +1 -1
- package/ee/server/validation/role.js +1 -1
- package/ee/server/validation/user.js +1 -1
- package/package.json +21 -13
- package/server/bootstrap.js +3 -1
- package/server/controllers/admin.js +1 -1
- package/server/domain/permission/index.js +8 -1
- package/server/services/metrics.js +17 -0
- package/server/validation/permission.js +1 -1
- package/utils/plugins.js +7 -1
- package/build/1049.ec69f5e0.chunk.js +0 -1
- package/build/1227.ec336799.chunk.js +0 -1
- package/build/1504.eff012f7.chunk.js +0 -95
- package/build/2225.649fb7bc.chunk.js +0 -79
- package/build/2379.1f98a31a.chunk.js +0 -1
- package/build/3739.63e352f1.chunk.js +0 -103
- package/build/4174.4587c7f6.chunk.js +0 -1
- package/build/448.829e1344.chunk.js +0 -1
- package/build/4546.6dbd695f.chunk.js +0 -1
- package/build/6266.53be9ea3.chunk.js +0 -124
- package/build/7897.eac204a4.chunk.js +0 -6
- package/build/9806.5d5a0e8d.chunk.js +0 -160
- package/build/9944.7af075a5.chunk.js +0 -26
- package/build/Admin_InternalErrorPage.38155af3.chunk.js +0 -1
- package/build/Admin_marketplace.061a6e5a.chunk.js +0 -55
- package/build/Admin_pluginsPage.16f837b8.chunk.js +0 -6
- package/build/Admin_settingsPage.af7309e4.chunk.js +0 -111
- package/build/Upload_ConfigureTheView.3fc1c100.chunk.js +0 -1
- package/build/admin-edit-users.9215912a.chunk.js +0 -10
- package/build/admin-roles-list.824a50de.chunk.js +0 -22
- package/build/admin-users.f6b3c643.chunk.js +0 -11
- package/build/api-tokens-list-page.d747051c.chunk.js +0 -16
- package/build/audit-logs-settings-page.be2cb4dd.chunk.js +0 -1
- package/build/content-manager.06a2f7ec.chunk.js +0 -1097
- package/build/content-type-builder-translation-en-json.ed29ff4d.chunk.js +0 -1
- package/build/content-type-builder.e5669749.chunk.js +0 -170
- package/build/email-settings-page.2809f0bf.chunk.js +0 -11
- package/build/i18n-settings-page.5f716172.chunk.js +0 -9
- package/build/i18n-translation-tr-json.10f0600d.chunk.js +0 -1
- package/build/main.0b88b960.js +0 -2863
- package/build/review-workflows-settings-create-view.604cffa0.chunk.js +0 -1
- package/build/review-workflows-settings-edit-view.73c57f07.chunk.js +0 -1
- package/build/sso-settings-page.94373f78.chunk.js +0 -1
- package/build/transfer-tokens-list-page.cfe1736c.chunk.js +0 -16
- package/build/upload-settings.5e55266d.chunk.js +0 -14
- package/build/upload.0660a088.chunk.js +0 -58
- package/build/users-advanced-settings-page.818d84eb.chunk.js +0 -9
- package/build/users-email-settings-page.c1967c09.chunk.js +0 -9
- package/build/users-providers-settings-page.11893e08.chunk.js +0 -14
- package/build/webhook-list-page.ca91df8b.chunk.js +0 -63
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { STAGE_TRANSITION_UID, STAGE_MODEL_UID } = require('../constants/workflows');
|
|
4
|
+
const { getService } = require('../utils');
|
|
5
|
+
|
|
6
|
+
async function migrateReviewWorkflowStagesRoles({ oldContentTypes, contentTypes }) {
|
|
7
|
+
const stageUID = 'admin::workflow-stage';
|
|
8
|
+
const hadRolePermissions = !!oldContentTypes?.[stageUID]?.attributes?.permissions;
|
|
9
|
+
const hasRolePermissions = !!contentTypes?.[stageUID]?.attributes?.permissions;
|
|
10
|
+
|
|
11
|
+
// If the stage content type did not have permissions in the previous version
|
|
12
|
+
// then we set the permissions of every stage to be every current role in the app.
|
|
13
|
+
// This ensures consistent behaviour when upgrading to a strapi version with review workflows RBAC.
|
|
14
|
+
if (!hadRolePermissions && hasRolePermissions) {
|
|
15
|
+
const roleUID = 'admin::role';
|
|
16
|
+
strapi.log.info(
|
|
17
|
+
`Migrating all existing review workflow stages to have RBAC permissions for all ${roleUID}.`
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const stagePermissionsService = getService('stage-permissions');
|
|
21
|
+
|
|
22
|
+
const stages = await strapi.query(stageUID).findMany();
|
|
23
|
+
const roles = await strapi.query(roleUID).findMany();
|
|
24
|
+
|
|
25
|
+
// Collect the permissions to add and group them by stage id.
|
|
26
|
+
const groupedPermissions = {};
|
|
27
|
+
roles
|
|
28
|
+
.map((role) => role.id)
|
|
29
|
+
.forEach((roleId) => {
|
|
30
|
+
stages
|
|
31
|
+
.map((stage) => stage.id)
|
|
32
|
+
.forEach((stageId) => {
|
|
33
|
+
if (!groupedPermissions[stageId]) {
|
|
34
|
+
groupedPermissions[stageId] = [];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
groupedPermissions[stageId].push({
|
|
38
|
+
roleId,
|
|
39
|
+
fromStage: stageId,
|
|
40
|
+
action: STAGE_TRANSITION_UID,
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
for (const [stageId, permissions] of Object.entries(groupedPermissions)) {
|
|
46
|
+
const numericalStageId = Number(stageId);
|
|
47
|
+
|
|
48
|
+
if (Number.isNaN(numericalStageId)) {
|
|
49
|
+
strapi.log.warn(
|
|
50
|
+
`Unable to apply ${roleUID} migration for ${stageUID} with id ${stageId}. The stage does not have a numerical id.`
|
|
51
|
+
);
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Register the permissions for this stage
|
|
56
|
+
const stagePermissions = await stagePermissionsService.registerMany(permissions);
|
|
57
|
+
|
|
58
|
+
// Update the stage with its new permissions
|
|
59
|
+
await strapi.entityService.update(STAGE_MODEL_UID, numericalStageId, {
|
|
60
|
+
data: {
|
|
61
|
+
permissions: stagePermissions.flat().map((permission) => permission.id),
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
module.exports = migrateReviewWorkflowStagesRoles;
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
const { WORKFLOW_MODEL_UID } = require('../constants/workflows');
|
|
4
4
|
const defaultWorkflow = require('../constants/default-workflow.json');
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Multiple workflows introduced the ability to name a workflow.
|
|
8
|
+
* This migration adds the default workflow name if the name attribute was added.
|
|
9
|
+
*/
|
|
6
10
|
async function migrateReviewWorkflowName({ oldContentTypes, contentTypes }) {
|
|
7
11
|
// Look for RW name attribute
|
|
8
12
|
const hadName = !!oldContentTypes?.[WORKFLOW_MODEL_UID]?.attributes?.name;
|
|
@@ -11,6 +15,9 @@ async function migrateReviewWorkflowName({ oldContentTypes, contentTypes }) {
|
|
|
11
15
|
// Add the default workflow name if name attribute was added
|
|
12
16
|
if (!hadName && hasName) {
|
|
13
17
|
await strapi.query(WORKFLOW_MODEL_UID).updateMany({
|
|
18
|
+
where: {
|
|
19
|
+
name: { $null: true },
|
|
20
|
+
},
|
|
14
21
|
data: {
|
|
15
22
|
name: defaultWorkflow.name,
|
|
16
23
|
},
|
package/ee/server/register.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const { features } = require('@strapi/strapi/
|
|
3
|
+
const { features } = require('@strapi/strapi/dist/utils/ee').default;
|
|
4
4
|
const executeCERegister = require('../../server/register');
|
|
5
5
|
const migrateAuditLogsTable = require('./migrations/audit-logs-table');
|
|
6
6
|
const migrateReviewWorkflowStagesColor = require('./migrations/review-workflows-stages-color');
|
|
7
|
+
const migrateReviewWorkflowStagesRoles = require('./migrations/review-workflows-stages-roles');
|
|
7
8
|
const migrateReviewWorkflowName = require('./migrations/review-workflows-workflow-name');
|
|
8
9
|
const migrateWorkflowsContentTypes = require('./migrations/review-workflows-content-types');
|
|
9
10
|
const migrateStageAttribute = require('./migrations/review-workflows-stage-attribute');
|
|
@@ -26,6 +27,7 @@ module.exports = async ({ strapi }) => {
|
|
|
26
27
|
strapi
|
|
27
28
|
.hook('strapi::content-types.afterSync')
|
|
28
29
|
.register(migrateReviewWorkflowStagesColor)
|
|
30
|
+
.register(migrateReviewWorkflowStagesRoles)
|
|
29
31
|
.register(migrateReviewWorkflowName)
|
|
30
32
|
.register(migrateWorkflowsContentTypes)
|
|
31
33
|
.register(migrateDeletedCTInWorkflows);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const localProvider = require('@strapi/provider-audit-logs-local');
|
|
4
4
|
const { scheduleJob } = require('node-schedule');
|
|
5
|
-
const { features } = require('@strapi/strapi/
|
|
5
|
+
const { features } = require('@strapi/strapi/dist/utils/ee').default;
|
|
6
6
|
|
|
7
7
|
const DEFAULT_RETENTION_DAYS = 90;
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line node/no-extraneous-require
|
|
4
|
-
const { features } = require('@strapi/strapi/
|
|
4
|
+
const { features } = require('@strapi/strapi/dist/utils/ee').default;
|
|
5
5
|
|
|
6
6
|
const { UnauthorizedError } = require('@strapi/utils').errors;
|
|
7
7
|
const createLocalStrategy = require('../../../server/services/passport/local-strategy');
|
|
@@ -15,7 +15,7 @@ module.exports = ({ strapi }) => {
|
|
|
15
15
|
const permissionService = getService('permission');
|
|
16
16
|
|
|
17
17
|
return {
|
|
18
|
-
async register(roleId, action, fromStage) {
|
|
18
|
+
async register({ roleId, action, fromStage }) {
|
|
19
19
|
if (!validActions.includes(action)) {
|
|
20
20
|
throw new ApplicationError(`Invalid action ${action}`);
|
|
21
21
|
}
|
|
@@ -61,7 +61,11 @@ module.exports = ({ strapi }) => {
|
|
|
61
61
|
stagePermissions,
|
|
62
62
|
// Register each stage permission
|
|
63
63
|
(permission) =>
|
|
64
|
-
stagePermissionsService.register(
|
|
64
|
+
stagePermissionsService.register({
|
|
65
|
+
roleId: permission.role,
|
|
66
|
+
action: permission.action,
|
|
67
|
+
fromStage: stageId,
|
|
68
|
+
})
|
|
65
69
|
);
|
|
66
70
|
|
|
67
71
|
// Update stage with the new permissions
|
|
@@ -85,7 +89,11 @@ module.exports = ({ strapi }) => {
|
|
|
85
89
|
await this.deleteStagePermissions([srcStage]);
|
|
86
90
|
|
|
87
91
|
const permissions = await mapAsync(destStage.permissions, (permission) =>
|
|
88
|
-
stagePermissionsService.register(
|
|
92
|
+
stagePermissionsService.register({
|
|
93
|
+
roleId: permission.role,
|
|
94
|
+
action: permission.action,
|
|
95
|
+
fromStage: stageId,
|
|
96
|
+
})
|
|
89
97
|
);
|
|
90
98
|
stagePermissions = permissions.flat().map((p) => p.id);
|
|
91
99
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line node/no-extraneous-require
|
|
4
|
-
const ee = require('@strapi/strapi/
|
|
4
|
+
const ee = require('@strapi/strapi/dist/utils/ee').default;
|
|
5
5
|
const { take, drop, map, prop, pick, reverse, isNil } = require('lodash/fp');
|
|
6
6
|
const { getService } = require('../../../server/utils');
|
|
7
7
|
const { SUPER_ADMIN_CODE } = require('../../../server/services/constants');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
4
4
|
// eslint-disable-next-line node/no-extraneous-require
|
|
5
|
-
const { features } = require('@strapi/strapi/
|
|
5
|
+
const { features } = require('@strapi/strapi/dist/utils/ee').default;
|
|
6
6
|
|
|
7
7
|
const roleCreateSchema = yup
|
|
8
8
|
.object()
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const { yup, validateYupSchema } = require('@strapi/utils');
|
|
4
4
|
// eslint-disable-next-line node/no-extraneous-require
|
|
5
|
-
const { features } = require('@strapi/strapi/
|
|
5
|
+
const { features } = require('@strapi/strapi/dist/utils/ee').default;
|
|
6
6
|
const { schemas } = require('../../../server/validation/user');
|
|
7
7
|
|
|
8
8
|
const ssoUserCreationInputExtension = yup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/admin",
|
|
3
|
-
"version": "4.14.0
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "Strapi Admin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,16 +40,17 @@
|
|
|
40
40
|
"lint": "run -T eslint ."
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@casl/ability": "
|
|
43
|
+
"@casl/ability": "6.5.0",
|
|
44
44
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
45
|
-
"@
|
|
46
|
-
"@strapi/
|
|
47
|
-
"@strapi/
|
|
48
|
-
"@strapi/
|
|
49
|
-
"@strapi/
|
|
50
|
-
"@strapi/
|
|
51
|
-
"@strapi/
|
|
52
|
-
"@strapi/utils": "4.14.0
|
|
45
|
+
"@radix-ui/react-toolbar": "1.0.4",
|
|
46
|
+
"@strapi/data-transfer": "4.14.0",
|
|
47
|
+
"@strapi/design-system": "1.11.0",
|
|
48
|
+
"@strapi/helper-plugin": "4.14.0",
|
|
49
|
+
"@strapi/icons": "1.11.0",
|
|
50
|
+
"@strapi/permissions": "4.14.0",
|
|
51
|
+
"@strapi/provider-audit-logs-local": "4.14.0",
|
|
52
|
+
"@strapi/typescript-utils": "4.14.0",
|
|
53
|
+
"@strapi/utils": "4.14.0",
|
|
53
54
|
"axios": "1.5.0",
|
|
54
55
|
"bcryptjs": "2.4.3",
|
|
55
56
|
"browserslist": "^4.17.3",
|
|
@@ -119,9 +120,12 @@
|
|
|
119
120
|
"sanitize-html": "2.11.0",
|
|
120
121
|
"semver": "7.5.4",
|
|
121
122
|
"sift": "16.0.1",
|
|
123
|
+
"slate": "0.94.1",
|
|
124
|
+
"slate-history": "0.93.0",
|
|
125
|
+
"slate-react": "0.98.3",
|
|
122
126
|
"style-loader": "3.3.1",
|
|
123
127
|
"styled-components": "5.3.3",
|
|
124
|
-
"typescript": "5.
|
|
128
|
+
"typescript": "5.2.2",
|
|
125
129
|
"webpack": "^5.88.1",
|
|
126
130
|
"webpack-cli": "^5.1.0",
|
|
127
131
|
"webpack-dev-server": "^4.15.0",
|
|
@@ -152,7 +156,11 @@
|
|
|
152
156
|
"./build"
|
|
153
157
|
]
|
|
154
158
|
}
|
|
155
|
-
}
|
|
159
|
+
},
|
|
160
|
+
"implicitDependencies": [
|
|
161
|
+
"!@strapi/data-transfer",
|
|
162
|
+
"!@strapi/strapi"
|
|
163
|
+
]
|
|
156
164
|
},
|
|
157
|
-
"gitHead": "
|
|
165
|
+
"gitHead": "09b6d7a4b46a87142d29665052ca22ced29fa56a"
|
|
158
166
|
}
|
package/server/bootstrap.js
CHANGED
|
@@ -70,7 +70,7 @@ const syncAPITokensPermissions = async () => {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
module.exports = async () => {
|
|
73
|
+
module.exports = async ({ strapi }) => {
|
|
74
74
|
await registerAdminConditions();
|
|
75
75
|
await registerPermissionActions();
|
|
76
76
|
registerModelHooks();
|
|
@@ -93,6 +93,8 @@ module.exports = async () => {
|
|
|
93
93
|
await syncAuthSettings();
|
|
94
94
|
await syncAPITokensPermissions();
|
|
95
95
|
|
|
96
|
+
getService('metrics').startCron(strapi);
|
|
97
|
+
|
|
96
98
|
apiTokenService.checkSaltIsDefined();
|
|
97
99
|
transferService.token.checkSaltIsDefined();
|
|
98
100
|
tokenService.checkSecretIsDefined();
|
|
@@ -8,7 +8,7 @@ const { exists } = require('fs-extra');
|
|
|
8
8
|
const { env } = require('@strapi/utils');
|
|
9
9
|
const { isUsingTypeScript } = require('@strapi/typescript-utils');
|
|
10
10
|
// eslint-disable-next-line node/no-extraneous-require
|
|
11
|
-
const ee = require('@strapi/strapi/
|
|
11
|
+
const ee = require('@strapi/strapi/dist/utils/ee').default;
|
|
12
12
|
|
|
13
13
|
const {
|
|
14
14
|
validateUpdateProjectSettings,
|
|
@@ -35,7 +35,14 @@ const permissionFields = [
|
|
|
35
35
|
'conditions',
|
|
36
36
|
'role',
|
|
37
37
|
];
|
|
38
|
-
const sanitizedPermissionFields = [
|
|
38
|
+
const sanitizedPermissionFields = [
|
|
39
|
+
'id',
|
|
40
|
+
'action',
|
|
41
|
+
'actionParameters',
|
|
42
|
+
'subject',
|
|
43
|
+
'properties',
|
|
44
|
+
'conditions',
|
|
45
|
+
];
|
|
39
46
|
|
|
40
47
|
const sanitizePermissionFields = pick(sanitizedPermissionFields);
|
|
41
48
|
|
|
@@ -20,8 +20,25 @@ const sendDidChangeInterfaceLanguage = async () => {
|
|
|
20
20
|
strapi.telemetry.send('didChangeInterfaceLanguage', { userProperties: { languagesInUse } });
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
const sendUpdateProjectInformation = async () => {
|
|
24
|
+
const numberOfActiveAdminUsers = await getService('user').count({ isActive: true });
|
|
25
|
+
const numberOfAdminUsers = await getService('user').count();
|
|
26
|
+
|
|
27
|
+
strapi.telemetry.send('didUpdateProjectInformation', {
|
|
28
|
+
groupProperties: { numberOfActiveAdminUsers, numberOfAdminUsers },
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const startCron = (strapi) => {
|
|
33
|
+
strapi.cron.add({
|
|
34
|
+
'0 0 0 * * *': () => sendUpdateProjectInformation(),
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
|
|
23
38
|
module.exports = {
|
|
24
39
|
sendDidInviteUser,
|
|
25
40
|
sendDidUpdateRolePermissions,
|
|
26
41
|
sendDidChangeInterfaceLanguage,
|
|
42
|
+
sendUpdateProjectInformation,
|
|
43
|
+
startCron,
|
|
27
44
|
};
|
package/utils/plugins.js
CHANGED
|
@@ -112,7 +112,13 @@ const filterPluginsByAdminEntry = (plugin) => {
|
|
|
112
112
|
);
|
|
113
113
|
|
|
114
114
|
if (!isLocalPluginWithLegacyAdminFile) {
|
|
115
|
-
|
|
115
|
+
let pathToPlugin = plugin.pathToPlugin;
|
|
116
|
+
|
|
117
|
+
if (process.platform === 'win32') {
|
|
118
|
+
pathToPlugin = pathToPlugin.split(path.sep).join(path.posix.sep);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const isModuleWithFE = require.resolve(`${pathToPlugin}/strapi-admin`);
|
|
116
122
|
|
|
117
123
|
return isModuleWithFE;
|
|
118
124
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1049],{39404:function(A,T,e){e.d(T,{Z:function(){return M}});var t=e(32735),y=e(82055),c=e(87933),o=e(41415),s=e(45509),a=e(66456),r=e(29439),f=e(60216),n=e.n(f),m=e(67879),u=e(44647),E=e(79652);const d=({onRegenerate:R,idToRegenerate:O,backUrl:L,onError:W})=>{const{formatMessage:i}=(0,m.Z)(),[K,B]=(0,t.useState)(!1),{regenerateData:U,isLoadingConfirmation:x}=(0,E.rW)(L,O,R,W),h=async()=>{U(),B(!1)};return t.createElement(t.Fragment,null,t.createElement(o.z,{startIcon:t.createElement(u.Z,null),type:"button",size:"S",variant:"tertiary",onClick:()=>B(!0),name:"regenerate"},i({id:"Settings.tokens.regenerate",defaultMessage:"Regenerate"})),t.createElement(s.QH,{bodyText:{id:"Settings.tokens.popUpWarning.message",defaultMessage:"Are you sure you want to regenerate this token?"},iconRightButton:t.createElement(u.Z,null),isConfirmButtonLoading:x,isOpen:K,onToggleDialog:()=>B(!1),onConfirm:h,leftButtonText:{id:"Settings.tokens.Button.cancel",defaultMessage:"Cancel"},rightButtonText:{id:"Settings.tokens.Button.regenerate",defaultMessage:"Regenerate"},title:{id:"Settings.tokens.RegenerateDialog.title",defaultMessage:"Regenerate token"}}))};d.defaultProps={onRegenerate(){},onError:void 0},d.propTypes={onRegenerate:n().func,idToRegenerate:n().oneOfType([n().number,n().string]).isRequired,backUrl:n().string.isRequired,onError:n().func};var g=d;const l=({title:R,token:O,setToken:L,canEditInputs:W,canRegenerate:i,isSubmitting:K,backUrl:B,regenerateUrl:U,onErrorRegenerate:x})=>{const{formatMessage:h}=(0,m.Z)(),z=j=>{L({...O,accessKey:j})};return t.createElement(y.T,{title:O?.name||h(R),primaryAction:W?t.createElement(c.k,{gap:2},i&&O?.id&&t.createElement(g,{backUrl:U,onRegenerate:z,idToRegenerate:O?.id,onError:x}),t.createElement(o.z,{disabled:K,loading:K,startIcon:t.createElement(a.Z,null),type:"submit",size:"S"},h({id:"global.save",defaultMessage:"Save"}))):i&&O?.id&&t.createElement(g,{onRegenerate:z,idToRegenerate:O?.id,backUrl:U}),navigationAction:t.createElement(s.rU,{startIcon:t.createElement(r.Z,null),to:B},h({id:"global.back",defaultMessage:"Back"})),ellipsis:!0})};l.propTypes={token:n().shape({id:n().oneOfType([n().number,n().string]),type:n().string,lifespan:n().oneOfType([n().number,n().string]),name:n().string,accessKey:n().string,permissions:n().array,description:n().string,createdAt:n().string}),canEditInputs:n().bool.isRequired,canRegenerate:n().bool.isRequired,setToken:n().func.isRequired,isSubmitting:n().bool.isRequired,backUrl:n().string.isRequired,title:n().shape({id:n().string,label:n().string}).isRequired,regenerateUrl:n().string.isRequired,onErrorRegenerate:n().func},l.defaultProps={token:void 0,onErrorRegenerate:void 0};var M=l},82505:function(A,T,e){var t=e(32735),y=e(68465),c=e(84967),o=e(49372),s=e(60216),a=e.n(s),r=e(67879),f=e(25652);const n=({token:m,errors:u,values:E,onChange:d,isCreating:g})=>{const{formatMessage:l}=(0,r.Z)();return t.createElement(t.Fragment,null,t.createElement(y.P,{name:"lifespan",label:l({id:"Settings.tokens.form.duration",defaultMessage:"Token duration"}),value:E.lifespan!==null?E.lifespan:"0",error:u.lifespan?l(u.lifespan?.id?u.lifespan:{id:u.lifespan,defaultMessage:u.lifespan}):null,onChange:M=>{d({target:{name:"lifespan",value:M}})},required:!0,disabled:!g,placeholder:"Select"},t.createElement(c.W,{value:"604800000"},l({id:"Settings.tokens.duration.7-days",defaultMessage:"7 days"})),t.createElement(c.W,{value:"2592000000"},l({id:"Settings.tokens.duration.30-days",defaultMessage:"30 days"})),t.createElement(c.W,{value:"7776000000"},l({id:"Settings.tokens.duration.90-days",defaultMessage:"90 days"})),t.createElement(c.W,{value:"0"},l({id:"Settings.tokens.duration.unlimited",defaultMessage:"Unlimited"}))),t.createElement(o.Z,{variant:"pi",textColor:"neutral600"},!g&&`${l({id:"Settings.tokens.duration.expiration-date",defaultMessage:"Expiration date"})}: ${(0,f.IX)(m?.createdAt,parseInt(E.lifespan,10))}`))};n.propTypes={errors:a().shape({lifespan:a().string}),onChange:a().func.isRequired,values:a().shape({lifespan:a().oneOfType([a().number,a().string])}).isRequired,isCreating:a().bool.isRequired,token:a().shape({id:a().oneOfType([a().number,a().string]),type:a().string,lifespan:a().string,name:a().string,accessKey:a().string,permissions:a().array,description:a().string,createdAt:a().string})},n.defaultProps={errors:{},token:{}},T.Z=n},7210:function(A,T,e){var t=e(32735),y=e(50563),c=e(45509),o=e(47765),s=e(11631),a=e(60216),r=e.n(a),f=e(67879);const n=({token:m,tokenType:u})=>{const{formatMessage:E}=(0,f.Z)(),d=(0,c.lm)(),{trackUsage:g}=(0,c.rS)(),{copy:l}=(0,c.VP)(),M=R=>async()=>{await l(R)&&(g("didCopyTokenKey",{tokenType:u}),d({type:"success",message:{id:"Settings.tokens.notification.copied"}}))};return t.createElement(c.Y_,{endAction:m&&t.createElement("span",{style:{alignSelf:"start"}},t.createElement(y.h,{label:E({id:"app.component.CopyToClipboard.label",defaultMessage:"Copy to clipboard"}),onClick:M(m),noBorder:!0,icon:t.createElement(o.Z,null),style:{padding:0,height:"1rem"}})),title:m||E({id:"Settings.tokens.copy.editTitle",defaultMessage:"This token isn\u2019t accessible anymore."}),subtitle:E(m?{id:"Settings.tokens.copy.lastWarning",defaultMessage:"Make sure to copy this token, you won\u2019t be able to see it again!"}:{id:"Settings.tokens.copy.editMessage",defaultMessage:"For security reasons, you can only see your token once."}),icon:t.createElement(s.Z,null),iconBackground:"neutral100"})};n.defaultProps={token:null},n.propTypes={token:r().string,tokenType:r().string.isRequired},T.Z=n},58380:function(A,T,e){var t=e(32735),y=e(33475),c=e(60216),o=e.n(c),s=e(67879);const a=({errors:r,values:f,onChange:n,canEditInputs:m})=>{const{formatMessage:u}=(0,s.Z)();return t.createElement(y.g,{label:u({id:"Settings.tokens.form.description",defaultMessage:"Description"}),id:"description",error:r.description?u(r.description?.id?r.description:{id:r.description,defaultMessage:r.description}):null,onChange:n,disabled:!m},f.description)};a.propTypes={errors:o().shape({description:o().string}),onChange:o().func.isRequired,canEditInputs:o().bool.isRequired,values:o().shape({description:o().string}).isRequired},a.defaultProps={errors:{}},T.Z=a},37823:function(A,T,e){var t=e(32735),y=e(10369),c=e(60216),o=e.n(c),s=e(67879);const a=({errors:r,values:f,onChange:n,canEditInputs:m})=>{const{formatMessage:u}=(0,s.Z)();return t.createElement(y.o,{name:"name",error:r.name?u(r.name?.id?r.name:{id:r.name,defaultMessage:r.name}):null,label:u({id:"Settings.tokens.form.name",defaultMessage:"Name"}),onChange:n,value:f.name,disabled:!m,required:!0})};a.propTypes={errors:o().shape({name:o().string}),onChange:o().func.isRequired,canEditInputs:o().bool.isRequired,values:o().shape({name:o().string}).isRequired},a.defaultProps={errors:{}},T.Z=a},32655:function(A,T,e){var t=e(32735),y=e(68465),c=e(84967),o=e(60216),s=e.n(o),a=e(67879);const r=({name:f,errors:n,values:m,onChange:u,canEditInputs:E,options:d,label:g})=>{const{formatMessage:l}=(0,a.Z)();return t.createElement(y.P,{name:f,label:l({id:g.id,defaultMessage:g.defaultMessage}),value:m&&m[f],error:n[f]?l(n[f]?.id?n[f]:{id:n[f],defaultMessage:n[f]}):null,onChange:u,placeholder:"Select",required:!0,disabled:!E},d&&d.map(({value:M,label:R})=>t.createElement(c.W,{key:M,value:M},l(R))))};r.propTypes={name:s().string,options:s().arrayOf(s().shape({label:s().shape({id:s().string,defaultMessage:s().string}),value:s().string})),errors:s().shape({type:s().string}),onChange:s().func.isRequired,canEditInputs:s().bool.isRequired,values:s().shape({type:s().string}).isRequired,label:s().shape({id:s().string,defaultMessage:s().string}).isRequired},r.defaultProps={name:"type",errors:{},options:[]},T.Z=r},49756:function(A,T,e){e.d(T,{Z:function(){return t},f:function(){return y}});const t="api-token",y="transfer-token"},25652:function(A,T,e){e.d(T,{IX:function(){return s},fK:function(){return n},mk:function(){return u}});var t=e(14723),y=e(85544),c=e(76698),s=(E,d,g="en")=>{if(d&&typeof d=="number"){const l=d/24/60/60/1e3;return(0,t.Z)((0,y.Z)(new Date(E),l),"PPP",{locale:c[g]})}return"Unlimited"},a=e(45509),r=e(24346),n=r.Ry().shape({name:r.Z_(a.I0.string).max(100).required(a.I0.required),type:r.Z_(a.I0.string).oneOf(["read-only","full-access","custom"]).required(a.I0.required),description:r.Z_().nullable(),lifespan:r.Rx().integer().min(0).nullable().defined(a.I0.required)}),u=E=>{const d={allActionsIds:[],permissions:[]};return d.permissions=Object.keys(E).map(g=>({apiId:g,label:g.split("::")[1],controllers:Object.keys(E[g].controllers).map(l=>({controller:l,actions:E[g].controllers[l].map(M=>{const R=`${g}.${l}.${M}`;return g.includes("api::")&&d.allActionsIds.push(R),{action:M,actionId:R}}).flat()})).flat()})),d}},1930:function(A,T,e){e.d(T,{Z:function(){return ne}});var t=e(32735),y=e(27649),c=e(17e3),o=e(87933),s=e(45509),a=e(92802),r=e(67879),f=e(20108),n=e(15062),m=e(53038),u=e(90869),E=e(30305),d=e(49756),g=e(39404),l=e(7210),M=e(72850),R=e(49372),O=e(15335),L=e(5803),W=e(60216),i=e.n(W),K=e(82505),B=e(58380),U=e(37823),x=e(32655);const h=({errors:C,onChange:k,canEditInputs:Z,isCreating:D,values:S,transferToken:v})=>{const{formatMessage:F}=(0,r.Z)(),Q=[{value:"push",label:{id:"Settings.transferTokens.types.push",defaultMessage:"Push"}},{value:"pull",label:{id:"Settings.transferTokens.types.pull",defaultMessage:"Pull"}},{value:"push-pull",label:{id:"Settings.transferTokens.types.push-pull",defaultMessage:"Full Access"}}];return t.createElement(M.x,{background:"neutral0",hasRadius:!0,shadow:"filterShadow",paddingTop:6,paddingBottom:6,paddingLeft:7,paddingRight:7},t.createElement(o.k,{direction:"column",alignItems:"stretch",gap:4},t.createElement(R.Z,{variant:"delta",as:"h2"},F({id:"global.details",defaultMessage:"Details"})),t.createElement(O.r,{gap:5},t.createElement(L.P,{key:"name",col:6,xs:12},t.createElement(U.Z,{errors:C,values:S,canEditInputs:Z,onChange:k})),t.createElement(L.P,{key:"description",col:6,xs:12},t.createElement(B.Z,{errors:C,values:S,canEditInputs:Z,onChange:k})),t.createElement(L.P,{key:"lifespan",col:6,xs:12},t.createElement(K.Z,{isCreating:D,errors:C,values:S,onChange:k,token:v})),t.createElement(L.P,{key:"permissions",col:6,xs:12},t.createElement(x.Z,{name:"permissions",values:S,errors:C,label:{id:"Settings.tokens.form.type",defaultMessage:"Token type"},onChange:V=>{k({target:{name:"permissions",value:V}})},options:Q,canEditInputs:Z})))))};h.propTypes={errors:i().shape({name:i().string,description:i().string,lifespan:i().string,type:i().string}),onChange:i().func.isRequired,canEditInputs:i().bool.isRequired,values:i().shape({name:i().string,description:i().string,lifespan:i().oneOfType([i().number,i().string]),type:i().string}).isRequired,isCreating:i().bool.isRequired,transferToken:i().shape({id:i().oneOfType([i().number,i().string]),type:i().string,lifespan:i().string,name:i().string,accessKey:i().string,permissions:i().array,description:i().string,createdAt:i().string})},h.defaultProps={errors:{},transferToken:{}};var z=h,j=e(82055),_=e(41415),q=e(66456);const G=({transferTokenName:C})=>{const{formatMessage:k}=(0,r.Z)();return(0,s.go)(),t.createElement(y.o,{"aria-busy":"true"},t.createElement(s.SL,{name:"Transfer Tokens"}),t.createElement(j.T,{primaryAction:t.createElement(_.z,{disabled:!0,startIcon:t.createElement(q.Z,null),type:"button",size:"L"},k({id:"global.save",defaultMessage:"Save"})),title:C||k({id:"Settings.transferTokens.createPage.title",defaultMessage:"Create Transfer Token"})}),t.createElement(c.D,null,t.createElement(s.dO,null)))};G.defaultProps={transferTokenName:null},G.propTypes={transferTokenName:i().string};var w=G,N=e(24346),ee=N.Ry().shape({name:N.Z_(s.I0.string).max(100).required(s.I0.required),description:N.Z_().nullable(),lifespan:N.Rx().integer().min(0).nullable().defined(s.I0.required),permissions:N.Z_(s.I0.string).required(s.I0.required)});const te="Name already taken";var ne=()=>{(0,s.go)();const{formatMessage:C}=(0,r.Z)(),{lockApp:k,unlockApp:Z}=(0,s.o1)(),D=(0,s.lm)(),S=(0,m.k6)(),[v,F]=(0,t.useState)(S.location.state?.transferToken.accessKey?{...S.location.state.transferToken}:null),{trackUsage:Q}=(0,s.rS)(),V=(0,t.useRef)(Q),{setCurrentStep:se}=(0,s.c1)(),ae=(0,n.v9)(E._),{allowedActions:{canCreate:re,canUpdate:ie,canRegenerate:oe}}=(0,s.ss)(ae.settings["transfer-tokens"]),{params:{id:Y}}=(0,m.$B)("/settings/transfer-tokens/:id"),{get:le,post:de,put:ce}=(0,s.kY)(),P=Y==="create",{formatAPIError:J}=(0,s.So)();(0,t.useEffect)(()=>{V.current(P?"didAddTokenFromList":"didEditTokenFromList",{tokenType:d.f})},[P]);const{status:ue}=(0,f.useQuery)(["transfer-token",Y],async()=>{const{data:{data:p}}=await le(`/admin/transfer/tokens/${Y}`);return F({...p}),p},{enabled:!P&&!v,onError(p){p.response.data.error.details?.code==="INVALID_TOKEN_SALT"?D({type:"warning",message:{id:"notification.error.invalid.configuration",defaultMessage:"You have an invalid configuration, check your server log for more information."}}):D({type:"warning",message:J(p)})}}),ge=async(p,$)=>{V.current(P?"willCreateToken":"willEditToken",{tokenType:d.f}),k();const X=p.lifespan&&parseInt(p.lifespan,10)&&p.lifespan!=="0"?parseInt(p.lifespan,10):null,H=p.permissions.split("-");try{const{data:{data:I}}=P?await de("/admin/transfer/tokens",{...p,lifespan:X,permissions:H}):await ce(`/admin/transfer/tokens/${Y}`,{name:p.name,description:p.description,permissions:H});Z(),P&&(S.replace(`/settings/transfer-tokens/${I.id}`,{transferToken:I}),se("transferTokens.success")),F({...I}),D({type:"success",message:C(P?{id:"notification.success.transfertokencreated",defaultMessage:"Transfer Token successfully created"}:{id:"notification.success.transfertokenedited",defaultMessage:"Transfer Token successfully edited"})}),V.current(P?"didCreateToken":"didEditToken",{type:v?.permissions,tokenType:d.f})}catch(I){const fe=(0,u.Iz)(I.response.data);$.setErrors(fe),I?.response?.data?.error?.message===te?D({type:"warning",message:I.response.data.message||"notification.error.tokennamenotunique"}):I?.response?.data?.error?.details?.code==="INVALID_TOKEN_SALT"?D({type:"warning",message:{id:"notification.error.invalid.configuration",defaultMessage:"You have an invalid configuration, check your server log for more information."}}):D({type:"warning",message:I?.response?.data?.message||"notification.error"}),Z()}},b=ie&&!P||re&&P;if(!P&&!v&&ue!=="success")return t.createElement(w,{transferTokenName:v?.name});const pe=p=>{p?.response?.data?.error?.details?.code==="INVALID_TOKEN_SALT"?D({type:"warning",message:{id:"notification.error.invalid.configuration",defaultMessage:"You have an invalid configuration, check your server log for more information."}}):D({type:"warning",message:J(p)})};return t.createElement(y.o,null,t.createElement(s.SL,{name:"Transfer Tokens"}),t.createElement(a.J9,{validationSchema:ee,validateOnChange:!1,initialValues:{name:v?.name||"",description:v?.description||"",lifespan:v?.lifespan?v.lifespan.toString():v?.lifespan,permissions:v?.permissions.join("-")},enableReinitialize:!0,onSubmit:(p,$)=>ge(p,$)},({errors:p,handleChange:$,isSubmitting:X,values:H})=>t.createElement(s.l0,null,t.createElement(g.Z,{backUrl:"/settings/transfer-tokens",title:{id:"Settings.transferTokens.createPage.title",defaultMessage:"Create Transfer Token"},token:v,setToken:F,canEditInputs:b,canRegenerate:oe,isSubmitting:X,regenerateUrl:"/admin/transfer/tokens/",onErrorRegenerate:pe}),t.createElement(c.D,null,t.createElement(o.k,{direction:"column",alignItems:"stretch",gap:6},Boolean(v?.name)&&t.createElement(l.Z,{token:v?.accessKey,tokenType:d.f}),t.createElement(z,{errors:p,onChange:$,canEditInputs:b,isCreating:P,values:H,transferToken:v}))))))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1227],{21227:function(A,a,t){t.d(a,{ReviewWorkflowsAssigneeEE:function(){return f},ReviewWorkflowsStageEE:function(){return O}});var e=t(32735),s=t(87933),T=t(72850),i=t(49372),r=t(45509),E=t(60216),n=t.n(E),o=t(2121),u=t(68886);function O({color:l,name:c}){const{themeColorName:_}=(0,u.k)(l);return e.createElement(s.k,{alignItems:"center",gap:2,maxWidth:(0,r.Q1)(300)},e.createElement(T.x,{height:2,background:l,borderColor:_==="neutral0"?"neutral150":"transparent",hasRadius:!0,shrink:0,width:2}),e.createElement(i.Z,{fontWeight:"regular",textColor:"neutral700",ellipsis:!0},c))}O.defaultProps={color:o.FT},O.propTypes={color:n().string,name:n().string.isRequired};var S=t(67879),W=t(69997);function f({user:l}){const{formatMessage:c}=(0,S.Z)();return e.createElement(i.Z,{textColor:"neutral800"},(0,W.Gf)(l,c))}f.propTypes={user:n().shape({firstname:n().string,lastname:n().string,username:n().string}).isRequired}},2121:function(A,a,t){t.d(a,{$k:function(){return l},Ef:function(){return v},FT:function(){return R},Nj:function(){return W},Ot:function(){return O},QM:function(){return o},VS:function(){return c},_X:function(){return C},bc:function(){return S},gu:function(){return T},k_:function(){return f},lv:function(){return _},qZ:function(){return n},rg:function(){return r},sN:function(){return s},uL:function(){return g},x4:function(){return u},yq:function(){return i},zn:function(){return E}});var e=t(12301);const s="settings_review-workflows",T="Settings/Review_Workflows/RESET_WORKFLOW",i="Settings/Review_Workflows/SET_CONTENT_TYPES",r="Settings/Review_Workflows/SET_IS_LOADING",E="Settings/Review_Workflows/SET_ROLES",n="Settings/Review_Workflows/SET_WORKFLOW",o="Settings/Review_Workflows/SET_WORKFLOWS",u="Settings/Review_Workflows/WORKFLOW_DELETE_STAGE",O="Settings/Review_Workflows/WORKFLOW_ADD_STAGE",S="Settings/Review_Workflows/WORKFLOW_CLONE_STAGE",W="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE",f="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGES",l="Settings/Review_Workflows/WORKFLOW_UPDATE_STAGE_POSITION",c="Settings/Review_Workflows/WORKFLOW_UPDATE",_={primary600:"Blue",primary200:"Lilac",alternative600:"Violet",alternative200:"Lavender",success600:"Green",success200:"Pale Green",danger500:"Cherry",danger200:"Pink",warning600:"Orange",warning200:"Yellow",secondary600:"Teal",secondary200:"Baby Blue",neutral400:"Gray",neutral0:"White"},R=e.W.colors.primary600,g={STAGE:"stage"},v="numberOfWorkflows",C="stagesPerWorkflow"},68886:function(A,a,t){t.d(a,{k:function(){return T},s:function(){return i}});var e=t(12301),s=t(2121);function T(r){if(!r)return null;const n=Object.entries(e.W.colors).filter(([,o])=>o.toUpperCase()===r.toUpperCase()).reduce((o,[u])=>(s.lv?.[u]&&(o=u),o),null);return n?{themeColorName:n,name:s.lv[n]}:null}function i(){return Object.entries(s.lv).map(([r,E])=>({hex:e.W.colors[r].toUpperCase(),name:E}))}}}]);
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1504],{88058:function(c,u,n){var t=n(87650);function r(e,s){var o=e==null?0:e.length;return!!o&&t(e,s,0)>-1}c.exports=r},37431:function(c){function u(n,t,r){for(var e=-1,s=n==null?0:n.length;++e<s;)if(r(t,n[e]))return!0;return!1}c.exports=u},91096:function(c,u,n){var t=n(61124),r=n(88058),e=n(37431),s=n(26460),o=n(76535),l=n(30555),i=200;function h(m,v,E,g){var a=-1,d=r,p=!0,x=m.length,f=[],j=v.length;if(!x)return f;E&&(v=s(v,o(E))),g?(d=e,p=!1):v.length>=i&&(d=l,p=!1,v=new t(v));n:for(;++a<x;){var _=m[a],M=E==null?_:E(_);if(_=g||_!==0?_:0,p&&M===M){for(var O=j;O--;)if(v[O]===M)continue n;f.push(_)}else d(v,M,g)||f.push(_)}return f}c.exports=h},56671:function(c,u,n){var t=n(35897),r=n(74741),e=r(t);c.exports=e},60528:function(c){function u(n,t,r,e){for(var s=n.length,o=r+(e?1:-1);e?o--:++o<s;)if(t(n[o],o,n))return o;return-1}c.exports=u},87650:function(c,u,n){var t=n(60528),r=n(25556),e=n(54256);function s(o,l,i){return l===l?e(o,l,i):t(o,r,i)}c.exports=s},25556:function(c){function u(n){return n!==n}c.exports=u},52920:function(c,u,n){var t=n(56671),r=n(81580);function e(s,o){var l=-1,i=r(s)?Array(s.length):[];return t(s,function(h,m,v){i[++l]=o(h,m,v)}),i}c.exports=e},50690:function(c,u,n){var t=n(26460),r=n(80166),e=n(88904),s=n(52920),o=n(36024),l=n(76535),i=n(1397),h=n(15362),m=n(77236);function v(E,g,a){g.length?g=t(g,function(x){return m(x)?function(f){return r(f,x.length===1?x[0]:x)}:x}):g=[h];var d=-1;g=t(g,l(e));var p=s(E,function(x,f,j){var _=t(g,function(M){return M(x)});return{criteria:_,index:++d,value:x}});return o(p,function(x,f){return i(x,f,a)})}c.exports=v},36024:function(c){function u(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}c.exports=u},40709:function(c,u,n){var t=n(22945);function r(e,s){if(e!==s){var o=e!==void 0,l=e===null,i=e===e,h=t(e),m=s!==void 0,v=s===null,E=s===s,g=t(s);if(!v&&!g&&!h&&e>s||h&&m&&E&&!v&&!g||l&&m&&E||!o&&E||!i)return 1;if(!l&&!h&&!g&&e<s||g&&o&&i&&!l&&!h||v&&o&&i||!m&&i||!E)return-1}return 0}c.exports=r},1397:function(c,u,n){var t=n(40709);function r(e,s,o){for(var l=-1,i=e.criteria,h=s.criteria,m=i.length,v=o.length;++l<m;){var E=t(i[l],h[l]);if(E){if(l>=v)return E;var g=o[l];return E*(g=="desc"?-1:1)}}return e.index-s.index}c.exports=r},74741:function(c,u,n){var t=n(81580);function r(e,s){return function(o,l){if(o==null)return o;if(!t(o))return e(o,l);for(var i=o.length,h=s?i:-1,m=Object(o);(s?h--:++h<i)&&l(m[h],h,m)!==!1;);return o}}c.exports=r},54256:function(c){function u(n,t,r){for(var e=r-1,s=n.length;++e<s;)if(n[e]===t)return e;return-1}c.exports=u},37213:function(c,u,n){var t=n(26460),r=n(88904),e=n(52920),s=n(77236);function o(l,i){var h=s(l)?t:e;return h(l,r(i,3))}c.exports=o},98978:function(c,u,n){var t=n(40314),r=n(50690),e=n(94569),s=n(63108),o=e(function(l,i){if(l==null)return[];var h=i.length;return h>1&&s(l,i[0],i[1])?i=[]:h>2&&s(i[0],i[1],i[2])&&(i=[i[0]]),r(l,t(i,1),[])});c.exports=o},15738:function(c,u,n){var t=n(4293);function r(e){var s=e==null?0:e.length;return s?t(e,1,s):[]}c.exports=r},88708:function(c,u,n){var t=n(4293),r=n(25225);function e(s,o,l){return s&&s.length?(o=l||o===void 0?1:r(o),t(s,0,o<0?0:o)):[]}c.exports=e},86205:function(c,u,n){var t=n(91096),r=n(94569),e=n(99747),s=r(function(o,l){return e(o)?t(o,l):[]});c.exports=s},83828:function(c,u,n){"use strict";n.d(u,{U:function(){return g},y:function(){return v}});var t=n(74512),r=n(32735),e=n(8471),s=n(91045),o=n(74971),l=n(49372),i=n(87933),h=n(72850);const m=({theme:a,expanded:d,variant:p,disabled:x,error:f})=>f?`1px solid ${a.colors.danger600} !important`:x?`1px solid ${a.colors.neutral150}`:d?`1px solid ${a.colors.primary600}`:p==="primary"?`1px solid ${a.colors.neutral0}`:`1px solid ${a.colors.neutral100}`,v=(0,e.ZP)(l.Z)``,E=(0,e.ZP)(h.x)`
|
|
2
|
-
border: ${m};
|
|
3
|
-
|
|
4
|
-
&:hover:not([aria-disabled='true']) {
|
|
5
|
-
border: 1px solid ${({theme:a})=>a.colors.primary600};
|
|
6
|
-
|
|
7
|
-
${v} {
|
|
8
|
-
color: ${({theme:a,expanded:d})=>d?void 0:a.colors.primary700};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
${l.Z} {
|
|
12
|
-
color: ${({theme:a,expanded:d})=>d?void 0:a.colors.primary600};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& > ${i.k} {
|
|
16
|
-
background: ${({theme:a})=>a.colors.primary100};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-strapi-dropdown='true'] {
|
|
20
|
-
background: ${({theme:a})=>a.colors.primary200};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`,g=({children:a,disabled:d=!1,error:p,expanded:x=!1,hasErrorMessage:f=!0,id:j,onToggle:_,toggle:M,size:O="M",variant:P="primary",shadow:B})=>{const y=(0,o.M)(j),A=r.useMemo(()=>({expanded:x,onToggle:_,toggle:M,id:y,size:O,variant:P,disabled:d}),[d,x,y,_,O,M,P]);return(0,t.jsxs)(s.S.Provider,{value:A,children:[(0,t.jsx)(E,{"data-strapi-expanded":x,disabled:d,"aria-disabled":d,expanded:x,hasRadius:!0,variant:P,error:p,shadow:B,children:a}),p&&f&&(0,t.jsx)(h.x,{paddingTop:1,children:(0,t.jsx)(l.Z,{variant:"pi",textColor:"danger600",children:p})})]})}},89966:function(c,u,n){"use strict";n.d(u,{v:function(){return s}});var t=n(74512),r=n(91045),e=n(72850);const s=({children:o,...l})=>{const{expanded:i,id:h}=(0,r.A)();if(!i)return null;const m=`accordion-content-${h}`,v=`accordion-label-${h}`,E=`accordion-desc-${h}`;return(0,t.jsx)(e.x,{role:"region",id:m,"aria-labelledby":v,"aria-describedby":E,...l,children:o})}},91045:function(c,u,n){"use strict";n.d(u,{A:function(){return e},S:function(){return r}});var t=n(32735);const r=(0,t.createContext)({disabled:!1,expanded:!1,id:"",size:"M",variant:"primary"}),e=()=>(0,t.useContext)(r)},61762:function(c,u,n){"use strict";n.d(u,{B:function(){return a}});var t=n(74512),r=n(16899),e=n(8471),s=n(83828),o=n(91045);const l=({expanded:d,disabled:p,variant:x})=>{let f="neutral100";return d?f="primary100":p?f="neutral150":x==="primary"&&(f="neutral0"),f};var i=n(7563),h=n(99140),m=n(87933),v=n(49372);const E=(0,e.ZP)(i.A)`
|
|
24
|
-
text-align: left;
|
|
25
|
-
|
|
26
|
-
// necessary to make the ellipsis prop work on the title
|
|
27
|
-
> span {
|
|
28
|
-
max-width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
svg {
|
|
32
|
-
width: ${14/16}rem;
|
|
33
|
-
height: ${14/16}rem;
|
|
34
|
-
|
|
35
|
-
path {
|
|
36
|
-
fill: ${({theme:d,expanded:p})=>p?d.colors.primary600:d.colors.neutral500};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`,g=(0,e.ZP)(m.k)`
|
|
40
|
-
min-height: ${({theme:d,size:p})=>d.sizes.accordions[p]};
|
|
41
|
-
border-radius: ${({theme:d,expanded:p})=>p?`${d.borderRadius} ${d.borderRadius} 0 0`:d.borderRadius};
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
svg {
|
|
45
|
-
path {
|
|
46
|
-
fill: ${({theme:d})=>d.colors.primary600};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`,a=({title:d,description:p,as:x="span",togglePosition:f="right",action:j,..._})=>{const{onToggle:M,toggle:O,expanded:P,id:B,size:y,variant:A,disabled:D}=(0,o.A)(),W=`accordion-content-${B}`,L=`accordion-label-${B}`,I=`accordion-desc-${B}`,C=y==="M"?6:4,b=y==="M"?C:C-2,U=l({expanded:P,disabled:D,variant:A}),K={as:x,fontWeight:y==="S"?"bold":void 0,id:L,textColor:P?"primary600":"neutral700",ellipsis:!0,variant:y==="M"?"delta":void 0},Z=P?"primary600":"neutral600",w=P?"primary200":"neutral200",T=y==="M"?`${32/16}rem`:`${24/16}rem`,R=()=>{D||(O&&!M?(console.warn('Deprecation warning: Usage of "toggle" prop in Accordion component is deprecated. This is discouraged and will be removed in the next major release. Please use "onToggle" instead'),O()):M&&M())},$=(0,t.jsx)(m.k,{justifyContent:"center",borderRadius:"50%",height:T,width:T,transform:P?"rotate(180deg)":void 0,"data-strapi-dropdown":!0,"aria-hidden":!0,as:"span",background:w,cursor:D?"not-allowed":"pointer",onClick:R,shrink:0,children:(0,t.jsx)(h.J,{as:r.Z,width:y==="M"?`${11/16}rem`:`${8/16}rem`,color:P?"primary600":"neutral600"})});return(0,t.jsx)(g,{paddingBottom:b,paddingLeft:C,paddingRight:C,paddingTop:b,background:U,expanded:P,size:y,justifyContent:"space-between",cursor:D?"not-allowed":"",children:(0,t.jsxs)(m.k,{gap:3,flex:1,maxWidth:"100%",children:[f==="left"&&$,(0,t.jsx)(E,{onClick:R,"aria-disabled":D,"aria-expanded":P,"aria-controls":W,"aria-labelledby":L,"data-strapi-accordion-toggle":!0,expanded:P,type:"button",flex:1,minWidth:0,..._,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.y,{...K,children:d}),p&&(0,t.jsx)(v.Z,{as:"p",id:I,textColor:Z,children:p})]})}),f==="right"&&(0,t.jsxs)(m.k,{gap:3,children:[$,j]}),f==="left"&&j]})})}},99223:function(c,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512),r=n(87933);const e=({startActions:s,endActions:o})=>!s&&!o?null:(0,t.jsxs)(r.k,{justifyContent:"space-between",alignItems:"flex-start",paddingBottom:4,paddingLeft:10,paddingRight:10,children:[(0,t.jsx)(r.k,{gap:2,wrap:"wrap",children:s}),(0,t.jsx)(r.k,{gap:2,shrink:0,wrap:"wrap",children:o})]})},17e3:function(c,u,n){"use strict";n.d(u,{D:function(){return e}});var t=n(74512),r=n(72850);const e=({children:s})=>(0,t.jsx)(r.x,{paddingLeft:10,paddingRight:10,children:s})},82055:function(c,u,n){"use strict";n.d(u,{T:function(){return v}});var t=n(74512),r=n(32735),e=n(8471);const s=a=>{const d=(0,r.useRef)(null),[p,x]=(0,r.useState)(!0),f=([j])=>{x(j.isIntersecting)};return(0,r.useEffect)(()=>{const j=d.current,_=new IntersectionObserver(f,a);return j&&_.observe(d.current),()=>{j&&_.disconnect()}},[d,a]),[d,p]};var o=n(81957);const l=(a,d)=>{const p=(0,o.W)(d);(0,r.useLayoutEffect)(()=>{const x=new ResizeObserver(p);return Array.isArray(a)?a.forEach(f=>{f.current&&x.observe(f.current)}):a.current&&x.observe(a.current),()=>{x.disconnect()}},[a,p])};var i=n(72850),h=n(87933),m=n(49372);const v=a=>{const d=(0,r.useRef)(null),[p,x]=(0,r.useState)(null),[f,j]=s({root:null,rootMargin:"0px",threshold:0});return l(f,()=>{f.current&&x(f.current.getBoundingClientRect())}),(0,r.useEffect)(()=>{d.current&&x(d.current.getBoundingClientRect())},[d]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:p?.height},ref:f,children:j&&(0,t.jsx)(g,{ref:d,...a})}),!j&&(0,t.jsx)(g,{...a,sticky:!0,width:p?.width})]})};v.displayName="HeaderLayout";const E=(0,e.ZP)(i.x)`
|
|
51
|
-
width: ${({width:a})=>a?`${a/16}rem`:void 0};
|
|
52
|
-
z-index: ${({theme:a})=>a.zIndices[1]};
|
|
53
|
-
`,g=r.forwardRef(({navigationAction:a,primaryAction:d,secondaryAction:p,subtitle:x,title:f,sticky:j,width:_,...M},O)=>{const P=typeof x=="string";return j?(0,t.jsx)(E,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:_,"data-strapi-header-sticky":!0,children:(0,t.jsxs)(h.k,{justifyContent:"space-between",children:[(0,t.jsxs)(h.k,{children:[a&&(0,t.jsx)(i.x,{paddingRight:3,children:a}),(0,t.jsxs)(i.x,{children:[(0,t.jsx)(m.Z,{variant:"beta",as:"h1",...M,children:f}),P?(0,t.jsx)(m.Z,{variant:"pi",textColor:"neutral600",children:x}):x]}),p?(0,t.jsx)(i.x,{paddingLeft:4,children:p}):null]}),(0,t.jsx)(h.k,{children:d?(0,t.jsx)(i.x,{paddingLeft:2,children:d}):void 0})]})}):(0,t.jsxs)(i.x,{ref:O,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:a?6:8,background:"neutral100","data-strapi-header":!0,children:[a?(0,t.jsx)(i.x,{paddingBottom:2,children:a}):null,(0,t.jsxs)(h.k,{justifyContent:"space-between",children:[(0,t.jsxs)(h.k,{minWidth:0,children:[(0,t.jsx)(m.Z,{as:"h1",variant:"alpha",...M,children:f}),p?(0,t.jsx)(i.x,{paddingLeft:4,children:p}):null]}),d]}),P?(0,t.jsx)(m.Z,{variant:"epsilon",textColor:"neutral600",as:"p",children:x}):x]})})},96709:function(c,u,n){"use strict";n.d(u,{A:function(){return l}});var t=n(74512),r=n(8471),e=n(72850);const s=(0,r.ZP)(e.x)`
|
|
54
|
-
display: grid;
|
|
55
|
-
grid-template-columns: ${({hasSideNav:i})=>i?"auto 1fr":"1fr"};
|
|
56
|
-
`,o=(0,r.ZP)(e.x)`
|
|
57
|
-
overflow-x: hidden;
|
|
58
|
-
`,l=({sideNav:i,children:h})=>(0,t.jsxs)(s,{hasSideNav:!!i,children:[i,(0,t.jsx)(o,{paddingBottom:10,children:h})]})},50428:function(c,u,n){"use strict";n.d(u,{r:function(){return E}});var t=n(74512),r=n(32735),e=n(47361),s=n(14911),o=n(8471),l=n(30350),i=n(49372),h=n(72850);const m=o.ZP.a`
|
|
59
|
-
display: inline-flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
pointer-events: ${({disabled:g})=>g?"none":void 0};
|
|
63
|
-
color: ${({disabled:g,theme:a})=>g?a.colors.neutral600:a.colors.primary600};
|
|
64
|
-
|
|
65
|
-
svg path {
|
|
66
|
-
transition: fill 150ms ease-out;
|
|
67
|
-
fill: currentColor;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
svg {
|
|
71
|
-
font-size: ${10/16}rem;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
${i.Z} {
|
|
75
|
-
transition: color 150ms ease-out;
|
|
76
|
-
color: currentColor;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&:hover {
|
|
80
|
-
color: ${({theme:g})=>g.colors.primary500};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&:active {
|
|
84
|
-
color: ${({theme:g})=>g.colors.primary700};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
${l.BF};
|
|
88
|
-
`,v=(0,o.ZP)(h.x)`
|
|
89
|
-
display: flex;
|
|
90
|
-
`,E=r.forwardRef(({children:g,href:a,to:d,disabled:p=!1,startIcon:x,endIcon:f,...j},_)=>(0,t.jsxs)(m,{as:d&&!p?s.OL:"a",target:a?"_blank":void 0,rel:a?"noreferrer noopener":void 0,to:p?void 0:d,href:p?"#":a,disabled:p,ref:_,...j,children:[x&&(0,t.jsx)(v,{as:"span","aria-hidden":!0,paddingRight:2,children:x}),(0,t.jsx)(i.Z,{children:g}),f&&!a&&(0,t.jsx)(v,{as:"span","aria-hidden":!0,paddingLeft:2,children:f}),a&&(0,t.jsx)(v,{as:"span","aria-hidden":!0,paddingLeft:2,children:(0,t.jsx)(e.Z,{})})]}))},27649:function(c,u,n){"use strict";n.d(u,{o:function(){return o}});var t=n(74512),r=n(8471),e=n(72850);const s=(0,r.ZP)(e.x)`
|
|
91
|
-
// To prevent global outline on focus visible to force an outline when Main is focused
|
|
92
|
-
&:focus-visible {
|
|
93
|
-
outline: none;
|
|
94
|
-
}
|
|
95
|
-
`,o=({labelledBy:l="main-content-title",...i})=>(0,t.jsx)(s,{"aria-labelledby":l,as:"main",id:"main-content",tabIndex:-1,...i})},29439:function(c,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const r=s=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...s,children:(0,t.jsx)("path",{fill:"#212134",d:"M24 13.3a.2.2 0 0 1-.2.2H5.74l8.239 8.239a.2.2 0 0 1 0 .282L12.14 23.86a.2.2 0 0 1-.282 0L.14 12.14a.2.2 0 0 1 0-.282L11.86.14a.2.2 0 0 1 .282 0L13.98 1.98a.2.2 0 0 1 0 .282L5.74 10.5H23.8c.11 0 .2.09.2.2v2.6Z"})}),e=r},45112:function(c,u,n){"use strict";n.d(u,{Z:function(){return e}});var t=n(74512);const r=s=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"none",viewBox:"0 0 24 24",...s,children:(0,t.jsx)("path",{fill:"#212134",fillRule:"evenodd",d:"M2.68 9.192c-.6.276-2.114 1.18-2.306 1.303a.792.792 0 0 0-.374.68v1.65a.797.797 0 0 0 .384.687c.254.16 1.73 1.042 2.306 1.303l.744 1.8c-.24.634-.67 2.333-.72 2.554a.797.797 0 0 0 .216.744l1.167 1.166a.801.801 0 0 0 .744.216l.03-.008c.36-.092 1.946-.498 2.523-.712l1.8.744c.276.6 1.181 2.115 1.304 2.307a.805.805 0 0 0 .679.374h1.649a.797.797 0 0 0 .686-.384c.16-.254 1.042-1.73 1.303-2.306l1.8-.744c.634.24 2.333.67 2.554.72a.797.797 0 0 0 .744-.216l1.166-1.167a.803.803 0 0 0 .216-.744l-.008-.03c-.092-.36-.498-1.946-.712-2.523l.744-1.8c.6-.276 2.115-1.181 2.307-1.304a.804.804 0 0 0 .374-.679v-1.649a.796.796 0 0 0-.382-.679c-.254-.16-1.73-1.041-2.306-1.303l-.744-1.8c.24-.634.67-2.333.72-2.554a.796.796 0 0 0-.216-.744l-1.166-1.173a.802.802 0 0 0-.744-.216l-.03.008c-.361.092-1.947.498-2.524.712l-1.8-.744c-.276-.6-1.18-2.115-1.303-2.307a.803.803 0 0 0-.68-.374h-1.65a.797.797 0 0 0-.68.382c-.16.254-1.041 1.73-1.303 2.306l-1.8.744c-.634-.24-2.333-.67-2.554-.72a.797.797 0 0 0-.744.216L2.921 4.094a.802.802 0 0 0-.216.744l.008.03c.092.361.498 1.947.712 2.524l-.744 1.8ZM12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z",clipRule:"evenodd"})}),e=r}}]);
|