@liquidcommerce/elements-sdk 2.6.0-beta.110 → 2.6.0-beta.111

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.
@@ -22,7 +22,7 @@ export declare class ProductCommands extends BaseCommand {
22
22
  openProductDrawer(productId: string, contentType: IProductDrawerContentConfig['type'], data?: Record<string, any>, trigger?: HTMLElement | null): Promise<void>;
23
23
  closeProductDrawer(productId: string): Promise<void>;
24
24
  rerenderAllProducts(): Promise<void>;
25
- addToCart(productId: string, params: AddItemParams, trigger?: HTMLElement | null): Promise<void>;
25
+ addToCart(productId: string, params: AddItemParams, trigger?: HTMLElement | null, triggerFallback?: () => HTMLElement | null): Promise<void>;
26
26
  addPresaleToCart(productId: string, params: AddItemParams): Promise<void>;
27
27
  productDataForEventFromStore(identifier: string): IBaseProductEventData;
28
28
  }
@@ -22,7 +22,7 @@ export declare class ProductListCommands extends BaseCommand {
22
22
  getItemsPerPage(slug: string): number;
23
23
  updatePagination(navigation: INavigationResponse | undefined): IPagination;
24
24
  createInitialPagination(): IPagination;
25
- addToCart(slug: string, productId: string, params: AddItemParams, trigger?: HTMLElement | null): Promise<void>;
25
+ addToCart(slug: string, productId: string, params: AddItemParams, trigger?: HTMLElement | null, triggerFallback?: () => HTMLElement | null): Promise<void>;
26
26
  selectSize(slug: string, productId: string, sizeId: string): Promise<void>;
27
27
  changeFulfillmentType: (slug: string, productId: string, newFulfillmentType: FulfillmentType) => Promise<void>;
28
28
  selectFulfillment: (slug: string, productId: string, selectedFulfillmentId: string) => Promise<void>;
@@ -44,7 +44,12 @@ retailer closes the panel — arrow keys move focus and `Enter` commits.
44
44
 
45
45
  ### Focus management
46
46
 
47
- - **Opening an overlay** moves focus into it and remembers the control that opened it.
47
+ - **Opening an overlay** moves focus onto the first control inside it the panel's close
48
+ button, the address field — and remembers the control that opened it. Focus lands on a
49
+ control rather than on the panel itself so the focus ring shows a sighted keyboard user
50
+ where they now are; the dialog's role and name are announced either way as focus crosses
51
+ into it. Views whose point is the text at the top of them (the order confirmation) focus
52
+ that heading instead.
48
53
  - **Closing** returns focus to that control, even when a re-render has replaced it.
49
54
  - **While an overlay is open** focus is trapped inside it and the rest of the page is `inert` and
50
55
  `aria-hidden`, so a screen reader cannot wander behind the dialog.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "LiquidCommerce Elements SDK",
4
4
  "license": "UNLICENSED",
5
5
  "author": "LiquidCommerce Team",
6
- "version": "2.6.0-beta.110",
6
+ "version": "2.6.0-beta.111",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",