From 7ef4fcf9bb333be09d55f744fd3f3f501c14f33c Mon Sep 17 00:00:00 2001 From: Henjo Hoeksma Date: Thu, 19 Nov 2026 15:53:49 +0100 Subject: [PATCH 1/3] chore(deps): react 19, babel 8, sass-loader 17, auto-changelog 2 - react/react-dom 16 -> 19: mount with createRoot (ReactDOM.render is gone) - @babel/core, preset-env, preset-react 7 -> 8, babel-loader 8 -> 10 - sass-loader 16 -> 17, auto-changelog 1 -> 2 - drop style-loader: it was chained on top of MiniCssExtractPlugin.loader, which yields no default export; main.css is loaded via Settings.yaml - drop unused babel-plugin-syntax-dynamic-import - rebuild Resources/Public/main.js --- Resources/Private/Scripts/module.js | 4 +- Resources/Public/main.js | 2 +- Resources/Public/main.js.map | 2 +- package-lock.json | 2489 ++++++++++++--------------- package.json | 18 +- webpack.config.js | 2 - 6 files changed, 1149 insertions(+), 1368 deletions(-) diff --git a/Resources/Private/Scripts/module.js b/Resources/Private/Scripts/module.js index 342ca37..3edafc5 100644 --- a/Resources/Private/Scripts/module.js +++ b/Resources/Private/Scripts/module.js @@ -1,4 +1,4 @@ -import ReactDOM from 'react-dom' +import { createRoot } from 'react-dom/client' import React, { useEffect, useState, useRef } from 'react' import {SketchPicker} from 'react-color' @@ -65,6 +65,6 @@ window.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('.react__placeholder--color-picker').forEach(el => { const color = el.getAttribute('data-color') const targetId = el.getAttribute('data-target') - ReactDOM.render(, el) + createRoot(el).render() }) }) diff --git a/Resources/Public/main.js b/Resources/Public/main.js index cedcf5d..6b28bc7 100644 --- a/Resources/Public/main.js +++ b/Resources/Public/main.js @@ -1,3 +1,3 @@ /*! For license information please see main.js.LICENSE.txt */ -(()=>{var e={529(e,t,n){"use strict";var r=n.cw((e,t)=>{var n,r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",r({viewBox:"0 0 24 24",style:r({fill:n,width:i,height:u},c)},f),o.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}}),o=n.cw((e,t)=>{var n,r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return o.default.createElement("svg",r({viewBox:"0 0 24 24",style:r({fill:n,width:i,height:u},c)},f),o.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}}),a=()=>n(3215),i=n.cw(e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u{var n=c(),r=i(),o=y();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n