@trackunit/react-core-contexts-api 0.2.149 → 0.2.151

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/index.cjs.js CHANGED
@@ -25,7 +25,6 @@ const TimeZonePreference = {
25
25
  */
26
26
  const createEvent = (event) => ({
27
27
  description: event === null || event === void 0 ? void 0 : event.description,
28
- amplitudeName: event === null || event === void 0 ? void 0 : event.amplitudeName,
29
28
  properties: {},
30
29
  });
31
30
 
@@ -108,7 +107,7 @@ const assetHomePageIds = [
108
107
  "specification",
109
108
  "telematics",
110
109
  "activity-timeline",
111
- "customers",
110
+ "contracts",
112
111
  ];
113
112
  const siteHomePageIds = ["overview", "assets", "asset-visibility"];
114
113
  const customerHomePageIds = ["info", "assets", "contact-list"];
package/index.esm.js CHANGED
@@ -21,7 +21,6 @@ const TimeZonePreference = {
21
21
  */
22
22
  const createEvent = (event) => ({
23
23
  description: event === null || event === void 0 ? void 0 : event.description,
24
- amplitudeName: event === null || event === void 0 ? void 0 : event.amplitudeName,
25
24
  properties: {},
26
25
  });
27
26
 
@@ -104,7 +103,7 @@ const assetHomePageIds = [
104
103
  "specification",
105
104
  "telematics",
106
105
  "activity-timeline",
107
- "customers",
106
+ "contracts",
108
107
  ];
109
108
  const siteHomePageIds = ["overview", "assets", "asset-visibility"];
110
109
  const customerHomePageIds = ["info", "assets", "contact-list"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.149",
3
+ "version": "0.2.151",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,12 +11,6 @@ export type Event<T> = {
11
11
  * Explain what this event means
12
12
  */
13
13
  description?: string;
14
- /**
15
- * Alternative name to show in Amplitude. Only here for legacy reasons.
16
- *
17
- * @deprecated Use the key of object given to useAnalytics instead
18
- */
19
- amplitudeName?: string;
20
14
  /**
21
15
  * The properties to log. Pick an existing type or make a custom one.
22
16
  * Be specific.
@@ -33,7 +27,6 @@ export type Event<T> = {
33
27
  * @returns {*} {Event<T>}
34
28
  */
35
29
  export declare const createEvent: <T extends object = BaseEvent>(event?: {
36
- amplitudeName?: string;
37
30
  description?: string;
38
31
  }) => Event<T>;
39
32
  export interface IAnalyticsContext<Events extends Record<string, Event<BaseEvent | UnspecifiedEvent>>> {
@@ -30,7 +30,7 @@ export type IrisAppOptions = {
30
30
  declare const mainApps: readonly ["fleet/list", "reports", "sites"];
31
31
  export type MainFleetApp = (typeof mainApps)[number];
32
32
  export type FleetAppStandardOptions = Page<MainFleetApp> & NeverIrisApp;
33
- export declare const assetHomePageIds: readonly ["status", "movement", "events", "insights", "specification", "telematics", "activity-timeline", "customers"];
33
+ export declare const assetHomePageIds: readonly ["status", "movement", "events", "insights", "specification", "telematics", "activity-timeline", "contracts"];
34
34
  export type AssetHomePageId = (typeof assetHomePageIds)[number];
35
35
  export type AssetHomeStandardOptions = Page<AssetHomePageId> & NeverIrisApp;
36
36
  export declare const siteHomePageIds: readonly ["overview", "assets", "asset-visibility"];