@artsy/cohesion 4.129.0 → 4.130.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v4.130.0 (Thu Jun 01 2023)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat(long-press): add event for long pressing artworks [#436](https://github.com/artsy/cohesion/pull/436) ([@brainbicycle](https://github.com/brainbicycle))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Brian Beckerle ([@brainbicycle](https://github.com/brainbicycle))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v4.129.0 (Fri May 26 2023)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
|
@@ -829,3 +829,26 @@ export interface TappedLearnMore {
|
|
|
829
829
|
/** The text of the tapped button */
|
|
830
830
|
subject: string;
|
|
831
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* A user long presses an artwork in the app to show a menu
|
|
834
|
+
*
|
|
835
|
+
* This schema describes events sent to Segment from [[longPressedArtwork]]
|
|
836
|
+
*
|
|
837
|
+
* @example
|
|
838
|
+
* ```
|
|
839
|
+
* {
|
|
840
|
+
* action: "longPressedArtwork",
|
|
841
|
+
* context_module: "artworkGrid",
|
|
842
|
+
* context_screen_owner_type: "artist",
|
|
843
|
+
* context_owner_id: "6164889300d643000db86504",
|
|
844
|
+
* context_owner_slug: "radna-segal-pearl",
|
|
845
|
+
* }
|
|
846
|
+
* ```
|
|
847
|
+
*/
|
|
848
|
+
export interface LongPressedArtwork {
|
|
849
|
+
action: ActionType.longPressedArtwork;
|
|
850
|
+
context_module: ContextModule;
|
|
851
|
+
context_screen_owner_type: ScreenOwnerType;
|
|
852
|
+
context_screen_owner_id?: string;
|
|
853
|
+
context_screen_owner_slug?: string;
|
|
854
|
+
}
|
|
@@ -461,6 +461,10 @@ export declare enum ActionType {
|
|
|
461
461
|
* Corresponds to {@link Impression}
|
|
462
462
|
*/
|
|
463
463
|
impression = "impression",
|
|
464
|
+
/**
|
|
465
|
+
* Corresponds to {@link LongPressedArtwork}
|
|
466
|
+
*/
|
|
467
|
+
longPressedArtwork = "longPressedArtwork",
|
|
464
468
|
/**
|
|
465
469
|
* Corresponds to {@link MaxBidSelected}
|
|
466
470
|
*/
|
|
@@ -125,6 +125,7 @@ exports.ActionType = ActionType;
|
|
|
125
125
|
ActionType["followedGene"] = "followedGene";
|
|
126
126
|
ActionType["followedPartner"] = "followedPartner";
|
|
127
127
|
ActionType["impression"] = "impression";
|
|
128
|
+
ActionType["longPressedArtwork"] = "longPressedArtwork";
|
|
128
129
|
ActionType["maxBidSelected"] = "maxBidSelected";
|
|
129
130
|
ActionType["myCollectionOnboardingCompleted"] = "myCollectionOnboardingCompleted";
|
|
130
131
|
ActionType["onboardingUserInputData"] = "onboardingUserInputData";
|