From eafde3e144d37cc1b2907904e1b5c3404ad2c2a0 Mon Sep 17 00:00:00 2001 From: shayan khaleghparast Date: Wed, 12 Jun 2024 11:27:14 +0800 Subject: [PATCH 1/7] fix: fixing iframe load issue --- package-lock.json | 8 +++---- package.json | 2 +- .../localstorage-sync.html | 0 src/components/DerivIframe/DerivIframe.tsx | 21 ++++++++++++------- vite.config.ts | 1 + 5 files changed, 19 insertions(+), 13 deletions(-) rename localstorage-sync.html => public/localstorage-sync.html (100%) diff --git a/package-lock.json b/package-lock.json index e66f9f92..1ad110e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@deriv-com/api-hooks": "^0.1.24", "@deriv-com/translations": "^1.2.4", "@deriv-com/ui": "^1.27.9", - "@deriv-com/utils": "latest", + "@deriv-com/utils": "^0.0.25", "@deriv/deriv-api": "^1.0.15", "@deriv/quill-design": "^1.2.24", "@deriv/quill-icons": "^1.22.10", @@ -2687,9 +2687,9 @@ } }, "node_modules/@deriv-com/utils": { - "version": "0.0.24", - "resolved": "https://registry.npmjs.org/@deriv-com/utils/-/utils-0.0.24.tgz", - "integrity": "sha512-dK9H6GfI/DB7eRTjZS3+K9cEg3gZlCJV+zmDL27OpRHSyddrw2Z//PuMq3WZxtXTGuHt3g7TLDUP7PdvXL8DdA==" + "version": "0.0.25", + "resolved": "https://registry.npmjs.org/@deriv-com/utils/-/utils-0.0.25.tgz", + "integrity": "sha512-zIJLDHgc8Aja+u8YDZ0FVNbMX8DQB3T+ioRzwIj8SevEo/VDEke1IUMxJe5PXCHYNs7ml2mB/mXSfLOr7KGqdA==" }, "node_modules/@deriv/api-types": { "version": "1.0.659", diff --git a/package.json b/package.json index f18cf7e6..f4b1558a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@deriv-com/api-hooks": "^0.1.24", "@deriv-com/translations": "^1.2.4", "@deriv-com/ui": "^1.27.9", - "@deriv-com/utils": "latest", + "@deriv-com/utils": "^0.0.25", "@deriv/deriv-api": "^1.0.15", "@deriv/quill-design": "^1.2.24", "@deriv/quill-icons": "^1.22.10", diff --git a/localstorage-sync.html b/public/localstorage-sync.html similarity index 100% rename from localstorage-sync.html rename to public/localstorage-sync.html diff --git a/src/components/DerivIframe/DerivIframe.tsx b/src/components/DerivIframe/DerivIframe.tsx index 5da42b5d..296de27b 100644 --- a/src/components/DerivIframe/DerivIframe.tsx +++ b/src/components/DerivIframe/DerivIframe.tsx @@ -1,10 +1,15 @@ -const DerivIframe = () => ( -