@vectoriox/iox-ui 5.96.2 → 5.98.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/commerce-core/index.d.ts +274 -2
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +312 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +2 -8
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1114 -223
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +115 -42
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +515 -17
- package/harness-core/index.d.ts +66 -6
- package/package.json +1 -1
- package/src/commerce-core/public-api.ts +2 -0
- package/src/commerce-core/shipping.ts +22 -0
- package/src/commerce-core/site-checkout.ts +406 -0
- package/src/commerce-core/variants.ts +20 -0
- package/src/composite-core/shop-runtime.ts +2 -8
- package/src/generation-core/audit-site.ts +8 -0
- package/src/generation-core/compose-site.ts +130 -4
- package/src/generation-core/nav-shape.ts +4 -2
- package/src/generation-core/patterns.ts +25 -1
- package/src/generation-core/pictures.ts +1 -1
- package/src/generation-core/plan-derived.ts +10 -5
- package/src/generation-core/plan-edits.ts +8 -7
- package/src/generation-core/plan-wire.ts +59 -10
- package/src/generation-core/plan-words.ts +18 -1
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/shop-plan.ts +165 -0
- package/src/generation-core/showcase.ts +29 -4
- package/src/generation-core/site-build-run.ts +25 -0
- package/src/generation-core/site-plan.model.ts +49 -1
- package/src/generation-core/site-spec.generated.ts +330 -2
- package/src/generation-core/stock-photos.ts +19 -2
- package/src/generation-core/validate-site-plan.ts +146 -8
- package/src/harness-core/business-types.ts +13 -0
- package/src/harness-core/harness-spec.generated.ts +69 -39
- package/src/harness-core/needs.ts +30 -1
- package/src/harness-core/site-reading.ts +8 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readOwnedTrait, writeOwnedTrait, ROW_INDEX_ATTRIBUTE, elementStyleById, switchElementStyle, LinkType, setColorScheme, COLOR_SCHEME_TRAIT, repeatedRowIndex, roleClass as roleClass$1, headerBehaviourOf, HeaderTrait, headerEdgeOf, headerStaysAtTop } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
export { ROW_INDEX_ATTRIBUTE } from '@vectoriox/iox-ui/design-core';
|
|
3
|
-
import { shopWord, ShopWord, emptyCartView, QuantityStep, stepQuantity, ShopSlot, productOptions, productVariants, defaultChoice, findVariant, quantityBounds, chooseValue, clampQuantity,
|
|
3
|
+
import { shopWord, ShopWord, emptyCartView, QuantityStep, stepQuantity, ShopSlot, productOptions, productVariants, defaultChoice, findVariant, quantityBounds, chooseValue, clampQuantity, variantSlotOf, optionValueStates, canStep, cartIssueWords, formatMoney, CartTransportError, CartTransportErrorCode, CART_TRANSPORT_ERROR_LABELS } from '@vectoriox/iox-ui/commerce-core';
|
|
4
4
|
|
|
5
5
|
/** What a recipe asks its consumer to create: a NEW node of `type`, the way that consumer creates one
|
|
6
6
|
* (the builder's `createConfig`, generation-core's `createSerializedNode`), with these props and this
|
|
@@ -5430,13 +5430,7 @@ class ShopRuntime {
|
|
|
5430
5430
|
this.stamp();
|
|
5431
5431
|
}
|
|
5432
5432
|
publishVariant(state) {
|
|
5433
|
-
|
|
5434
|
-
this.publish(ShopSlot.Variant, variant ? {
|
|
5435
|
-
...variant,
|
|
5436
|
-
productId: state.product._id,
|
|
5437
|
-
words: variantWords(variant.choice, state.options),
|
|
5438
|
-
quantity: state.quantity,
|
|
5439
|
-
} : null);
|
|
5433
|
+
this.publish(ShopSlot.Variant, variantSlotOf(state.product, state.choice, state.quantity));
|
|
5440
5434
|
}
|
|
5441
5435
|
publish(slot, value) {
|
|
5442
5436
|
const json = JSON.stringify(value ?? null);
|