@dynamic-labs/iframe-setup 4.9.2 → 4.9.3
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 +14 -0
- package/README.md +32 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.2...v4.9.3) (2025-03-14)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* allow adding extra text to ToS and PP footer using custom css ([#8290](https://github.com/dynamic-labs/dynamic-auth/issues/8290)) ([0f6eb26](https://github.com/dynamic-labs/dynamic-auth/commit/0f6eb2666ea93a32360710ba5ac14eac53e07e2d))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* log out if there is a mismatch in user and wallet state ([#8300](https://github.com/dynamic-labs/dynamic-auth/issues/8300)) ([82ec2ad](https://github.com/dynamic-labs/dynamic-auth/commit/82ec2add1682a576d00dfe13aa1b9cccecf96688))
|
|
13
|
+
* sol sponsored tx for v3 ([#8288](https://github.com/dynamic-labs/dynamic-auth/issues/8288)) ([c466fba](https://github.com/dynamic-labs/dynamic-auth/commit/c466fba417d39641631e29104ec9c156dfdf7647))
|
|
14
|
+
* v3 existing wallet could not log in again ([#8282](https://github.com/dynamic-labs/dynamic-auth/issues/8282)) ([c2d68ad](https://github.com/dynamic-labs/dynamic-auth/commit/c2d68adf575fcce371e438076184ef590f346c9f))
|
|
15
|
+
|
|
2
16
|
### [4.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.1...v4.9.2) (2025-03-12)
|
|
3
17
|
|
|
4
18
|
|
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@ Configure the parent page that will contain the iframe.
|
|
|
21
21
|
To setup the iframe, you need to pass the parent URL to the iframe using the `initial-parent-url` query parameter
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
|
+
import { setupIframe } from '@dynamic-labs/iframe-setup';
|
|
25
|
+
|
|
24
26
|
const iframeURL = new URL('https://iframe.com');
|
|
25
27
|
|
|
26
28
|
if (typeof window !== 'undefined') {
|
|
@@ -223,3 +225,33 @@ const createMessageSender =
|
|
|
223
225
|
};
|
|
224
226
|
|
|
225
227
|
```
|
|
228
|
+
|
|
229
|
+
Now you can import and use the `setupIframe` function in your iframe application:
|
|
230
|
+
|
|
231
|
+
```tsx
|
|
232
|
+
import { setupIframe } from './iframe-setup';
|
|
233
|
+
|
|
234
|
+
const iframeURL = new URL('https://iframe.com');
|
|
235
|
+
|
|
236
|
+
if (typeof window !== 'undefined') {
|
|
237
|
+
iframeURL.searchParams.set('initial-parent-url', window.location.href);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const App = () => {
|
|
241
|
+
const iframeRef = useRef<HTMLIFrameElement>(null);
|
|
242
|
+
|
|
243
|
+
useEffect(() => {
|
|
244
|
+
const cleanUp = setupIframe(iframeRef.current!, iframeURL.origin);
|
|
245
|
+
|
|
246
|
+
return () => {
|
|
247
|
+
cleanUp();
|
|
248
|
+
};
|
|
249
|
+
}, []);
|
|
250
|
+
|
|
251
|
+
return (
|
|
252
|
+
<div>
|
|
253
|
+
<iframe ref={iframeRef} src={iframeURL.toString()} />
|
|
254
|
+
</div>
|
|
255
|
+
);
|
|
256
|
+
};
|
|
257
|
+
```
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/iframe-setup",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.3",
|
|
4
4
|
"description": "Collection of utilities to use the Dynamic SDK in an iframe",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/assert-package-version": "4.9.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.9.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {}
|
|
24
24
|
}
|