@active-reach/web-sdk 1.30.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.
- package/dist/aegis.min.js +1 -1
- package/dist/aegis.min.js.map +1 -1
- package/dist/inapp/renderers/reviews.d.ts +9 -9
- package/dist/inapp/renderers/reviews.d.ts.map +1 -1
- package/dist/index.js +308 -284
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,18 +6,19 @@
|
|
|
6
6
|
* change (the Active-Chat precedent for I/O-doing widgets) —
|
|
7
7
|
* `GET {apiHost}/v1/reviews/public` via the gateway (writeKey-authed; tenant
|
|
8
8
|
* resolved from the key). No SSE/socket (web-sdk is REST; review walls are a
|
|
9
|
-
* browsing surface). Between fetches it is pure DOM, inline-styled
|
|
10
|
-
*
|
|
9
|
+
* browsing surface). Between fetches it is pure DOM, inline-styled in the
|
|
10
|
+
* canonical Urbanist in-app font (IN_APP_FONT_STACK) — no external stylesheet,
|
|
11
|
+
* works on any host incl. Shopify themes.
|
|
11
12
|
*
|
|
12
13
|
* Mounted into a `data-aegis-slot="reviews"` anchor (widget_category='reviews',
|
|
13
14
|
* sub_type='reviews', delivery_modes:['embedded_card']). Product read from the
|
|
14
15
|
* slot's `data-product-id`. The SAME contract drives the native SDK + Shopify/
|
|
15
16
|
* Woo/Magento embeds.
|
|
16
17
|
*
|
|
17
|
-
* Renders: AI
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* Renders: a premium AI-summary card, AggregateRating + distribution panel, sort
|
|
19
|
+
* + filter pills, and per card an avatar + verified-purchase badge (G1) + media
|
|
20
|
+
* thumbs + an accent operator-reply card, plus `Review`/`AggregateRating`
|
|
21
|
+
* JSON-LD (G4 SEO stars). The whole wall is centered (margin:auto).
|
|
21
22
|
*/
|
|
22
23
|
import type { RenderContext } from './types';
|
|
23
24
|
/** SDK credentials the review fetch needs (the campaign payload doesn't carry
|
|
@@ -30,9 +31,8 @@ export declare function renderReviewsInline(ctx: RenderContext, target: HTMLElem
|
|
|
30
31
|
/**
|
|
31
32
|
* Overlay variant (mockup C) — a slide-up bottom sheet containing the full
|
|
32
33
|
* review wall. For a reviews campaign whose delivery_modes include
|
|
33
|
-
* 'in_app_overlay' (typically client-triggered
|
|
34
|
-
*
|
|
35
|
-
* (summary, distribution, sort/filter, votes) comes for free.
|
|
34
|
+
* 'in_app_overlay' (typically client-triggered). Mounts the SAME
|
|
35
|
+
* renderReviewsInline into the sheet body.
|
|
36
36
|
*/
|
|
37
37
|
export declare function renderReviewsOverlay(ctx: RenderContext, creds: ReviewsCredentials): void;
|
|
38
38
|
//# sourceMappingURL=reviews.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../../src/inapp/renderers/reviews.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../../src/inapp/renderers/reviews.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C;iFACiF;AACjF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAuKD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAuQT;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAgCxF"}
|