@artsy/cohesion 4.308.0 → 4.309.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.309.0 (Tue Oct 21 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore(ONYX-1951): follow up on adding tracking for auctions hub [#644](https://github.com/artsy/cohesion/pull/644) ([@dariakoko](https://github.com/dariakoko))
6
+
7
+ #### Authors: 1
8
+
9
+ - Daria Kozlova ([@dariakoko](https://github.com/dariakoko))
10
+
11
+ ---
12
+
1
13
  # v4.308.0 (Tue Oct 21 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -1,6 +1,7 @@
1
- import { ContextModule, EntityModuleHeight, EntityModuleType, OwnerType, ScreenOwnerType, TappedActivityGroup, TappedArticleGroup, TappedArtistGroup, TappedArtworkGroup, TappedAuctionGroup, TappedCollectionGroup, TappedExploreGroup, TappedFairGroup } from "../../Schema";
1
+ import { ActionType, ContextModule, EntityModuleHeight, EntityModuleType, OwnerType, ScreenOwnerType, TappedActivityGroup, TappedArticleGroup, TappedArtistGroup, TappedArtworkGroup, TappedAuctionGroup, TappedAuctionsHubGroup, TappedCollectionGroup, TappedExploreGroup, TappedFairGroup } from "../../Schema";
2
2
  export type TappedEntityDestinationType = OwnerType.activities | OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artwork | OwnerType.collection | OwnerType.explore | OwnerType.fair | OwnerType.sale | OwnerType.auctions | OwnerType.savesAndFollows | OwnerType.gene | OwnerType.worksForYou;
3
3
  export interface TappedEntityGroupArgs {
4
+ action?: ActionType;
4
5
  contextModule: ContextModule;
5
6
  contextScreenOwnerType: ScreenOwnerType;
6
7
  contextScreenOwnerId?: string;
@@ -31,4 +32,4 @@ export interface TappedEntityGroupArgs {
31
32
  * })
32
33
  * ```
33
34
  */
34
- export declare const tappedEntityGroup: ({ contextModule, contextScreenOwnerType, contextScreenOwnerId, contextScreenOwnerSlug, destinationScreenOwnerType, destinationScreenOwnerId, destinationScreenOwnerSlug, horizontalSlidePosition, moduleHeight, type, }: TappedEntityGroupArgs) => TappedActivityGroup | TappedArticleGroup | TappedArtistGroup | TappedArtworkGroup | TappedAuctionGroup | TappedCollectionGroup | TappedExploreGroup | TappedFairGroup;
35
+ export declare const tappedEntityGroup: ({ action: originalAction, contextModule, contextScreenOwnerType, contextScreenOwnerId, contextScreenOwnerSlug, destinationScreenOwnerType, destinationScreenOwnerId, destinationScreenOwnerSlug, horizontalSlidePosition, moduleHeight, type, }: TappedEntityGroupArgs) => TappedActivityGroup | TappedArticleGroup | TappedArtistGroup | TappedArtworkGroup | TappedAuctionGroup | TappedAuctionsHubGroup | TappedCollectionGroup | TappedExploreGroup | TappedFairGroup;
@@ -27,7 +27,8 @@ var _Schema = require("../../Schema");
27
27
  * ```
28
28
  */
29
29
  var tappedEntityGroup = function tappedEntityGroup(_ref) {
30
- var contextModule = _ref.contextModule,
30
+ var originalAction = _ref.action,
31
+ contextModule = _ref.contextModule,
31
32
  contextScreenOwnerType = _ref.contextScreenOwnerType,
32
33
  contextScreenOwnerId = _ref.contextScreenOwnerId,
33
34
  contextScreenOwnerSlug = _ref.contextScreenOwnerSlug,
@@ -76,7 +77,14 @@ var tappedEntityGroup = function tappedEntityGroup(_ref) {
76
77
  break;
77
78
 
78
79
  case _Schema.OwnerType.sale:
80
+ action = _Schema.ActionType.tappedAuctionGroup;
81
+ break;
82
+
79
83
  case _Schema.OwnerType.auctions:
84
+ if (originalAction && originalAction === _Schema.ActionType.tappedAuctionsHubGroup) {
85
+ action = _Schema.ActionType.tappedAuctionsHubGroup;
86
+ }
87
+
80
88
  action = _Schema.ActionType.tappedAuctionGroup;
81
89
  break;
82
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.308.0",
3
+ "version": "4.309.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {