@tridion-docs/extensions-cli 2.1.2 → 2.1.5

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,28 @@
1
1
  # @tridion-docs/extensions-cli
2
2
 
3
+ ## 2.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed dependencies for known vulnerabilities
8
+ - Updated dependencies
9
+ - @tridion-docs/extensions@2.1.5
10
+
11
+ ## 2.1.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Fixed dependencies for known vulnerabilities
16
+ - Updated dependencies
17
+ - @tridion-docs/extensions@2.1.4
18
+
19
+ ## 2.1.3
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated types for compatibility with 15.2 and 15.3
24
+ - @tridion-docs/extensions@2.1.3
25
+
3
26
  ## 2.1.2
4
27
 
5
28
  ### Patch Changes
package/README.md CHANGED
@@ -9,7 +9,7 @@ Copyright © 2026 RWS Holdings plc including its subsidiaries and affiliated com
9
9
 
10
10
  # Compatibility
11
11
 
12
- This version of the package is compatible with Tridion Docs 15.2
12
+ This version of the package is compatible with Tridion Docs 15.2 and 15.3
13
13
 
14
14
  # Documentation
15
15
 
@@ -53,7 +53,7 @@ export const getDevServerConfig = ({
53
53
  ],
54
54
  setupMiddlewares: (middlewares, { app }) => {
55
55
 
56
- app.get(`*/extensions/extensions`, (req, res) => {
56
+ app.get(`{/*splat}/extensions/extensions`, (req, res) => {
57
57
  const localAddon = getLocalFrontendAddon({
58
58
  manifestPath,
59
59
  addonConfigPath,
@@ -18,42 +18,43 @@
18
18
  "dependencies": {
19
19
  "@tridion-docs/extensions": "{{extensionsApiVersion}}",
20
20
  "react": "18.3.1",
21
- "react-dom": "18.3.1"
21
+ "react-dom": "18.3.1",
22
+ "@babel/runtime": "7.29.10"
22
23
  },
23
24
  "devDependencies": {
24
- "@babel/core": "7.29.0",
25
- "@babel/plugin-transform-runtime": "7.29.0",
26
- "@babel/preset-env": "7.29.0",
27
- "@babel/preset-react": "7.28.5",
28
- "@babel/preset-typescript": "7.28.5",
29
- "@babel/runtime": "7.28.6",
30
- "@eslint/compat": "2.0.2",
31
- "@eslint/eslintrc": "3.3.3",
25
+ "@babel/core": "7.29.7",
26
+ "@babel/plugin-transform-runtime": "7.29.7",
27
+ "@babel/preset-env": "7.29.7",
28
+ "@babel/preset-react": "7.29.7",
29
+ "@babel/preset-typescript": "7.29.7",
30
+ "@eslint/compat": "2.1.1",
31
+ "@eslint/eslintrc": "3.3.7",
32
32
  "@eslint/js": "10.0.1",
33
- "@eslint-react/eslint-plugin": "2.13.0",
33
+ "@eslint-react/eslint-plugin": "5.27.2",
34
34
  "@tridion-docs/extensions-cli": "{{extensionsCliVersion}}",
35
35
  "@types/react": "18.3.27",
36
36
  "@types/react-dom": "18.3.7",
37
- "@typescript-eslint/eslint-plugin": "8.56.0",
38
- "@typescript-eslint/parser": "8.56.0",
39
- "autoprefixer": "10.4.24",
40
- "babel-loader": "10.0.0",
41
- "babel-plugin-styled-components": "2.1.4",
42
- "css-loader": "7.1.4",
43
- "cssnano": "7.1.2",
44
- "eslint": "10.0.0",
37
+ "@typescript-eslint/eslint-plugin": "8.71.2",
38
+ "@typescript-eslint/parser": "8.71.2",
39
+ "autoprefixer": "10.6.1",
40
+ "babel-loader": "10.1.1",
41
+ "babel-plugin-styled-components": "2.3.0",
42
+ "css-loader": "7.1.5",
43
+ "cssnano": "9.8.0",
44
+ "eslint": "10.12.0",
45
45
  "eslint-config-prettier": "10.1.8",
46
- "eslint-formatter-pretty": "7.0.0",
47
- "eslint-plugin-prettier": "5.5.5",
46
+ "eslint-formatter-pretty": "7.1.0",
47
+ "eslint-plugin-prettier": "5.5.7",
48
48
  "fork-ts-checker-webpack-plugin": "9.1.0",
49
- "globals": "^17.3.0",
50
- "mini-css-extract-plugin": "2.10.0",
51
- "postcss": "8.5.6",
49
+ "globals": "^17.13.0",
50
+ "mini-css-extract-plugin": "2.10.2",
51
+ "postcss": "8.5.30",
52
52
  "postcss-loader": "8.2.1",
53
- "prettier": "3.8.1",
53
+ "prettier": "3.9.10",
54
+ "styled-components": "^6.3",
54
55
  "typescript": "5.9.3",
55
- "webpack": "5.105.2",
56
- "webpack-cli": "6.0.1",
57
- "webpack-dev-server": "5.2.3"
56
+ "webpack": "5.112.0",
57
+ "webpack-cli": "7.2.3",
58
+ "webpack-dev-server": "6.0.0"
58
59
  }
59
60
  }
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import isValidFilename from 'valid-filename';
13
13
  import checkbox, { Separator } from '@inquirer/checkbox';
14
14
  import select from '@inquirer/select';
15
15
  import * as tridionDocsExtensions from '@tridion-docs/extensions';
16
- import archiver from 'archiver';
16
+ import { ZipArchive } from 'archiver';
17
17
 
18
18
  const installDependencies = (cwd) => {
19
19
  spawn.sync('npm', ['install'], {
@@ -616,7 +616,7 @@ const packCommand = ({ inputFilesPath, outputPath, manifestPath, uiFilesPath, as
616
616
  console.info(chalk.green(`Manifest file path: ${finalManifestPath}`));
617
617
  const manifest = AddonManifest.fromFile(finalManifestPath);
618
618
  const packageName = `${manifest.id}.zip`;
619
- const archive = archiver('zip');
619
+ const archive = new ZipArchive();
620
620
  const zipPath = resolve(outputPath, packageName);
621
621
  const stream = createWriteStream(zipPath);
622
622
  stream.on('finish', () => {
@@ -628,7 +628,7 @@ const packCommand = ({ inputFilesPath, outputPath, manifestPath, uiFilesPath, as
628
628
  process.exit(1);
629
629
  });
630
630
  archive.on('error', error => {
631
- console.warn(chalk.red(`We were unable to create a package due to ${error.data} for ${error.path}.`));
631
+ console.warn(chalk.red(`We were unable to create a package due to ${error.message}.`));
632
632
  process.exit(1);
633
633
  });
634
634
  archive.pipe(stream);
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { resolve, basename } from 'node:path';
3
3
  import { w as writeJsonFile, r as readJsonFile, A as AddonManifest } from './addonManifest-tFdjtMXO.js';
4
+ import { ExtensionType } from '@tridion-docs/extensions';
4
5
  import 'node:fs';
5
6
 
6
7
  class AddonConfiguration {
@@ -57,13 +58,14 @@ const getLocalFrontendAddon = ({ manifestPath, addonConfigPath }) => {
57
58
  const localExtensions = manifest.getFrontendExtensions();
58
59
  localExtensions.forEach(extension => {
59
60
  var _a;
60
- if (extension.name) {
61
+ if (extension.name && extension.type === ExtensionType.OrganizeSpace) {
61
62
  localAddon.configuration[extension.name] = (addonConfiguration === null || addonConfiguration === void 0 ? void 0 : addonConfiguration.configPerExtension[extension.name]) || {};
62
63
  const extensionFiles = extension.files.map(filePath => `${extensionsRequestBasePath}/${extension.name}/${filePath}?hash=${Date.now()}`);
63
64
  (_a = localAddon.extensions) === null || _a === void 0 ? void 0 : _a.push({
64
65
  $type: 'OrganizeSpaceExtension',
65
66
  name: extension.name,
66
67
  contents: extensionFiles,
68
+ type: 'OrganizeSpaceExtension',
67
69
  });
68
70
  }
69
71
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tridion-docs/extensions-cli",
3
- "version": "2.1.2",
3
+ "version": "2.1.5",
4
4
  "description": "CLI to develop, build and package extensions for Tridion Docs Organize Space",
5
5
  "author": "RWS Group for and on behalf of its affiliates and subsidiaries",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,6 +24,7 @@
24
24
  "build": "rollup -c",
25
25
  "release": "rollup -c",
26
26
  "lint": "biome lint . --write",
27
+ "publish": "node ../../../scripts/publish-with-version.js ./package.json",
27
28
  "prepublish": "yarn build",
28
29
  "test": "docs-extensions"
29
30
  },
@@ -32,14 +33,14 @@
32
33
  "@inquirer/confirm": "6.0.7",
33
34
  "@inquirer/input": "5.0.7",
34
35
  "@inquirer/select": "5.0.7",
35
- "@tridion-docs/extensions": "2.1.2",
36
- "archiver": "7.0.1",
36
+ "@tridion-docs/extensions": "2.1.5",
37
+ "archiver": "8.0.0",
37
38
  "chalk": "5.6.2",
38
39
  "commander": "14.0.3",
39
40
  "cross-spawn": "7.0.6",
40
41
  "decamelize": "6.0.1",
41
42
  "fs-extra": "11.3.3",
42
- "handlebars": "4.7.9",
43
+ "handlebars": "4.7.10",
43
44
  "valid-filename": "4.0.0"
44
45
  },
45
46
  "devDependencies": {
@@ -47,7 +48,7 @@
47
48
  "@rollup/plugin-commonjs": "29.0.0",
48
49
  "@rollup/plugin-node-resolve": "16.0.3",
49
50
  "@rollup/plugin-typescript": "12.3.0",
50
- "@types/archiver": "7.0.0",
51
+ "@types/archiver": "8.0.0",
51
52
  "@types/compression": "1.8.1",
52
53
  "@types/cross-spawn": "6.0.6",
53
54
  "@types/fs-extra": "11.0.4",