@trackunit/react-core-contexts-api 0.2.7 → 0.2.9
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.js
CHANGED
@@ -24,19 +24,17 @@ var SortOrder;
|
|
24
24
|
SortOrder["Desc"] = "DESC";
|
25
25
|
})(SortOrder || (SortOrder = {}));
|
26
26
|
|
27
|
-
|
28
|
-
(
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
UserSubscriptionPackageType["None"] = "NONE";
|
40
|
-
})(UserSubscriptionPackageType || (UserSubscriptionPackageType = {}));
|
27
|
+
const UserSubscriptionPackage = {
|
28
|
+
EXPLORE_FLEET_OWNER: "Explore (Fleet Owner)",
|
29
|
+
EVOLVE_FLEET_OWNER: "Evolve (Fleet Owner)",
|
30
|
+
EXPAND_FLEET_OWNER: "Expand (Fleet Owner)",
|
31
|
+
EXPLORE_OEM: "Explore (OEM)",
|
32
|
+
EVOLVE_OEM: "Evolve (OEM)",
|
33
|
+
EXPAND_OEM: "Expand (OEM)",
|
34
|
+
COLLECT: "COLLECT",
|
35
|
+
INSIGHT: "INSIGHT",
|
36
|
+
VIEW: "VIEW",
|
37
|
+
NONE: "NONE",
|
38
|
+
};
|
41
39
|
|
42
|
-
export { AssetSortByProperty, SortOrder,
|
40
|
+
export { AssetSortByProperty, SortOrder, UserSubscriptionPackage };
|
package/package.json
CHANGED
@@ -6,7 +6,7 @@ export interface IDeveloperSettingsContext {
|
|
6
6
|
launchdarklyFlags?: FeatureFlags;
|
7
7
|
setFlags?: React.Dispatch<React.SetStateAction<FeatureFlags | undefined>>;
|
8
8
|
}
|
9
|
-
export
|
9
|
+
export type FeatureFlags = {
|
10
10
|
[key: string]: boolean | Json;
|
11
11
|
};
|
12
|
-
export
|
12
|
+
export type Json = string;
|
package/src/toastContext.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
export
|
3
|
-
export
|
2
|
+
export type AlertColors = "info" | "warning" | "danger" | "success";
|
3
|
+
export type AlertAction = {
|
4
4
|
label: string;
|
5
5
|
onClick: () => void;
|
6
6
|
loading?: boolean;
|
@@ -14,7 +14,7 @@ export interface Toast {
|
|
14
14
|
secondaryAction?: AlertAction;
|
15
15
|
duration?: number;
|
16
16
|
}
|
17
|
-
export
|
17
|
+
export type AddToast = (toast: Toast) => void;
|
18
18
|
export interface IToastContext {
|
19
19
|
addToast: AddToast;
|
20
20
|
setIsManifestError?: React.Dispatch<React.SetStateAction<boolean>>;
|
@@ -20,18 +20,19 @@ export interface IUserSubscriptionContext {
|
|
20
20
|
*/
|
21
21
|
numberOfDaysWithAccessToHistoricalInsights: number;
|
22
22
|
}
|
23
|
-
export declare
|
24
|
-
EXPLORE_FLEET_OWNER
|
25
|
-
EVOLVE_FLEET_OWNER
|
26
|
-
EXPAND_FLEET_OWNER
|
27
|
-
EXPLORE_OEM
|
28
|
-
EVOLVE_OEM
|
29
|
-
EXPAND_OEM
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
23
|
+
export declare const UserSubscriptionPackage: {
|
24
|
+
readonly EXPLORE_FLEET_OWNER: "Explore (Fleet Owner)";
|
25
|
+
readonly EVOLVE_FLEET_OWNER: "Evolve (Fleet Owner)";
|
26
|
+
readonly EXPAND_FLEET_OWNER: "Expand (Fleet Owner)";
|
27
|
+
readonly EXPLORE_OEM: "Explore (OEM)";
|
28
|
+
readonly EVOLVE_OEM: "Evolve (OEM)";
|
29
|
+
readonly EXPAND_OEM: "Expand (OEM)";
|
30
|
+
readonly COLLECT: "COLLECT";
|
31
|
+
readonly INSIGHT: "INSIGHT";
|
32
|
+
readonly VIEW: "VIEW";
|
33
|
+
readonly NONE: "NONE";
|
34
|
+
};
|
35
|
+
export type UserSubscriptionPackageType = keyof typeof UserSubscriptionPackage;
|
35
36
|
export interface IFeature {
|
36
37
|
id: string;
|
37
38
|
name: string;
|