@artsy/cohesion 4.270.0 → 4.272.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.272.0 (Thu Jun 12 2025)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat: Adds more custom events for BulkEdits [#603](https://github.com/artsy/cohesion/pull/603) ([@jpotts244](https://github.com/jpotts244))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.271.0 (Thu Jun 12 2025)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- feat: Adds 6 new click events for bulk edit flow [#601](https://github.com/artsy/cohesion/pull/601) ([@jpotts244](https://github.com/jpotts244))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v4.270.0 (Thu Jun 12 2025)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
|
@@ -4,6 +4,114 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { CmsActionType } from ".";
|
|
6
6
|
import { CmsContextModule } from "../Values/CmsContextModule";
|
|
7
|
+
/**
|
|
8
|
+
* Partners clicked change availability pill
|
|
9
|
+
*
|
|
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
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export interface CmsBulkEditClickedChangeAvailability {
|
|
21
|
+
action: "click";
|
|
22
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
23
|
+
label: "change availability";
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Partners clicked bulk edit pill
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```
|
|
31
|
+
* {
|
|
32
|
+
* action: "click",
|
|
33
|
+
* context_module: "Artworks - bulk edit",
|
|
34
|
+
* label: "bulk edit",
|
|
35
|
+
* value: "5", // how many artworks selected
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export interface CmsBulkEditClickedEditPill {
|
|
40
|
+
action: "click";
|
|
41
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
42
|
+
label: "bulk edit";
|
|
43
|
+
value: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Partners clicked shortlist pill
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```
|
|
50
|
+
* {
|
|
51
|
+
* action: "click",
|
|
52
|
+
* context_module: "Artworks - bulk edit",
|
|
53
|
+
* label: "shortlist",
|
|
54
|
+
* value: "5", // how many artworks selected
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export interface CmsBulkEditClickedShortlistPill {
|
|
59
|
+
action: "click";
|
|
60
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
61
|
+
label: "shortlist";
|
|
62
|
+
value: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Partners clicked resolve all conflicts link
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```
|
|
69
|
+
* {
|
|
70
|
+
* action: "click",
|
|
71
|
+
* context_module: "Artworks - bulk edit",
|
|
72
|
+
* label: "resolve all conflicts",
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export interface CmsBulkEditClickedResolveAllConflicts {
|
|
77
|
+
action: "click";
|
|
78
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
79
|
+
label: "resolve all conflicts";
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Partners clicked confirm edits button
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```
|
|
86
|
+
* {
|
|
87
|
+
* action: "click",
|
|
88
|
+
* context_module: "Artworks - bulk edit",
|
|
89
|
+
* label: "confirm edit",
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export interface CmsBulkEditClickedConfirmEdits {
|
|
94
|
+
action: "click";
|
|
95
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
96
|
+
label: "confirm edit";
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Partners clicked cancel button in bulk edit drawer
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```
|
|
103
|
+
* {
|
|
104
|
+
* action: "click",
|
|
105
|
+
* context_module: "Artworks - bulk edit",
|
|
106
|
+
* label: "cancel",
|
|
107
|
+
* }
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export interface CmsBulkEditClickedCancelEdits {
|
|
111
|
+
action: "click";
|
|
112
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
113
|
+
label: "cancel";
|
|
114
|
+
}
|
|
7
115
|
/**
|
|
8
116
|
* A partner has seen the max edit limit reached tool tip.
|
|
9
117
|
*
|
|
@@ -51,4 +159,49 @@ export interface CmsBulkEditResolvedAllConflictsShown {
|
|
|
51
159
|
action: CmsActionType.shownResolvedAllConflicts;
|
|
52
160
|
context_module: CmsContextModule.bulkEditFlow;
|
|
53
161
|
}
|
|
54
|
-
|
|
162
|
+
/**
|
|
163
|
+
* Bluk edit flow processing started
|
|
164
|
+
*
|
|
165
|
+
* Example:
|
|
166
|
+
* {
|
|
167
|
+
* action: "processingStarted",
|
|
168
|
+
* context_module: "Artworks - bulk edit",
|
|
169
|
+
* value: 25
|
|
170
|
+
* }
|
|
171
|
+
*/
|
|
172
|
+
export interface CmsBulkEditProcessingStarted {
|
|
173
|
+
action: CmsActionType.processingStarted;
|
|
174
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
175
|
+
value: number;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Bulk Edit flow processing completed
|
|
179
|
+
*
|
|
180
|
+
* Example:
|
|
181
|
+
* {
|
|
182
|
+
* action: "processingCompleted",
|
|
183
|
+
* context_module: "Artworks - bulk edit",
|
|
184
|
+
* value: 24
|
|
185
|
+
* }
|
|
186
|
+
*/
|
|
187
|
+
export interface CmsBulkEditProcessingCompleted {
|
|
188
|
+
action: CmsActionType.processingCompleted;
|
|
189
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
190
|
+
value: number;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Bulk edit failed
|
|
194
|
+
*
|
|
195
|
+
* Example:
|
|
196
|
+
* {
|
|
197
|
+
* action: "bulkEditFailed",
|
|
198
|
+
* context_module: "Artworks - bulk edit",
|
|
199
|
+
* value: "Network error" // or any error message displayed to user
|
|
200
|
+
* }
|
|
201
|
+
*/
|
|
202
|
+
export interface CmsBulkEditFailed {
|
|
203
|
+
action: CmsActionType.bulkEditFailed;
|
|
204
|
+
context_module: CmsContextModule.bulkEditFlow;
|
|
205
|
+
value: string;
|
|
206
|
+
}
|
|
207
|
+
export type CmsBulkEditFlow = CmsBulkEditClickedCancelEdits | CmsBulkEditClickedChangeAvailability | CmsBulkEditClickedConfirmEdits | CmsBulkEditClickedEditPill | CmsBulkEditClickedResolveAllConflicts | CmsBulkEditClickedShortlistPill | CmsBulkEditConflictsShown | CmsBulkEditFailed | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditProcessingCompleted | CmsBulkEditProcessingStarted | CmsBulkEditResolvedAllConflictsShown;
|
|
@@ -24,6 +24,10 @@ export declare enum CmsActionType {
|
|
|
24
24
|
* Corresponds to {@link CmsBatchImportFlow}
|
|
25
25
|
*/
|
|
26
26
|
artistNeedsMatching = "artistNeedsMatching",
|
|
27
|
+
/**
|
|
28
|
+
* Corresponds to {@link CmsBulkEditFlow}
|
|
29
|
+
*/
|
|
30
|
+
bulkEditFailed = "bulkEditFailed",
|
|
27
31
|
/**
|
|
28
32
|
* Corresponds to {@link CmsArtworkFilter}
|
|
29
33
|
*/
|
|
@@ -40,20 +44,28 @@ export declare enum CmsActionType {
|
|
|
40
44
|
* Corresponds to {@link SettingsFlow}
|
|
41
45
|
*/
|
|
42
46
|
editedLocation = "editedLocation",
|
|
47
|
+
/**
|
|
48
|
+
* Corresponds to {@link CmsBulkEditFlow}
|
|
49
|
+
*/
|
|
50
|
+
processingStarted = "processingStarted",
|
|
51
|
+
/**
|
|
52
|
+
* Corresponds to {@link CmsBulkEditFlow}
|
|
53
|
+
*/
|
|
54
|
+
processingCompleted = "processingCompleted",
|
|
43
55
|
/**
|
|
44
56
|
* Corresponds to {@link CmsArtworkFilter}
|
|
45
57
|
*/
|
|
46
58
|
searchedArtwork = "searched artwork",
|
|
47
59
|
/**
|
|
48
|
-
* Corresponds to {@link
|
|
60
|
+
* Corresponds to {@link CmsBulkEditFlow}
|
|
49
61
|
*/
|
|
50
62
|
shownConflicts = "shownConflicts",
|
|
51
63
|
/**
|
|
52
|
-
* Corresponds to {@link
|
|
64
|
+
* Corresponds to {@link CmsBulkEditFlow}
|
|
53
65
|
*/
|
|
54
66
|
shownMaxEditLimitReached = "shownMaxEditLimitReached",
|
|
55
67
|
/**
|
|
56
|
-
* Corresponds to {@link
|
|
68
|
+
* Corresponds to {@link CmsBulkEditFlow}
|
|
57
69
|
*/
|
|
58
70
|
shownResolvedAllConflicts = "shownResolvedAllConflicts",
|
|
59
71
|
/**
|
|
@@ -22,10 +22,13 @@ exports.CmsActionType = CmsActionType;
|
|
|
22
22
|
(function (CmsActionType) {
|
|
23
23
|
CmsActionType["addedNewLocation"] = "addedNewLocation";
|
|
24
24
|
CmsActionType["artistNeedsMatching"] = "artistNeedsMatching";
|
|
25
|
+
CmsActionType["bulkEditFailed"] = "bulkEditFailed";
|
|
25
26
|
CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
|
|
26
27
|
CmsActionType["createdArtwork"] = "created artwork";
|
|
27
28
|
CmsActionType["csvImportError"] = "csvImportError";
|
|
28
29
|
CmsActionType["editedLocation"] = "editedLocation";
|
|
30
|
+
CmsActionType["processingStarted"] = "processingStarted";
|
|
31
|
+
CmsActionType["processingCompleted"] = "processingCompleted";
|
|
29
32
|
CmsActionType["searchedArtwork"] = "searched artwork";
|
|
30
33
|
CmsActionType["shownConflicts"] = "shownConflicts";
|
|
31
34
|
CmsActionType["shownMaxEditLimitReached"] = "shownMaxEditLimitReached";
|