Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
7 changes: 6 additions & 1 deletion src/statevis/StateVisWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ export class StateVisWindow extends Component<IProps, IState> {

render() {
return (
<div className="uirStateVisContainer" ref={(el) => (this.el = el as HTMLElement)}>
<div
className="uirStateVisContainer"
ref={(el) => {
this.el = el as HTMLElement;
}}
>
{this.props.children}
</div>
);
Expand Down
4 changes: 3 additions & 1 deletion src/statevis/StateVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ export class StateVisualizer extends Component<IProps, IState> {
const { minimized } = this.state;
return (
<div
ref={(el) => (this.rootEl = el as HTMLElement)}
ref={(el) => {
this.rootEl = el as HTMLElement;
}}
onMouseDown={this.cancelAutoMinimize.bind(this)}
onMouseEnter={this.cancelAutoMinimize.bind(this)}
>
Expand Down
6 changes: 5 additions & 1 deletion src/transition/TransitionVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ export class TransitionVisualizer extends Component<IProps, IState> {
let pointerEvents = this.state.pointerEvents;

return (
<div ref={(el) => (this._div = el)}>
<div
ref={(el) => {
this._div = el;
}}
>
<div className="uirTranVis_history" style={{ pointerEvents }}>
{this.state.transitions.map((trans) => (
<div key={trans.$id} className="uirTranVis_transition">
Expand Down
8 changes: 6 additions & 2 deletions src/util/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ export class Modal extends Component<IProps, IState> {
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 (
<div ref={ref => (this._ref = ref)}>
<div
ref={(ref) => {
this._ref = ref;
}}
>
<div className="uirTranVis_modal-backdrop uir-fade" style={{ zIndex: 1040 }} />

<div tabIndex={-1} className="uirTranVis_modal uir-fade" style={{ zIndex: 1050, display: 'block' }}>
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down