@artsy/cohesion 4.9.0 → 4.13.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 +62 -0
- package/dist/DeprecatedHelpers/index.d.ts +0 -3
- package/dist/DeprecatedHelpers/index.js +0 -36
- package/dist/Schema/Values/ContextModule.d.ts +1 -0
- package/dist/Schema/Values/ContextModule.js +1 -0
- package/package.json +3 -3
- package/dist/DeprecatedHelpers/Authentication/AuthImpression.d.ts +0 -23
- package/dist/DeprecatedHelpers/Authentication/AuthImpression.js +0 -42
- package/dist/DeprecatedHelpers/Authentication/ResetYourPassword.d.ts +0 -26
- package/dist/DeprecatedHelpers/Authentication/ResetYourPassword.js +0 -46
- package/dist/DeprecatedHelpers/Authentication/SuccessfullyLoggedIn.d.ts +0 -28
- package/dist/DeprecatedHelpers/Authentication/SuccessfullyLoggedIn.js +0 -49
- package/dist/DeprecatedHelpers/Authentication/__tests__/AuthImpression.test.d.ts +0 -1
- package/dist/DeprecatedHelpers/Authentication/__tests__/ResetYourPassword.test.d.ts +0 -1
- package/dist/DeprecatedHelpers/Authentication/__tests__/SuccessfullyLoggedIn.test.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
+
# v4.13.0 (Wed Oct 13 2021)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- refactor(FX-2978): remove authImpression deprecated helper [#248](https://github.com/artsy/cohesion/pull/248) ([@araujobarret](https://github.com/araujobarret))
|
|
6
|
+
|
|
7
|
+
#### 🏠 Internal
|
|
8
|
+
|
|
9
|
+
- chore(deps): update dep typescript from 4.4.3 to v4.4.4 [#254](https://github.com/artsy/cohesion/pull/254) ([@renovate-bot](https://github.com/renovate-bot))
|
|
10
|
+
- chore(deps): update auto orb from 1.4.0 to v2 [#250](https://github.com/artsy/cohesion/pull/250) ([@renovate-bot](https://github.com/renovate-bot) [@renovate[bot]](https://github.com/renovate[bot]))
|
|
11
|
+
|
|
12
|
+
#### Authors: 3
|
|
13
|
+
|
|
14
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
15
|
+
- Carlos Alberto de Araujo Barreto ([@araujobarret](https://github.com/araujobarret))
|
|
16
|
+
- WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# v4.12.0 (Mon Oct 11 2021)
|
|
21
|
+
|
|
22
|
+
#### 🚀 Enhancement
|
|
23
|
+
|
|
24
|
+
- refactor(FX-3342): remove successfullyloggedin deprecated helper [#253](https://github.com/artsy/cohesion/pull/253) ([@gkartalis](https://github.com/gkartalis) [@pvinis](https://github.com/pvinis))
|
|
25
|
+
|
|
26
|
+
#### Authors: 2
|
|
27
|
+
|
|
28
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
29
|
+
- Pavlos Vinieratos ([@pvinis](https://github.com/pvinis))
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# v4.11.0 (Mon Oct 11 2021)
|
|
34
|
+
|
|
35
|
+
#### 🚀 Enhancement
|
|
36
|
+
|
|
37
|
+
- refactor(FX-3341): remove resetYourPassword deprecated helper [#252](https://github.com/artsy/cohesion/pull/252) ([@gkartalis](https://github.com/gkartalis))
|
|
38
|
+
|
|
39
|
+
#### 🏠 Internal
|
|
40
|
+
|
|
41
|
+
- chore(deps): update dep @artsy/auto-config from 1.0.2 to v1.1.0 [#237](https://github.com/artsy/cohesion/pull/237) ([@renovate-bot](https://github.com/renovate-bot) [@renovate[bot]](https://github.com/renovate[bot]))
|
|
42
|
+
|
|
43
|
+
#### Authors: 3
|
|
44
|
+
|
|
45
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
46
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
47
|
+
- WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
# v4.10.0 (Thu Oct 07 2021)
|
|
52
|
+
|
|
53
|
+
#### 🚀 Enhancement
|
|
54
|
+
|
|
55
|
+
- Adding showsRail in Context module [#249](https://github.com/artsy/cohesion/pull/249) ([@rajsam003](https://github.com/rajsam003))
|
|
56
|
+
|
|
57
|
+
#### Authors: 1
|
|
58
|
+
|
|
59
|
+
- Sam Raj ([@rajsam003](https://github.com/rajsam003))
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
1
63
|
# v4.9.0 (Wed Oct 06 2021)
|
|
2
64
|
|
|
3
65
|
#### 🚀 Enhancement
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export * from "./AddToCalendar";
|
|
2
2
|
export * from "./Share";
|
|
3
|
-
export * from "./Authentication/AuthImpression";
|
|
4
3
|
export * from "./Authentication/CreatedAccount";
|
|
5
|
-
export * from "./Authentication/ResetYourPassword";
|
|
6
|
-
export * from "./Authentication/SuccessfullyLoggedIn";
|
|
7
4
|
export * from "./Click/ClickedAppDownload";
|
|
8
5
|
export * from "./Click/ClickedArticleGroup";
|
|
9
6
|
export * from "./Click/ClickedArtistSeriesGroup";
|
|
@@ -28,18 +28,6 @@ Object.keys(_Share).forEach(function (key) {
|
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
var _AuthImpression = require("./Authentication/AuthImpression");
|
|
32
|
-
|
|
33
|
-
Object.keys(_AuthImpression).forEach(function (key) {
|
|
34
|
-
if (key === "default" || key === "__esModule") return;
|
|
35
|
-
Object.defineProperty(exports, key, {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function get() {
|
|
38
|
-
return _AuthImpression[key];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
31
|
var _CreatedAccount = require("./Authentication/CreatedAccount");
|
|
44
32
|
|
|
45
33
|
Object.keys(_CreatedAccount).forEach(function (key) {
|
|
@@ -52,30 +40,6 @@ Object.keys(_CreatedAccount).forEach(function (key) {
|
|
|
52
40
|
});
|
|
53
41
|
});
|
|
54
42
|
|
|
55
|
-
var _ResetYourPassword = require("./Authentication/ResetYourPassword");
|
|
56
|
-
|
|
57
|
-
Object.keys(_ResetYourPassword).forEach(function (key) {
|
|
58
|
-
if (key === "default" || key === "__esModule") return;
|
|
59
|
-
Object.defineProperty(exports, key, {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function get() {
|
|
62
|
-
return _ResetYourPassword[key];
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
var _SuccessfullyLoggedIn = require("./Authentication/SuccessfullyLoggedIn");
|
|
68
|
-
|
|
69
|
-
Object.keys(_SuccessfullyLoggedIn).forEach(function (key) {
|
|
70
|
-
if (key === "default" || key === "__esModule") return;
|
|
71
|
-
Object.defineProperty(exports, key, {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function get() {
|
|
74
|
-
return _SuccessfullyLoggedIn[key];
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
43
|
var _ClickedAppDownload = require("./Click/ClickedAppDownload");
|
|
80
44
|
|
|
81
45
|
Object.keys(_ClickedAppDownload).forEach(function (key) {
|
|
@@ -129,6 +129,7 @@ export declare enum ContextModule {
|
|
|
129
129
|
sellHeader = "sellHeader",
|
|
130
130
|
showHeader = "showHeader",
|
|
131
131
|
showInfo = "showInfo",
|
|
132
|
+
showsRail = "showsRail",
|
|
132
133
|
similarToWorksYouSavedRail = "similarToWorksYouSavedRail",
|
|
133
134
|
similarToWorksYouViewedRail = "similarToWorksYouViewedRail",
|
|
134
135
|
standoutLots = "standoutLots",
|
|
@@ -143,6 +143,7 @@ exports.ContextModule = ContextModule;
|
|
|
143
143
|
ContextModule["sellHeader"] = "sellHeader";
|
|
144
144
|
ContextModule["showHeader"] = "showHeader";
|
|
145
145
|
ContextModule["showInfo"] = "showInfo";
|
|
146
|
+
ContextModule["showsRail"] = "showsRail";
|
|
146
147
|
ContextModule["similarToWorksYouSavedRail"] = "similarToWorksYouSavedRail";
|
|
147
148
|
ContextModule["similarToWorksYouViewedRail"] = "similarToWorksYouViewedRail";
|
|
148
149
|
ContextModule["standoutLots"] = "standoutLots";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/cohesion",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "Analytics schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"watch": "concurrently --raw --kill-others 'yarn compile -w' 'yarn emit-types -w'"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@artsy/auto-config": "1.0
|
|
28
|
+
"@artsy/auto-config": "1.1.0",
|
|
29
29
|
"@babel/cli": "7.8.4",
|
|
30
30
|
"@babel/core": "7.9.0",
|
|
31
31
|
"@babel/preset-env": "7.9.5",
|
|
@@ -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.4.
|
|
50
|
+
"typescript": "4.4.4"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"core-js": "3"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AuthContextModule, AuthImpression, AuthIntent, AuthModalType, AuthTrigger } from "../../Schema";
|
|
2
|
-
export interface AuthImpressionArgs {
|
|
3
|
-
copy?: string;
|
|
4
|
-
contextModule: AuthContextModule;
|
|
5
|
-
intent: AuthIntent;
|
|
6
|
-
onboarding?: boolean;
|
|
7
|
-
trigger?: AuthTrigger;
|
|
8
|
-
triggerSeconds?: number;
|
|
9
|
-
type: AuthModalType;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Action fired when a user views an authentication form
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```
|
|
16
|
-
* authImpression({
|
|
17
|
-
* contextModule: ContextModule.header,
|
|
18
|
-
* intent: Intent.viewEditorial,
|
|
19
|
-
* type: AuthModalType.signup,
|
|
20
|
-
* })
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare const authImpression: ({ contextModule, intent, copy, onboarding, trigger, triggerSeconds, type, }: AuthImpressionArgs) => AuthImpression;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.authImpression = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Action fired when a user views an authentication form
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* authImpression({
|
|
16
|
-
* contextModule: ContextModule.header,
|
|
17
|
-
* intent: Intent.viewEditorial,
|
|
18
|
-
* type: AuthModalType.signup,
|
|
19
|
-
* })
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
var authImpression = function authImpression(_ref) {
|
|
23
|
-
var contextModule = _ref.contextModule,
|
|
24
|
-
intent = _ref.intent,
|
|
25
|
-
copy = _ref.copy,
|
|
26
|
-
onboarding = _ref.onboarding,
|
|
27
|
-
trigger = _ref.trigger,
|
|
28
|
-
triggerSeconds = _ref.triggerSeconds,
|
|
29
|
-
type = _ref.type;
|
|
30
|
-
return {
|
|
31
|
-
action: _Schema.ActionType.authImpression,
|
|
32
|
-
context_module: contextModule,
|
|
33
|
-
intent: intent,
|
|
34
|
-
modal_copy: copy,
|
|
35
|
-
onboarding: onboarding || false,
|
|
36
|
-
trigger: trigger || triggerSeconds && "timed" || "click",
|
|
37
|
-
trigger_seconds: triggerSeconds,
|
|
38
|
-
type: type
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
exports.authImpression = authImpression;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AuthContextModule, AuthIntent, AuthService, ResetYourPassword } from "../../Schema";
|
|
2
|
-
export interface ResetYourPasswordArgs {
|
|
3
|
-
authRedirect: string;
|
|
4
|
-
contextModule: AuthContextModule;
|
|
5
|
-
copy?: string;
|
|
6
|
-
intent: AuthIntent;
|
|
7
|
-
service: AuthService;
|
|
8
|
-
triggerSeconds?: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Action fired when a user user requests to reset their password for an existing account
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* resetYourPassword({
|
|
16
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
17
|
-
* contextModule: ContextModule.popUpModal,
|
|
18
|
-
* copy: "Sign up to follow artists",
|
|
19
|
-
* intent: Intent.viewArtist,
|
|
20
|
-
* service: "email",
|
|
21
|
-
* triggerSeconds: 3
|
|
22
|
-
* })
|
|
23
|
-
* ```
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
export declare const resetYourPassword: ({ authRedirect, contextModule, copy, intent, service, triggerSeconds, }: ResetYourPasswordArgs) => ResetYourPassword;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.resetYourPassword = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Action fired when a user user requests to reset their password for an existing account
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* resetYourPassword({
|
|
16
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
17
|
-
* contextModule: ContextModule.popUpModal,
|
|
18
|
-
* copy: "Sign up to follow artists",
|
|
19
|
-
* intent: Intent.viewArtist,
|
|
20
|
-
* service: "email",
|
|
21
|
-
* triggerSeconds: 3
|
|
22
|
-
* })
|
|
23
|
-
* ```
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
var resetYourPassword = function resetYourPassword(_ref) {
|
|
27
|
-
var authRedirect = _ref.authRedirect,
|
|
28
|
-
contextModule = _ref.contextModule,
|
|
29
|
-
copy = _ref.copy,
|
|
30
|
-
intent = _ref.intent,
|
|
31
|
-
service = _ref.service,
|
|
32
|
-
triggerSeconds = _ref.triggerSeconds;
|
|
33
|
-
return {
|
|
34
|
-
action: _Schema.ActionType.resetYourPassword,
|
|
35
|
-
auth_redirect: authRedirect,
|
|
36
|
-
context_module: contextModule,
|
|
37
|
-
intent: intent,
|
|
38
|
-
modal_copy: copy,
|
|
39
|
-
service: service,
|
|
40
|
-
trigger: triggerSeconds && "timed" || "click",
|
|
41
|
-
trigger_seconds: triggerSeconds,
|
|
42
|
-
type: _Schema.AuthModalType.forgot
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
exports.resetYourPassword = resetYourPassword;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AuthContextModule, AuthIntent, AuthService, SuccessfullyLoggedIn } from "../../Schema";
|
|
2
|
-
export interface SuccessfullyLoggedInArgs {
|
|
3
|
-
authRedirect: string;
|
|
4
|
-
contextModule: AuthContextModule;
|
|
5
|
-
copy?: string;
|
|
6
|
-
intent: AuthIntent;
|
|
7
|
-
service: AuthService;
|
|
8
|
-
triggerSeconds?: number;
|
|
9
|
-
userId: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Action fired when a user logs into an existing account
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```
|
|
16
|
-
* successfullyLoggedIn({
|
|
17
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
18
|
-
* contextModule: ContextModule.popUpModal,
|
|
19
|
-
* copy: "Sign up to follow artists",
|
|
20
|
-
* intent: Intent.viewArtist,
|
|
21
|
-
* service: "email",
|
|
22
|
-
* triggerSeconds: 3,
|
|
23
|
-
* userId: "5bd8b675776bd6002c86526c"
|
|
24
|
-
* })
|
|
25
|
-
* ```
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
export declare const successfullyLoggedIn: ({ authRedirect, contextModule, copy, intent, service, triggerSeconds, userId, }: SuccessfullyLoggedInArgs) => SuccessfullyLoggedIn;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.successfullyLoggedIn = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Action fired when a user logs into an existing account
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* successfullyLoggedIn({
|
|
16
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
17
|
-
* contextModule: ContextModule.popUpModal,
|
|
18
|
-
* copy: "Sign up to follow artists",
|
|
19
|
-
* intent: Intent.viewArtist,
|
|
20
|
-
* service: "email",
|
|
21
|
-
* triggerSeconds: 3,
|
|
22
|
-
* userId: "5bd8b675776bd6002c86526c"
|
|
23
|
-
* })
|
|
24
|
-
* ```
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
var successfullyLoggedIn = function successfullyLoggedIn(_ref) {
|
|
28
|
-
var authRedirect = _ref.authRedirect,
|
|
29
|
-
contextModule = _ref.contextModule,
|
|
30
|
-
copy = _ref.copy,
|
|
31
|
-
intent = _ref.intent,
|
|
32
|
-
service = _ref.service,
|
|
33
|
-
triggerSeconds = _ref.triggerSeconds,
|
|
34
|
-
userId = _ref.userId;
|
|
35
|
-
return {
|
|
36
|
-
action: _Schema.ActionType.successfullyLoggedIn,
|
|
37
|
-
auth_redirect: authRedirect,
|
|
38
|
-
context_module: contextModule,
|
|
39
|
-
intent: intent,
|
|
40
|
-
modal_copy: copy,
|
|
41
|
-
service: service,
|
|
42
|
-
trigger: triggerSeconds && "timed" || "click",
|
|
43
|
-
trigger_seconds: triggerSeconds,
|
|
44
|
-
type: _Schema.AuthModalType.login,
|
|
45
|
-
user_id: userId
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
exports.successfullyLoggedIn = successfullyLoggedIn;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|