@holistics/anfra-sdk 0.20.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.
Files changed (36) hide show
  1. package/README.md +5 -0
  2. package/dist/api.d.ts +11 -8
  3. package/dist/api.js +45 -22
  4. package/dist/app.d.ts +5 -5
  5. package/dist/app.js +4 -3
  6. package/dist/{bootstrap-DHU2haC5.d.ts → bootstrap-BxBqFhgm.d.ts} +279 -27
  7. package/dist/build.d.ts +2 -2
  8. package/dist/{chunk-32566ZNE.js → chunk-2TTGSNHA.js} +1 -1
  9. package/dist/{chunk-H52PO7MP.js → chunk-33HI2ODM.js} +25 -0
  10. package/dist/chunk-4UEESYHH.js +32 -0
  11. package/dist/{chunk-4TXKXLWK.js → chunk-7I2HXY72.js} +1 -1
  12. package/dist/{chunk-KKSOTHP4.js → chunk-7NZOMBYE.js} +1 -1
  13. package/dist/{chunk-DITKCHFQ.js → chunk-CLXZMA5D.js} +1 -1
  14. package/dist/{chunk-GBXK7F2V.js → chunk-D7DIJRAC.js} +14 -1
  15. package/dist/{chunk-FTTVLHNN.js → chunk-E3Q3FRKQ.js} +1 -1
  16. package/dist/{chunk-SXKJQU7A.js → chunk-GPBYPSWK.js} +22 -36
  17. package/dist/{chunk-T5T76SAR.js → chunk-IHRNKDMO.js} +830 -265
  18. package/dist/{chunk-EIPHDMZ7.js → chunk-UWRQXPPG.js} +69 -24
  19. package/dist/common.d.ts +3 -3
  20. package/dist/{data-ESPFZ5IM.js → data-SZDYO55C.js} +7 -5
  21. package/dist/{declaration-RYRBX7PH.js → declaration-GYV6OUR3.js} +5 -3
  22. package/dist/{errors-189T_Mnc.d.ts → errors-DR05L6-y.d.ts} +1 -1
  23. package/dist/host.d.ts +2 -2
  24. package/dist/host.js +29 -6
  25. package/dist/{menu-Cam-hOdJ.d.ts → menu-CuTKq-dC.d.ts} +2 -1
  26. package/dist/{overview-AWPXJACF.js → overview-KOQJNG2Y.js} +28 -13
  27. package/dist/{plugin-rRd-zHGt.d.ts → plugin-BIcighnC.d.ts} +7 -2
  28. package/dist/plugins.d.ts +1 -7
  29. package/dist/plugins.js +53 -17
  30. package/dist/{queries-FWMX7H5Z.js → queries-BWKWZQMG.js} +70 -17
  31. package/dist/{structure-VFRJFC4C.js → structure-JO4YZHKZ.js} +5 -3
  32. package/dist/{tab-XL2HS5W4.js → tab-QPHE7YUQ.js} +3 -3
  33. package/dist/testing.d.ts +2 -1
  34. package/dist/testing.js +8 -7
  35. package/dist/{types-N0V9n38H.d.ts → types-C_-1rgj2.d.ts} +781 -123
  36. 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-189T_Mnc.js';
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-T5T76SAR.js";
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-FTTVLHNN.js";
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}'.`);