@pagepact/interactive-ad-sdk 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/index.d.ts +10 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -6,13 +6,21 @@ declare global {
6
6
  'interactive-ad': HTMLElement;
7
7
  }
8
8
 
9
- // Enables: <interactive-ad /> in JSX (React, Next.js, Solid, etc.)
10
- // We use `any` to avoid forcing a dependency on @types/react for non-React users.
9
+ // Enables: <interactive-ad /> in global JSX (Older React, Preact, SolidJS, etc.)
11
10
  namespace JSX {
12
11
  interface IntrinsicElements {
13
12
  'interactive-ad': any;
14
13
  }
15
14
  }
15
+
16
+ // Enables: <interactive-ad /> in React 18/19+ and Next.js
17
+ namespace React {
18
+ namespace JSX {
19
+ interface IntrinsicElements {
20
+ 'interactive-ad': any;
21
+ }
22
+ }
23
+ }
16
24
  }
17
25
 
18
26
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagepact/interactive-ad-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A framework-agnostic interactive advertisement web component with Firebase integration.",
5
5
  "type": "module",
6
6
  "main": "./dist/interactive-ad-sdk.umd.cjs",