@almadar/std 15.15.4 → 15.15.6
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/behaviors/registry/app/molecules/std-pipeline.orb +22 -22
- package/behaviors/registry/core/atoms/std-board.orb +235 -225
- package/behaviors/registry/core/atoms/std-rating-review.orb +607 -602
- package/behaviors/registry/marketing/atoms/std-marketing-article.orb +12 -12
- package/behaviors/registry/marketing/atoms/std-marketing-case-studies.orb +44 -44
- package/behaviors/registry/marketing/atoms/std-marketing-community.orb +29 -29
- package/behaviors/registry/marketing/atoms/std-marketing-cta.orb +34 -34
- package/behaviors/registry/marketing/atoms/std-marketing-features.orb +25 -25
- package/behaviors/registry/marketing/atoms/std-marketing-footer.orb +21 -21
- package/behaviors/registry/marketing/atoms/std-marketing-hero.orb +66 -66
- package/behaviors/registry/marketing/atoms/std-marketing-nav.orb +20 -20
- package/behaviors/registry/marketing/atoms/std-marketing-pricing.orb +43 -43
- package/behaviors/registry/marketing/atoms/std-marketing-showcase.orb +57 -57
- package/behaviors/registry/marketing/atoms/std-marketing-split.orb +27 -27
- package/behaviors/registry/marketing/atoms/std-marketing-stats.orb +13 -13
- package/behaviors/registry/marketing/atoms/std-marketing-steps.orb +32 -32
- package/behaviors/registry/marketing/atoms/std-marketing-team.orb +40 -40
- package/behaviors/registry/marketing/atoms/std-marketing-testimonials.orb +20 -20
- package/behaviors/registry/marketing/molecules/std-about-page.orb +168 -168
- package/behaviors/registry/marketing/molecules/std-feature-detail-page.orb +112 -112
- package/behaviors/registry/marketing/molecules/std-landing-page.orb +251 -235
- package/behaviors/registry/marketing/molecules/std-pricing-page.orb +169 -161
- package/behaviors/registry/marketing/organisms/std-marketing-site.orb +765 -733
- package/dist/behaviors/behaviors-embeddings.json +84820 -66340
- package/dist/behaviors/behaviors-registry.json +1 -1
- package/dist/behaviors/registry/app/molecules/std-pipeline.orb +22 -22
- package/dist/behaviors/registry/core/atoms/std-board.orb +235 -225
- package/dist/behaviors/registry/core/atoms/std-rating-review.orb +607 -602
- package/dist/behaviors/registry/marketing/atoms/std-marketing-article.orb +12 -12
- package/dist/behaviors/registry/marketing/atoms/std-marketing-case-studies.orb +44 -44
- package/dist/behaviors/registry/marketing/atoms/std-marketing-community.orb +29 -29
- package/dist/behaviors/registry/marketing/atoms/std-marketing-cta.orb +34 -34
- package/dist/behaviors/registry/marketing/atoms/std-marketing-features.orb +25 -25
- package/dist/behaviors/registry/marketing/atoms/std-marketing-footer.orb +21 -21
- package/dist/behaviors/registry/marketing/atoms/std-marketing-hero.orb +66 -66
- package/dist/behaviors/registry/marketing/atoms/std-marketing-nav.orb +20 -20
- package/dist/behaviors/registry/marketing/atoms/std-marketing-pricing.orb +43 -43
- package/dist/behaviors/registry/marketing/atoms/std-marketing-showcase.orb +57 -57
- package/dist/behaviors/registry/marketing/atoms/std-marketing-split.orb +27 -27
- package/dist/behaviors/registry/marketing/atoms/std-marketing-stats.orb +13 -13
- package/dist/behaviors/registry/marketing/atoms/std-marketing-steps.orb +32 -32
- package/dist/behaviors/registry/marketing/atoms/std-marketing-team.orb +40 -40
- package/dist/behaviors/registry/marketing/atoms/std-marketing-testimonials.orb +20 -20
- package/dist/behaviors/registry/marketing/molecules/std-about-page.orb +168 -168
- package/dist/behaviors/registry/marketing/molecules/std-feature-detail-page.orb +112 -112
- package/dist/behaviors/registry/marketing/molecules/std-landing-page.orb +251 -235
- package/dist/behaviors/registry/marketing/molecules/std-pricing-page.orb +169 -161
- package/dist/behaviors/registry/marketing/organisms/std-marketing-site.orb +765 -733
- package/dist/behaviors-embeddings.json +84820 -66340
- package/dist/behaviors-registry.json +1 -1
- package/dist/registry/app/molecules/std-pipeline.orb +22 -22
- package/dist/registry/core/atoms/std-board.orb +235 -225
- package/dist/registry/core/atoms/std-rating-review.orb +607 -602
- package/dist/registry/marketing/atoms/std-marketing-article.orb +12 -12
- package/dist/registry/marketing/atoms/std-marketing-case-studies.orb +44 -44
- package/dist/registry/marketing/atoms/std-marketing-community.orb +29 -29
- package/dist/registry/marketing/atoms/std-marketing-cta.orb +34 -34
- package/dist/registry/marketing/atoms/std-marketing-features.orb +25 -25
- package/dist/registry/marketing/atoms/std-marketing-footer.orb +21 -21
- package/dist/registry/marketing/atoms/std-marketing-hero.orb +66 -66
- package/dist/registry/marketing/atoms/std-marketing-nav.orb +20 -20
- package/dist/registry/marketing/atoms/std-marketing-pricing.orb +43 -43
- package/dist/registry/marketing/atoms/std-marketing-showcase.orb +57 -57
- package/dist/registry/marketing/atoms/std-marketing-split.orb +27 -27
- package/dist/registry/marketing/atoms/std-marketing-stats.orb +13 -13
- package/dist/registry/marketing/atoms/std-marketing-steps.orb +32 -32
- package/dist/registry/marketing/atoms/std-marketing-team.orb +40 -40
- package/dist/registry/marketing/atoms/std-marketing-testimonials.orb +20 -20
- package/dist/registry/marketing/molecules/std-about-page.orb +168 -168
- package/dist/registry/marketing/molecules/std-feature-detail-page.orb +112 -112
- package/dist/registry/marketing/molecules/std-landing-page.orb +251 -235
- package/dist/registry/marketing/molecules/std-pricing-page.orb +169 -161
- package/dist/registry/marketing/organisms/std-marketing-site.orb +765 -733
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-rating-review",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "std-rating-review — Airbnb / Amazon / Google Maps style review surface. Header with aggregate score + Write CTA, per-star distribution bars, working sort chips (recent / top rated / lowest), scrollable reviews list with author + stars + comment + helpful action. Topology = loading / viewing / composing / submitting / submitted / error.",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
@@ -21,11 +21,21 @@
|
|
|
21
21
|
"items": {
|
|
22
22
|
"type": "object",
|
|
23
23
|
"properties": {
|
|
24
|
+
"authorName": {
|
|
25
|
+
"name": "authorName",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"required": false
|
|
28
|
+
},
|
|
24
29
|
"avatarIcon": {
|
|
25
30
|
"name": "avatarIcon",
|
|
26
31
|
"type": "string",
|
|
27
32
|
"required": false
|
|
28
33
|
},
|
|
34
|
+
"rating": {
|
|
35
|
+
"name": "rating",
|
|
36
|
+
"type": "number",
|
|
37
|
+
"required": false
|
|
38
|
+
},
|
|
29
39
|
"createdAt": {
|
|
30
40
|
"name": "createdAt",
|
|
31
41
|
"type": "string",
|
|
@@ -36,25 +46,15 @@
|
|
|
36
46
|
"type": "number",
|
|
37
47
|
"required": false
|
|
38
48
|
},
|
|
39
|
-
"id": {
|
|
40
|
-
"name": "id",
|
|
41
|
-
"type": "string",
|
|
42
|
-
"required": true
|
|
43
|
-
},
|
|
44
|
-
"rating": {
|
|
45
|
-
"name": "rating",
|
|
46
|
-
"type": "number",
|
|
47
|
-
"required": false
|
|
48
|
-
},
|
|
49
49
|
"comment": {
|
|
50
50
|
"name": "comment",
|
|
51
51
|
"type": "string",
|
|
52
52
|
"required": false
|
|
53
53
|
},
|
|
54
|
-
"
|
|
55
|
-
"name": "
|
|
54
|
+
"id": {
|
|
55
|
+
"name": "id",
|
|
56
56
|
"type": "string",
|
|
57
|
-
"required":
|
|
57
|
+
"required": true
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -66,38 +66,38 @@
|
|
|
66
66
|
"items": {
|
|
67
67
|
"type": "object",
|
|
68
68
|
"properties": {
|
|
69
|
-
"helpful": {
|
|
70
|
-
"name": "helpful",
|
|
71
|
-
"type": "number",
|
|
72
|
-
"required": false
|
|
73
|
-
},
|
|
74
69
|
"id": {
|
|
75
70
|
"name": "id",
|
|
76
71
|
"type": "string",
|
|
77
72
|
"required": true
|
|
78
73
|
},
|
|
74
|
+
"rating": {
|
|
75
|
+
"name": "rating",
|
|
76
|
+
"type": "number",
|
|
77
|
+
"required": false
|
|
78
|
+
},
|
|
79
79
|
"authorName": {
|
|
80
80
|
"name": "authorName",
|
|
81
81
|
"type": "string",
|
|
82
82
|
"required": false
|
|
83
83
|
},
|
|
84
|
-
"
|
|
85
|
-
"name": "
|
|
86
|
-
"type": "
|
|
84
|
+
"helpful": {
|
|
85
|
+
"name": "helpful",
|
|
86
|
+
"type": "number",
|
|
87
87
|
"required": false
|
|
88
88
|
},
|
|
89
|
-
"
|
|
90
|
-
"name": "
|
|
89
|
+
"comment": {
|
|
90
|
+
"name": "comment",
|
|
91
91
|
"type": "string",
|
|
92
92
|
"required": false
|
|
93
93
|
},
|
|
94
|
-
"
|
|
95
|
-
"name": "
|
|
96
|
-
"type": "
|
|
94
|
+
"avatarIcon": {
|
|
95
|
+
"name": "avatarIcon",
|
|
96
|
+
"type": "string",
|
|
97
97
|
"required": false
|
|
98
98
|
},
|
|
99
|
-
"
|
|
100
|
-
"name": "
|
|
99
|
+
"createdAt": {
|
|
100
|
+
"name": "createdAt",
|
|
101
101
|
"type": "string",
|
|
102
102
|
"required": false
|
|
103
103
|
}
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
"items": {
|
|
122
122
|
"type": "object",
|
|
123
123
|
"properties": {
|
|
124
|
-
"percentage": {
|
|
125
|
-
"name": "percentage",
|
|
126
|
-
"type": "number",
|
|
127
|
-
"required": false
|
|
128
|
-
},
|
|
129
124
|
"label": {
|
|
130
125
|
"name": "label",
|
|
131
126
|
"type": "string",
|
|
132
127
|
"required": true
|
|
128
|
+
},
|
|
129
|
+
"percentage": {
|
|
130
|
+
"name": "percentage",
|
|
131
|
+
"type": "number",
|
|
132
|
+
"required": false
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -396,8 +396,8 @@
|
|
|
396
396
|
"ReviewView",
|
|
397
397
|
{
|
|
398
398
|
"emit": {
|
|
399
|
-
"
|
|
400
|
-
"
|
|
399
|
+
"failure": "ReviewsLoadFailed",
|
|
400
|
+
"success": "ReviewsLoaded"
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
],
|
|
@@ -426,23 +426,29 @@
|
|
|
426
426
|
"fn",
|
|
427
427
|
"row",
|
|
428
428
|
{
|
|
429
|
+
"id": [
|
|
430
|
+
"object/get",
|
|
431
|
+
"@row",
|
|
432
|
+
"id",
|
|
433
|
+
""
|
|
434
|
+
],
|
|
429
435
|
"rating": [
|
|
430
436
|
"object/get",
|
|
431
437
|
"@row",
|
|
432
438
|
"rating",
|
|
433
439
|
5.0
|
|
434
440
|
],
|
|
435
|
-
"
|
|
441
|
+
"authorName": [
|
|
436
442
|
"object/get",
|
|
437
443
|
"@row",
|
|
438
|
-
"
|
|
439
|
-
""
|
|
444
|
+
"authorName",
|
|
445
|
+
"Guest"
|
|
440
446
|
],
|
|
441
|
-
"
|
|
447
|
+
"helpful": [
|
|
442
448
|
"object/get",
|
|
443
449
|
"@row",
|
|
444
|
-
"
|
|
445
|
-
|
|
450
|
+
"helpful",
|
|
451
|
+
0.0
|
|
446
452
|
],
|
|
447
453
|
"comment": [
|
|
448
454
|
"object/get",
|
|
@@ -450,23 +456,17 @@
|
|
|
450
456
|
"comment",
|
|
451
457
|
""
|
|
452
458
|
],
|
|
453
|
-
"
|
|
454
|
-
"object/get",
|
|
455
|
-
"@row",
|
|
456
|
-
"createdAt",
|
|
457
|
-
""
|
|
458
|
-
],
|
|
459
|
-
"helpful": [
|
|
459
|
+
"avatarIcon": [
|
|
460
460
|
"object/get",
|
|
461
461
|
"@row",
|
|
462
|
-
"
|
|
463
|
-
|
|
462
|
+
"avatarIcon",
|
|
463
|
+
"user"
|
|
464
464
|
],
|
|
465
|
-
"
|
|
465
|
+
"createdAt": [
|
|
466
466
|
"object/get",
|
|
467
467
|
"@row",
|
|
468
|
-
"
|
|
469
|
-
"
|
|
468
|
+
"createdAt",
|
|
469
|
+
""
|
|
470
470
|
]
|
|
471
471
|
}
|
|
472
472
|
]
|
|
@@ -516,17 +516,17 @@
|
|
|
516
516
|
"fn",
|
|
517
517
|
"bar",
|
|
518
518
|
{
|
|
519
|
-
"percentage": [
|
|
520
|
-
"object/get",
|
|
521
|
-
"@bar",
|
|
522
|
-
"percentage",
|
|
523
|
-
0.0
|
|
524
|
-
],
|
|
525
519
|
"label": [
|
|
526
520
|
"object/get",
|
|
527
521
|
"@bar",
|
|
528
522
|
"label",
|
|
529
523
|
""
|
|
524
|
+
],
|
|
525
|
+
"percentage": [
|
|
526
|
+
"object/get",
|
|
527
|
+
"@bar",
|
|
528
|
+
"percentage",
|
|
529
|
+
0.0
|
|
530
530
|
]
|
|
531
531
|
}
|
|
532
532
|
]
|
|
@@ -537,41 +537,47 @@
|
|
|
537
537
|
"main",
|
|
538
538
|
{
|
|
539
539
|
"type": "stack",
|
|
540
|
+
"direction": "vertical",
|
|
540
541
|
"gap": "lg",
|
|
541
542
|
"children": [
|
|
542
543
|
{
|
|
543
544
|
"align": "center",
|
|
545
|
+
"direction": "horizontal",
|
|
544
546
|
"children": [
|
|
545
547
|
{
|
|
548
|
+
"direction": "vertical",
|
|
549
|
+
"type": "stack",
|
|
546
550
|
"gap": "xs",
|
|
547
551
|
"children": [
|
|
548
552
|
{
|
|
549
|
-
"type": "stack",
|
|
550
553
|
"direction": "horizontal",
|
|
554
|
+
"gap": "sm",
|
|
555
|
+
"align": "center",
|
|
556
|
+
"type": "stack",
|
|
551
557
|
"children": [
|
|
552
558
|
{
|
|
553
559
|
"type": "icon",
|
|
554
560
|
"name": "star"
|
|
555
561
|
},
|
|
556
562
|
{
|
|
563
|
+
"type": "typography",
|
|
557
564
|
"content": "Reviews",
|
|
558
|
-
"variant": "h3"
|
|
559
|
-
"type": "typography"
|
|
565
|
+
"variant": "h3"
|
|
560
566
|
},
|
|
561
567
|
{
|
|
562
|
-
"content": "·",
|
|
563
568
|
"color": "muted",
|
|
564
|
-
"type": "typography"
|
|
569
|
+
"type": "typography",
|
|
570
|
+
"content": "·"
|
|
565
571
|
},
|
|
566
572
|
{
|
|
573
|
+
"variant": "h3",
|
|
567
574
|
"type": "typography",
|
|
568
|
-
"content": "@entity.averageRating"
|
|
569
|
-
"variant": "h3"
|
|
575
|
+
"content": "@entity.averageRating"
|
|
570
576
|
},
|
|
571
577
|
{
|
|
572
|
-
"type": "icon",
|
|
573
578
|
"color": "warning",
|
|
574
|
-
"name": "star"
|
|
579
|
+
"name": "star",
|
|
580
|
+
"type": "icon"
|
|
575
581
|
},
|
|
576
582
|
{
|
|
577
583
|
"content": "·",
|
|
@@ -580,65 +586,60 @@
|
|
|
580
586
|
},
|
|
581
587
|
{
|
|
582
588
|
"content": "@entity.totalReviews",
|
|
589
|
+
"color": "muted",
|
|
583
590
|
"type": "typography",
|
|
584
|
-
"variant": "h4"
|
|
585
|
-
"color": "muted"
|
|
591
|
+
"variant": "h4"
|
|
586
592
|
},
|
|
587
593
|
{
|
|
588
|
-
"
|
|
594
|
+
"type": "typography",
|
|
589
595
|
"content": "reviews",
|
|
590
|
-
"
|
|
591
|
-
"
|
|
596
|
+
"variant": "h4",
|
|
597
|
+
"color": "muted"
|
|
592
598
|
}
|
|
593
|
-
]
|
|
594
|
-
"gap": "sm",
|
|
595
|
-
"align": "center"
|
|
599
|
+
]
|
|
596
600
|
},
|
|
597
601
|
{
|
|
598
|
-
"content": "@config.subjectTitle",
|
|
599
|
-
"color": "muted",
|
|
600
602
|
"type": "typography",
|
|
603
|
+
"color": "muted",
|
|
604
|
+
"content": "@config.subjectTitle",
|
|
601
605
|
"variant": "caption"
|
|
602
606
|
}
|
|
603
|
-
]
|
|
604
|
-
"type": "stack",
|
|
605
|
-
"direction": "vertical"
|
|
607
|
+
]
|
|
606
608
|
},
|
|
607
609
|
{
|
|
608
|
-
"type": "button",
|
|
609
|
-
"icon": "edit",
|
|
610
610
|
"label": "@config.writeLabel",
|
|
611
611
|
"action": "WRITE_REVIEW",
|
|
612
|
-
"
|
|
612
|
+
"type": "button",
|
|
613
|
+
"variant": "primary",
|
|
614
|
+
"icon": "edit"
|
|
613
615
|
}
|
|
614
616
|
],
|
|
615
|
-
"type": "stack",
|
|
616
617
|
"justify": "between",
|
|
617
618
|
"gap": "md",
|
|
618
|
-
"
|
|
619
|
+
"type": "stack"
|
|
619
620
|
},
|
|
620
621
|
{
|
|
621
622
|
"type": "card",
|
|
622
623
|
"children": [
|
|
623
624
|
{
|
|
624
|
-
"type": "stack",
|
|
625
|
-
"direction": "vertical",
|
|
626
625
|
"gap": "sm",
|
|
626
|
+
"type": "stack",
|
|
627
627
|
"children": [
|
|
628
628
|
{
|
|
629
|
+
"type": "typography",
|
|
629
630
|
"content": "Rating distribution",
|
|
630
|
-
"variant": "h4"
|
|
631
|
-
"type": "typography"
|
|
631
|
+
"variant": "h4"
|
|
632
632
|
},
|
|
633
633
|
{
|
|
634
|
+
"type": "data-list",
|
|
634
635
|
"fields": [],
|
|
635
636
|
"renderItem": [
|
|
636
637
|
"fn",
|
|
637
638
|
"bar",
|
|
638
639
|
{
|
|
639
|
-
"type": "stack",
|
|
640
640
|
"direction": "horizontal",
|
|
641
641
|
"align": "center",
|
|
642
|
+
"type": "stack",
|
|
642
643
|
"children": [
|
|
643
644
|
{
|
|
644
645
|
"content": "@bar.label",
|
|
@@ -646,59 +647,55 @@
|
|
|
646
647
|
"type": "typography"
|
|
647
648
|
},
|
|
648
649
|
{
|
|
649
|
-
"value": "@bar.percentage",
|
|
650
650
|
"max": 100.0,
|
|
651
651
|
"variant": "primary",
|
|
652
|
-
"type": "progress-bar"
|
|
652
|
+
"type": "progress-bar",
|
|
653
|
+
"value": "@bar.percentage"
|
|
653
654
|
},
|
|
654
655
|
{
|
|
655
656
|
"content": "@bar.percentage",
|
|
656
|
-
"color": "muted",
|
|
657
657
|
"variant": "caption",
|
|
658
|
+
"color": "muted",
|
|
658
659
|
"type": "typography"
|
|
659
660
|
},
|
|
660
661
|
{
|
|
662
|
+
"content": "%",
|
|
661
663
|
"variant": "caption",
|
|
662
664
|
"type": "typography",
|
|
663
|
-
"color": "muted"
|
|
664
|
-
"content": "%"
|
|
665
|
+
"color": "muted"
|
|
665
666
|
}
|
|
666
667
|
],
|
|
667
668
|
"gap": "md"
|
|
668
669
|
}
|
|
669
670
|
],
|
|
670
671
|
"entity": "@entity.starDistribution",
|
|
671
|
-
"type": "data-list",
|
|
672
672
|
"gap": "sm"
|
|
673
673
|
}
|
|
674
|
-
]
|
|
674
|
+
],
|
|
675
|
+
"direction": "vertical"
|
|
675
676
|
}
|
|
676
677
|
]
|
|
677
678
|
},
|
|
678
679
|
{
|
|
679
680
|
"tabs": "@config.sortOptions",
|
|
680
|
-
"tabChangeEvent": "CHANGE_SORT",
|
|
681
681
|
"type": "tabs",
|
|
682
|
+
"tabChangeEvent": "CHANGE_SORT",
|
|
682
683
|
"activeTab": "@entity.currentSort"
|
|
683
684
|
},
|
|
684
685
|
{
|
|
686
|
+
"type": "data-list",
|
|
685
687
|
"gap": "md",
|
|
686
688
|
"fields": [],
|
|
687
|
-
"type": "data-list",
|
|
688
|
-
"entity": "@entity.reviews",
|
|
689
689
|
"renderItem": [
|
|
690
690
|
"fn",
|
|
691
691
|
"review",
|
|
692
692
|
{
|
|
693
|
+
"type": "card",
|
|
693
694
|
"children": [
|
|
694
695
|
{
|
|
695
|
-
"direction": "vertical",
|
|
696
|
-
"gap": "sm",
|
|
697
|
-
"type": "stack",
|
|
698
696
|
"children": [
|
|
699
697
|
{
|
|
700
|
-
"
|
|
701
|
-
"gap": "sm",
|
|
698
|
+
"direction": "horizontal",
|
|
702
699
|
"align": "center",
|
|
703
700
|
"children": [
|
|
704
701
|
{
|
|
@@ -706,38 +703,39 @@
|
|
|
706
703
|
"name": "@review.avatarIcon"
|
|
707
704
|
},
|
|
708
705
|
{
|
|
709
|
-
"type": "typography",
|
|
710
706
|
"content": "@review.authorName",
|
|
711
|
-
"weight": "bold"
|
|
707
|
+
"weight": "bold",
|
|
708
|
+
"type": "typography"
|
|
712
709
|
},
|
|
713
710
|
{
|
|
714
711
|
"content": "·",
|
|
715
|
-
"
|
|
716
|
-
"
|
|
712
|
+
"color": "muted",
|
|
713
|
+
"type": "typography"
|
|
717
714
|
},
|
|
718
715
|
{
|
|
716
|
+
"color": "warning",
|
|
719
717
|
"name": "star",
|
|
720
|
-
"type": "icon"
|
|
721
|
-
"color": "warning"
|
|
718
|
+
"type": "icon"
|
|
722
719
|
},
|
|
723
720
|
{
|
|
724
|
-
"type": "typography",
|
|
725
721
|
"content": "@review.rating",
|
|
726
|
-
"weight": "bold"
|
|
722
|
+
"weight": "bold",
|
|
723
|
+
"type": "typography"
|
|
727
724
|
},
|
|
728
725
|
{
|
|
726
|
+
"color": "muted",
|
|
729
727
|
"type": "typography",
|
|
730
|
-
"content": "·"
|
|
731
|
-
"color": "muted"
|
|
728
|
+
"content": "·"
|
|
732
729
|
},
|
|
733
730
|
{
|
|
734
|
-
"variant": "caption",
|
|
735
731
|
"type": "typography",
|
|
736
732
|
"color": "muted",
|
|
737
|
-
"content": "@review.createdAt"
|
|
733
|
+
"content": "@review.createdAt",
|
|
734
|
+
"variant": "caption"
|
|
738
735
|
}
|
|
739
736
|
],
|
|
740
|
-
"
|
|
737
|
+
"type": "stack",
|
|
738
|
+
"gap": "sm"
|
|
741
739
|
},
|
|
742
740
|
{
|
|
743
741
|
"type": "typography",
|
|
@@ -745,38 +743,40 @@
|
|
|
745
743
|
"variant": "body"
|
|
746
744
|
},
|
|
747
745
|
{
|
|
746
|
+
"align": "center",
|
|
747
|
+
"gap": "sm",
|
|
748
|
+
"type": "stack",
|
|
749
|
+
"direction": "horizontal",
|
|
748
750
|
"children": [
|
|
749
751
|
{
|
|
752
|
+
"label": "Helpful",
|
|
753
|
+
"action": "MARK_HELPFUL",
|
|
750
754
|
"actionPayload": {
|
|
751
755
|
"id": "@review.id"
|
|
752
756
|
},
|
|
753
757
|
"icon": "thumbs-up",
|
|
754
|
-
"action": "MARK_HELPFUL",
|
|
755
|
-
"label": "Helpful",
|
|
756
758
|
"type": "button",
|
|
757
759
|
"variant": "ghost"
|
|
758
760
|
},
|
|
759
761
|
{
|
|
760
|
-
"
|
|
762
|
+
"type": "typography",
|
|
761
763
|
"content": "@review.helpful",
|
|
762
764
|
"variant": "caption",
|
|
763
|
-
"
|
|
765
|
+
"color": "muted"
|
|
764
766
|
}
|
|
765
|
-
]
|
|
766
|
-
"type": "stack",
|
|
767
|
-
"gap": "sm",
|
|
768
|
-
"direction": "horizontal",
|
|
769
|
-
"align": "center"
|
|
767
|
+
]
|
|
770
768
|
}
|
|
771
|
-
]
|
|
769
|
+
],
|
|
770
|
+
"gap": "sm",
|
|
771
|
+
"type": "stack",
|
|
772
|
+
"direction": "vertical"
|
|
772
773
|
}
|
|
773
|
-
]
|
|
774
|
-
"type": "card"
|
|
774
|
+
]
|
|
775
775
|
}
|
|
776
|
-
]
|
|
776
|
+
],
|
|
777
|
+
"entity": "@entity.reviews"
|
|
777
778
|
}
|
|
778
|
-
]
|
|
779
|
-
"direction": "vertical"
|
|
779
|
+
]
|
|
780
780
|
}
|
|
781
781
|
]
|
|
782
782
|
]
|
|
@@ -795,9 +795,9 @@
|
|
|
795
795
|
"render-ui",
|
|
796
796
|
"main",
|
|
797
797
|
{
|
|
798
|
-
"message": "@entity.errorMessage",
|
|
799
798
|
"type": "error-state",
|
|
800
|
-
"title": "Failed to load reviews"
|
|
799
|
+
"title": "Failed to load reviews",
|
|
800
|
+
"message": "@entity.errorMessage"
|
|
801
801
|
}
|
|
802
802
|
]
|
|
803
803
|
]
|
|
@@ -821,8 +821,8 @@
|
|
|
821
821
|
"render-ui",
|
|
822
822
|
"main",
|
|
823
823
|
{
|
|
824
|
-
"
|
|
825
|
-
"
|
|
824
|
+
"type": "loading-state",
|
|
825
|
+
"title": "Refreshing reviews…"
|
|
826
826
|
}
|
|
827
827
|
]
|
|
828
828
|
]
|
|
@@ -842,8 +842,8 @@
|
|
|
842
842
|
"main",
|
|
843
843
|
{
|
|
844
844
|
"title": "Failed to submit",
|
|
845
|
-
"
|
|
846
|
-
"
|
|
845
|
+
"type": "error-state",
|
|
846
|
+
"message": "@entity.errorMessage"
|
|
847
847
|
}
|
|
848
848
|
]
|
|
849
849
|
]
|
|
@@ -870,50 +870,52 @@
|
|
|
870
870
|
"direction": "vertical",
|
|
871
871
|
"children": [
|
|
872
872
|
{
|
|
873
|
+
"type": "stack",
|
|
874
|
+
"align": "center",
|
|
875
|
+
"direction": "horizontal",
|
|
873
876
|
"children": [
|
|
874
877
|
{
|
|
875
|
-
"action": "CANCEL_REVIEW",
|
|
876
878
|
"type": "button",
|
|
879
|
+
"action": "CANCEL_REVIEW",
|
|
877
880
|
"variant": "ghost",
|
|
878
881
|
"label": "Back",
|
|
879
882
|
"icon": "arrow-left"
|
|
880
883
|
},
|
|
881
884
|
{
|
|
882
|
-
"
|
|
883
|
-
"
|
|
885
|
+
"type": "icon",
|
|
886
|
+
"name": "edit"
|
|
884
887
|
},
|
|
885
888
|
{
|
|
889
|
+
"type": "typography",
|
|
886
890
|
"content": "Write a review",
|
|
887
|
-
"variant": "h3"
|
|
888
|
-
"type": "typography"
|
|
891
|
+
"variant": "h3"
|
|
889
892
|
}
|
|
890
893
|
],
|
|
891
|
-
"
|
|
892
|
-
"type": "stack",
|
|
893
|
-
"gap": "sm",
|
|
894
|
-
"align": "center"
|
|
894
|
+
"gap": "sm"
|
|
895
895
|
},
|
|
896
896
|
{
|
|
897
897
|
"type": "card",
|
|
898
898
|
"children": [
|
|
899
899
|
{
|
|
900
|
+
"direction": "vertical",
|
|
901
|
+
"type": "stack",
|
|
900
902
|
"children": [
|
|
901
903
|
{
|
|
904
|
+
"type": "typography",
|
|
902
905
|
"content": "@config.subjectTitle",
|
|
903
|
-
"color": "muted",
|
|
904
906
|
"variant": "caption",
|
|
905
|
-
"
|
|
907
|
+
"color": "muted"
|
|
906
908
|
},
|
|
907
909
|
{
|
|
908
|
-
"
|
|
910
|
+
"type": "typography",
|
|
909
911
|
"content": "How would you rate it?",
|
|
910
|
-
"
|
|
912
|
+
"variant": "h4"
|
|
911
913
|
},
|
|
912
914
|
{
|
|
913
|
-
"
|
|
915
|
+
"action": "RATE_DRAFT",
|
|
914
916
|
"type": "star-rating",
|
|
915
917
|
"value": "@entity.draftRating",
|
|
916
|
-
"
|
|
918
|
+
"max": 5.0
|
|
917
919
|
},
|
|
918
920
|
{
|
|
919
921
|
"content": "Share more details (optional)",
|
|
@@ -921,17 +923,15 @@
|
|
|
921
923
|
"type": "typography"
|
|
922
924
|
},
|
|
923
925
|
{
|
|
926
|
+
"cancelEvent": "CANCEL_REVIEW",
|
|
927
|
+
"submitEvent": "SUBMIT_REVIEW",
|
|
928
|
+
"entity": "@entity",
|
|
924
929
|
"submitLabel": "@config.submitLabel",
|
|
925
|
-
"fields": "@config.reviewFields",
|
|
926
930
|
"mode": "edit",
|
|
927
|
-
"
|
|
928
|
-
"type": "form-section"
|
|
929
|
-
"cancelEvent": "CANCEL_REVIEW",
|
|
930
|
-
"submitEvent": "SUBMIT_REVIEW"
|
|
931
|
+
"fields": "@config.reviewFields",
|
|
932
|
+
"type": "form-section"
|
|
931
933
|
}
|
|
932
934
|
],
|
|
933
|
-
"type": "stack",
|
|
934
|
-
"direction": "vertical",
|
|
935
935
|
"gap": "md"
|
|
936
936
|
}
|
|
937
937
|
]
|
|
@@ -972,22 +972,23 @@
|
|
|
972
972
|
"render-ui",
|
|
973
973
|
"main",
|
|
974
974
|
{
|
|
975
|
-
"direction": "vertical",
|
|
976
|
-
"type": "stack",
|
|
977
975
|
"gap": "lg",
|
|
976
|
+
"type": "stack",
|
|
977
|
+
"direction": "vertical",
|
|
978
978
|
"children": [
|
|
979
979
|
{
|
|
980
|
-
"gap": "md",
|
|
981
980
|
"type": "stack",
|
|
982
|
-
"direction": "horizontal",
|
|
983
981
|
"align": "center",
|
|
984
982
|
"justify": "between",
|
|
985
983
|
"children": [
|
|
986
984
|
{
|
|
987
985
|
"type": "stack",
|
|
986
|
+
"gap": "xs",
|
|
988
987
|
"children": [
|
|
989
988
|
{
|
|
990
989
|
"type": "stack",
|
|
990
|
+
"gap": "sm",
|
|
991
|
+
"direction": "horizontal",
|
|
991
992
|
"align": "center",
|
|
992
993
|
"children": [
|
|
993
994
|
{
|
|
@@ -995,14 +996,14 @@
|
|
|
995
996
|
"name": "star"
|
|
996
997
|
},
|
|
997
998
|
{
|
|
998
|
-
"
|
|
999
|
+
"variant": "h3",
|
|
999
1000
|
"type": "typography",
|
|
1000
|
-
"
|
|
1001
|
+
"content": "Reviews"
|
|
1001
1002
|
},
|
|
1002
1003
|
{
|
|
1004
|
+
"content": "·",
|
|
1003
1005
|
"color": "muted",
|
|
1004
|
-
"type": "typography"
|
|
1005
|
-
"content": "·"
|
|
1006
|
+
"type": "typography"
|
|
1006
1007
|
},
|
|
1007
1008
|
{
|
|
1008
1009
|
"variant": "h3",
|
|
@@ -1010,129 +1011,127 @@
|
|
|
1010
1011
|
"type": "typography"
|
|
1011
1012
|
},
|
|
1012
1013
|
{
|
|
1013
|
-
"color": "warning",
|
|
1014
1014
|
"type": "icon",
|
|
1015
|
-
"name": "star"
|
|
1015
|
+
"name": "star",
|
|
1016
|
+
"color": "warning"
|
|
1016
1017
|
},
|
|
1017
1018
|
{
|
|
1018
|
-
"content": "·",
|
|
1019
1019
|
"color": "muted",
|
|
1020
|
+
"content": "·",
|
|
1020
1021
|
"type": "typography"
|
|
1021
1022
|
},
|
|
1022
1023
|
{
|
|
1023
1024
|
"type": "typography",
|
|
1024
|
-
"
|
|
1025
|
+
"content": "@entity.totalReviews",
|
|
1025
1026
|
"variant": "h4",
|
|
1026
|
-
"
|
|
1027
|
+
"color": "muted"
|
|
1027
1028
|
},
|
|
1028
1029
|
{
|
|
1029
|
-
"
|
|
1030
|
-
"type": "typography",
|
|
1030
|
+
"variant": "h4",
|
|
1031
1031
|
"color": "muted",
|
|
1032
|
-
"
|
|
1032
|
+
"type": "typography",
|
|
1033
|
+
"content": "reviews"
|
|
1033
1034
|
}
|
|
1034
|
-
]
|
|
1035
|
-
"direction": "horizontal",
|
|
1036
|
-
"gap": "sm"
|
|
1035
|
+
]
|
|
1037
1036
|
},
|
|
1038
1037
|
{
|
|
1039
1038
|
"content": "@config.subjectTitle",
|
|
1039
|
+
"color": "muted",
|
|
1040
1040
|
"type": "typography",
|
|
1041
|
-
"variant": "caption"
|
|
1042
|
-
"color": "muted"
|
|
1041
|
+
"variant": "caption"
|
|
1043
1042
|
}
|
|
1044
1043
|
],
|
|
1045
|
-
"gap": "xs",
|
|
1046
1044
|
"direction": "vertical"
|
|
1047
1045
|
},
|
|
1048
1046
|
{
|
|
1049
|
-
"variant": "primary",
|
|
1050
1047
|
"label": "@config.writeLabel",
|
|
1051
1048
|
"icon": "edit",
|
|
1049
|
+
"variant": "primary",
|
|
1052
1050
|
"type": "button",
|
|
1053
1051
|
"action": "WRITE_REVIEW"
|
|
1054
1052
|
}
|
|
1055
|
-
]
|
|
1053
|
+
],
|
|
1054
|
+
"gap": "md",
|
|
1055
|
+
"direction": "horizontal"
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
1058
|
+
"type": "card",
|
|
1058
1059
|
"children": [
|
|
1059
1060
|
{
|
|
1060
1061
|
"direction": "vertical",
|
|
1062
|
+
"type": "stack",
|
|
1063
|
+
"gap": "sm",
|
|
1061
1064
|
"children": [
|
|
1062
1065
|
{
|
|
1063
1066
|
"content": "Rating distribution",
|
|
1064
|
-
"
|
|
1065
|
-
"
|
|
1067
|
+
"type": "typography",
|
|
1068
|
+
"variant": "h4"
|
|
1066
1069
|
},
|
|
1067
1070
|
{
|
|
1068
|
-
"
|
|
1069
|
-
"type": "data-list",
|
|
1071
|
+
"fields": [],
|
|
1070
1072
|
"renderItem": [
|
|
1071
1073
|
"fn",
|
|
1072
1074
|
"bar",
|
|
1073
1075
|
{
|
|
1074
|
-
"gap": "md",
|
|
1075
1076
|
"direction": "horizontal",
|
|
1077
|
+
"align": "center",
|
|
1078
|
+
"type": "stack",
|
|
1076
1079
|
"children": [
|
|
1077
1080
|
{
|
|
1078
1081
|
"content": "@bar.label",
|
|
1079
|
-
"
|
|
1080
|
-
"
|
|
1082
|
+
"variant": "caption",
|
|
1083
|
+
"type": "typography"
|
|
1081
1084
|
},
|
|
1082
1085
|
{
|
|
1083
|
-
"type": "progress-bar",
|
|
1084
1086
|
"value": "@bar.percentage",
|
|
1085
|
-
"
|
|
1086
|
-
"max": 100.0
|
|
1087
|
+
"type": "progress-bar",
|
|
1088
|
+
"max": 100.0,
|
|
1089
|
+
"variant": "primary"
|
|
1087
1090
|
},
|
|
1088
1091
|
{
|
|
1089
|
-
"
|
|
1092
|
+
"variant": "caption",
|
|
1090
1093
|
"content": "@bar.percentage",
|
|
1091
1094
|
"color": "muted",
|
|
1092
|
-
"
|
|
1095
|
+
"type": "typography"
|
|
1093
1096
|
},
|
|
1094
1097
|
{
|
|
1095
|
-
"
|
|
1098
|
+
"variant": "caption",
|
|
1096
1099
|
"color": "muted",
|
|
1097
|
-
"
|
|
1098
|
-
"
|
|
1100
|
+
"type": "typography",
|
|
1101
|
+
"content": "%"
|
|
1099
1102
|
}
|
|
1100
1103
|
],
|
|
1101
|
-
"
|
|
1102
|
-
"align": "center"
|
|
1104
|
+
"gap": "md"
|
|
1103
1105
|
}
|
|
1104
1106
|
],
|
|
1105
|
-
"
|
|
1106
|
-
"
|
|
1107
|
+
"entity": "@entity.starDistribution",
|
|
1108
|
+
"type": "data-list",
|
|
1109
|
+
"gap": "sm"
|
|
1107
1110
|
}
|
|
1108
|
-
]
|
|
1109
|
-
"gap": "sm",
|
|
1110
|
-
"type": "stack"
|
|
1111
|
+
]
|
|
1111
1112
|
}
|
|
1112
|
-
]
|
|
1113
|
-
"type": "card"
|
|
1113
|
+
]
|
|
1114
1114
|
},
|
|
1115
1115
|
{
|
|
1116
|
+
"type": "tabs",
|
|
1116
1117
|
"tabs": "@config.sortOptions",
|
|
1117
1118
|
"tabChangeEvent": "CHANGE_SORT",
|
|
1118
|
-
"activeTab": "@entity.currentSort"
|
|
1119
|
-
"type": "tabs"
|
|
1119
|
+
"activeTab": "@entity.currentSort"
|
|
1120
1120
|
},
|
|
1121
1121
|
{
|
|
1122
|
+
"type": "data-list",
|
|
1122
1123
|
"renderItem": [
|
|
1123
1124
|
"fn",
|
|
1124
1125
|
"review",
|
|
1125
1126
|
{
|
|
1126
1127
|
"children": [
|
|
1127
1128
|
{
|
|
1128
|
-
"direction": "vertical",
|
|
1129
1129
|
"type": "stack",
|
|
1130
|
-
"gap": "sm",
|
|
1131
1130
|
"children": [
|
|
1132
1131
|
{
|
|
1132
|
+
"gap": "sm",
|
|
1133
1133
|
"direction": "horizontal",
|
|
1134
1134
|
"type": "stack",
|
|
1135
|
-
"gap": "sm",
|
|
1136
1135
|
"align": "center",
|
|
1137
1136
|
"children": [
|
|
1138
1137
|
{
|
|
@@ -1146,70 +1145,71 @@
|
|
|
1146
1145
|
},
|
|
1147
1146
|
{
|
|
1148
1147
|
"type": "typography",
|
|
1149
|
-
"
|
|
1150
|
-
"
|
|
1148
|
+
"color": "muted",
|
|
1149
|
+
"content": "·"
|
|
1151
1150
|
},
|
|
1152
1151
|
{
|
|
1153
|
-
"
|
|
1152
|
+
"type": "icon",
|
|
1154
1153
|
"name": "star",
|
|
1155
|
-
"
|
|
1154
|
+
"color": "warning"
|
|
1156
1155
|
},
|
|
1157
1156
|
{
|
|
1158
1157
|
"type": "typography",
|
|
1159
|
-
"
|
|
1160
|
-
"
|
|
1158
|
+
"content": "@review.rating",
|
|
1159
|
+
"weight": "bold"
|
|
1161
1160
|
},
|
|
1162
1161
|
{
|
|
1162
|
+
"content": "·",
|
|
1163
1163
|
"color": "muted",
|
|
1164
|
-
"type": "typography"
|
|
1165
|
-
"content": "·"
|
|
1164
|
+
"type": "typography"
|
|
1166
1165
|
},
|
|
1167
1166
|
{
|
|
1168
1167
|
"type": "typography",
|
|
1168
|
+
"content": "@review.createdAt",
|
|
1169
1169
|
"variant": "caption",
|
|
1170
|
-
"color": "muted"
|
|
1171
|
-
"content": "@review.createdAt"
|
|
1170
|
+
"color": "muted"
|
|
1172
1171
|
}
|
|
1173
1172
|
]
|
|
1174
1173
|
},
|
|
1175
1174
|
{
|
|
1176
|
-
"type": "typography",
|
|
1177
1175
|
"content": "@review.comment",
|
|
1176
|
+
"type": "typography",
|
|
1178
1177
|
"variant": "body"
|
|
1179
1178
|
},
|
|
1180
1179
|
{
|
|
1180
|
+
"type": "stack",
|
|
1181
|
+
"direction": "horizontal",
|
|
1182
|
+
"gap": "sm",
|
|
1183
|
+
"align": "center",
|
|
1181
1184
|
"children": [
|
|
1182
1185
|
{
|
|
1186
|
+
"action": "MARK_HELPFUL",
|
|
1183
1187
|
"icon": "thumbs-up",
|
|
1188
|
+
"variant": "ghost",
|
|
1184
1189
|
"type": "button",
|
|
1185
1190
|
"label": "Helpful",
|
|
1186
|
-
"action": "MARK_HELPFUL",
|
|
1187
1191
|
"actionPayload": {
|
|
1188
1192
|
"id": "@review.id"
|
|
1189
|
-
}
|
|
1190
|
-
"variant": "ghost"
|
|
1193
|
+
}
|
|
1191
1194
|
},
|
|
1192
1195
|
{
|
|
1193
|
-
"content": "@review.helpful",
|
|
1194
1196
|
"variant": "caption",
|
|
1195
|
-
"
|
|
1196
|
-
"
|
|
1197
|
+
"type": "typography",
|
|
1198
|
+
"content": "@review.helpful",
|
|
1199
|
+
"color": "muted"
|
|
1197
1200
|
}
|
|
1198
|
-
]
|
|
1199
|
-
"direction": "horizontal",
|
|
1200
|
-
"gap": "sm",
|
|
1201
|
-
"type": "stack",
|
|
1202
|
-
"align": "center"
|
|
1201
|
+
]
|
|
1203
1202
|
}
|
|
1204
|
-
]
|
|
1203
|
+
],
|
|
1204
|
+
"direction": "vertical",
|
|
1205
|
+
"gap": "sm"
|
|
1205
1206
|
}
|
|
1206
1207
|
],
|
|
1207
1208
|
"type": "card"
|
|
1208
1209
|
}
|
|
1209
1210
|
],
|
|
1210
|
-
"type": "data-list",
|
|
1211
|
-
"entity": "@entity.reviews",
|
|
1212
1211
|
"fields": [],
|
|
1212
|
+
"entity": "@entity.reviews",
|
|
1213
1213
|
"gap": "md"
|
|
1214
1214
|
}
|
|
1215
1215
|
]
|
|
@@ -1246,28 +1246,30 @@
|
|
|
1246
1246
|
"render-ui",
|
|
1247
1247
|
"main",
|
|
1248
1248
|
{
|
|
1249
|
+
"direction": "vertical",
|
|
1249
1250
|
"gap": "lg",
|
|
1250
1251
|
"type": "stack",
|
|
1251
|
-
"direction": "vertical",
|
|
1252
1252
|
"children": [
|
|
1253
1253
|
{
|
|
1254
|
+
"justify": "between",
|
|
1255
|
+
"align": "center",
|
|
1254
1256
|
"children": [
|
|
1255
1257
|
{
|
|
1256
|
-
"gap": "xs",
|
|
1257
1258
|
"type": "stack",
|
|
1259
|
+
"gap": "xs",
|
|
1258
1260
|
"direction": "vertical",
|
|
1259
1261
|
"children": [
|
|
1260
1262
|
{
|
|
1261
1263
|
"align": "center",
|
|
1262
|
-
"
|
|
1264
|
+
"type": "stack",
|
|
1263
1265
|
"children": [
|
|
1264
1266
|
{
|
|
1265
|
-
"
|
|
1266
|
-
"
|
|
1267
|
+
"name": "star",
|
|
1268
|
+
"type": "icon"
|
|
1267
1269
|
},
|
|
1268
1270
|
{
|
|
1269
|
-
"content": "Reviews",
|
|
1270
1271
|
"type": "typography",
|
|
1272
|
+
"content": "Reviews",
|
|
1271
1273
|
"variant": "h3"
|
|
1272
1274
|
},
|
|
1273
1275
|
{
|
|
@@ -1276,14 +1278,14 @@
|
|
|
1276
1278
|
"type": "typography"
|
|
1277
1279
|
},
|
|
1278
1280
|
{
|
|
1279
|
-
"
|
|
1281
|
+
"content": "@entity.averageRating",
|
|
1280
1282
|
"variant": "h3",
|
|
1281
|
-
"
|
|
1283
|
+
"type": "typography"
|
|
1282
1284
|
},
|
|
1283
1285
|
{
|
|
1284
1286
|
"type": "icon",
|
|
1285
|
-
"
|
|
1286
|
-
"
|
|
1287
|
+
"name": "star",
|
|
1288
|
+
"color": "warning"
|
|
1287
1289
|
},
|
|
1288
1290
|
{
|
|
1289
1291
|
"color": "muted",
|
|
@@ -1291,200 +1293,198 @@
|
|
|
1291
1293
|
"content": "·"
|
|
1292
1294
|
},
|
|
1293
1295
|
{
|
|
1296
|
+
"content": "@entity.totalReviews",
|
|
1294
1297
|
"type": "typography",
|
|
1295
|
-
"color": "muted",
|
|
1296
1298
|
"variant": "h4",
|
|
1297
|
-
"
|
|
1299
|
+
"color": "muted"
|
|
1298
1300
|
},
|
|
1299
1301
|
{
|
|
1300
|
-
"color": "muted",
|
|
1301
|
-
"type": "typography",
|
|
1302
1302
|
"content": "reviews",
|
|
1303
|
-
"variant": "h4"
|
|
1303
|
+
"variant": "h4",
|
|
1304
|
+
"color": "muted",
|
|
1305
|
+
"type": "typography"
|
|
1304
1306
|
}
|
|
1305
1307
|
],
|
|
1306
|
-
"
|
|
1307
|
-
"
|
|
1308
|
+
"gap": "sm",
|
|
1309
|
+
"direction": "horizontal"
|
|
1308
1310
|
},
|
|
1309
1311
|
{
|
|
1310
|
-
"variant": "caption",
|
|
1311
|
-
"content": "@config.subjectTitle",
|
|
1312
1312
|
"color": "muted",
|
|
1313
|
-
"type": "typography"
|
|
1313
|
+
"type": "typography",
|
|
1314
|
+
"content": "@config.subjectTitle",
|
|
1315
|
+
"variant": "caption"
|
|
1314
1316
|
}
|
|
1315
1317
|
]
|
|
1316
1318
|
},
|
|
1317
1319
|
{
|
|
1318
|
-
"
|
|
1320
|
+
"icon": "edit",
|
|
1319
1321
|
"type": "button",
|
|
1320
|
-
"
|
|
1322
|
+
"variant": "primary",
|
|
1321
1323
|
"label": "@config.writeLabel",
|
|
1322
|
-
"
|
|
1324
|
+
"action": "WRITE_REVIEW"
|
|
1323
1325
|
}
|
|
1324
1326
|
],
|
|
1325
|
-
"type": "stack",
|
|
1326
|
-
"gap": "md",
|
|
1327
1327
|
"direction": "horizontal",
|
|
1328
|
-
"
|
|
1329
|
-
"
|
|
1328
|
+
"gap": "md",
|
|
1329
|
+
"type": "stack"
|
|
1330
1330
|
},
|
|
1331
1331
|
{
|
|
1332
1332
|
"type": "card",
|
|
1333
1333
|
"children": [
|
|
1334
1334
|
{
|
|
1335
|
-
"type": "stack",
|
|
1336
1335
|
"direction": "vertical",
|
|
1337
1336
|
"children": [
|
|
1338
1337
|
{
|
|
1339
|
-
"content": "Rating distribution",
|
|
1340
1338
|
"type": "typography",
|
|
1341
|
-
"variant": "h4"
|
|
1339
|
+
"variant": "h4",
|
|
1340
|
+
"content": "Rating distribution"
|
|
1342
1341
|
},
|
|
1343
1342
|
{
|
|
1343
|
+
"entity": "@entity.starDistribution",
|
|
1344
|
+
"type": "data-list",
|
|
1345
|
+
"fields": [],
|
|
1344
1346
|
"renderItem": [
|
|
1345
1347
|
"fn",
|
|
1346
1348
|
"bar",
|
|
1347
1349
|
{
|
|
1348
|
-
"direction": "horizontal",
|
|
1349
|
-
"type": "stack",
|
|
1350
1350
|
"children": [
|
|
1351
1351
|
{
|
|
1352
|
+
"content": "@bar.label",
|
|
1352
1353
|
"type": "typography",
|
|
1353
|
-
"variant": "caption"
|
|
1354
|
-
"content": "@bar.label"
|
|
1354
|
+
"variant": "caption"
|
|
1355
1355
|
},
|
|
1356
1356
|
{
|
|
1357
|
-
"value": "@bar.percentage",
|
|
1358
1357
|
"type": "progress-bar",
|
|
1359
1358
|
"max": 100.0,
|
|
1360
|
-
"variant": "primary"
|
|
1359
|
+
"variant": "primary",
|
|
1360
|
+
"value": "@bar.percentage"
|
|
1361
1361
|
},
|
|
1362
1362
|
{
|
|
1363
|
-
"variant": "caption",
|
|
1364
|
-
"type": "typography",
|
|
1365
1363
|
"color": "muted",
|
|
1364
|
+
"type": "typography",
|
|
1365
|
+
"variant": "caption",
|
|
1366
1366
|
"content": "@bar.percentage"
|
|
1367
1367
|
},
|
|
1368
1368
|
{
|
|
1369
|
-
"content": "%",
|
|
1370
1369
|
"variant": "caption",
|
|
1370
|
+
"content": "%",
|
|
1371
1371
|
"color": "muted",
|
|
1372
1372
|
"type": "typography"
|
|
1373
1373
|
}
|
|
1374
1374
|
],
|
|
1375
|
+
"gap": "md",
|
|
1376
|
+
"direction": "horizontal",
|
|
1375
1377
|
"align": "center",
|
|
1376
|
-
"
|
|
1378
|
+
"type": "stack"
|
|
1377
1379
|
}
|
|
1378
1380
|
],
|
|
1379
|
-
"
|
|
1380
|
-
"type": "data-list",
|
|
1381
|
-
"gap": "sm",
|
|
1382
|
-
"entity": "@entity.starDistribution"
|
|
1381
|
+
"gap": "sm"
|
|
1383
1382
|
}
|
|
1384
1383
|
],
|
|
1384
|
+
"type": "stack",
|
|
1385
1385
|
"gap": "sm"
|
|
1386
1386
|
}
|
|
1387
1387
|
]
|
|
1388
1388
|
},
|
|
1389
1389
|
{
|
|
1390
|
-
"tabs": "@config.sortOptions",
|
|
1391
1390
|
"activeTab": "@entity.currentSort",
|
|
1391
|
+
"tabChangeEvent": "CHANGE_SORT",
|
|
1392
1392
|
"type": "tabs",
|
|
1393
|
-
"
|
|
1393
|
+
"tabs": "@config.sortOptions"
|
|
1394
1394
|
},
|
|
1395
1395
|
{
|
|
1396
|
+
"entity": "@entity.reviews",
|
|
1396
1397
|
"type": "data-list",
|
|
1397
|
-
"gap": "md",
|
|
1398
1398
|
"fields": [],
|
|
1399
|
+
"gap": "md",
|
|
1399
1400
|
"renderItem": [
|
|
1400
1401
|
"fn",
|
|
1401
1402
|
"review",
|
|
1402
1403
|
{
|
|
1404
|
+
"type": "card",
|
|
1403
1405
|
"children": [
|
|
1404
1406
|
{
|
|
1405
|
-
"direction": "vertical",
|
|
1406
1407
|
"type": "stack",
|
|
1408
|
+
"direction": "vertical",
|
|
1407
1409
|
"gap": "sm",
|
|
1408
1410
|
"children": [
|
|
1409
1411
|
{
|
|
1410
1412
|
"type": "stack",
|
|
1413
|
+
"align": "center",
|
|
1411
1414
|
"direction": "horizontal",
|
|
1412
1415
|
"gap": "sm",
|
|
1413
|
-
"align": "center",
|
|
1414
1416
|
"children": [
|
|
1415
1417
|
{
|
|
1416
|
-
"
|
|
1417
|
-
"
|
|
1418
|
+
"name": "@review.avatarIcon",
|
|
1419
|
+
"type": "icon"
|
|
1418
1420
|
},
|
|
1419
1421
|
{
|
|
1420
1422
|
"content": "@review.authorName",
|
|
1421
|
-
"
|
|
1422
|
-
"
|
|
1423
|
+
"type": "typography",
|
|
1424
|
+
"weight": "bold"
|
|
1423
1425
|
},
|
|
1424
1426
|
{
|
|
1425
|
-
"color": "muted",
|
|
1426
1427
|
"content": "·",
|
|
1428
|
+
"color": "muted",
|
|
1427
1429
|
"type": "typography"
|
|
1428
1430
|
},
|
|
1429
1431
|
{
|
|
1432
|
+
"name": "star",
|
|
1430
1433
|
"type": "icon",
|
|
1431
|
-
"color": "warning"
|
|
1432
|
-
"name": "star"
|
|
1434
|
+
"color": "warning"
|
|
1433
1435
|
},
|
|
1434
1436
|
{
|
|
1435
|
-
"
|
|
1437
|
+
"content": "@review.rating",
|
|
1436
1438
|
"type": "typography",
|
|
1437
|
-
"
|
|
1439
|
+
"weight": "bold"
|
|
1438
1440
|
},
|
|
1439
1441
|
{
|
|
1440
1442
|
"content": "·",
|
|
1441
|
-
"
|
|
1442
|
-
"
|
|
1443
|
+
"type": "typography",
|
|
1444
|
+
"color": "muted"
|
|
1443
1445
|
},
|
|
1444
1446
|
{
|
|
1445
1447
|
"type": "typography",
|
|
1448
|
+
"color": "muted",
|
|
1446
1449
|
"variant": "caption",
|
|
1447
|
-
"content": "@review.createdAt"
|
|
1448
|
-
"color": "muted"
|
|
1450
|
+
"content": "@review.createdAt"
|
|
1449
1451
|
}
|
|
1450
1452
|
]
|
|
1451
1453
|
},
|
|
1452
1454
|
{
|
|
1453
1455
|
"type": "typography",
|
|
1454
|
-
"
|
|
1455
|
-
"
|
|
1456
|
+
"content": "@review.comment",
|
|
1457
|
+
"variant": "body"
|
|
1456
1458
|
},
|
|
1457
1459
|
{
|
|
1458
|
-
"direction": "horizontal",
|
|
1459
|
-
"align": "center",
|
|
1460
1460
|
"gap": "sm",
|
|
1461
1461
|
"type": "stack",
|
|
1462
1462
|
"children": [
|
|
1463
1463
|
{
|
|
1464
|
-
"
|
|
1465
|
-
"variant": "ghost",
|
|
1464
|
+
"label": "Helpful",
|
|
1466
1465
|
"actionPayload": {
|
|
1467
1466
|
"id": "@review.id"
|
|
1468
1467
|
},
|
|
1469
|
-
"
|
|
1468
|
+
"variant": "ghost",
|
|
1470
1469
|
"type": "button",
|
|
1471
|
-
"action": "MARK_HELPFUL"
|
|
1470
|
+
"action": "MARK_HELPFUL",
|
|
1471
|
+
"icon": "thumbs-up"
|
|
1472
1472
|
},
|
|
1473
1473
|
{
|
|
1474
|
-
"type": "typography",
|
|
1475
|
-
"content": "@review.helpful",
|
|
1476
1474
|
"variant": "caption",
|
|
1477
|
-
"
|
|
1475
|
+
"type": "typography",
|
|
1476
|
+
"color": "muted",
|
|
1477
|
+
"content": "@review.helpful"
|
|
1478
1478
|
}
|
|
1479
|
-
]
|
|
1479
|
+
],
|
|
1480
|
+
"direction": "horizontal",
|
|
1481
|
+
"align": "center"
|
|
1480
1482
|
}
|
|
1481
1483
|
]
|
|
1482
1484
|
}
|
|
1483
|
-
]
|
|
1484
|
-
"type": "card"
|
|
1485
|
+
]
|
|
1485
1486
|
}
|
|
1486
|
-
]
|
|
1487
|
-
"entity": "@entity.reviews"
|
|
1487
|
+
]
|
|
1488
1488
|
}
|
|
1489
1489
|
]
|
|
1490
1490
|
}
|
|
@@ -1520,19 +1520,19 @@
|
|
|
1520
1520
|
"render-ui",
|
|
1521
1521
|
"main",
|
|
1522
1522
|
{
|
|
1523
|
+
"gap": "lg",
|
|
1523
1524
|
"type": "stack",
|
|
1524
|
-
"direction": "vertical",
|
|
1525
1525
|
"children": [
|
|
1526
1526
|
{
|
|
1527
|
+
"justify": "between",
|
|
1528
|
+
"direction": "horizontal",
|
|
1527
1529
|
"children": [
|
|
1528
1530
|
{
|
|
1529
|
-
"direction": "vertical",
|
|
1530
|
-
"gap": "xs",
|
|
1531
1531
|
"children": [
|
|
1532
1532
|
{
|
|
1533
|
+
"gap": "sm",
|
|
1533
1534
|
"direction": "horizontal",
|
|
1534
1535
|
"type": "stack",
|
|
1535
|
-
"gap": "sm",
|
|
1536
1536
|
"align": "center",
|
|
1537
1537
|
"children": [
|
|
1538
1538
|
{
|
|
@@ -1540,19 +1540,19 @@
|
|
|
1540
1540
|
"name": "star"
|
|
1541
1541
|
},
|
|
1542
1542
|
{
|
|
1543
|
-
"variant": "h3",
|
|
1544
1543
|
"content": "Reviews",
|
|
1544
|
+
"variant": "h3",
|
|
1545
1545
|
"type": "typography"
|
|
1546
1546
|
},
|
|
1547
1547
|
{
|
|
1548
1548
|
"type": "typography",
|
|
1549
|
-
"
|
|
1550
|
-
"
|
|
1549
|
+
"color": "muted",
|
|
1550
|
+
"content": "·"
|
|
1551
1551
|
},
|
|
1552
1552
|
{
|
|
1553
|
-
"type": "typography",
|
|
1554
1553
|
"content": "@entity.averageRating",
|
|
1555
|
-
"variant": "h3"
|
|
1554
|
+
"variant": "h3",
|
|
1555
|
+
"type": "typography"
|
|
1556
1556
|
},
|
|
1557
1557
|
{
|
|
1558
1558
|
"type": "icon",
|
|
@@ -1561,170 +1561,175 @@
|
|
|
1561
1561
|
},
|
|
1562
1562
|
{
|
|
1563
1563
|
"content": "·",
|
|
1564
|
-
"
|
|
1565
|
-
"
|
|
1564
|
+
"color": "muted",
|
|
1565
|
+
"type": "typography"
|
|
1566
1566
|
},
|
|
1567
1567
|
{
|
|
1568
|
-
"variant": "h4",
|
|
1569
|
-
"type": "typography",
|
|
1570
1568
|
"content": "@entity.totalReviews",
|
|
1569
|
+
"type": "typography",
|
|
1570
|
+
"variant": "h4",
|
|
1571
1571
|
"color": "muted"
|
|
1572
1572
|
},
|
|
1573
1573
|
{
|
|
1574
1574
|
"content": "reviews",
|
|
1575
|
+
"color": "muted",
|
|
1575
1576
|
"type": "typography",
|
|
1576
|
-
"variant": "h4"
|
|
1577
|
-
"color": "muted"
|
|
1577
|
+
"variant": "h4"
|
|
1578
1578
|
}
|
|
1579
1579
|
]
|
|
1580
1580
|
},
|
|
1581
1581
|
{
|
|
1582
|
-
"
|
|
1583
|
-
"type": "typography",
|
|
1582
|
+
"variant": "caption",
|
|
1584
1583
|
"content": "@config.subjectTitle",
|
|
1585
|
-
"
|
|
1584
|
+
"type": "typography",
|
|
1585
|
+
"color": "muted"
|
|
1586
1586
|
}
|
|
1587
1587
|
],
|
|
1588
|
+
"gap": "xs",
|
|
1589
|
+
"direction": "vertical",
|
|
1588
1590
|
"type": "stack"
|
|
1589
1591
|
},
|
|
1590
1592
|
{
|
|
1593
|
+
"icon": "edit",
|
|
1594
|
+
"type": "button",
|
|
1591
1595
|
"variant": "primary",
|
|
1592
1596
|
"action": "WRITE_REVIEW",
|
|
1593
|
-
"
|
|
1594
|
-
"label": "@config.writeLabel",
|
|
1595
|
-
"type": "button"
|
|
1597
|
+
"label": "@config.writeLabel"
|
|
1596
1598
|
}
|
|
1597
1599
|
],
|
|
1598
|
-
"direction": "horizontal",
|
|
1599
|
-
"gap": "md",
|
|
1600
1600
|
"type": "stack",
|
|
1601
|
-
"
|
|
1601
|
+
"gap": "md",
|
|
1602
1602
|
"align": "center"
|
|
1603
1603
|
},
|
|
1604
1604
|
{
|
|
1605
1605
|
"type": "card",
|
|
1606
1606
|
"children": [
|
|
1607
1607
|
{
|
|
1608
|
-
"direction": "vertical",
|
|
1609
|
-
"type": "stack",
|
|
1610
|
-
"gap": "sm",
|
|
1611
1608
|
"children": [
|
|
1612
1609
|
{
|
|
1610
|
+
"type": "typography",
|
|
1613
1611
|
"variant": "h4",
|
|
1614
|
-
"content": "Rating distribution"
|
|
1615
|
-
"type": "typography"
|
|
1612
|
+
"content": "Rating distribution"
|
|
1616
1613
|
},
|
|
1617
1614
|
{
|
|
1618
1615
|
"type": "data-list",
|
|
1619
1616
|
"entity": "@entity.starDistribution",
|
|
1617
|
+
"fields": [],
|
|
1618
|
+
"gap": "sm",
|
|
1620
1619
|
"renderItem": [
|
|
1621
1620
|
"fn",
|
|
1622
1621
|
"bar",
|
|
1623
1622
|
{
|
|
1624
|
-
"
|
|
1623
|
+
"gap": "md",
|
|
1625
1624
|
"children": [
|
|
1626
1625
|
{
|
|
1627
|
-
"variant": "caption",
|
|
1628
1626
|
"type": "typography",
|
|
1629
|
-
"content": "@bar.label"
|
|
1627
|
+
"content": "@bar.label",
|
|
1628
|
+
"variant": "caption"
|
|
1630
1629
|
},
|
|
1631
1630
|
{
|
|
1632
1631
|
"value": "@bar.percentage",
|
|
1632
|
+
"max": 100.0,
|
|
1633
1633
|
"variant": "primary",
|
|
1634
|
-
"type": "progress-bar"
|
|
1635
|
-
"max": 100.0
|
|
1634
|
+
"type": "progress-bar"
|
|
1636
1635
|
},
|
|
1637
1636
|
{
|
|
1638
|
-
"type": "typography",
|
|
1639
|
-
"variant": "caption",
|
|
1640
1637
|
"color": "muted",
|
|
1641
|
-
"content": "@bar.percentage"
|
|
1638
|
+
"content": "@bar.percentage",
|
|
1639
|
+
"type": "typography",
|
|
1640
|
+
"variant": "caption"
|
|
1642
1641
|
},
|
|
1643
1642
|
{
|
|
1644
|
-
"variant": "caption",
|
|
1645
|
-
"content": "%",
|
|
1646
1643
|
"type": "typography",
|
|
1647
|
-
"
|
|
1644
|
+
"content": "%",
|
|
1645
|
+
"color": "muted",
|
|
1646
|
+
"variant": "caption"
|
|
1648
1647
|
}
|
|
1649
1648
|
],
|
|
1650
1649
|
"direction": "horizontal",
|
|
1651
|
-
"
|
|
1650
|
+
"align": "center",
|
|
1652
1651
|
"type": "stack"
|
|
1653
1652
|
}
|
|
1654
|
-
]
|
|
1655
|
-
"fields": [],
|
|
1656
|
-
"gap": "sm"
|
|
1653
|
+
]
|
|
1657
1654
|
}
|
|
1658
|
-
]
|
|
1655
|
+
],
|
|
1656
|
+
"direction": "vertical",
|
|
1657
|
+
"type": "stack",
|
|
1658
|
+
"gap": "sm"
|
|
1659
1659
|
}
|
|
1660
1660
|
]
|
|
1661
1661
|
},
|
|
1662
1662
|
{
|
|
1663
|
-
"tabChangeEvent": "CHANGE_SORT",
|
|
1664
1663
|
"tabs": "@config.sortOptions",
|
|
1665
|
-
"
|
|
1666
|
-
"type": "tabs"
|
|
1664
|
+
"tabChangeEvent": "CHANGE_SORT",
|
|
1665
|
+
"type": "tabs",
|
|
1666
|
+
"activeTab": "@entity.currentSort"
|
|
1667
1667
|
},
|
|
1668
1668
|
{
|
|
1669
|
+
"type": "data-list",
|
|
1670
|
+
"gap": "md",
|
|
1671
|
+
"fields": [],
|
|
1669
1672
|
"renderItem": [
|
|
1670
1673
|
"fn",
|
|
1671
1674
|
"review",
|
|
1672
1675
|
{
|
|
1676
|
+
"type": "card",
|
|
1673
1677
|
"children": [
|
|
1674
1678
|
{
|
|
1675
1679
|
"children": [
|
|
1676
1680
|
{
|
|
1677
|
-
"align": "center",
|
|
1678
1681
|
"type": "stack",
|
|
1679
1682
|
"gap": "sm",
|
|
1683
|
+
"direction": "horizontal",
|
|
1684
|
+
"align": "center",
|
|
1680
1685
|
"children": [
|
|
1681
1686
|
{
|
|
1682
|
-
"
|
|
1683
|
-
"
|
|
1687
|
+
"name": "@review.avatarIcon",
|
|
1688
|
+
"type": "icon"
|
|
1684
1689
|
},
|
|
1685
1690
|
{
|
|
1686
|
-
"type": "typography",
|
|
1687
1691
|
"content": "@review.authorName",
|
|
1688
|
-
"weight": "bold"
|
|
1692
|
+
"weight": "bold",
|
|
1693
|
+
"type": "typography"
|
|
1689
1694
|
},
|
|
1690
1695
|
{
|
|
1691
|
-
"content": "·",
|
|
1692
1696
|
"type": "typography",
|
|
1697
|
+
"content": "·",
|
|
1693
1698
|
"color": "muted"
|
|
1694
1699
|
},
|
|
1695
1700
|
{
|
|
1696
|
-
"color": "warning",
|
|
1697
1701
|
"name": "star",
|
|
1702
|
+
"color": "warning",
|
|
1698
1703
|
"type": "icon"
|
|
1699
1704
|
},
|
|
1700
1705
|
{
|
|
1701
1706
|
"content": "@review.rating",
|
|
1702
|
-
"
|
|
1703
|
-
"
|
|
1707
|
+
"weight": "bold",
|
|
1708
|
+
"type": "typography"
|
|
1704
1709
|
},
|
|
1705
1710
|
{
|
|
1706
|
-
"
|
|
1711
|
+
"content": "·",
|
|
1707
1712
|
"type": "typography",
|
|
1708
|
-
"
|
|
1713
|
+
"color": "muted"
|
|
1709
1714
|
},
|
|
1710
1715
|
{
|
|
1711
|
-
"color": "muted",
|
|
1712
1716
|
"content": "@review.createdAt",
|
|
1717
|
+
"type": "typography",
|
|
1713
1718
|
"variant": "caption",
|
|
1714
|
-
"
|
|
1719
|
+
"color": "muted"
|
|
1715
1720
|
}
|
|
1716
|
-
]
|
|
1717
|
-
"direction": "horizontal"
|
|
1721
|
+
]
|
|
1718
1722
|
},
|
|
1719
1723
|
{
|
|
1720
1724
|
"type": "typography",
|
|
1721
|
-
"
|
|
1722
|
-
"
|
|
1725
|
+
"content": "@review.comment",
|
|
1726
|
+
"variant": "body"
|
|
1723
1727
|
},
|
|
1724
1728
|
{
|
|
1725
|
-
"type": "stack",
|
|
1726
|
-
"direction": "horizontal",
|
|
1727
1729
|
"align": "center",
|
|
1730
|
+
"direction": "horizontal",
|
|
1731
|
+
"type": "stack",
|
|
1732
|
+
"gap": "sm",
|
|
1728
1733
|
"children": [
|
|
1729
1734
|
{
|
|
1730
1735
|
"label": "Helpful",
|
|
@@ -1733,34 +1738,29 @@
|
|
|
1733
1738
|
"actionPayload": {
|
|
1734
1739
|
"id": "@review.id"
|
|
1735
1740
|
},
|
|
1736
|
-
"
|
|
1737
|
-
"
|
|
1741
|
+
"icon": "thumbs-up",
|
|
1742
|
+
"variant": "ghost"
|
|
1738
1743
|
},
|
|
1739
1744
|
{
|
|
1740
|
-
"
|
|
1741
|
-
"color": "muted",
|
|
1745
|
+
"variant": "caption",
|
|
1742
1746
|
"type": "typography",
|
|
1743
|
-
"
|
|
1747
|
+
"content": "@review.helpful",
|
|
1748
|
+
"color": "muted"
|
|
1744
1749
|
}
|
|
1745
|
-
]
|
|
1746
|
-
"gap": "sm"
|
|
1750
|
+
]
|
|
1747
1751
|
}
|
|
1748
1752
|
],
|
|
1753
|
+
"direction": "vertical",
|
|
1749
1754
|
"gap": "sm",
|
|
1750
|
-
"type": "stack"
|
|
1751
|
-
"direction": "vertical"
|
|
1755
|
+
"type": "stack"
|
|
1752
1756
|
}
|
|
1753
|
-
]
|
|
1754
|
-
"type": "card"
|
|
1757
|
+
]
|
|
1755
1758
|
}
|
|
1756
1759
|
],
|
|
1757
|
-
"entity": "@entity.reviews"
|
|
1758
|
-
"fields": [],
|
|
1759
|
-
"type": "data-list",
|
|
1760
|
-
"gap": "md"
|
|
1760
|
+
"entity": "@entity.reviews"
|
|
1761
1761
|
}
|
|
1762
1762
|
],
|
|
1763
|
-
"
|
|
1763
|
+
"direction": "vertical"
|
|
1764
1764
|
}
|
|
1765
1765
|
]
|
|
1766
1766
|
]
|
|
@@ -1774,8 +1774,8 @@
|
|
|
1774
1774
|
"render-ui",
|
|
1775
1775
|
"main",
|
|
1776
1776
|
{
|
|
1777
|
-
"
|
|
1778
|
-
"
|
|
1777
|
+
"title": "Recording…",
|
|
1778
|
+
"type": "loading-state"
|
|
1779
1779
|
}
|
|
1780
1780
|
]
|
|
1781
1781
|
]
|
|
@@ -1794,29 +1794,28 @@
|
|
|
1794
1794
|
"render-ui",
|
|
1795
1795
|
"main",
|
|
1796
1796
|
{
|
|
1797
|
-
"type": "stack",
|
|
1798
1797
|
"children": [
|
|
1799
1798
|
{
|
|
1800
|
-
"align": "center",
|
|
1801
|
-
"direction": "horizontal",
|
|
1802
1799
|
"type": "stack",
|
|
1800
|
+
"direction": "horizontal",
|
|
1801
|
+
"align": "center",
|
|
1803
1802
|
"gap": "sm",
|
|
1804
1803
|
"children": [
|
|
1805
1804
|
{
|
|
1806
|
-
"action": "CANCEL_REVIEW",
|
|
1807
1805
|
"icon": "arrow-left",
|
|
1806
|
+
"variant": "ghost",
|
|
1808
1807
|
"label": "Back",
|
|
1809
|
-
"
|
|
1810
|
-
"
|
|
1808
|
+
"action": "CANCEL_REVIEW",
|
|
1809
|
+
"type": "button"
|
|
1811
1810
|
},
|
|
1812
1811
|
{
|
|
1813
|
-
"
|
|
1814
|
-
"
|
|
1812
|
+
"name": "edit",
|
|
1813
|
+
"type": "icon"
|
|
1815
1814
|
},
|
|
1816
1815
|
{
|
|
1817
|
-
"type": "typography",
|
|
1818
1816
|
"content": "Write a review",
|
|
1819
|
-
"variant": "h3"
|
|
1817
|
+
"variant": "h3",
|
|
1818
|
+
"type": "typography"
|
|
1820
1819
|
}
|
|
1821
1820
|
]
|
|
1822
1821
|
},
|
|
@@ -1824,46 +1823,47 @@
|
|
|
1824
1823
|
"children": [
|
|
1825
1824
|
{
|
|
1826
1825
|
"gap": "md",
|
|
1826
|
+
"direction": "vertical",
|
|
1827
1827
|
"type": "stack",
|
|
1828
1828
|
"children": [
|
|
1829
1829
|
{
|
|
1830
|
-
"content": "@config.subjectTitle",
|
|
1831
|
-
"variant": "caption",
|
|
1832
1830
|
"type": "typography",
|
|
1833
|
-
"
|
|
1831
|
+
"content": "@config.subjectTitle",
|
|
1832
|
+
"color": "muted",
|
|
1833
|
+
"variant": "caption"
|
|
1834
1834
|
},
|
|
1835
1835
|
{
|
|
1836
1836
|
"content": "How would you rate it?",
|
|
1837
|
-
"
|
|
1838
|
-
"
|
|
1837
|
+
"variant": "h4",
|
|
1838
|
+
"type": "typography"
|
|
1839
1839
|
},
|
|
1840
1840
|
{
|
|
1841
1841
|
"type": "star-rating",
|
|
1842
|
-
"
|
|
1842
|
+
"max": 5.0,
|
|
1843
1843
|
"action": "RATE_DRAFT",
|
|
1844
|
-
"
|
|
1844
|
+
"value": "@entity.draftRating"
|
|
1845
1845
|
},
|
|
1846
1846
|
{
|
|
1847
|
+
"type": "typography",
|
|
1847
1848
|
"content": "Share more details (optional)",
|
|
1848
|
-
"variant": "h4"
|
|
1849
|
-
"type": "typography"
|
|
1849
|
+
"variant": "h4"
|
|
1850
1850
|
},
|
|
1851
1851
|
{
|
|
1852
|
+
"cancelEvent": "CANCEL_REVIEW",
|
|
1853
|
+
"submitLabel": "@config.submitLabel",
|
|
1852
1854
|
"fields": "@config.reviewFields",
|
|
1853
1855
|
"type": "form-section",
|
|
1856
|
+
"entity": "@entity",
|
|
1854
1857
|
"mode": "edit",
|
|
1855
|
-
"submitEvent": "SUBMIT_REVIEW"
|
|
1856
|
-
"cancelEvent": "CANCEL_REVIEW",
|
|
1857
|
-
"submitLabel": "@config.submitLabel",
|
|
1858
|
-
"entity": "@entity"
|
|
1858
|
+
"submitEvent": "SUBMIT_REVIEW"
|
|
1859
1859
|
}
|
|
1860
|
-
]
|
|
1861
|
-
"direction": "vertical"
|
|
1860
|
+
]
|
|
1862
1861
|
}
|
|
1863
1862
|
],
|
|
1864
1863
|
"type": "card"
|
|
1865
1864
|
}
|
|
1866
1865
|
],
|
|
1866
|
+
"type": "stack",
|
|
1867
1867
|
"direction": "vertical",
|
|
1868
1868
|
"gap": "md"
|
|
1869
1869
|
}
|
|
@@ -1880,13 +1880,13 @@
|
|
|
1880
1880
|
"create",
|
|
1881
1881
|
"ReviewView",
|
|
1882
1882
|
{
|
|
1883
|
-
"
|
|
1884
|
-
"
|
|
1883
|
+
"comment": "@entity.draftComment",
|
|
1884
|
+
"rating": "@entity.draftRating"
|
|
1885
1885
|
},
|
|
1886
1886
|
{
|
|
1887
1887
|
"emit": {
|
|
1888
|
-
"
|
|
1889
|
-
"
|
|
1888
|
+
"success": "ReviewSaved",
|
|
1889
|
+
"failure": "ReviewSaveFailed"
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
],
|
|
@@ -1895,21 +1895,21 @@
|
|
|
1895
1895
|
"main",
|
|
1896
1896
|
{
|
|
1897
1897
|
"gap": "md",
|
|
1898
|
+
"type": "stack",
|
|
1899
|
+
"align": "center",
|
|
1900
|
+
"direction": "vertical",
|
|
1898
1901
|
"children": [
|
|
1899
1902
|
{
|
|
1900
|
-
"type": "icon",
|
|
1901
1903
|
"size": "lg",
|
|
1902
|
-
"name": "send"
|
|
1904
|
+
"name": "send",
|
|
1905
|
+
"type": "icon"
|
|
1903
1906
|
},
|
|
1904
1907
|
{
|
|
1905
1908
|
"content": "Submitting your review…",
|
|
1906
1909
|
"variant": "h3",
|
|
1907
1910
|
"type": "typography"
|
|
1908
1911
|
}
|
|
1909
|
-
]
|
|
1910
|
-
"type": "stack",
|
|
1911
|
-
"direction": "vertical",
|
|
1912
|
-
"align": "center"
|
|
1912
|
+
]
|
|
1913
1913
|
}
|
|
1914
1914
|
]
|
|
1915
1915
|
]
|
|
@@ -1948,35 +1948,35 @@
|
|
|
1948
1948
|
"render-ui",
|
|
1949
1949
|
"main",
|
|
1950
1950
|
{
|
|
1951
|
+
"align": "center",
|
|
1951
1952
|
"children": [
|
|
1952
1953
|
{
|
|
1953
|
-
"
|
|
1954
|
+
"size": "lg",
|
|
1954
1955
|
"name": "check-circle",
|
|
1955
|
-
"
|
|
1956
|
+
"type": "icon"
|
|
1956
1957
|
},
|
|
1957
1958
|
{
|
|
1958
1959
|
"align": "center",
|
|
1960
|
+
"content": "Thanks for your review!",
|
|
1959
1961
|
"variant": "h2",
|
|
1960
|
-
"type": "typography"
|
|
1961
|
-
"content": "Thanks for your review!"
|
|
1962
|
+
"type": "typography"
|
|
1962
1963
|
},
|
|
1963
1964
|
{
|
|
1964
|
-
"color": "muted",
|
|
1965
1965
|
"type": "typography",
|
|
1966
|
-
"align": "center",
|
|
1967
1966
|
"content": "It will appear on the page shortly.",
|
|
1968
|
-
"
|
|
1967
|
+
"align": "center",
|
|
1968
|
+
"variant": "body",
|
|
1969
|
+
"color": "muted"
|
|
1969
1970
|
},
|
|
1970
1971
|
{
|
|
1971
|
-
"icon": "arrow-left",
|
|
1972
|
-
"type": "button",
|
|
1973
1972
|
"variant": "primary",
|
|
1973
|
+
"icon": "arrow-left",
|
|
1974
1974
|
"label": "Back to reviews",
|
|
1975
|
+
"type": "button",
|
|
1975
1976
|
"action": "RESTART"
|
|
1976
1977
|
}
|
|
1977
1978
|
],
|
|
1978
1979
|
"direction": "vertical",
|
|
1979
|
-
"align": "center",
|
|
1980
1980
|
"type": "stack",
|
|
1981
1981
|
"gap": "lg"
|
|
1982
1982
|
}
|
|
@@ -1997,9 +1997,9 @@
|
|
|
1997
1997
|
"render-ui",
|
|
1998
1998
|
"main",
|
|
1999
1999
|
{
|
|
2000
|
-
"
|
|
2000
|
+
"title": "Submit failed",
|
|
2001
2001
|
"message": "@entity.errorMessage",
|
|
2002
|
-
"
|
|
2002
|
+
"type": "error-state"
|
|
2003
2003
|
}
|
|
2004
2004
|
]
|
|
2005
2005
|
]
|
|
@@ -2014,8 +2014,8 @@
|
|
|
2014
2014
|
"ReviewView",
|
|
2015
2015
|
{
|
|
2016
2016
|
"emit": {
|
|
2017
|
-
"
|
|
2018
|
-
"
|
|
2017
|
+
"success": "ReviewsLoaded",
|
|
2018
|
+
"failure": "ReviewsLoadFailed"
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
],
|
|
@@ -2039,8 +2039,8 @@
|
|
|
2039
2039
|
"ReviewView",
|
|
2040
2040
|
{
|
|
2041
2041
|
"emit": {
|
|
2042
|
-
"
|
|
2043
|
-
"
|
|
2042
|
+
"success": "ReviewsLoaded",
|
|
2043
|
+
"failure": "ReviewsLoadFailed"
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
2046
|
],
|
|
@@ -2048,8 +2048,8 @@
|
|
|
2048
2048
|
"render-ui",
|
|
2049
2049
|
"main",
|
|
2050
2050
|
{
|
|
2051
|
-
"
|
|
2052
|
-
"
|
|
2051
|
+
"title": "Retrying…",
|
|
2052
|
+
"type": "loading-state"
|
|
2053
2053
|
}
|
|
2054
2054
|
]
|
|
2055
2055
|
]
|
|
@@ -2057,32 +2057,6 @@
|
|
|
2057
2057
|
]
|
|
2058
2058
|
},
|
|
2059
2059
|
"config": {
|
|
2060
|
-
"reviewFields": {
|
|
2061
|
-
"type": "[string]",
|
|
2062
|
-
"default": [
|
|
2063
|
-
"draftComment"
|
|
2064
|
-
],
|
|
2065
|
-
"label": "Review form fields",
|
|
2066
|
-
"description": "Inputs shown in the review compose form",
|
|
2067
|
-
"tier": "customization",
|
|
2068
|
-
"items": {
|
|
2069
|
-
"type": "string"
|
|
2070
|
-
}
|
|
2071
|
-
},
|
|
2072
|
-
"cancelLabel": {
|
|
2073
|
-
"type": "string",
|
|
2074
|
-
"default": "Cancel",
|
|
2075
|
-
"label": "Cancel button",
|
|
2076
|
-
"description": "Label on the cancel button inside the compose form",
|
|
2077
|
-
"tier": "customization"
|
|
2078
|
-
},
|
|
2079
|
-
"submitLabel": {
|
|
2080
|
-
"type": "string",
|
|
2081
|
-
"default": "Submit review",
|
|
2082
|
-
"label": "Submit button",
|
|
2083
|
-
"description": "Label on the primary submit-review button",
|
|
2084
|
-
"tier": "customization"
|
|
2085
|
-
},
|
|
2086
2060
|
"writeLabel": {
|
|
2087
2061
|
"type": "string",
|
|
2088
2062
|
"default": "Write a review",
|
|
@@ -2090,13 +2064,6 @@
|
|
|
2090
2064
|
"description": "Label on the call-to-action that opens the compose form",
|
|
2091
2065
|
"tier": "customization"
|
|
2092
2066
|
},
|
|
2093
|
-
"subjectTitle": {
|
|
2094
|
-
"type": "string",
|
|
2095
|
-
"default": "Bali Sunset Villa · 3 nights",
|
|
2096
|
-
"label": "Subject title",
|
|
2097
|
-
"description": "Name of the item being reviewed (shown in the header)",
|
|
2098
|
-
"tier": "essential"
|
|
2099
|
-
},
|
|
2100
2067
|
"sortOptions": {
|
|
2101
2068
|
"type": "[SortOption]",
|
|
2102
2069
|
"default": [
|
|
@@ -2106,14 +2073,14 @@
|
|
|
2106
2073
|
"icon": "clock"
|
|
2107
2074
|
},
|
|
2108
2075
|
{
|
|
2109
|
-
"icon": "star",
|
|
2110
2076
|
"id": "highest",
|
|
2077
|
+
"icon": "star",
|
|
2111
2078
|
"label": "Top rated"
|
|
2112
2079
|
},
|
|
2113
2080
|
{
|
|
2114
2081
|
"label": "Lowest",
|
|
2115
|
-
"
|
|
2116
|
-
"
|
|
2082
|
+
"icon": "trending-down",
|
|
2083
|
+
"id": "lowest"
|
|
2117
2084
|
}
|
|
2118
2085
|
],
|
|
2119
2086
|
"label": "Sort tabs",
|
|
@@ -2127,8 +2094,13 @@
|
|
|
2127
2094
|
"type": "string",
|
|
2128
2095
|
"required": true
|
|
2129
2096
|
},
|
|
2130
|
-
"
|
|
2131
|
-
"name": "
|
|
2097
|
+
"icon": {
|
|
2098
|
+
"name": "icon",
|
|
2099
|
+
"type": "string",
|
|
2100
|
+
"required": false
|
|
2101
|
+
},
|
|
2102
|
+
"id": {
|
|
2103
|
+
"name": "id",
|
|
2132
2104
|
"type": "string",
|
|
2133
2105
|
"required": true
|
|
2134
2106
|
}
|
|
@@ -2143,12 +2115,12 @@
|
|
|
2143
2115
|
"percentage": 74.0
|
|
2144
2116
|
},
|
|
2145
2117
|
{
|
|
2146
|
-
"
|
|
2147
|
-
"
|
|
2118
|
+
"label": "4 stars",
|
|
2119
|
+
"percentage": 18.0
|
|
2148
2120
|
},
|
|
2149
2121
|
{
|
|
2150
|
-
"
|
|
2151
|
-
"
|
|
2122
|
+
"label": "3 stars",
|
|
2123
|
+
"percentage": 5.0
|
|
2152
2124
|
},
|
|
2153
2125
|
{
|
|
2154
2126
|
"label": "2 stars",
|
|
@@ -2165,18 +2137,51 @@
|
|
|
2165
2137
|
"items": {
|
|
2166
2138
|
"type": "object",
|
|
2167
2139
|
"properties": {
|
|
2168
|
-
"
|
|
2169
|
-
"name": "
|
|
2170
|
-
"type": "
|
|
2140
|
+
"label": {
|
|
2141
|
+
"name": "label",
|
|
2142
|
+
"type": "string",
|
|
2171
2143
|
"required": true
|
|
2172
2144
|
},
|
|
2173
|
-
"
|
|
2174
|
-
"name": "
|
|
2145
|
+
"percentage": {
|
|
2146
|
+
"name": "percentage",
|
|
2175
2147
|
"type": "number",
|
|
2176
2148
|
"required": true
|
|
2177
2149
|
}
|
|
2178
2150
|
}
|
|
2179
2151
|
}
|
|
2152
|
+
},
|
|
2153
|
+
"submitLabel": {
|
|
2154
|
+
"type": "string",
|
|
2155
|
+
"default": "Submit review",
|
|
2156
|
+
"label": "Submit button",
|
|
2157
|
+
"description": "Label on the primary submit-review button",
|
|
2158
|
+
"tier": "customization"
|
|
2159
|
+
},
|
|
2160
|
+
"reviewFields": {
|
|
2161
|
+
"type": "[string]",
|
|
2162
|
+
"default": [
|
|
2163
|
+
"draftComment"
|
|
2164
|
+
],
|
|
2165
|
+
"label": "Review form fields",
|
|
2166
|
+
"description": "Inputs shown in the review compose form",
|
|
2167
|
+
"tier": "customization",
|
|
2168
|
+
"items": {
|
|
2169
|
+
"type": "string"
|
|
2170
|
+
}
|
|
2171
|
+
},
|
|
2172
|
+
"subjectTitle": {
|
|
2173
|
+
"type": "string",
|
|
2174
|
+
"default": "Bali Sunset Villa · 3 nights",
|
|
2175
|
+
"label": "Subject title",
|
|
2176
|
+
"description": "Name of the item being reviewed (shown in the header)",
|
|
2177
|
+
"tier": "essential"
|
|
2178
|
+
},
|
|
2179
|
+
"cancelLabel": {
|
|
2180
|
+
"type": "string",
|
|
2181
|
+
"default": "Cancel",
|
|
2182
|
+
"label": "Cancel button",
|
|
2183
|
+
"description": "Label on the cancel button inside the compose form",
|
|
2184
|
+
"tier": "customization"
|
|
2180
2185
|
}
|
|
2181
2186
|
},
|
|
2182
2187
|
"scope": "instance"
|
|
@@ -2330,33 +2335,33 @@
|
|
|
2330
2335
|
"type": "card",
|
|
2331
2336
|
"children": [
|
|
2332
2337
|
{
|
|
2333
|
-
"gap": "md",
|
|
2334
2338
|
"type": "stack",
|
|
2335
2339
|
"direction": "vertical",
|
|
2336
2340
|
"children": [
|
|
2337
2341
|
{
|
|
2338
|
-
"variant": "h3",
|
|
2339
2342
|
"type": "typography",
|
|
2340
|
-
"content": "@config.title"
|
|
2343
|
+
"content": "@config.title",
|
|
2344
|
+
"variant": "h3"
|
|
2341
2345
|
},
|
|
2342
2346
|
{
|
|
2343
|
-
"
|
|
2344
|
-
"max": "@config.maxStars",
|
|
2347
|
+
"action": "RATE_DRAFT",
|
|
2345
2348
|
"type": "star-rating",
|
|
2346
|
-
"
|
|
2349
|
+
"value": "@entity.draftRating",
|
|
2350
|
+
"max": "@config.maxStars"
|
|
2347
2351
|
},
|
|
2348
2352
|
{
|
|
2349
|
-
"cancelEvent": "CANCEL_REVIEW",
|
|
2350
|
-
"type": "form-section",
|
|
2351
|
-
"mode": "edit",
|
|
2352
|
-
"submitLabel": "@config.submitLabel",
|
|
2353
2353
|
"fields": [
|
|
2354
2354
|
"draftComment"
|
|
2355
2355
|
],
|
|
2356
|
+
"submitEvent": "SUBMIT_REVIEW",
|
|
2357
|
+
"type": "form-section",
|
|
2358
|
+
"mode": "edit",
|
|
2356
2359
|
"entity": "@entity",
|
|
2357
|
-
"
|
|
2360
|
+
"cancelEvent": "CANCEL_REVIEW",
|
|
2361
|
+
"submitLabel": "@config.submitLabel"
|
|
2358
2362
|
}
|
|
2359
|
-
]
|
|
2363
|
+
],
|
|
2364
|
+
"gap": "md"
|
|
2360
2365
|
}
|
|
2361
2366
|
]
|
|
2362
2367
|
}
|
|
@@ -2377,38 +2382,38 @@
|
|
|
2377
2382
|
"render-ui",
|
|
2378
2383
|
"main",
|
|
2379
2384
|
{
|
|
2380
|
-
"type": "card",
|
|
2381
2385
|
"children": [
|
|
2382
2386
|
{
|
|
2383
|
-
"gap": "md",
|
|
2384
|
-
"direction": "vertical",
|
|
2385
2387
|
"children": [
|
|
2386
2388
|
{
|
|
2389
|
+
"variant": "h3",
|
|
2387
2390
|
"type": "typography",
|
|
2388
|
-
"content": "@config.title"
|
|
2389
|
-
"variant": "h3"
|
|
2391
|
+
"content": "@config.title"
|
|
2390
2392
|
},
|
|
2391
2393
|
{
|
|
2392
|
-
"action": "RATE_DRAFT",
|
|
2393
2394
|
"type": "star-rating",
|
|
2394
2395
|
"max": "@config.maxStars",
|
|
2395
|
-
"value": "@entity.draftRating"
|
|
2396
|
+
"value": "@entity.draftRating",
|
|
2397
|
+
"action": "RATE_DRAFT"
|
|
2396
2398
|
},
|
|
2397
2399
|
{
|
|
2398
|
-
"entity": "@entity",
|
|
2399
2400
|
"mode": "edit",
|
|
2401
|
+
"type": "form-section",
|
|
2400
2402
|
"submitEvent": "SUBMIT_REVIEW",
|
|
2401
|
-
"cancelEvent": "CANCEL_REVIEW",
|
|
2402
2403
|
"submitLabel": "@config.submitLabel",
|
|
2404
|
+
"cancelEvent": "CANCEL_REVIEW",
|
|
2403
2405
|
"fields": [
|
|
2404
2406
|
"draftComment"
|
|
2405
2407
|
],
|
|
2406
|
-
"
|
|
2408
|
+
"entity": "@entity"
|
|
2407
2409
|
}
|
|
2408
2410
|
],
|
|
2411
|
+
"direction": "vertical",
|
|
2412
|
+
"gap": "md",
|
|
2409
2413
|
"type": "stack"
|
|
2410
2414
|
}
|
|
2411
|
-
]
|
|
2415
|
+
],
|
|
2416
|
+
"type": "card"
|
|
2412
2417
|
}
|
|
2413
2418
|
]
|
|
2414
2419
|
]
|
|
@@ -2437,22 +2442,22 @@
|
|
|
2437
2442
|
"render-ui",
|
|
2438
2443
|
"main",
|
|
2439
2444
|
{
|
|
2440
|
-
"gap": "md",
|
|
2441
|
-
"align": "center",
|
|
2442
|
-
"direction": "vertical",
|
|
2443
2445
|
"children": [
|
|
2444
2446
|
{
|
|
2445
2447
|
"size": "lg",
|
|
2446
|
-
"
|
|
2447
|
-
"
|
|
2448
|
+
"name": "send",
|
|
2449
|
+
"type": "icon"
|
|
2448
2450
|
},
|
|
2449
2451
|
{
|
|
2450
|
-
"
|
|
2452
|
+
"variant": "h3",
|
|
2451
2453
|
"content": "Submitting…",
|
|
2452
|
-
"
|
|
2454
|
+
"type": "typography"
|
|
2453
2455
|
}
|
|
2454
2456
|
],
|
|
2455
|
-
"
|
|
2457
|
+
"direction": "vertical",
|
|
2458
|
+
"align": "center",
|
|
2459
|
+
"type": "stack",
|
|
2460
|
+
"gap": "md"
|
|
2456
2461
|
}
|
|
2457
2462
|
]
|
|
2458
2463
|
]
|
|
@@ -2476,38 +2481,38 @@
|
|
|
2476
2481
|
"render-ui",
|
|
2477
2482
|
"main",
|
|
2478
2483
|
{
|
|
2479
|
-
"type": "card",
|
|
2480
2484
|
"children": [
|
|
2481
2485
|
{
|
|
2482
|
-
"gap": "md",
|
|
2483
|
-
"direction": "vertical",
|
|
2484
2486
|
"type": "stack",
|
|
2487
|
+
"direction": "vertical",
|
|
2485
2488
|
"children": [
|
|
2486
2489
|
{
|
|
2487
|
-
"type": "typography",
|
|
2488
2490
|
"content": "@config.title",
|
|
2489
|
-
"variant": "h3"
|
|
2491
|
+
"variant": "h3",
|
|
2492
|
+
"type": "typography"
|
|
2490
2493
|
},
|
|
2491
2494
|
{
|
|
2492
2495
|
"action": "RATE_DRAFT",
|
|
2493
|
-
"max": "@config.maxStars",
|
|
2494
2496
|
"type": "star-rating",
|
|
2495
|
-
"value": 0.0
|
|
2497
|
+
"value": 0.0,
|
|
2498
|
+
"max": "@config.maxStars"
|
|
2496
2499
|
},
|
|
2497
2500
|
{
|
|
2498
|
-
"
|
|
2499
|
-
"cancelEvent": "CANCEL_REVIEW",
|
|
2500
|
-
"entity": "@entity",
|
|
2501
|
+
"type": "form-section",
|
|
2501
2502
|
"fields": [
|
|
2502
2503
|
"draftComment"
|
|
2503
2504
|
],
|
|
2504
2505
|
"submitEvent": "SUBMIT_REVIEW",
|
|
2505
2506
|
"mode": "edit",
|
|
2506
|
-
"
|
|
2507
|
+
"entity": "@entity",
|
|
2508
|
+
"submitLabel": "@config.submitLabel",
|
|
2509
|
+
"cancelEvent": "CANCEL_REVIEW"
|
|
2507
2510
|
}
|
|
2508
|
-
]
|
|
2511
|
+
],
|
|
2512
|
+
"gap": "md"
|
|
2509
2513
|
}
|
|
2510
|
-
]
|
|
2514
|
+
],
|
|
2515
|
+
"type": "card"
|
|
2511
2516
|
}
|
|
2512
2517
|
]
|
|
2513
2518
|
]
|
|
@@ -2521,22 +2526,22 @@
|
|
|
2521
2526
|
"render-ui",
|
|
2522
2527
|
"main",
|
|
2523
2528
|
{
|
|
2524
|
-
"type": "stack",
|
|
2525
2529
|
"direction": "vertical",
|
|
2526
|
-
"
|
|
2530
|
+
"gap": "lg",
|
|
2527
2531
|
"children": [
|
|
2528
2532
|
{
|
|
2529
|
-
"size": "lg",
|
|
2530
2533
|
"type": "icon",
|
|
2534
|
+
"size": "lg",
|
|
2531
2535
|
"name": "check-circle"
|
|
2532
2536
|
},
|
|
2533
2537
|
{
|
|
2534
2538
|
"type": "typography",
|
|
2535
|
-
"
|
|
2536
|
-
"
|
|
2539
|
+
"variant": "h2",
|
|
2540
|
+
"content": "Thanks for your review!"
|
|
2537
2541
|
}
|
|
2538
2542
|
],
|
|
2539
|
-
"
|
|
2543
|
+
"align": "center",
|
|
2544
|
+
"type": "stack"
|
|
2540
2545
|
}
|
|
2541
2546
|
]
|
|
2542
2547
|
]
|
|
@@ -2581,38 +2586,38 @@
|
|
|
2581
2586
|
"render-ui",
|
|
2582
2587
|
"main",
|
|
2583
2588
|
{
|
|
2589
|
+
"type": "card",
|
|
2584
2590
|
"children": [
|
|
2585
2591
|
{
|
|
2592
|
+
"direction": "vertical",
|
|
2586
2593
|
"type": "stack",
|
|
2587
|
-
"gap": "md",
|
|
2588
2594
|
"children": [
|
|
2589
2595
|
{
|
|
2590
|
-
"variant": "h3",
|
|
2591
2596
|
"type": "typography",
|
|
2592
|
-
"content": "@config.title"
|
|
2597
|
+
"content": "@config.title",
|
|
2598
|
+
"variant": "h3"
|
|
2593
2599
|
},
|
|
2594
2600
|
{
|
|
2595
|
-
"max": "@config.maxStars",
|
|
2596
|
-
"value": 0.0,
|
|
2597
2601
|
"action": "RATE_DRAFT",
|
|
2598
|
-
"type": "star-rating"
|
|
2602
|
+
"type": "star-rating",
|
|
2603
|
+
"value": 0.0,
|
|
2604
|
+
"max": "@config.maxStars"
|
|
2599
2605
|
},
|
|
2600
2606
|
{
|
|
2607
|
+
"cancelEvent": "CANCEL_REVIEW",
|
|
2608
|
+
"mode": "edit",
|
|
2609
|
+
"submitEvent": "SUBMIT_REVIEW",
|
|
2610
|
+
"entity": "@entity",
|
|
2601
2611
|
"type": "form-section",
|
|
2612
|
+
"submitLabel": "@config.submitLabel",
|
|
2602
2613
|
"fields": [
|
|
2603
2614
|
"draftComment"
|
|
2604
|
-
]
|
|
2605
|
-
"entity": "@entity",
|
|
2606
|
-
"mode": "edit",
|
|
2607
|
-
"submitEvent": "SUBMIT_REVIEW",
|
|
2608
|
-
"cancelEvent": "CANCEL_REVIEW",
|
|
2609
|
-
"submitLabel": "@config.submitLabel"
|
|
2615
|
+
]
|
|
2610
2616
|
}
|
|
2611
2617
|
],
|
|
2612
|
-
"
|
|
2618
|
+
"gap": "md"
|
|
2613
2619
|
}
|
|
2614
|
-
]
|
|
2615
|
-
"type": "card"
|
|
2620
|
+
]
|
|
2616
2621
|
}
|
|
2617
2622
|
]
|
|
2618
2623
|
]
|
|
@@ -2629,33 +2634,33 @@
|
|
|
2629
2634
|
"type": "card",
|
|
2630
2635
|
"children": [
|
|
2631
2636
|
{
|
|
2632
|
-
"gap": "md",
|
|
2633
|
-
"type": "stack",
|
|
2634
2637
|
"direction": "vertical",
|
|
2635
2638
|
"children": [
|
|
2636
2639
|
{
|
|
2637
2640
|
"content": "@config.title",
|
|
2638
|
-
"
|
|
2639
|
-
"
|
|
2641
|
+
"variant": "h3",
|
|
2642
|
+
"type": "typography"
|
|
2640
2643
|
},
|
|
2641
2644
|
{
|
|
2642
|
-
"max": "@config.maxStars",
|
|
2643
2645
|
"action": "RATE_DRAFT",
|
|
2644
|
-
"
|
|
2645
|
-
"
|
|
2646
|
+
"type": "star-rating",
|
|
2647
|
+
"max": "@config.maxStars",
|
|
2648
|
+
"value": 0.0
|
|
2646
2649
|
},
|
|
2647
2650
|
{
|
|
2648
|
-
"mode": "edit",
|
|
2649
|
-
"submitEvent": "SUBMIT_REVIEW",
|
|
2650
2651
|
"entity": "@entity",
|
|
2651
|
-
"type": "form-section",
|
|
2652
2652
|
"cancelEvent": "CANCEL_REVIEW",
|
|
2653
|
+
"submitEvent": "SUBMIT_REVIEW",
|
|
2654
|
+
"mode": "edit",
|
|
2655
|
+
"type": "form-section",
|
|
2653
2656
|
"submitLabel": "@config.submitLabel",
|
|
2654
2657
|
"fields": [
|
|
2655
2658
|
"draftComment"
|
|
2656
2659
|
]
|
|
2657
2660
|
}
|
|
2658
|
-
]
|
|
2661
|
+
],
|
|
2662
|
+
"type": "stack",
|
|
2663
|
+
"gap": "md"
|
|
2659
2664
|
}
|
|
2660
2665
|
]
|
|
2661
2666
|
}
|
|
@@ -2665,20 +2670,6 @@
|
|
|
2665
2670
|
]
|
|
2666
2671
|
},
|
|
2667
2672
|
"config": {
|
|
2668
|
-
"allowComment": {
|
|
2669
|
-
"type": "boolean",
|
|
2670
|
-
"default": true,
|
|
2671
|
-
"label": "Allow comment",
|
|
2672
|
-
"description": "Show a free-text comment field below the stars",
|
|
2673
|
-
"tier": "customization"
|
|
2674
|
-
},
|
|
2675
|
-
"allowPhotos": {
|
|
2676
|
-
"type": "boolean",
|
|
2677
|
-
"default": false,
|
|
2678
|
-
"label": "Allow photos",
|
|
2679
|
-
"description": "Let the user attach photos to the review",
|
|
2680
|
-
"tier": "customization"
|
|
2681
|
-
},
|
|
2682
2673
|
"cancelLabel": {
|
|
2683
2674
|
"type": "string",
|
|
2684
2675
|
"default": "Cancel",
|
|
@@ -2693,13 +2684,6 @@
|
|
|
2693
2684
|
"description": "Event emitted when the user submits the form",
|
|
2694
2685
|
"tier": "advanced"
|
|
2695
2686
|
},
|
|
2696
|
-
"maxStars": {
|
|
2697
|
-
"type": "number",
|
|
2698
|
-
"default": 5.0,
|
|
2699
|
-
"label": "Max stars",
|
|
2700
|
-
"description": "Top of the rating scale (typically 5)",
|
|
2701
|
-
"tier": "customization"
|
|
2702
|
-
},
|
|
2703
2687
|
"title": {
|
|
2704
2688
|
"type": "string",
|
|
2705
2689
|
"default": "Write a review",
|
|
@@ -2707,12 +2691,33 @@
|
|
|
2707
2691
|
"description": "Heading shown above the review compose form",
|
|
2708
2692
|
"tier": "customization"
|
|
2709
2693
|
},
|
|
2694
|
+
"allowComment": {
|
|
2695
|
+
"type": "boolean",
|
|
2696
|
+
"default": true,
|
|
2697
|
+
"label": "Allow comment",
|
|
2698
|
+
"description": "Show a free-text comment field below the stars",
|
|
2699
|
+
"tier": "customization"
|
|
2700
|
+
},
|
|
2710
2701
|
"submitLabel": {
|
|
2711
2702
|
"type": "string",
|
|
2712
2703
|
"default": "Submit review",
|
|
2713
2704
|
"label": "Submit button",
|
|
2714
2705
|
"description": "Label on the primary submit button",
|
|
2715
2706
|
"tier": "customization"
|
|
2707
|
+
},
|
|
2708
|
+
"allowPhotos": {
|
|
2709
|
+
"type": "boolean",
|
|
2710
|
+
"default": false,
|
|
2711
|
+
"label": "Allow photos",
|
|
2712
|
+
"description": "Let the user attach photos to the review",
|
|
2713
|
+
"tier": "customization"
|
|
2714
|
+
},
|
|
2715
|
+
"maxStars": {
|
|
2716
|
+
"type": "number",
|
|
2717
|
+
"default": 5.0,
|
|
2718
|
+
"label": "Max stars",
|
|
2719
|
+
"description": "Top of the rating scale (typically 5)",
|
|
2720
|
+
"tier": "customization"
|
|
2716
2721
|
}
|
|
2717
2722
|
},
|
|
2718
2723
|
"scope": "instance"
|
|
@@ -2740,4 +2745,4 @@
|
|
|
2740
2745
|
]
|
|
2741
2746
|
}
|
|
2742
2747
|
]
|
|
2743
|
-
}
|
|
2748
|
+
}
|