@ixon-cdk/iframe-adapter 1.3.0-next.0 → 1.3.0-next.2
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 +7 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -92,6 +92,10 @@ class ComponentContext {
|
|
|
92
92
|
throw new NotImplementedError();
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
createObjectStorageClient() {
|
|
96
|
+
throw new NotImplementedError();
|
|
97
|
+
}
|
|
98
|
+
|
|
95
99
|
createResourceDataClient() {
|
|
96
100
|
const clientId = crypto.randomUUID();
|
|
97
101
|
window.parent.postMessage(
|
|
@@ -501,7 +505,7 @@ export function connect({ iframe, context }) {
|
|
|
501
505
|
let client = _adapterMessageHandler._clients.get(clientId);
|
|
502
506
|
if (client && !client._destroyed) {
|
|
503
507
|
client.query(query, results => {
|
|
504
|
-
if (
|
|
508
|
+
if (!client._destroyed) {
|
|
505
509
|
iframe.contentWindow.postMessage(
|
|
506
510
|
{
|
|
507
511
|
type: EVENTS.ResourceDataClientQueryResult,
|
|
@@ -511,7 +515,7 @@ export function connect({ iframe, context }) {
|
|
|
511
515
|
);
|
|
512
516
|
}
|
|
513
517
|
});
|
|
514
|
-
|
|
518
|
+
}
|
|
515
519
|
break;
|
|
516
520
|
}
|
|
517
521
|
case EVENTS.ResourceDataClientRender: {
|
|
@@ -519,7 +523,7 @@ export function connect({ iframe, context }) {
|
|
|
519
523
|
let client = _adapterMessageHandler._clients.get(clientId);
|
|
520
524
|
if (client && !client._destroyed) {
|
|
521
525
|
client.render(query, results => {
|
|
522
|
-
if (
|
|
526
|
+
if (!client._destroyed) {
|
|
523
527
|
iframe.contentWindow.postMessage(
|
|
524
528
|
{
|
|
525
529
|
type: EVENTS.ResourceDataClientRenderResult,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixon-cdk/iframe-adapter",
|
|
3
|
-
"version": "1.3.0-next.
|
|
3
|
+
"version": "1.3.0-next.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@ixon-cdk/types": "^1.3.0-next.
|
|
13
|
+
"@ixon-cdk/types": "^1.3.0-next.2"
|
|
14
14
|
}
|
|
15
15
|
}
|