@tridion-sites/extensions-cli 0.3.2 → 0.3.4

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,26 @@
1
1
  # @tridion-sites/extensions-cli
2
2
 
3
+ ## 0.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 2a21aa8c1d: upgrade tinymce
8
+ - 1845a12377: use the latest typescript version
9
+ - 9348205cee: Update of tinyMCE dependency
10
+ - Updated dependencies [2ea2c9d543]
11
+ - Updated dependencies [226cc4cce1]
12
+ - Updated dependencies [1845a12377]
13
+ - Updated dependencies [9348205cee]
14
+ - @tridion-sites/extensions@0.5.1
15
+ - @tridion-sites/models@0.1.1
16
+ - @tridion-sites/open-api-client@1.0.5
17
+
18
+ ## 0.3.3
19
+
20
+ ### Patch Changes
21
+
22
+ - 3886aff9f1: use the latest webpack and get rid of css
23
+
3
24
  ## 0.3.2
4
25
 
5
26
  ### Patch Changes
@@ -24,41 +24,43 @@
24
24
  "react": "18.2.0",
25
25
  "react-dom": "18.2.0",
26
26
  "styled-components": "5.3.6",
27
- "tinymce": "6.3.1"
27
+ "tinymce": "6.4.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@babel/core": "7.20.12",
31
- "@babel/plugin-transform-runtime": "7.19.6",
32
- "@babel/preset-env": "7.20.2",
30
+ "@babel/core": "7.21.8",
31
+ "@babel/plugin-transform-runtime": "7.21.4",
32
+ "@babel/preset-env": "7.21.5",
33
33
  "@babel/preset-react": "7.18.6",
34
- "@babel/preset-typescript": "7.18.6",
35
- "@babel/runtime": "7.20.13",
34
+ "@babel/preset-typescript": "7.21.5",
35
+ "@babel/runtime": "7.21.5",
36
+ "@tridion-sites/extensions": "{{extensionsApiVersion}}",
36
37
  "@tridion-sites/extensions-cli": "{{extensionsCliVersion}}",
37
- "@types/react": "18.0.27",
38
- "@types/react-dom": "18.0.10",
39
- "@types/react-is": "17.0.3",
38
+ "@tridion-sites/models": "{{modelsVersion}}",
39
+ "@tridion-sites/open-api-client": "{{openApiClientVersion}}",
40
+ "@types/react": "18.2.6",
41
+ "@types/react-dom": "18.2.4",
42
+ "@types/react-is": "18.2.0",
40
43
  "@types/styled-components": "5.1.26",
41
- "@typescript-eslint/eslint-plugin": "5.45.0",
42
- "@typescript-eslint/parser": "5.49.0",
43
- "autoprefixer": "10.4.13",
44
+ "@typescript-eslint/eslint-plugin": "5.59.5",
45
+ "@typescript-eslint/parser": "5.59.5",
44
46
  "babel-loader": "9.1.2",
45
- "babel-plugin-styled-components": "2.0.7",
46
- "css-loader": "6.7.3",
47
- "cssnano": "5.1.14",
48
- "eslint": "8.32.0",
49
- "eslint-config-prettier": "8.6.0",
50
- "eslint-formatter-pretty": "4.1.0",
51
- "eslint-plugin-react": "7.32.1",
47
+ "babel-plugin-styled-components": "2.1.1",
48
+ "eslint": "8.40.0",
49
+ "eslint-config-prettier": "8.8.0",
50
+ "eslint-formatter-pretty": "5.0.0",
51
+ "eslint-plugin-react": "7.32.2",
52
52
  "eslint-plugin-react-hooks": "4.6.0",
53
- "fork-ts-checker-webpack-plugin": "7.3.0",
54
- "mini-css-extract-plugin": "2.7.2",
55
- "postcss": "8.4.21",
56
- "postcss-loader": "7.0.2",
57
- "prettier": "2.8.3",
58
- "tsconfig-paths-webpack-plugin": "4.0.0",
59
- "typescript": "4.9.4",
60
- "webpack": "5.75.0",
61
- "webpack-cli": "5.0.1",
62
- "webpack-dev-server": "4.11.1"
53
+ "fork-ts-checker-webpack-plugin": "8.0.0",
54
+ "prettier": "2.8.8",
55
+ "react": "18.2.0",
56
+ "react-dom": "18.2.0",
57
+ "react-is": "18.2.0",
58
+ "styled-components": "5.3.6",
59
+ "tinymce": "6.4.2",
60
+ "tsconfig-paths-webpack-plugin": "4.0.1",
61
+ "typescript": "5.0.4",
62
+ "webpack": "5.82.1",
63
+ "webpack-cli": "5.1.1",
64
+ "webpack-dev-server": "4.15.0"
63
65
  }
64
66
  }
@@ -1,9 +1,7 @@
1
- import './index.css';
2
-
3
1
  import type { ExtensionModule, RuntimeInformation } from '@tridion-sites/extensions';
