@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
@@ -1,5 +1,12 @@
1
1
  # @tridion-sites/extensions-cli
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update 3rd party dependencies
8
+ - Update extensions to v3
9
+
3
10
  ## 1.1.1
4
11
 
5
12
  ### Patch Changes
@@ -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.2.0",
26
- "react-dom": "18.2.0",
27
- "styled-components": "5.3.6",
28
- "tinymce": "6.7.1"
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.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",
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.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",
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.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",
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": "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.7.1",
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"
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.displayName}!</div>;
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/v2.0/extensions`, async (request, response) => {
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.1.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": "2.0.1",
28
- "@tridion-sites/models": "1.1.1",
29
- "@tridion-sites/open-api-client": "3.0.0",
30
- "archiver": "6.0.1",
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.0.0",
32
+ "commander": "11.1.0",
33
33
  "cross-spawn": "7.0.3",
34
34
  "decamelize": "6.0.0",
35
- "fs-extra": "11.1.1",
35
+ "fs-extra": "11.2.0",
36
36
  "handlebars": "4.7.8",
37
- "inquirer": "9.2.11",
37
+ "inquirer": "9.3.7",
38
38
  "valid-filename": "4.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@rollup/plugin-commonjs": "25.0.4",
42
- "@rollup/plugin-node-resolve": "15.2.1",
43
- "@rollup/plugin-typescript": "11.1.3",
44
- "@types/archiver": "5.3.2",
45
- "@types/compression": "1.7.3",
46
- "@types/cross-spawn": "6.0.3",
47
- "@types/express": "4.17.18",
48
- "@types/fs-extra": "11.0.1",
49
- "@types/inquirer": "9.0.3",
50
- "@types/node": "20.6.0",
51
- "@web/rollup-plugin-copy": "0.4.0",
52
- "rimraf": "5.0.1",
53
- "rollup": "3.29.1",
54
- "rollup-plugin-delete": "2.0.0",
55
- "rollup-plugin-node-externals": "6.1.1",
56
- "typescript": "5.2.2",
57
- "typescript-transform-paths": "3.4.6"
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
  }