@artsy/cohesion 4.398.0 → 4.400.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 +24 -0
- package/dist/Schema/CMS/Events/HomePage.d.ts +31 -0
- package/dist/Schema/CMS/Events/HomePage.js +1 -0
- package/dist/Schema/CMS/Events/__tests__/HomePage.test.d.ts +1 -0
- package/dist/Schema/CMS/Events/index.d.ts +6 -1
- package/dist/Schema/CMS/Events/index.js +1 -0
- package/dist/Schema/CMS/Values/CmsContextModule.d.ts +1 -0
- package/dist/Schema/CMS/Values/CmsContextModule.js +1 -0
- package/dist/Schema/CMS/Values/CmsOwnerType.d.ts +2 -1
- package/dist/Schema/CMS/Values/CmsOwnerType.js +1 -0
- package/dist/Schema/index.d.ts +1 -0
- package/dist/Schema/index.js +12 -0
- package/dist/Schema/os/Events/InventoryTable.d.ts +41 -4
- package/dist/Schema/os/Events/index.d.ts +4 -0
- package/dist/Schema/os/Events/index.js +1 -0
- package/dist/Schema/os/Values/OsContextModule.d.ts +1 -0
- package/dist/Schema/os/Values/OsContextModule.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v4.400.0 (Tue Sep 15 2026)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat: Adds event schema for clicking actionable insights cms [#747](https://github.com/artsy/cohesion/pull/747) ([@jpotts244](https://github.com/jpotts244))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.399.0 (Wed Sep 09 2026)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- feat: Add artworkEditDrawer context module and clickedEditArtworkButton event [#746](https://github.com/artsy/cohesion/pull/746) ([@olerichter00](https://github.com/olerichter00))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Ole ([@olerichter00](https://github.com/olerichter00))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v4.398.0 (Tue Sep 08 2026)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schemas describing CMS Home page events
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
*/
|
|
5
|
+
import { CmsContextModule } from "../Values/CmsContextModule";
|
|
6
|
+
import { CmsOwnerType } from "../Values/CmsOwnerType";
|
|
7
|
+
import { CmsActionType } from "./index";
|
|
8
|
+
/**
|
|
9
|
+
* A partner clicks an Actionable Insights card on the CMS homepage
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```
|
|
13
|
+
* {
|
|
14
|
+
* action: "clickedActionableInsight",
|
|
15
|
+
* context_module: "actionableInsights",
|
|
16
|
+
* context_page_owner_type: "home",
|
|
17
|
+
* subject: "inquiryResponse" | "publishArtworks" | "orderResponse",
|
|
18
|
+
* variant: "improve" | "positive",
|
|
19
|
+
* destination_path: "/conversations"
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export interface CmsClickedActionableInsight {
|
|
24
|
+
action: CmsActionType.clickedActionableInsight;
|
|
25
|
+
context_module: CmsContextModule.actionableInsights;
|
|
26
|
+
context_page_owner_type: CmsOwnerType.home;
|
|
27
|
+
subject: string;
|
|
28
|
+
variant: string;
|
|
29
|
+
destination_path: string;
|
|
30
|
+
}
|
|
31
|
+
export type CmsHomePage = CmsClickedActionableInsight;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import { CmsArtworkTemplatesPage } from "./ArtworkTemplatesPage";
|
|
|
5
5
|
import { CmsBatchImportFlow } from "./BatchImportFlow";
|
|
6
6
|
import { CmsBulkEditFlow } from "./BulkEditFlow";
|
|
7
7
|
import { CmsCompletenessScoreFlow } from "./CompletenessScoreFlow";
|
|
8
|
+
import { CmsHomePage } from "./HomePage";
|
|
8
9
|
import { CmsOnboardingFlow } from "./OnboardingFlow";
|
|
9
10
|
import { CmsQuickReplyFlow } from "./QuickReplyFlow";
|
|
10
11
|
import { CmsSettingsFlow } from "./SettingsFlow";
|
|
@@ -15,7 +16,7 @@ import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
|
|
|
15
16
|
*
|
|
16
17
|
* Each event describes one ActionType
|
|
17
18
|
*/
|
|
18
|
-
export type CmsEvent = CmsAnalyticsPage | CmsArtistFlow | CmsArtworkFilter | CmsArtworkTemplatesPage | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
|
|
19
|
+
export type CmsEvent = CmsAnalyticsPage | CmsArtistFlow | CmsArtworkFilter | CmsArtworkTemplatesPage | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsHomePage | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
|
|
19
20
|
/**
|
|
20
21
|
* List of all CMS actions
|
|
21
22
|
*
|
|
@@ -54,6 +55,10 @@ export declare enum CmsActionType {
|
|
|
54
55
|
* Corresponds to {@link CmsArtworkTemplatesPage}
|
|
55
56
|
*/
|
|
56
57
|
clickedArtworkNavigationTab = "clickedArtworkNavigationTab",
|
|
58
|
+
/**
|
|
59
|
+
* Corresponds to {@link CmsHomePage}
|
|
60
|
+
*/
|
|
61
|
+
clickedActionableInsight = "clickedActionableInsight",
|
|
57
62
|
/**
|
|
58
63
|
* Corresponds to {@link CmsClickedFeaturedInEditorialBadge}
|
|
59
64
|
*/
|
|
@@ -28,6 +28,7 @@ exports.CmsActionType = CmsActionType;
|
|
|
28
28
|
CmsActionType["bulkEditFailed"] = "bulkEditFailed";
|
|
29
29
|
CmsActionType["changedTimePeriod"] = "changedTimePeriod";
|
|
30
30
|
CmsActionType["clickedArtworkNavigationTab"] = "clickedArtworkNavigationTab";
|
|
31
|
+
CmsActionType["clickedActionableInsight"] = "clickedActionableInsight";
|
|
31
32
|
CmsActionType["clickedFeaturedInEditorialBadge"] = "clickedFeaturedInEditorialBadge";
|
|
32
33
|
CmsActionType["clickedGraphCTA"] = "clickedGraphCTA";
|
|
33
34
|
CmsActionType["clickedMostViewed"] = "clickedMostViewed";
|
|
@@ -15,6 +15,7 @@ var CmsContextModule;
|
|
|
15
15
|
exports.CmsContextModule = CmsContextModule;
|
|
16
16
|
|
|
17
17
|
(function (CmsContextModule) {
|
|
18
|
+
CmsContextModule["actionableInsights"] = "actionableInsights";
|
|
18
19
|
CmsContextModule["addArtworkToShow"] = "Add artwork to show";
|
|
19
20
|
CmsContextModule["artistList"] = "artistList";
|
|
20
21
|
CmsContextModule["artistShow"] = "artistShow";
|
|
@@ -21,4 +21,5 @@ exports.CmsOwnerType = CmsOwnerType;
|
|
|
21
21
|
CmsOwnerType["batchImport"] = "batchImport";
|
|
22
22
|
CmsOwnerType["batchImportArtistMatching"] = "batchImportArtistMatching";
|
|
23
23
|
CmsOwnerType["settings"] = "settings";
|
|
24
|
+
CmsOwnerType["home"] = "home";
|
|
24
25
|
})(CmsOwnerType || (exports.CmsOwnerType = CmsOwnerType = {}));
|
package/dist/Schema/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from "./CMS/Events/ArtworkFilter";
|
|
|
42
42
|
export * from "./CMS/Events/BatchImportFlow";
|
|
43
43
|
export * from "./CMS/Events/BulkEditFlow";
|
|
44
44
|
export * from "./CMS/Events/CompletenessScoreFlow";
|
|
45
|
+
export * from "./CMS/Events/HomePage";
|
|
45
46
|
export * from "./CMS/Events/QuickReplyFlow";
|
|
46
47
|
export * from "./CMS/Events/SettingsFlow";
|
|
47
48
|
export * from "./CMS/Events/ShowFlow";
|
package/dist/Schema/index.js
CHANGED
|
@@ -460,6 +460,18 @@ Object.keys(_CompletenessScoreFlow).forEach(function (key) {
|
|
|
460
460
|
});
|
|
461
461
|
});
|
|
462
462
|
|
|
463
|
+
var _HomePage = require("./CMS/Events/HomePage");
|
|
464
|
+
|
|
465
|
+
Object.keys(_HomePage).forEach(function (key) {
|
|
466
|
+
if (key === "default" || key === "__esModule") return;
|
|
467
|
+
Object.defineProperty(exports, key, {
|
|
468
|
+
enumerable: true,
|
|
469
|
+
get: function get() {
|
|
470
|
+
return _HomePage[key];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
|
|
463
475
|
var _QuickReplyFlow = require("./CMS/Events/QuickReplyFlow");
|
|
464
476
|
|
|
465
477
|
Object.keys(_QuickReplyFlow).forEach(function (key) {
|
|
@@ -52,9 +52,33 @@ export interface OsClickedEditionSetRow {
|
|
|
52
52
|
edition_set_id: string;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* A partner
|
|
55
|
+
* A partner clicks the "Edit artwork" button on an inventory table row to open
|
|
56
|
+
* the Edit Artwork drawer.
|
|
57
|
+
*
|
|
58
|
+
* This schema describes events sent to Segment from [[OsClickedEditArtworkButton]]
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```
|
|
62
|
+
* {
|
|
63
|
+
* action: "clickedEditArtworkButton",
|
|
64
|
+
* context_module: "artworkEditDrawer",
|
|
65
|
+
* context_page_owner_type: "inventory",
|
|
66
|
+
* artwork_id: "abc123"
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export interface OsClickedEditArtworkButton {
|
|
71
|
+
action: OsActionType.clickedEditArtworkButton;
|
|
72
|
+
context_module: OsContextModule.artworkEditDrawer;
|
|
73
|
+
context_page_owner_type: OsOwnerType;
|
|
74
|
+
artwork_id: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A partner edits a field inline in the inventory table, or in the Edit Artwork
|
|
78
|
+
* drawer opened from a table row.
|
|
56
79
|
* Fires on mutation success (not on the toast render).
|
|
57
|
-
* All field edits share this single event; use `field` to distinguish them
|
|
80
|
+
* All field edits share this single event; use `field` to distinguish them, and
|
|
81
|
+
* `context_module` to distinguish which surface the edit was made from.
|
|
58
82
|
*
|
|
59
83
|
* This schema describes events sent to Segment from [[OsEditedArtworkField]]
|
|
60
84
|
*
|
|
@@ -97,10 +121,23 @@ export interface OsClickedEditionSetRow {
|
|
|
97
121
|
* matched_id: "artist-internal-id"
|
|
98
122
|
* }
|
|
99
123
|
* ```
|
|
124
|
+
*
|
|
125
|
+
* @example Edited from the Edit Artwork drawer
|
|
126
|
+
* ```
|
|
127
|
+
* {
|
|
128
|
+
* action: "editedArtworkField",
|
|
129
|
+
* context_module: "artworkEditDrawer",
|
|
130
|
+
* context_page_owner_type: "inventory",
|
|
131
|
+
* artwork_id: "abc123",
|
|
132
|
+
* field: "title",
|
|
133
|
+
* old_value: "Untitled",
|
|
134
|
+
* new_value: "Blue"
|
|
135
|
+
* }
|
|
136
|
+
* ```
|
|
100
137
|
*/
|
|
101
138
|
export interface OsEditedArtworkField {
|
|
102
139
|
action: OsActionType.editedArtworkField;
|
|
103
|
-
context_module: OsContextModule.artworkTable;
|
|
140
|
+
context_module: OsContextModule.artworkTable | OsContextModule.artworkEditDrawer;
|
|
104
141
|
context_page_owner_type: OsOwnerType;
|
|
105
142
|
artwork_id: string;
|
|
106
143
|
/** Present only for edition-set variant rows in the Artsy CMS sub-row */
|
|
@@ -385,4 +422,4 @@ export interface OsReorderedInventoryTableColumns {
|
|
|
385
422
|
/** Full resulting column key order (reorderable columns only, pinned columns excluded) */
|
|
386
423
|
new_order: string[];
|
|
387
424
|
}
|
|
388
|
-
export type OsInventoryTable = ChangedInventoryTableColumnVisibility | EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
|
|
425
|
+
export type OsInventoryTable = ChangedInventoryTableColumnVisibility | EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditArtworkButton | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
|
|
@@ -100,6 +100,10 @@ export declare enum OsActionType {
|
|
|
100
100
|
* Corresponds to {@link OsInstagramEditor}
|
|
101
101
|
*/
|
|
102
102
|
clickedConnectModal = "clickedConnectModal",
|
|
103
|
+
/**
|
|
104
|
+
* Corresponds to {@link OsClickedEditArtworkButton}
|
|
105
|
+
*/
|
|
106
|
+
clickedEditArtworkButton = "clickedEditArtworkButton",
|
|
103
107
|
/**
|
|
104
108
|
* Corresponds to {@link OsInventoryTable}
|
|
105
109
|
*/
|
|
@@ -40,6 +40,7 @@ exports.OsActionType = OsActionType;
|
|
|
40
40
|
OsActionType["clickedConnectAccountModal"] = "clickedConnectAccountModal";
|
|
41
41
|
OsActionType["clickedFilterDrawer"] = "clickedFilterDrawer";
|
|
42
42
|
OsActionType["clickedConnectModal"] = "clickedConnectModal";
|
|
43
|
+
OsActionType["clickedEditArtworkButton"] = "clickedEditArtworkButton";
|
|
43
44
|
OsActionType["clickedEditionSetRow"] = "clickedEditionSetRow";
|
|
44
45
|
OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
|
|
45
46
|
OsActionType["clickedExitEditor"] = "clickedExitEditor";
|
|
@@ -10,6 +10,7 @@ export declare enum OsContextModule {
|
|
|
10
10
|
addArtworkDropdown = "addArtworkDropdown",
|
|
11
11
|
addLocationModal = "addLocationModal",
|
|
12
12
|
addToListModal = "addToListModal",
|
|
13
|
+
artworkEditDrawer = "artworkEditDrawer",
|
|
13
14
|
artworkFilters = "artworkFilters",
|
|
14
15
|
artworkSearch = "artworkSearch",
|
|
15
16
|
artworkTable = "artworkTable",
|
|
@@ -20,6 +20,7 @@ exports.OsContextModule = OsContextModule;
|
|
|
20
20
|
OsContextModule["addArtworkDropdown"] = "addArtworkDropdown";
|
|
21
21
|
OsContextModule["addLocationModal"] = "addLocationModal";
|
|
22
22
|
OsContextModule["addToListModal"] = "addToListModal";
|
|
23
|
+
OsContextModule["artworkEditDrawer"] = "artworkEditDrawer";
|
|
23
24
|
OsContextModule["artworkFilters"] = "artworkFilters";
|
|
24
25
|
OsContextModule["artworkSearch"] = "artworkSearch";
|
|
25
26
|
OsContextModule["artworkTable"] = "artworkTable";
|