@liquidcommerce/elements-sdk 2.3.0 → 2.4.1

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.
@@ -0,0 +1,311 @@
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
+ - Auto-initialization attributes
43
+ - URL parameter configuration
44
+ - TypeScript types
45
+ - Configuration examples
46
+ - Environment variables
47
+ - Best practices
48
+
49
+ **Best for:** Understanding all config options, TypeScript developers
50
+
51
+ ### [THEMING.md](./THEMING.md)
52
+ **Complete theming guide** for customizing component appearance.
53
+
54
+ **Contents:**
55
+ - Global theme configuration
56
+ - Colors, typography, spacing
57
+ - Border radius, shadows, transitions
58
+ - Product component theme
59
+ - Cart component theme
60
+ - Checkout component theme
61
+ - Address component theme
62
+ - Dynamic theme updates (builder mode)
63
+ - Theme presets (example configurations)
64
+ - Best practices
65
+
66
+ **Best for:** Designers, frontend developers customizing appearance
67
+
68
+ ### [ACTIONS.md](./ACTIONS.md)
69
+ **Programmatic control reference** for all available actions.
70
+
71
+ **Contents:**
72
+ - Product actions
73
+ - Address actions (Google Places & manual)
74
+ - Cart actions (including programmatic addProduct)
75
+ - Checkout actions (including programmatic addProduct)
76
+ - Action feedback events
77
+ - Event handling best practices
78
+ - Real-world business scenarios
79
+ - Implementation strategy
80
+ - Common integration patterns
81
+ - Business ROI tracking
82
+
83
+ **Best for:** Developers building custom flows, automation
84
+
85
+ ### [EVENTS.md](./EVENTS.md)
86
+ **Event system reference** for tracking and responding to user interactions.
87
+
88
+ **Contents:**
89
+ - SDK lifecycle events
90
+ - Product events
91
+ - Cart events
92
+ - Checkout events
93
+ - Address events
94
+ - Action feedback events
95
+ - Security notes
96
+ - Implementation examples
97
+ - Real-world use cases
98
+ - Cart abandonment recovery
99
+ - Revenue optimization
100
+ - Conversion tracking
101
+
102
+ **Best for:** Analytics integration, custom behaviors, tracking
103
+
104
+ ### [PROXY.md](./PROXY.md)
105
+ **Proxy configuration guide** for routing API requests through your server.
106
+
107
+ **Contents:**
108
+ - Quick setup
109
+ - How it works
110
+ - Required headers
111
+ - Next.js implementation (Pages Router & App Router)
112
+ - Testing
113
+ - Security considerations
114
+ - Benefits
115
+ - Configuration options
116
+
117
+ **Best for:** Avoiding ad blockers, custom routing, monitoring
118
+
119
+ ### [BROWSER_SUPPORT.md](./BROWSER_SUPPORT.md)
120
+ **Browser compatibility reference** with detailed support information.
121
+
122
+ **Contents:**
123
+ - Minimum supported versions
124
+ - Polyfills included
125
+ - Transpilation targets
126
+ - Testing recommendations
127
+ - Mobile support
128
+ - PWA support
129
+ - Known limitations
130
+ - Browser-specific notes
131
+ - Feature detection
132
+ - Detailed version support by year
133
+
134
+ **Best for:** QA teams, compatibility planning
135
+
136
+ ### [TROUBLESHOOTING.md](./TROUBLESHOOTING.md)
137
+ **Comprehensive troubleshooting guide** for common issues and solutions.
138
+
139
+ **Contents:**
140
+ - SDK initialization issues
141
+ - Component rendering issues
142
+ - Event handling issues
143
+ - Cart & checkout issues
144
+ - Address validation issues
145
+ - Network & API issues
146
+ - Performance issues
147
+ - Mobile-specific issues
148
+ - Framework-specific issues (React, Next.js, Vue)
149
+ - Browser-specific issues
150
+ - Debugging tools
151
+ - Getting help
152
+
153
+ **Best for:** Debugging, problem-solving, support
154
+
155
+ ---
156
+
157
+ ## 📖 Documentation Structure
158
+
159
+ ```
160
+ docs/
161
+ ├── DOCUMENTATION_INDEX.md ← You are here
162
+ ├── CONFIGURATION.md ← Config reference
163
+ ├── THEMING.md ← Theming guide
164
+ ├── ACTIONS.md ← Actions reference
165
+ ├── EVENTS.md ← Events reference
166
+ ├── PROXY.md ← Proxy setup
167
+ ├── BROWSER_SUPPORT.md ← Browser compatibility
168
+ └── TROUBLESHOOTING.md ← Problem solving
169
+ ```
170
+
171
+ ---
172
+
173
+ ## 🎯 Documentation by Use Case
174
+
175
+ ### I want to...
176
+
177
+ #### Get started quickly
178
+ → [README.md - Quick Start](../README.md#-quick-start)
179
+
180
+ #### Customize the appearance
181
+ → [THEMING.md](./THEMING.md)
182
+
183
+ #### Build custom flows
184
+ → [ACTIONS.md](./ACTIONS.md)
185
+
186
+ #### Track user behavior
187
+ → [EVENTS.md](./EVENTS.md)
188
+
189
+ #### Configure the SDK
190
+ → [CONFIGURATION.md](./CONFIGURATION.md)
191
+
192
+ #### Avoid ad blockers
193
+ → [PROXY.md](./PROXY.md)
194
+
195
+ #### Check browser support
196
+ → [BROWSER_SUPPORT.md](./BROWSER_SUPPORT.md)
197
+
198
+ #### Fix an issue
199
+ → [TROUBLESHOOTING.md](./TROUBLESHOOTING.md)
200
+
201
+ #### Integrate with React/Vue/Next.js
202
+ → [README.md - Integration Patterns](../README.md#-integration-patterns)
203
+
204
+ #### Understand error handling
205
+ → [README.md - Error Handling](../README.md#-error-handling)
206
+
207
+ #### Optimize performance
208
+ → [README.md - Performance & Best Practices](../README.md#-performance--best-practices)
209
+
210
+ ---
211
+
212
+ ## 🚀 Quick Links
213
+
214
+ ### Getting Started
215
+ - [30-Second Setup](../README.md#the-simplest-setup-30-seconds)
216
+ - [Adding Products](../README.md#adding-products-to-your-page)
217
+ - [Auto-Init Reference](../README.md#complete-auto-init-reference)
218
+
219
+ ### Configuration
220
+ - [Environment Options](./CONFIGURATION.md#env-required)
221
+ - [Debug Modes](./CONFIGURATION.md#debugmode)
222
+ - [Proxy Setup](./PROXY.md)
223
+ - [Theme Configuration](./THEMING.md)
224
+
225
+ ### Development
226
+ - [Programmatic Init](../README.md#programmatic-initialization)
227
+ - [Actions API](../README.md#programmatic-control-actions)
228
+ - [Events System](../README.md#-events)
229
+ - [Builder Mode](./CONFIGURATION.md#isbuilder)
230
+
231
+ ### Integration
232
+ - [React Integration](../README.md#react-integration)
233
+ - [Next.js Integration](../README.md#nextjs-integration)
234
+ - [Vue Integration](../README.md#vue-integration)
235
+ - [WordPress Integration](../README.md#wordpress-integration)
236
+ - [Shopify Integration](../README.md#shopify-integration)
237
+
238
+ ### Features
239
+ - [Product Engraving](../README.md#product-engraving)
240
+ - [Gift Options](../README.md#gift-options)
241
+ - [Promo Codes](../README.md#promo-codes)
242
+ - [Gift Cards](../README.md#gift-cards)
243
+ - [Tips](../README.md#tips-on-demand-delivery)
244
+ - [Marketing Preferences](../README.md#marketing-preferences)
245
+
246
+ ### Advanced
247
+ - [Core Capabilities](../README.md#-core-capabilities)
248
+ - [State Management](../README.md#state-management)
249
+ - [Event System (PubSub)](../README.md#event-system-pubsub)
250
+ - [Telemetry & Analytics](../README.md#telemetry--analytics)
251
+ - [Circuit Breaker](../README.md#circuit-breaker)
252
+ - [Command Pattern](../README.md#command-pattern)
253
+
254
+ ### Troubleshooting
255
+ - [SDK Not Loading](./TROUBLESHOOTING.md#sdk-not-loading)
256
+ - [Components Not Appearing](./TROUBLESHOOTING.md#components-not-appearing)
257
+ - [Events Not Firing](./TROUBLESHOOTING.md#events-not-firing)
258
+ - [Cart Not Persisting](./TROUBLESHOOTING.md#cart-not-persisting)
259
+ - [CORS Errors](./TROUBLESHOOTING.md#cors-errors)
260
+
261
+ ### Adding Examples
262
+ Want to contribute an example?
263
+ - Must be tested and working
264
+ - Follow style guidelines
265
+ - Include use case description
266
+ - Keep it minimal and focused
267
+
268
+ ---
269
+
270
+ ## 📞 Need Help?
271
+
272
+ 1. **Check the docs** - Start with this index
273
+ 2. **Search for your issue** - Use browser search (Cmd/Ctrl + F)
274
+ 3. **Try troubleshooting** - [TROUBLESHOOTING.md](./TROUBLESHOOTING.md)
275
+ 4. **Enable debug mode** - See errors in console/panel
276
+ 5. **Check status page** - LiquidCommerce API status
277
+ 6. **Contact support** - With SDK version, browser, and error details
278
+
279
+ ---
280
+
281
+ ## 🎓 Learning Path
282
+
283
+ ### Beginner
284
+ 1. [README - Quick Start](../README.md#-quick-start)
285
+ 2. [README - Adding Products](../README.md#adding-products-to-your-page)
286
+ 3. [README - Configuration](../README.md#-configuration)
287
+ 4. [EVENTS.md - Quick Implementation](./EVENTS.md#quick-implementation-guide)
288
+
289
+ ### Intermediate
290
+ 1. [README - Advanced Usage](../README.md#-advanced-usage)
291
+ 2. [ACTIONS.md](./ACTIONS.md)
292
+ 3. [CONFIGURATION.md](./CONFIGURATION.md)
293
+ 4. [THEMING.md](./THEMING.md)
294
+
295
+ ### Advanced
296
+ 1. [README - Core Capabilities](../README.md#-core-capabilities)
297
+ 2. [README - Integration Patterns](../README.md#-integration-patterns)
298
+ 3. [README - Error Handling](../README.md#-error-handling)
299
+ 4. [README - Performance](../README.md#-performance--best-practices)
300
+ 5. [PROXY.md](./PROXY.md)
301
+
302
+ ---
303
+
304
+ **Last updated:** October 2025
305
+ **SDK Version:** 2.x+
306
+ **Documentation Version:** 2.0
307
+
308
+
309
+ ---
310
+
311
+ For questions or documentation feedback, contact your LiquidCommerce representative.