@trackunit/react-core-contexts-api 0.2.152-alpha-213b74a9d8d.0 → 0.2.153

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
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var sharedUtils = require('@trackunit/shared-utils');
6
4
 
7
5
  const SystemOfMeasurement = {
@@ -119,9 +117,9 @@ const isIrisOptions = (options) => {
119
117
  return false;
120
118
  }
121
119
  return (typeof options === "object" &&
122
- ("irisAppId") in options &&
120
+ "irisAppId" in options &&
123
121
  Boolean(options.irisAppId) &&
124
- ("extensionId") in options);
122
+ "extensionId" in options);
125
123
  };
126
124
 
127
125
  const UserSubscriptionPackage = {
package/index.esm.js CHANGED
@@ -115,9 +115,9 @@ const isIrisOptions = (options) => {
115
115
  return false;
116
116
  }
117
117
  return (typeof options === "object" &&
118
- ("irisAppId") in options &&
118
+ "irisAppId" in options &&
119
119
  Boolean(options.irisAppId) &&
120
- ("extensionId") in options);
120
+ "extensionId" in options);
121
121
  };
122
122
 
123
123
  const UserSubscriptionPackage = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.152-alpha-213b74a9d8d.0",
3
+ "version": "0.2.153",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,5 +11,6 @@
11
11
  "jest-fetch-mock": "^3.0.3"
12
12
  },
13
13
  "module": "./index.esm.js",
14
- "main": "./index.cjs.js"
15
- }
14
+ "main": "./index.cjs.js",
15
+ "types": "./index.esm.d.ts"
16
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type ToastColors = "info" | "warning" | "danger" | "success";
3
2
  export type ToastAction = {
4
3
  label: string;