@htmlbricks/hb-product-comparison 0.67.1 → 0.68.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/manifest.json +121 -1
- package/package.json +1 -1
package/manifest.json
CHANGED
|
@@ -296,6 +296,126 @@
|
|
|
296
296
|
"currency": "€"
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "twoProducts",
|
|
302
|
+
"description": "Compact matrix with two tiers.",
|
|
303
|
+
"data": {
|
|
304
|
+
"headers": [
|
|
305
|
+
{
|
|
306
|
+
"id": "a",
|
|
307
|
+
"label": "Storage"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "b",
|
|
311
|
+
"label": "Support"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"products": [
|
|
315
|
+
{
|
|
316
|
+
"id": "basic",
|
|
317
|
+
"price": 9,
|
|
318
|
+
"model": "Basic",
|
|
319
|
+
"description": "Self-serve",
|
|
320
|
+
"characteristics": {
|
|
321
|
+
"a": "10 GB",
|
|
322
|
+
"b": "Community"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": "pro",
|
|
327
|
+
"price": 29,
|
|
328
|
+
"model": "Pro",
|
|
329
|
+
"description": "Team",
|
|
330
|
+
"characteristics": {
|
|
331
|
+
"a": "1 TB",
|
|
332
|
+
"b": "Priority"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"options": {
|
|
337
|
+
"currency": "$"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "preferredProduct",
|
|
343
|
+
"description": "Highlights one column via preferredProductId.",
|
|
344
|
+
"data": {
|
|
345
|
+
"headers": [
|
|
346
|
+
{
|
|
347
|
+
"id": "char1",
|
|
348
|
+
"label": "CPU"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"id": "char2",
|
|
352
|
+
"label": "RAM"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"products": [
|
|
356
|
+
{
|
|
357
|
+
"id": "small",
|
|
358
|
+
"price": 399,
|
|
359
|
+
"model": "S",
|
|
360
|
+
"characteristics": {
|
|
361
|
+
"char1": "4 cores",
|
|
362
|
+
"char2": "8 GB"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "large",
|
|
367
|
+
"price": 899,
|
|
368
|
+
"model": "L",
|
|
369
|
+
"characteristics": {
|
|
370
|
+
"char1": "8 cores",
|
|
371
|
+
"char2": "32 GB"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"options": {
|
|
376
|
+
"currency": "€",
|
|
377
|
+
"preferredProductId": "large"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "withPromotion",
|
|
383
|
+
"description": "Sale price callout on one plan.",
|
|
384
|
+
"data": {
|
|
385
|
+
"headers": [
|
|
386
|
+
{
|
|
387
|
+
"id": "f1",
|
|
388
|
+
"label": "Feature"
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"products": [
|
|
392
|
+
{
|
|
393
|
+
"id": "on-sale",
|
|
394
|
+
"price": 59,
|
|
395
|
+
"model": "Seasonal",
|
|
396
|
+
"description": "Limited offer",
|
|
397
|
+
"promotion": {
|
|
398
|
+
"originalPrice": 99,
|
|
399
|
+
"type": "percent",
|
|
400
|
+
"note": "Spring sale"
|
|
401
|
+
},
|
|
402
|
+
"characteristics": {
|
|
403
|
+
"f1": "valid"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"id": "regular",
|
|
408
|
+
"price": 99,
|
|
409
|
+
"model": "Standard",
|
|
410
|
+
"characteristics": {
|
|
411
|
+
"f1": "valid"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"options": {
|
|
416
|
+
"currency": "€"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
299
419
|
}
|
|
300
420
|
],
|
|
301
421
|
"iifeIntegrity": "sha384-UiTNd2edppmQSP6rCs9nxurW2WEmPtleiOcxUcC4Ze95+oLK9pUIHHl9IZInE+P1",
|
|
@@ -319,5 +439,5 @@
|
|
|
319
439
|
"size": {},
|
|
320
440
|
"iifePath": "main.iife.js",
|
|
321
441
|
"repoName": "@htmlbricks/hb-product-comparison",
|
|
322
|
-
"version": "0.
|
|
442
|
+
"version": "0.68.2"
|
|
323
443
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-product-comparison",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.2",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Product comparison matrix: columns per product (model, description, promotion, price, purchase button) and rows per feature header with icons or text from each product’s characteristics. Supports preferred product and sale styling; dispatches purchaseClick with product id. Desktop table vs stacked mobile layout.",
|
|
6
6
|
"licenses": [
|