diff --git a/config/plugins.ts b/config/plugins.ts index 56bf55f..7084333 100644 --- a/config/plugins.ts +++ b/config/plugins.ts @@ -1 +1,5 @@ -export default () => ({}); +export default () => ({ + publisher: { + enabled: true, + }, +}); diff --git a/package-lock.json b/package-lock.json index b47df3b..d2d61db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "react": "^18.0.0", "react-dom": "^18.0.0", "react-router-dom": "^6.0.0", + "strapi-plugin-publisher": "^2.0.0-beta.5", "styled-components": "^6.0.0" }, "devDependencies": { @@ -17740,6 +17741,32 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/strapi-plugin-publisher": { + "version": "2.0.0-beta.5", + "resolved": "https://registry.npmjs.org/strapi-plugin-publisher/-/strapi-plugin-publisher-2.0.0-beta.5.tgz", + "integrity": "sha512-jmf9ziHPCiqZxSDhON+2RECn3vLaySNPaKI78OxVgfg9P03Wxr7yoLoGK0IXLwyAOGuwxkZojHOY4zF+nDPRog==", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.21", + "prop-types": "^15.8.1", + "react-intl": "^6.6.2", + "react-query": "^3.39.3", + "yup": "^0.32.9" + }, + "engines": { + "node": ">=18.0.0 <=20.x.x", + "npm": ">=6.0.0" + }, + "peerDependencies": { + "@strapi/design-system": "^2.0.0-rc.11", + "@strapi/icons": "^2.0.0-rc.11", + "@strapi/strapi": "^5.2.0", + "@strapi/utils": "^5.2.0", + "react": "^17.0.0 || ^18.0.0", + "react-router-dom": "^6.0.0", + "styled-components": "^6.0.0" + } + }, "node_modules/stream-chain": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", @@ -32290,6 +32317,18 @@ "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==" }, + "strapi-plugin-publisher": { + "version": "2.0.0-beta.5", + "resolved": "https://registry.npmjs.org/strapi-plugin-publisher/-/strapi-plugin-publisher-2.0.0-beta.5.tgz", + "integrity": "sha512-jmf9ziHPCiqZxSDhON+2RECn3vLaySNPaKI78OxVgfg9P03Wxr7yoLoGK0IXLwyAOGuwxkZojHOY4zF+nDPRog==", + "requires": { + "lodash": "^4.17.21", + "prop-types": "^15.8.1", + "react-intl": "^6.6.2", + "react-query": "^3.39.3", + "yup": "^0.32.9" + } + }, "stream-chain": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", diff --git a/package.json b/package.json index 1323114..2e498d6 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "react": "^18.0.0", "react-dom": "^18.0.0", "react-router-dom": "^6.0.0", + "strapi-plugin-publisher": "^2.0.0-beta.5", "styled-components": "^6.0.0" }, "devDependencies": { diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 9cb4e43..f96c600 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2025-02-19T12:30:17.145Z" + "x-generation-date": "2025-03-29T13:27:01.000Z" }, "x-strapi-config": { "plugins": [ diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index f393bc1..9aa7635 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -697,6 +697,40 @@ export interface PluginI18NLocale extends Struct.CollectionTypeSchema { }; } +export interface PluginPublisherAction extends Struct.CollectionTypeSchema { + collectionName: "actions"; + info: { + displayName: "actions"; + pluralName: "actions"; + singularName: "action"; + }; + options: { + comment: ""; + draftAndPublish: false; + }; + pluginOptions: { + "content-manager": { + visible: false; + }; + "content-type-builder": { + visible: false; + }; + }; + attributes: { + createdAt: Schema.Attribute.DateTime; + createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; + entityId: Schema.Attribute.String; + entitySlug: Schema.Attribute.String; + executeAt: Schema.Attribute.DateTime; + locale: Schema.Attribute.String & Schema.Attribute.Private; + localizations: Schema.Attribute.Relation<"oneToMany", "plugin::publisher.action"> & Schema.Attribute.Private; + mode: Schema.Attribute.String; + publishedAt: Schema.Attribute.DateTime; + updatedAt: Schema.Attribute.DateTime; + updatedBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; + }; +} + export interface PluginReviewWorkflowsWorkflow extends Struct.CollectionTypeSchema { collectionName: "strapi_workflows"; info: { @@ -1006,6 +1040,7 @@ declare module "@strapi/strapi" { "plugin::content-releases.release": PluginContentReleasesRelease; "plugin::content-releases.release-action": PluginContentReleasesReleaseAction; "plugin::i18n.locale": PluginI18NLocale; + "plugin::publisher.action": PluginPublisherAction; "plugin::review-workflows.workflow": PluginReviewWorkflowsWorkflow; "plugin::review-workflows.workflow-stage": PluginReviewWorkflowsWorkflowStage; "plugin::upload.file": PluginUploadFile;