@momo-kits/suggest-action 0.79.6-beta.1 → 0.79.6-beta.10
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/package.json +1 -1
- package/types.ts +31 -0
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -1,12 +1,43 @@
|
|
|
1
1
|
export type SuggestActionProps = {
|
|
2
|
+
/**
|
|
3
|
+
* The name of the action to be displayed.
|
|
4
|
+
*/
|
|
2
5
|
name: string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Optional. A callback function that is triggered when the action suggestion is closed.
|
|
9
|
+
*/
|
|
3
10
|
onClose?: () => void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Optional. A callback function that is triggered when the action button is pressed.
|
|
14
|
+
*/
|
|
4
15
|
onPressButton?: () => void;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The image associated with the action, typically displayed as part of the suggestion.
|
|
19
|
+
*/
|
|
5
20
|
image: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Optional. Specifies the type of the action, such as adding to favorites, adding to device, or sharing.
|
|
24
|
+
* Can be one of 'addToFavorite', 'addToDevice', or 'share'.
|
|
25
|
+
*/
|
|
6
26
|
type?: 'addToFavorite' | 'addToDevice' | 'share';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Optional. Specifies the bottom margin for the component. Useful for positioning or spacing within a layout.
|
|
30
|
+
*/
|
|
7
31
|
bottom?: number;
|
|
8
32
|
};
|
|
9
33
|
|
|
34
|
+
/**
|
|
35
|
+
* A reference type for the SuggestAction component.
|
|
36
|
+
* Allows external control over the visibility of the SuggestAction component.
|
|
37
|
+
*/
|
|
10
38
|
export type SuggestActionRef = {
|
|
39
|
+
/**
|
|
40
|
+
* A method to show the SuggestAction component. Can be called to display the component when needed.
|
|
41
|
+
*/
|
|
11
42
|
show: () => void;
|
|
12
43
|
};
|