@liquidcommerce/elements-sdk 2.2.0-beta.34 → 2.2.0-beta.36

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/README.md CHANGED
@@ -207,8 +207,7 @@ By default, you get a floating cart button. Here's how to customize it:
207
207
  data-liquid-commerce-elements
208
208
  data-token="YOUR_API_KEY"
209
209
  data-env="production"
210
- data-cart-id="header-cart"
211
- data-show-cart-items
210
+ data-cart-badge-button="header-cart"
212
211
  src="https://assets-elements.liquidcommerce.us/all/elements.js"
213
212
  ></script>
214
213
  ```
@@ -220,7 +219,7 @@ By default, you get a floating cart button. Here's how to customize it:
220
219
  data-liquid-commerce-elements
221
220
  data-token="YOUR_API_KEY"
222
221
  data-env="production"
223
- data-hide-cart-floating-button
222
+ data-cart-button-hidden
224
223
  src="https://assets-elements.liquidcommerce.us/all/elements.js"
225
224
  ></script>
226
225
  ```
@@ -324,9 +323,15 @@ Here's every available data attribute:
324
323
  data-env="production|staging|development|local"
325
324
 
326
325
  <!-- Cart Button -->
327
- data-cart-id="container-id"
328
- data-show-cart-items
329
- data-hide-cart-floating-button
326
+ data-cart-button="container-id"
327
+ data-cart-badge-button="container-id"
328
+ data-cart-button-hidden
329
+
330
+ <!-- Cart Button with Position Prefixes -->
331
+ data-cart-button="above:.logo"
332
+ data-cart-badge-button="below:#header"
333
+ data-cart-button="inside:.nav"
334
+ data-cart-badge-button="replace:.old-cart"
330
335
 
331
336
  <!-- Products (Method 1: Direct) -->
332
337
  data-container-1="div-id"