@strapi/content-releases 0.0.0-experimental.check-license

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/LICENSE ADDED
@@ -0,0 +1 @@
1
+ If you or the company you represent has entered into a written agreement referencing the Enterprise Edition of the Strapi source code available at https://github.com/strapi/strapi, then such agreement applies to your use of the Enterprise Edition of the Strapi Software. If you or the company you represent is using the Enterprise Edition of the Strapi Software in connection with a subscription to our cloud offering, then the agreement you have agreed to with respect to our cloud offering and the licenses included in such agreement apply to your use of the Enterprise Edition of the Strapi Software. Otherwise, the Strapi Enterprise Software License Agreement (found here https://strapi.io/enterprise-terms) applies to your use of the Enterprise Edition of the Strapi Software. BY ACCESSING OR USING THE ENTERPRISE EDITION OF THE STRAPI SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE RELEVANT REFERENCED AGREEMENT. IF YOU ARE NOT AUTHORIZED TO ACCEPT THESE TERMS ON BEHALF OF THE COMPANY YOU REPRESENT OR IF YOU DO NOT AGREE TO ALL OF THE RELEVANT TERMS AND CONDITIONS REFERENCED AND YOU HAVE NOT OTHERWISE EXECUTED A WRITTEN AGREEMENT WITH STRAPI, YOU ARE NOT AUTHORIZED TO ACCESS OR USE OR ALLOW ANY USER TO ACCESS OR USE ANY PART OF THE ENTERPRISE EDITION OF THE STRAPI SOFTWARE. YOUR ACCESS RIGHTS ARE CONDITIONAL ON YOUR CONSENT TO THE RELEVANT REFERENCED TERMS TO THE EXCLUSION OF ALL OTHER TERMS; IF THE RELEVANT REFERENCED TERMS ARE CONSIDERED AN OFFER BY YOU, ACCEPTANCE IS EXPRESSLY LIMITED TO THE RELEVANT REFERENCED TERMS.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Plugin releases
2
+
3
+ Organize content over time into containers called releases, define actions for each entry (publish, unpublish), and release it all instantly with the click of a button.
4
+
5
+ Releases is an enterprise edition plugin.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const en = {};
4
+ exports.default = en;
5
+ //# sourceMappingURL=en-21947221.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-21947221.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,5 @@
1
+ const en = {};
2
+ export {
3
+ en as default
4
+ };
5
+ //# sourceMappingURL=en-92157b33.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-92157b33.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ const helperPlugin = require("@strapi/helper-plugin");
3
+ const __variableDynamicImportRuntimeHelper = (glob, path) => {
4
+ const v = glob[path];
5
+ if (v) {
6
+ return typeof v === "function" ? v() : Promise.resolve(v);
7
+ }
8
+ return new Promise((_, reject) => {
9
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
10
+ });
11
+ };
12
+ const index = {
13
+ register() {
14
+ if (window.strapi.features.isEnabled("cms-content-releases"))
15
+ ;
16
+ },
17
+ async registerTrads({ locales }) {
18
+ const importedTrads = await Promise.all(
19
+ locales.map((locale) => {
20
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-21947221.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
21
+ return {
22
+ data: helperPlugin.prefixPluginTranslations(data, "releases"),
23
+ locale
24
+ };
25
+ }).catch(() => {
26
+ return {
27
+ data: {},
28
+ locale
29
+ };
30
+ });
31
+ })
32
+ );
33
+ return Promise.resolve(importedTrads);
34
+ }
35
+ };
36
+ module.exports = index;
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../admin/src/index.ts"],"sourcesContent":["import { prefixPluginTranslations } from '@strapi/helper-plugin';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register() {\n if (window.strapi.features.isEnabled('cms-content-releases')) {\n // EE Code would be here\n // For testing if the plugin is working, add a console.log\n }\n },\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, 'releases'),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["prefixPluginTranslations"],"mappings":";;;;;;;;;;;AAGA,MAAe,QAAA;AAAA,EACb,WAAW;AACT,QAAI,OAAO,OAAO,SAAS,UAAU,sBAAsB;AAAG;AAAA,EAIhE;AAAA,EACA,MAAM,cAAc,EAAE,WAAkC;AAChD,UAAA,gBAAgB,MAAM,QAAQ;AAAA,MAClC,QAAQ,IAAI,CAAC,WAAW;AACf,eAAA,qCAA+B,uBAAA,OAAA,EAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,WAAW;AACpB,iBAAA;AAAA,YACL,MAAMA,aAAAA,yBAAyB,MAAM,UAAU;AAAA,YAC/C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;;"}
@@ -0,0 +1,38 @@
1
+ import { prefixPluginTranslations } from "@strapi/helper-plugin";
2
+ const __variableDynamicImportRuntimeHelper = (glob, path) => {
3
+ const v = glob[path];
4
+ if (v) {
5
+ return typeof v === "function" ? v() : Promise.resolve(v);
6
+ }
7
+ return new Promise((_, reject) => {
8
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
9
+ });
10
+ };
11
+ const index = {
12
+ register() {
13
+ if (window.strapi.features.isEnabled("cms-content-releases"))
14
+ ;
15
+ },
16
+ async registerTrads({ locales }) {
17
+ const importedTrads = await Promise.all(
18
+ locales.map((locale) => {
19
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("../_chunks/en-92157b33.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
20
+ return {
21
+ data: prefixPluginTranslations(data, "releases"),
22
+ locale
23
+ };
24
+ }).catch(() => {
25
+ return {
26
+ data: {},
27
+ locale
28
+ };
29
+ });
30
+ })
31
+ );
32
+ return Promise.resolve(importedTrads);
33
+ }
34
+ };
35
+ export {
36
+ index as default
37
+ };
38
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../admin/src/index.ts"],"sourcesContent":["import { prefixPluginTranslations } from '@strapi/helper-plugin';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register() {\n if (window.strapi.features.isEnabled('cms-content-releases')) {\n // EE Code would be here\n // For testing if the plugin is working, add a console.log\n }\n },\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, 'releases'),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":[],"mappings":";;;;;;;;;;AAGA,MAAe,QAAA;AAAA,EACb,WAAW;AACT,QAAI,OAAO,OAAO,SAAS,UAAU,sBAAsB;AAAG;AAAA,EAIhE;AAAA,EACA,MAAM,cAAc,EAAE,WAAkC;AAChD,UAAA,gBAAgB,MAAM,QAAQ;AAAA,MAClC,QAAQ,IAAI,CAAC,WAAW;AACf,eAAA,qCAA+B,uBAAA,OAAA,EAAA,0BAAA,MAAA,OAAA,4BAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,WAAW;AACpB,iBAAA;AAAA,YACL,MAAM,yBAAyB,MAAM,UAAU;AAAA,YAC/C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;"}
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ register(): void;
3
+ registerTrads({ locales }: {
4
+ locales: string[];
5
+ }): Promise<({
6
+ data: {
7
+ [x: string]: string;
8
+ };
9
+ locale: string;
10
+ } | {
11
+ data: {};
12
+ locale: string;
13
+ })[]>;
14
+ };
15
+ export default _default;
File without changes
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ const { features } = require("@strapi/strapi/dist/utils/ee");
3
+ const register = () => {
4
+ if (features.isEnabled("cms-content-releases")) {
5
+ console.log("cms-content-releases is enabled");
6
+ }
7
+ };
8
+ const index = {
9
+ register
10
+ };
11
+ module.exports = index;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../server/src/register.ts","../../server/src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-var-requires */\n\nconst { features } = require('@strapi/strapi/dist/utils/ee');\n\nexport const register = () => {\n if (features.isEnabled('cms-content-releases')) {\n // EE Code would be here\n console.log('cms-content-releases is enabled');\n }\n};\n","import { register } from './register';\n\nexport default {\n register,\n};\n"],"names":[],"mappings":";AAEA,MAAM,EAAE,SAAa,IAAA,QAAQ,8BAA8B;AAEpD,MAAM,WAAW,MAAM;AACxB,MAAA,SAAS,UAAU,sBAAsB,GAAG;AAE9C,YAAQ,IAAI,iCAAiC;AAAA,EAC/C;AACF;ACPA,MAAe,QAAA;AAAA,EACb;AACF;;"}
@@ -0,0 +1,13 @@
1
+ const { features } = require("@strapi/strapi/dist/utils/ee");
2
+ const register = () => {
3
+ if (features.isEnabled("cms-content-releases")) {
4
+ console.log("cms-content-releases is enabled");
5
+ }
6
+ };
7
+ const index = {
8
+ register
9
+ };
10
+ export {
11
+ index as default
12
+ };
13
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../server/src/register.ts","../../server/src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-var-requires */\n\nconst { features } = require('@strapi/strapi/dist/utils/ee');\n\nexport const register = () => {\n if (features.isEnabled('cms-content-releases')) {\n // EE Code would be here\n console.log('cms-content-releases is enabled');\n }\n};\n","import { register } from './register';\n\nexport default {\n register,\n};\n"],"names":[],"mappings":"AAEA,MAAM,EAAE,SAAa,IAAA,QAAQ,8BAA8B;AAEpD,MAAM,WAAW,MAAM;AACxB,MAAA,SAAS,UAAU,sBAAsB,GAAG;AAE9C,YAAQ,IAAI,iCAAiC;AAAA,EAC/C;AACF;ACPA,MAAe,QAAA;AAAA,EACb;AACF;"}
@@ -0,0 +1,2 @@
1
+ declare const features: any;
2
+ declare const register: any;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ register: () => void;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const register: () => void;
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@strapi/content-releases",
3
+ "version": "0.0.0-experimental.check-license",
4
+ "description": "Strapi plugin for organizing and releasing content",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/strapi/strapi.git"
8
+ },
9
+ "license": "SEE LICENSE IN LICENSE",
10
+ "author": {
11
+ "name": "Strapi Solutions SAS",
12
+ "email": "hi@strapi.io",
13
+ "url": "https://strapi.io"
14
+ },
15
+ "maintainers": [
16
+ {
17
+ "name": "Strapi Solutions SAS",
18
+ "email": "hi@strapi.io",
19
+ "url": "https://strapi.io"
20
+ }
21
+ ],
22
+ "exports": {
23
+ "./strapi-admin": {
24
+ "types": "./dist/admin/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/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
+ },
37
+ "./package.json": "./package.json"
38
+ },
39
+ "files": [
40
+ "./dist",
41
+ "strapi-server.js"
42
+ ],
43
+ "strapi": {
44
+ "name": "releases",
45
+ "description": "Organize and release content",
46
+ "kind": "plugin",
47
+ "displayName": "Releases",
48
+ "required": true
49
+ },
50
+ "scripts": {
51
+ "build": "pack-up build",
52
+ "clean": "run -T rimraf ./dist",
53
+ "lint": "run -T eslint .",
54
+ "prepublishOnly": "yarn clean && yarn build",
55
+ "test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
56
+ "test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",
57
+ "test:front:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js",
58
+ "test:front:watch:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll",
59
+ "test:ts:front": "run -T tsc -p admin/tsconfig.json",
60
+ "test:unit": "run -T jest",
61
+ "test:unit:watch": "run -T jest --watch",
62
+ "watch": "packup watch"
63
+ },
64
+ "dependencies": {
65
+ "@strapi/design-system": "1.12.0",
66
+ "@strapi/helper-plugin": "4.14.4",
67
+ "@strapi/icons": "1.12.0",
68
+ "react-intl": "6.4.1"
69
+ },
70
+ "devDependencies": {
71
+ "@strapi/pack-up": "0.0.0-experimental.check-license",
72
+ "@strapi/strapi": "0.0.0-experimental.check-license",
73
+ "@testing-library/react": "14.0.0",
74
+ "@testing-library/user-event": "14.4.3",
75
+ "@types/styled-components": "5.1.26",
76
+ "react": "^18.2.0",
77
+ "react-dom": "^18.2.0",
78
+ "react-router-dom": "5.3.4",
79
+ "styled-components": "5.3.3",
80
+ "typescript": "5.2.2"
81
+ },
82
+ "peerDependencies": {
83
+ "@strapi/strapi": "^4.14.5",
84
+ "react": "^17.0.0 || ^18.0.0",
85
+ "react-dom": "^17.0.0 || ^18.0.0",
86
+ "react-router-dom": "5.3.4",
87
+ "styled-components": "5.3.3"
88
+ },
89
+ "engines": {
90
+ "node": ">=16.0.0 <=20.x.x",
91
+ "npm": ">=6.0.0"
92
+ },
93
+ "nx": {
94
+ "implicitDependencies": [
95
+ "!@strapi/strapi"
96
+ ]
97
+ },
98
+ "gitHead": "6c317e275a2e8133090c4b8b90bba9bc85be72f8"
99
+ }
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ module.exports = require('./dist/server');