@artsy/cohesion 4.12.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 CHANGED
@@ -1,3 +1,22 @@
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
+
1
20
  # v4.12.0 (Mon Oct 11 2021)
2
21
 
3
22
  #### 🚀 Enhancement
@@ -1,6 +1,5 @@
1
1
  export * from "./AddToCalendar";
2
2
  export * from "./Share";
3
- export * from "./Authentication/AuthImpression";
4
3
  export * from "./Authentication/CreatedAccount";
5
4
  export * from "./Click/ClickedAppDownload";
6
5
  export * from "./Click/ClickedArticleGroup";
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.12.0",
3
+ "version": "4.13.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.4.3"
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;