@artsy/cohesion 4.56.0 → 4.57.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.57.0 (Thu Jul 07 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore[FX-3378]: deprecate addToCalendar helper function [#342](https://github.com/artsy/cohesion/pull/342) ([@mdole](https://github.com/mdole))
6
+
7
+ #### Authors: 1
8
+
9
+ - Matt Dole ([@mdole](https://github.com/mdole))
10
+
11
+ ---
12
+
1
13
  # v4.56.0 (Tue Jul 05 2022)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -1,4 +1,3 @@
1
- export * from "./AddToCalendar";
2
1
  export * from "./Share";
3
2
  export * from "./Click/ClickedCollectionGroup";
4
3
  export * from "./Click/ClickedEntityGroup";
@@ -4,18 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var _AddToCalendar = require("./AddToCalendar");
8
-
9
- Object.keys(_AddToCalendar).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- Object.defineProperty(exports, key, {
12
- enumerable: true,
13
- get: function get() {
14
- return _AddToCalendar[key];
15
- }
16
- });
17
- });
18
-
19
7
  var _Share = require("./Share");
20
8
 
21
9
  Object.keys(_Share).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.56.0",
3
+ "version": "4.57.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -1,16 +0,0 @@
1
- import { AddToCalendar } from "../Schema";
2
- /**
3
- * A user clicks or taps the 'Add to Calendar' button on a timed-event page (auction, fair, etc.).
4
- *
5
- * @example
6
- * ```
7
- * addToCalendar({
8
- * context_module: "auctionHome",
9
- * context_owner_type: "sale",
10
- * context_owner_id: "5f99e0ba4c24bc000d02b8d7",
11
- * context_owner_slug: "artsy-x-seoul-auction-contemporary-icons",
12
- * subject: "google"
13
- * })
14
- * ```
15
- */
16
- export declare const addToCalendar: ({ context_module, context_owner_id, context_owner_slug, context_owner_type, subject, }: Omit<AddToCalendar, "action">) => AddToCalendar;
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.addToCalendar = void 0;
7
-
8
- var _Schema = require("../Schema");
9
-
10
- /**
11
- * A user clicks or taps the 'Add to Calendar' button on a timed-event page (auction, fair, etc.).
12
- *
13
- * @example
14
- * ```
15
- * addToCalendar({
16
- * context_module: "auctionHome",
17
- * context_owner_type: "sale",
18
- * context_owner_id: "5f99e0ba4c24bc000d02b8d7",
19
- * context_owner_slug: "artsy-x-seoul-auction-contemporary-icons",
20
- * subject: "google"
21
- * })
22
- * ```
23
- */
24
- var addToCalendar = function addToCalendar(_ref) {
25
- var context_module = _ref.context_module,
26
- context_owner_id = _ref.context_owner_id,
27
- context_owner_slug = _ref.context_owner_slug,
28
- context_owner_type = _ref.context_owner_type,
29
- subject = _ref.subject;
30
- return {
31
- action: _Schema.ActionType.addToCalendar,
32
- context_module: context_module,
33
- context_owner_id: context_owner_id,
34
- context_owner_slug: context_owner_slug,
35
- context_owner_type: context_owner_type,
36
- subject: subject
37
- };
38
- };
39
-
40
- exports.addToCalendar = addToCalendar;