@bestcheckout/dynamic-component-cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +525 -12
- package/package.json +14 -10
- package/skills/checkout-theme-dynamic-development/SKILL.md +14 -0
- package/skills/checkout-theme-dynamic-development/agents/openai.yaml +3 -0
- package/skills/checkout-theme-dynamic-development/references/behaviors.json +1214 -0
- package/skills/checkout-theme-dynamic-development/references/cli-development.md +43 -0
- package/skills/checkout-theme-dynamic-development/references/component-catalog.json +5172 -0
- package/skills/checkout-theme-dynamic-development/references/workflow.md +114 -0
- package/src/core/build.mjs +62 -46
- package/src/core/doctor.mjs +14 -2
- package/src/core/project.mjs +10 -7
- package/src/core/server.mjs +16 -3
- package/src/core/source-bundle.mjs +135 -0
- package/src/protocol/validation.mjs +57 -1
- package/templates/starter/README.md +6 -0
- package/types/index.d.ts +182 -9
|
@@ -0,0 +1,1214 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli_version": "0.1.1",
|
|
3
|
+
"runtime_types_sha256": "a7c3002fbb392932ea99689c73d366d28fecb3b11b0bfd633f85c5e1e7a59212",
|
|
4
|
+
"schema_version": 1,
|
|
5
|
+
"profiles": [
|
|
6
|
+
{
|
|
7
|
+
"section_type": "announcementBar",
|
|
8
|
+
"name": "Announcement Bar",
|
|
9
|
+
"page_types": [
|
|
10
|
+
"checkout",
|
|
11
|
+
"thankyou",
|
|
12
|
+
"upsell",
|
|
13
|
+
"downsell"
|
|
14
|
+
],
|
|
15
|
+
"owner": "section-and-host",
|
|
16
|
+
"settings_contract": {
|
|
17
|
+
"component_type": "announcementBar",
|
|
18
|
+
"source": "component-catalog.json",
|
|
19
|
+
"block_types": [
|
|
20
|
+
"announcementItem"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"behaviors": [
|
|
24
|
+
{
|
|
25
|
+
"id": "messages",
|
|
26
|
+
"outcome": "Show enabled message Blocks and preserve configured order.",
|
|
27
|
+
"requirement": "required"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "rotate",
|
|
31
|
+
"condition": "autoRotate is enabled and multiple messages exist",
|
|
32
|
+
"outcome": "Advance messages at the configured interval; cancel timers on unmount.",
|
|
33
|
+
"requirement": "conditional"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "navigation",
|
|
37
|
+
"outcome": "Manual navigation and sticky presentation follow settings and device.",
|
|
38
|
+
"requirement": "required"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"invariants": [
|
|
42
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
43
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
44
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
45
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
46
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
47
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
48
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"section_type": "contact",
|
|
53
|
+
"name": "Contact",
|
|
54
|
+
"page_types": [
|
|
55
|
+
"checkout"
|
|
56
|
+
],
|
|
57
|
+
"owner": "section-and-host",
|
|
58
|
+
"settings_contract": {
|
|
59
|
+
"component_type": "contact",
|
|
60
|
+
"source": "component-catalog.json",
|
|
61
|
+
"block_types": []
|
|
62
|
+
},
|
|
63
|
+
"behaviors": [
|
|
64
|
+
{
|
|
65
|
+
"id": "email",
|
|
66
|
+
"outcome": "Read and edit the Host contact email and show validation errors.",
|
|
67
|
+
"requirement": "required"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "login",
|
|
71
|
+
"condition": "Configured sign-in link and Host login capability are available",
|
|
72
|
+
"outcome": "Open the platform login flow and update on account changes; absence is not a successful login.",
|
|
73
|
+
"requirement": "conditional"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"invariants": [
|
|
77
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
78
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
79
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
80
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
81
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
82
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
83
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"section_type": "contactUs",
|
|
88
|
+
"name": "Contact us",
|
|
89
|
+
"page_types": [
|
|
90
|
+
"thankyou"
|
|
91
|
+
],
|
|
92
|
+
"owner": "section-and-host",
|
|
93
|
+
"settings_contract": {
|
|
94
|
+
"component_type": "contactUs",
|
|
95
|
+
"source": "component-catalog.json",
|
|
96
|
+
"block_types": []
|
|
97
|
+
},
|
|
98
|
+
"behaviors": [
|
|
99
|
+
{
|
|
100
|
+
"id": "contact",
|
|
101
|
+
"outcome": "Respect visibility and configured safe support destination with missing-link behavior.",
|
|
102
|
+
"requirement": "required"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"invariants": [
|
|
106
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
107
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
108
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
109
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
110
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
111
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
112
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"section_type": "continueShopping",
|
|
117
|
+
"name": "Continue shopping",
|
|
118
|
+
"page_types": [
|
|
119
|
+
"thankyou"
|
|
120
|
+
],
|
|
121
|
+
"owner": "section-and-host",
|
|
122
|
+
"settings_contract": {
|
|
123
|
+
"component_type": "continueShopping",
|
|
124
|
+
"source": "component-catalog.json",
|
|
125
|
+
"block_types": []
|
|
126
|
+
},
|
|
127
|
+
"behaviors": [
|
|
128
|
+
{
|
|
129
|
+
"id": "navigate",
|
|
130
|
+
"outcome": "Respect visibility and configured/Host shopping destination; report unavailable navigation without guessing.",
|
|
131
|
+
"requirement": "required"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"invariants": [
|
|
135
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
136
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
137
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
138
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
139
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
140
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
141
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"section_type": "countdown",
|
|
146
|
+
"name": "Countdown",
|
|
147
|
+
"page_types": [
|
|
148
|
+
"checkout",
|
|
149
|
+
"upsell",
|
|
150
|
+
"downsell"
|
|
151
|
+
],
|
|
152
|
+
"owner": "section-and-host",
|
|
153
|
+
"settings_contract": {
|
|
154
|
+
"component_type": "countdown",
|
|
155
|
+
"source": "component-catalog.json",
|
|
156
|
+
"block_types": []
|
|
157
|
+
},
|
|
158
|
+
"behaviors": [
|
|
159
|
+
{
|
|
160
|
+
"id": "timer",
|
|
161
|
+
"outcome": "Tick from configured presentation duration without changing checkout or offer validity.",
|
|
162
|
+
"requirement": "required"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "expiry",
|
|
166
|
+
"outcome": "Apply the configured expired behavior and text, including hiding the section.",
|
|
167
|
+
"requirement": "required"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "cleanup",
|
|
171
|
+
"outcome": "Stop timers on unmount and restart correctly after configuration changes.",
|
|
172
|
+
"requirement": "required"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"invariants": [
|
|
176
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
177
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
178
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
179
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
180
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
181
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
182
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"section_type": "cta",
|
|
187
|
+
"name": "CTA",
|
|
188
|
+
"page_types": [
|
|
189
|
+
"checkout"
|
|
190
|
+
],
|
|
191
|
+
"owner": "section-and-host",
|
|
192
|
+
"settings_contract": {
|
|
193
|
+
"component_type": "cta",
|
|
194
|
+
"source": "component-catalog.json",
|
|
195
|
+
"block_types": []
|
|
196
|
+
},
|
|
197
|
+
"behaviors": [
|
|
198
|
+
{
|
|
199
|
+
"id": "submit",
|
|
200
|
+
"outcome": "Run Host validation and submit with the current payment/address/quote; never calculate or submit prices.",
|
|
201
|
+
"requirement": "required"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "pending",
|
|
205
|
+
"outcome": "Prevent duplicate submissions and distinguish blocked, processing, unknown, failed and successful results.",
|
|
206
|
+
"requirement": "required"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "errors",
|
|
210
|
+
"outcome": "Present validation failures and preserve correct focus/continuation behavior.",
|
|
211
|
+
"requirement": "required"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"invariants": [
|
|
215
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
216
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
217
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
218
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
219
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
220
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
221
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"section_type": "delivery",
|
|
226
|
+
"name": "Delivery",
|
|
227
|
+
"page_types": [
|
|
228
|
+
"checkout"
|
|
229
|
+
],
|
|
230
|
+
"owner": "section-and-host",
|
|
231
|
+
"settings_contract": {
|
|
232
|
+
"component_type": "delivery",
|
|
233
|
+
"source": "component-catalog.json",
|
|
234
|
+
"block_types": []
|
|
235
|
+
},
|
|
236
|
+
"behaviors": [
|
|
237
|
+
{
|
|
238
|
+
"id": "fields",
|
|
239
|
+
"outcome": "Edit Host-owned address fields with current country layout, required rules, name order and region options.",
|
|
240
|
+
"requirement": "required"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"id": "saved",
|
|
244
|
+
"condition": "Saved addresses exist",
|
|
245
|
+
"outcome": "Display and select authoritative addresses, preserving selection on failed binding.",
|
|
246
|
+
"requirement": "conditional"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "create",
|
|
250
|
+
"condition": "Host supports saved-address creation",
|
|
251
|
+
"outcome": "Open platform creation; saving updates addresses and selection; cancellation changes neither.",
|
|
252
|
+
"requirement": "conditional"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"id": "edit",
|
|
256
|
+
"condition": "Address canEdit is true",
|
|
257
|
+
"outcome": "Open platform edit; observe saved snapshot, cancellation and failures.",
|
|
258
|
+
"requirement": "conditional"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "delete",
|
|
262
|
+
"condition": "Address canDelete is true",
|
|
263
|
+
"outcome": "Use platform confirmation; handle cancel, failure, selected address and final-address deletion.",
|
|
264
|
+
"requirement": "conditional"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "autocomplete",
|
|
268
|
+
"condition": "Host exposes autocomplete",
|
|
269
|
+
"outcome": "Apply only current suggestions; cancel late results on input or address mode change.",
|
|
270
|
+
"requirement": "conditional"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "shipping",
|
|
274
|
+
"outcome": "Address changes invalidate old shipping/quotes and participate in unified validation.",
|
|
275
|
+
"requirement": "required"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"invariants": [
|
|
279
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
280
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
281
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
282
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
283
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
284
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
285
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"section_type": "dynamic",
|
|
290
|
+
"name": "Custom component",
|
|
291
|
+
"page_types": [
|
|
292
|
+
"checkout",
|
|
293
|
+
"thankyou",
|
|
294
|
+
"upsell",
|
|
295
|
+
"downsell"
|
|
296
|
+
],
|
|
297
|
+
"owner": "dynamic-resource",
|
|
298
|
+
"settings_contract": {
|
|
299
|
+
"component_type": "dynamic",
|
|
300
|
+
"source": "component-catalog.json",
|
|
301
|
+
"block_types": []
|
|
302
|
+
},
|
|
303
|
+
"behaviors": [
|
|
304
|
+
{
|
|
305
|
+
"id": "source",
|
|
306
|
+
"outcome": "Read and update complete source with revision guards; keep code identity separate from page placement.",
|
|
307
|
+
"requirement": "required"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "lifecycle",
|
|
311
|
+
"outcome": "Preserve settings, clean subscriptions/mounts, isolate sessions, and consume published resources only in Live.",
|
|
312
|
+
"requirement": "required"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "publication",
|
|
316
|
+
"outcome": "Distinguish resource save, Scratch preview, accepted page draft and publication.",
|
|
317
|
+
"requirement": "required"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"invariants": [
|
|
321
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
322
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
323
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
324
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
325
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
326
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
327
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"section_type": "expressCheckout",
|
|
332
|
+
"name": "Express checkout",
|
|
333
|
+
"page_types": [
|
|
334
|
+
"checkout"
|
|
335
|
+
],
|
|
336
|
+
"owner": "section-and-host",
|
|
337
|
+
"settings_contract": {
|
|
338
|
+
"component_type": "expressCheckout",
|
|
339
|
+
"source": "component-catalog.json",
|
|
340
|
+
"block_types": []
|
|
341
|
+
},
|
|
342
|
+
"behaviors": [
|
|
343
|
+
{
|
|
344
|
+
"id": "native",
|
|
345
|
+
"outcome": "Mount only platform Express controls, with one owner and cleanup.",
|
|
346
|
+
"requirement": "required"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"id": "result",
|
|
350
|
+
"outcome": "Respect SDK authorization/cancel/error and Host submission state; mounting is not payment success.",
|
|
351
|
+
"requirement": "required"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
"invariants": [
|
|
355
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
356
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
357
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
358
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
359
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
360
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
361
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"section_type": "facebookComments",
|
|
366
|
+
"name": "Facebook-style Comments",
|
|
367
|
+
"page_types": [
|
|
368
|
+
"checkout",
|
|
369
|
+
"thankyou",
|
|
370
|
+
"upsell",
|
|
371
|
+
"downsell"
|
|
372
|
+
],
|
|
373
|
+
"owner": "section-and-host",
|
|
374
|
+
"settings_contract": {
|
|
375
|
+
"component_type": "facebookComments",
|
|
376
|
+
"source": "component-catalog.json",
|
|
377
|
+
"block_types": [
|
|
378
|
+
"facebookComment"
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
"behaviors": [
|
|
382
|
+
{
|
|
383
|
+
"id": "comments",
|
|
384
|
+
"outcome": "Preserve comment/reply content and configured reactions; display controls do not imply a social API mutation.",
|
|
385
|
+
"requirement": "required"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"invariants": [
|
|
389
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
390
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
391
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
392
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
393
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
394
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
395
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"section_type": "footer",
|
|
400
|
+
"name": "Footer",
|
|
401
|
+
"page_types": [
|
|
402
|
+
"checkout",
|
|
403
|
+
"thankyou"
|
|
404
|
+
],
|
|
405
|
+
"owner": "section-and-host",
|
|
406
|
+
"settings_contract": {
|
|
407
|
+
"component_type": "footer",
|
|
408
|
+
"source": "component-catalog.json",
|
|
409
|
+
"block_types": [
|
|
410
|
+
"footerBlock"
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
"behaviors": [
|
|
414
|
+
{
|
|
415
|
+
"id": "blocks",
|
|
416
|
+
"outcome": "Render enabled policy/payment/text/social Blocks in persisted order; preserve editing and links.",
|
|
417
|
+
"requirement": "required"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"id": "contact",
|
|
421
|
+
"outcome": "Use configured contact and copyright; missing resources remain empty.",
|
|
422
|
+
"requirement": "required"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"invariants": [
|
|
426
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
427
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
428
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
429
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
430
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
431
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
432
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"section_type": "header",
|
|
437
|
+
"name": "Header",
|
|
438
|
+
"page_types": [
|
|
439
|
+
"checkout",
|
|
440
|
+
"thankyou"
|
|
441
|
+
],
|
|
442
|
+
"owner": "section-and-host",
|
|
443
|
+
"settings_contract": {
|
|
444
|
+
"component_type": "header",
|
|
445
|
+
"source": "component-catalog.json",
|
|
446
|
+
"block_types": []
|
|
447
|
+
},
|
|
448
|
+
"behaviors": [
|
|
449
|
+
{
|
|
450
|
+
"id": "brand",
|
|
451
|
+
"outcome": "Render configured logo, trust and contact content and responsive sizing.",
|
|
452
|
+
"requirement": "required"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"id": "cart",
|
|
456
|
+
"condition": "The page and Host expose cart navigation",
|
|
457
|
+
"outcome": "Open the Host-owned cart destination; Thank You hides Checkout cart actions.",
|
|
458
|
+
"requirement": "conditional"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"invariants": [
|
|
462
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
463
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
464
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
465
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
466
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
467
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
468
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"section_type": "mobileOrderSummary",
|
|
473
|
+
"name": "Order Summary (Mobile)",
|
|
474
|
+
"page_types": [
|
|
475
|
+
"checkout"
|
|
476
|
+
],
|
|
477
|
+
"owner": "section-and-host",
|
|
478
|
+
"settings_contract": {
|
|
479
|
+
"component_type": "mobileOrderSummary",
|
|
480
|
+
"source": "component-catalog.json",
|
|
481
|
+
"block_types": []
|
|
482
|
+
},
|
|
483
|
+
"behaviors": [
|
|
484
|
+
{
|
|
485
|
+
"id": "summary",
|
|
486
|
+
"outcome": "Use the owning Order Summary configuration and shared authoritative totals.",
|
|
487
|
+
"requirement": "required"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"id": "collapse",
|
|
491
|
+
"outcome": "Honor mobile default state, expand/collapse and visible-device selection without duplicating actions.",
|
|
492
|
+
"requirement": "required"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"invariants": [
|
|
496
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
497
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
498
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
499
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
500
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
501
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
502
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
503
|
+
]
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"section_type": "offer",
|
|
507
|
+
"name": "Offer",
|
|
508
|
+
"page_types": [
|
|
509
|
+
"upsell",
|
|
510
|
+
"downsell"
|
|
511
|
+
],
|
|
512
|
+
"owner": "section-and-host",
|
|
513
|
+
"settings_contract": {
|
|
514
|
+
"component_type": "offer",
|
|
515
|
+
"source": "component-catalog.json",
|
|
516
|
+
"block_types": []
|
|
517
|
+
},
|
|
518
|
+
"behaviors": [
|
|
519
|
+
{
|
|
520
|
+
"id": "recommendations",
|
|
521
|
+
"outcome": "Preserve the configured recommendation rules and authoritative ordered recommendations. When replacing the rule provider, transfer its rules to the replacement and delete the old instance; ordinary components do not need to own rules.",
|
|
522
|
+
"requirement": "required"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"id": "quote",
|
|
526
|
+
"outcome": "Match variant/quantity/purchase option and latest quote, ignoring stale responses.",
|
|
527
|
+
"requirement": "required"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"id": "accept",
|
|
531
|
+
"outcome": "Finalize price through Host and accept once; preserve processing, requires_action, pending-order, succeeded, failed and unknown states.",
|
|
532
|
+
"requirement": "required"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"id": "continue",
|
|
536
|
+
"outcome": "Reject/continue only through Host while no transaction is unresolved; recover partial continuation and refresh safely.",
|
|
537
|
+
"requirement": "required"
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"invariants": [
|
|
541
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
542
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
543
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
544
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
545
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
546
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
547
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"section_type": "orderConfirmation",
|
|
552
|
+
"name": "Order confirmation",
|
|
553
|
+
"page_types": [
|
|
554
|
+
"upsell",
|
|
555
|
+
"downsell"
|
|
556
|
+
],
|
|
557
|
+
"owner": "section-and-host",
|
|
558
|
+
"settings_contract": {
|
|
559
|
+
"component_type": "orderConfirmation",
|
|
560
|
+
"source": "component-catalog.json",
|
|
561
|
+
"block_types": []
|
|
562
|
+
},
|
|
563
|
+
"behaviors": [
|
|
564
|
+
{
|
|
565
|
+
"id": "confirmation",
|
|
566
|
+
"outcome": "Display authoritative base-order confirmation and configured branding.",
|
|
567
|
+
"requirement": "required"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"id": "viewOrder",
|
|
571
|
+
"condition": "A safe order destination is available",
|
|
572
|
+
"outcome": "Navigate through the platform destination, without constructing identity from display text.",
|
|
573
|
+
"requirement": "conditional"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"invariants": [
|
|
577
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
578
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
579
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
580
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
581
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
582
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
583
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"section_type": "orderDetails",
|
|
588
|
+
"name": "Order details",
|
|
589
|
+
"page_types": [
|
|
590
|
+
"thankyou"
|
|
591
|
+
],
|
|
592
|
+
"owner": "section-and-host",
|
|
593
|
+
"settings_contract": {
|
|
594
|
+
"component_type": "orderDetails",
|
|
595
|
+
"source": "component-catalog.json",
|
|
596
|
+
"block_types": []
|
|
597
|
+
},
|
|
598
|
+
"behaviors": [
|
|
599
|
+
{
|
|
600
|
+
"id": "details",
|
|
601
|
+
"outcome": "Render only available configured contact, address, shipping, payment and billing data, independently for main/add-on reads.",
|
|
602
|
+
"requirement": "required"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"id": "additional",
|
|
606
|
+
"condition": "The order snapshot supplies additional information with non-empty titles and values",
|
|
607
|
+
"outcome": "Display the authoritative additional information alongside order details; preserve it in custom layouts and refresh/error states.",
|
|
608
|
+
"requirement": "conditional"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"invariants": [
|
|
612
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
613
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
614
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
615
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
616
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
617
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
618
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
619
|
+
]
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"section_type": "orderStatus",
|
|
623
|
+
"name": "Order status",
|
|
624
|
+
"page_types": [
|
|
625
|
+
"thankyou"
|
|
626
|
+
],
|
|
627
|
+
"owner": "section-and-host",
|
|
628
|
+
"settings_contract": {
|
|
629
|
+
"component_type": "orderStatus",
|
|
630
|
+
"source": "component-catalog.json",
|
|
631
|
+
"block_types": []
|
|
632
|
+
},
|
|
633
|
+
"behaviors": [
|
|
634
|
+
{
|
|
635
|
+
"id": "status",
|
|
636
|
+
"outcome": "Read authenticated final order confirmation/status; missing/failed reads never imply failed payment or fabricated success.",
|
|
637
|
+
"requirement": "required"
|
|
638
|
+
}
|
|
639
|
+
],
|
|
640
|
+
"invariants": [
|
|
641
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
642
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
643
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
644
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
645
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
646
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
647
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"section_type": "orderSummary",
|
|
652
|
+
"name": "Order Summary",
|
|
653
|
+
"page_types": [
|
|
654
|
+
"checkout"
|
|
655
|
+
],
|
|
656
|
+
"owner": "section-and-host",
|
|
657
|
+
"settings_contract": {
|
|
658
|
+
"component_type": "orderSummary",
|
|
659
|
+
"source": "component-catalog.json",
|
|
660
|
+
"block_types": [
|
|
661
|
+
"cartLines",
|
|
662
|
+
"coupon",
|
|
663
|
+
"subtotal",
|
|
664
|
+
"discount",
|
|
665
|
+
"shipping",
|
|
666
|
+
"total"
|
|
667
|
+
]
|
|
668
|
+
},
|
|
669
|
+
"behaviors": [
|
|
670
|
+
{
|
|
671
|
+
"id": "blocks",
|
|
672
|
+
"outcome": "Preserve configured enabled cartLines/coupon/subtotal/discount/shipping/total Blocks and ordering.",
|
|
673
|
+
"requirement": "required"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"id": "amounts",
|
|
677
|
+
"outcome": "Use authoritative summary/currency and unavailable-item state; no local Live repricing.",
|
|
678
|
+
"requirement": "required"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"id": "coupon",
|
|
682
|
+
"condition": "Coupon Block is enabled",
|
|
683
|
+
"outcome": "Apply/remove through Host; respect removable, pending, outcomes and refresh failures.",
|
|
684
|
+
"requirement": "conditional"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"id": "responsive",
|
|
688
|
+
"outcome": "Maintain desktop/mobile summary behavior without duplicate mutations.",
|
|
689
|
+
"requirement": "required"
|
|
690
|
+
}
|
|
691
|
+
],
|
|
692
|
+
"invariants": [
|
|
693
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
694
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
695
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
696
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
697
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
698
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
699
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"section_type": "payment",
|
|
704
|
+
"name": "Payment",
|
|
705
|
+
"page_types": [
|
|
706
|
+
"checkout"
|
|
707
|
+
],
|
|
708
|
+
"owner": "section-and-host",
|
|
709
|
+
"settings_contract": {
|
|
710
|
+
"component_type": "payment",
|
|
711
|
+
"source": "component-catalog.json",
|
|
712
|
+
"block_types": []
|
|
713
|
+
},
|
|
714
|
+
"behaviors": [
|
|
715
|
+
{
|
|
716
|
+
"id": "methods",
|
|
717
|
+
"outcome": "Show and select configured supported methods through Host guards.",
|
|
718
|
+
"requirement": "required"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"id": "native",
|
|
722
|
+
"outcome": "Preserve one native secure/action owner, input stability, failed/late mounts and session cleanup.",
|
|
723
|
+
"requirement": "required"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"id": "billing",
|
|
727
|
+
"outcome": "Preserve same-as-shipping and separate billing fields, region rules and validation.",
|
|
728
|
+
"requirement": "required"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"id": "additional",
|
|
732
|
+
"condition": "Host supplies additional payment/order fields",
|
|
733
|
+
"outcome": "Render and validate the platform-owned additional fields.",
|
|
734
|
+
"requirement": "conditional"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"id": "errors",
|
|
738
|
+
"outcome": "Handle loading, unavailable, validation and SDK failure without inventing success or retrying a charge.",
|
|
739
|
+
"requirement": "required"
|
|
740
|
+
}
|
|
741
|
+
],
|
|
742
|
+
"invariants": [
|
|
743
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
744
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
745
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
746
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
747
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
748
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
749
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
750
|
+
]
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"section_type": "paymentIcons",
|
|
754
|
+
"name": "Payment Icons",
|
|
755
|
+
"page_types": [
|
|
756
|
+
"checkout",
|
|
757
|
+
"thankyou",
|
|
758
|
+
"upsell",
|
|
759
|
+
"downsell"
|
|
760
|
+
],
|
|
761
|
+
"owner": "section-and-host",
|
|
762
|
+
"settings_contract": {
|
|
763
|
+
"component_type": "paymentIcons",
|
|
764
|
+
"source": "component-catalog.json",
|
|
765
|
+
"block_types": [
|
|
766
|
+
"paymentIcon"
|
|
767
|
+
]
|
|
768
|
+
},
|
|
769
|
+
"behaviors": [
|
|
770
|
+
{
|
|
771
|
+
"id": "icons",
|
|
772
|
+
"outcome": "Preserve Block order, built-in/custom icon selection, alt text and responsive rows.",
|
|
773
|
+
"requirement": "required"
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
"invariants": [
|
|
777
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
778
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
779
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
780
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
781
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
782
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
783
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
784
|
+
]
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"section_type": "policyLinks",
|
|
788
|
+
"name": "Policy Links",
|
|
789
|
+
"page_types": [
|
|
790
|
+
"checkout",
|
|
791
|
+
"thankyou",
|
|
792
|
+
"upsell",
|
|
793
|
+
"downsell"
|
|
794
|
+
],
|
|
795
|
+
"owner": "section-and-host",
|
|
796
|
+
"settings_contract": {
|
|
797
|
+
"component_type": "policyLinks",
|
|
798
|
+
"source": "component-catalog.json",
|
|
799
|
+
"block_types": []
|
|
800
|
+
},
|
|
801
|
+
"behaviors": [
|
|
802
|
+
{
|
|
803
|
+
"id": "resolve",
|
|
804
|
+
"outcome": "Resolve configured page references to their actual public destinations; never navigate to a resource ID.",
|
|
805
|
+
"requirement": "required"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"id": "shared",
|
|
809
|
+
"outcome": "Read the matching global/checkout footer across all four page families.",
|
|
810
|
+
"requirement": "required"
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"invariants": [
|
|
814
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
815
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
816
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
817
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
818
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
819
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
820
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"section_type": "productUpsell",
|
|
825
|
+
"name": "Product upsell",
|
|
826
|
+
"page_types": [
|
|
827
|
+
"checkout"
|
|
828
|
+
],
|
|
829
|
+
"owner": "section-and-host",
|
|
830
|
+
"settings_contract": {
|
|
831
|
+
"component_type": "productUpsell",
|
|
832
|
+
"source": "component-catalog.json",
|
|
833
|
+
"block_types": []
|
|
834
|
+
},
|
|
835
|
+
"behaviors": [
|
|
836
|
+
{
|
|
837
|
+
"id": "products",
|
|
838
|
+
"outcome": "Resolve configured products/collection and exact variants with availability and display limits.",
|
|
839
|
+
"requirement": "required"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"id": "selection",
|
|
843
|
+
"outcome": "Add/change/remove through Host using the original Section identity; preserve other sources.",
|
|
844
|
+
"requirement": "required"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"id": "restore",
|
|
848
|
+
"outcome": "Restore selected quantities after refresh; pending/error/late results do not create duplicate additions.",
|
|
849
|
+
"requirement": "required"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"id": "defaults",
|
|
853
|
+
"condition": "Paid/default-selected configuration is enabled",
|
|
854
|
+
"outcome": "Use the existing controlled configuration and Host initialization; no invented automatic selection.",
|
|
855
|
+
"requirement": "conditional"
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"invariants": [
|
|
859
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
860
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
861
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
862
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
863
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
864
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
865
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
866
|
+
]
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"section_type": "progress",
|
|
870
|
+
"name": "Progress",
|
|
871
|
+
"page_types": [
|
|
872
|
+
"upsell",
|
|
873
|
+
"downsell"
|
|
874
|
+
],
|
|
875
|
+
"owner": "section-and-host",
|
|
876
|
+
"settings_contract": {
|
|
877
|
+
"component_type": "progress",
|
|
878
|
+
"source": "component-catalog.json",
|
|
879
|
+
"block_types": []
|
|
880
|
+
},
|
|
881
|
+
"behaviors": [
|
|
882
|
+
{
|
|
883
|
+
"id": "steps",
|
|
884
|
+
"outcome": "Render configured steps/current page state; presentation cannot advance the purchase flow.",
|
|
885
|
+
"requirement": "required"
|
|
886
|
+
}
|
|
887
|
+
],
|
|
888
|
+
"invariants": [
|
|
889
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
890
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
891
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
892
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
893
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
894
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
895
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
896
|
+
]
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"section_type": "reviewCard",
|
|
900
|
+
"name": "Review card",
|
|
901
|
+
"page_types": [
|
|
902
|
+
"checkout",
|
|
903
|
+
"thankyou",
|
|
904
|
+
"upsell",
|
|
905
|
+
"downsell"
|
|
906
|
+
],
|
|
907
|
+
"owner": "section-and-host",
|
|
908
|
+
"settings_contract": {
|
|
909
|
+
"component_type": "reviewCard",
|
|
910
|
+
"source": "component-catalog.json",
|
|
911
|
+
"block_types": [
|
|
912
|
+
"reviewCardItem"
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
"behaviors": [
|
|
916
|
+
{
|
|
917
|
+
"id": "cards",
|
|
918
|
+
"outcome": "Preserve editable ordered cards, images, author/subtitle and responsive layout.",
|
|
919
|
+
"requirement": "required"
|
|
920
|
+
}
|
|
921
|
+
],
|
|
922
|
+
"invariants": [
|
|
923
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
924
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
925
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
926
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
927
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
928
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
929
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
930
|
+
]
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"section_type": "shippingInsurance",
|
|
934
|
+
"name": "Shipping Insurance",
|
|
935
|
+
"page_types": [
|
|
936
|
+
"checkout"
|
|
937
|
+
],
|
|
938
|
+
"owner": "section-and-host",
|
|
939
|
+
"settings_contract": {
|
|
940
|
+
"component_type": "shippingInsurance",
|
|
941
|
+
"source": "component-catalog.json",
|
|
942
|
+
"block_types": []
|
|
943
|
+
},
|
|
944
|
+
"behaviors": [
|
|
945
|
+
{
|
|
946
|
+
"id": "selection",
|
|
947
|
+
"outcome": "Read/select the configured insurance through Host using original Section identity.",
|
|
948
|
+
"requirement": "required"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"id": "pricing",
|
|
952
|
+
"outcome": "Keep configured pricing/default selection and server totals authoritative; preserve cancellation and refresh restoration.",
|
|
953
|
+
"requirement": "required"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"invariants": [
|
|
957
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
958
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
959
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
960
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
961
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
962
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
963
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
964
|
+
]
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"section_type": "shippingMethod",
|
|
968
|
+
"name": "Shipping Method",
|
|
969
|
+
"page_types": [
|
|
970
|
+
"checkout"
|
|
971
|
+
],
|
|
972
|
+
"owner": "section-and-host",
|
|
973
|
+
"settings_contract": {
|
|
974
|
+
"component_type": "shippingMethod",
|
|
975
|
+
"source": "component-catalog.json",
|
|
976
|
+
"block_types": []
|
|
977
|
+
},
|
|
978
|
+
"behaviors": [
|
|
979
|
+
{
|
|
980
|
+
"id": "states",
|
|
981
|
+
"outcome": "Distinguish waiting_address/loading/available/empty/error and current selection.",
|
|
982
|
+
"requirement": "required"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"id": "selection",
|
|
986
|
+
"outcome": "Select through Host, observe authoritative rates/summary, reject stale responses and duplicate pending changes.",
|
|
987
|
+
"requirement": "required"
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
"invariants": [
|
|
991
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
992
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
993
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
994
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
995
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
996
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
997
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
998
|
+
]
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"section_type": "staticContent",
|
|
1002
|
+
"name": "Static content",
|
|
1003
|
+
"page_types": [
|
|
1004
|
+
"checkout",
|
|
1005
|
+
"thankyou",
|
|
1006
|
+
"upsell",
|
|
1007
|
+
"downsell"
|
|
1008
|
+
],
|
|
1009
|
+
"owner": "section-and-host",
|
|
1010
|
+
"settings_contract": {
|
|
1011
|
+
"component_type": "staticContent",
|
|
1012
|
+
"source": "component-catalog.json",
|
|
1013
|
+
"block_types": []
|
|
1014
|
+
},
|
|
1015
|
+
"behaviors": [
|
|
1016
|
+
{
|
|
1017
|
+
"id": "content",
|
|
1018
|
+
"outcome": "Render configured content, icon and safe link with empty-state and alignment behavior.",
|
|
1019
|
+
"requirement": "required"
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"invariants": [
|
|
1023
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
1024
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
1025
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
1026
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
1027
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
1028
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
1029
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
1030
|
+
]
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"section_type": "testimonials",
|
|
1034
|
+
"name": "Testimonials",
|
|
1035
|
+
"page_types": [
|
|
1036
|
+
"checkout",
|
|
1037
|
+
"thankyou",
|
|
1038
|
+
"upsell",
|
|
1039
|
+
"downsell"
|
|
1040
|
+
],
|
|
1041
|
+
"owner": "section-and-host",
|
|
1042
|
+
"settings_contract": {
|
|
1043
|
+
"component_type": "testimonials",
|
|
1044
|
+
"source": "component-catalog.json",
|
|
1045
|
+
"block_types": [
|
|
1046
|
+
"testimonialItem"
|
|
1047
|
+
]
|
|
1048
|
+
},
|
|
1049
|
+
"behaviors": [
|
|
1050
|
+
{
|
|
1051
|
+
"id": "testimonials",
|
|
1052
|
+
"outcome": "Preserve enabled testimonial Blocks, rich text, rating, author and verified-buyer display settings.",
|
|
1053
|
+
"requirement": "required"
|
|
1054
|
+
}
|
|
1055
|
+
],
|
|
1056
|
+
"invariants": [
|
|
1057
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
1058
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
1059
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
1060
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
1061
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
1062
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
1063
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
1064
|
+
]
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"section_type": "thankYouOrderSummary",
|
|
1068
|
+
"name": "Order Summary",
|
|
1069
|
+
"page_types": [
|
|
1070
|
+
"thankyou"
|
|
1071
|
+
],
|
|
1072
|
+
"owner": "section-and-host",
|
|
1073
|
+
"settings_contract": {
|
|
1074
|
+
"component_type": "thankYouOrderSummary",
|
|
1075
|
+
"source": "component-catalog.json",
|
|
1076
|
+
"block_types": [
|
|
1077
|
+
"cartLines",
|
|
1078
|
+
"subtotal",
|
|
1079
|
+
"discount",
|
|
1080
|
+
"shipping",
|
|
1081
|
+
"total"
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1084
|
+
"behaviors": [
|
|
1085
|
+
{
|
|
1086
|
+
"id": "summary",
|
|
1087
|
+
"outcome": "Render configured summary Blocks with authoritative main/add-on order lines and totals.",
|
|
1088
|
+
"requirement": "required"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"id": "readonly",
|
|
1092
|
+
"outcome": "Expose no coupon, quantity, payment or other order mutation.",
|
|
1093
|
+
"requirement": "required"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"id": "refresh",
|
|
1097
|
+
"outcome": "Preserve separate read/error/stale states and platform refresh behavior.",
|
|
1098
|
+
"requirement": "required"
|
|
1099
|
+
}
|
|
1100
|
+
],
|
|
1101
|
+
"invariants": [
|
|
1102
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
1103
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
1104
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
1105
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
1106
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
1107
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
1108
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
1109
|
+
]
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"section_type": "trustBadges",
|
|
1113
|
+
"name": "Trust badges",
|
|
1114
|
+
"page_types": [
|
|
1115
|
+
"checkout",
|
|
1116
|
+
"thankyou",
|
|
1117
|
+
"upsell",
|
|
1118
|
+
"downsell"
|
|
1119
|
+
],
|
|
1120
|
+
"owner": "section-and-host",
|
|
1121
|
+
"settings_contract": {
|
|
1122
|
+
"component_type": "trustBadges",
|
|
1123
|
+
"source": "component-catalog.json",
|
|
1124
|
+
"block_types": [
|
|
1125
|
+
"trustBadge"
|
|
1126
|
+
]
|
|
1127
|
+
},
|
|
1128
|
+
"behaviors": [
|
|
1129
|
+
{
|
|
1130
|
+
"id": "mode",
|
|
1131
|
+
"outcome": "Respect full-image versus Block mode and preserve all enabled badge content and layout.",
|
|
1132
|
+
"requirement": "required"
|
|
1133
|
+
}
|
|
1134
|
+
],
|
|
1135
|
+
"invariants": [
|
|
1136
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
1137
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
1138
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
1139
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
1140
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
1141
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
1142
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
1143
|
+
]
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"section_type": "trustpilotReview",
|
|
1147
|
+
"name": "Trustpilot Review",
|
|
1148
|
+
"page_types": [
|
|
1149
|
+
"checkout",
|
|
1150
|
+
"thankyou",
|
|
1151
|
+
"upsell",
|
|
1152
|
+
"downsell"
|
|
1153
|
+
],
|
|
1154
|
+
"owner": "section-and-host",
|
|
1155
|
+
"settings_contract": {
|
|
1156
|
+
"component_type": "trustpilotReview",
|
|
1157
|
+
"source": "component-catalog.json",
|
|
1158
|
+
"block_types": [
|
|
1159
|
+
"trustpilotReviewItem"
|
|
1160
|
+
]
|
|
1161
|
+
},
|
|
1162
|
+
"behaviors": [
|
|
1163
|
+
{
|
|
1164
|
+
"id": "reviews",
|
|
1165
|
+
"outcome": "Render configured rating/review Blocks without claiming external review verification.",
|
|
1166
|
+
"requirement": "required"
|
|
1167
|
+
}
|
|
1168
|
+
],
|
|
1169
|
+
"invariants": [
|
|
1170
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
1171
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
1172
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
1173
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
1174
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
1175
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
1176
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
1177
|
+
]
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"section_type": "vipClub",
|
|
1181
|
+
"name": "VIP Club",
|
|
1182
|
+
"page_types": [
|
|
1183
|
+
"checkout"
|
|
1184
|
+
],
|
|
1185
|
+
"owner": "section-and-host",
|
|
1186
|
+
"settings_contract": {
|
|
1187
|
+
"component_type": "vipClub",
|
|
1188
|
+
"source": "component-catalog.json",
|
|
1189
|
+
"block_types": []
|
|
1190
|
+
},
|
|
1191
|
+
"behaviors": [
|
|
1192
|
+
{
|
|
1193
|
+
"id": "selection",
|
|
1194
|
+
"outcome": "Read/select the configured VIP benefit through Host using original Section identity.",
|
|
1195
|
+
"requirement": "required"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"id": "pricing",
|
|
1199
|
+
"outcome": "Keep membership pricing/default selection and server totals authoritative; no ordinary product-add substitute.",
|
|
1200
|
+
"requirement": "required"
|
|
1201
|
+
}
|
|
1202
|
+
],
|
|
1203
|
+
"invariants": [
|
|
1204
|
+
"Preserve authoritative configuration and business ownership. Component boundaries do not imply one-to-one function mapping.",
|
|
1205
|
+
"All applicable behaviors are inherited unless the user explicitly requests a functional change.",
|
|
1206
|
+
"Check the page task and dependencies between affected functions as well as each component profile; a combined component may need several profiles, while other functions can remain elsewhere on the page.",
|
|
1207
|
+
"Render loading, empty, error and unavailable states; unknown is not success.",
|
|
1208
|
+
"Preview is simulated. Browser/Host evidence and live integration evidence are recorded separately.",
|
|
1209
|
+
"Changing code, settings, blocks or Runtime capabilities requires rechecking the affected behavior.",
|
|
1210
|
+
"SSR never executes a dynamic module; Host data and hydration ownership remain unchanged."
|
|
1211
|
+
]
|
|
1212
|
+
}
|
|
1213
|
+
]
|
|
1214
|
+
}
|