@thorprovider/storefront 0.4.0-mvp.2 → 0.4.0
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 +10 -12
- package/assets/templates/app/app/[[...slug]]/page.tsx +14 -1
- package/assets/templates/app/app/[[...slug]]/renderer.tsx +43 -12
- package/assets/templates/app/lib/__STOREFRONT__/account-boundary.client.tsx +76 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-lifecycle.client.tsx +461 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-mutation.client.ts +46 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-private.core.ts +103 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-reconcile.client.ts +465 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-session.core.ts +177 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-session.ts +44 -0
- package/assets/templates/app/lib/__STOREFRONT__/account-user.core.ts +65 -0
- package/assets/templates/app/lib/__STOREFRONT__/actions.ts +76 -27
- package/assets/templates/app/lib/__STOREFRONT__/catalog.ts +4 -4
- package/assets/templates/app/lib/__STOREFRONT__/commerce.ts +0 -10
- package/assets/templates/app/lib/__STOREFRONT__/handlers.core.ts +3 -3
- package/assets/templates/app/lib/__STOREFRONT__/mappers.ts +17 -18
- package/assets/templates/app/lib/__STOREFRONT__/projection-ownership.client.tsx +209 -0
- package/assets/templates/app/lib/__STOREFRONT__/projection-ownership.ts +247 -0
- package/assets/templates/app/lib/__STOREFRONT__/registry.tsx +48 -19
- package/assets/templates/app/lib/__STOREFRONT__/schema.ts +49 -11
- package/assets/templates/app/lib/__STOREFRONT__/section-sources.ts +3 -5
- package/assets/templates/app/lib/__STOREFRONT__/spec/index.ts +25 -0
- package/assets/templates/app/lib/__STOREFRONT__/state.core.ts +4 -2
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/cta.client.tsx +1 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/faq.client.tsx +1 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/logoCloud.tsx +1 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/pricing.tsx +1 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/products.client.tsx +16 -16
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/schema.products.ts +1 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/statistics.tsx +1 -1
- package/assets/templates/app/lib/__STOREFRONT__/views/sections/testimonials.tsx +1 -1
- package/assets/templates/features/customer-auth/handlers.ts +19 -23
- package/assets/templates/features/customer-auth/state.ts +21 -0
- package/assets/templates/views/account/index.tsx +19 -7
- package/assets/templates/views/account/registry.tsx +234 -155
- package/assets/templates/views/cart/data.ts +7 -7
- package/assets/templates/views/cart/registry.tsx +4 -3
- package/assets/templates/views/category/assembly/assembly.json +1 -1
- package/assets/templates/views/category/assembly/registry.skeleton.tsx +6 -6
- package/assets/templates/views/category/assembly/slots/breadcrumb/Breadcrumb/binding.json +1 -1
- package/assets/templates/views/category/registry.tsx +7 -7
- package/assets/templates/views/checkout/registry.tsx +3 -5
- package/assets/templates/views/home/assembly/assembly.json +4 -4
- package/assets/templates/views/home/assembly/index.skeleton.tsx +2 -1
- package/assets/templates/views/home/assembly/registry.skeleton.tsx +4 -1
- package/assets/templates/views/home/assembly/slots/benefits/cards/binding.json +5 -0
- package/assets/templates/views/home/assembly/slots/benefits/{Feature1 → cards}/registry.part +7 -1
- package/assets/templates/views/home/assembly/slots/benefits/split/binding.json +5 -0
- package/assets/templates/views/home/assembly/slots/benefits/{Feature2 → split}/registry.part +6 -1
- package/assets/templates/views/home/assembly/slots/categories/CategoryGrid/binding.json +5 -0
- package/assets/templates/views/home/assembly/slots/categories/CategoryGrid/catalog.part +8 -0
- package/assets/templates/views/home/assembly/slots/categories/{ProductCategory2 → CategoryGrid}/element.part +1 -1
- package/assets/templates/views/home/assembly/slots/categories/CategoryGrid/registry.part +31 -0
- package/assets/templates/views/home/assembly/slots/hero/StorefrontHero/binding.json +5 -0
- package/assets/templates/views/home/assembly/slots/hero/StorefrontHero/catalog.part +4 -0
- package/assets/templates/views/home/assembly/slots/hero/{StorefrontHero1 → StorefrontHero}/registry.part +3 -1
- package/assets/templates/views/home/content.ts +22 -0
- package/assets/templates/views/home/index.tsx +11 -6
- package/assets/templates/views/home/props.ts +1 -0
- package/assets/templates/views/home/registry.tsx +39 -15
- package/assets/templates/views/home/schema.ts +141 -24
- package/assets/templates/views/product/data.ts +1 -1
- package/assets/templates/views/product/registry.tsx +10 -6
- package/assets/templates/views/product/schema.ts +36 -1
- package/package.json +4 -5
- package/recipes/archetypes.json +25 -25
- package/recipes/catalog.json +213 -160
- package/recipes/catalog.mjs +10 -0
- package/recipes/catalog.schema.json +4 -0
- package/recipes/features.json +3 -3
- package/recipes/recipes.json +138 -40
- package/recipes/sections.json +2 -2
- package/recipes/validate.mjs +21 -4
- package/scripts/candidate.mjs +2 -2
- package/scripts/file-classes.mjs +10 -0
- package/scripts/ownership-conflict.mjs +5 -2
- package/scripts/view-assembly.mjs +10 -2
- package/scripts/view-selection.mjs +1 -1
- package/skills/sf-view-gen/assets/recipes/archetypes.json +25 -25
- package/skills/sf-view-gen/assets/recipes/catalog.json +213 -160
- package/skills/sf-view-gen/assets/recipes/catalog.schema.json +4 -0
- package/skills/sf-view-gen/assets/recipes/features.json +3 -3
- package/skills/sf-view-gen/assets/recipes/recipes.json +138 -40
- package/skills/sf-view-gen/assets/recipes/sections.json +2 -2
- package/skills/sf-view-gen/assets/templates/views/sections/cta.client.tsx +1 -1
- package/skills/sf-view-gen/assets/templates/views/sections/faq.client.tsx +1 -1
- package/skills/sf-view-gen/assets/templates/views/sections/logoCloud.client.tsx +1 -1
- package/skills/sf-view-gen/assets/templates/views/sections/pricing.client.tsx +1 -1
- package/skills/sf-view-gen/assets/templates/views/sections/products.client.tsx +16 -16
- package/skills/sf-view-gen/assets/templates/views/sections/schema.products.ts +1 -1
- package/skills/sf-view-gen/assets/templates/views/sections/statistics.client.tsx +1 -1
- package/skills/sf-view-gen/assets/templates/views/sections/testimonials.client.tsx +1 -1
- package/skills/sf-view-gen/scripts/catalog.mjs +10 -0
- package/skills/sf-view-gen/scripts/validate.mjs +21 -4
- package/assets/templates/views/home/assembly/slots/benefits/Feature1/binding.json +0 -5
- package/assets/templates/views/home/assembly/slots/benefits/Feature2/binding.json +0 -5
- package/assets/templates/views/home/assembly/slots/categories/ProductCategory2/binding.json +0 -5
- package/assets/templates/views/home/assembly/slots/categories/ProductCategory2/catalog.part +0 -4
- package/assets/templates/views/home/assembly/slots/categories/ProductCategory2/registry.part +0 -16
- package/assets/templates/views/home/assembly/slots/hero/StorefrontHero1/binding.json +0 -5
- package/assets/templates/views/home/assembly/slots/hero/StorefrontHero1/catalog.part +0 -4
- /package/assets/templates/views/home/assembly/slots/benefits/{Feature1 → cards}/catalog.part +0 -0
- /package/assets/templates/views/home/assembly/slots/benefits/{Feature1 → cards}/element.part +0 -0
- /package/assets/templates/views/home/assembly/slots/benefits/{Feature2 → split}/catalog.part +0 -0
- /package/assets/templates/views/home/assembly/slots/benefits/{Feature2 → split}/element.part +0 -0
- /package/assets/templates/views/home/assembly/slots/hero/{StorefrontHero1 → StorefrontHero}/element.part +0 -0
|
@@ -1,60 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./catalog.schema.json",
|
|
3
3
|
"catalogVersion": 1,
|
|
4
|
-
"description": "Initial semantic executable catalog (E1 tasks 1.2-1.3), classified by source-shape inspection of the @thorprovider/blocks prop contracts and the view templates. Scope: every slot the curated MVP views (home, product, category, checkout, account) render by default, covering both the selectable archetype slots declared by recipes/archetypes.json and the nested default slots that have no archetype (category.productCard, checkout.confirmation) so no legacy default support is dropped. The account view (change: storefront-customer-auth) declares the login/register slots: LoginPage1/SignUpPage1 are executable while LoginPage2 is held for its divergent callback contract. A variant is `executable` only when the slot's canonical data shape can feed its block props without a prop bridge and without inventing data; every other non-default variant is `held` with the specific reason. The one
|
|
4
|
+
"description": "Initial semantic executable catalog (E1 tasks 1.2-1.3), classified by source-shape inspection of the @thorprovider/blocks prop contracts and the view templates. Scope: every slot the curated MVP views (home, product, category, checkout, account) render by default, covering both the selectable archetype slots declared by recipes/archetypes.json and the nested default slots that have no archetype (category.productCard, checkout.confirmation) so no legacy default support is dropped. The account view (change: storefront-customer-auth) declares the login/register slots: LoginPage1/SignUpPage1 are executable while LoginPage2 is held for its divergent callback contract. A variant is `executable` only when the slot's canonical data shape can feed its block props without a prop bridge and without inventing data; every other non-default variant is `held` with the specific reason. The one non-default structural choice is home.benefits, which selects between the two bounded presentations (`cards`, `split`) of the single canonical `Feature` block (identical item contract, no bridge); the retired numbered names `Feature1`/`Feature2` resolve through the slot's `legacyAliases`. E2 task 6.1 declares the base listing slot category.filter CategoryFilter2 as the single controlled listing (dataShape `CatalogQuery & CatalogResults`, state controlled) with the search/filter controls contributed by the logical mounts category.search / category.filters (no second block). Source-shape compatibility is not end-to-end backend behavior proof: the render is executable, but the category.search.apply / category.filter.apply actions remain held under the capability catalog (owner: storefront-catalog-search-filters, E2) until a real runtime proof. The `capabilities` map declares those operational capabilities with their requirements and verification state; E1 declares the held category.filter.apply action, E2 adds the held category.search.apply action and the held category.price.range capability that gates the category-filters showPrice option; no capability is claimed verified. The home.hero variants of the retired numbered family (StorefrontHero1/2/5/6) resolve through the slot's `legacyAliases` to the single canonical `StorefrontHero`, whose bounded presentation options (`compact`, `showcase`, `editorial`, `promotional`) preserve the four structural identities; the extended editorial/promotional sections render only from host-supplied data and are omitted otherwise. The category.productCard slot's retired numbered family (ProductCard1/2/3/5) and the previous `ProductCard` variant resolve through the slot's `legacyAliases` to the single canonical `ProductGrid` listing, which renders `ProductCard` item cells with bounded presentation options (`classic`, `minimal`, `rich`) that preserve the three structural identities; the rich presentation's wishlist and view-similar affordances are host-owned and optional, evidence (rating, badge, compare-at) renders only from host-supplied data, and the comparison-table variant `ProductCard5` was discarded as a listing controller, not a card presentation.",
|
|
5
5
|
"slots": {
|
|
6
6
|
"home.hero": {
|
|
7
|
-
"default": "
|
|
7
|
+
"default": "StorefrontHero",
|
|
8
|
+
"legacyAliases": {
|
|
9
|
+
"StorefrontHero1": "StorefrontHero",
|
|
10
|
+
"StorefrontHero2": "StorefrontHero",
|
|
11
|
+
"StorefrontHero5": "StorefrontHero",
|
|
12
|
+
"StorefrontHero6": "StorefrontHero"
|
|
13
|
+
},
|
|
8
14
|
"variants": {
|
|
9
|
-
"
|
|
15
|
+
"StorefrontHero": {
|
|
10
16
|
"status": "executable",
|
|
11
17
|
"block": "StorefrontHero",
|
|
12
18
|
"dataShape": "FeaturedProduct[]",
|
|
13
|
-
"events": [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"requirements": ["heroProducts"]
|
|
25
|
-
},
|
|
26
|
-
"StorefrontHero5": {
|
|
27
|
-
"status": "held",
|
|
28
|
-
"reason": "featuredDeals[].description is absent from the canonical product shape and Department.count would require inventing counts; no truthful prop bridge can be derived from source",
|
|
29
|
-
"block": "StorefrontHero",
|
|
30
|
-
"dataShape": "FeaturedDeal[] & Department[]",
|
|
31
|
-
"events": ["departmentClick", "shopNow", "locateStores"],
|
|
32
|
-
"state": "uncontrolled",
|
|
33
|
-
"requirements": ["featuredDeals", "departments"]
|
|
34
|
-
},
|
|
35
|
-
"StorefrontHero6": {
|
|
36
|
-
"status": "held",
|
|
37
|
-
"reason": "block requires deals with discount/endTime and categories with a required count; the canonical shape supplies neither without invention and no verified prop bridge exists",
|
|
38
|
-
"block": "StorefrontHero",
|
|
39
|
-
"dataShape": "HeroDeal[] & HeroCategory[]",
|
|
40
|
-
"events": ["shopNow", "categoryClick"],
|
|
19
|
+
"events": [
|
|
20
|
+
"addToCart",
|
|
21
|
+
"buyNow",
|
|
22
|
+
"selectColor",
|
|
23
|
+
"search",
|
|
24
|
+
"productClick",
|
|
25
|
+
"departmentClick",
|
|
26
|
+
"shopNow",
|
|
27
|
+
"locateStores",
|
|
28
|
+
"categoryClick"
|
|
29
|
+
],
|
|
41
30
|
"state": "uncontrolled",
|
|
42
|
-
"requirements": [
|
|
31
|
+
"requirements": [
|
|
32
|
+
"heroProducts"
|
|
33
|
+
]
|
|
43
34
|
}
|
|
44
35
|
}
|
|
45
36
|
},
|
|
46
37
|
"home.benefits": {
|
|
47
|
-
"default": "
|
|
38
|
+
"default": "cards",
|
|
39
|
+
"legacyAliases": {
|
|
40
|
+
"Feature1": "cards",
|
|
41
|
+
"Feature2": "split"
|
|
42
|
+
},
|
|
48
43
|
"variants": {
|
|
49
|
-
"
|
|
44
|
+
"cards": {
|
|
50
45
|
"status": "executable",
|
|
51
46
|
"block": "Feature",
|
|
52
47
|
"dataShape": "BenefitsItem[]",
|
|
53
|
-
"events": [
|
|
48
|
+
"events": [
|
|
49
|
+
"ctaClick",
|
|
50
|
+
"learnMore"
|
|
51
|
+
],
|
|
54
52
|
"state": "uncontrolled",
|
|
55
53
|
"requirements": []
|
|
56
54
|
},
|
|
57
|
-
"
|
|
55
|
+
"split": {
|
|
58
56
|
"status": "executable",
|
|
59
57
|
"block": "Feature",
|
|
60
58
|
"dataShape": "BenefitsItem[]",
|
|
@@ -65,73 +63,45 @@
|
|
|
65
63
|
}
|
|
66
64
|
},
|
|
67
65
|
"home.categories": {
|
|
68
|
-
"default": "
|
|
66
|
+
"default": "CategoryGrid",
|
|
67
|
+
"legacyAliases": {
|
|
68
|
+
"ProductCategory": "CategoryGrid"
|
|
69
|
+
},
|
|
69
70
|
"variants": {
|
|
70
|
-
"
|
|
71
|
+
"CategoryGrid": {
|
|
71
72
|
"status": "executable",
|
|
72
|
-
"block": "
|
|
73
|
+
"block": "CategoryGrid",
|
|
73
74
|
"dataShape": "CategoryCard[]",
|
|
74
|
-
"events": [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"events": [],
|
|
84
|
-
"state": "uncontrolled",
|
|
85
|
-
"requirements": ["categories"]
|
|
86
|
-
},
|
|
87
|
-
"ProductCategory4": {
|
|
88
|
-
"status": "held",
|
|
89
|
-
"reason": "block requires categories with title/icon/customers/products/avatarImages, which the canonical CategoryCard shape does not supply; no verified prop bridge exists",
|
|
90
|
-
"block": "CategoryCards",
|
|
91
|
-
"dataShape": "ProductCategory4Category[]",
|
|
92
|
-
"events": ["categoryClick"],
|
|
93
|
-
"state": "uncontrolled",
|
|
94
|
-
"requirements": ["categories"]
|
|
95
|
-
},
|
|
96
|
-
"ProductCategory5": {
|
|
97
|
-
"status": "held",
|
|
98
|
-
"reason": "block requires categories with subcategories and a required itemCount plus a search control, which the canonical CategoryCard shape does not supply; no verified prop bridge exists",
|
|
99
|
-
"block": "CategoryCards",
|
|
100
|
-
"dataShape": "ProductCategory5Category[]",
|
|
101
|
-
"events": ["browse", "viewAll"],
|
|
102
|
-
"state": "uncontrolled",
|
|
103
|
-
"requirements": ["categories"]
|
|
75
|
+
"events": [
|
|
76
|
+
"browse",
|
|
77
|
+
"viewAll",
|
|
78
|
+
"queryChange"
|
|
79
|
+
],
|
|
80
|
+
"state": "controlled",
|
|
81
|
+
"requirements": [
|
|
82
|
+
"categories"
|
|
83
|
+
]
|
|
104
84
|
}
|
|
105
85
|
}
|
|
106
86
|
},
|
|
107
87
|
"product.overview": {
|
|
108
|
-
"default": "
|
|
88
|
+
"default": "ProductOverview",
|
|
109
89
|
"variants": {
|
|
110
|
-
"
|
|
90
|
+
"ProductOverview": {
|
|
111
91
|
"status": "executable",
|
|
112
92
|
"block": "ProductOverview",
|
|
113
93
|
"dataShape": "ProductDetailProduct",
|
|
114
|
-
"events": [
|
|
94
|
+
"events": [
|
|
95
|
+
"selectVariant",
|
|
96
|
+
"quantityChange",
|
|
97
|
+
"addToCart",
|
|
98
|
+
"toggleWishlist"
|
|
99
|
+
],
|
|
115
100
|
"state": "controlled",
|
|
116
|
-
"requirements": [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"reason": "block requires a product with brand/sku/sizes/colors and wishlist events, a shape the canonical ProductDetailProduct does not supply; no verified prop bridge exists",
|
|
121
|
-
"block": "ProductOverview",
|
|
122
|
-
"dataShape": "ProductOverview2Product",
|
|
123
|
-
"events": ["addToCart", "toggleWishlist"],
|
|
124
|
-
"state": "uncontrolled",
|
|
125
|
-
"requirements": ["selectedProduct"]
|
|
126
|
-
},
|
|
127
|
-
"ProductOverview5": {
|
|
128
|
-
"status": "held",
|
|
129
|
-
"reason": "block requires specifications/features/mainImages/galleryImages/userReviews, a shape the canonical ProductDetailProduct does not supply; no verified prop bridge exists",
|
|
130
|
-
"block": "ProductOverview",
|
|
131
|
-
"dataShape": "ProductOverview5Product",
|
|
132
|
-
"events": ["addToCart", "toggleWishlist"],
|
|
133
|
-
"state": "uncontrolled",
|
|
134
|
-
"requirements": ["selectedProduct"]
|
|
101
|
+
"requirements": [
|
|
102
|
+
"selectedProduct",
|
|
103
|
+
"selectedVariantId"
|
|
104
|
+
]
|
|
135
105
|
}
|
|
136
106
|
}
|
|
137
107
|
},
|
|
@@ -142,18 +112,28 @@
|
|
|
142
112
|
"status": "executable",
|
|
143
113
|
"block": "Reviews",
|
|
144
114
|
"dataShape": "Review[]",
|
|
145
|
-
"events": [
|
|
115
|
+
"events": [
|
|
116
|
+
"toggleReviewLike",
|
|
117
|
+
"submitReview"
|
|
118
|
+
],
|
|
146
119
|
"state": "uncontrolled",
|
|
147
|
-
"requirements": [
|
|
120
|
+
"requirements": [
|
|
121
|
+
"productReviews"
|
|
122
|
+
]
|
|
148
123
|
},
|
|
149
124
|
"ReviewRating2": {
|
|
150
125
|
"status": "held",
|
|
151
126
|
"reason": "block requires an aggregate averageRating/ratingDistribution and carousel controls the canonical Review[] shape does not supply; no verified prop bridge exists",
|
|
152
127
|
"block": "Reviews",
|
|
153
128
|
"dataShape": "Review[] & RatingSummary",
|
|
154
|
-
"events": [
|
|
129
|
+
"events": [
|
|
130
|
+
"like",
|
|
131
|
+
"comment"
|
|
132
|
+
],
|
|
155
133
|
"state": "uncontrolled",
|
|
156
|
-
"requirements": [
|
|
134
|
+
"requirements": [
|
|
135
|
+
"productReviews"
|
|
136
|
+
]
|
|
157
137
|
}
|
|
158
138
|
}
|
|
159
139
|
},
|
|
@@ -166,20 +146,37 @@
|
|
|
166
146
|
"dataShape": "BreadcrumbItemData[]",
|
|
167
147
|
"events": [],
|
|
168
148
|
"state": "uncontrolled",
|
|
169
|
-
"requirements": [
|
|
149
|
+
"requirements": [
|
|
150
|
+
"productBreadcrumb"
|
|
151
|
+
]
|
|
170
152
|
}
|
|
171
153
|
}
|
|
172
154
|
},
|
|
173
155
|
"cart.view": {
|
|
174
|
-
"default": "
|
|
156
|
+
"default": "ShoppingCart",
|
|
157
|
+
"legacyAliases": {
|
|
158
|
+
"ShoppingCart1": "ShoppingCart",
|
|
159
|
+
"ShoppingCart2": "ShoppingCart",
|
|
160
|
+
"ShoppingCart3": "ShoppingCart",
|
|
161
|
+
"ShoppingCart4": "ShoppingCart"
|
|
162
|
+
},
|
|
175
163
|
"variants": {
|
|
176
|
-
"
|
|
164
|
+
"ShoppingCart": {
|
|
177
165
|
"status": "executable",
|
|
178
|
-
"block": "
|
|
166
|
+
"block": "ShoppingCart",
|
|
179
167
|
"dataShape": "CartLineState[] & CartTotalsState",
|
|
180
|
-
"events": [
|
|
168
|
+
"events": [
|
|
169
|
+
"refreshCart",
|
|
170
|
+
"updateQuantity",
|
|
171
|
+
"removeFromCart",
|
|
172
|
+
"checkout",
|
|
173
|
+
"continueShopping"
|
|
174
|
+
],
|
|
181
175
|
"state": "controlled",
|
|
182
|
-
"requirements": [
|
|
176
|
+
"requirements": [
|
|
177
|
+
"cart",
|
|
178
|
+
"cartTotals"
|
|
179
|
+
]
|
|
183
180
|
}
|
|
184
181
|
}
|
|
185
182
|
},
|
|
@@ -203,65 +200,64 @@
|
|
|
203
200
|
"removeFilter"
|
|
204
201
|
],
|
|
205
202
|
"state": "controlled",
|
|
206
|
-
"requirements": [
|
|
203
|
+
"requirements": [
|
|
204
|
+
"categoryProducts",
|
|
205
|
+
"categoryQuery",
|
|
206
|
+
"facetSupport"
|
|
207
|
+
]
|
|
207
208
|
},
|
|
208
209
|
"CategoryFilter1": {
|
|
209
210
|
"status": "held",
|
|
210
211
|
"reason": "block requires categories/priceRanges/sortOptions with counts the canonical CardProduct[] listing does not supply; no verified prop bridge exists",
|
|
211
212
|
"block": "CategoryFilter",
|
|
212
213
|
"dataShape": "CategoryFilter1Filters",
|
|
213
|
-
"events": [
|
|
214
|
+
"events": [
|
|
215
|
+
"filterChange"
|
|
216
|
+
],
|
|
214
217
|
"state": "uncontrolled",
|
|
215
|
-
"requirements": [
|
|
218
|
+
"requirements": [
|
|
219
|
+
"categoryProducts"
|
|
220
|
+
]
|
|
216
221
|
},
|
|
217
222
|
"CategoryFilter4": {
|
|
218
223
|
"status": "held",
|
|
219
224
|
"reason": "block requires an advanced facets contract (modelTypes/rangeBands/frameSizes/colourways/features) the canonical listing does not supply; no verified prop bridge exists",
|
|
220
225
|
"block": "CategoryFilter",
|
|
221
226
|
"dataShape": "CategoryFilter4Facets",
|
|
222
|
-
"events": [
|
|
227
|
+
"events": [
|
|
228
|
+
"filterChange"
|
|
229
|
+
],
|
|
223
230
|
"state": "uncontrolled",
|
|
224
|
-
"requirements": [
|
|
231
|
+
"requirements": [
|
|
232
|
+
"categoryProducts"
|
|
233
|
+
]
|
|
225
234
|
}
|
|
226
235
|
}
|
|
227
236
|
},
|
|
228
237
|
"category.productCard": {
|
|
229
|
-
"default": "
|
|
238
|
+
"default": "ProductGrid",
|
|
239
|
+
"legacyAliases": {
|
|
240
|
+
"ProductCard": "ProductGrid",
|
|
241
|
+
"ProductCard1": "ProductGrid",
|
|
242
|
+
"ProductCard2": "ProductGrid",
|
|
243
|
+
"ProductCard3": "ProductGrid",
|
|
244
|
+
"ProductCard5": "ProductGrid"
|
|
245
|
+
},
|
|
230
246
|
"variants": {
|
|
231
|
-
"
|
|
247
|
+
"ProductGrid": {
|
|
232
248
|
"status": "executable",
|
|
233
|
-
"block": "
|
|
234
|
-
"dataShape": "
|
|
235
|
-
"events": [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"reason": "block requires a product with a required rating, a shape the canonical CardProduct listing does not supply; no verified prop bridge exists",
|
|
242
|
-
"block": "ProductCard",
|
|
243
|
-
"dataShape": "ProductCard2Product[]",
|
|
244
|
-
"events": [],
|
|
249
|
+
"block": "ProductGrid",
|
|
250
|
+
"dataShape": "ProductPresentation[]",
|
|
251
|
+
"events": [
|
|
252
|
+
"addToCart",
|
|
253
|
+
"openProduct",
|
|
254
|
+
"toggleWishlist",
|
|
255
|
+
"viewSimilar"
|
|
256
|
+
],
|
|
245
257
|
"state": "uncontrolled",
|
|
246
|
-
"requirements": [
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
"status": "held",
|
|
250
|
-
"reason": "block requires a product with subtitle/originalPrice/reviewCount/discountPercentage and a badge, a shape the canonical CardProduct listing does not supply; no verified prop bridge exists",
|
|
251
|
-
"block": "ProductCard",
|
|
252
|
-
"dataShape": "ProductCard3Product[]",
|
|
253
|
-
"events": ["toggleWishlist", "viewSimilar", "productClick"],
|
|
254
|
-
"state": "controlled",
|
|
255
|
-
"requirements": ["categoryProducts"]
|
|
256
|
-
},
|
|
257
|
-
"ProductCard5": {
|
|
258
|
-
"status": "held",
|
|
259
|
-
"reason": "block requires a product with name/category/stock/specifications/brand, a shape the canonical CardProduct listing does not supply; no verified prop bridge exists",
|
|
260
|
-
"block": "ProductCard",
|
|
261
|
-
"dataShape": "ProductCard5Product[]",
|
|
262
|
-
"events": ["toggleWishlist", "addToCart", "quickView", "compare", "export"],
|
|
263
|
-
"state": "controlled",
|
|
264
|
-
"requirements": ["categoryProducts"]
|
|
258
|
+
"requirements": [
|
|
259
|
+
"categoryProducts"
|
|
260
|
+
]
|
|
265
261
|
}
|
|
266
262
|
}
|
|
267
263
|
},
|
|
@@ -272,27 +268,45 @@
|
|
|
272
268
|
"status": "executable",
|
|
273
269
|
"block": "Checkout",
|
|
274
270
|
"dataShape": "CheckoutForm1FormData",
|
|
275
|
-
"events": [
|
|
271
|
+
"events": [
|
|
272
|
+
"retryTotals",
|
|
273
|
+
"selectShippingOption",
|
|
274
|
+
"applyPromo",
|
|
275
|
+
"submit"
|
|
276
|
+
],
|
|
276
277
|
"state": "controlled",
|
|
277
|
-
"requirements": [
|
|
278
|
+
"requirements": [
|
|
279
|
+
"checkoutCountries",
|
|
280
|
+
"checkoutPaymentMethods"
|
|
281
|
+
]
|
|
278
282
|
},
|
|
279
283
|
"CheckoutForm2": {
|
|
280
284
|
"status": "held",
|
|
281
285
|
"reason": "unproven checkout variant: E1 keeps only the default CheckoutForm1, whose behavior is unchanged; no verified prop bridge exists",
|
|
282
286
|
"block": "Checkout",
|
|
283
287
|
"dataShape": "CheckoutForm2Data",
|
|
284
|
-
"events": [
|
|
288
|
+
"events": [
|
|
289
|
+
"submit"
|
|
290
|
+
],
|
|
285
291
|
"state": "controlled",
|
|
286
|
-
"requirements": [
|
|
292
|
+
"requirements": [
|
|
293
|
+
"checkoutCountries",
|
|
294
|
+
"checkoutPaymentMethods"
|
|
295
|
+
]
|
|
287
296
|
},
|
|
288
297
|
"CheckoutForm3": {
|
|
289
298
|
"status": "held",
|
|
290
299
|
"reason": "unproven checkout variant: E1 keeps only the default CheckoutForm1, whose behavior is unchanged; no verified prop bridge exists",
|
|
291
300
|
"block": "Checkout",
|
|
292
301
|
"dataShape": "CheckoutForm3FormData",
|
|
293
|
-
"events": [
|
|
302
|
+
"events": [
|
|
303
|
+
"submit"
|
|
304
|
+
],
|
|
294
305
|
"state": "controlled",
|
|
295
|
-
"requirements": [
|
|
306
|
+
"requirements": [
|
|
307
|
+
"checkoutCountries",
|
|
308
|
+
"checkoutPaymentMethods"
|
|
309
|
+
]
|
|
296
310
|
}
|
|
297
311
|
}
|
|
298
312
|
},
|
|
@@ -303,9 +317,13 @@
|
|
|
303
317
|
"status": "executable",
|
|
304
318
|
"block": "CheckoutConfirmation",
|
|
305
319
|
"dataShape": "Receipt",
|
|
306
|
-
"events": [
|
|
320
|
+
"events": [
|
|
321
|
+
"continueShopping"
|
|
322
|
+
],
|
|
307
323
|
"state": "uncontrolled",
|
|
308
|
-
"requirements": [
|
|
324
|
+
"requirements": [
|
|
325
|
+
"lastReceipt"
|
|
326
|
+
]
|
|
309
327
|
}
|
|
310
328
|
}
|
|
311
329
|
},
|
|
@@ -316,18 +334,31 @@
|
|
|
316
334
|
"status": "executable",
|
|
317
335
|
"block": "LoginPage1",
|
|
318
336
|
"dataShape": "LoginPage1FormData & AccountAuthResult",
|
|
319
|
-
"events": [
|
|
337
|
+
"events": [
|
|
338
|
+
"submit",
|
|
339
|
+
"createAccount"
|
|
340
|
+
],
|
|
320
341
|
"state": "controlled",
|
|
321
|
-
"requirements": [
|
|
342
|
+
"requirements": [
|
|
343
|
+
"accountCustomer",
|
|
344
|
+
"accountAuthenticated"
|
|
345
|
+
]
|
|
322
346
|
},
|
|
323
347
|
"LoginPage2": {
|
|
324
348
|
"status": "held",
|
|
325
349
|
"reason": "block's onSubmit takes positional (email, password) with no remember-me field and renders a 2-column social grid; no verified prop bridge from the account element contract exists",
|
|
326
350
|
"block": "LoginPage2",
|
|
327
351
|
"dataShape": "LoginPage2Credentials & AccountAuthResult",
|
|
328
|
-
"events": [
|
|
352
|
+
"events": [
|
|
353
|
+
"submit",
|
|
354
|
+
"forgotPassword",
|
|
355
|
+
"signUp"
|
|
356
|
+
],
|
|
329
357
|
"state": "controlled",
|
|
330
|
-
"requirements": [
|
|
358
|
+
"requirements": [
|
|
359
|
+
"accountCustomer",
|
|
360
|
+
"accountAuthenticated"
|
|
361
|
+
]
|
|
331
362
|
}
|
|
332
363
|
}
|
|
333
364
|
},
|
|
@@ -338,9 +369,15 @@
|
|
|
338
369
|
"status": "executable",
|
|
339
370
|
"block": "SignUpPage1",
|
|
340
371
|
"dataShape": "SignUpPage1Data & AccountAuthResult",
|
|
341
|
-
"events": [
|
|
372
|
+
"events": [
|
|
373
|
+
"submit",
|
|
374
|
+
"signIn"
|
|
375
|
+
],
|
|
342
376
|
"state": "controlled",
|
|
343
|
-
"requirements": [
|
|
377
|
+
"requirements": [
|
|
378
|
+
"accountCustomer",
|
|
379
|
+
"accountAuthenticated"
|
|
380
|
+
]
|
|
344
381
|
}
|
|
345
382
|
}
|
|
346
383
|
},
|
|
@@ -351,9 +388,14 @@
|
|
|
351
388
|
"status": "executable",
|
|
352
389
|
"block": "OrderHistory2",
|
|
353
390
|
"dataShape": "AccountOrderView[] & OrderHistory2Labels",
|
|
354
|
-
"events": [
|
|
391
|
+
"events": [
|
|
392
|
+
"viewDetails"
|
|
393
|
+
],
|
|
355
394
|
"state": "controlled",
|
|
356
|
-
"requirements": [
|
|
395
|
+
"requirements": [
|
|
396
|
+
"accountCustomer",
|
|
397
|
+
"accountAuthenticated"
|
|
398
|
+
]
|
|
357
399
|
},
|
|
358
400
|
"OrderHistory1": {
|
|
359
401
|
"status": "held",
|
|
@@ -362,7 +404,10 @@
|
|
|
362
404
|
"dataShape": "OrderHistory1Order[]",
|
|
363
405
|
"events": [],
|
|
364
406
|
"state": "controlled",
|
|
365
|
-
"requirements": [
|
|
407
|
+
"requirements": [
|
|
408
|
+
"accountCustomer",
|
|
409
|
+
"accountAuthenticated"
|
|
410
|
+
]
|
|
366
411
|
}
|
|
367
412
|
}
|
|
368
413
|
},
|
|
@@ -375,24 +420,32 @@
|
|
|
375
420
|
"dataShape": "BreadcrumbItemData[]",
|
|
376
421
|
"events": [],
|
|
377
422
|
"state": "uncontrolled",
|
|
378
|
-
"requirements": [
|
|
423
|
+
"requirements": [
|
|
424
|
+
"categoryBreadcrumb"
|
|
425
|
+
]
|
|
379
426
|
}
|
|
380
427
|
}
|
|
381
428
|
}
|
|
382
429
|
},
|
|
383
430
|
"capabilities": {
|
|
384
431
|
"category.search.apply": {
|
|
385
|
-
"requirements": [
|
|
432
|
+
"requirements": [
|
|
433
|
+
"adapter.getCatalogProducts(query).text"
|
|
434
|
+
],
|
|
386
435
|
"verification": "unverified",
|
|
387
436
|
"owner": "storefront-catalog-search-filters"
|
|
388
437
|
},
|
|
389
438
|
"category.filter.apply": {
|
|
390
|
-
"requirements": [
|
|
439
|
+
"requirements": [
|
|
440
|
+
"adapter.getProducts(query)"
|
|
441
|
+
],
|
|
391
442
|
"verification": "unverified",
|
|
392
443
|
"owner": "storefront-catalog-search-filters"
|
|
393
444
|
},
|
|
394
445
|
"category.price.range": {
|
|
395
|
-
"requirements": [
|
|
446
|
+
"requirements": [
|
|
447
|
+
"adapter.getAvailableFilters(query).priceRange"
|
|
448
|
+
],
|
|
396
449
|
"verification": "unverified",
|
|
397
450
|
"owner": "storefront-catalog-search-filters"
|
|
398
451
|
}
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"additionalProperties": false,
|
|
19
19
|
"properties": {
|
|
20
20
|
"default": { "type": "string", "minLength": 1 },
|
|
21
|
+
"legacyAliases": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": { "type": "string", "minLength": 1 }
|
|
24
|
+
},
|
|
21
25
|
"variants": {
|
|
22
26
|
"type": "object",
|
|
23
27
|
"additionalProperties": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
{
|
|
60
60
|
"name": "benefits",
|
|
61
61
|
"mvp": true,
|
|
62
|
-
"description": "Bounded editorial benefits feature that mounts at the home benefits slot; config selects the
|
|
62
|
+
"description": "Bounded editorial benefits feature that mounts at the home benefits slot; config selects the canonical Feature block's presentation (compact -> cards, detailed -> split) while the item content stays user-owned.",
|
|
63
63
|
"views": [],
|
|
64
64
|
"state": [],
|
|
65
65
|
"handlers": [],
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"presentation": { "type": "string", "enum": ["compact", "detailed"], "default": "compact" }
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"presentations": { "compact": "
|
|
74
|
+
"presentations": { "compact": "cards", "detailed": "split" },
|
|
75
75
|
"mounts": [{ "id": "home-benefits", "host": "home", "slot": "benefits" }],
|
|
76
76
|
"surfaces": []
|
|
77
77
|
},
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"adapter": { "needs": ["getRelatedProducts"], "fallback": "catalog" },
|
|
156
156
|
"config": { "type": "object", "additionalProperties": false, "properties": {} },
|
|
157
157
|
"surfaces": [
|
|
158
|
-
{ "host": "product", "slot": "product.related", "element": "
|
|
158
|
+
{ "host": "product", "slot": "product.related", "element": "ProductGrid" }
|
|
159
159
|
]
|
|
160
160
|
}
|
|
161
161
|
]
|