@liquidcommerce/elements-sdk 2.7.0 → 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.
Files changed (81) hide show
  1. package/README.md +83 -2750
  2. package/dist/index.checkout.esm.js +6898 -6837
  3. package/dist/index.esm.js +11463 -10993
  4. package/dist/types/auto-initialize/shared-utils.d.ts +5 -0
  5. package/dist/types/constants/core.constant.d.ts +0 -4
  6. package/dist/types/core/base-component.service.d.ts +2 -1
  7. package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +1 -0
  8. package/dist/types/enums/core.enum.d.ts +11 -0
  9. package/dist/types/interfaces/configs/product-list.interface.d.ts +2 -2
  10. package/dist/types/interfaces/core.interface.d.ts +5 -4
  11. package/dist/types/modules/address/address-input.component.d.ts +11 -0
  12. package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
  13. package/dist/types/modules/product-list/components/card-components/index.d.ts +3 -0
  14. package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +8 -0
  15. package/dist/types/modules/product-list/components/card-components/product-fulfillments.d.ts +2 -0
  16. package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +13 -0
  17. package/dist/types/modules/product-list/components/card-components/product-title.d.ts +6 -0
  18. package/dist/types/modules/product-list/components/index.d.ts +1 -0
  19. package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +5 -1
  20. package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +28 -0
  21. package/dist/types/modules/product-list/components/product-list-retailers.component.d.ts +10 -2
  22. package/dist/types/modules/product-list/product-list-card.component.d.ts +0 -5
  23. package/dist/types/modules/product-list/product-list.commands.d.ts +11 -2
  24. package/dist/types/modules/product-list/product-list.interface.d.ts +1 -0
  25. package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +11 -2
  26. package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
  27. package/dist/types/utils/dom-compat.d.ts +2 -0
  28. package/docs/gitbook/actions.md +964 -0
  29. package/docs/gitbook/address.md +48 -0
  30. package/docs/gitbook/cart.md +65 -0
  31. package/docs/gitbook/checkout.md +131 -0
  32. package/docs/gitbook/events.md +1765 -0
  33. package/docs/gitbook/overview.md +166 -0
  34. package/docs/gitbook/product.md +64 -0
  35. package/docs/gitbook/quick-start-guide.md +393 -0
  36. package/docs/v1/README.md +210 -0
  37. package/docs/v1/api/actions/address-actions.md +281 -0
  38. package/docs/v1/api/actions/cart-actions.md +337 -0
  39. package/docs/v1/api/actions/checkout-actions.md +387 -0
  40. package/docs/v1/api/actions/product-actions.md +115 -0
  41. package/docs/v1/api/client.md +482 -0
  42. package/docs/v1/api/configuration.md +1 -0
  43. package/docs/v1/api/injection-methods.md +247 -0
  44. package/docs/v1/api/typescript-types.md +1 -0
  45. package/docs/v1/api/ui-helpers.md +200 -0
  46. package/docs/v1/examples/advanced-patterns.md +96 -0
  47. package/docs/v1/examples/checkout-flow.md +91 -0
  48. package/docs/v1/examples/custom-theming.md +63 -0
  49. package/docs/v1/examples/multi-product-page.md +90 -0
  50. package/docs/v1/examples/simple-product-page.md +89 -0
  51. package/docs/v1/getting-started/concepts.md +507 -0
  52. package/docs/v1/getting-started/installation.md +328 -0
  53. package/docs/v1/getting-started/quick-start.md +405 -0
  54. package/docs/v1/guides/address-component.md +431 -0
  55. package/docs/v1/guides/best-practices.md +324 -0
  56. package/docs/v1/guides/cart-component.md +737 -0
  57. package/docs/v1/guides/checkout-component.md +672 -0
  58. package/docs/v1/guides/events.md +926 -0
  59. package/docs/v1/guides/product-component.md +686 -0
  60. package/docs/v1/guides/product-list-component.md +598 -0
  61. package/docs/v1/guides/theming.md +216 -0
  62. package/docs/v1/integration/angular.md +39 -0
  63. package/docs/v1/integration/laravel.md +41 -0
  64. package/docs/v1/integration/nextjs.md +60 -0
  65. package/docs/v1/integration/proxy-setup.md +89 -0
  66. package/docs/v1/integration/react.md +64 -0
  67. package/docs/v1/integration/vanilla-js.md +84 -0
  68. package/docs/v1/integration/vue.md +34 -0
  69. package/docs/v1/reference/browser-support.md +44 -0
  70. package/docs/v1/reference/error-handling.md +70 -0
  71. package/docs/v1/reference/performance.md +54 -0
  72. package/docs/v1/reference/troubleshooting.md +64 -0
  73. package/package.json +1 -1
  74. package/docs/ACTIONS.md +0 -1301
  75. package/docs/BROWSER_SUPPORT.md +0 -279
  76. package/docs/CONFIGURATION.md +0 -997
  77. package/docs/DOCUMENTATION_INDEX.md +0 -319
  78. package/docs/EVENTS.md +0 -798
  79. package/docs/PROXY.md +0 -228
  80. package/docs/THEMING.md +0 -681
  81. package/docs/TROUBLESHOOTING.md +0 -793
