@cunpingtai/webad-react-ad-scripts 0.2.1 → 0.2.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/README.md CHANGED
@@ -8,6 +8,17 @@
8
8
  pnpm add @cunpingtai/webad-react-ad-scripts
9
9
  ```
10
10
 
11
+ 如果 pnpm 报 `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`,请在使用方项目根目录的
12
+ `pnpm-workspace.yaml` 中只豁免本包,然后重新安装:
13
+
14
+ ```yaml
15
+ minimumReleaseAgeExclude:
16
+ - "@cunpingtai/webad-react-ad-scripts"
17
+ ```
18
+
19
+ 这是使用方项目的供应链等待策略,不是包安装失败。也可以设置 `minimumReleaseAge: 0`
20
+ 完全关闭检查,但不推荐。详见完整接入指南。
21
+
11
22
  需要 React 18.3 或 React 19。
12
23
 
13
24
  ## 根部接入
@@ -75,13 +86,13 @@ import {
75
86
 
76
87
  ## 策略
77
88
 
78
- | 模式 | Banner / Native | Smartlink | Social Bar / Popunder |
79
- | ----------------- | --------------- | --------- | --------------------- |
80
- | `none` | 否 | 否 | 否 |
81
- | `adsense` | 否 | 否 | 否 |
82
- | `adsense-limited` | 是 | 否 | 否 |
83
- | `adsterra-safe` | 是 | 是 | 否 |
84
- | `adsterra-full` | 是 | 是 | 是 |
89
+ | 模式 | Banner / Native | Smartlink | Social Bar | Popunder |
90
+ | ----------------- | --------------- | --------- | ---------- | -------- |
91
+ | `none` | 否 | 否 | 否 | 否 |
92
+ | `adsense` | 否 | 否 | 否 | 否 |
93
+ | `adsense-limited` | 是 | 否 | 否 | 否 |
94
+ | `adsterra-safe` | 是 | 是 | 是 | 否 |
95
+ | `adsterra-full` | 是 | 是 | 是 | 是 |
85
96
 
86
97
  同一个 `pageKey` 中,同一个 `placement` 只初始化一次。普通 React re-render 和 Strict Mode 不会重复请求;真实 SPA 路由切换后可以重新初始化。Social Bar 和 Popunder 在整个文档生命周期各只加载一次。
87
98