@xsolla/xui-context-menu 0.158.0 → 0.159.0-pr308.1779636217

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.
@@ -28,6 +28,8 @@ interface ContextMenuOptionItemProps {
28
28
  onSelect?: () => void;
29
29
  onCheckedChange?: (checked: boolean) => void;
30
30
  "data-testid"?: string;
31
+ /** Test ID for testing frameworks */
32
+ testID?: string;
31
33
  }
32
34
  interface ContextMenuSearchItemProps {
33
35
  type: "search";
@@ -38,6 +40,8 @@ interface ContextMenuSearchItemProps {
38
40
  autoFocus?: boolean;
39
41
  "aria-label"?: string;
40
42
  "data-testid"?: string;
43
+ /** Test ID for testing frameworks */
44
+ testID?: string;
41
45
  }
42
46
  interface ContextMenuHeadingItemProps {
43
47
  type: "heading";
@@ -45,11 +49,15 @@ interface ContextMenuHeadingItemProps {
45
49
  label: ReactNode;
46
50
  description?: ReactNode;
47
51
  "data-testid"?: string;
52
+ /** Test ID for testing frameworks */
53
+ testID?: string;
48
54
  }
49
55
  interface ContextMenuDividerItemProps {
50
56
  type: "divider";
51
57
  size?: ContextMenuSize;
52
58
  "data-testid"?: string;
59
+ /** Test ID for testing frameworks */
60
+ testID?: string;
53
61
  }
54
62
  type ContextMenuItemProps = ContextMenuOptionItemProps | ContextMenuSearchItemProps | ContextMenuHeadingItemProps | ContextMenuDividerItemProps;
55
63
  type ContextMenuPanelType = "list" | "phone" | "checkbox" | "status" | "brandLogo" | "radio" | "avatar";
@@ -78,6 +86,8 @@ interface ContextMenuProps {
78
86
  onSelect?: (item: ContextMenuOptionItemProps) => void;
79
87
  "aria-label"?: string;
80
88
  "data-testid"?: string;
89
+ /** Test ID for testing frameworks */
90
+ testID?: string;
81
91
  }
82
92
  interface ContextMenuCellMeta {
83
93
  type: ContextMenuItemType;
package/native/index.d.ts CHANGED
@@ -28,6 +28,8 @@ interface ContextMenuOptionItemProps {
28
28
  onSelect?: () => void;
29
29
  onCheckedChange?: (checked: boolean) => void;
30
30
  "data-testid"?: string;
31
+ /** Test ID for testing frameworks */
32
+ testID?: string;
31
33
  }
32
34
  interface ContextMenuSearchItemProps {
33
35
  type: "search";
@@ -38,6 +40,8 @@ interface ContextMenuSearchItemProps {
38
40
  autoFocus?: boolean;
39
41
  "aria-label"?: string;
40
42
  "data-testid"?: string;
43
+ /** Test ID for testing frameworks */
44
+ testID?: string;
41
45
  }
42
46
  interface ContextMenuHeadingItemProps {
43
47
  type: "heading";
@@ -45,11 +49,15 @@ interface ContextMenuHeadingItemProps {
45
49
  label: ReactNode;
46
50
  description?: ReactNode;
47
51
  "data-testid"?: string;
52
+ /** Test ID for testing frameworks */
53
+ testID?: string;
48
54
  }
49
55
  interface ContextMenuDividerItemProps {
50
56
  type: "divider";
51
57
  size?: ContextMenuSize;
52
58
  "data-testid"?: string;
59
+ /** Test ID for testing frameworks */
60
+ testID?: string;
53
61
  }
54
62
  type ContextMenuItemProps = ContextMenuOptionItemProps | ContextMenuSearchItemProps | ContextMenuHeadingItemProps | ContextMenuDividerItemProps;
55
63
  type ContextMenuPanelType = "list" | "phone" | "checkbox" | "status" | "brandLogo" | "radio" | "avatar";
@@ -78,6 +86,8 @@ interface ContextMenuProps {
78
86
  onSelect?: (item: ContextMenuOptionItemProps) => void;
79
87
  "aria-label"?: string;
80
88
  "data-testid"?: string;
89
+ /** Test ID for testing frameworks */
90
+ testID?: string;
81
91
  }
82
92
  interface ContextMenuCellMeta {
83
93
  type: ContextMenuItemType;