@tridion-sites/extensions-cli 1.1.2 → 1.1.3
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,47 +22,48 @@
|
|
|
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.2.0",
|
|
26
|
+
"react-dom": "18.2.0",
|
|
27
|
+
"styled-components": "5.3.6",
|
|
28
|
+
"tinymce": "6.8.4"
|
|
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.21.8",
|
|
32
|
+
"@babel/plugin-transform-runtime": "7.21.4",
|
|
33
|
+
"@babel/preset-env": "7.21.5",
|
|
34
|
+
"@babel/preset-react": "7.18.6",
|
|
35
|
+
"@babel/preset-typescript": "7.21.5",
|
|
36
|
+
"@babel/runtime": "7.21.5",
|
|
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
|
|
41
|
+
"@types/react": "18.2.6",
|
|
42
|
+
"@types/react-dom": "18.2.4",
|
|
43
|
+
"@types/react-is": "18.2.0",
|
|
44
|
+
"@types/styled-components": "5.1.26",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "5.59.5",
|
|
46
|
+
"@typescript-eslint/parser": "5.59.5",
|
|
47
|
+
"babel-loader": "9.1.2",
|
|
48
|
+
"babel-plugin-styled-components": "2.1.1",
|
|
49
|
+
"eslint": "8.40.0",
|
|
50
|
+
"eslint-config-prettier": "8.8.0",
|
|
50
51
|
"eslint-formatter-pretty": "5.0.0",
|
|
51
|
-
"eslint-plugin-react": "7.
|
|
52
|
-
"eslint-plugin-react-hooks": "4.6.
|
|
53
|
-
"eslint-plugin-simple-import-sort": "
|
|
54
|
-
"eslint-plugin-unused-imports": "
|
|
52
|
+
"eslint-plugin-react": "7.32.2",
|
|
53
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
54
|
+
"eslint-plugin-simple-import-sort": "9.0.0",
|
|
55
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
|
55
56
|
"fork-ts-checker-webpack-plugin": "8.0.0",
|
|
56
|
-
"prettier": "
|
|
57
|
-
"react": "18.
|
|
58
|
-
"react-dom": "18.
|
|
59
|
-
"react-is": "18.
|
|
60
|
-
"styled-components": "
|
|
61
|
-
"tinymce": "
|
|
62
|
-
"tsconfig-paths-webpack-plugin": "4.1
|
|
63
|
-
"typescript": "5.
|
|
64
|
-
"webpack": "5.
|
|
65
|
-
"webpack-cli": "5.1.
|
|
66
|
-
"webpack-dev-server": "
|
|
57
|
+
"prettier": "2.8.8",
|
|
58
|
+
"react": "18.2.0",
|
|
59
|
+
"react-dom": "18.2.0",
|
|
60
|
+
"react-is": "18.2.0",
|
|
61
|
+
"styled-components": "5.3.6",
|
|
62
|
+
"tinymce": "6.8.4",
|
|
63
|
+
"tsconfig-paths-webpack-plugin": "4.0.1",
|
|
64
|
+
"typescript": "5.0.4",
|
|
65
|
+
"webpack": "5.82.1",
|
|
66
|
+
"webpack-cli": "5.1.1",
|
|
67
|
+
"webpack-dev-server": "4.15.0"
|
|
67
68
|
}
|
|
68
69
|
}
|
|
@@ -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/v2.0/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.1.
|
|
3
|
+
"version": "1.1.3",
|
|
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,8 +24,8 @@
|
|
|
24
24
|
"test": "sites-extensions"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tridion-sites/extensions": "2.0.
|
|
28
|
-
"@tridion-sites/models": "1.2.
|
|
27
|
+
"@tridion-sites/extensions": "2.0.3",
|
|
28
|
+
"@tridion-sites/models": "1.2.1",
|
|
29
29
|
"@tridion-sites/open-api-client": "3.0.0",
|
|
30
30
|
"archiver": "6.0.1",
|
|
31
31
|
"chalk": "5.3.0",
|