@artsy/cohesion 4.373.0--canary.714.15262.0 → 4.373.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.373.0 (Fri Jun 26 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - fix(os): Export MaterialsEditor events correctly from Schema [#719](https://github.com/artsy/cohesion/pull/719) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### Authors: 1
8
+
9
+ - Ole ([@olerichter00](https://github.com/olerichter00))
10
+
11
+ ---
12
+
1
13
  # v4.372.0 (Fri Jun 26 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -54,9 +54,9 @@ export * from "./os/Events";
54
54
  export * from "./os/Events/BrandKit";
55
55
  export * from "./os/Events/Click";
56
56
  export * from "./os/Events/ConnectedAppsFlow";
57
- export * from "./os/Events/FilterSortSearch";
58
57
  export * from "./os/Events/InstagramEditor";
59
58
  export * from "./os/Events/InventoryTable";
59
+ export * from "./os/Events/MaterialsEditor";
60
60
  export * from "./os/Events/MultiAddFlow";
61
61
  export * from "./os/Events/Submit";
62
62
  export * from "./os/Values/OsContextModule";
@@ -568,38 +568,38 @@ Object.keys(_ConnectedAppsFlow).forEach(function (key) {
568
568
  });
569
569
  });
570
570
 
571
- var _FilterSortSearch = require("./os/Events/FilterSortSearch");
571
+ var _InstagramEditor = require("./os/Events/InstagramEditor");
572
572
 
573
- Object.keys(_FilterSortSearch).forEach(function (key) {
573
+ Object.keys(_InstagramEditor).forEach(function (key) {
574
574
  if (key === "default" || key === "__esModule") return;
575
575
  Object.defineProperty(exports, key, {
576
576
  enumerable: true,
577
577
  get: function get() {
578
- return _FilterSortSearch[key];
578
+ return _InstagramEditor[key];
579
579
  }
580
580
  });
581
581
  });
582
582
 
583
- var _InstagramEditor = require("./os/Events/InstagramEditor");
583
+ var _InventoryTable = require("./os/Events/InventoryTable");
584
584
 
585
- Object.keys(_InstagramEditor).forEach(function (key) {
585
+ Object.keys(_InventoryTable).forEach(function (key) {
586
586
  if (key === "default" || key === "__esModule") return;
587
587
  Object.defineProperty(exports, key, {
588
588
  enumerable: true,
589
589
  get: function get() {
590
- return _InstagramEditor[key];
590
+ return _InventoryTable[key];
591
591
  }
592
592
  });
593
593
  });
594
594
 
595
- var _InventoryTable = require("./os/Events/InventoryTable");
595
+ var _MaterialsEditor = require("./os/Events/MaterialsEditor");
596
596
 
597
- Object.keys(_InventoryTable).forEach(function (key) {
597
+ Object.keys(_MaterialsEditor).forEach(function (key) {
598
598
  if (key === "default" || key === "__esModule") return;
599
599
  Object.defineProperty(exports, key, {
600
600
  enumerable: true,
601
601
  get: function get() {
602
- return _InventoryTable[key];
602
+ return _MaterialsEditor[key];
603
603
  }
604
604
  });
605
605
  });
@@ -5,29 +5,6 @@ import { OsActionType } from ".";
5
5
  * Schemas describing Art OS Materials (Tearsheet / Checklist) events
6
6
  * @packageDocumentation
7
7
  */
8
- /**
9
- * A partner selects "Tearsheet" or "Checklist" from the inventory actions dropdown
10
- * to open the Materials editor. The dropdown is surfaced three ways: the artwork's
11
- * actions, bulk actions, and the right-click context menu.
12
- *
13
- * This schema describes events sent to Segment from [[OsClickedActionsDropdown]]
14
- *
15
- * @example
16
- * ```
17
- * {
18
- * action: "clickedActionsDropdown",
19
- * context_module: "actionsDropdown",
20
- * context_page_owner_type: "inventory",
21
- * value: "Tearsheet"
22
- * }
23
- * ```
24
- */
25
- export interface OsClickedActionsDropdown {
26
- action: OsActionType.clickedActionsDropdown;
27
- context_module: OsContextModule.actionsDropdown;
28
- context_page_owner_type: OsOwnerType;
29
- value: "Tearsheet" | "Checklist" | "Instagram Post";
30
- }
31
8
  /**
32
9
  * A partner clicks "Exit" in the Materials editor header to leave the editor.
33
10
  *
@@ -108,4 +85,4 @@ export interface OsCreatedStudioContent {
108
85
  /** Generic catch-all for the artwork detail fields included in the generated material */
109
86
  content: Record<string, unknown>;
110
87
  }
111
- export type OsMaterialsEditor = OsClickedActionsDropdown | OsClickedBrandKitModal | OsClickedExitEditor | OsCreatedStudioContent;
88
+ export type OsMaterialsEditor = OsClickedBrandKitModal | OsClickedExitEditor | OsCreatedStudioContent;
@@ -1,7 +1,6 @@
1
1
  import { ClickedAddBrandKitFile, ClickedBrandKitColor, ClickedBrandKitFont, ClickedSaveBrandKit } from "./BrandKit";
2
2
  import { OsClickEvent } from "./Click";
3
3
  import { OsConnectedAppsFlow } from "./ConnectedAppsFlow";
4
- import { OsFilterSortSearch } from "./FilterSortSearch";
5
4
  import { OsInstagramEditor } from "./InstagramEditor";
6
5
  import { OsInventoryTable } from "./InventoryTable";
7
6
  import { OsMaterialsEditor } from "./MaterialsEditor";
@@ -12,17 +11,13 @@ import { OsSubmitEvent } from "./Submit";
12
11
  *
13
12
  * Each event describes one ActionType
14
13
  */
15
- export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsFilterSortSearch | OsInstagramEditor | OsInventoryTable | OsMaterialsEditor | OsSubmitEvent;
14
+ export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsInstagramEditor | OsInventoryTable | OsMaterialsEditor | OsSubmitEvent;
16
15
  /**
17
16
  * List of all Art OS actions
18
17
  *
19
18
  * Each OsActionType corresponds with a table in Redshift.
20
19
  */
21
20
  export declare enum OsActionType {
22
- /**
23
- * Corresponds to {@link OsFilterSortSearch}
24
- */
25
- appliedFilter = "appliedFilter",
26
21
  /**
27
22
  * Corresponds to {@link OsInventoryTable}
28
23
  */
@@ -68,10 +63,6 @@ export declare enum OsActionType {
68
63
  * Corresponds to {@link ClickedCancelBulkEdit}
69
64
  */
70
65
  clickedCancelBulkEdit = "clickedCancelBulkEdit",
71
- /**
72
- * Corresponds to {@link OsFilterSortSearch}
73
- */
74
- clickedFilterDrawer = "clickedFilterDrawer",
75
66
  /**
76
67
  * Corresponds to {@link ClickedConnectAccount}
77
68
  */
@@ -136,10 +127,6 @@ export declare enum OsActionType {
136
127
  * Corresponds to {@link OsMaterialsEditor} and {@link OsInstagramEditor}
137
128
  */
138
129
  createdStudioContent = "createdStudioContent",
139
- /**
140
- * Corresponds to {@link OsFilterSortSearch}
141
- */
142
- clearedFilters = "clearedFilters",
143
130
  /**
144
131
  * Corresponds to {@link DeletedArtwork}
145
132
  */
@@ -168,10 +155,6 @@ export declare enum OsActionType {
168
155
  * Corresponds to {@link OsInventoryTable}
169
156
  */
170
157
  removedArtworkDocument = "removedArtworkDocument",
171
- /**
172
- * Corresponds to {@link OsFilterSortSearch}
173
- */
174
- removedFilter = "removedFilter",
175
158
  /**
176
159
  * Corresponds to {@link RemovedArtworksFromList}
177
160
  */
@@ -184,14 +167,6 @@ export declare enum OsActionType {
184
167
  * Corresponds to {@link OsInventoryTable}
185
168
  */
186
169
  savedArtworkImages = "savedArtworkImages",
187
- /**
188
- * Corresponds to {@link OsFilterSortSearch}
189
- */
190
- searchedArtworks = "searchedArtworks",
191
- /**
192
- * Corresponds to {@link OsFilterSortSearch}
193
- */
194
- sortedColumn = "sortedColumn",
195
170
  /**
196
171
  * Corresponds to {@link StartedArtworkImport}
197
172
  */
@@ -20,7 +20,6 @@ var OsActionType;
20
20
  exports.OsActionType = OsActionType;
21
21
 
22
22
  (function (OsActionType) {
23
- OsActionType["appliedFilter"] = "appliedFilter";
24
23
  OsActionType["addedArtist"] = "addedArtist";
25
24
  OsActionType["addedArtworkDocument"] = "addedArtworkDocument";
26
25
  OsActionType["addedArtworksToList"] = "addedArtworksToList";
@@ -33,7 +32,6 @@ exports.OsActionType = OsActionType;
33
32
  OsActionType["clickedAspectRatio"] = "clickedAspectRatio";
34
33
  OsActionType["clickedBrandKitModal"] = "clickedBrandKitModal";
35
34
  OsActionType["clickedCancelBulkEdit"] = "clickedCancelBulkEdit";
36
- OsActionType["clickedFilterDrawer"] = "clickedFilterDrawer";
37
35
  OsActionType["clickedConnectAccount"] = "clickedConnectAccount";
38
36
  OsActionType["clickedConnectAccountModal"] = "clickedConnectAccountModal";
39
37
  OsActionType["clickedConnectModal"] = "clickedConnectModal";
@@ -50,7 +48,6 @@ exports.OsActionType = OsActionType;
50
48
  OsActionType["createdImportedArtworks"] = "createdImportedArtworks";
51
49
  OsActionType["createdList"] = "createdList";
52
50
  OsActionType["createdStudioContent"] = "createdStudioContent";
53
- OsActionType["clearedFilters"] = "clearedFilters";
54
51
  OsActionType["deletedArtwork"] = "deletedArtwork";
55
52
  OsActionType["deletedList"] = "deletedList";
56
53
  OsActionType["distributedArtworks"] = "distributedArtworks";
@@ -58,12 +55,9 @@ exports.OsActionType = OsActionType;
58
55
  OsActionType["editedArtworkField"] = "editedArtworkField";
59
56
  OsActionType["movedArtworksBetweenLists"] = "movedArtworksBetweenLists";
60
57
  OsActionType["removedArtworkDocument"] = "removedArtworkDocument";
61
- OsActionType["removedFilter"] = "removedFilter";
62
58
  OsActionType["removedArtworksFromList"] = "removedArtworksFromList";
63
59
  OsActionType["resumedArtworkImport"] = "resumedArtworkImport";
64
60
  OsActionType["savedArtworkImages"] = "savedArtworkImages";
65
- OsActionType["searchedArtworks"] = "searchedArtworks";
66
- OsActionType["sortedColumn"] = "sortedColumn";
67
61
  OsActionType["startedArtworkImport"] = "startedArtworkImport";
68
62
  OsActionType["updatedList"] = "updatedList";
69
63
  })(OsActionType || (exports.OsActionType = OsActionType = {}));
@@ -9,8 +9,6 @@ export declare enum OsContextModule {
9
9
  addArtistModal = "addArtistModal",
10
10
  addLocationModal = "addLocationModal",
11
11
  addToListModal = "addToListModal",
12
- artworkFilters = "artworkFilters",
13
- artworkSearch = "artworkSearch",
14
12
  artworkTable = "artworkTable",
15
13
  brandKit = "brandKit",
16
14
  brandKitPromptModal = "brandKitPromptModal",
@@ -19,8 +19,6 @@ exports.OsContextModule = OsContextModule;
19
19
  OsContextModule["addArtistModal"] = "addArtistModal";
20
20
  OsContextModule["addLocationModal"] = "addLocationModal";
21
21
  OsContextModule["addToListModal"] = "addToListModal";
22
- OsContextModule["artworkFilters"] = "artworkFilters";
23
- OsContextModule["artworkSearch"] = "artworkSearch";
24
22
  OsContextModule["artworkTable"] = "artworkTable";
25
23
  OsContextModule["brandKit"] = "brandKit";
26
24
  OsContextModule["brandKitPromptModal"] = "brandKitPromptModal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.373.0--canary.714.15262.0",
3
+ "version": "4.373.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -1,162 +0,0 @@
1
- import { OsContextModule } from "../Values/OsContextModule";
2
- import { OsOwnerType } from "../Values/OsOwnerType";
3
- import { OsActionType } from ".";
4
- /**
5
- * Schemas describing Art OS Filter, Sort & Search events
6
- * @packageDocumentation
7
- */
8
- /**
9
- * A partner opens the filter drawer via the Filter pill in the inventory or collection view.
10
- *
11
- * This schema describes events sent to Segment from [[OsClickedFilterDrawer]]
12
- *
13
- * @example
14
- * ```
15
- * {
16
- * action: "clickedFilterDrawer",
17
- * context_module: "artworkFilters",
18
- * context_page_owner_type: "inventory",
19
- * value: 2
20
- * }
21
- * ```
22
- */
23
- export interface OsClickedFilterDrawer {
24
- action: OsActionType.clickedFilterDrawer;
25
- context_module: OsContextModule.artworkFilters;
26
- context_page_owner_type: OsOwnerType.inventory | OsOwnerType.collection;
27
- /** Number of active filters when opening the drawer */
28
- value: number;
29
- }
30
- /**
31
- * A partner applies a filter in the filter drawer.
32
- * One event fires per selection; `label` identifies the filter type
33
- * and `value` carries the selected value.
34
- *
35
- * This schema describes events sent to Segment from [[OsAppliedFilter]]
36
- *
37
- * @example Availability filter
38
- * ```
39
- * {
40
- * action: "appliedFilter",
41
- * context_module: "artworkFilters",
42
- * context_page_owner_type: "inventory",
43
- * label: "availability",
44
- * value: "for sale"
45
- * }
46
- * ```
47
- *
48
- * @example Artist filter
49
- * ```
50
- * {
51
- * action: "appliedFilter",
52
- * context_module: "artworkFilters",
53
- * context_page_owner_type: "collection",
54
- * label: "artist",
55
- * value: "<artistId>"
56
- * }
57
- * ```
58
- */
59
- export interface OsAppliedFilter {
60
- action: OsActionType.appliedFilter;
61
- context_module: OsContextModule.artworkFilters;
62
- context_page_owner_type: OsOwnerType.inventory | OsOwnerType.collection;
63
- label: "availability" | "status" | "location" | "artist" | "coa";
64
- value: string;
65
- }
66
- /**
67
- * A partner removes a single filter via the selected-filter pill or the per-section Clear link.
68
- *
69
- * This schema describes events sent to Segment from [[OsRemovedFilter]]
70
- *
71
- * @example
72
- * ```
73
- * {
74
- * action: "removedFilter",
75
- * context_module: "artworkFilters",
76
- * context_page_owner_type: "inventory",
77
- * label: "availability",
78
- * value: "for sale"
79
- * }
80
- * ```
81
- */
82
- export interface OsRemovedFilter {
83
- action: OsActionType.removedFilter;
84
- context_module: OsContextModule.artworkFilters;
85
- context_page_owner_type: OsOwnerType.inventory | OsOwnerType.collection;
86
- label: "availability" | "status" | "location" | "artist" | "coa";
87
- value: string;
88
- }
89
- /**
90
- * A partner clears all active filters via the "Clear all" button.
91
- *
92
- * This schema describes events sent to Segment from [[OsClearedFilters]]
93
- *
94
- * @example
95
- * ```
96
- * {
97
- * action: "clearedFilters",
98
- * context_module: "artworkFilters",
99
- * context_page_owner_type: "inventory",
100
- * value: 3
101
- * }
102
- * ```
103
- */
104
- export interface OsClearedFilters {
105
- action: OsActionType.clearedFilters;
106
- context_module: OsContextModule.artworkFilters;
107
- context_page_owner_type: OsOwnerType.inventory | OsOwnerType.collection;
108
- /** Number of filters cleared */
109
- value: number;
110
- }
111
- /**
112
- * A partner clicks a sortable column header to sort the artwork table.
113
- * A column-header click cycles ascending → descending → default.
114
- *
115
- * This schema describes events sent to Segment from [[OsSortedColumn]]
116
- *
117
- * @example
118
- * ```
119
- * {
120
- * action: "sortedColumn",
121
- * context_module: "artworkTable",
122
- * context_page_owner_type: "inventory",
123
- * label: "date added",
124
- * value: "asc"
125
- * }
126
- * ```
127
- */
128
- export interface OsSortedColumn {
129
- action: OsActionType.sortedColumn;
130
- context_module: OsContextModule.artworkTable;
131
- context_page_owner_type: OsOwnerType.inventory | OsOwnerType.collection;
132
- /** The column being sorted */
133
- label: string;
134
- value: "asc" | "desc" | "default";
135
- }
136
- /**
137
- * A partner submits a keyword search in the artwork search bar.
138
- * Fires on the debounced commit (not per keystroke).
139
- *
140
- * This schema describes events sent to Segment from [[OsSearchedArtworks]]
141
- *
142
- * @example
143
- * ```
144
- * {
145
- * action: "searchedArtworks",
146
- * context_module: "artworkSearch",
147
- * context_page_owner_type: "inventory",
148
- * query: "Kelly",
149
- * value: 42
150
- * }
151
- * ```
152
- */
153
- export interface OsSearchedArtworks {
154
- action: OsActionType.searchedArtworks;
155
- context_module: OsContextModule.artworkSearch;
156
- context_page_owner_type: OsOwnerType.inventory | OsOwnerType.collection;
157
- /** The committed search string */
158
- query: string;
159
- /** Number of results after the search resolves */
160
- value: number;
161
- }
162
- export type OsFilterSortSearch = OsAppliedFilter | OsClearedFilters | OsClickedFilterDrawer | OsRemovedFilter | OsSearchedArtworks | OsSortedColumn;
@@ -1 +0,0 @@
1
- "use strict";