@adtogether/web-sdk 0.1.14 → 0.1.21

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,37 +1,42 @@
1
- ## 0.1.14
2
-
3
- * **Feature**: Added `onAdClosed` callback support to banner components.
4
- * **Feature**: Improved automatic `bundleId` detection across all platforms.
5
- * **Security**: Hardened ad-serving logic to prevent payout fraud.
6
- * **Sync**: Version parity across all AdTogether SDKs.
7
-
8
- ## 0.1.12
9
-
10
- * **Feature**: Added `showCloseButton` to React components.
11
- * **Standardization**: Support for `onAdLoaded` and `onAdFailedToLoad` across all platforms.
12
- * **Layout**: Enhanced responsiveness and safety checks for ad rendering.
13
-
14
- ## 0.1.9
15
-
16
- * **Feature**: Added `onAdLoaded` and `onAdFailedToLoad` callback support to React components.
17
- * **Responsive**: Improved responsiveness for both Banner and Interstitial ad components.
18
- * **Standardization**: Updated API signatures to match the unified AdTogether SDK standard.
19
-
20
- ## 0.1.7
21
-
22
- * Documentation improvements.
23
- * Localize ad assets for better registry rendering.
24
- * Update Discord invite link to https://discord.gg/maA8g4ADpk.
25
-
26
- ## 0.1.4
27
-
28
- * Update package metadata and dependencies.
29
-
30
- ## 0.1.1
31
-
32
- * Update repository URLs to new organization.
33
- * Prepare for version 0.1.1 release.
34
-
35
- ## 0.1.0
36
-
37
- * Initial release of the AdTogether Web SDK.
1
+ ## 0.1.21
2
+
3
+ * **Brand**: Added "Powered by AdTogether" attribution to all Interstitial ad formats.
4
+ * **Sync**: Unified versioning (0.1.20) across all AdTogether SDKs.
5
+
6
+ ## 0.1.14
7
+
8
+ * **Feature**: Added `onAdClosed` callback support to banner components.
9
+ * **Feature**: Improved automatic `bundleId` detection across all platforms.
10
+ * **Security**: Hardened ad-serving logic to prevent payout fraud.
11
+ * **Sync**: Version parity across all AdTogether SDKs.
12
+
13
+ ## 0.1.12
14
+
15
+ * **Feature**: Added `showCloseButton` to React components.
16
+ * **Standardization**: Support for `onAdLoaded` and `onAdFailedToLoad` across all platforms.
17
+ * **Layout**: Enhanced responsiveness and safety checks for ad rendering.
18
+
19
+ ## 0.1.9
20
+
21
+ * **Feature**: Added `onAdLoaded` and `onAdFailedToLoad` callback support to React components.
22
+ * **Responsive**: Improved responsiveness for both Banner and Interstitial ad components.
23
+ * **Standardization**: Updated API signatures to match the unified AdTogether SDK standard.
24
+
25
+ ## 0.1.7
26
+
27
+ * Documentation improvements.
28
+ * Localize ad assets for better registry rendering.
29
+ * Update Discord invite link to https://discord.gg/maA8g4ADpk.
30
+
31
+ ## 0.1.4
32
+
33
+ * Update package metadata and dependencies.
34
+
35
+ ## 0.1.1
36
+
37
+ * Update repository URLs to new organization.
38
+ * Prepare for version 0.1.1 release.
39
+
40
+ ## 0.1.0
41
+
42
+ * Initial release of the AdTogether Web SDK.
package/README.md CHANGED
@@ -1,154 +1,154 @@
1
- # AdTogether Web SDK
2
-
3
- [![npm version](https://img.shields.io/npm/v/@adtogether/web-sdk)](https://www.npmjs.com/package/@adtogether/web-sdk)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
-
6
- <p align="center">
7
- <strong>"Show an ad, get an ad shown"</strong><br>
8
- The Universal Ad Exchange & Reciprocal Marketing Platform
9
- </p>
10
-
11
- ---
12
-
13
- **AdTogether** is an ad exchange platform designed to empower developers and creators. By participating in our network, you can engage in reciprocal marketing for your own applications while simultaneously driving traffic to your products and helping you **increase conversions**. Our core philosophy is simple: **"Show an ad, get an ad shown"**.
14
-
15
- This SDK allows web developers (React and Vanilla JS) to easily integrate AdTogether ads into their applications. By displaying ads from other community members, you earn **Ad Credits** that allow your own app's ads to be shown across the AdTogether network.
16
-
17
- ### 🖼️ Visualizing the Experience
18
-
19
- | **Native Banner Ad** | **Interstitial Full-Screen** |
20
- |:---:|:---:|
21
- | ![Banner Example](doc/preview_standard.png) | ![Interstitial Example](doc/preview_premium.png) |
22
- | *Adaptive React Banner Component* | *Full-Screen Interstitial Experience* |
23
-
24
- ## Features
25
-
26
- - 🖼️ **Banner Ads** — Native React `AdTogetherBanner` component with automatic impression tracking and dark mode support.
27
- - 📺 **Interstitial Ads** — Full-screen `AdTogetherInterstitial` component with a configurable close-button countdown.
28
- - 🌑 **Dark Mode Support** — All ad components automatically adapt to system preference, or can be set to `'dark'` / `'light'` explicitly.
29
- - ⚖️ **Fair Exchange** — Automated impression and click tracking ensures fair distribution of ad credits.
30
- - 🔌 **Easy Integration** — A single `initialize()` call and one component is all you need to start earning credits and increase conversions.
31
- - 🧩 **Vanilla JS Support** — Core logic decoupled for use without React or any framework.
32
-
33
- ## Getting Started
34
-
35
- ### 1. Install
36
-
37
- ```bash
38
- npm install @adtogether/web-sdk
39
- ```
40
-
41
- ### 2. Initialize
42
-
43
- Call `AdTogether.initialize()` before rendering any ad components. You can obtain your App ID from the [AdTogether Dashboard](https://adtogether.relaxsoftwareapps.com/dashboard).
44
-
45
- ```typescript
46
- import { AdTogether } from '@adtogether/web-sdk';
47
-
48
- AdTogether.initialize({
49
- appId: 'YOUR_APP_ID',
50
- // bundleId: 'com.example.app' // optional: automatically detected from window.location.hostname
51
- });
52
- ```
53
-
54
- ## Usage
55
-
56
- ### Banner Ads
57
-
58
- Use the `AdTogetherBanner` component anywhere in your React tree. It fetches an ad, renders it, and automatically tracks impressions when 50% or more of the component is visible.
59
-
60
- ```jsx
61
- import { AdTogetherBanner } from '@adtogether/web-sdk/react';
62
-
63
- function MyApp() {
64
- return (
65
- <div>
66
- <h1>My Awesome Web App</h1>
67
-
68
- <AdTogetherBanner
69
- adUnitId="home_bottom_banner"
70
- showCloseButton={true}
71
- onAdLoaded={() => console.log('Banner loaded!')}
72
- onAdFailedToLoad={(error) => console.error('Banner error:', error)}
73
- onAdClosed={() => console.log('Banner closed!')}
74
- />
75
- </div>
76
- );
77
- }
78
- ```
79
-
80
- #### `AdTogetherBanner` Props
81
-
82
- | Prop | Type | Default | Description |
83
- |--------------------|-------------------------|-----------|-------------|
84
- | `adUnitId` | `string` | **required** | Unique identifier for this ad placement. |
85
- | `showCloseButton` | `boolean` | `false` | Show a dismissable close button overlay. |
86
- | `onAdClosed` | `() => void` | — | Called when the user closes the ad. |
87
- | `width` | `number \| string` | `'100%'` | Width of the ad element. |
88
- | `height` | `number \| string` | `'auto'` | Height of the ad element. |
89
- | `theme` | `'dark' \| 'light' \| 'auto'` | `'auto'` | Color scheme. `'auto'` follows system preference. |
90
- | `onAdLoaded` | `() => void` | — | Called when the ad has been successfully fetched and rendered. |
91
- | `onAdFailedToLoad` | `(error: Error) => void`| — | Called if the ad fails to load. |
92
- | `className` | `string` | `''` | Additional CSS class name for the container. |
93
- | `style` | `React.CSSProperties` | `{}` | Additional inline styles for the container. |
94
-
95
- ### Interstitial Ads
96
-
97
- Show a full-screen interstitial ad as a portal overlay. A countdown timer is displayed before the user is allowed to close the ad.
98
-
99
- ```jsx
100
- import { useState } from 'react';
101
- import { AdTogetherInterstitial } from '@adtogether/web-sdk/react';
102
-
103
- function MyApp() {
104
- const [showInterstitial, setShowInterstitial] = useState(false);
105
-
106
- return (
107
- <div>
108
- <button onClick={() => setShowInterstitial(true)}>
109
- Show Interstitial Ad
110
- </button>
111
-
112
- <AdTogetherInterstitial
113
- adUnitId="level_complete_interstitial"
114
- isOpen={showInterstitial}
115
- onClose={() => setShowInterstitial(false)}
116
- closeDelay={5}
117
- onAdLoaded={() => console.log('Interstitial ready')}
118
- onAdFailedToLoad={(error) => console.error('Interstitial error:', error)}
119
- />
120
- </div>
121
- );
122
- }
123
- ```
124
-
125
- #### `AdTogetherInterstitial` Props
126
-
127
- | Prop | Type | Default | Description |
128
- |--------------------|-------------------------|-----------|-------------|
129
- | `adUnitId` | `string` | **required** | Unique identifier for this ad placement. |
130
- | `isOpen` | `boolean` | **required** | When `true`, the interstitial is displayed. |
131
- | `onClose` | `() => void` | **required** | Called when the user closes the interstitial. |
132
- | `closeDelay` | `number` | `3` | Seconds before the close button appears. A countdown is shown during this time. |
133
- | `theme` | `'dark' \| 'light' \| 'auto'` | `'auto'` | Color scheme. `'auto'` follows system preference. |
134
- | `onAdLoaded` | `() => void` | — | Called when the ad has been successfully fetched. |
135
- | `onAdFailedToLoad` | `(error: Error) => void`| — | Called if the ad fails to load. The dialog is automatically dismissed on failure. |
136
-
137
- ## How Credits Work
138
-
139
- 1. **Earn credits** — Every time your app displays an ad from the AdTogether network and the impression is verified, you earn ad credits.
140
- 2. **Spend credits** — Your ad credits are automatically spent to show *your* campaigns inside other apps on the network, helping you increase conversions.
141
- 3. **Fair weighting** — Different ad formats and geographies have different credit weights, ensuring a level playing field for apps of all sizes.
142
-
143
- Create and manage your campaigns from the [AdTogether Dashboard](https://adtogether.relaxsoftwareapps.com/dashboard).
144
-
145
- ## Additional Information
146
-
147
- - 📖 **Documentation**: [adtogether.relaxsoftwareapps.com/docs](https://adtogether.relaxsoftwareapps.com/docs)
148
- - 🐛 **Issues**: [GitHub Issues](https://github.com/undecided2003/AdTogether/issues)
149
- - 💬 **Support**: Join our [Discord community](https://discord.gg/maA8g4ADpk) for real-time help.
150
- - 🌐 **Dashboard**: [adtogether.relaxsoftwareapps.com/dashboard](https://adtogether.relaxsoftwareapps.com/dashboard)
151
-
152
- ## License
153
-
154
- This project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details.
1
+ # AdTogether Web SDK
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@adtogether/web-sdk)](https://www.npmjs.com/package/@adtogether/web-sdk)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ <p align="center">
7
+ <strong>"Show an ad, get an ad shown"</strong><br>
8
+ The Universal Ad Exchange & Reciprocal Marketing Platform
9
+ </p>
10
+
11
+ ---
12
+
13
+ **AdTogether** is an ad exchange platform designed to empower developers and creators. By participating in our network, you can engage in reciprocal marketing for your own applications while simultaneously driving traffic to your products and helping you **increase conversions**. Our core philosophy is simple: **"Show an ad, get an ad shown"**.
14
+
15
+ This SDK allows web developers (React and Vanilla JS) to easily integrate AdTogether ads into their applications. By displaying ads from other community members, you earn **Ad Credits** that allow your own app's ads to be shown across the AdTogether network.
16
+
17
+ ### 🖼️ Visualizing the Experience
18
+
19
+ | **Native Banner Ad** | **Interstitial Full-Screen** |
20
+ |:---:|:---:|
21
+ | ![Banner Example](doc/preview_standard.png) | ![Interstitial Example](doc/preview_premium.png) |
22
+ | *Adaptive React Banner Component* | *Full-Screen Interstitial Experience* |
23
+
24
+ ## Features
25
+
26
+ - 🖼️ **Banner Ads** — Native React `AdTogetherBanner` component with automatic impression tracking and dark mode support.
27
+ - 📺 **Interstitial Ads** — Full-screen `AdTogetherInterstitial` component with a configurable close-button countdown.
28
+ - 🌑 **Dark Mode Support** — All ad components automatically adapt to system preference, or can be set to `'dark'` / `'light'` explicitly.
29
+ - ⚖️ **Fair Exchange** — Automated impression and click tracking ensures fair distribution of ad credits.
30
+ - 🔌 **Easy Integration** — A single `initialize()` call and one component is all you need to start earning credits and increase conversions.
31
+ - 🧩 **Vanilla JS Support** — Core logic decoupled for use without React or any framework.
32
+
33
+ ## Getting Started
34
+
35
+ ### 1. Install
36
+
37
+ ```bash
38
+ npm install @adtogether/web-sdk
39
+ ```
40
+
41
+ ### 2. Initialize
42
+
43
+ Call `AdTogether.initialize()` before rendering any ad components. You can obtain your App ID from the [AdTogether Dashboard](https://adtogether.relaxsoftwareapps.com/dashboard).
44
+
45
+ ```typescript
46
+ import { AdTogether } from '@adtogether/web-sdk';
47
+
48
+ AdTogether.initialize({
49
+ appId: 'YOUR_APP_ID',
50
+ // bundleId: 'com.example.app' // optional: automatically detected from window.location.hostname
51
+ });
52
+ ```
53
+
54
+ ## Usage
55
+
56
+ ### Banner Ads
57
+
58
+ Use the `AdTogetherBanner` component anywhere in your React tree. It fetches an ad, renders it, and automatically tracks impressions when 50% or more of the component is visible.
59
+
60
+ ```jsx
61
+ import { AdTogetherBanner } from '@adtogether/web-sdk/react';
62
+
63
+ function MyApp() {
64
+ return (
65
+ <div>
66
+ <h1>My Awesome Web App</h1>
67
+
68
+ <AdTogetherBanner
69
+ adUnitId="home_bottom_banner"
70
+ showCloseButton={true}
71
+ onAdLoaded={() => console.log('Banner loaded!')}
72
+ onAdFailedToLoad={(error) => console.error('Banner error:', error)}
73
+ onAdClosed={() => console.log('Banner closed!')}
74
+ />
75
+ </div>
76
+ );
77
+ }
78
+ ```
79
+
80
+ #### `AdTogetherBanner` Props
81
+
82
+ | Prop | Type | Default | Description |
83
+ |--------------------|-------------------------|-----------|-------------|
84
+ | `adUnitId` | `string` | **required** | Unique identifier for this ad placement. |
85
+ | `showCloseButton` | `boolean` | `false` | Show a dismissable close button overlay. |
86
+ | `onAdClosed` | `() => void` | — | Called when the user closes the ad. |
87
+ | `width` | `number \| string` | `'100%'` | Width of the ad element. |
88
+ | `height` | `number \| string` | `'auto'` | Height of the ad element. |
89
+ | `theme` | `'dark' \| 'light' \| 'auto'` | `'auto'` | Color scheme. `'auto'` follows system preference. |
90
+ | `onAdLoaded` | `() => void` | — | Called when the ad has been successfully fetched and rendered. |
91
+ | `onAdFailedToLoad` | `(error: Error) => void`| — | Called if the ad fails to load. |
92
+ | `className` | `string` | `''` | Additional CSS class name for the container. |
93
+ | `style` | `React.CSSProperties` | `{}` | Additional inline styles for the container. |
94
+
95
+ ### Interstitial Ads
96
+
97
+ Show a full-screen interstitial ad as a portal overlay. A countdown timer is displayed before the user is allowed to close the ad.
98
+
99
+ ```jsx
100
+ import { useState } from 'react';
101
+ import { AdTogetherInterstitial } from '@adtogether/web-sdk/react';
102
+
103
+ function MyApp() {
104
+ const [showInterstitial, setShowInterstitial] = useState(false);
105
+
106
+ return (
107
+ <div>
108
+ <button onClick={() => setShowInterstitial(true)}>
109
+ Show Interstitial Ad
110
+ </button>
111
+
112
+ <AdTogetherInterstitial
113
+ adUnitId="level_complete_interstitial"
114
+ isOpen={showInterstitial}
115
+ onClose={() => setShowInterstitial(false)}
116
+ closeDelay={5}
117
+ onAdLoaded={() => console.log('Interstitial ready')}
118
+ onAdFailedToLoad={(error) => console.error('Interstitial error:', error)}
119
+ />
120
+ </div>
121
+ );
122
+ }
123
+ ```
124
+
125
+ #### `AdTogetherInterstitial` Props
126
+
127
+ | Prop | Type | Default | Description |
128
+ |--------------------|-------------------------|-----------|-------------|
129
+ | `adUnitId` | `string` | **required** | Unique identifier for this ad placement. |
130
+ | `isOpen` | `boolean` | **required** | When `true`, the interstitial is displayed. |
131
+ | `onClose` | `() => void` | **required** | Called when the user closes the interstitial. |
132
+ | `closeDelay` | `number` | `3` | Seconds before the close button appears. A countdown is shown during this time. |
133
+ | `theme` | `'dark' \| 'light' \| 'auto'` | `'auto'` | Color scheme. `'auto'` follows system preference. |
134
+ | `onAdLoaded` | `() => void` | — | Called when the ad has been successfully fetched. |
135
+ | `onAdFailedToLoad` | `(error: Error) => void`| — | Called if the ad fails to load. The dialog is automatically dismissed on failure. |
136
+
137
+ ## How Credits Work
138
+
139
+ 1. **Earn credits** — Every time your app displays an ad from the AdTogether network and the impression is verified, you earn ad credits.
140
+ 2. **Spend credits** — Your ad credits are automatically spent to show *your* campaigns inside other apps on the network, helping you increase conversions.
141
+ 3. **Fair weighting** — Different ad formats and geographies have different credit weights, ensuring a level playing field for apps of all sizes.
142
+
143
+ Create and manage your campaigns from the [AdTogether Dashboard](https://adtogether.relaxsoftwareapps.com/dashboard).
144
+
145
+ ## Additional Information
146
+
147
+ - 📖 **Documentation**: [adtogether.relaxsoftwareapps.com/docs](https://adtogether.relaxsoftwareapps.com/docs)
148
+ - 🐛 **Issues**: [GitHub Issues](https://github.com/undecided2003/AdTogether/issues)
149
+ - 💬 **Support**: Join our [Discord community](https://discord.gg/maA8g4ADpk) for real-time help.
150
+ - 🌐 **Dashboard**: [adtogether.relaxsoftwareapps.com/dashboard](https://adtogether.relaxsoftwareapps.com/dashboard)
151
+
152
+ ## License
153
+
154
+ This project is licensed under the MIT License — see the [LICENSE](LICENSE) file for details.
@@ -542,7 +542,7 @@ var AdTogetherInterstitial = ({
542
542
  "div",
543
543
  {
544
544
  className: "adtogether-interstitial-img-wrapper",
545
- style: { cursor: "pointer", position: "relative" },
545
+ style: { cursor: "pointer", position: "relative", backgroundColor: isDarkMode ? "#111827" : "#F3F4F6" },
546
546
  onClick: handleAdClick,
547
547
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
548
548
  "img",
@@ -551,8 +551,8 @@ var AdTogetherInterstitial = ({
551
551
  alt: adData.title,
552
552
  style: {
553
553
  width: "100%",
554
- aspectRatio: "16/9",
555
- objectFit: "cover",
554
+ maxHeight: "350px",
555
+ objectFit: "contain",
556
556
  display: "block"
557
557
  }
558
558
  }
@@ -607,6 +607,20 @@ var AdTogetherInterstitial = ({
607
607
  },
608
608
  children: "Learn More \u2192"
609
609
  }
610
+ ),
611
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
612
+ "p",
613
+ {
614
+ style: {
615
+ marginTop: "12px",
616
+ marginBottom: 0,
617
+ fontSize: "10px",
618
+ color: isDarkMode ? "rgba(255,255,255,0.3)" : "rgba(0,0,0,0.3)",
619
+ textAlign: "center",
620
+ letterSpacing: "0.3px"
621
+ },
622
+ children: "Powered by AdTogether"
623
+ }
610
624
  )
611
625
  ]
612
626
  }
@@ -423,7 +423,7 @@ var AdTogetherInterstitial = ({
423
423
  "div",
424
424
  {
425
425
  className: "adtogether-interstitial-img-wrapper",
426
- style: { cursor: "pointer", position: "relative" },
426
+ style: { cursor: "pointer", position: "relative", backgroundColor: isDarkMode ? "#111827" : "#F3F4F6" },
427
427
  onClick: handleAdClick,
428
428
  children: /* @__PURE__ */ jsx2(
429
429
  "img",
@@ -432,8 +432,8 @@ var AdTogetherInterstitial = ({
432
432
  alt: adData.title,
433
433
  style: {
434
434
  width: "100%",
435
- aspectRatio: "16/9",
436
- objectFit: "cover",
435
+ maxHeight: "350px",
436
+ objectFit: "contain",
437
437
  display: "block"
438
438
  }
439
439
  }
@@ -488,6 +488,20 @@ var AdTogetherInterstitial = ({
488
488
  },
489
489
  children: "Learn More \u2192"
490
490
  }
491
+ ),
492
+ /* @__PURE__ */ jsx2(
493
+ "p",
494
+ {
495
+ style: {
496
+ marginTop: "12px",
497
+ marginBottom: 0,
498
+ fontSize: "10px",
499
+ color: isDarkMode ? "rgba(255,255,255,0.3)" : "rgba(0,0,0,0.3)",
500
+ textAlign: "center",
501
+ letterSpacing: "0.3px"
502
+ },
503
+ children: "Powered by AdTogether"
504
+ }
491
505
  )
492
506
  ]
493
507
  }
package/errors.txt CHANGED
@@ -1,2 +1,2 @@
1
- tsconfig.json(15,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
2
- Visit https://aka.ms/ts6 for migration information.
1
+ tsconfig.json(15,25): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
2
+ Visit https://aka.ms/ts6 for migration information.
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@adtogether/web-sdk",
3
- "version": "0.1.14",
4
- "description": "The official AdTogether Web SDK — reciprocal ad exchange to increase conversions and grow your audience.",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/undecided2003/AdTogether.git",
8
- "directory": "sdk/web-sdk"
9
- },
10
- "homepage": "https://adtogether.relaxsoftwareapps.com",
11
- "bugs": {
12
- "url": "https://github.com/undecided2003/AdTogether/issues"
13
- },
14
- "keywords": [
15
- "ads",
16
- "ad-exchange",
17
- "monetization",
18
- "advertising",
19
- "react",
20
- "reciprocal",
21
- "conversions"
22
- ],
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "main": "./dist/index.js",
27
- "module": "./dist/index.mjs",
28
- "types": "./dist/index.d.ts",
29
- "exports": {
30
- ".": {
31
- "types": "./dist/index.d.ts",
32
- "require": "./dist/index.js",
33
- "import": "./dist/index.mjs"
34
- },
35
- "./react": {
36
- "types": "./dist/react/index.d.ts",
37
- "require": "./dist/react/index.js",
38
- "import": "./dist/react/index.mjs"
39
- }
40
- },
41
- "scripts": {
42
- "build": "tsup",
43
- "dev": "tsup --watch"
44
- },
45
- "author": "AdTogether Team",
46
- "license": "MIT",
47
- "type": "commonjs",
48
- "peerDependencies": {
49
- "react": "^19.2.4",
50
- "react-dom": "^19.2.4"
51
- },
52
- "devDependencies": {
53
- "@types/node": "^22.0.0",
54
- "@types/react": "^19.2.14",
55
- "@types/react-dom": "^19.2.3",
56
- "tsup": "^8.5.1",
57
- "typescript": "^5.3.3"
58
- }
59
- }
1
+ {
2
+ "name": "@adtogether/web-sdk",
3
+ "version": "0.1.21",
4
+ "description": "The official AdTogether Web SDK — reciprocal ad exchange to increase conversions and grow your audience.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/undecided2003/AdTogether.git",
8
+ "directory": "sdk/web-sdk"
9
+ },
10
+ "homepage": "https://adtogether.relaxsoftwareapps.com",
11
+ "bugs": {
12
+ "url": "https://github.com/undecided2003/AdTogether/issues"
13
+ },
14
+ "keywords": [
15
+ "ads",
16
+ "ad-exchange",
17
+ "monetization",
18
+ "advertising",
19
+ "react",
20
+ "reciprocal",
21
+ "conversions"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "main": "./dist/index.js",
27
+ "module": "./dist/index.mjs",
28
+ "types": "./dist/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "require": "./dist/index.js",
33
+ "import": "./dist/index.mjs"
34
+ },
35
+ "./react": {
36
+ "types": "./dist/react/index.d.ts",
37
+ "require": "./dist/react/index.js",
38
+ "import": "./dist/react/index.mjs"
39
+ }
40
+ },
41
+ "scripts": {
42
+ "build": "tsup",
43
+ "dev": "tsup --watch"
44
+ },
45
+ "author": "AdTogether Team",
46
+ "license": "MIT",
47
+ "type": "commonjs",
48
+ "peerDependencies": {
49
+ "react": "^19.2.4",
50
+ "react-dom": "^19.2.4"
51
+ },
52
+ "devDependencies": {
53
+ "@types/node": "^22.0.0",
54
+ "@types/react": "^19.2.14",
55
+ "@types/react-dom": "^19.2.3",
56
+ "tsup": "^8.5.1",
57
+ "typescript": "^5.3.3"
58
+ }
59
+ }