@dynamic-labs/web-extension 4.58.0 → 4.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/lib/WebExtension/WebExtension.cjs +1 -1
- package/src/lib/WebExtension/WebExtension.js +1 -1
- package/src/lib/utils/getIFrameController/getIFrameController.cjs +7 -5
- package/src/lib/utils/getIFrameController/getIFrameController.js +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.59.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.58.1...v4.59.0) (2026-01-30)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add password requirement to auto-create wallet flow ([#10324](https://github.com/dynamic-labs/dynamic-auth/issues/10324)) ([f81162d](https://github.com/dynamic-labs/dynamic-auth/commit/f81162dfb8607580192d0683ed6ecb82481d97fd))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* ensure useReinitialize will load state from local storage ([#10312](https://github.com/dynamic-labs/dynamic-auth/issues/10312)) ([647ac6c](https://github.com/dynamic-labs/dynamic-auth/commit/647ac6c35a7a3a747897943b4667d63e57968227))
|
|
13
|
+
|
|
14
|
+
### [4.58.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.58.0...v4.58.1) (2026-01-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* fix ZeroDev multi-wallet switching issue ([#10293](https://github.com/dynamic-labs/dynamic-auth/issues/10293)) ([f3ef7ea](https://github.com/dynamic-labs/dynamic-auth/commit/f3ef7ea5790a70304ef697a04417fdbcc043a620))
|
|
20
|
+
* allow the web-extension to be recreated ([#10318](https://github.com/dynamic-labs/dynamic-auth/issues/10318)) ([3ad3ddb](https://github.com/dynamic-labs/dynamic-auth/commit/3ad3ddbfe80297889679f28679e25bb20d492c22))
|
|
21
|
+
* patch critical vuln for @remix-run/node ([#10322](https://github.com/dynamic-labs/dynamic-auth/issues/10322)) ([a83a102](https://github.com/dynamic-labs/dynamic-auth/commit/a83a1025e992f8d04f0f9e3b3b3878ba6010ceb5))
|
|
22
|
+
|
|
2
23
|
## [4.58.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.57.2...v4.58.0) (2026-01-28)
|
|
3
24
|
|
|
4
25
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/web-extension",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.59.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@dynamic-labs/sdk-api-core": "0.0.860",
|
|
30
30
|
"@turnkey/webauthn-stamper": "0.5.1",
|
|
31
31
|
"@simplewebauthn/browser": "13.1.0",
|
|
32
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
33
|
-
"@dynamic-labs/client": "4.
|
|
34
|
-
"@dynamic-labs/logger": "4.
|
|
35
|
-
"@dynamic-labs/message-transport": "4.
|
|
36
|
-
"@dynamic-labs/utils": "4.
|
|
37
|
-
"@dynamic-labs/webauthn": "4.
|
|
38
|
-
"@dynamic-labs/webview-messages": "4.
|
|
32
|
+
"@dynamic-labs/assert-package-version": "4.59.0",
|
|
33
|
+
"@dynamic-labs/client": "4.59.0",
|
|
34
|
+
"@dynamic-labs/logger": "4.59.0",
|
|
35
|
+
"@dynamic-labs/message-transport": "4.59.0",
|
|
36
|
+
"@dynamic-labs/utils": "4.59.0",
|
|
37
|
+
"@dynamic-labs/webauthn": "4.59.0",
|
|
38
|
+
"@dynamic-labs/webview-messages": "4.59.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {}
|
|
41
41
|
}
|
|
@@ -27,7 +27,7 @@ const WebExtension = ({ iFrameUrl = defaultIFrameUrl, } = {}) => (_, core) => {
|
|
|
27
27
|
core.manifest.setPlatform('browser');
|
|
28
28
|
core.manifest.setRedirectUrl(window.location.href);
|
|
29
29
|
core.manifest.setAppOrigin(window.location.origin);
|
|
30
|
-
const iFrameId = 'dynamic_browser_extension';
|
|
30
|
+
const iFrameId = ['dynamic_browser_extension', core.environmentId].join('_');
|
|
31
31
|
const iFrameUrlWithHostOrigin = addHostOriginToUrl.addHostOriginToUrl(iFrameUrl, window.location.origin);
|
|
32
32
|
const iFrameController = getIFrameController.getIFrameController(iFrameId, iFrameUrlWithHostOrigin);
|
|
33
33
|
iFrameController.hide();
|
|
@@ -23,7 +23,7 @@ const WebExtension = ({ iFrameUrl = defaultIFrameUrl, } = {}) => (_, core) => {
|
|
|
23
23
|
core.manifest.setPlatform('browser');
|
|
24
24
|
core.manifest.setRedirectUrl(window.location.href);
|
|
25
25
|
core.manifest.setAppOrigin(window.location.origin);
|
|
26
|
-
const iFrameId = 'dynamic_browser_extension';
|
|
26
|
+
const iFrameId = ['dynamic_browser_extension', core.environmentId].join('_');
|
|
27
27
|
const iFrameUrlWithHostOrigin = addHostOriginToUrl(iFrameUrl, window.location.origin);
|
|
28
28
|
const iFrameController = getIFrameController(iFrameId, iFrameUrlWithHostOrigin);
|
|
29
29
|
iFrameController.hide();
|
|
@@ -5,12 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
const getIFrameController = (id, iFrameUrl) => {
|
|
7
7
|
let iframe = document.getElementById(id);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
iframe.
|
|
11
|
-
iframe.src = iFrameUrl;
|
|
12
|
-
document.body.appendChild(iframe);
|
|
8
|
+
// Remove iframe if it exists
|
|
9
|
+
if (iframe) {
|
|
10
|
+
iframe.remove();
|
|
13
11
|
}
|
|
12
|
+
iframe = document.createElement('iframe');
|
|
13
|
+
iframe.id = id;
|
|
14
|
+
iframe.src = iFrameUrl;
|
|
15
|
+
document.body.appendChild(iframe);
|
|
14
16
|
const show = () => {
|
|
15
17
|
iframe.style.position = 'fixed';
|
|
16
18
|
iframe.style.top = '0';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
const getIFrameController = (id, iFrameUrl) => {
|
|
3
3
|
let iframe = document.getElementById(id);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
iframe.
|
|
7
|
-
iframe.src = iFrameUrl;
|
|
8
|
-
document.body.appendChild(iframe);
|
|
4
|
+
// Remove iframe if it exists
|
|
5
|
+
if (iframe) {
|
|
6
|
+
iframe.remove();
|
|
9
7
|
}
|
|
8
|
+
iframe = document.createElement('iframe');
|
|
9
|
+
iframe.id = id;
|
|
10
|
+
iframe.src = iFrameUrl;
|
|
11
|
+
document.body.appendChild(iframe);
|
|
10
12
|
const show = () => {
|
|
11
13
|
iframe.style.position = 'fixed';
|
|
12
14
|
iframe.style.top = '0';
|