@artsy/cohesion 4.312.0 → 4.313.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.313.0 (Thu Oct 30 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: Add Tracking Events for Bulk Images Upload [#648](https://github.com/artsy/cohesion/pull/648) ([@lidimayra](https://github.com/lidimayra))
6
+
7
+ #### Authors: 1
8
+
9
+ - Lidiane T ([@lidimayra](https://github.com/lidimayra))
10
+
11
+ ---
12
+
1
13
  # v4.312.0 (Mon Oct 27 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -165,4 +165,82 @@ export interface CmsArtworkFilterRemoveFilter {
165
165
  context_module: CmsContextModule.artworkFilterFilterArtworks;
166
166
  label: "remove filter";
167
167
  }
168
- export type CmsArtworkFilter = CmsArtworkFilterClickDuplicateArtwork | CmsArtworkFilterClickSort | CmsArtworkFilterQuickEditClickFilter | CmsArtworkFilterQuickEditSavePrice | CmsArtworkFilterQuickEditChangeAvailability | CmsArtworkFilterQuickEditPublish | CmsArtworkFilterQuickEditClickImport | CmsArtworkFilterRemoveFilter | CmsArtworkFilterSearch;
168
+ /**
169
+ * Bulk images upload - drag and drop images to an artwork
170
+ *
171
+ * @example
172
+ * ```
173
+ * {
174
+ * action: "drag and drop",
175
+ * context_module: "Artworks - quick edit",
176
+ * label: "bulk images upload",
177
+ * artwork_id: "artwork-id",
178
+ * value: 3
179
+ * }
180
+ * ```
181
+ */
182
+ export interface CmsArtworkFilterBulkImagesUpload {
183
+ action: CmsActionType.dragAndDrop;
184
+ context_module: CmsContextModule.artworkFilterQuickEdit;
185
+ label: "bulk images upload";
186
+ artwork_id: string;
187
+ value: number;
188
+ }
189
+ /**
190
+ * Bulk images upload - success message shown
191
+ *
192
+ * @example
193
+ * ```
194
+ * {
195
+ * action: "shownSuccessfullyUploadedImages",
196
+ * context_module: "Artworks - quick edit",
197
+ * artwork_id: "artwork-id",
198
+ * value: 3
199
+ * }
200
+ * ```
201
+ */
202
+ export interface CmsArtworkFilterBulkImagesSuccessShown {
203
+ action: CmsActionType.shownSuccessfullyUploadedImages;
204
+ context_module: CmsContextModule.artworkFilterQuickEdit;
205
+ artwork_id: string;
206
+ value: number;
207
+ }
208
+ /**
209
+ * Bulk images upload - error message shown for invalid image formats
210
+ *
211
+ * @example
212
+ * ```
213
+ * {
214
+ * action: "shownInvalidImagesFormat",
215
+ * context_module: "Artworks - quick edit",
216
+ * artwork_id: "artwork-id",
217
+ * filetype: "pdf"
218
+ * }
219
+ * ```
220
+ */
221
+ export interface CmsArtworkFilterBulkImagesInvalidFormatShown {
222
+ action: CmsActionType.shownInvalidImagesFormat;
223
+ context_module: CmsContextModule.artworkFilterQuickEdit;
224
+ artwork_id: string;
225
+ filetype: string;
226
+ }
227
+ /**
228
+ * Bulk images upload - error message shown when max images upload limit is reached
229
+ *
230
+ * @example
231
+ * ```
232
+ * {
233
+ * action: "shownMaxImagesUploadLimitReached",
234
+ * context_module: "Artworks - quick edit",
235
+ * artwork_id: "artwork-id",
236
+ * value: 15
237
+ * }
238
+ * ```
239
+ */
240
+ export interface CmsArtworkFilterBulkImagesMaxLimitReached {
241
+ action: CmsActionType.shownMaxImagesUploadLimitReached;
242
+ context_module: CmsContextModule.artworkFilterQuickEdit;
243
+ artwork_id: string;
244
+ value: number;
245
+ }
246
+ export type CmsArtworkFilter = CmsArtworkFilterClickDuplicateArtwork | CmsArtworkFilterClickSort | CmsArtworkFilterQuickEditClickFilter | CmsArtworkFilterQuickEditSavePrice | CmsArtworkFilterQuickEditChangeAvailability | CmsArtworkFilterQuickEditPublish | CmsArtworkFilterQuickEditClickImport | CmsArtworkFilterRemoveFilter | CmsArtworkFilterSearch | CmsArtworkFilterBulkImagesUpload | CmsArtworkFilterBulkImagesSuccessShown | CmsArtworkFilterBulkImagesInvalidFormatShown | CmsArtworkFilterBulkImagesMaxLimitReached;
@@ -169,5 +169,21 @@ export declare enum CmsActionType {
169
169
  /**
170
170
  * Corresponds to {@link CmsQuickReplyFlow}
171
171
  */
172
- savedExampleTemplate = "savedExampleTemplate"
172
+ savedExampleTemplate = "savedExampleTemplate",
173
+ /**
174
+ * Corresponds to {@link CmsArtworkFilter}
175
+ */
176
+ dragAndDrop = "drag and drop",
177
+ /**
178
+ * Corresponds to {@link CmsArtworkFilter}
179
+ */
180
+ shownSuccessfullyUploadedImages = "shownSuccessfullyUploadedImages",
181
+ /**
182
+ * Corresponds to {@link CmsArtworkFilter}
183
+ */
184
+ shownInvalidImagesFormat = "shownInvalidImagesFormat",
185
+ /**
186
+ * Corresponds to {@link CmsArtworkFilter}
187
+ */
188
+ shownMaxImagesUploadLimitReached = "shownMaxImagesUploadLimitReached"
173
189
  }
@@ -58,4 +58,8 @@ exports.CmsActionType = CmsActionType;
58
58
  CmsActionType["editedTemplate"] = "editedTemplate";
59
59
  CmsActionType["openedMenu"] = "openedMenu";
60
60
  CmsActionType["savedExampleTemplate"] = "savedExampleTemplate";
61
+ CmsActionType["dragAndDrop"] = "drag and drop";
62
+ CmsActionType["shownSuccessfullyUploadedImages"] = "shownSuccessfullyUploadedImages";
63
+ CmsActionType["shownInvalidImagesFormat"] = "shownInvalidImagesFormat";
64
+ CmsActionType["shownMaxImagesUploadLimitReached"] = "shownMaxImagesUploadLimitReached";
61
65
  })(CmsActionType || (exports.CmsActionType = CmsActionType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.312.0",
3
+ "version": "4.313.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {