rankrunners-cms 0.0.51 → 0.0.53
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/package.json +8 -8
- package/src/api/types/public.ts +1 -0
- package/src/captcha/api.ts +1 -1
- package/src/tanstack/seo/head.ts +16 -0
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rankrunners-cms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.53",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@puckeditor/core": "^0.21.2",
|
|
7
|
-
"@tanstack/react-router": "^1.
|
|
8
|
-
"@tanstack/router-core": "^1.
|
|
9
|
-
"lucide-react": "^1.
|
|
10
|
-
"next": "^16.2.
|
|
11
|
-
"react": "^19.2.
|
|
12
|
-
"valibot": "^1.
|
|
13
|
-
"hono": "^4.12.
|
|
7
|
+
"@tanstack/react-router": "^1.169.2",
|
|
8
|
+
"@tanstack/router-core": "^1.169.2",
|
|
9
|
+
"lucide-react": "^1.14.0",
|
|
10
|
+
"next": "^16.2.6",
|
|
11
|
+
"react": "^19.2.6",
|
|
12
|
+
"valibot": "^1.4.0",
|
|
13
|
+
"hono": "^4.12.18"
|
|
14
14
|
},
|
|
15
15
|
"peerDependenciesMeta": {
|
|
16
16
|
"next": {
|
package/src/api/types/public.ts
CHANGED
|
@@ -26,6 +26,7 @@ export type PublicMediaDTO = InferOutput<typeof PublicMediaSchema>;
|
|
|
26
26
|
const SeoTrackingFields = {
|
|
27
27
|
googleAnalyticsId: optional(string()),
|
|
28
28
|
googleTagManagerId: optional(string()),
|
|
29
|
+
googleAdsId: optional(string()),
|
|
29
30
|
metaPixelId: optional(string()),
|
|
30
31
|
universalPixelId: optional(string()),
|
|
31
32
|
universalPixelAdvertiserId: optional(string()),
|
package/src/captcha/api.ts
CHANGED
|
@@ -198,7 +198,7 @@ function prng(seed: string, length: number) {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
function createWorker() {
|
|
201
|
-
return new Worker(new URL("./worker.ts", import.meta.url));
|
|
201
|
+
return new Worker(new URL("./worker.ts", import.meta.url), { type: "module" });
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
export function isTokenExpired(token: CapToken) {
|
package/src/tanstack/seo/head.ts
CHANGED
|
@@ -162,6 +162,22 @@ export function buildSeoScripts(seoDetails: AnySeoDetails): ScriptTag[] {
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
// Google Ads (separate from GA4 — uses AW- tracking IDs)
|
|
166
|
+
if (seoDetails.googleAdsId) {
|
|
167
|
+
scripts.push({
|
|
168
|
+
src: `https://www.googletagmanager.com/gtag/js?id=${seoDetails.googleAdsId}`,
|
|
169
|
+
async: true,
|
|
170
|
+
});
|
|
171
|
+
scripts.push({
|
|
172
|
+
children: `
|
|
173
|
+
window.dataLayer = window.dataLayer || [];
|
|
174
|
+
function gtag(){dataLayer.push(arguments);}
|
|
175
|
+
gtag('js', new Date());
|
|
176
|
+
gtag('config', '${seoDetails.googleAdsId}');
|
|
177
|
+
`,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
165
181
|
// Trade Desk Universal Pixel
|
|
166
182
|
if (seoDetails.universalPixelId && seoDetails.universalPixelAdvertiserId) {
|
|
167
183
|
scripts.push({
|