@artsy/cohesion 4.394.0 → 4.395.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.395.0 (Fri Aug 28 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Add new click events for artist feature badges [#741](https://github.com/artsy/cohesion/pull/741) ([@jpotts244](https://github.com/jpotts244))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
10
+
11
+ ---
12
+
1
13
  # v4.394.0 (Fri Aug 28 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Schemas describing CMS Artist events
3
+ * @packageDocumentation
4
+ */
5
+ import { CmsContextModule } from "../Values/CmsContextModule";
6
+ import { CmsOwnerType } from "../Values/CmsOwnerType";
7
+ import { CmsActionType } from ".";
8
+ /**
9
+ * Fired when a user clicks the "Featured in Editorial" badge on the artist list
10
+ * or artist show page, navigating to the associated article.
11
+ *
12
+ * @example
13
+ * ```
14
+ * {
15
+ * action: "clickedFeaturedInEditorialBadge",
16
+ * context_module: "artistList",
17
+ * context_page_owner_id: "derrick-adams",
18
+ * context_page_owner_type: "artist",
19
+ * destination_path: "/article/some-editorial-slug",
20
+ * }
21
+ * ```
22
+ */
23
+ export interface CmsClickedFeaturedInEditorialBadge {
24
+ action: CmsActionType.clickedFeaturedInEditorialBadge;
25
+ context_module: CmsContextModule.artistShow | CmsContextModule.artistList;
26
+ context_page_owner_id: string;
27
+ context_page_owner_type: CmsOwnerType.artist;
28
+ destination_path: string;
29
+ }
30
+ export type CmsArtistFlow = CmsClickedFeaturedInEditorialBadge;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,4 +1,5 @@
1
1
  import { CmsAnalyticsPage } from "./AnalyticsPage";
2
+ import { CmsArtistFlow } from "./ArtistFlow";
2
3
  import { CmsArtworkFilter } from "./ArtworkFilter";
3
4
  import { CmsArtworkTemplatesPage } from "./ArtworkTemplatesPage";
4
5
  import { CmsBatchImportFlow } from "./BatchImportFlow";
@@ -14,7 +15,7 @@ import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
14
15
  *
15
16
  * Each event describes one ActionType
16
17
  */
17
- export type CmsEvent = CmsAnalyticsPage | CmsArtworkFilter | CmsArtworkTemplatesPage | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
18
+ export type CmsEvent = CmsAnalyticsPage | CmsArtistFlow | CmsArtworkFilter | CmsArtworkTemplatesPage | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
18
19
  /**
19
20
  * List of all CMS actions
20
21
  *
@@ -53,6 +54,10 @@ export declare enum CmsActionType {
53
54
  * Corresponds to {@link CmsArtworkTemplatesPage}
54
55
  */
55
56
  clickedArtworkNavigationTab = "clickedArtworkNavigationTab",
57
+ /**
58
+ * Corresponds to {@link CmsClickedFeaturedInEditorialBadge}
59
+ */
60
+ clickedFeaturedInEditorialBadge = "clickedFeaturedInEditorialBadge",
56
61
  /**
57
62
  * Corresponds to {@link CmsAnalytics}
58
63
  */
@@ -28,6 +28,7 @@ exports.CmsActionType = CmsActionType;
28
28
  CmsActionType["bulkEditFailed"] = "bulkEditFailed";
29
29
  CmsActionType["changedTimePeriod"] = "changedTimePeriod";
30
30
  CmsActionType["clickedArtworkNavigationTab"] = "clickedArtworkNavigationTab";
31
+ CmsActionType["clickedFeaturedInEditorialBadge"] = "clickedFeaturedInEditorialBadge";
31
32
  CmsActionType["clickedGraphCTA"] = "clickedGraphCTA";
32
33
  CmsActionType["clickedMostViewed"] = "clickedMostViewed";
33
34
  CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
@@ -6,6 +6,8 @@
6
6
  */
7
7
  export declare enum CmsContextModule {
8
8
  addArtworkToShow = "Add artwork to show",
9
+ artistList = "artistList",
10
+ artistShow = "artistShow",
9
11
  analyticsAudience = "analyticsAudience",
10
12
  analyticsInquiries = "analyticsInquiries",
11
13
  analyticsMostViewed = "analyticsMostViewed",
@@ -16,6 +16,8 @@ exports.CmsContextModule = CmsContextModule;
16
16
 
17
17
  (function (CmsContextModule) {
18
18
  CmsContextModule["addArtworkToShow"] = "Add artwork to show";
19
+ CmsContextModule["artistList"] = "artistList";
20
+ CmsContextModule["artistShow"] = "artistShow";
19
21
  CmsContextModule["analyticsAudience"] = "analyticsAudience";
20
22
  CmsContextModule["analyticsInquiries"] = "analyticsInquiries";
21
23
  CmsContextModule["analyticsMostViewed"] = "analyticsMostViewed";
@@ -4,6 +4,7 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  export declare enum CmsOwnerType {
7
+ artist = "artist",
7
8
  artwork = "artwork",
8
9
  analytics = "analytics",
9
10
  bulkEdit = "bulkEdit",
@@ -14,6 +14,7 @@ var CmsOwnerType;
14
14
  exports.CmsOwnerType = CmsOwnerType;
15
15
 
16
16
  (function (CmsOwnerType) {
17
+ CmsOwnerType["artist"] = "artist";
17
18
  CmsOwnerType["artwork"] = "artwork";
18
19
  CmsOwnerType["analytics"] = "analytics";
19
20
  CmsOwnerType["bulkEdit"] = "bulkEdit";
@@ -37,6 +37,7 @@ export * from "./Values/Tab";
37
37
  */
38
38
  export * from "./CMS/Events";
39
39
  export * from "./CMS/Events/AnalyticsPage";
40
+ export * from "./CMS/Events/ArtistFlow";
40
41
  export * from "./CMS/Events/ArtworkFilter";
41
42
  export * from "./CMS/Events/BatchImportFlow";
42
43
  export * from "./CMS/Events/BulkEditFlow";
@@ -400,6 +400,18 @@ Object.keys(_AnalyticsPage).forEach(function (key) {
400
400
  });
401
401
  });
402
402
 
403
+ var _ArtistFlow = require("./CMS/Events/ArtistFlow");
404
+
405
+ Object.keys(_ArtistFlow).forEach(function (key) {
406
+ if (key === "default" || key === "__esModule") return;
407
+ Object.defineProperty(exports, key, {
408
+ enumerable: true,
409
+ get: function get() {
410
+ return _ArtistFlow[key];
411
+ }
412
+ });
413
+ });
414
+
403
415
  var _ArtworkFilter = require("./CMS/Events/ArtworkFilter");
404
416
 
405
417
  Object.keys(_ArtworkFilter).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.394.0",
3
+ "version": "4.395.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {