@vectoriox/iox-ui 5.101.0 → 5.103.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 +331 -6
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +523 -24
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +2 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +34 -2
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +30 -2
- package/package.json +1 -1
- package/src/commerce-core/cart-transport.ts +7 -1
- package/src/commerce-core/cart.ts +28 -2
- package/src/commerce-core/coupons.ts +186 -0
- package/src/commerce-core/order-snapshot.ts +3 -0
- package/src/commerce-core/public-api.ts +4 -1
- package/src/commerce-core/recovery.ts +381 -0
- package/src/commerce-core/site-checkout.ts +46 -6
- package/src/composite-core/account.ts +2 -2
- package/src/generation-core/audit-site.ts +38 -1
- package/src/generation-core/site-build-run.ts +3 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readOwnedTrait, writeOwnedTrait, ROW_INDEX_ATTRIBUTE, elementStyleById, switchElementStyle, LinkType, setColorScheme, COLOR_SCHEME_TRAIT, repeatedRowIndex, roleClass as roleClass$1, headerBehaviourOf, HeaderTrait, headerEdgeOf, headerStaysAtTop, writeFieldError } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
export { ROW_INDEX_ATTRIBUTE } from '@vectoriox/iox-ui/design-core';
|
|
3
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
|
-
import { SignInProvider, signInWord, signInLanguage, SignInLanguage, SignInWord, EMAIL_CODE_TTL_MINUTES, SIGN_IN_PROVIDERS, signInProviderName, CUSTOMER_SLOT, signInProviderMarkUri, signInRefusal, SignInSlot, siteAuthErrorCode, normalizeSignInEmail, SiteSignInRefusalCode, normalizeEmailCode, isEmailCodeShape, customerSlotOf, customerDisplayName } from '@vectoriox/iox-ui/identity-core';
|
|
4
|
+
import { SignInProvider, signInWord, signInLanguage, SignInLanguage, SignInWord, EMAIL_CODE_TTL_MINUTES, SIGN_IN_PROVIDERS, signInProviderName, ACCOUNT_PATH, CUSTOMER_SLOT, signInProviderMarkUri, signInRefusal, SignInSlot, siteAuthErrorCode, normalizeSignInEmail, SiteSignInRefusalCode, normalizeEmailCode, isEmailCodeShape, customerSlotOf, customerDisplayName } from '@vectoriox/iox-ui/identity-core';
|
|
5
5
|
|
|
6
6
|
/** What a recipe asks its consumer to create: a NEW node of `type`, the way that consumer creates one
|
|
7
7
|
* (the builder's `createConfig`, generation-core's `createSerializedNode`), with these props and this
|
|
@@ -5932,7 +5932,7 @@ function buildAccountMenuRecipe(create, lang = 'en') {
|
|
|
5932
5932
|
writeProp(menu, 'placement', 'below');
|
|
5933
5933
|
writeProp(menu, 'ariaLabel', t.title);
|
|
5934
5934
|
const greeting = words(create, 'account-menu-greeting', AccountRole.MenuGreeting, Style.Body, t.greeting, 'Greeting', { ...WORDS, margin: '0px 0px 6px 0px', fontWeight: '600' });
|
|
5935
|
-
const orders = recipePart(create, 'account-orders', 'ButtonBlock', AccountRole.Orders, Style.Ghost, { tag: 'a', linkType: 'external', href:
|
|
5935
|
+
const orders = recipePart(create, 'account-orders', 'ButtonBlock', AccountRole.Orders, Style.Ghost, { tag: 'a', linkType: 'external', href: ACCOUNT_PATH, target: '_self' }, 'Your orders', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
5936
5936
|
orders.children = [words(create, 'account-orders-label', null, Style.Label, t.orders, 'Text', WORDS, 'span')];
|
|
5937
5937
|
const signOut = labelled(create, 'account-sign-out', AccountRole.SignOut, Style.Ghost, t.signOut, 'Sign out', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
5938
5938
|
onClick(signOut, 'signOut');
|