@@ -1,319 +0,0 @@
1
- # Documentation Index
2
-
3
- Complete guide to the LiquidCommerce Elements SDK documentation.
4
-
5
- ## 📚 Core Documentation
6
-
7
- ### [README.md](../README.md)
8
- **Main entry point** for the SDK with progressive learning path.
9
-
10
- **Contents:**
11
- - Quick Start guide (auto-initialization)
12
- - Advanced usage (programmatic init)
13
- - Configuration reference
14
- - SDK methods & API
15
- - UI helpers
16
- - Programmatic control (actions)
17
- - Events system
18
- - Themes & customization
19
- - Features deep dive
20
- - Core capabilities
21
- - Integration patterns
22
- - Error handling
23
- - Performance & best practices
24
- - Proxy configuration
25
- - FAQ
26
- - Versioning
27
- - Demo pages
28
- - Browser support
29
-
30
- **Best for:** Getting started, overview of all features
31
-
32
- ---
33
-
34
- ## 🔧 Technical References
35
-
36
- ### [CONFIGURATION.md](./CONFIGURATION.md)
37
- **Complete configuration reference** for all SDK options.
38
-
39
- **Contents:**
40
- - Basic configuration
41
- - All configuration options with types
42
- - Hosted checkout configuration
43
- - Auto-initialization attributes
44
- - Product list configuration (filters, search, grid)
45
- - Mobile cart button attributes
46
- - Custom cart elements (toggle, items count)
47
- - Checkout-only build configuration
48
- - URL parameter configuration
49
- - TypeScript types
50
- - Configuration examples
51
- - Environment variables
52
- - Best practices
53
-
54
- **Best for:** Understanding all config options, TypeScript developers
55
-
56
- ### [THEMING.md](./THEMING.md)
57
- **Complete theming guide** for customizing component appearance.
58
-
59
- **Contents:**
60
- - Global theme configuration
61
- - Colors, typography, spacing
62
- - Border radius, shadows, transitions
63
- - Product component theme
64
- - Cart component theme
65
- - Checkout component theme
66
- - Address component theme
67
- - Product list component theme (card styles, display modes)
68
- - Dynamic theme updates (builder mode)
69
- - Theme presets (example configurations)
70
- - Best practices
71
-
72
- **Best for:** Designers, frontend developers customizing appearance
73
-
74
- ### [ACTIONS.md](./ACTIONS.md)
75
- **Programmatic control reference** for all available actions.
76
-
77
- **Contents:**
78
- - Product actions
79
- - Address actions (Google Places & manual)
80
- - Cart actions (including programmatic addProduct)
81
- - Checkout actions (including programmatic addProduct, exitCheckout)
82
- - Action feedback events
83
- - Event handling best practices
84
- - Real-world business scenarios
85
- - Implementation strategy
86
- - Common integration patterns
87
- - Business ROI tracking
88
-
89
- **Best for:** Developers building custom flows, automation
90
-
91
- ### [EVENTS.md](./EVENTS.md)
92
- **Event system reference** for tracking and responding to user interactions.
93
-
94
- **Contents:**
95
- - SDK lifecycle events
96
- - Product events
97
- - Cart events
98
- - Checkout events
99
- - Address events
100
- - Action feedback events
101
- - Security notes
102
- - Implementation examples
103
- - Real-world use cases
104
- - Cart abandonment recovery
105
- - Revenue optimization
106
- - Conversion tracking
107
-
108
- **Best for:** Analytics integration, custom behaviors, tracking
109
-
110
- ### [PROXY.md](./PROXY.md)
111
- **Proxy configuration guide** for routing API requests through your server.
112
-
113
- **Contents:**
114
- - Quick setup
115
- - How it works
116
- - Required headers
117
- - Next.js implementation (Pages Router & App Router)
118
- - Testing
119
- - Security considerations
120
- - Benefits
121
- - Configuration options
122
-
123
- **Best for:** Avoiding ad blockers, custom routing, monitoring
124
-
125
- ### [BROWSER_SUPPORT.md](./BROWSER_SUPPORT.md)
126
- **Browser compatibility reference** with detailed support information.
127
-
128
- **Contents:**
129
- - Minimum supported versions
130
- - Polyfills included
131
- - Transpilation targets
132
- - Testing recommendations
133
- - Mobile support
134
- - PWA support
135
- - Known limitations
136
- - Browser-specific notes
137
- - Feature detection
138
- - Detailed version support by year
139
-
140
- **Best for:** QA teams, compatibility planning
141
-
142
- ### [TROUBLESHOOTING.md](./TROUBLESHOOTING.md)
143
- **Comprehensive troubleshooting guide** for common issues and solutions.
144
-
145
- **Contents:**
146
- - SDK initialization issues
147
- - Component rendering issues
148
- - Event handling issues
149
- - Cart & checkout issues
150
- - Address validation issues
151
- - Network & API issues
152
- - Performance issues
153
- - Mobile-specific issues
154
- - Framework-specific issues (React, Next.js, Vue)
155
- - Browser-specific issues
156
- - Debugging tools
157
- - Getting help
158
-
159
- **Best for:** Debugging, problem-solving, support
160
-
161
- ---
162
-
163
- ## 📖 Documentation Structure
164
-
165
- ```
166
- docs/
167
- ├── DOCUMENTATION_INDEX.md ← You are here
168
- ├── CONFIGURATION.md ← Config reference
169
- ├── THEMING.md ← Theming guide
170
- ├── ACTIONS.md ← Actions reference
171
- ├── EVENTS.md ← Events reference
172
- ├── PROXY.md ← Proxy setup
173
- ├── BROWSER_SUPPORT.md ← Browser compatibility
174
- └── TROUBLESHOOTING.md ← Problem solving
175
- ```
176
-
177
- ---
178
-
179
- ## 🎯 Documentation by Use Case
180
-
181
- ### I want to...
182
-
183
- #### Get started quickly
184
- → [README.md - Quick Start](../README.md#-quick-start)
185
-
186
- #### Customize the appearance
187
- → [THEMING.md](./THEMING.md)
188
-
189
- #### Build custom flows
190
- → [ACTIONS.md](./ACTIONS.md)
191
-
192
- #### Track user behavior
193
- → [EVENTS.md](./EVENTS.md)
194
-
195
- #### Configure the SDK
196
- → [CONFIGURATION.md](./CONFIGURATION.md)
197
-
198
- #### Avoid ad blockers
199
- → [PROXY.md](./PROXY.md)
200
-
201
- #### Check browser support
202
- → [BROWSER_SUPPORT.md](./BROWSER_SUPPORT.md)
203
-
204
- #### Fix an issue
205
- → [TROUBLESHOOTING.md](./TROUBLESHOOTING.md)
206
-
207
- #### Integrate with React/Vue/Next.js
208
- → [README.md - Integration Patterns](../README.md#-integration-patterns)
209
-
210
- #### Understand error handling
211
- → [README.md - Error Handling](../README.md#-error-handling)
212
-
213
- #### Optimize performance
214
- → [README.md - Performance & Best Practices](../README.md#-performance--best-practices)
215
-
216
- ---
217
-
218
- ## 🚀 Quick Links
219
-
220
- ### Getting Started
221
- - [30-Second Setup](../README.md#the-simplest-setup-30-seconds)
222
- - [Adding Products](../README.md#adding-products-to-your-page)
223
- - [Auto-Init Reference](../README.md#complete-auto-init-reference)
224
-
225
- ### Configuration
226
- - [Environment Options](./CONFIGURATION.md#env-required)
227
- - [Debug Modes](./CONFIGURATION.md#debugmode)
228
- - [Proxy Setup](./PROXY.md)
229
- - [Theme Configuration](./THEMING.md)
230
-
231
- ### Development
232
- - [Programmatic Init](../README.md#programmatic-initialization)
233
- - [Actions API](../README.md#programmatic-control-actions)
234
- - [Events System](../README.md#-events)
235
- - [Builder Mode](./CONFIGURATION.md#isbuilder)
236
-
237
- ### Integration
238
- - [React Integration](../README.md#react-integration)
239
- - [Next.js Integration](../README.md#nextjs-integration)
240
- - [Vue Integration](../README.md#vue-integration)
241
- - [WordPress Integration](../README.md#wordpress-integration)
242
- - [Shopify Integration](../README.md#shopify-integration)
243
-
244
- ### Features
245
- - [Product Engraving](../README.md#product-engraving)
246
- - [Product List](../README.md#product-list)
247
- - [Product List Search & Filters](../README.md#product-list-search)
248
- - [Hosted Checkout](../README.md#hosted-checkout-external-checkout-page)
249
- - [Gift Options](../README.md#gift-options)
250
- - [Promo Codes](../README.md#promo-codes)
251
- - [Gift Cards](../README.md#gift-cards)
252
- - [Tips](../README.md#tips-on-demand-delivery)
253
- - [Marketing Preferences](../README.md#marketing-preferences)
254
-
255
- ### Advanced
256
- - [Core Capabilities](../README.md#-core-capabilities)
257
- - [State Management](../README.md#state-management)
258
- - [Event System (PubSub)](../README.md#event-system-pubsub)
259
- - [Telemetry & Analytics](../README.md#telemetry--analytics)
260
- - [Command Pattern](../README.md#command-pattern)
261
-
262
- ### Troubleshooting
263
- - [SDK Not Loading](./TROUBLESHOOTING.md#sdk-not-loading)
264
- - [Components Not Appearing](./TROUBLESHOOTING.md#components-not-appearing)
265
- - [Events Not Firing](./TROUBLESHOOTING.md#events-not-firing)
266
- - [Cart Not Persisting](./TROUBLESHOOTING.md#cart-not-persisting)
267
- - [CORS Errors](./TROUBLESHOOTING.md#cors-errors)
268
-
269
- ### Adding Examples
270
- Want to contribute an example?
271
- - Must be tested and working
272
- - Follow style guidelines
273
- - Include use case description
274
- - Keep it minimal and focused
275
-
276
- ---
277
-
278
- ## 📞 Need Help?
279
-
280
- 1. **Check the docs** - Start with this index
281
- 2. **Search for your issue** - Use browser search (Cmd/Ctrl + F)
282
- 3. **Try troubleshooting** - [TROUBLESHOOTING.md](./TROUBLESHOOTING.md)
283
- 4. **Enable debug mode** - See errors in console/panel
284
- 5. **Check status page** - LiquidCommerce API status
285
- 6. **Contact support** - With SDK version, browser, and error details
286
-
287
- ---
288
-
289
- ## 🎓 Learning Path
290
-
291
- ### Beginner
292
- 1. [README - Quick Start](../README.md#-quick-start)
293
- 2. [README - Adding Products](../README.md#adding-products-to-your-page)
294
- 3. [README - Configuration](../README.md#-configuration)
295
- 4. [EVENTS.md - Quick Implementation](./EVENTS.md#quick-implementation-guide)
296
-
297
- ### Intermediate
298
- 1. [README - Advanced Usage](../README.md#-advanced-usage)
299
- 2. [ACTIONS.md](./ACTIONS.md)
300
- 3. [CONFIGURATION.md](./CONFIGURATION.md)
301
- 4. [THEMING.md](./THEMING.md)
302
-
303
- ### Advanced
304
- 1. [README - Core Capabilities](../README.md#-core-capabilities)
305
- 2. [README - Integration Patterns](../README.md#-integration-patterns)
306
- 3. [README - Error Handling](../README.md#-error-handling)
307
- 4. [README - Performance](../README.md#-performance--best-practices)
308
- 5. [PROXY.md](./PROXY.md)
309
-
310
- ---
311
-
312
- **Last updated:** January 2026
313
- **SDK Version:** 2.6.x+
314
- **Documentation Version:** 2.1
315
-
316
-
317
- ---
318
-
319
- For questions or documentation feedback, contact your LiquidCommerce representative.