@wix/editor-react-components 1.2333.0 → 1.2335.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.
@@ -477,7 +477,7 @@ const Repeater = (props) => {
477
477
  {
478
478
  role: "listitem",
479
479
  className: clsx(semanticClassNames.item, styles.item),
480
- children: renderItem(item2, index)
480
+ children: renderItem(item2, index, items.length)
481
481
  },
482
482
  item2
483
483
  )),
@@ -8,7 +8,7 @@ export interface RepeaterProps {
8
8
  className?: string;
9
9
  direction?: Direction;
10
10
  a11y?: A11y;
11
- renderItem?: (itemId: string, itemIndex: number) => React.JSX.Element;
11
+ renderItem?: (itemId: string, itemIndex: number, itemLength: number) => React.JSX.Element;
12
12
  items?: Array<string>;
13
13
  onLoadMore?: () => Promise<void>;
14
14
  emptyState?: EmptyState;
@@ -392,14 +392,14 @@ const ARIA_LABEL_NAMESPACE = "ariaLabels";
392
392
  const translationsKeys = {
393
393
  menuNavAriaLabel: "dropDownMenu_AriaLabel_TopLevel_SiteNavigation",
394
394
  dropdownButtonAriaLabel: "menu_dropdown_chevron_button_aria_label",
395
- hamburgerOpenButtonAriaLabel: "Mobile_Hamburger_Menu_AriaLabel_Open",
396
- hamburgerCloseButtonAriaLabel: "Mobile_Hamburger_Menu_AriaLabel_Close"
395
+ hamburgerOpenButtonAriaLabel: "menu_hamburger_open_button_aria_label",
396
+ hamburgerCloseButtonAriaLabel: "menu_hamburger_close_button_aria_label"
397
397
  };
398
398
  const defaultTranslations = {
399
399
  menuNavAriaLabel: "Site",
400
400
  dropdownButtonAriaLabel: "More pages",
401
- hamburgerOpenButtonAriaLabel: "Open navigation menu",
402
- hamburgerCloseButtonAriaLabel: "Close navigation menu"
401
+ hamburgerOpenButtonAriaLabel: "Menu",
402
+ hamburgerCloseButtonAriaLabel: "Close Menu"
403
403
  };
404
404
  const MenuParts = {
405
405
  Navbar: "navbar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2333.0",
3
+ "version": "1.2335.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -197,5 +197,5 @@
197
197
  "registry": "https://registry.npmjs.org/",
198
198
  "access": "public"
199
199
  },
200
- "falconPackageHash": "2b724ee42a146631e4fd128be150e523cacc495a9d4106acd0220cb3"
200
+ "falconPackageHash": "c8c23edf1031729b303e0e74b719714eb0a7ddc96da424f451f8d09c"
201
201
  }