@holistics/anfra-sdk 0.19.0 → 0.21.0
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/README.md +5 -0
- package/dist/api.d.ts +11 -8
- package/dist/api.js +45 -22
- package/dist/app.d.ts +5 -5
- package/dist/app.js +4 -3
- package/dist/{bootstrap-5xNrSbJb.d.ts → bootstrap-BxBqFhgm.d.ts} +279 -27
- package/dist/build.d.ts +2 -2
- package/dist/{chunk-32566ZNE.js → chunk-2TTGSNHA.js} +1 -1
- package/dist/{chunk-H52PO7MP.js → chunk-33HI2ODM.js} +25 -0
- package/dist/chunk-4UEESYHH.js +32 -0
- package/dist/{chunk-4TXKXLWK.js → chunk-7I2HXY72.js} +1 -1
- package/dist/{chunk-ZSIJLBKG.js → chunk-7NZOMBYE.js} +1 -1
- package/dist/{chunk-DITKCHFQ.js → chunk-CLXZMA5D.js} +1 -1
- package/dist/{chunk-GBXK7F2V.js → chunk-D7DIJRAC.js} +14 -1
- package/dist/{chunk-CDZ7MBXC.js → chunk-E3Q3FRKQ.js} +1 -1
- package/dist/{chunk-SXKJQU7A.js → chunk-GPBYPSWK.js} +22 -36
- package/dist/{chunk-OS4CRPTU.js → chunk-IHRNKDMO.js} +830 -265
- package/dist/{chunk-EIPHDMZ7.js → chunk-UWRQXPPG.js} +69 -24
- package/dist/common.d.ts +3 -3
- package/dist/{data-ESPFZ5IM.js → data-SZDYO55C.js} +7 -5
- package/dist/{declaration-RYRBX7PH.js → declaration-GYV6OUR3.js} +5 -3
- package/dist/{errors-BlRfqyty.d.ts → errors-DR05L6-y.d.ts} +1 -1
- package/dist/host.d.ts +2 -2
- package/dist/host.js +29 -6
- package/dist/{menu-Dmfu51qo.d.ts → menu-CuTKq-dC.d.ts} +2 -1
- package/dist/{overview-S6FTM2JT.js → overview-KOQJNG2Y.js} +28 -13
- package/dist/{plugin-C_Cc_e9L.d.ts → plugin-BIcighnC.d.ts} +7 -2
- package/dist/plugins.d.ts +1 -7
- package/dist/plugins.js +53 -17
- package/dist/{queries-FWMX7H5Z.js → queries-BWKWZQMG.js} +70 -17
- package/dist/{structure-VFRJFC4C.js → structure-JO4YZHKZ.js} +5 -3
- package/dist/{tab-XL2HS5W4.js → tab-QPHE7YUQ.js} +3 -3
- package/dist/testing.d.ts +2 -1
- package/dist/testing.js +8 -7
- package/dist/{types-DKQjAL1O.d.ts → types-C_-1rgj2.d.ts} +783 -123
- package/package.json +1 -1
package/dist/testing.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PluginInfo } from './app.js';
|
|
2
2
|
import { User, DatasetDescriptor } from './app.js';
|
|
3
3
|
import { Sdk, PluginSetup } from './app.js';
|
|
4
|
-
import './errors-
|
|
4
|
+
import './errors-DR05L6-y.js';
|
|
5
5
|
|
|
6
6
|
/** The reader a test frame is provisioned with unless given. */
|
|
7
7
|
declare const TEST_READER: User;
|
|
@@ -27,6 +27,7 @@ interface TestFrame {
|
|
|
27
27
|
calls: {
|
|
28
28
|
name: string;
|
|
29
29
|
request: unknown;
|
|
30
|
+
stamp?: unknown;
|
|
30
31
|
}[];
|
|
31
32
|
/** The frame's events, in order. */
|
|
32
33
|
events: {
|
package/dist/testing.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bootstrap
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IHRNKDMO.js";
|
|
4
4
|
import "./chunk-XIUFHRZE.js";
|
|
5
|
-
import
|
|
6
|
-
createEndpoint
|
|
7
|
-
} from "./chunk-SXKJQU7A.js";
|
|
5
|
+
import "./chunk-4UEESYHH.js";
|
|
8
6
|
import {
|
|
9
7
|
PROVISION_ELEMENT_ID
|
|
10
8
|
} from "./chunk-RXPNL7UR.js";
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-E3Q3FRKQ.js";
|
|
10
|
+
import {
|
|
11
|
+
createEndpoint
|
|
12
|
+
} from "./chunk-GPBYPSWK.js";
|
|
12
13
|
import "./chunk-HELL45MM.js";
|
|
13
14
|
import "./chunk-PKBMQBKP.js";
|
|
14
15
|
|
|
@@ -47,8 +48,8 @@ function testFrame(options = {}) {
|
|
|
47
48
|
queueMicrotask(() => frameListeners.forEach((listener) => listener({ source: parent, data: message })));
|
|
48
49
|
};
|
|
49
50
|
const host = createEndpoint(toFrame, {
|
|
50
|
-
answer: async (name, request, signal) => {
|
|
51
|
-
calls.push({ name, request });
|
|
51
|
+
answer: async (name, request, signal, stamp) => {
|
|
52
|
+
calls.push({ name, request, ...stamp !== void 0 ? { stamp } : {} });
|
|
52
53
|
if (name === "anfra.body") {
|
|
53
54
|
const plugin = request.plugin;
|
|
54
55
|
if (!options.bodies || !(plugin in options.bodies)) throw new Error(`No body for '${plugin}'.`);
|