@dynamic-labs/iframe-setup 4.9.2 → 4.9.4

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 CHANGED
@@ -1,4 +1,26 @@
1
1
 
2
+ ### [4.9.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.3...v4.9.4) (2025-03-17)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **logger:** don't try to store data if localStorage is not available ([#8309](https://github.com/dynamic-labs/dynamic-auth/issues/8309)) ([30164c7](https://github.com/dynamic-labs/dynamic-auth/commit/30164c7de7bbf1463c6f6a7c12c4b60b5cfb6e78))
8
+ * modal corners ([#8308](https://github.com/dynamic-labs/dynamic-auth/issues/8308)) ([2d21d87](https://github.com/dynamic-labs/dynamic-auth/commit/2d21d87466cee4ab3b981b24fa15f5c321b163f5))
9
+
10
+ ### [4.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.2...v4.9.3) (2025-03-14)
11
+
12
+
13
+ ### Features
14
+
15
+ * 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))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * 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))
21
+ * 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))
22
+ * 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))
23
+
2
24
  ### [4.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.1...v4.9.2) (2025-03-12)
3
25
 
4
26
 
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
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.2";
6
+ var version = "4.9.4";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.2";
2
+ var version = "4.9.4";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/iframe-setup",
3
- "version": "4.9.2",
3
+ "version": "4.9.4",
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.2"
21
+ "@dynamic-labs/assert-package-version": "4.9.4"
22
22
  },
23
23
  "peerDependencies": {}
24
24
  }