@strapi/review-workflows 0.0.1 → 5.0.0-beta.11
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/dist/_chunks/Layout-BWzD-Tfe.js +252 -0
- package/dist/_chunks/Layout-BWzD-Tfe.js.map +1 -0
- package/dist/_chunks/Layout-D292CXD6.mjs +234 -0
- package/dist/_chunks/Layout-D292CXD6.mjs.map +1 -0
- package/dist/_chunks/_id-CoX9yljN.js +1274 -0
- package/dist/_chunks/_id-CoX9yljN.js.map +1 -0
- package/dist/_chunks/_id-DqEUzU_u.mjs +1254 -0
- package/dist/_chunks/_id-DqEUzU_u.mjs.map +1 -0
- package/dist/_chunks/en-D9ZrQAV6.mjs +12 -0
- package/dist/_chunks/en-D9ZrQAV6.mjs.map +1 -0
- package/dist/_chunks/en-xcewH2pC.js +12 -0
- package/dist/_chunks/en-xcewH2pC.js.map +1 -0
- package/dist/_chunks/index-2nkLt-AE.mjs +234 -0
- package/dist/_chunks/index-2nkLt-AE.mjs.map +1 -0
- package/dist/_chunks/index-CDMcvtW9.js +253 -0
- package/dist/_chunks/index-CDMcvtW9.js.map +1 -0
- package/dist/_chunks/index-D-KMrml_.js +819 -0
- package/dist/_chunks/index-D-KMrml_.js.map +1 -0
- package/dist/_chunks/index-udedGkii.mjs +801 -0
- package/dist/_chunks/index-udedGkii.mjs.map +1 -0
- package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs +52 -0
- package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs.map +1 -0
- package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js +52 -0
- package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js.map +1 -0
- package/dist/_chunks/router-C19H1Rju.js +24 -0
- package/dist/_chunks/router-C19H1Rju.js.map +1 -0
- package/dist/_chunks/router-bmjk-Tpf.mjs +24 -0
- package/dist/_chunks/router-bmjk-Tpf.mjs.map +1 -0
- package/dist/admin/index.js +4 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +5 -0
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/components/LimitsModal.d.ts +13 -0
- package/dist/admin/src/constants.d.ts +9 -0
- package/dist/admin/src/index.d.ts +3 -0
- package/dist/admin/src/modules/hooks.d.ts +7 -0
- package/dist/admin/src/router.d.ts +2 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/AssigneeSelect.d.ts +2 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/Panel.d.ts +3 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/StageSelect.d.ts +1 -0
- package/dist/admin/src/routes/content-manager/[model]/[id]/components/constants.d.ts +2 -0
- package/dist/admin/src/routes/content-manager/[model]/components/AssigneeFilter.d.ts +7 -0
- package/dist/admin/src/routes/content-manager/[model]/components/StageFilter.d.ts +8 -0
- package/dist/admin/src/routes/content-manager/[model]/components/TableColumns.d.ts +18 -0
- package/dist/admin/src/routes/content-manager/[model]/configure/constants.d.ts +7 -0
- package/dist/admin/src/routes/content-manager/[model]/constants.d.ts +71 -0
- package/dist/admin/src/routes/purchase-review-workflows.d.ts +2 -0
- package/dist/admin/src/routes/settings/:id.d.ts +2 -0
- package/dist/admin/src/routes/settings/components/AddStage.d.ts +2 -0
- package/dist/admin/src/routes/settings/components/Layout.d.ts +12 -0
- package/dist/admin/src/routes/settings/components/StageDragPreview.d.ts +6 -0
- package/dist/admin/src/routes/settings/components/Stages.d.ts +12 -0
- package/dist/admin/src/routes/settings/components/WorkflowAttributes.d.ts +6 -0
- package/dist/admin/src/routes/settings/constants.d.ts +2 -0
- package/dist/admin/src/routes/settings/hooks/useDragAndDrop.d.ts +51 -0
- package/dist/admin/src/routes/settings/hooks/useKeyboardDragAndDrop.d.ts +14 -0
- package/dist/admin/src/routes/settings/hooks/useReviewWorkflows.d.ts +25 -0
- package/dist/admin/src/routes/settings/index.d.ts +3 -0
- package/dist/admin/src/services/admin.d.ts +5 -0
- package/dist/admin/src/services/api.d.ts +2 -0
- package/dist/admin/src/services/content-manager.d.ts +38 -0
- package/dist/admin/src/services/settings.d.ts +13 -0
- package/dist/admin/src/utils/api.d.ts +23 -0
- package/dist/admin/src/utils/cm-hooks.d.ts +46 -0
- package/dist/admin/src/utils/colors.d.ts +9 -0
- package/dist/admin/src/utils/translations.d.ts +3 -0
- package/dist/admin/src/utils/users.d.ts +6 -0
- package/dist/server/index.js +8256 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +8257 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/bootstrap.d.ts +3 -0
- package/dist/server/src/bootstrap.d.ts.map +1 -0
- package/dist/server/src/config/actions.d.ts +19 -0
- package/dist/server/src/config/actions.d.ts.map +1 -0
- package/dist/server/src/constants/webhook-events.d.ts +6 -0
- package/dist/server/src/constants/webhook-events.d.ts.map +1 -0
- package/dist/server/src/constants/workflows.d.ts +34 -0
- package/dist/server/src/constants/workflows.d.ts.map +1 -0
- package/dist/server/src/content-types/index.d.ts +90 -0
- package/dist/server/src/content-types/index.d.ts.map +1 -0
- package/dist/server/src/content-types/workflow/index.d.ts +41 -0
- package/dist/server/src/content-types/workflow/index.d.ts.map +1 -0
- package/dist/server/src/content-types/workflow-stage/index.d.ts +49 -0
- package/dist/server/src/content-types/workflow-stage/index.d.ts.map +1 -0
- package/dist/server/src/controllers/assignees.d.ts +19 -0
- package/dist/server/src/controllers/assignees.d.ts.map +1 -0
- package/dist/server/src/controllers/index.d.ts +21 -0
- package/dist/server/src/controllers/index.d.ts.map +1 -0
- package/dist/server/src/controllers/stages.d.ts +39 -0
- package/dist/server/src/controllers/stages.d.ts.map +1 -0
- package/dist/server/src/controllers/workflows.d.ts +32 -0
- package/dist/server/src/controllers/workflows.d.ts.map +1 -0
- package/dist/server/src/destroy.d.ts +6 -0
- package/dist/server/src/destroy.d.ts.map +1 -0
- package/dist/server/src/index.d.ts +322 -0
- package/dist/server/src/index.d.ts.map +1 -0
- package/dist/server/src/middlewares/review-workflows.d.ts +17 -0
- package/dist/server/src/middlewares/review-workflows.d.ts.map +1 -0
- package/dist/server/src/migrations/handle-deleted-ct-in-workflows.d.ts +6 -0
- package/dist/server/src/migrations/handle-deleted-ct-in-workflows.d.ts.map +1 -0
- package/dist/server/src/migrations/multiple-workflows.d.ts +3 -0
- package/dist/server/src/migrations/multiple-workflows.d.ts.map +1 -0
- package/dist/server/src/migrations/set-stages-default-color.d.ts +6 -0
- package/dist/server/src/migrations/set-stages-default-color.d.ts.map +1 -0
- package/dist/server/src/migrations/set-stages-roles.d.ts +6 -0
- package/dist/server/src/migrations/set-stages-roles.d.ts.map +1 -0
- package/dist/server/src/migrations/set-workflow-default-name.d.ts +7 -0
- package/dist/server/src/migrations/set-workflow-default-name.d.ts.map +1 -0
- package/dist/server/src/migrations/shorten-stage-attribute.d.ts +6 -0
- package/dist/server/src/migrations/shorten-stage-attribute.d.ts.map +1 -0
- package/dist/server/src/register.d.ts +6 -0
- package/dist/server/src/register.d.ts.map +1 -0
- package/dist/server/src/routes/index.d.ts +21 -0
- package/dist/server/src/routes/index.d.ts.map +1 -0
- package/dist/server/src/routes/review-workflows.d.ts +19 -0
- package/dist/server/src/routes/review-workflows.d.ts.map +1 -0
- package/dist/server/src/routes/utils.d.ts +2 -0
- package/dist/server/src/routes/utils.d.ts.map +1 -0
- package/dist/server/src/services/assignees.d.ts +13 -0
- package/dist/server/src/services/assignees.d.ts.map +1 -0
- package/dist/server/src/services/document-service-middleware.d.ts +7 -0
- package/dist/server/src/services/document-service-middleware.d.ts.map +1 -0
- package/dist/server/src/services/index.d.ts +92 -0
- package/dist/server/src/services/index.d.ts.map +1 -0
- package/dist/server/src/services/metrics/index.d.ts +21 -0
- package/dist/server/src/services/metrics/index.d.ts.map +1 -0
- package/dist/server/src/services/metrics/weekly-metrics.d.ts +16 -0
- package/dist/server/src/services/metrics/weekly-metrics.d.ts.map +1 -0
- package/dist/server/src/services/stage-permissions.d.ts +11 -0
- package/dist/server/src/services/stage-permissions.d.ts.map +1 -0
- package/dist/server/src/services/stages.d.ts +46 -0
- package/dist/server/src/services/stages.d.ts.map +1 -0
- package/dist/server/src/services/validation.d.ts +26 -0
- package/dist/server/src/services/validation.d.ts.map +1 -0
- package/dist/server/src/services/workflow-content-types.d.ts +21 -0
- package/dist/server/src/services/workflow-content-types.d.ts.map +1 -0
- package/dist/server/src/services/workflows.d.ts +84 -0
- package/dist/server/src/services/workflows.d.ts.map +1 -0
- package/dist/server/src/utils/index.d.ts +17 -0
- package/dist/server/src/utils/index.d.ts.map +1 -0
- package/dist/server/src/utils/review-workflows.d.ts +31 -0
- package/dist/server/src/utils/review-workflows.d.ts.map +1 -0
- package/dist/server/src/validation/review-workflows.d.ts +31 -0
- package/dist/server/src/validation/review-workflows.d.ts.map +1 -0
- package/dist/shared/contracts/review-workflows.d.ts +152 -0
- package/dist/shared/contracts/review-workflows.d.ts.map +1 -0
- package/package.json +42 -19
- package/strapi-server.js +3 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
declare const _default: ({ strapi }: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
computeMetrics(): Promise<{
|
|
6
|
+
numberOfActiveWorkflows: number;
|
|
7
|
+
avgStagesCount: number;
|
|
8
|
+
maxStagesCount: unknown;
|
|
9
|
+
activatedContentTypes: number;
|
|
10
|
+
}>;
|
|
11
|
+
sendMetrics(): Promise<void>;
|
|
12
|
+
ensureWeeklyStoredCronSchedule(): Promise<any>;
|
|
13
|
+
registerCron(): Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=weekly-metrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weekly-metrics.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/metrics/weekly-metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAUd;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;;;;;;;;;AAAnD,wBAiEE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
declare const _default: ({ strapi }: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
register({ roleId, action, fromStage }: any): Promise<any>;
|
|
6
|
+
registerMany(permissions: any): Promise<any>;
|
|
7
|
+
unregister(permissions: any): Promise<void>;
|
|
8
|
+
can(action: any, fromStage: any): any;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=stage-permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-permissions.d.ts","sourceRoot":"","sources":["../../../../server/src/services/stage-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCASd;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;4CAKD,GAAG;8BAgBjB,GAAG;4BAGL,GAAG;gBAIrB,GAAG,aAAa,GAAG;;AA5BnC,wBA+CE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
declare const _default: ({ strapi }: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
find({ workflowId, populate }: any): Promise<any[]>;
|
|
6
|
+
findById(id: string | number, { populate }?: any): Promise<any>;
|
|
7
|
+
createMany(stagesList: any, { fields }?: any): Promise<any[]>;
|
|
8
|
+
update(srcStage: any, destStage: any): Promise<any>;
|
|
9
|
+
delete(stage: any): Promise<any>;
|
|
10
|
+
deleteMany(stages: any): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
11
|
+
deleteStagePermissions(stages: any): Promise<void>;
|
|
12
|
+
count({ workflowId }?: any): Promise<number>;
|
|
13
|
+
replaceStages(srcStages: any, destStages: any, contentTypesToMigrate?: never[]): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Update the stage of an entity
|
|
16
|
+
*
|
|
17
|
+
* @param {object} entityInfo
|
|
18
|
+
* @param {number} entityInfo.id - Entity id
|
|
19
|
+
* @param {string} entityInfo.modelUID - the content-type of the entity
|
|
20
|
+
* @param {number} stageId - The id of the stage to assign to the entity
|
|
21
|
+
*/
|
|
22
|
+
updateEntity(entityInfo: any, stageId: any): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Updates entity stages of a content type:
|
|
25
|
+
* - If fromStageId is undefined, all entities with an existing stage will be assigned the new stage
|
|
26
|
+
* - If fromStageId is null, all entities without a stage will be assigned the new stage
|
|
27
|
+
* - If fromStageId is a number, all entities with that stage will be assigned the new stage
|
|
28
|
+
*
|
|
29
|
+
* For performance reasons we use knex queries directly.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} contentTypeUID
|
|
32
|
+
* @param {number | undefined | null} fromStageId
|
|
33
|
+
* @param {number} toStageId
|
|
34
|
+
* @param {import('knex').Knex.Transaction} trx
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
updateEntitiesStage(contentTypeUID: any, { fromStageId, toStageId }: any): Promise<number | number[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Deletes all entity stages of a content type
|
|
40
|
+
* @param {string} contentTypeUID
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
deleteAllEntitiesStage(contentTypeUID: any): Promise<number>;
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
//# sourceMappingURL=stages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../../../server/src/services/stages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAUd;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;mCAMhB,GAAG;iBAOrB,MAAM,GAAG,MAAM,iBAAgB,GAAG;2BAOlB,GAAG,eAAc,GAAG;qBA+C1B,GAAG,aAAa,GAAG;kBA8BtB,GAAG;uBAaE,GAAG;mCAQS,GAAG;2BAMlB,GAAG;6BAYM,GAAG,cAAc,GAAG;IAkDnD;;;;;;;OAOG;6BAC4B,GAAG,WAAW,GAAG;IAsBhD;;;;;;;;;;;;;OAaG;wCACuC,GAAG,8BAA8B,GAAG;IAwC9E;;;;OAIG;2CAC0C,GAAG;;AAnRpD,wBA6RE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
declare const _default: ({ strapi }: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
limits: {
|
|
6
|
+
numberOfWorkflows: number;
|
|
7
|
+
stagesPerWorkflow: number;
|
|
8
|
+
};
|
|
9
|
+
register({ numberOfWorkflows, stagesPerWorkflow }: any): void;
|
|
10
|
+
/**
|
|
11
|
+
* Validates the stages of a workflow.
|
|
12
|
+
* @param {Array} stages - Array of stages to be validated.
|
|
13
|
+
* @throws {ValidationError} - If the workflow has no stages or exceeds the limit.
|
|
14
|
+
*/
|
|
15
|
+
validateWorkflowStages(stages: any): void;
|
|
16
|
+
validateWorkflowCountStages(workflowId: any, countAddedStages?: number): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Validates the count of existing and added workflows.
|
|
19
|
+
* @param {number} [countAddedWorkflows=0] - The count of workflows to be added.
|
|
20
|
+
* @throws {ValidationError} - If the total count of workflows exceeds the limit.
|
|
21
|
+
* @returns {Promise<void>} - A Promise that resolves when the validation is completed.
|
|
22
|
+
*/
|
|
23
|
+
validateWorkflowCount(countAddedWorkflows?: number): Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
26
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../server/src/services/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCASd;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;;;;;uDAMI,GAAG;IAWtD;;;;OAIG;mCAC4B,GAAG;4CAcY,GAAG;IASjD;;;;;OAKG;;;AAlDP,wBA2DE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
declare const _default: ({ strapi }: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
/**
|
|
6
|
+
* Migrates entities stages. Used when a content type is assigned to a workflow.
|
|
7
|
+
* @param {*} options
|
|
8
|
+
* @param {Array<string>} options.srcContentTypes - The content types assigned to the previous workflow
|
|
9
|
+
* @param {Array<string>} options.destContentTypes - The content types assigned to the new workflow
|
|
10
|
+
* @param {Workflow.Stage} options.stageId - The new stage to assign the entities to
|
|
11
|
+
*/
|
|
12
|
+
migrate({ srcContentTypes, destContentTypes, stageId }: any): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Filters the content types assigned to a workflow
|
|
15
|
+
* @param {Workflow} srcWorkflow - The workflow to transfer from
|
|
16
|
+
* @param {string} uid - The content type uid
|
|
17
|
+
*/
|
|
18
|
+
transferContentTypes(srcWorkflow: any, uid: any): Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=workflow-content-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-content-types.d.ts","sourceRoot":"","sources":["../../../../server/src/services/workflow-content-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAMd;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IAiB/C;;;;;;OAMG;4DACgE,GAAG;IAqCtE;;;;OAIG;sCACqC,GAAG,OAAO,GAAG;;AAlEzD,wBA8EE"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
declare const _default: ({ strapi }: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
/**
|
|
6
|
+
* Returns all the workflows matching the user-defined filters.
|
|
7
|
+
* @param {object} opts - Options for the query.
|
|
8
|
+
* @param {object} opts.filters - Filters object.
|
|
9
|
+
* @returns {Promise<object[]>} - List of workflows that match the user's filters.
|
|
10
|
+
*/
|
|
11
|
+
find(opts?: any): Promise<any[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the workflow with the specified ID.
|
|
14
|
+
* @param {string} id - ID of the requested workflow.
|
|
15
|
+
* @param {object} opts - Options for the query.
|
|
16
|
+
* @returns {Promise<object>} - Workflow object matching the requested ID.
|
|
17
|
+
*/
|
|
18
|
+
findById(id: any, opts?: {
|
|
19
|
+
populate?: any;
|
|
20
|
+
}): Promise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new workflow.
|
|
23
|
+
* @param {object} opts - Options for creating the new workflow.
|
|
24
|
+
* @returns {Promise<object>} - Workflow object that was just created.
|
|
25
|
+
* @throws {ValidationError} - If the workflow has no stages.
|
|
26
|
+
*/
|
|
27
|
+
create(opts: {
|
|
28
|
+
data: any;
|
|
29
|
+
}): Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* Updates an existing workflow.
|
|
32
|
+
* @param {object} workflow - The existing workflow to update.
|
|
33
|
+
* @param {object} opts - Options for updating the workflow.
|
|
34
|
+
* @returns {Promise<object>} - Workflow object that was just updated.
|
|
35
|
+
* @throws {ApplicationError} - If the supplied stage ID does not belong to the workflow.
|
|
36
|
+
*/
|
|
37
|
+
update(workflow: any, opts: any): Promise<any>;
|
|
38
|
+
/**
|
|
39
|
+
* Deletes an existing workflow.
|
|
40
|
+
* Also deletes all the workflow stages and migrate all assigned the content types.
|
|
41
|
+
* @param {*} workflow
|
|
42
|
+
* @param {*} opts
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
delete(workflow: any, opts: any): Promise<any>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the total count of workflows.
|
|
48
|
+
* @returns {Promise<number>} - Total count of workflows.
|
|
49
|
+
*/
|
|
50
|
+
count(): Promise<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Finds the assigned workflow for a given content type ID.
|
|
53
|
+
* @param {string} uid - Content type ID to find the assigned workflow for.
|
|
54
|
+
* @param {object} opts - Options for the query.
|
|
55
|
+
* @returns {Promise<object|null>} - Assigned workflow object if found, or null.
|
|
56
|
+
*/
|
|
57
|
+
getAssignedWorkflow(uid: any, opts?: any): Promise<any>;
|
|
58
|
+
/**
|
|
59
|
+
* Finds all the assigned workflows for a given content type ID.
|
|
60
|
+
* Normally, there should only be one workflow assigned to a content type.
|
|
61
|
+
* However, edge cases can occur where a content type is assigned to multiple workflows.
|
|
62
|
+
* @param {string} uid - Content type ID to find the assigned workflows for.
|
|
63
|
+
* @param {object} opts - Options for the query.
|
|
64
|
+
* @returns {Promise<object[]>} - List of assigned workflow objects.
|
|
65
|
+
*/
|
|
66
|
+
_getAssignedWorkflows(uid: any, opts?: {}): Promise<any[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Asserts that a content type has an assigned workflow.
|
|
69
|
+
* @param {string} uid - Content type ID to verify the assignment of.
|
|
70
|
+
* @returns {Promise<object>} - Workflow object associated with the content type ID.
|
|
71
|
+
* @throws {ApplicationError} - If no assigned workflow is found for the content type ID.
|
|
72
|
+
*/
|
|
73
|
+
assertContentTypeBelongsToWorkflow(uid: any): Promise<any>;
|
|
74
|
+
/**
|
|
75
|
+
* Asserts that a stage belongs to a given workflow.
|
|
76
|
+
* @param {string} stageId - ID of stage to check.
|
|
77
|
+
* @param {object} workflow - Workflow object to check against.
|
|
78
|
+
* @returns
|
|
79
|
+
* @throws {ApplicationError} - If the stage does not belong to the specified workflow.
|
|
80
|
+
*/
|
|
81
|
+
assertStageBelongsToWorkflow(stageId: any, workflow: any): void;
|
|
82
|
+
};
|
|
83
|
+
export default _default;
|
|
84
|
+
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../server/src/services/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCA4Bd;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IAM/C;;;;;OAKG;gBACc,GAAG;IAapB;;;;;OAKG;iBACU,GAAG,SAAQ;QAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;KAAE;IAW1C;;;;;OAKG;iBACgB;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE;IA8BhC;;;;;;OAMG;qBACoB,GAAG,QAAQ,GAAG;IA2CrC;;;;;;OAMG;qBACoB,GAAG,QAAQ,GAAG;IA2BrC;;;OAGG;;IAKH;;;;;OAKG;6BAC4B,GAAG,SAAQ,GAAG;IAM7C;;;;;;;OAOG;+BAC8B,GAAG;IAOpC;;;;;OAKG;4CAC2C,GAAG;IAcjD;;;;;;OAMG;0CACmC,GAAG,YAAY,GAAG;;AAhO5D,wBA2OE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
export declare const getAdminService: (name: string, { strapi }?: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => Core.Service;
|
|
5
|
+
export declare const getService: (name: string, { strapi }?: {
|
|
6
|
+
strapi: Core.Strapi;
|
|
7
|
+
}) => Core.Service;
|
|
8
|
+
declare const _default: {
|
|
9
|
+
getAdminService: (name: string, { strapi }?: {
|
|
10
|
+
strapi: Core.Strapi;
|
|
11
|
+
}) => Core.Service;
|
|
12
|
+
getService: (name: string, { strapi }?: {
|
|
13
|
+
strapi: Core.Strapi;
|
|
14
|
+
}) => Core.Service;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAO,MAAM,eAAe,SACpB,MAAM,eACA;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE,iBAGpC,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM;;kBAEtC,CAAC;;;;;;;;;AAEF,wBAGE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Core } from '@strapi/types';
|
|
2
|
+
export declare const getVisibleContentTypesUID: (...args: any[]) => any;
|
|
3
|
+
export declare const hasStageAttribute: import("lodash/fp").LodashHas1x1;
|
|
4
|
+
export declare const getWorkflowContentTypeFilter: ({ strapi }: {
|
|
5
|
+
strapi: Core.Strapi;
|
|
6
|
+
}, contentType: any) => {
|
|
7
|
+
$jsonSupersetOf: string;
|
|
8
|
+
$contains?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
$contains: string;
|
|
11
|
+
$jsonSupersetOf?: undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const clampMaxWorkflows: import("lodash/fp").LodashClamp1x3;
|
|
14
|
+
export declare const clampMaxStagesPerWorkflow: import("lodash/fp").LodashClamp1x3;
|
|
15
|
+
declare const _default: {
|
|
16
|
+
clampMaxWorkflows: import("lodash/fp").LodashClamp1x3;
|
|
17
|
+
clampMaxStagesPerWorkflow: import("lodash/fp").LodashClamp1x3;
|
|
18
|
+
getVisibleContentTypesUID: (...args: any[]) => any;
|
|
19
|
+
hasStageAttribute: import("lodash/fp").LodashHas1x1;
|
|
20
|
+
getWorkflowContentTypeFilter: ({ strapi }: {
|
|
21
|
+
strapi: Core.Strapi;
|
|
22
|
+
}, contentType: any) => {
|
|
23
|
+
$jsonSupersetOf: string;
|
|
24
|
+
$contains?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
$contains: string;
|
|
27
|
+
$jsonSupersetOf?: undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=review-workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-workflows.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/review-workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ1C,eAAO,MAAM,yBAAyB,yBASpC,CAAC;AAEH,eAAO,MAAM,iBAAiB,kCAA8C,CAAC;AAE7E,eAAO,MAAM,4BAA4B,eAC3B;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE,eACtB,GAAG;;;;;;CAMjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,oCAA0B,CAAC;AACzD,eAAO,MAAM,yBAAyB,oCAAoC,CAAC;;;;;;;;;;;;;;;;AAE3E,wBAME"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { yup } from '@strapi/utils';
|
|
2
|
+
export declare const validateWorkflowCreate: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
3
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
|
+
stages: any;
|
|
5
|
+
contentTypes: yup.ArraySchema<import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>, import("yup/lib/types").AnyObject, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
6
|
+
}>>>;
|
|
7
|
+
export declare const validateUpdateStageOnEntity: (body: unknown, errorMessage?: string | undefined) => Promise<any>;
|
|
8
|
+
export declare const validateUpdateAssigneeOnEntity: (body: unknown, errorMessage?: string | undefined) => Promise<any>;
|
|
9
|
+
export declare const validateWorkflowUpdate: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
10
|
+
name: import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
11
|
+
stages: any;
|
|
12
|
+
contentTypes: yup.ArraySchema<import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>, import("yup/lib/types").AnyObject, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
13
|
+
}>>>;
|
|
14
|
+
export declare const validateLocale: (body: unknown, errorMessage?: string | undefined) => Promise<string | null | undefined>;
|
|
15
|
+
declare const _default: {
|
|
16
|
+
validateWorkflowCreate: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
17
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
18
|
+
stages: any;
|
|
19
|
+
contentTypes: yup.ArraySchema<import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>, import("yup/lib/types").AnyObject, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
20
|
+
}>>>;
|
|
21
|
+
validateUpdateStageOnEntity: (body: unknown, errorMessage?: string | undefined) => Promise<any>;
|
|
22
|
+
validateUpdateAssigneeOnEntity: (body: unknown, errorMessage?: string | undefined) => Promise<any>;
|
|
23
|
+
validateWorkflowUpdate: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
24
|
+
name: import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>;
|
|
25
|
+
stages: any;
|
|
26
|
+
contentTypes: yup.ArraySchema<import("yup").StringSchema<string | undefined, Record<string, any>, string | undefined>, import("yup/lib/types").AnyObject, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
27
|
+
}>>>;
|
|
28
|
+
validateLocale: (body: unknown, errorMessage?: string | undefined) => Promise<string | null | undefined>;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=review-workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-workflows.d.ts","sourceRoot":"","sources":["../../../../server/src/validation/review-workflows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;AAsFvD,eAAO,MAAM,sBAAsB;;;;IAAkD,CAAC;AACtF,eAAO,MAAM,2BAA2B,oEAAuD,CAAC;AAChG,eAAO,MAAM,8BAA8B,oEAE1C,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;IAAkD,CAAC;AACtF,eAAO,MAAM,cAAc,0FAA0C,CAAC;;;;;;;;;;;;;;;;AAEtE,wBAME"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { UID, Modules } from '@strapi/types';
|
|
2
|
+
import type { Permission } from '@strapi/admin/strapi-admin';
|
|
3
|
+
import type { errors } from '@strapi/utils';
|
|
4
|
+
type Entity = Modules.EntityService.Result<UID.Schema>;
|
|
5
|
+
/**
|
|
6
|
+
* /content-manager/<collection-type | single-type>/:model/:id/assignee
|
|
7
|
+
*/
|
|
8
|
+
declare namespace UpdateAssignee {
|
|
9
|
+
interface Request {
|
|
10
|
+
body: {
|
|
11
|
+
data: {
|
|
12
|
+
id: Entity['id'] | null;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
query: {};
|
|
16
|
+
}
|
|
17
|
+
interface Params {
|
|
18
|
+
model: string;
|
|
19
|
+
id: Entity['id'];
|
|
20
|
+
}
|
|
21
|
+
interface Response {
|
|
22
|
+
data: Entity;
|
|
23
|
+
error?: errors.ApplicationError;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
interface StagePermission extends Omit<Permission, 'createdAt' | 'updatedAt' | 'properties' | 'conditions'> {
|
|
27
|
+
role: number;
|
|
28
|
+
}
|
|
29
|
+
interface Stage extends Entity {
|
|
30
|
+
color: string;
|
|
31
|
+
name: string;
|
|
32
|
+
permissions?: StagePermission[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* GET /content-manager/<collection-type | single-type>/:model/:id/stages
|
|
36
|
+
*/
|
|
37
|
+
declare namespace GetStages {
|
|
38
|
+
interface Request {
|
|
39
|
+
body: {};
|
|
40
|
+
query: {};
|
|
41
|
+
}
|
|
42
|
+
interface Params {
|
|
43
|
+
model: string;
|
|
44
|
+
id: Entity['id'];
|
|
45
|
+
}
|
|
46
|
+
interface Response {
|
|
47
|
+
data: Stage[];
|
|
48
|
+
meta?: {
|
|
49
|
+
workflowCount: number;
|
|
50
|
+
};
|
|
51
|
+
error?: errors.ApplicationError;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* PUT /content-manager/<collection-type | single-type>/:model/:id/stage
|
|
56
|
+
*/
|
|
57
|
+
declare namespace UpdateStage {
|
|
58
|
+
interface Request {
|
|
59
|
+
body: {
|
|
60
|
+
data: {
|
|
61
|
+
id: Entity['id'];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
query: {};
|
|
65
|
+
}
|
|
66
|
+
interface Params {
|
|
67
|
+
model: string;
|
|
68
|
+
id: Entity['id'];
|
|
69
|
+
}
|
|
70
|
+
interface Response {
|
|
71
|
+
data: Entity;
|
|
72
|
+
error?: errors.ApplicationError;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
interface Stage extends Entity {
|
|
76
|
+
color: string;
|
|
77
|
+
name: string;
|
|
78
|
+
permissions?: StagePermission[];
|
|
79
|
+
}
|
|
80
|
+
interface Workflow extends Entity {
|
|
81
|
+
name: string;
|
|
82
|
+
contentTypes: string[];
|
|
83
|
+
stages: Stage[];
|
|
84
|
+
}
|
|
85
|
+
declare namespace GetAll {
|
|
86
|
+
interface Request {
|
|
87
|
+
body: {};
|
|
88
|
+
query: Modules.EntityService.Params.Pick<'admin::review-workflow', 'filters' | 'populate:string'>;
|
|
89
|
+
}
|
|
90
|
+
interface Response {
|
|
91
|
+
data: Workflow[];
|
|
92
|
+
meta?: {
|
|
93
|
+
workflowCount: number;
|
|
94
|
+
};
|
|
95
|
+
error?: errors.ApplicationError;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
declare namespace Get {
|
|
99
|
+
interface Request {
|
|
100
|
+
body: {};
|
|
101
|
+
query: {};
|
|
102
|
+
}
|
|
103
|
+
interface Params {
|
|
104
|
+
id: Entity['id'];
|
|
105
|
+
}
|
|
106
|
+
interface Response {
|
|
107
|
+
data: Workflow;
|
|
108
|
+
error?: errors.ApplicationError;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
declare namespace Update {
|
|
112
|
+
interface Request {
|
|
113
|
+
body: {
|
|
114
|
+
data: Partial<Workflow>;
|
|
115
|
+
};
|
|
116
|
+
query: {};
|
|
117
|
+
}
|
|
118
|
+
interface Params {
|
|
119
|
+
id: Entity['id'];
|
|
120
|
+
}
|
|
121
|
+
interface Response {
|
|
122
|
+
data: Workflow;
|
|
123
|
+
error?: errors.ApplicationError;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
declare namespace Create {
|
|
127
|
+
interface Request {
|
|
128
|
+
body: {
|
|
129
|
+
data: Omit<Workflow, 'id' | 'createdAt' | 'updatedAt'>;
|
|
130
|
+
};
|
|
131
|
+
query: {};
|
|
132
|
+
}
|
|
133
|
+
interface Response {
|
|
134
|
+
data: Workflow;
|
|
135
|
+
error?: errors.ApplicationError;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
declare namespace Delete {
|
|
139
|
+
interface Request {
|
|
140
|
+
body: {};
|
|
141
|
+
query: {};
|
|
142
|
+
}
|
|
143
|
+
interface Params {
|
|
144
|
+
id: Entity['id'];
|
|
145
|
+
}
|
|
146
|
+
interface Response {
|
|
147
|
+
data: Workflow;
|
|
148
|
+
error?: errors.ApplicationError;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
export type { Stage, Workflow, GetAll, Get, Update, Create, Delete, UpdateAssignee, UpdateStage, GetStages, StagePermission, };
|
|
152
|
+
//# sourceMappingURL=review-workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-workflows.d.ts","sourceRoot":"","sources":["../../../shared/contracts/review-workflows.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/review-workflows",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "5.0.0-beta.11",
|
|
4
4
|
"description": "Review workflows for your content",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,48 +20,70 @@
|
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"exports": {
|
|
23
|
+
"./strapi-admin": {
|
|
24
|
+
"types": "./dist/admin/src/index.d.ts",
|
|
25
|
+
"source": "./admin/src/index.ts",
|
|
26
|
+
"import": "./dist/admin/index.mjs",
|
|
27
|
+
"require": "./dist/admin/index.js",
|
|
28
|
+
"default": "./dist/admin/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./strapi-server": {
|
|
31
|
+
"types": "./dist/server/src/index.d.ts",
|
|
32
|
+
"source": "./server/src/index.ts",
|
|
33
|
+
"import": "./dist/server/index.mjs",
|
|
34
|
+
"require": "./dist/server/index.js",
|
|
35
|
+
"default": "./dist/server/index.js"
|
|
36
|
+
},
|
|
23
37
|
"./package.json": "./package.json"
|
|
24
38
|
},
|
|
25
|
-
"files": [
|
|
39
|
+
"files": [
|
|
40
|
+
"dist/",
|
|
41
|
+
"strapi-server.js"
|
|
42
|
+
],
|
|
26
43
|
"scripts": {
|
|
27
44
|
"build": "pack-up build",
|
|
28
45
|
"clean": "run -T rimraf ./dist",
|
|
46
|
+
"lint": "run -T eslint .",
|
|
29
47
|
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
|
|
30
|
-
"test:ts": "run -T tsc -p tsconfig.json",
|
|
31
48
|
"test:ts:back": "run -T tsc --noEmit -p server/tsconfig.json",
|
|
32
|
-
"test:ts:front": "run -T tsc -p admin/tsconfig.json
|
|
49
|
+
"test:ts:front": "run -T tsc -p admin/tsconfig.json",
|
|
33
50
|
"test:unit": "run -T jest",
|
|
51
|
+
"test:unit:watch": "run -T jest --watch",
|
|
34
52
|
"watch": "pack-up watch"
|
|
35
53
|
},
|
|
36
54
|
"dependencies": {
|
|
37
55
|
"@reduxjs/toolkit": "1.9.7",
|
|
38
|
-
"@strapi/design-system": "
|
|
39
|
-
"@strapi/icons": "
|
|
40
|
-
"
|
|
56
|
+
"@strapi/design-system": "2.0.0-beta.6",
|
|
57
|
+
"@strapi/icons": "2.0.0-beta.6",
|
|
58
|
+
"@strapi/utils": "5.0.0-beta.1",
|
|
59
|
+
"fractional-indexing": "3.2.0",
|
|
60
|
+
"react-dnd": "16.0.1",
|
|
61
|
+
"react-dnd-html5-backend": "16.0.1",
|
|
41
62
|
"react-helmet": "^6.1.0",
|
|
42
63
|
"react-intl": "6.6.2",
|
|
43
64
|
"react-redux": "8.1.3",
|
|
44
65
|
"yup": "0.32.9"
|
|
45
66
|
},
|
|
46
67
|
"devDependencies": {
|
|
47
|
-
"@strapi/admin": "5.0.0-beta.
|
|
48
|
-
"@strapi/
|
|
49
|
-
"@strapi/
|
|
50
|
-
"@strapi/types": "5.0.0-beta.
|
|
51
|
-
"@strapi/utils": "5.0.0-beta.
|
|
68
|
+
"@strapi/admin": "5.0.0-beta.11",
|
|
69
|
+
"@strapi/content-manager": "5.0.0-beta.11",
|
|
70
|
+
"@strapi/pack-up": "5.0.0",
|
|
71
|
+
"@strapi/types": "5.0.0-beta.11",
|
|
72
|
+
"@strapi/utils": "5.0.0-beta.10",
|
|
73
|
+
"@testing-library/react": "15.0.7",
|
|
52
74
|
"msw": "1.3.0",
|
|
53
|
-
"react": "
|
|
54
|
-
"react-dom": "
|
|
75
|
+
"react": "18.3.1",
|
|
76
|
+
"react-dom": "18.3.1",
|
|
55
77
|
"react-router-dom": "6.22.3",
|
|
56
|
-
"styled-components": "
|
|
78
|
+
"styled-components": "6.1.8"
|
|
57
79
|
},
|
|
58
80
|
"peerDependencies": {
|
|
59
|
-
"@strapi/admin": "^5.0.0",
|
|
60
|
-
"@strapi/
|
|
81
|
+
"@strapi/admin": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
|
|
82
|
+
"@strapi/content-manager": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
|
|
61
83
|
"react": "^17.0.0 || ^18.0.0",
|
|
62
84
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
63
85
|
"react-router-dom": "^6.0.0",
|
|
64
|
-
"styled-components": "^
|
|
86
|
+
"styled-components": "^6.0.0"
|
|
65
87
|
},
|
|
66
88
|
"engines": {
|
|
67
89
|
"node": ">=18.0.0 <=20.x.x",
|
|
@@ -73,5 +95,6 @@
|
|
|
73
95
|
"kind": "plugin",
|
|
74
96
|
"displayName": "Review Workflows",
|
|
75
97
|
"required": true
|
|
76
|
-
}
|
|
98
|
+
},
|
|
99
|
+
"gitHead": "0991f0ac0f739e43e6a5f9ac79acb8c774c359bf"
|
|
77
100
|
}
|
package/strapi-server.js
ADDED