@reltio/components 1.4.1192 → 1.4.1193

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.
@@ -164,8 +164,8 @@ var processRequest = function (_a) {
164
164
  .then(function (data) {
165
165
  worker.postMessage(__assign({ action: 'response', result: { data: data } }, paramObject.params));
166
166
  })
167
- .catch(function () {
168
- worker.postMessage(__assign({ action: 'response', result: { data: {}, headers: '', status: 0 } }, paramObject.params));
167
+ .catch(function (error) {
168
+ worker.postMessage(__assign({ action: 'response', result: { data: error, headers: '', status: 0 } }, paramObject.params));
169
169
  });
170
170
  };
171
171
  var shouldSignRequest = helpers_1.isNewUI(servicesPath);
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'react';
1
2
  import { CustomViewConfig } from '@reltio/mdm-sdk';
2
3
  export declare const useAPI: (config?: CustomViewConfig) => {
3
4
  html: HTMLElement;
@@ -6,7 +7,7 @@ export declare const useAPI: (config?: CustomViewConfig) => {
6
7
  customStyles: {
7
8
  height?: number | string;
8
9
  width?: number | string;
9
- 'pointer-events'?: string;
10
+ pointerEvents?: CSSProperties['pointerEvents'];
10
11
  };
11
12
  onClick: () => void;
12
13
  };
@@ -151,10 +151,10 @@ var useAPI = function (config) {
151
151
  setCustomStyles(function (prev) {
152
152
  var newStyles = __assign({}, (prev || {}));
153
153
  if (!task.params) {
154
- newStyles['pointer-events'] = 'none';
154
+ newStyles['pointerEvents'] = 'none';
155
155
  }
156
156
  else {
157
- delete newStyles['pointer-events'];
157
+ delete newStyles['pointerEvents'];
158
158
  }
159
159
  return newStyles;
160
160
  });
@@ -161,8 +161,8 @@ export var processRequest = function (_a) {
161
161
  .then(function (data) {
162
162
  worker.postMessage(__assign({ action: 'response', result: { data: data } }, paramObject.params));
163
163
  })
164
- .catch(function () {
165
- worker.postMessage(__assign({ action: 'response', result: { data: {}, headers: '', status: 0 } }, paramObject.params));
164
+ .catch(function (error) {
165
+ worker.postMessage(__assign({ action: 'response', result: { data: error, headers: '', status: 0 } }, paramObject.params));
166
166
  });
167
167
  };
168
168
  var shouldSignRequest = isNewUI(servicesPath);
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'react';
1
2
  import { CustomViewConfig } from '@reltio/mdm-sdk';
2
3
  export declare const useAPI: (config?: CustomViewConfig) => {
3
4
  html: HTMLElement;
@@ -6,7 +7,7 @@ export declare const useAPI: (config?: CustomViewConfig) => {
6
7
  customStyles: {
7
8
  height?: number | string;
8
9
  width?: number | string;
9
- 'pointer-events'?: string;
10
+ pointerEvents?: CSSProperties['pointerEvents'];
10
11
  };
11
12
  onClick: () => void;
12
13
  };
@@ -129,10 +129,10 @@ export var useAPI = function (config) {
129
129
  setCustomStyles(function (prev) {
130
130
  var newStyles = __assign({}, (prev || {}));
131
131
  if (!task.params) {
132
- newStyles['pointer-events'] = 'none';
132
+ newStyles['pointerEvents'] = 'none';
133
133
  }
134
134
  else {
135
- delete newStyles['pointer-events'];
135
+ delete newStyles['pointerEvents'];
136
136
  }
137
137
  return newStyles;
138
138
  });
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1192",
3
+ "version": "1.4.1193",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-module": "^1.4.1192",
11
- "@reltio/mdm-sdk": "^1.4.1192",
10
+ "@reltio/mdm-module": "^1.4.1193",
11
+ "@reltio/mdm-sdk": "^1.4.1193",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",