@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.
@@ -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 (the renderer
10
- * convention — no external stylesheet, works on any host incl. Shopify themes).
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 summary (when the API supplies one), AggregateRating + count +
18
- * distribution bars, sort + filter chips, and per card stars + verified-purchase
19
- * badge (G1) + reward chip (FTC) + media thumbs + operator reply, plus a
20
- * `Review`/`AggregateRating` JSON-LD block (G4 SEO stars).
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, e.g. a "Reviews" button). Mounts
34
- * the SAME `renderReviewsInline` into the sheet body, so every B′ feature
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;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;iFACiF;AACjF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAkRD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAqMT;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAyDxF"}
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"}