@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.
- package/dist/index.checkout.esm.js +6702 -6693
- package/dist/index.esm.js +11117 -11091
- package/dist/types/core/base-component.service.d.ts +2 -1
- package/dist/types/interfaces/core.interface.d.ts +5 -4
- package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
- package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
- package/dist/types/utils/dom-compat.d.ts +2 -0
- package/docs/gitbook/actions.md +873 -69
- package/docs/gitbook/events.md +1716 -88
- package/docs/v1/guides/events.md +812 -77
- package/docs/v1/reference/browser-support.md +9 -0
- package/package.json +1 -1
|
@@ -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