Skip to content

Commit 9183086

Browse files
authored
Merge pull request #20 from Statflo/STATFLO-2787
feat(STATFLO-2787): update zustand version
2 parents ba41ef4 + e101989 commit 9183086

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"react-error-boundary": "^3.1.4",
3838
"typescript": "^4.9.3",
3939
"uuid": "^9.0.0",
40-
"zustand": "^4.3.3"
40+
"zustand": "^5.0.3"
4141
},
4242
"devDependencies": {
4343
"@babel/core": "^7.22.5",

src/components/RemoteComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import IframeResizer from "iframe-resizer-react";
23
import React, { ComponentType, FC, useEffect, useState } from "react";
34
import { ErrorBoundary, FallbackProps } from "react-error-boundary";
@@ -62,7 +63,7 @@ export const RemoteComponent: FC<WidgetProps> = ({
6263
}
6364
}, []);
6465

65-
const onLoad = (e: any) => {
66+
const onLoad = () => {
6667
// Populate Iframe widgets with any events they may have missed before loading
6768
const iframe = document.getElementById(widget.id) as HTMLIFrameElement;
6869

src/store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { v4 as uuidv4 } from "uuid";
23
import { createStore } from "zustand/vanilla";
34
import "iframe-resizer/js/iframeResizer.contentWindow";

yarn.lock

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4712,9 +4712,7 @@ yocto-queue@^0.1.0:
47124712
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
47134713
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
47144714

4715-
zustand@^4.3.3:
4716-
version "4.3.6"
4717-
resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.3.6.tgz#ce7804eb75361af0461a2d0536b65461ec5de86f"
4718-
integrity sha512-6J5zDxjxLE+yukC2XZWf/IyWVKnXT9b9HUv09VJ/bwGCpKNcaTqp7Ws28Xr8jnbvnZcdRaidztAPsXFBIqufiw==
4719-
dependencies:
4720-
use-sync-external-store "1.2.0"
4715+
zustand@^5.0.3:
4716+
version "5.0.3"
4717+
resolved "https://registry.yarnpkg.com/zustand/-/zustand-5.0.3.tgz#b323435b73d06b2512e93c77239634374b0e407f"
4718+
integrity sha512-14fwWQtU3pH4dE0dOpdMiWjddcH+QzKIgk1cl8epwSE7yag43k/AD/m4L6+K7DytAOr9gGBe3/EXj9g7cdostg==

0 commit comments

Comments
 (0)