4
2
 
5
3
  import packageJson from '../package.json';
6
- import { initializeGlobals } from './globals';
4
+ import { initializeGlobals } from '@globals';
7
5
 
8
6
  const extensionModule: ExtensionModule = {
9
7
  runtimeInfo: packageJson as RuntimeInformation,
@@ -21,7 +21,10 @@
21
21
  "skipLibCheck": true,
22
22
  "strict": true,
23
23
  "allowJs": false,
24
- "downlevelIteration": true
24
+ "downlevelIteration": true,
25
+ "paths": {
26
+ "@globals": ["./src/globals"]
27
+ }
25
28
  },
26
29
 
27
30
  "include": ["./src/**/*.ts", "./src/**/*.tsx", "./types"]
@@ -1,8 +1,5 @@
1
1
  import { resolve, dirname } from 'path';
2
2
  import { fileURLToPath } from 'url';
3
- import autoprefixer from 'autoprefixer';
4
- import cssnano from 'cssnano';
5
- import MiniCssExtractPlugin from 'mini-css-extract-plugin';
6
3
  import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
7
4
  import { extensionsRequestBasePath } from '@tridion-sites/extensions-cli';
8
5
  import { getDevServerConfig } from './devServer.js';
@@ -36,7 +33,7 @@ export default env => ({
36
33
  '@tridion-sites/open-api-client',
37
34
  ],
38
35
  resolve: {
39
- extensions: ['.tsx', '.ts', '.jsx', '.js', '.css'],
36
+ extensions: ['.tsx', '.ts', '.jsx', '.js'],
40
37
  plugins: [new TsconfigPathsPlugin()],
41
38
  },
42
39
  module: {
@@ -46,42 +43,9 @@ export default env => ({
46
43
  exclude: /node_modules/,
47
44
  use: [{ loader: 'babel-loader' }],
48
45
  },
49
- {
50
- test: /\.css$/,
51
- use: [
52
- {
53
- loader: MiniCssExtractPlugin.loader,
54
- },
55
- {
56
- loader: 'css-loader',
57
- options: {
58
- modules: {
59
- localIdentName: '[name]__[local]__[hash:base64]',
60
- exportLocalsConvention: 'camelCaseOnly',
61
- },
62
- },
63
- },
64
- {
65
- loader: 'postcss-loader',
66
- options: {
67
- postcssOptions: {
68
- plugins: [
69
- autoprefixer(),
70
- cssnano({
71
- safe: true,
72
- autoprefixer: false,
73
- }),
74
- ],
75
- },
76
- },
77
- },
78
- ],
79
- },
80
46
  ],
81
47
  },
82
48
  plugins: [
83
- new MiniCssExtractPlugin({ filename: '[name].css' }),
84
-
85
49
  new ForkTsCheckerWebpackPlugin({
86
50
  typescript: {
87
51
  diagnosticOptions: {
@@ -1,8 +1,5 @@
1
1
  import { resolve, dirname } from 'path';
2
2
  import { fileURLToPath } from 'url';
3
- import autoprefixer from 'autoprefixer';
4
- import cssnano from 'cssnano';
5
- import MiniCssExtractPlugin from 'mini-css-extract-plugin';
6
3
  import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
7
4
  import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
8
5
 
@@ -27,7 +24,7 @@ export default {
27
24
  '@tridion-sites/open-api-client',
28
25
  ],
29
26
  resolve: {
30
- extensions: ['.tsx', '.ts', '.jsx', '.js', '.css'],
27
+ extensions: ['.tsx', '.ts', '.jsx', '.js'],
31
28
  plugins: [new TsconfigPathsPlugin()],
32
29
  },
33
30
  module: {
@@ -37,42 +34,9 @@ export default {
37
34
  exclude: /node_modules/,
38
35
  use: [{ loader: 'babel-loader' }],
39
36
  },
40
- {
41
- test: /\.css$/,
42
- use: [
43
- {
44
- loader: MiniCssExtractPlugin.loader,
45
- },
46
- {
47
- loader: 'css-loader',
48
- options: {
49
- modules: {
50
- localIdentName: '[name]__[local]__[hash:base64]',
51
- exportLocalsConvention: 'camelCaseOnly',
52
- },
53
- },
54
- },
55
- {
56
- loader: 'postcss-loader',
57
- options: {
58
- postcssOptions: {
59
- plugins: [
60
- autoprefixer(),
61
- cssnano({
62
- safe: true,
63
- autoprefixer: false,
64
- }),
65
- ],
66
- },
67
- },
68
- },
69
- ],
70
- },
71
37
  ],
72
38
  },
73
39
  plugins: [
74
- new MiniCssExtractPlugin({ filename: '[name].css' }),
75
-
76
40
  new ForkTsCheckerWebpackPlugin({
77
41
  typescript: {
78
42
  diagnosticOptions: {