@active-reach/web-sdk 1.29.0 → 1.31.0

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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * CDN / proxy-served Web Push IIFE bundle.
3
+ *
4
+ * Exposes `window.AegisWebPush` for SCRIPT-TAG integrations (Shopify /
5
+ * WooCommerce / Magento embeds) that cannot ESM-`import` `@active-reach/web-sdk/push`.
6
+ * ACS (the Next.js storefront) imports the `./push` export directly; this is the
7
+ * proxy-served twin. Kept OUT of the main `aegis.min.js` so only storefronts that
8
+ * actually enable push pay the bytes (the locked "Option B" — see
9
+ * docs/architecture/SHOPIFY_PARITY_AND_STANDARDS_PLAN.md §6.2 / §6.10).
10
+ *
11
+ * Push is canonically VAPID/Web Push API (NOT Firebase) — this bundle carries the
12
+ * same `AegisWebPush` class ACS runs in production.
13
+ */
14
+ import { AegisWebPush } from './AegisWebPush';
15
+ declare global {
16
+ interface Window {
17
+ AegisWebPush: typeof AegisWebPush;
18
+ }
19
+ }
20
+ export { AegisWebPush };
21
+ //# sourceMappingURL=cdn-push.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdn-push.d.ts","sourceRoot":"","sources":["../../src/push/cdn-push.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,EAAE,OAAO,YAAY,CAAC;KACnC;CACF;AAID,OAAO,EAAE,YAAY,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@active-reach/web-sdk",
3
- "version": "1.29.0",
3
+ "version": "1.31.0",
4
4
  "description": "Web SDK for Active Reach Intelligence — event tracking, identity resolution, in-app messaging, web push, and placements",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "license": "MIT",
46
46
  "scripts": {
47
47
  "build": "vite build && node scripts/build-cdn.js && npm run build:snippet && npm run build:types && npm run sync:web",
48
- "sync:web": "if [ -d ../../apps/web/public ]; then mkdir -p ../../apps/web/public/sdk && cp dist/aegis.min.js dist/aegis.min.js.map ../../apps/web/public/sdk/; else echo 'sync:web: apps/web not in build context (e.g. turbo-pruned cashier-portal build) — skipped; committed bundle is source of truth'; fi",
48
+ "sync:web": "if [ -d ../../apps/web/public ]; then mkdir -p ../../apps/web/public/sdk && cp dist/aegis.min.js dist/aegis.min.js.map dist/aegis-push.min.js dist/aegis-push.min.js.map ../../apps/web/public/sdk/; else echo 'sync:web: apps/web not in build context (e.g. turbo-pruned cashier-portal build) — skipped; committed bundle is source of truth'; fi",
49
49
  "build:snippet": "node scripts/minify-snippet.js",
50
50
  "build:types": "tsc --project tsconfig.build.json",
51
51
  "test": "vitest run",