@artsy/cohesion 4.228.0 → 4.229.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.229.0 (Mon Feb 03 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: Add click event for saving an artwork in CMS edit form AMBER-1268 [#553](https://github.com/artsy/cohesion/pull/553) ([@jonallured](https://github.com/jonallured))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jon Allured ([@jonallured](https://github.com/jonallured))
10
+
11
+ ---
12
+
1
13
  # v4.228.0 (Fri Jan 31 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -1469,7 +1469,7 @@ export interface ClickedOnPriceDisplayDropdown {
1469
1469
  * ```
1470
1470
  * {
1471
1471
  * action: "clickedPublish",
1472
- * context_module: "artworkDetails" ,
1472
+ * context_module: "artworkForm" ,
1473
1473
  * artwork_id: "60de173a47476c000fd5c4cc"
1474
1474
  * label: "Publish"
1475
1475
  * }
@@ -1481,6 +1481,27 @@ export interface ClickedPublish {
1481
1481
  artwork_id: string;
1482
1482
  label: string;
1483
1483
  }
1484
+ /**
1485
+ * A partner clicks the save button on the artwork form page in CMS.
1486
+ *
1487
+ * This schema describes events sent to Segment from [[ClickedSave]]
1488
+ *
1489
+ * @example
1490
+ * ```
1491
+ * {
1492
+ * action: "clickedSave",
1493
+ * context_module: "artworkForm" ,
1494
+ * artwork_id: "60de173a47476c000fd5c4cc"
1495
+ * label: "Save"
1496
+ * }
1497
+ * ```
1498
+ */
1499
+ export interface ClickedSave {
1500
+ action: ActionType.clickedSave;
1501
+ context_module: ContextModule;
1502
+ artwork_id: string;
1503
+ label: string;
1504
+ }
1484
1505
  /**
1485
1506
  * A Partner selects a filter on the conversations page in CMS.
1486
1507
  *
@@ -316,6 +316,10 @@ export declare enum ActionType {
316
316
  * Corresponds to {@link ClickedPublish}
317
317
  */
318
318
  clickedPublish = "clickedPublish",
319
+ /**
320
+ * Corresponds to {@link ClickedSave}
321
+ */
322
+ clickedSave = "clickedSave",
319
323
  /**
320
324
  * Corresponds to {@link ClickedOnReadMore}
321
325
  */
@@ -89,6 +89,7 @@ exports.ActionType = ActionType;
89
89
  ActionType["clickedOnPagination"] = "clickedOnPagination";
90
90
  ActionType["clickedOnPriceDisplayDropdown"] = "clickedOnPriceDisplayDropdown";
91
91
  ActionType["clickedPublish"] = "clickedPublish";
92
+ ActionType["clickedSave"] = "clickedSave";
92
93
  ActionType["clickedOnReadMore"] = "clickedOnReadMore";
93
94
  ActionType["clickedOnSubmitOrder"] = "clickedOnSubmitOrder";
94
95
  ActionType["clickedOrderPage"] = "clickedOrderPage";
@@ -37,6 +37,7 @@ export declare enum ContextModule {
37
37
  artistsToFollowRail = "artistsToFollowRail",
38
38
  artworkClosedLotHeader = "artworkClosedLotHeader",
39
39
  artworkDetails = "artworkDetails",
40
+ artworkForm = "artworkForm",
40
41
  artworkGrid = "artworkGrid",
41
42
  artworkImage = "artworkImage",
42
43
  artworkMetadata = "artworkMetadata",
@@ -51,6 +51,7 @@ exports.ContextModule = ContextModule;
51
51
  ContextModule["artistsToFollowRail"] = "artistsToFollowRail";
52
52
  ContextModule["artworkClosedLotHeader"] = "artworkClosedLotHeader";
53
53
  ContextModule["artworkDetails"] = "artworkDetails";
54
+ ContextModule["artworkForm"] = "artworkForm";
54
55
  ContextModule["artworkGrid"] = "artworkGrid";
55
56
  ContextModule["artworkImage"] = "artworkImage";
56
57
  ContextModule["artworkMetadata"] = "artworkMetadata";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.228.0",
3
+ "version": "4.229.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {