@artsy/cohesion 4.251.0 → 4.253.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,27 @@
1
+ # v4.253.0 (Thu Apr 10 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat(DIA-1252): add tappedShare event [#579](https://github.com/artsy/cohesion/pull/579) ([@iskounen](https://github.com/iskounen))
6
+
7
+ #### Authors: 1
8
+
9
+ - Adam Iskounen ([@iskounen](https://github.com/iskounen))
10
+
11
+ ---
12
+
13
+ # v4.252.0 (Wed Apr 09 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore: adjust types for the favorites tab tracking [#578](https://github.com/artsy/cohesion/pull/578) ([@dariakoko](https://github.com/dariakoko))
18
+
19
+ #### Authors: 1
20
+
21
+ - Daria Kozlova ([@dariakoko](https://github.com/dariakoko))
22
+
23
+ ---
24
+
1
25
  # v4.251.0 (Tue Apr 08 2025)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -94,8 +94,6 @@ export interface TappedFollowsGroup extends TappedEntityGroup {
94
94
  action: ActionType.tappedFollowsGroup;
95
95
  context_screen: OwnerType.favoritesFollows;
96
96
  destination_screen_owner_type: OwnerType.artist | OwnerType.gallery | OwnerType.category | OwnerType.show;
97
- destination_screen_owner_slug: string;
98
- destination_screen_owner_id: string;
99
97
  }
100
98
  /**
101
99
  * A user taps a grouping of Alerts
@@ -567,6 +567,29 @@ export interface TappedRewind {
567
567
  context_screen_owner_slug: string;
568
568
  context_screen_owner_type: ScreenOwnerType;
569
569
  }
570
+ /**
571
+ * A user taps on the share button
572
+ *
573
+ * This schema describes events sent to Segment from [[tappedShare]]
574
+ *
575
+ * @example
576
+ * ```
577
+ * {
578
+ * action: "tappedShare",
579
+ * context_module: "infiniteDiscovery",
580
+ * context_screen_owner_id: "artwork-id",
581
+ * context_screen_owner_slug: "artwork-slug",
582
+ * context_screen_owner_type: "infiniteDiscoveryArtwork"
583
+ * }
584
+ * ```
585
+ */
586
+ export interface TappedShare {
587
+ action: ActionType.tappedShare;
588
+ context_module: ContextModule;
589
+ context_screen_owner_id: string;
590
+ context_screen_owner_slug: string;
591
+ context_screen_owner_type: ScreenOwnerType;
592
+ }
570
593
  /**
571
594
  * A user taps a button that navigates to the Sell With Artsy home screen (not the 'sell' icon in the tab bar)
572
595
  *
@@ -1050,6 +1050,10 @@ export declare enum ActionType {
1050
1050
  * Corresponds to {@link TappedSellArtwork}
1051
1051
  */
1052
1052
  tappedSellArtwork = "tappedSellArtwork",
1053
+ /**
1054
+ * Corresponds to {@link TappedShare}
1055
+ */
1056
+ tappedShare = "tappedShare",
1053
1057
  /**
1054
1058
  * Corresponds to {@link TappedShowGroup}
1055
1059
  */
@@ -272,6 +272,7 @@ exports.ActionType = ActionType;
272
272
  ActionType["tappedRewind"] = "tappedRewind";
273
273
  ActionType["tappedSell"] = "tappedSell";
274
274
  ActionType["tappedSellArtwork"] = "tappedSellArtwork";
275
+ ActionType["tappedShare"] = "tappedShare";
275
276
  ActionType["tappedShowGroup"] = "tappedShowGroup";
276
277
  ActionType["tappedShowMore"] = "tappedShowMore";
277
278
  ActionType["tappedSkip"] = "tappedSkip";
@@ -113,6 +113,8 @@ export declare enum ContextModule {
113
113
  filterScreen = "filterScreen",
114
114
  findTheArtYouWant = "findTheArtYouWant",
115
115
  follows = "follows",
116
+ followedArtistListItem = "followedArtistListItem",
117
+ followedGalleryListItem = "followedGalleryListItem",
116
118
  footer = "footer",
117
119
  frequentlyAskedQuestions = "frequentlyAskedQuestions",
118
120
  galleriesForYouBanner = "galleriesForYouBanner",
@@ -127,6 +127,8 @@ exports.ContextModule = ContextModule;
127
127
  ContextModule["filterScreen"] = "filterScreen";
128
128
  ContextModule["findTheArtYouWant"] = "findTheArtYouWant";
129
129
  ContextModule["follows"] = "follows";
130
+ ContextModule["followedArtistListItem"] = "followedArtistListItem";
131
+ ContextModule["followedGalleryListItem"] = "followedGalleryListItem";
130
132
  ContextModule["footer"] = "footer";
131
133
  ContextModule["frequentlyAskedQuestions"] = "frequentlyAskedQuestions";
132
134
  ContextModule["galleriesForYouBanner"] = "galleriesForYouBanner";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.251.0",
3
+ "version": "4.253.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {