@artsy/cohesion 4.27.0 → 4.31.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 +53 -0
- package/dist/DeprecatedHelpers/index.d.ts +0 -2
- package/dist/DeprecatedHelpers/index.js +0 -12
- package/dist/Schema/Events/Tap.d.ts +2 -0
- package/dist/Schema/Values/ContextModule.d.ts +2 -0
- package/dist/Schema/Values/ContextModule.js +2 -0
- package/dist/Schema/Values/Intent.d.ts +2 -1
- package/dist/Schema/Values/Intent.js +1 -0
- package/package.json +2 -2
- package/dist/DeprecatedHelpers/Click/ClickedArtistSeriesGroup.d.ts +0 -29
- package/dist/DeprecatedHelpers/Click/ClickedArtistSeriesGroup.js +0 -51
- package/dist/DeprecatedHelpers/Click/__tests__/ClickedArtistSeriesGroup.test.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
# v4.31.0 (Mon Jan 31 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- chore: remove deprecated clickedArtistSeriesGroup helper [#298](https://github.com/artsy/cohesion/pull/298) ([@gkartalis](https://github.com/gkartalis))
|
|
6
|
+
|
|
7
|
+
#### 🏠 Internal
|
|
8
|
+
|
|
9
|
+
- chore(deps): update dep typescript from 4.5.4 to v4.5.5 [#297](https://github.com/artsy/cohesion/pull/297) ([@renovate-bot](https://github.com/renovate-bot))
|
|
10
|
+
|
|
11
|
+
#### Authors: 2
|
|
12
|
+
|
|
13
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
14
|
+
- WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# v4.30.0 (Thu Jan 06 2022)
|
|
19
|
+
|
|
20
|
+
#### 🚀 Enhancement
|
|
21
|
+
|
|
22
|
+
- feat(FX-3675): updates in TappedCreateAlert for improved saved search [#293](https://github.com/artsy/cohesion/pull/293) ([@dimatretyak](https://github.com/dimatretyak))
|
|
23
|
+
|
|
24
|
+
#### Authors: 1
|
|
25
|
+
|
|
26
|
+
- Dima Tretyak (Dzmitry Tratsiak) ([@dimatretyak](https://github.com/dimatretyak))
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# v4.29.0 (Wed Jan 05 2022)
|
|
31
|
+
|
|
32
|
+
#### 🚀 Enhancement
|
|
33
|
+
|
|
34
|
+
- feat: add auth intent to create alert [#292](https://github.com/artsy/cohesion/pull/292) ([@dimatretyak](https://github.com/dimatretyak))
|
|
35
|
+
|
|
36
|
+
#### Authors: 1
|
|
37
|
+
|
|
38
|
+
- Dima Tretyak (Dzmitry Tratsiak) ([@dimatretyak](https://github.com/dimatretyak))
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
# v4.28.0 (Wed Jan 05 2022)
|
|
43
|
+
|
|
44
|
+
#### 🚀 Enhancement
|
|
45
|
+
|
|
46
|
+
- chore: add createAlert to ContextModule [#291](https://github.com/artsy/cohesion/pull/291) ([@dimatretyak](https://github.com/dimatretyak))
|
|
47
|
+
|
|
48
|
+
#### Authors: 1
|
|
49
|
+
|
|
50
|
+
- Dima Tretyak (Dzmitry Tratsiak) ([@dimatretyak](https://github.com/dimatretyak))
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
1
54
|
# v4.27.0 (Tue Jan 04 2022)
|
|
2
55
|
|
|
3
56
|
#### 🚀 Enhancement
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from "./AddToCalendar";
|
|
2
2
|
export * from "./Share";
|
|
3
|
-
export * from "./Click/ClickedArtistSeriesGroup";
|
|
4
3
|
export * from "./Click/ClickedCollectionGroup";
|
|
5
4
|
export * from "./Click/ClickedEntityGroup";
|
|
6
5
|
export * from "./Click/ClickedMainArtworkGrid";
|
|
7
|
-
export * from "./Click/ClickedArtistSeriesGroup";
|
|
8
6
|
export * from "./Click/ClickedShowMore";
|
|
9
7
|
export * from "./Conversations/FocusedOnConversationMessageInput";
|
|
10
8
|
export * from "./Conversations/SentConversationMessage";
|
|
@@ -28,18 +28,6 @@ Object.keys(_Share).forEach(function (key) {
|
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
var _ClickedArtistSeriesGroup = require("./Click/ClickedArtistSeriesGroup");
|
|
32
|
-
|
|
33
|
-
Object.keys(_ClickedArtistSeriesGroup).forEach(function (key) {
|
|
34
|
-
if (key === "default" || key === "__esModule") return;
|
|
35
|
-
Object.defineProperty(exports, key, {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function get() {
|
|
38
|
-
return _ClickedArtistSeriesGroup[key];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
31
|
var _ClickedCollectionGroup = require("./Click/ClickedCollectionGroup");
|
|
44
32
|
|
|
45
33
|
Object.keys(_ClickedCollectionGroup).forEach(function (key) {
|
|
@@ -650,6 +650,7 @@ export interface TappedLink {
|
|
|
650
650
|
* context_screen_owner_type: "artist",
|
|
651
651
|
* context_screen_owner_id: "58de681f275b2464fcdde097",
|
|
652
652
|
* context_screen_owner_slug: "anthony-hunter",
|
|
653
|
+
* context_module: "artworkGrid",
|
|
653
654
|
* }
|
|
654
655
|
* ```
|
|
655
656
|
*/
|
|
@@ -658,6 +659,7 @@ export interface TappedCreateAlert {
|
|
|
658
659
|
context_screen_owner_type: ScreenOwnerType;
|
|
659
660
|
context_screen_owner_id?: string;
|
|
660
661
|
context_screen_owner_slug?: string;
|
|
662
|
+
context_module?: ContextModule;
|
|
661
663
|
}
|
|
662
664
|
/**
|
|
663
665
|
* A user taps "Bid" on an artwork page inside an Auction
|
|
@@ -48,6 +48,7 @@ export declare enum ContextModule {
|
|
|
48
48
|
collectionDescription = "collectionDescription",
|
|
49
49
|
collectionRail = "collectionRail",
|
|
50
50
|
consignSubmissionFlow = "consignSubmissionFlow",
|
|
51
|
+
createAlert = "createAlert",
|
|
51
52
|
curatedHighlightsRail = "curatedHighlightsRail",
|
|
52
53
|
currentAuctions = "currentAuctions",
|
|
53
54
|
currentShowsRail = "currentShowsRail",
|
|
@@ -67,6 +68,7 @@ export declare enum ContextModule {
|
|
|
67
68
|
featuredRail = "featuredRail",
|
|
68
69
|
featuredShowsRail = "featuredShowsRail",
|
|
69
70
|
featuredViewingRoomsRail = "featuredViewingRoomsRail",
|
|
71
|
+
filterScreen = "filterScreen",
|
|
70
72
|
footer = "footer",
|
|
71
73
|
galleryBoothRail = "galleryBoothRail",
|
|
72
74
|
galleryTab = "galleryTab",
|
|
@@ -62,6 +62,7 @@ exports.ContextModule = ContextModule;
|
|
|
62
62
|
ContextModule["collectionDescription"] = "collectionDescription";
|
|
63
63
|
ContextModule["collectionRail"] = "collectionRail";
|
|
64
64
|
ContextModule["consignSubmissionFlow"] = "consignSubmissionFlow";
|
|
65
|
+
ContextModule["createAlert"] = "createAlert";
|
|
65
66
|
ContextModule["curatedHighlightsRail"] = "curatedHighlightsRail";
|
|
66
67
|
ContextModule["currentAuctions"] = "currentAuctions";
|
|
67
68
|
ContextModule["currentShowsRail"] = "currentShowsRail";
|
|
@@ -81,6 +82,7 @@ exports.ContextModule = ContextModule;
|
|
|
81
82
|
ContextModule["featuredRail"] = "featuredRail";
|
|
82
83
|
ContextModule["featuredShowsRail"] = "featuredShowsRail";
|
|
83
84
|
ContextModule["featuredViewingRoomsRail"] = "featuredViewingRoomsRail";
|
|
85
|
+
ContextModule["filterScreen"] = "filterScreen";
|
|
84
86
|
ContextModule["footer"] = "footer";
|
|
85
87
|
ContextModule["galleryBoothRail"] = "galleryBoothRail";
|
|
86
88
|
ContextModule["galleryTab"] = "galleryTab";
|
|
@@ -8,6 +8,7 @@ export declare enum Intent {
|
|
|
8
8
|
bid = "bid",
|
|
9
9
|
buyNow = "buyNow",
|
|
10
10
|
consign = "consign",
|
|
11
|
+
createAlert = "createAlert",
|
|
11
12
|
followArtist = "followArtist",
|
|
12
13
|
followPartner = "followPartner",
|
|
13
14
|
followGene = "followGene",
|
|
@@ -33,4 +34,4 @@ export declare enum Intent {
|
|
|
33
34
|
*
|
|
34
35
|
* An action taken that prompted the user to view an authentication form
|
|
35
36
|
*/
|
|
36
|
-
export declare type AuthIntent = Intent.bid | Intent.buyNow | Intent.consign | Intent.followArtist | Intent.followGene | Intent.followPartner | Intent.forgot | Intent.inquire | Intent.login | Intent.seeEstimateAuctionRecords | Intent.seePriceAuctionRecords | Intent.seeRealizedPriceAuctionRecords | Intent.makeOffer | Intent.registerToBid | Intent.requestConditionReport | Intent.saveArtwork | Intent.signup | Intent.viewAuctionResults | Intent.viewArtist | Intent.viewEditorial | Intent.viewFair | Intent.viewViewingRoom;
|
|
37
|
+
export declare type AuthIntent = Intent.bid | Intent.buyNow | Intent.consign | Intent.createAlert | Intent.followArtist | Intent.followGene | Intent.followPartner | Intent.forgot | Intent.inquire | Intent.login | Intent.seeEstimateAuctionRecords | Intent.seePriceAuctionRecords | Intent.seeRealizedPriceAuctionRecords | Intent.makeOffer | Intent.registerToBid | Intent.requestConditionReport | Intent.saveArtwork | Intent.signup | Intent.viewAuctionResults | Intent.viewArtist | Intent.viewEditorial | Intent.viewFair | Intent.viewViewingRoom;
|
|
@@ -24,6 +24,7 @@ exports.Intent = Intent;
|
|
|
24
24
|
Intent["bid"] = "bid";
|
|
25
25
|
Intent["buyNow"] = "buyNow";
|
|
26
26
|
Intent["consign"] = "consign";
|
|
27
|
+
Intent["createAlert"] = "createAlert";
|
|
27
28
|
Intent["followArtist"] = "followArtist";
|
|
28
29
|
Intent["followPartner"] = "followPartner";
|
|
29
30
|
Intent["followGene"] = "followGene";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/cohesion",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.31.0",
|
|
4
4
|
"description": "Analytics schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lint-staged": "10.1.7",
|
|
48
48
|
"prettier": "2.0.5",
|
|
49
49
|
"typedoc": "0.17.7",
|
|
50
|
-
"typescript": "4.5.
|
|
50
|
+
"typescript": "4.5.5"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"core-js": "3"
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ClickedArtistSeriesGroup, ContextModule, PageOwnerType } from "../../Schema";
|
|
2
|
-
export interface ClickedArtistSeriesGroupArgs {
|
|
3
|
-
contextModule: ContextModule;
|
|
4
|
-
contextPageOwnerType: PageOwnerType;
|
|
5
|
-
contextPageOwnerId?: string;
|
|
6
|
-
contextPageOwnerSlug?: string;
|
|
7
|
-
curationBoost?: boolean;
|
|
8
|
-
destinationPageOwnerId: string;
|
|
9
|
-
destinationPageOwnerSlug: string;
|
|
10
|
-
horizontalSlidePosition?: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A user clicks a grouping of artist series (web)
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```
|
|
17
|
-
* clickedArtistSeriesGroup({
|
|
18
|
-
* contextModule: ContextModule.artistSeriesRail
|
|
19
|
-
* contextPageOwnerType: OwnerType.artist,
|
|
20
|
-
* contextPageOwnerId: "5359794d2a1e86c3741001f8",
|
|
21
|
-
* contextPageOwnerSlug: "andy-warhol",
|
|
22
|
-
* curationBoost: true,
|
|
23
|
-
* destinationPageOwnerId: "5359794d1a1e86c3740001f7",
|
|
24
|
-
* destinationPageOwnerSlug: "andy-warhol-skulls",
|
|
25
|
-
* horizontalSlidePosition: 3
|
|
26
|
-
* })
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare const clickedArtistSeriesGroup: ({ contextModule, contextPageOwnerType, contextPageOwnerId, contextPageOwnerSlug, curationBoost, destinationPageOwnerId, destinationPageOwnerSlug, horizontalSlidePosition, }: ClickedArtistSeriesGroupArgs) => ClickedArtistSeriesGroup;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.clickedArtistSeriesGroup = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A user clicks a grouping of artist series (web)
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* clickedArtistSeriesGroup({
|
|
16
|
-
* contextModule: ContextModule.artistSeriesRail
|
|
17
|
-
* contextPageOwnerType: OwnerType.artist,
|
|
18
|
-
* contextPageOwnerId: "5359794d2a1e86c3741001f8",
|
|
19
|
-
* contextPageOwnerSlug: "andy-warhol",
|
|
20
|
-
* curationBoost: true,
|
|
21
|
-
* destinationPageOwnerId: "5359794d1a1e86c3740001f7",
|
|
22
|
-
* destinationPageOwnerSlug: "andy-warhol-skulls",
|
|
23
|
-
* horizontalSlidePosition: 3
|
|
24
|
-
* })
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
var clickedArtistSeriesGroup = function clickedArtistSeriesGroup(_ref) {
|
|
28
|
-
var contextModule = _ref.contextModule,
|
|
29
|
-
contextPageOwnerType = _ref.contextPageOwnerType,
|
|
30
|
-
contextPageOwnerId = _ref.contextPageOwnerId,
|
|
31
|
-
contextPageOwnerSlug = _ref.contextPageOwnerSlug,
|
|
32
|
-
curationBoost = _ref.curationBoost,
|
|
33
|
-
destinationPageOwnerId = _ref.destinationPageOwnerId,
|
|
34
|
-
destinationPageOwnerSlug = _ref.destinationPageOwnerSlug,
|
|
35
|
-
horizontalSlidePosition = _ref.horizontalSlidePosition;
|
|
36
|
-
return {
|
|
37
|
-
action: _Schema.ActionType.clickedArtistSeriesGroup,
|
|
38
|
-
context_module: contextModule,
|
|
39
|
-
context_page_owner_id: contextPageOwnerId,
|
|
40
|
-
context_page_owner_slug: contextPageOwnerSlug,
|
|
41
|
-
context_page_owner_type: contextPageOwnerType,
|
|
42
|
-
curation_boost: curationBoost || false,
|
|
43
|
-
destination_page_owner_id: destinationPageOwnerId,
|
|
44
|
-
destination_page_owner_slug: destinationPageOwnerSlug,
|
|
45
|
-
destination_page_owner_type: _Schema.OwnerType.artistSeries,
|
|
46
|
-
horizontal_slide_position: horizontalSlidePosition,
|
|
47
|
-
type: "thumbnail"
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
exports.clickedArtistSeriesGroup = clickedArtistSeriesGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|