@artsy/cohesion 4.397.0 → 4.399.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.399.0 (Wed Sep 09 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Add artworkEditDrawer context module and clickedEditArtworkButton event [#746](https://github.com/artsy/cohesion/pull/746) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### Authors: 1
8
+
9
+ - Ole ([@olerichter00](https://github.com/olerichter00))
10
+
11
+ ---
12
+
13
+ # v4.398.0 (Tue Sep 08 2026)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore: Allow Duplicate functionality to be tracked in ArtOS [#745](https://github.com/artsy/cohesion/pull/745) ([@lidimayra](https://github.com/lidimayra))
18
+
19
+ #### Authors: 1
20
+
21
+ - Lidiane T ([@lidimayra](https://github.com/lidimayra))
22
+
23
+ ---
24
+
1
25
  # v4.397.0 (Fri Sep 04 2026)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -52,9 +52,33 @@ export interface OsClickedEditionSetRow {
52
52
  edition_set_id: string;
53
53
  }
54
54
  /**
55
- * A partner edits a field inline in the inventory table.
55
+ * A partner clicks the "Edit artwork" button on an inventory table row to open
56
+ * the Edit Artwork drawer.
57
+ *
58
+ * This schema describes events sent to Segment from [[OsClickedEditArtworkButton]]
59
+ *
60
+ * @example
61
+ * ```
62
+ * {
63
+ * action: "clickedEditArtworkButton",
64
+ * context_module: "artworkEditDrawer",
65
+ * context_page_owner_type: "inventory",
66
+ * artwork_id: "abc123"
67
+ * }
68
+ * ```
69
+ */
70
+ export interface OsClickedEditArtworkButton {
71
+ action: OsActionType.clickedEditArtworkButton;
72
+ context_module: OsContextModule.artworkEditDrawer;
73
+ context_page_owner_type: OsOwnerType;
74
+ artwork_id: string;
75
+ }
76
+ /**
77
+ * A partner edits a field inline in the inventory table, or in the Edit Artwork
78
+ * drawer opened from a table row.
56
79
  * Fires on mutation success (not on the toast render).
57
- * All field edits share this single event; use `field` to distinguish them.
80
+ * All field edits share this single event; use `field` to distinguish them, and
81
+ * `context_module` to distinguish which surface the edit was made from.
58
82
  *
59
83
  * This schema describes events sent to Segment from [[OsEditedArtworkField]]
60
84
  *
@@ -97,10 +121,23 @@ export interface OsClickedEditionSetRow {
97
121
  * matched_id: "artist-internal-id"
98
122
  * }
99
123
  * ```
124
+ *
125
+ * @example Edited from the Edit Artwork drawer
126
+ * ```
127
+ * {
128
+ * action: "editedArtworkField",
129
+ * context_module: "artworkEditDrawer",
130
+ * context_page_owner_type: "inventory",
131
+ * artwork_id: "abc123",
132
+ * field: "title",
133
+ * old_value: "Untitled",
134
+ * new_value: "Blue"
135
+ * }
136
+ * ```
100
137
  */
101
138
  export interface OsEditedArtworkField {
102
139
  action: OsActionType.editedArtworkField;
103
- context_module: OsContextModule.artworkTable;
140
+ context_module: OsContextModule.artworkTable | OsContextModule.artworkEditDrawer;
104
141
  context_page_owner_type: OsOwnerType;
105
142
  artwork_id: string;
106
143
  /** Present only for edition-set variant rows in the Artsy CMS sub-row */
@@ -311,10 +348,10 @@ export interface OsClickedActionsDropdown {
311
348
  * Top-bar "Open in Studio": "Tearsheet" | "Checklist" | "Instagram Post" | "Mailchimp Campaign"
312
349
  * Top-bar "More": "Delete"
313
350
  * Row/context menu only: "Remove from Artsy" | "Move to Collection" | "Remove from Collection" |
314
- * "Convert to Edition Set" | "Edit Edition Set" | "Convert to Unique"
351
+ * "Convert to Edition Set" | "Edit Edition Set" | "Convert to Unique" | "Duplicate"
315
352
  * Distribution: "Distribute to Artsy"
316
353
  */
317
- value: "Add to Artsy" | "Add to Collection" | "Move to Collection" | "Checklist" | "Convert to Edition Set" | "Convert to Unique" | "Delete" | "Distribute to Artsy" | "Edit Edition Set" | "Instagram Post" | "Mailchimp Campaign" | "Remove from Artsy" | "Remove from Collection" | "Tearsheet";
354
+ value: "Add to Artsy" | "Add to Collection" | "Move to Collection" | "Checklist" | "Convert to Edition Set" | "Convert to Unique" | "Delete" | "Distribute to Artsy" | "Duplicate" | "Edit Edition Set" | "Instagram Post" | "Mailchimp Campaign" | "Remove from Artsy" | "Remove from Collection" | "Tearsheet";
318
355
  /** Which button or trigger the partner used to open this dropdown */
319
356
  label: "add to dropdown" | "context menu" | "more dropdown" | "row action" | "studio dropdown";
320
357
  artwork_ids: string[];
@@ -385,4 +422,4 @@ export interface OsReorderedInventoryTableColumns {
385
422
  /** Full resulting column key order (reorderable columns only, pinned columns excluded) */
386
423
  new_order: string[];
387
424
  }
388
- export type OsInventoryTable = ChangedInventoryTableColumnVisibility | EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
425
+ export type OsInventoryTable = ChangedInventoryTableColumnVisibility | EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditArtworkButton | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
@@ -100,6 +100,10 @@ export declare enum OsActionType {
100
100
  * Corresponds to {@link OsInstagramEditor}
101
101
  */
102
102
  clickedConnectModal = "clickedConnectModal",
103
+ /**
104
+ * Corresponds to {@link OsClickedEditArtworkButton}
105
+ */
106
+ clickedEditArtworkButton = "clickedEditArtworkButton",
103
107
  /**
104
108
  * Corresponds to {@link OsInventoryTable}
105
109
  */
@@ -40,6 +40,7 @@ exports.OsActionType = OsActionType;
40
40
  OsActionType["clickedConnectAccountModal"] = "clickedConnectAccountModal";
41
41
  OsActionType["clickedFilterDrawer"] = "clickedFilterDrawer";
42
42
  OsActionType["clickedConnectModal"] = "clickedConnectModal";
43
+ OsActionType["clickedEditArtworkButton"] = "clickedEditArtworkButton";
43
44
  OsActionType["clickedEditionSetRow"] = "clickedEditionSetRow";
44
45
  OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
45
46
  OsActionType["clickedExitEditor"] = "clickedExitEditor";
@@ -10,6 +10,7 @@ export declare enum OsContextModule {
10
10
  addArtworkDropdown = "addArtworkDropdown",
11
11
  addLocationModal = "addLocationModal",
12
12
  addToListModal = "addToListModal",
13
+ artworkEditDrawer = "artworkEditDrawer",
13
14
  artworkFilters = "artworkFilters",
14
15
  artworkSearch = "artworkSearch",
15
16
  artworkTable = "artworkTable",
@@ -20,6 +20,7 @@ exports.OsContextModule = OsContextModule;
20
20
  OsContextModule["addArtworkDropdown"] = "addArtworkDropdown";
21
21
  OsContextModule["addLocationModal"] = "addLocationModal";
22
22
  OsContextModule["addToListModal"] = "addToListModal";
23
+ OsContextModule["artworkEditDrawer"] = "artworkEditDrawer";
23
24
  OsContextModule["artworkFilters"] = "artworkFilters";
24
25
  OsContextModule["artworkSearch"] = "artworkSearch";
25
26
  OsContextModule["artworkTable"] = "artworkTable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.397.0",
3
+ "version": "4.399.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {