@scm-manager/ui-plugins 3.4.2 → 3.4.3-20240825-123149
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/.turbo/turbo-build.log +2 -0
- package/build/provided-modules.d.ts +5 -0
- package/build/provided-modules.js +42 -0
- package/generateStatic.js +51 -0
- package/package.json +23 -12
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
import * as DEP0 from 'react';
|
|
3
|
+
import * as DEP1 from 'react-dom';
|
|
4
|
+
import * as DEP2 from 'react-router';
|
|
5
|
+
import * as DEP3 from 'react-router-dom';
|
|
6
|
+
import * as DEP4 from 'react-i18next';
|
|
7
|
+
import * as DEP5 from 'styled-components';
|
|
8
|
+
import * as DEP6 from '@scm-manager/ui-api';
|
|
9
|
+
import * as DEP7 from '@scm-manager/ui-buttons';
|
|
10
|
+
import * as DEP8 from '@scm-manager/ui-components';
|
|
11
|
+
import * as DEP9 from '@scm-manager/ui-core';
|
|
12
|
+
import * as DEP10 from '@scm-manager/ui-extensions';
|
|
13
|
+
import * as DEP11 from '@scm-manager/ui-forms';
|
|
14
|
+
import * as DEP12 from '@scm-manager/ui-layout';
|
|
15
|
+
import * as DEP13 from '@scm-manager/ui-overlays';
|
|
16
|
+
import * as DEP14 from 'classnames';
|
|
17
|
+
import * as DEP15 from 'query-string';
|
|
18
|
+
import * as DEP16 from 'react-hook-form';
|
|
19
|
+
import * as DEP17 from 'react-query';
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export function definePluginDependencies(defineStatic) {
|
|
23
|
+
defineStatic('react', DEP0);
|
|
24
|
+
defineStatic('react-dom', DEP1);
|
|
25
|
+
defineStatic('react-router', DEP2);
|
|
26
|
+
defineStatic('react-router-dom', DEP3);
|
|
27
|
+
defineStatic('react-i18next', DEP4);
|
|
28
|
+
defineStatic('styled-components', DEP5);
|
|
29
|
+
defineStatic('@scm-manager/ui-api', DEP6);
|
|
30
|
+
defineStatic('@scm-manager/ui-buttons', DEP7);
|
|
31
|
+
defineStatic('@scm-manager/ui-components', DEP8);
|
|
32
|
+
defineStatic('@scm-manager/ui-core', DEP9);
|
|
33
|
+
defineStatic('@scm-manager/ui-extensions', DEP10);
|
|
34
|
+
defineStatic('@scm-manager/ui-forms', DEP11);
|
|
35
|
+
defineStatic('@scm-manager/ui-layout', DEP12);
|
|
36
|
+
defineStatic('@scm-manager/ui-overlays', DEP13);
|
|
37
|
+
defineStatic('classnames', DEP14);
|
|
38
|
+
defineStatic('query-string', DEP15);
|
|
39
|
+
defineStatic('react-hook-form', DEP16);
|
|
40
|
+
defineStatic('react-query', DEP17);
|
|
41
|
+
|
|
42
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
3
|
+
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
6
|
+
* Software Foundation, version 3.
|
|
7
|
+
*
|
|
8
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
9
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
10
|
+
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
11
|
+
* details.
|
|
12
|
+
*
|
|
13
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
14
|
+
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import fs from "node:fs";
|
|
18
|
+
|
|
19
|
+
const packageJson = JSON.parse(fs.readFileSync("./package.json", "utf8"));
|
|
20
|
+
|
|
21
|
+
const { lazyDependencies } = packageJson;
|
|
22
|
+
|
|
23
|
+
let importStatements = "";
|
|
24
|
+
let calls = "";
|
|
25
|
+
|
|
26
|
+
Object.keys(packageJson.dependencies)
|
|
27
|
+
.filter((dependency) => !lazyDependencies.includes(dependency))
|
|
28
|
+
.forEach((dependency, index) => {
|
|
29
|
+
importStatements += `import * as DEP${index} from '${dependency}';\n`;
|
|
30
|
+
calls += ` defineStatic('${dependency}', DEP${index});\n`;
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
fs.mkdirSync("./build", { recursive: true });
|
|
34
|
+
fs.writeFileSync(
|
|
35
|
+
"./build/provided-modules.d.ts",
|
|
36
|
+
`
|
|
37
|
+
type DefineStatic = (name: string, dependency: unknown) => void;
|
|
38
|
+
|
|
39
|
+
declare function definePluginDependencies(defineStatic: DefineStatic): void;
|
|
40
|
+
export {definePluginDependencies};
|
|
41
|
+
`
|
|
42
|
+
);
|
|
43
|
+
fs.writeFileSync(
|
|
44
|
+
"./build/provided-modules.js",
|
|
45
|
+
`
|
|
46
|
+
${importStatements}
|
|
47
|
+
|
|
48
|
+
export function definePluginDependencies(defineStatic) {
|
|
49
|
+
${calls}
|
|
50
|
+
}`
|
|
51
|
+
);
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scm-manager/ui-plugins",
|
|
3
3
|
"description": "Defines the versions of SCM-Manager plugin dependencies provided by the core webapp. Exclusively used by the postinstall command of @scm-manager/plugin-scripts.",
|
|
4
|
-
"version": "3.4.
|
|
5
|
-
"license": "
|
|
4
|
+
"version": "3.4.3-20240825-123149",
|
|
5
|
+
"license": "AGPL-3.0-only",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./build/provided-modules.js",
|
|
8
|
+
"types": "./build/provided-modules.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "node ./generateStatic.js"
|
|
11
|
+
},
|
|
6
12
|
"dependencies": {
|
|
7
13
|
"react": "17",
|
|
8
14
|
"react-dom": "17",
|
|
@@ -10,13 +16,14 @@
|
|
|
10
16
|
"react-router-dom": "^5.3.1",
|
|
11
17
|
"react-i18next": "11",
|
|
12
18
|
"styled-components": "^5.3.5",
|
|
13
|
-
"@scm-manager/ui-api": "3.4.
|
|
14
|
-
"@scm-manager/ui-
|
|
15
|
-
"@scm-manager/ui-components": "3.4.
|
|
16
|
-
"@scm-manager/ui-
|
|
17
|
-
"@scm-manager/ui-
|
|
18
|
-
"@scm-manager/ui-
|
|
19
|
-
"@scm-manager/ui-layout": "3.4.
|
|
19
|
+
"@scm-manager/ui-api": "3.4.3-20240825-123149",
|
|
20
|
+
"@scm-manager/ui-buttons": "3.4.3-20240825-123149",
|
|
21
|
+
"@scm-manager/ui-components": "3.4.3-20240825-123149",
|
|
22
|
+
"@scm-manager/ui-core": "3.4.3-20240825-123149",
|
|
23
|
+
"@scm-manager/ui-extensions": "3.4.3-20240825-123149",
|
|
24
|
+
"@scm-manager/ui-forms": "3.4.3-20240825-123149",
|
|
25
|
+
"@scm-manager/ui-layout": "3.4.3-20240825-123149",
|
|
26
|
+
"@scm-manager/ui-overlays": "3.4.3-20240825-123149",
|
|
20
27
|
"classnames": "^2.2.6",
|
|
21
28
|
"query-string": "6.14.1",
|
|
22
29
|
"redux": "^4.0.0",
|
|
@@ -24,15 +31,19 @@
|
|
|
24
31
|
"react-hook-form": "^7.5.1",
|
|
25
32
|
"react-query": "^3.25.1"
|
|
26
33
|
},
|
|
34
|
+
"lazyDependencies": [
|
|
35
|
+
"redux",
|
|
36
|
+
"react-redux"
|
|
37
|
+
],
|
|
27
38
|
"devDependencies": {
|
|
28
39
|
"@scm-manager/babel-preset": "^2.13.1",
|
|
29
40
|
"@scm-manager/eslint-config": "^2.17.0",
|
|
30
41
|
"@scm-manager/jest-preset": "^2.13.0",
|
|
31
|
-
"@scm-manager/plugin-scripts": "^1.
|
|
42
|
+
"@scm-manager/plugin-scripts": "^1.6.1",
|
|
32
43
|
"@scm-manager/prettier-config": "^2.10.1",
|
|
33
44
|
"@scm-manager/tsconfig": "^2.13.0",
|
|
34
|
-
"@scm-manager/ui-tests": "3.4.
|
|
35
|
-
"@scm-manager/ui-types": "3.4.
|
|
45
|
+
"@scm-manager/ui-tests": "3.4.3-20240825-123149",
|
|
46
|
+
"@scm-manager/ui-types": "3.4.3-20240825-123149",
|
|
36
47
|
"@types/classnames": "^2.2.9",
|
|
37
48
|
"@types/enzyme": "^3.10.3",
|
|
38
49
|
"@types/fetch-mock": "^7.3.1",
|