@reltio/components 1.4.1325 → 1.4.1326
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.
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare
|
|
4
|
-
interceptors?: InterceptHandlers;
|
|
5
|
-
getCurrentPerspectiveId: () => string;
|
|
6
|
-
showPerspective: (perspective: any) => void;
|
|
7
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const SandboxAPIContext: React.Context<SandboxAPI>;
|
|
10
|
-
export {};
|
|
2
|
+
import { QxSandboxApi } from '@reltio/mdm-sdk';
|
|
3
|
+
export declare const SandboxAPIContext: React.Context<QxSandboxApi>;
|
package/cjs/hooks/useAPI/API.js
CHANGED
|
@@ -199,8 +199,10 @@ var processRequest = function (_a) {
|
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
case mdm_sdk_1.RequestAction.SET_ENTITY_URI: {
|
|
202
|
-
var listener = function () {
|
|
203
|
-
|
|
202
|
+
var listener = function (newEntity) {
|
|
203
|
+
return worker.postMessage(__assign({ action: 'response', result: newEntity }, paramObject.params));
|
|
204
|
+
};
|
|
205
|
+
setEntityUri(paramObject.params.entityUri, listener);
|
|
204
206
|
break;
|
|
205
207
|
}
|
|
206
208
|
case mdm_sdk_1.RequestAction.SET_PERSPECTIVE: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction } from '@reltio/mdm-sdk';
|
|
1
|
+
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction, Entity } from '@reltio/mdm-sdk';
|
|
2
2
|
export declare type ProcessRequestParams = {
|
|
3
3
|
name: RequestAction;
|
|
4
4
|
paramObject: {
|
|
@@ -21,7 +21,7 @@ export declare type ProcessRequestParams = {
|
|
|
21
21
|
workflowCheckPermission: (permission?: string) => boolean;
|
|
22
22
|
getCurrentPerspectiveId: () => string;
|
|
23
23
|
showPerspective: (perspective: any) => void;
|
|
24
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
24
|
+
setEntityUri: (entityUri: string, listener: (entity: Entity) => void) => void;
|
|
25
25
|
};
|
|
26
26
|
export declare type Request = Omit<CustomActionTask, 'params'> & {
|
|
27
27
|
params: CustomActionTaskParams;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare
|
|
4
|
-
interceptors?: InterceptHandlers;
|
|
5
|
-
getCurrentPerspectiveId: () => string;
|
|
6
|
-
showPerspective: (perspective: any) => void;
|
|
7
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const SandboxAPIContext: React.Context<SandboxAPI>;
|
|
10
|
-
export {};
|
|
2
|
+
import { QxSandboxApi } from '@reltio/mdm-sdk';
|
|
3
|
+
export declare const SandboxAPIContext: React.Context<QxSandboxApi>;
|
package/esm/hooks/useAPI/API.js
CHANGED
|
@@ -196,8 +196,10 @@ export var processRequest = function (_a) {
|
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
198
198
|
case RequestAction.SET_ENTITY_URI: {
|
|
199
|
-
var listener = function () {
|
|
200
|
-
|
|
199
|
+
var listener = function (newEntity) {
|
|
200
|
+
return worker.postMessage(__assign({ action: 'response', result: newEntity }, paramObject.params));
|
|
201
|
+
};
|
|
202
|
+
setEntityUri(paramObject.params.entityUri, listener);
|
|
201
203
|
break;
|
|
202
204
|
}
|
|
203
205
|
case RequestAction.SET_PERSPECTIVE: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction } from '@reltio/mdm-sdk';
|
|
1
|
+
import { CustomActionTask, CustomActionTaskParams, CustomActionExtension, CustomActionViewConfig, CustomScriptExtension, RequestAction, Entity } from '@reltio/mdm-sdk';
|
|
2
2
|
export declare type ProcessRequestParams = {
|
|
3
3
|
name: RequestAction;
|
|
4
4
|
paramObject: {
|
|
@@ -21,7 +21,7 @@ export declare type ProcessRequestParams = {
|
|
|
21
21
|
workflowCheckPermission: (permission?: string) => boolean;
|
|
22
22
|
getCurrentPerspectiveId: () => string;
|
|
23
23
|
showPerspective: (perspective: any) => void;
|
|
24
|
-
setEntityUri: (entityUri: string, listener: () => void) => void;
|
|
24
|
+
setEntityUri: (entityUri: string, listener: (entity: Entity) => void) => void;
|
|
25
25
|
};
|
|
26
26
|
export declare type Request = Omit<CustomActionTask, 'params'> & {
|
|
27
27
|
params: CustomActionTaskParams;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1326",
|
|
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.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.1326",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1326",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|