From 06b16f526d3bc62bc268b8963dcb50f43a5c1acc Mon Sep 17 00:00:00 2001 From: Nicola Peluchetti Date: Mon, 19 Jan 2026 12:10:58 +0100 Subject: [PATCH 1/2] Internal: Update Elementor Icon [ED-22279] --- composer.lock | 38 +++++++++---------- .../assets/images/elementor-notice-icon.svg | 1 - .../js/components/top-bar/top-bar-content.js | 10 ++--- .../admin-home/assets/js/icons/elementor.tsx | 12 +----- package-lock.json | 12 +++--- package.json | 30 +++++++-------- 6 files changed, 47 insertions(+), 56 deletions(-) delete mode 100644 modules/admin-home/assets/images/elementor-notice-icon.svg diff --git a/composer.lock b/composer.lock index eeee6055..4f39d2ac 100644 --- a/composer.lock +++ b/composer.lock @@ -275,16 +275,16 @@ }, { "name": "justinrainbow/json-schema", - "version": "5.3.0", + "version": "5.3.1", "source": { "type": "git", "url": "https://github.com/jsonrainbow/json-schema.git", - "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8" + "reference": "b5a44b6391a3bbb75c9f2b73e1ef03d6045e1e20" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", - "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/b5a44b6391a3bbb75c9f2b73e1ef03d6045e1e20", + "reference": "b5a44b6391a3bbb75c9f2b73e1ef03d6045e1e20", "shasum": "" }, "require": { @@ -334,9 +334,9 @@ ], "support": { "issues": "https://github.com/jsonrainbow/json-schema/issues", - "source": "https://github.com/jsonrainbow/json-schema/tree/5.3.0" + "source": "https://github.com/jsonrainbow/json-schema/tree/5.3.1" }, - "time": "2024-07-06T21:00:26+00:00" + "time": "2025-12-12T08:56:22+00:00" }, { "name": "myclabs/deep-copy", @@ -629,16 +629,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.6.5", + "version": "5.6.6", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "90614c73d3800e187615e2dd236ad0e2a01bf761" + "reference": "5cee1d3dfc2d2aa6599834520911d246f656bcb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/90614c73d3800e187615e2dd236ad0e2a01bf761", - "reference": "90614c73d3800e187615e2dd236ad0e2a01bf761", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/5cee1d3dfc2d2aa6599834520911d246f656bcb8", + "reference": "5cee1d3dfc2d2aa6599834520911d246f656bcb8", "shasum": "" }, "require": { @@ -648,7 +648,7 @@ "phpdocumentor/reflection-common": "^2.2", "phpdocumentor/type-resolver": "^1.7", "phpstan/phpdoc-parser": "^1.7|^2.0", - "webmozart/assert": "^1.9.1" + "webmozart/assert": "^1.9.1 || ^2" }, "require-dev": { "mockery/mockery": "~1.3.5 || ~1.6.0", @@ -687,9 +687,9 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.5" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.6" }, - "time": "2025-11-27T19:50:05+00:00" + "time": "2025-12-22T21:13:58+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -821,16 +821,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "2.3.0", + "version": "2.3.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495" + "reference": "16dbf9937da8d4528ceb2145c9c7c0bd29e26374" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1e0cd5370df5dd2e556a36b9c62f62e555870495", - "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/16dbf9937da8d4528ceb2145c9c7c0bd29e26374", + "reference": "16dbf9937da8d4528ceb2145c9c7c0bd29e26374", "shasum": "" }, "require": { @@ -862,9 +862,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.1" }, - "time": "2025-08-30T15:50:23+00:00" + "time": "2026-01-12T11:33:04+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/modules/admin-home/assets/images/elementor-notice-icon.svg b/modules/admin-home/assets/images/elementor-notice-icon.svg deleted file mode 100644 index 390143cc..00000000 --- a/modules/admin-home/assets/images/elementor-notice-icon.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/modules/admin-home/assets/js/components/top-bar/top-bar-content.js b/modules/admin-home/assets/js/components/top-bar/top-bar-content.js index 27d9ec7b..353e4ece 100644 --- a/modules/admin-home/assets/js/components/top-bar/top-bar-content.js +++ b/modules/admin-home/assets/js/components/top-bar/top-bar-content.js @@ -1,6 +1,5 @@ import Stack from '@elementor/ui/Stack'; -import SvgIcon from '@elementor/ui/SvgIcon'; -import { ReactComponent as ElementorNoticeIcon } from '../../../images/elementor-notice-icon.svg'; +import DynamicIcon from '../dynamic-icon'; import Typography from '@elementor/ui/Typography'; import { __ } from '@wordpress/i18n'; @@ -8,9 +7,10 @@ export const TopBarContent = ( { sx = {}, iconSize = 'medium' } ) => { return ( - - - + { __( 'Hello', 'hello-elementor' ) } diff --git a/modules/admin-home/assets/js/icons/elementor.tsx b/modules/admin-home/assets/js/icons/elementor.tsx index 7dd9140a..c4a4a8db 100644 --- a/modules/admin-home/assets/js/icons/elementor.tsx +++ b/modules/admin-home/assets/js/icons/elementor.tsx @@ -4,16 +4,8 @@ import SvgIcon from '@elementor/ui/SvgIcon'; const BrandElementorIcon = React.forwardRef< SVGSVGElement, React.ComponentProps >( ( props, ref ) => { return ( - - - - - - + + ); } ); diff --git a/package-lock.json b/package-lock.json index fe2b0509..eb94c376 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9977,9 +9977,9 @@ "license": "MIT" }, "node_modules/baseline-browser-mapping": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.9.tgz", - "integrity": "sha512-hY/u2lxLrbecMEWSB0IpGzGyDyeoMFQhCvZd2jGFSE5I17Fh01sYUBPCJtkWERw7zrac9+cIghxm/ytJa2X8iA==", + "version": "2.9.15", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.15.tgz", + "integrity": "sha512-kX8h7K2srmDyYnXRIppo4AH/wYgzWVCs+eKr3RusRSQ5PvRYoEFmR/I0PbdTjKFAoKqp5+kbxnNTFO9jOfSVJg==", "dev": true, "license": "Apache-2.0", "bin": { @@ -10419,9 +10419,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001745", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001745.tgz", - "integrity": "sha512-ywt6i8FzvdgrrrGbr1jZVObnVv6adj+0if2/omv9cmR2oiZs30zL4DIyaptKcbOrBdOIc74QTMoJvSE2QHh5UQ==", + "version": "1.0.30001765", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001765.tgz", + "integrity": "sha512-LWcNtSyZrakjECqmpP4qdg0MMGdN368D7X8XvvAqOcqMv0RxnlqVKZl2V6/mBR68oYMxOZPLw/gO7DuisMHUvQ==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index 4a4a21ee..3911cf5a 100644 --- a/package.json +++ b/package.json @@ -14,34 +14,34 @@ "build:dir": "npm run clean:build && npm run build:prod && rsync -av --exclude-from=.buildignore . $npm_package_name", "package": "npm run clean:build && npm run build:prod && rsync -av --exclude-from=.buildignore . $npm_package_name", "package:zip": "npm run package && zip -r $npm_package_name.$npm_package_version.zip ./$npm_package_name/*", - "test:php": "docker-compose -f bin/docker-compose.yml run --rm wordpress_phpunit phpunit", - "test:playwright": "playwright test -c tests/playwright/playwright.config.ts", - "test:playwright:headless": "CI=1 playwright test -c tests/playwright/playwright.config.ts", - "test:playwright:debug": "npm run test:playwright -- --debug", - "test:setup:playwright": "wp-env run cli bash hello-elementor-config/setup.sh && wp-env run tests-cli bash hello-elementor-config/setup.sh", - "test:setup:chromium": "npx playwright install chromium", + "test:php": "docker-compose -f bin/docker-compose.yml run --rm wordpress_phpunit phpunit", + "test:playwright": "playwright test -c tests/playwright/playwright.config.ts", + "test:playwright:headless": "CI=1 playwright test -c tests/playwright/playwright.config.ts", + "test:playwright:debug": "npm run test:playwright -- --debug", + "test:setup:playwright": "wp-env run cli bash hello-elementor-config/setup.sh && wp-env run tests-cli bash hello-elementor-config/setup.sh", + "test:setup:chromium": "npx playwright install chromium", "zip": "npm run clean:build && npm run build:prod && rsync -av --exclude-from=.buildignore . $npm_package_name && zip -r $npm_package_name.$npm_package_version.zip $npm_package_name/*", "update-version": "node .github/scripts/update-version-in-files.js", - "wp-env:start": "wp-env start", - "wp-env:stop": "wp-env stop" + "wp-env:start": "wp-env start", + "wp-env:stop": "wp-env stop" }, "devDependencies": { + "@elementor/wp-lite-env": "^0.0.20", + "@playwright/test": "^1.52.0", + "@typescript-eslint/parser": "^8.18.0", "@wordpress/components": "^29.9.0", - "@wordpress/env": "^10.26.0", + "@wordpress/env": "^10.26.0", "@wordpress/eslint-plugin": "^22.9.0", "@wordpress/i18n": "^5.23.0", "@wordpress/notices": "^5.23.0", "@wordpress/scripts": "^30.16.0", - "@elementor/wp-lite-env": "^0.0.20", - "@playwright/test": "^1.52.0", - "@typescript-eslint/parser": "^8.18.0", - "copy-webpack-plugin": "^13.0.0", - "dotenv": "^16.5.0", - "typescript": "^5.8.3", + "copy-webpack-plugin": "^13.0.0", + "dotenv": "^16.5.0", "eslint-plugin-babel": "^5.3.1", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-no-jquery": "^3.1.1", "eslint-plugin-react": "^7.37.5", + "typescript": "^5.8.3", "webpack-cli": "^6.0.1", "webpack-remove-empty-scripts": "^1.0.4" }, From e4abb4eb0016571f41414e8b9a4c7ca50c88cae8 Mon Sep 17 00:00:00 2001 From: Nicola Peluchetti Date: Mon, 19 Jan 2026 12:14:24 +0100 Subject: [PATCH 2/2] fix --- modules/admin-home/assets/js/icons/elementor.tsx | 2 +- tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/admin-home/assets/js/icons/elementor.tsx b/modules/admin-home/assets/js/icons/elementor.tsx index c4a4a8db..5fcba770 100644 --- a/modules/admin-home/assets/js/icons/elementor.tsx +++ b/modules/admin-home/assets/js/icons/elementor.tsx @@ -5,7 +5,7 @@ import SvgIcon from '@elementor/ui/SvgIcon'; const BrandElementorIcon = React.forwardRef< SVGSVGElement, React.ComponentProps >( ( props, ref ) => { return ( - + ); } ); diff --git a/tsconfig.json b/tsconfig.json index 92ed7924..7b17ea20 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "$schema": "https://json.schemastore.org/tsconfig", "display": "Node 18 + ESM + Strictest", "compilerOptions": { + "jsx": "react", "lib": [ "es2022" ],