@bikematrix/web-components 1.1.11 → 1.1.14
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 +86 -1
- package/dist/bm_core.es.js +2139 -2132
- package/dist/bm_core.js +8 -8
- package/dist/bm_core.umd.js +8 -8
- package/dist/types/bm_core.es.d.ts +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -243,11 +243,96 @@ Configuration options for BikeMatrix components, organized by feature area.
|
|
|
243
243
|
| `pageType` | "collection" \| "product" \| "index" \| "search" | "index" | Current page type |
|
|
244
244
|
| `currentCollectionHandle` | string | "" | Handle of the current collection |
|
|
245
245
|
| `collections` | Array<{title: string, handle: string, url: string}> | [] | List of available collections with their details |
|
|
246
|
-
| `categories` | Array<{title: string, text_id: string, collection: string}> | [] | List of product categories and their mappings |
|
|
246
|
+
| `categories` | Array<{title: string, text_id: string, collection: string}> | [] | List of product categories and their mappings. See below for a list of all available Categories. Note the 'collection' of the Category must match the Title of one of the items in the collection array (above) for it to show on the Bike Selector as an available Category |
|
|
247
247
|
| `isHomePage` | boolean | false | Whether current page is home page |
|
|
248
248
|
| `isSearchPage` | boolean | false | Whether current page is search page |
|
|
249
249
|
| `logLevel` | "none" \| "verbose" | "none" | Logging verbosity level |
|
|
250
250
|
|
|
251
|
+
The list of available Categories is:
|
|
252
|
+
```html
|
|
253
|
+
<script type="application/json" data-bikematrix-config>
|
|
254
|
+
{
|
|
255
|
+
"categories": [
|
|
256
|
+
{
|
|
257
|
+
"title":"Brake Pads",
|
|
258
|
+
"text_id":"category_brakepads",
|
|
259
|
+
"collection": "{{brake_padsCollectionTitle}}"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"title":"Brake Rotor",
|
|
263
|
+
"text_id":"category_brakerotor",
|
|
264
|
+
"collection": "{{brake_rotorCollectionTitle}}"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"title":"Front Wheel",
|
|
268
|
+
"text_id":"category_frontwheel",
|
|
269
|
+
"collection": "{{front_wheelCollectionTitle}}"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"title":"Rear Wheel",
|
|
273
|
+
"text_id":"category_rearwheel",
|
|
274
|
+
"collection": "{{rear_wheelCollectionTitle}}"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"title":"Wheelset",
|
|
278
|
+
"text_id":"category_wheelset",
|
|
279
|
+
"collection": "{{wheelsetCollectionTitle}}"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"title":"Tyre",
|
|
283
|
+
"text_id":"category_tyre",
|
|
284
|
+
"collection": "{{tyreCollectionTitle}}"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"title":"Tube",
|
|
288
|
+
"text_id":"category_tube",
|
|
289
|
+
"collection": "{{tubeCollectionTitle}}"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"title":"Chain",
|
|
293
|
+
"text_id":"category_chain",
|
|
294
|
+
"collection": "{{chainCollectionTitle}}"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"title":"Cassette",
|
|
298
|
+
"text_id":"category_cassette",
|
|
299
|
+
"collection": "{{cassetteCollectionTitle}}"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"title":"Headset",
|
|
303
|
+
"text_id":"category_headset",
|
|
304
|
+
"collection": "{{headsetCollectionTitle}}"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"title":"Bottom Bracket",
|
|
308
|
+
"text_id":"category_bottombracket",
|
|
309
|
+
"collection": "{{bottomBracketCollectionTitle}}"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"title":"Crankset",
|
|
313
|
+
"text_id":"category_crankset",
|
|
314
|
+
"collection": "{{cranksetCollectionTitle}}"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"title":"Chainring",
|
|
318
|
+
"text_id":"category_chainring",
|
|
319
|
+
"collection": "{{chainringCollectionTitle}}"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"title":"Front Axle",
|
|
323
|
+
"text_id":"category_frontaxle",
|
|
324
|
+
"collection": "{{frontAxleCollectionTitle}}"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"title":"Rear Axle",
|
|
328
|
+
"text_id":"category_rearaxle",
|
|
329
|
+
"collection": "{{rearAxleCollectionTitle}}"
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
}
|
|
333
|
+
</script>
|
|
334
|
+
```
|
|
335
|
+
|
|
251
336
|
#### Bike Selector Configuration
|
|
252
337
|
|
|
253
338
|
| Option | Type | Default | Description |
|