@artsy/cohesion 4.367.0 → 4.368.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.368.0 (Thu Jun 25 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: Add tracking schema for OS Materials Editor [#710](https://github.com/artsy/cohesion/pull/710) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### Authors: 1
8
+
9
+ - Ole ([@olerichter00](https://github.com/olerichter00))
10
+
11
+ ---
12
+
1
13
  # v4.367.0 (Thu Jun 25 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -78,6 +78,7 @@ export declare enum ContextModule {
78
78
  basedOnYourRecentSavesRail = "basedOnYourRecentSavesRail",
79
79
  boothsTab = "boothsTab",
80
80
  bottomTabs = "bottomTabs",
81
+ brandKitPromptModal = "brandKitPromptModal",
81
82
  browseFair = "browseFair",
82
83
  bulkEditDrawer = "bulkEditDrawer",
83
84
  categoryRail = "categoryRail",
@@ -92,6 +92,7 @@ exports.ContextModule = ContextModule;
92
92
  ContextModule["basedOnYourRecentSavesRail"] = "basedOnYourRecentSavesRail";
93
93
  ContextModule["boothsTab"] = "boothsTab";
94
94
  ContextModule["bottomTabs"] = "bottomTabs";
95
+ ContextModule["brandKitPromptModal"] = "brandKitPromptModal";
95
96
  ContextModule["browseFair"] = "browseFair";
96
97
  ContextModule["bulkEditDrawer"] = "bulkEditDrawer";
97
98
  ContextModule["categoryRail"] = "categoryRail";
@@ -148,6 +148,7 @@ export declare enum OwnerType {
148
148
  shows = "shows",
149
149
  signup = "signup",
150
150
  similarToRecentlyViewed = "similarToRecentlyViewed",
151
+ studioMaterials = "studioMaterials",
151
152
  submitArtworkStepAddDetails = "submitArtworkStepAddDetails",
152
153
  submitArtworkStepAddDimensions = "submitArtworkStepAddDimensions",
153
154
  submitArtworkStepAddPhoneNumber = "submitArtworkStepAddPhoneNumber",
@@ -166,6 +166,7 @@ exports.OwnerType = OwnerType;
166
166
  OwnerType["shows"] = "shows";
167
167
  OwnerType["signup"] = "signup";
168
168
  OwnerType["similarToRecentlyViewed"] = "similarToRecentlyViewed";
169
+ OwnerType["studioMaterials"] = "studioMaterials";
169
170
  OwnerType["submitArtworkStepAddDetails"] = "submitArtworkStepAddDetails";
170
171
  OwnerType["submitArtworkStepAddDimensions"] = "submitArtworkStepAddDimensions";
171
172
  OwnerType["submitArtworkStepAddPhoneNumber"] = "submitArtworkStepAddPhoneNumber";
@@ -53,9 +53,10 @@ export * from "./CMS/Events/UploadArtworkFlow";
53
53
  export * from "./os/Events";
54
54
  export * from "./os/Values/OsContextModule";
55
55
  export * from "./os/Values/OsOwnerType";
56
- export * from "./os/Events/ConnectedAppsFlow";
56
+ export * from "./os/Events/BrandKit";
57
57
  export * from "./os/Events/Click";
58
+ export * from "./os/Events/ConnectedAppsFlow";
58
59
  export * from "./os/Events/InventoryTable";
60
+ export * from "./os/Events/MaterialsEditor";
59
61
  export * from "./os/Events/MultiAddFlow";
60
- export * from "./os/Events/BrandKit";
61
62
  export * from "./os/Events/Submit";
@@ -556,14 +556,14 @@ Object.keys(_OsOwnerType).forEach(function (key) {
556
556
  });
557
557
  });
558
558
 
559
- var _ConnectedAppsFlow = require("./os/Events/ConnectedAppsFlow");
559
+ var _BrandKit = require("./os/Events/BrandKit");
560
560
 
561
- Object.keys(_ConnectedAppsFlow).forEach(function (key) {
561
+ Object.keys(_BrandKit).forEach(function (key) {
562
562
  if (key === "default" || key === "__esModule") return;
563
563
  Object.defineProperty(exports, key, {
564
564
  enumerable: true,
565
565
  get: function get() {
566
- return _ConnectedAppsFlow[key];
566
+ return _BrandKit[key];
567
567
  }
568
568
  });
569
569
  });
@@ -580,6 +580,18 @@ Object.keys(_Click2).forEach(function (key) {
580
580
  });
581
581
  });
582
582
 
583
+ var _ConnectedAppsFlow = require("./os/Events/ConnectedAppsFlow");
584
+
585
+ Object.keys(_ConnectedAppsFlow).forEach(function (key) {
586
+ if (key === "default" || key === "__esModule") return;
587
+ Object.defineProperty(exports, key, {
588
+ enumerable: true,
589
+ get: function get() {
590
+ return _ConnectedAppsFlow[key];
591
+ }
592
+ });
593
+ });
594
+
583
595
  var _InventoryTable = require("./os/Events/InventoryTable");
584
596
 
585
597
  Object.keys(_InventoryTable).forEach(function (key) {
@@ -592,26 +604,26 @@ Object.keys(_InventoryTable).forEach(function (key) {
592
604
  });
593
605
  });
594
606
 
595
- var _MultiAddFlow = require("./os/Events/MultiAddFlow");
607
+ var _MaterialsEditor = require("./os/Events/MaterialsEditor");
596
608
 
597
- Object.keys(_MultiAddFlow).forEach(function (key) {
609
+ Object.keys(_MaterialsEditor).forEach(function (key) {
598
610
  if (key === "default" || key === "__esModule") return;
599
611
  Object.defineProperty(exports, key, {
600
612
  enumerable: true,
601
613
  get: function get() {
602
- return _MultiAddFlow[key];
614
+ return _MaterialsEditor[key];
603
615
  }
604
616
  });
605
617
  });
606
618
 
607
- var _BrandKit = require("./os/Events/BrandKit");
619
+ var _MultiAddFlow = require("./os/Events/MultiAddFlow");
608
620
 
609
- Object.keys(_BrandKit).forEach(function (key) {
621
+ Object.keys(_MultiAddFlow).forEach(function (key) {
610
622
  if (key === "default" || key === "__esModule") return;
611
623
  Object.defineProperty(exports, key, {
612
624
  enumerable: true,
613
625
  get: function get() {
614
- return _BrandKit[key];
626
+ return _MultiAddFlow[key];
615
627
  }
616
628
  });
617
629
  });
@@ -0,0 +1,88 @@
1
+ import { OsContextModule } from "../Values/OsContextModule";
2
+ import { OsOwnerType } from "../Values/OsOwnerType";
3
+ import { OsActionType } from ".";
4
+ /**
5
+ * Schemas describing Art OS Materials (Tearsheet / Checklist) events
6
+ * @packageDocumentation
7
+ */
8
+ /**
9
+ * A partner clicks "Exit" in the Materials editor header to leave the editor.
10
+ *
11
+ * This schema describes events sent to Segment from [[OsClickedExitEditor]]
12
+ *
13
+ * @example
14
+ * ```
15
+ * {
16
+ * action: "clickedExitEditor",
17
+ * context_module: "editorHeader",
18
+ * context_page_owner_type: "studioMaterials",
19
+ * label: "materials editor"
20
+ * }
21
+ * ```
22
+ */
23
+ export interface OsClickedExitEditor {
24
+ action: OsActionType.clickedExitEditor;
25
+ context_module: OsContextModule.editorHeader;
26
+ context_page_owner_type: OsOwnerType.studioMaterials;
27
+ label: string;
28
+ }
29
+ /**
30
+ * A partner clicks a button in the Brand Kit prompt modal (the modal suggesting they
31
+ * create a Brand Kit). `value` distinguishes the dismiss action from the create action.
32
+ *
33
+ * This schema describes events sent to Segment from [[OsClickedBrandKitModal]]
34
+ *
35
+ * @example
36
+ * ```
37
+ * {
38
+ * action: "clickedBrandKitModal",
39
+ * context_module: "brandKitPromptModal",
40
+ * context_page_owner_type: "studioMaterials",
41
+ * label: "materials brand kit modal",
42
+ * value: "create"
43
+ * }
44
+ * ```
45
+ */
46
+ export interface OsClickedBrandKitModal {
47
+ action: OsActionType.clickedBrandKitModal;
48
+ context_module: OsContextModule.brandKitPromptModal;
49
+ context_page_owner_type: OsOwnerType.studioMaterials;
50
+ label: string;
51
+ value: "cancel" | "create";
52
+ }
53
+ /**
54
+ * A partner creates a material (Tearsheet or Checklist PDF) from the Materials editor.
55
+ *
56
+ * `content` is a generic catch-all holding the artwork detail fields included in the
57
+ * generated material (e.g. only the fields whose checkboxes are selected). It is kept
58
+ * generic on purpose — parsed ad-hoc downstream rather than maintained as a rigid set
59
+ * of top-level fields — so the same event can serve Materials, Mailchimp, Instagram, etc.
60
+ *
61
+ * This schema describes events sent to Segment from [[OsCreatedStudioContent]]
62
+ *
63
+ * @example
64
+ * ```
65
+ * {
66
+ * action: "createdStudioContent",
67
+ * context_module: "materialsEditor",
68
+ * context_page_owner_type: "studioMaterials",
69
+ * value: "tearsheet",
70
+ * brand_kit: true,
71
+ * content: {
72
+ * artworkTitle: "Xpto",
73
+ * artistNames: ["Jane Doe", "John Doe"],
74
+ * date: "2025"
75
+ * }
76
+ * }
77
+ * ```
78
+ */
79
+ export interface OsCreatedStudioContent {
80
+ action: OsActionType.createdStudioContent;
81
+ context_module: OsContextModule.materialsEditor;
82
+ context_page_owner_type: OsOwnerType.studioMaterials;
83
+ value: "tearsheet" | "checklist";
84
+ brand_kit: boolean;
85
+ /** Generic catch-all for the artwork detail fields included in the generated material */
86
+ content: Record<string, unknown>;
87
+ }
88
+ export type OsMaterialsEditor = OsClickedBrandKitModal | OsClickedExitEditor | OsCreatedStudioContent;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -2,6 +2,7 @@ import { ClickedAddBrandKitFile, ClickedBrandKitColor, ClickedBrandKitFont, Clic
2
2
  import { OsClickEvent } from "./Click";
3
3
  import { OsConnectedAppsFlow } from "./ConnectedAppsFlow";
4
4
  import { OsInventoryTable } from "./InventoryTable";
5
+ import { OsMaterialsEditor } from "./MaterialsEditor";
5
6
  import { OsMultiAddFlow } from "./MultiAddFlow";
6
7
  import { OsSubmitEvent } from "./Submit";
7
8
  /**
@@ -9,7 +10,7 @@ import { OsSubmitEvent } from "./Submit";
9
10
  *
10
11
  * Each event describes one ActionType
11
12
  */
12
- export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsInventoryTable | OsMultiAddFlow | OsSubmitEvent;
13
+ export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsInventoryTable | OsMaterialsEditor | OsSubmitEvent;
13
14
  /**
14
15
  * List of all Art OS actions
15
16
  *
@@ -37,7 +38,7 @@ export declare enum OsActionType {
37
38
  */
38
39
  cancelledArtworkImport = "cancelledArtworkImport",
39
40
  /**
40
- * Corresponds to {@link ClickedActionsDropdown}
41
+ * Corresponds to {@link OsClickedActionsDropdown}
41
42
  */
42
43
  clickedActionsDropdown = "clickedActionsDropdown",
43
44
  /**
@@ -61,10 +62,18 @@ export declare enum OsActionType {
61
62
  * Corresponds to {@link ClickedConnectAccountModal}
62
63
  */
63
64
  clickedConnectAccountModal = "clickedConnectAccountModal",
65
+ /**
66
+ * Corresponds to {@link OsClickedBrandKitModal}
67
+ */
68
+ clickedBrandKitModal = "clickedBrandKitModal",
64
69
  /**
65
70
  * Corresponds to {@link ClickedExitDropZone}
66
71
  */
67
72
  clickedExitDropZone = "clickedExitDropZone",
73
+ /**
74
+ * Corresponds to {@link OsClickedExitEditor}
75
+ */
76
+ clickedExitEditor = "clickedExitEditor",
68
77
  /**
69
78
  * Corresponds to {@link OsInventoryTable}
70
79
  */
@@ -77,6 +86,10 @@ export declare enum OsActionType {
77
86
  * Corresponds to {@link CreatedImportedArtworks}
78
87
  */
79
88
  createdImportedArtworks = "createdImportedArtworks",
89
+ /**
90
+ * Corresponds to {@link OsCreatedStudioContent}
91
+ */
92
+ createdStudioContent = "createdStudioContent",
80
93
  /**
81
94
  * Corresponds to {@link DeletedArtwork}
82
95
  */
@@ -32,10 +32,13 @@ exports.OsActionType = OsActionType;
32
32
  OsActionType["clickedEditionSetRow"] = "clickedEditionSetRow";
33
33
  OsActionType["clickedConnectAccount"] = "clickedConnectAccount";
34
34
  OsActionType["clickedConnectAccountModal"] = "clickedConnectAccountModal";
35
+ OsActionType["clickedBrandKitModal"] = "clickedBrandKitModal";
35
36
  OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
37
+ OsActionType["clickedExitEditor"] = "clickedExitEditor";
36
38
  OsActionType["clickedImagesModal"] = "clickedImagesModal";
37
39
  OsActionType["completedArtworkImport"] = "completedArtworkImport";
38
40
  OsActionType["createdImportedArtworks"] = "createdImportedArtworks";
41
+ OsActionType["createdStudioContent"] = "createdStudioContent";
39
42
  OsActionType["deletedArtwork"] = "deletedArtwork";
40
43
  OsActionType["distributedArtworks"] = "distributedArtworks";
41
44
  OsActionType["editedArtworkField"] = "editedArtworkField";
@@ -5,18 +5,21 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  export declare enum OsContextModule {
8
+ actionsDropdown = "actionsDropdown",
8
9
  addArtistModal = "addArtistModal",
9
10
  addLocationModal = "addLocationModal",
10
- actionsDropdown = "actionsDropdown",
11
11
  artworkTable = "artworkTable",
12
+ brandKit = "brandKit",
13
+ brandKitPromptModal = "brandKitPromptModal",
12
14
  bulkEditDrawer = "bulkEditDrawer",
13
15
  connectedAppsList = "connectedAppsList",
14
16
  connectModal = "connectModal",
15
17
  deleteModal = "deleteModal",
16
18
  distributeModal = "distributeModal",
17
19
  documentsModal = "documentsModal",
20
+ editorHeader = "editorHeader",
18
21
  imagesModal = "imagesModal",
22
+ materialsEditor = "materialsEditor",
19
23
  multiAdd = "multiAdd",
20
- multiAddReview = "multiAddReview",
21
- brandKit = "brandKit"
24
+ multiAddReview = "multiAddReview"
22
25
  }
@@ -15,18 +15,21 @@ var OsContextModule;
15
15
  exports.OsContextModule = OsContextModule;
16
16
 
17
17
  (function (OsContextModule) {
18
+ OsContextModule["actionsDropdown"] = "actionsDropdown";
18
19
  OsContextModule["addArtistModal"] = "addArtistModal";
19
20
  OsContextModule["addLocationModal"] = "addLocationModal";
20
- OsContextModule["actionsDropdown"] = "actionsDropdown";
21
21
  OsContextModule["artworkTable"] = "artworkTable";
22
+ OsContextModule["brandKit"] = "brandKit";
23
+ OsContextModule["brandKitPromptModal"] = "brandKitPromptModal";
22
24
  OsContextModule["bulkEditDrawer"] = "bulkEditDrawer";
23
25
  OsContextModule["connectedAppsList"] = "connectedAppsList";
24
26
  OsContextModule["connectModal"] = "connectModal";
25
27
  OsContextModule["deleteModal"] = "deleteModal";
26
28
  OsContextModule["distributeModal"] = "distributeModal";
27
29
  OsContextModule["documentsModal"] = "documentsModal";
30
+ OsContextModule["editorHeader"] = "editorHeader";
28
31
  OsContextModule["imagesModal"] = "imagesModal";
32
+ OsContextModule["materialsEditor"] = "materialsEditor";
29
33
  OsContextModule["multiAdd"] = "multiAdd";
30
34
  OsContextModule["multiAddReview"] = "multiAddReview";
31
- OsContextModule["brandKit"] = "brandKit";
32
35
  })(OsContextModule || (exports.OsContextModule = OsContextModule = {}));
@@ -5,7 +5,8 @@
5
5
  */
6
6
  export declare enum OsOwnerType {
7
7
  connectedApps = "connectedApps",
8
- list = "list",
9
8
  inventory = "inventory",
10
- studio = "studio"
9
+ list = "list",
10
+ studio = "studio",
11
+ studioMaterials = "studioMaterials"
11
12
  }
@@ -15,7 +15,8 @@ exports.OsOwnerType = OsOwnerType;
15
15
 
16
16
  (function (OsOwnerType) {
17
17
  OsOwnerType["connectedApps"] = "connectedApps";
18
- OsOwnerType["list"] = "list";
19
18
  OsOwnerType["inventory"] = "inventory";
19
+ OsOwnerType["list"] = "list";
20
20
  OsOwnerType["studio"] = "studio";
21
+ OsOwnerType["studioMaterials"] = "studioMaterials";
21
22
  })(OsOwnerType || (exports.OsOwnerType = OsOwnerType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.367.0",
3
+ "version": "4.368.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {