@artsy/cohesion 4.294.0 → 4.296.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.296.0 (Thu Aug 07 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: add vertical bar example [#631](https://github.com/artsy/cohesion/pull/631) ([@xander-pero](https://github.com/xander-pero))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@xander-pero](https://github.com/xander-pero)
10
+
11
+ ---
12
+
13
+ # v4.295.0 (Wed Aug 06 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore(refactor): Make a generic click event for batch edits, mark others for deprecation [#629](https://github.com/artsy/cohesion/pull/629) ([@jpotts244](https://github.com/jpotts244))
18
+
19
+ #### Authors: 1
20
+
21
+ - Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
22
+
23
+ ---
24
+
1
25
  # v4.294.0 (Wed Aug 06 2025)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -75,7 +75,7 @@ export interface CmsAnalyticsPageClickedMostViewed {
75
75
  * action: "viewedGraph",
76
76
  * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
77
77
  * context_page_owner_type: "analytics",
78
- * graph_type: "cumulative_line" | "donut" | "horizontal_bar"
78
+ * graph_type: "cumulative_line" | "donut" | "horizontal_bar" | "vertical_bar"
79
79
  * }
80
80
  * ```
81
81
  */
@@ -94,7 +94,7 @@ export interface CmsAnalyticsPageViewedGraph {
94
94
  * action: "viewedGraphDatapoint",
95
95
  * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
96
96
  * context_page_owner_type: "analytics",
97
- * graph_type: "cumulative_line" | "donut" | "horizontal_bar",
97
+ * graph_type: "cumulative_line" | "donut" | "horizontal_bar" | "vertical_bar",
98
98
  * datapoint_bucket_size?: "daily" | "weekly" | "monthly" | null,
99
99
  * datapoint_is_other?: true | false | null
100
100
  * }
@@ -5,116 +5,24 @@
5
5
  import { CmsContextModule } from "../Values/CmsContextModule";
6
6
  import { CmsActionType } from ".";
7
7
  /**
8
- * Partners clicked change availability pill
8
+ * Generic click event in the bulk edit flow.
9
9
  *
10
10
  * @example
11
- * ```
12
- * {
13
- * action: "click",
14
- * context_module: "Artworks - bulk edit",
15
- * label: "change availability",
16
- * value: "on hold", // e.g. "on hold", "available", "not for sale"
17
- * artwork_ids: ["artwork1", "artwork2", "artwork3"]
18
- * }
19
- * ```
20
- */
21
- export interface CmsBulkEditClickedChangeAvailability {
22
- action: "click";
23
- context_module: CmsContextModule.bulkEditFlow;
24
- label: "change availability";
25
- value: string;
26
- artwork_ids: string[];
27
- }
28
- /**
29
- * Partners clicked bulk edit pill
30
- *
31
- * @example
32
- * ```
33
- * {
34
- * action: "click",
35
- * context_module: "Artworks - bulk edit",
36
- * label: "bulk edit",
37
- * value: 5, // how many artworks selected
38
- * }
39
- * ```
40
- */
41
- export interface CmsBulkEditClickedEditPill {
42
- action: "click";
43
- context_module: CmsContextModule.bulkEditFlow;
44
- label: "bulk edit";
45
- value: number;
46
- }
47
- /**
48
- * Partners clicked shortlist pill
49
- *
50
- * @example
51
- * ```
52
11
  * {
53
12
  * action: "click",
54
13
  * context_module: "Artworks - bulk edit",
55
14
  * label: "shortlist",
56
- * value: 3, // how many artworks selected
15
+ * value: 3,
57
16
  * artwork_ids: ["artwork1", "artwork2", "artwork3"]
58
17
  * }
59
- * ```
60
- */
61
- export interface CmsBulkEditClickedShortlistPill {
62
- action: "click";
63
- context_module: CmsContextModule.bulkEditFlow;
64
- label: "shortlist";
65
- value: number;
66
- artwork_ids: string[];
67
- }
68
- /**
69
- * Partners clicked resolve all conflicts link
70
- *
71
- * @example
72
- * ```
73
- * {
74
- * action: "click",
75
- * context_module: "Artworks - bulk edit",
76
- * label: "resolve all conflicts",
77
- * }
78
- * ```
79
18
  */
80
- export interface CmsBulkEditClickedResolveAllConflicts {
19
+ export type CmsBulkEditClickLabel = "change availability" | "bulk edit" | "shortlist" | "add to show" | "resolve all conflicts" | "confirm edit" | "cancel";
20
+ export interface CmsBulkEditClickedEvent {
81
21
  action: "click";
82
22
  context_module: CmsContextModule.bulkEditFlow;
83
- label: "resolve all conflicts";
84
- }
85
- /**
86
- * Partners clicked confirm edits button
87
- *
88
- * @example
89
- * ```
90
- * {
91
- * action: "click",
92
- * context_module: "Artworks - bulk edit",
93
- * label: "confirm edit",
94
- * }
95
- * ```
96
- */
97
- export interface CmsBulkEditClickedConfirmEdits {
98
- action: "click";
99
- context_module: CmsContextModule.bulkEditFlow;
100
- label: "confirm edit";
101
- }
102
- /**
103
- * Partners clicked cancel button in bulk edit drawer
104
- *
105
- * @example
106
- * ```
107
- * {
108
- * action: "click",
109
- * context_module: "Artworks - bulk edit",
110
- * label: "cancel",
111
- * }
112
- * ```
113
- */
114
- export interface CmsBulkEditClickedCancelEdits {
115
- action: "click";
116
- context_module: CmsContextModule.bulkEditFlow;
117
- label: "cancel";
23
+ label: CmsBulkEditClickLabel;
24
+ value?: string | number;
25
+ artwork_ids?: string[];
118
26
  }
119
27
  /**
120
28
  * A partner has seen the max edit limit reached tool tip.
@@ -125,7 +33,6 @@ export interface CmsBulkEditClickedCancelEdits {
125
33
  * action: "shownMaxEditLimitReached",
126
34
  * context_module: "Artworks - bulk edit",
127
35
  * }
128
- * ```
129
36
  */
130
37
  export interface CmsBulkEditMaxEditLimitReachedShown {
131
38
  action: CmsActionType.shownMaxEditLimitReached;
@@ -141,7 +48,6 @@ export interface CmsBulkEditMaxEditLimitReachedShown {
141
48
  * context_module: "Artworks - bulk edit",
142
49
  * values: ["Location, Availability"]
143
50
  * }
144
- * ```
145
51
  */
146
52
  export interface CmsBulkEditConflictsShown {
147
53
  action: CmsActionType.shownConflicts;
@@ -157,7 +63,6 @@ export interface CmsBulkEditConflictsShown {
157
63
  * action: "shownResolvedAllConflicts",
158
64
  * context_module: "Artworks - bulk edit",
159
65
  * }
160
- * ```
161
66
  */
162
67
  export interface CmsBulkEditResolvedAllConflictsShown {
163
68
  action: CmsActionType.shownResolvedAllConflicts;
@@ -214,4 +119,4 @@ export interface CmsBulkEditFailed {
214
119
  value: string[];
215
120
  artwork_ids: string[];
216
121
  }
217
- export type CmsBulkEditFlow = CmsBulkEditClickedCancelEdits | CmsBulkEditClickedChangeAvailability | CmsBulkEditClickedConfirmEdits | CmsBulkEditClickedEditPill | CmsBulkEditClickedResolveAllConflicts | CmsBulkEditClickedShortlistPill | CmsBulkEditConflictsShown | CmsBulkEditFailed | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditProcessingCompleted | CmsBulkEditProcessingStarted | CmsBulkEditResolvedAllConflictsShown;
122
+ export type CmsBulkEditFlow = CmsBulkEditClickedEvent | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditConflictsShown | CmsBulkEditResolvedAllConflictsShown | CmsBulkEditProcessingStarted | CmsBulkEditProcessingCompleted | CmsBulkEditFailed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.294.0",
3
+ "version": "4.296.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {