@liquidcommerce/elements-sdk 2.7.1 → 2.7.2

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.
@@ -17,6 +17,15 @@ The Elements SDK requires modern browser features (Web Components + Shadow DOM).
17
17
  - Fetch API
18
18
  - LocalStorage
19
19
 
20
+ ## Server-Side Rendering (SSR)
21
+
22
+ The SDK is browser-only, but it is safe to import in SSR frameworks (Next.js, Remix, Nuxt).
23
+ In non-browser environments, initialization is skipped. If you call the SDK on the server,
24
+ it returns `null` and logs a warning instead of throwing.
25
+
26
+ Call `Elements`, `ElementsCheckout`, or `ElementsBuilder` from client-only code (e.g., after mount)
27
+ to render components.
28
+
20
29
  ## Polyfills (Legacy Browsers)
21
30
 
22
31
  ```html
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "LiquidCommerce Elements SDK",
4
4
  "license": "UNLICENSED",
5
5
  "author": "LiquidCommerce Team",
6
- "version": "2.7.1",
6
+ "version": "2.7.2",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",