diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08a6922b..a1b18ad1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,6 @@ jobs: - uses: actions/checkout@v2 - name: Configure run: | - npm config set scripts-prepend-node-path auto git config --global user.email uirouter@github.actions git config --global user.name uirouter_github_actions - name: Install Dependencies diff --git a/package.json b/package.json index 41953ce3..70ad870e 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dependencies": { "d3-hierarchy": "^2.0.0", "d3-interpolate": "=1.4.0", - "preact": "~10.4.8" + "preact": "^10.28.1" }, "devDependencies": { "@rollup/plugin-node-resolve": "^9.0.0", @@ -53,7 +53,7 @@ "serve": "^11.3.2", "shx": "^0.3.2", "tslib": "^2.0.1", - "typescript": "^4.0.3" + "typescript": "^5.9.3" }, "peerDependencies": { "@uirouter/core": ">=5.0.0" diff --git a/src/statevis/StateVisWindow.tsx b/src/statevis/StateVisWindow.tsx index adbcaf99..8f833e71 100644 --- a/src/statevis/StateVisWindow.tsx +++ b/src/statevis/StateVisWindow.tsx @@ -129,7 +129,12 @@ export class StateVisWindow extends Component { render() { return ( -
(this.el = el as HTMLElement)}> +
{ + this.el = el as HTMLElement; + }} + > {this.props.children}
); diff --git a/src/statevis/StateVisualizer.tsx b/src/statevis/StateVisualizer.tsx index 836451c0..3c7a5644 100644 --- a/src/statevis/StateVisualizer.tsx +++ b/src/statevis/StateVisualizer.tsx @@ -152,7 +152,9 @@ export class StateVisualizer extends Component { const { minimized } = this.state; return (
(this.rootEl = el as HTMLElement)} + ref={(el) => { + this.rootEl = el as HTMLElement; + }} onMouseDown={this.cancelAutoMinimize.bind(this)} onMouseEnter={this.cancelAutoMinimize.bind(this)} > diff --git a/src/transition/TransitionVisualizer.tsx b/src/transition/TransitionVisualizer.tsx index 15e077c7..4f7a527c 100644 --- a/src/transition/TransitionVisualizer.tsx +++ b/src/transition/TransitionVisualizer.tsx @@ -167,7 +167,11 @@ export class TransitionVisualizer extends Component { let pointerEvents = this.state.pointerEvents; return ( -
(this._div = el)}> +
{ + this._div = el; + }} + >
{this.state.transitions.map((trans) => (
diff --git a/src/util/modal.tsx b/src/util/modal.tsx index d1019ff8..3f468944 100644 --- a/src/util/modal.tsx +++ b/src/util/modal.tsx @@ -22,13 +22,17 @@ export class Modal extends Component { let el = this._ref; setTimeout(() => { let fades = el.getElementsByClassName('uir-fade'); - [].slice.apply(fades).forEach(node => (node.className += ' in')); + [].slice.apply(fades).forEach((node) => (node.className += ' in')); }, 35); } render() { return ( -
(this._ref = ref)}> +
{ + this._ref = ref; + }} + >
diff --git a/yarn.lock b/yarn.lock index 0ff087ac..7ed4d7a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3037,10 +3037,10 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.27: source-map "^0.6.1" supports-color "^6.1.0" -preact@~10.4.8: - version "10.4.8" - resolved "https://registry.yarnpkg.com/preact/-/preact-10.4.8.tgz#8517b106cc5591eb675237c93da99ac052cf4756" - integrity sha512-uVLeEAyRsCkUEFhVHlOu17OxcrwC7+hTGZ08kBoLBiGHiZooUZuibQnphgMKftw/rqYntNMyhVCPqQhcyAGHag== +preact@^10.28.1: + version "10.28.1" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.28.1.tgz#83325f0141bc8c97977c64d532429d667a26b411" + integrity sha512-u1/ixq/lVQI0CakKNvLDEcW5zfCjUQfZdK9qqWuIJtsezuyG6pk9TWj75GMuI/EzRSZB/VAE43sNWWZfiy8psw== prettier@^2.1.2: version "2.3.2" @@ -3848,10 +3848,10 @@ type-fest@^0.8.1: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== -typescript@^4.0.3: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== +typescript@^5.9.3: + version "5.9.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.3.tgz#5b4f59e15310ab17a216f5d6cf53ee476ede670f" + integrity sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw== uglify-js@^3.1.4: version "3.13.5"