@tridion-sites/extensions-cli 1.1.1 → 1.2.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/CHANGELOG.md
CHANGED
|
@@ -22,48 +22,47 @@
|
|
|
22
22
|
"@tridion-sites/extensions": "{{extensionsApiVersion}}",
|
|
23
23
|
"@tridion-sites/models": "{{modelsVersion}}",
|
|
24
24
|
"@tridion-sites/open-api-client": "{{openApiClientVersion}}",
|
|
25
|
-
"react": "18.
|
|
26
|
-
"react-dom": "18.
|
|
27
|
-
"styled-components": "
|
|
28
|
-
"tinymce": "
|
|
25
|
+
"react": "18.3.1",
|
|
26
|
+
"react-dom": "18.3.1",
|
|
27
|
+
"styled-components": "6.1.13",
|
|
28
|
+
"tinymce": "7.3.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@babel/core": "7.
|
|
32
|
-
"@babel/plugin-transform-runtime": "7.
|
|
33
|
-
"@babel/preset-env": "7.
|
|
34
|
-
"@babel/preset-react": "7.
|
|
35
|
-
"@babel/preset-typescript": "7.
|
|
36
|
-
"@babel/runtime": "7.
|
|
31
|
+
"@babel/core": "7.25.8",
|
|
32
|
+
"@babel/plugin-transform-runtime": "7.25.7",
|
|
33
|
+
"@babel/preset-env": "7.25.8",
|
|
34
|
+
"@babel/preset-react": "7.25.7",
|
|
35
|
+
"@babel/preset-typescript": "7.25.7",
|
|
36
|
+
"@babel/runtime": "7.25.7",
|
|
37
37
|
"@tridion-sites/extensions": "{{extensionsApiVersion}}",
|
|
38
38
|
"@tridion-sites/extensions-cli": "{{extensionsCliVersion}}",
|
|
39
39
|
"@tridion-sites/models": "{{modelsVersion}}",
|
|
40
40
|
"@tridion-sites/open-api-client": "{{openApiClientVersion}}",
|
|
41
|
-
"@types/react": "18.
|
|
42
|
-
"@types/react-dom": "18.
|
|
43
|
-
"@types/react-is": "18.
|
|
44
|
-
"@
|
|
45
|
-
"@typescript-eslint/
|
|
46
|
-
"
|
|
47
|
-
"babel-
|
|
48
|
-
"
|
|
49
|
-
"eslint": "
|
|
50
|
-
"eslint-config-prettier": "8.8.0",
|
|
41
|
+
"@types/react": "18.3.11",
|
|
42
|
+
"@types/react-dom": "18.3.1",
|
|
43
|
+
"@types/react-is": "18.3.0",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
45
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
46
|
+
"babel-loader": "9.2.1",
|
|
47
|
+
"babel-plugin-styled-components": "2.1.4",
|
|
48
|
+
"eslint": "8.57.1",
|
|
49
|
+
"eslint-config-prettier": "9.1.0",
|
|
51
50
|
"eslint-formatter-pretty": "5.0.0",
|
|
52
|
-
"eslint-plugin-react": "7.
|
|
53
|
-
"eslint-plugin-react-hooks": "4.6.
|
|
54
|
-
"eslint-plugin-simple-import-sort": "
|
|
55
|
-
"eslint-plugin-unused-imports": "2.0
|
|
51
|
+
"eslint-plugin-react": "7.37.1",
|
|
52
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
53
|
+
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
54
|
+
"eslint-plugin-unused-imports": "3.2.0",
|
|
56
55
|
"fork-ts-checker-webpack-plugin": "8.0.0",
|
|
57
|
-
"prettier": "
|
|
58
|
-
"react": "18.
|
|
59
|
-
"react-dom": "18.
|
|
60
|
-
"react-is": "18.
|
|
61
|
-
"styled-components": "
|
|
62
|
-
"tinymce": "
|
|
63
|
-
"tsconfig-paths-webpack-plugin": "4.0
|
|
64
|
-
"typescript": "5.
|
|
65
|
-
"webpack": "5.
|
|
66
|
-
"webpack-cli": "5.1.
|
|
67
|
-
"webpack-dev-server": "
|
|
56
|
+
"prettier": "3.3.3",
|
|
57
|
+
"react": "18.3.1",
|
|
58
|
+
"react-dom": "18.3.1",
|
|
59
|
+
"react-is": "18.3.1",
|
|
60
|
+
"styled-components": "6.1.13",
|
|
61
|
+
"tinymce": "7.3.0",
|
|
62
|
+
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
63
|
+
"typescript": "5.5.2",
|
|
64
|
+
"webpack": "5.95.0",
|
|
65
|
+
"webpack-cli": "5.1.4",
|
|
66
|
+
"webpack-dev-server": "5.1.0"
|
|
68
67
|
}
|
|
69
68
|
}
|
|
@@ -5,5 +5,5 @@ import styles from './{{componentName}}.module.css';
|
|
|
5
5
|
export const {{componentName}} = () => {
|
|
6
6
|
const { userProfile } = useUserProfile();
|
|
7
7
|
|
|
8
|
-
return <div className={styles.{{camelCase componentName~}} }>Hi {userProfile
|
|
8
|
+
return <div className={styles.{{camelCase componentName~}} }>Hi {userProfile?.displayName}!</div>;
|
|
9
9
|
};
|
package/dist/index.js
CHANGED
|
@@ -89,7 +89,7 @@ const getHeadersFromRequest = (request) => {
|
|
|
89
89
|
const endlineSlashesRegexp = /\/+$/gm;
|
|
90
90
|
const setupExtensionsResponse = ({ app, webAppPath, manifestPath, addonConfigPath, targetUrl, }) => {
|
|
91
91
|
const basePath = webAppPath.endsWith('/') ? webAppPath : `${webAppPath}/`;
|
|
92
|
-
app.get(`${basePath}api/
|
|
92
|
+
app.get(`${basePath}api/v${OpenAPI.VERSION}/extensions`, async (request, response) => {
|
|
93
93
|
const localAddon = getLocalFrontendAddon({
|
|
94
94
|
manifestPath,
|
|
95
95
|
addonConfigPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tridion-sites/extensions-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "CLI to create, develop, build and package extensions for Tridion Sites",
|
|
5
5
|
"author": "RWS",
|
|
6
6
|
"homepage": "https://www.rws.com",
|
|
@@ -24,36 +24,36 @@
|
|
|
24
24
|
"test": "sites-extensions"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tridion-sites/extensions": "
|
|
28
|
-
"@tridion-sites/models": "
|
|
29
|
-
"@tridion-sites/open-api-client": "
|
|
30
|
-
"archiver": "6.0.
|
|
27
|
+
"@tridion-sites/extensions": "3.0.0",
|
|
28
|
+
"@tridion-sites/models": "2.0.0",
|
|
29
|
+
"@tridion-sites/open-api-client": "4.0.0",
|
|
30
|
+
"archiver": "6.0.2",
|
|
31
31
|
"chalk": "5.3.0",
|
|
32
|
-
"commander": "11.
|
|
32
|
+
"commander": "11.1.0",
|
|
33
33
|
"cross-spawn": "7.0.3",
|
|
34
34
|
"decamelize": "6.0.0",
|
|
35
|
-
"fs-extra": "11.
|
|
35
|
+
"fs-extra": "11.2.0",
|
|
36
36
|
"handlebars": "4.7.8",
|
|
37
|
-
"inquirer": "9.
|
|
37
|
+
"inquirer": "9.3.7",
|
|
38
38
|
"valid-filename": "4.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@rollup/plugin-commonjs": "25.0.
|
|
42
|
-
"@rollup/plugin-node-resolve": "15.
|
|
43
|
-
"@rollup/plugin-typescript": "11.1.
|
|
44
|
-
"@types/archiver": "5.3.
|
|
45
|
-
"@types/compression": "1.7.
|
|
46
|
-
"@types/cross-spawn": "6.0.
|
|
47
|
-
"@types/express": "4.17.
|
|
48
|
-
"@types/fs-extra": "11.0.
|
|
49
|
-
"@types/inquirer": "9.0.
|
|
50
|
-
"@types/node": "20.
|
|
51
|
-
"@web/rollup-plugin-copy": "0.4.
|
|
52
|
-
"rimraf": "5.0.
|
|
53
|
-
"rollup": "3.29.
|
|
54
|
-
"rollup-plugin-delete": "2.
|
|
55
|
-
"rollup-plugin-node-externals": "6.1.
|
|
56
|
-
"typescript": "5.
|
|
57
|
-
"typescript-transform-paths": "3.
|
|
41
|
+
"@rollup/plugin-commonjs": "25.0.8",
|
|
42
|
+
"@rollup/plugin-node-resolve": "15.3.0",
|
|
43
|
+
"@rollup/plugin-typescript": "11.1.6",
|
|
44
|
+
"@types/archiver": "5.3.4",
|
|
45
|
+
"@types/compression": "1.7.5",
|
|
46
|
+
"@types/cross-spawn": "6.0.6",
|
|
47
|
+
"@types/express": "4.17.21",
|
|
48
|
+
"@types/fs-extra": "11.0.4",
|
|
49
|
+
"@types/inquirer": "9.0.7",
|
|
50
|
+
"@types/node": "20.16.11",
|
|
51
|
+
"@web/rollup-plugin-copy": "0.4.1",
|
|
52
|
+
"rimraf": "5.0.10",
|
|
53
|
+
"rollup": "3.29.5",
|
|
54
|
+
"rollup-plugin-delete": "2.1.0",
|
|
55
|
+
"rollup-plugin-node-externals": "6.1.2",
|
|
56
|
+
"typescript": "5.5.2",
|
|
57
|
+
"typescript-transform-paths": "3.5.1"
|
|
58
58
|
}
|
|
59
59
|
}
|