diff --git a/.storybook/main.js b/.storybook/main.js
index cbf56f51e..5a2d449a1 100644
--- a/.storybook/main.js
+++ b/.storybook/main.js
@@ -14,7 +14,7 @@ module.exports = {
options: {
sassLoaderOptions: {
implementation: sass,
- sassOptions: {...sassRenderSyncConfig, silenceDeprecations},
+ sassOptions: { ...sassRenderSyncConfig, silenceDeprecations },
},
},
},
diff --git a/.storybook/preview.js b/.storybook/preview.js
index be7d5ee23..dfd916d44 100644
--- a/.storybook/preview.js
+++ b/.storybook/preview.js
@@ -17,7 +17,7 @@ export const parameters = {
const preview = {
// Enables auto-generated documentation for all stories
// @see https://storybook.js.org/docs/writing-docs/autodocs
- tags: ['autodocs'],
+ tags: ["autodocs"],
parameters,
};
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 301b6e923..4713135a7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,10 +11,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- ``
- `noDrag` parameter: Add the `nodrag` class to the Switch element. Default: `true`
+### Changed
+
+- Upgrading base libraries
+ - Carbon, Codemirror, React-Flow
+
### Fixed
- ``
- fix description and story to point out that `PropertyValueList` need always to be used as wrapper
+- BOM issue on compressed stylesheet
+ - first rule `selector` becomes `BOM:selector` that is valid but will never apply
+ - we fixed this problem by adding a dummy rule as first rule
### Deprecated
diff --git a/babel.config.json b/babel.config.json
index e3abab777..2c3b19e1a 100644
--- a/babel.config.json
+++ b/babel.config.json
@@ -1,8 +1,3 @@
{
- "presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript", "@babel/preset-flow"],
- "plugins": [
- ["@babel/plugin-transform-private-methods", { "loose": true }],
- ["@babel/plugin-transform-private-property-in-object", { "loose": true }],
- ["@babel/plugin-transform-class-properties", { "loose": true }]
- ]
+ "presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"]
}
diff --git a/package.json b/package.json
index 51c9caa66..07d08e350 100644
--- a/package.json
+++ b/package.json
@@ -71,18 +71,18 @@
"@blueprintjs/colors": "^5.1.16",
"@blueprintjs/core": "6.8.1",
"@blueprintjs/select": "6.1.1",
- "@carbon/icons": "^11.80.0",
- "@carbon/react": "^1.107.1",
- "@codemirror/lang-html": "^6.4.11",
+ "@carbon/icons": "^11.87.0",
+ "@carbon/react": "^1.115.0",
+ "@codemirror/lang-html": "^6.4.12",
"@codemirror/lang-javascript": "^6.2.5",
"@codemirror/lang-json": "^6.0.2",
- "@codemirror/lang-markdown": "^6.5.0",
+ "@codemirror/lang-markdown": "^6.5.2",
"@codemirror/lang-sql": "^6.10.0",
"@codemirror/lang-xml": "^6.1.0",
"@codemirror/lang-yaml": "^6.1.3",
- "@codemirror/legacy-modes": "^6.5.2",
+ "@codemirror/legacy-modes": "^6.5.3",
"@mavrin/remark-typograf": "^2.2.0",
- "@xyflow/react": "^12.9.3",
+ "@xyflow/react": "^12.11.5",
"classnames": "^2.5.1",
"codemirror": "^6.0.2",
"color": "^5.0.3",
@@ -95,7 +95,7 @@
"react": "^18.2.0",
"react-dom": "^18.3.1",
"react-flow-renderer": "9.7.4",
- "react-inlinesvg": "^4.4.1",
+ "react-inlinesvg": "^4.5.0",
"react-is": "^18.3.1",
"react-markdown": "^10.1.0",
"react-syntax-highlighter": "^16.1.1",
@@ -109,44 +109,40 @@
"wicg-inert": "^3.1.3"
},
"devDependencies": {
- "@babel/core": "^7.29.0",
- "@babel/plugin-transform-class-properties": "^7.28.6",
- "@babel/plugin-transform-private-methods": "^7.28.6",
- "@babel/plugin-transform-private-property-in-object": "^7.28.6",
- "@babel/preset-env": "^7.29.5",
- "@babel/preset-flow": "^7.27.1",
- "@babel/preset-react": "^7.28.5",
- "@babel/preset-typescript": "^7.28.5",
+ "@babel/core": "^7.29.7",
+ "@babel/preset-env": "^7.29.7",
+ "@babel/preset-react": "^7.29.7",
+ "@babel/preset-typescript": "^7.29.7",
"@eslint/compat": "^2.1.0",
- "@eslint/eslintrc": "^3.3.5",
+ "@eslint/eslintrc": "^3.3.6",
"@eslint/js": "^10.0.1",
- "@storybook/addon-a11y": "^10.4.0",
- "@storybook/addon-docs": "^10.4.0",
- "@storybook/addon-links": "^10.4.0",
+ "@storybook/addon-a11y": "^10.5.10",
+ "@storybook/addon-docs": "^10.5.10",
+ "@storybook/addon-links": "^10.5.10",
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
- "@storybook/cli": "^10.4.0",
+ "@storybook/cli": "^10.5.10",
"@storybook/preset-scss": "^1.0.3",
- "@storybook/react": "^10.4.0",
- "@storybook/react-webpack5": "^10.4.0",
+ "@storybook/react": "^10.5.10",
+ "@storybook/react-webpack5": "^10.5.10",
"@testing-library/dom": "^10.4.1",
- "@testing-library/jest-dom": "^6.9.1",
+ "@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.2",
"@types/he": "^1.2.3",
"@types/jest": "^30.0.0",
"@types/jshint": "^2.12.4",
- "@types/lodash": "^4.17.24",
+ "@types/lodash": "^4.17.25",
"@types/n3": "^1.26.1",
"@types/react-dom": "^18.3.7",
"@types/react-is": "^19.2.0",
"@types/react-syntax-highlighter": "^15.5.13",
- "@typescript-eslint/eslint-plugin": "^8.59.3",
- "@typescript-eslint/parser": "^8.59.3",
+ "@typescript-eslint/eslint-plugin": "^8.68.0",
+ "@typescript-eslint/parser": "^8.68.0",
"babel-jest": "^30.4.1",
- "chromatic": "^16.10.1",
- "eslint": "^10.3.0",
+ "chromatic": "^18.6.1",
+ "eslint": "^10.9.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
- "eslint-plugin-simple-import-sort": "^13.0.0",
+ "eslint-plugin-simple-import-sort": "^14.0.0",
"husky": "^4.3.8",
"identity-obj-proxy": "^3.0.0",
"jest": "^30.4.2",
@@ -156,23 +152,23 @@
"lint-staged": "^15.5.2",
"node-sass-package-importer": "^5.3.3",
"path": "^0.12.7",
- "prettier": "^3.8.3",
+ "prettier": "^3.9.6",
"react-app-polyfill": "^3.0.0",
"react-lorem-ipsum": "^1.4.9",
"regenerator-runtime": "^0.14.1",
"rimraf": "^6.1.3",
- "sass": "^1.99.0",
+ "sass": "^1.103.1",
"sass-loader": "^16.0.8",
- "storybook": "^10.4.0",
- "stylelint": "^17.11.0",
- "stylelint-config-recess-order": "^7.7.0",
+ "storybook": "^10.5.10",
+ "stylelint": "^17.14.1",
+ "stylelint-config-recess-order": "^7.8.0",
"stylelint-config-standard-scss": "^17.0.0",
"stylelint-order": "^8.1.1",
"ts-node": "^10.9.2",
"tsc-esm-fix": "^3.1.2",
"typescript": "^5.9.3",
"url-loader": "^4.1.1",
- "yargs": "^18.0.0"
+ "yargs": "^18.1.0"
},
"peerDependencies": {
"@blueprintjs/core": ">=6",
@@ -180,21 +176,11 @@
},
"resolutions": {
"**/@blueprintjs/core": "6.8.1",
- "node-sass-package-importer/**/postcss": "^8.5.18",
- "stylelint-order/**/postcss": "^8.5.12",
- "stylelint/**/postcss": "^8.5.18",
"hast-util-from-parse5": "8.0.0",
"**/lodash": "^4.18.1",
"**/minimatch": "^3.1.4",
- "**/serialize-javascript": "^7.0.5",
- "**/ws": "^8.21.0",
- "babel-jest/**/js-yaml": "^3.15.1",
- "stylelint/**/js-yaml": "^4.3.1",
- "@eslint/eslintrc/**/js-yaml": "^4.3.1",
- "**/nanoid": "^3.3.18",
- "**/fast-uri": "^3.1.3",
- "sass/**/immutable": "^5.1.8",
- "**/brace-expansion": "^1.1.18"
+ "**/postcss": "^8.5.18",
+ "**/serialize-javascript": "^7.0.5"
},
"husky": {
"hooks": {
diff --git a/scripts/compile-sass.ts b/scripts/compile-sass.ts
index f3288bf6f..e82d0b82b 100644
--- a/scripts/compile-sass.ts
+++ b/scripts/compile-sass.ts
@@ -3,7 +3,7 @@ import * as sass from "sass";
import yargs from "yargs";
import sassRenderSyncConfig from "./sassConfig";
-import { silenceDeprecations } from "./sassDeprecationConfig"
+import { silenceDeprecations } from "./sassDeprecationConfig";
const args = yargs(process.argv.slice(2)).argv as any;
diff --git a/scripts/sassDeprecationConfig.js b/scripts/sassDeprecationConfig.js
index 888046cea..2a8ee5f78 100644
--- a/scripts/sassDeprecationConfig.js
+++ b/scripts/sassDeprecationConfig.js
@@ -1,3 +1,3 @@
module.exports = {
silenceDeprecations: ["import", "legacy-js-api"],
-}
+};
diff --git a/src/_bom-workaround.scss b/src/_bom-workaround.scss
new file mode 100644
index 000000000..bb47a3c14
--- /dev/null
+++ b/src/_bom-workaround.scss
@@ -0,0 +1,28 @@
+.bom-problem-workaround-dummy-rule {
+ /**
+ * This is a workaround to prevent the loss of the first rule of our compressed CSS.
+ *
+ * Sass emits a BOM instead of a `@charset` rule when it creates a compressed
+ * stylesheet that contains non-ASCII characters.
+ * Postcss preserves that BOM since v8.5.24, before that it silently dropped it.
+ * Css-loader does not remove it, although it inlines the CSS into a JS string that
+ * style-loader writes into a `