@plitzi/sdk-interactions 0.39.0 → 0.39.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/InteractionsContext.mjs +1 -2
  3. package/dist/InteractionsContextProvider.mjs +5 -6
  4. package/dist/InteractionsHelper.mjs +40 -42
  5. package/dist/InteractionsManager.d.ts +13 -0
  6. package/dist/InteractionsManager.mjs +79 -37
  7. package/dist/InteractionsSourcesProvider.mjs +1 -2
  8. package/dist/declarations/index.mjs +9 -9
  9. package/dist/helpers/coerceDeclaredParams.mjs +1 -2
  10. package/dist/hooks/useInteractions.mjs +1 -2
  11. package/dist/index.mjs +6 -6
  12. package/dist/sources/ActionsSource/ActionInteractions.mjs +205 -196
  13. package/dist/sources/ActionsSource/ServerActionContext.mjs +2 -3
  14. package/dist/sources/ActionsSource/callbacks.mjs +1 -2
  15. package/dist/sources/ActionsSource/deliverCall.d.ts +45 -0
  16. package/dist/sources/ActionsSource/deliverCall.mjs +80 -0
  17. package/dist/sources/ActionsSource/index.mjs +3 -3
  18. package/dist/sources/AuthSource/AuthInteractions.mjs +5 -6
  19. package/dist/sources/AuthSource/callbacks.mjs +1 -2
  20. package/dist/sources/HostSource/HostInteractions.mjs +5 -6
  21. package/dist/sources/HostSource/callbacks.mjs +1 -2
  22. package/dist/sources/HostSource/index.mjs +3 -3
  23. package/dist/sources/NavigationSource/NavigationInteractions.mjs +9 -10
  24. package/dist/sources/NavigationSource/callbacks.mjs +1 -2
  25. package/dist/sources/NavigationSource/navigateHow.mjs +1 -2
  26. package/dist/sources/QueriesSource/QueriesInteractions.mjs +5 -6
  27. package/dist/sources/QueriesSource/callbacks.mjs +1 -2
  28. package/dist/sources/QueriesSource/writeParams.mjs +1 -2
  29. package/dist/sources/StateSource/StateInteractions.mjs +5 -6
  30. package/dist/sources/StateSource/callbacks.mjs +1 -2
  31. package/dist/utility/copyToClipboard.mjs +1 -2
  32. package/dist/utility/copyToClipboardSpec.mjs +1 -2
  33. package/dist/utility/delayTime.mjs +1 -2
  34. package/dist/utility/index.mjs +1 -2
  35. package/dist/utility/twigTemplate.mjs +1 -2
  36. package/dist/utility/webHook.mjs +1 -2
  37. package/dist/utility/webHookSpec.mjs +1 -2
  38. package/package.json +14 -11
@@ -0,0 +1,45 @@
1
+ import { ActionRunStep } from '@plitzi/sdk-shared';
2
+ /**
3
+ * Delivering a call to the server, when there may be nothing there to run it.
4
+ *
5
+ * Asked of the worker first, as always. When no worker answered — the request never reached one, or the proxy in front
6
+ * found none (502, 503) — the call is handed to the page server, which serves this page's host whatever the workers do,
7
+ * to keep in the queue (`/_plitzi/queued`). A worker whose runner is away keeps it the same way, answering 202. Either
8
+ * way the page waits for it — saying so — and reads its answer once it ran, as it would have read it then.
9
+ */
10
+ /** Where the page server keeps a call nothing could run — on this page's own host. */
11
+ export declare const QUEUED_CALLS_PATH = "/_plitzi/queued";
12
+ /** What the action endpoint answers a call — as it writes it, the one shape every mode reads. */
13
+ export type ActionResponse = {
14
+ runId?: string;
15
+ status?: string;
16
+ output?: Record<string, unknown>;
17
+ error?: string;
18
+ /** The refusal's code, when its step gave one (`refuse('banned', …)`): what a flow branches on, never the words. */
19
+ code?: string;
20
+ reason?: string;
21
+ /** What the flow did, step by step. Sent to any page whose debugging the deployment authorizes. */
22
+ steps?: ActionRunStep[];
23
+ /** The steps WITH what each read and answered. Only ever sent to an authoring request or by a dev server. */
24
+ trace?: Record<string, unknown>[];
25
+ };
26
+ /** How a call ended: answered (by the server, now or once it ran), or never answered by anything. */
27
+ export type Delivery = {
28
+ status: number;
29
+ payload: ActionResponse;
30
+ } | {
31
+ unreachable: unknown;
32
+ };
33
+ export declare const deliverCall: ({ endpoint, call, signal, keepalive, onQueued }: {
34
+ endpoint: string;
35
+ call: {
36
+ actionId: string;
37
+ input: Record<string, unknown>;
38
+ idempotencyKey?: string;
39
+ };
40
+ signal: AbortSignal;
41
+ /** For a detached call, so a navigation right after it does not cancel the request. */
42
+ keepalive?: boolean;
43
+ /** Told when the call is kept, before it is waited for: what puts it on the page as waiting. */
44
+ onQueued: () => void;
45
+ }) => Promise<Delivery>;
@@ -0,0 +1,80 @@
1
+ // src/sources/ActionsSource/deliverCall.ts
2
+ var e = "/_plitzi/queued", t = (e) => typeof e == "object" && !!e && !Array.isArray(e), n = (e, n) => e === 202 && t(n) && n.status === "queued" && typeof n.jobId == "string" && typeof n.ticket == "string" ? {
3
+ jobId: n.jobId,
4
+ ticket: n.ticket
5
+ } : void 0, r = (e) => t(e) ? e : {}, i = () => {
6
+ let e = /* @__PURE__ */ new Uint8Array(16);
7
+ return crypto.getRandomValues(e), `kept-${Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("")}`;
8
+ }, a = (e, t) => new Promise((n, r) => {
9
+ if (t.aborted) {
10
+ r(/* @__PURE__ */ Error("The call was stopped"));
11
+ return;
12
+ }
13
+ let i = setTimeout(n, e);
14
+ t.addEventListener("abort", () => {
15
+ clearTimeout(i), r(/* @__PURE__ */ Error("The call was stopped"));
16
+ }, { once: !0 });
17
+ }), o = async (e, t, n, i) => {
18
+ let a = await fetch(e, {
19
+ method: "POST",
20
+ headers: { "Content-Type": "application/json" },
21
+ credentials: "include",
22
+ signal: n,
23
+ keepalive: i,
24
+ body: t
25
+ });
26
+ return {
27
+ status: a.status,
28
+ payload: r(await a.json().catch(() => ({})))
29
+ };
30
+ }, s = async (t, n) => {
31
+ let i = 2e3;
32
+ for (;;) {
33
+ await a(i, n), i = Math.min(15e3, Math.round(i * 1.5));
34
+ try {
35
+ let i = await fetch(`${e}/${encodeURIComponent(t.jobId)}`, {
36
+ headers: { "x-plitzi-ticket": t.ticket },
37
+ credentials: "include",
38
+ signal: n
39
+ }), a = r(await i.json().catch(() => ({})));
40
+ if (i.status === 404) return {
41
+ status: 404,
42
+ payload: {
43
+ ...a,
44
+ status: "failed",
45
+ reason: "not_found"
46
+ }
47
+ };
48
+ if (i.ok && (a.status === "completed" || a.status === "failed")) return {
49
+ status: 200,
50
+ payload: a
51
+ };
52
+ } catch (e) {
53
+ if (n.aborted) throw e;
54
+ }
55
+ }
56
+ }, c = async ({ endpoint: t, call: r, signal: a, keepalive: c = !1, onQueued: l }) => {
57
+ let u;
58
+ try {
59
+ u = await o(t, JSON.stringify(r), a, c);
60
+ } catch (e) {
61
+ if (a.aborted) throw e;
62
+ }
63
+ if (!u || u.status === 502 || u.status === 503) {
64
+ let t = u;
65
+ try {
66
+ let n = await o(e, JSON.stringify({
67
+ ...r,
68
+ idempotencyKey: r.idempotencyKey || i()
69
+ }), a, c);
70
+ if (n.status === 404) return t ?? { unreachable: /* @__PURE__ */ Error("No worker answered, and this server keeps no calls for later") };
71
+ u = n;
72
+ } catch (e) {
73
+ if (a.aborted) throw e;
74
+ return t ?? { unreachable: e };
75
+ }
76
+ }
77
+ let d = n(u.status, u.payload);
78
+ return d ? (l(), s(d, a)) : u;
79
+ };
80
+ export { e as QUEUED_CALLS_PATH, c as deliverCall };
@@ -1,3 +1,3 @@
1
- import { ServerActionContext as e } from "./ServerActionContext.mjs";
2
- import t from "./ActionInteractions.mjs";
3
- export { t as ActionInteractions, e as ServerActionContext };
1
+ import e from "./ActionInteractions.mjs";
2
+ import { ServerActionContext as t } from "./ServerActionContext.mjs";
3
+ export { e as ActionInteractions, t as ServerActionContext };
@@ -1,14 +1,14 @@
1
- import e from "../../InteractionsContext.mjs";
2
- import { authCallbacks as t } from "./callbacks.mjs";
1
+ import { authCallbacks as e } from "./callbacks.mjs";
2
+ import t from "../../InteractionsContext.mjs";
3
3
  import { use as n, useMemo as r } from "react";
4
4
  import { toInteractionCallbacks as i } from "@plitzi/sdk-shared/authoring";
5
5
  import { AuthContext as a } from "@plitzi/sdk-auth";
6
- //#region src/sources/AuthSource/AuthInteractions.tsx
6
+ // src/sources/AuthSource/AuthInteractions.tsx
7
7
  var o = ({ children: o }) => {
8
- let { login: s, refresh: c, logout: l, logoutEverywhere: u, provider: d } = n(a), { useInteractions: f } = n(e);
8
+ let { login: s, refresh: c, logout: l, logoutEverywhere: u, provider: d } = n(a), { useInteractions: f } = n(t);
9
9
  return f({
10
10
  id: "auth",
11
- callbacks: r(() => !d || !s || !c || !l ? {} : i(t, {
11
+ callbacks: r(() => !d || !s || !c || !l ? {} : i(e, {
12
12
  login: (e) => s(e),
13
13
  refreshDetails: (e) => c(e),
14
14
  logout: () => l(),
@@ -22,5 +22,4 @@ var o = ({ children: o }) => {
22
22
  ])
23
23
  }), o;
24
24
  };
25
- //#endregion
26
25
  export { o as default };
@@ -1,4 +1,4 @@
1
- //#region src/sources/AuthSource/callbacks.ts
1
+ // src/sources/AuthSource/callbacks.ts
2
2
  var e = {
3
3
  login: {
4
4
  source: "auth",
@@ -102,5 +102,4 @@ var e = {
102
102
  } }
103
103
  }
104
104
  };
105
- //#endregion
106
105
  export { e as authCallbacks };
@@ -1,10 +1,10 @@
1
- import e from "../../InteractionsContext.mjs";
2
- import t from "./callbacks.mjs";
1
+ import e from "./callbacks.mjs";
2
+ import t from "../../InteractionsContext.mjs";
3
3
  import { use as n, useCallback as r, useMemo as i } from "react";
4
4
  import { toInteractionCallbacks as a } from "@plitzi/sdk-shared/authoring";
5
- //#region src/sources/HostSource/HostInteractions.tsx
5
+ // src/sources/HostSource/HostInteractions.tsx
6
6
  var o = ({ children: o, actions: s }) => {
7
- let { useInteractions: c } = n(e), l = r((e) => {
7
+ let { useInteractions: c } = n(t), l = r((e) => {
8
8
  let { action: t, value: n } = e, r = t ? s?.[t] : void 0;
9
9
  r && r({
10
10
  ...e,
@@ -13,8 +13,7 @@ var o = ({ children: o, actions: s }) => {
13
13
  }, [s]);
14
14
  return c({
15
15
  id: "host",
16
- callbacks: i(() => a(t, { hostAction: l }), [l])
16
+ callbacks: i(() => a(e, { hostAction: l }), [l])
17
17
  }), o;
18
18
  };
19
- //#endregion
20
19
  export { o as default };
@@ -1,4 +1,4 @@
1
- //#region src/sources/HostSource/callbacks.ts
1
+ // src/sources/HostSource/callbacks.ts
2
2
  var e = { hostAction: {
3
3
  source: "host",
4
4
  title: "Host Action",
@@ -16,5 +16,4 @@ var e = { hostAction: {
16
16
  }
17
17
  }
18
18
  } };
19
- //#endregion
20
19
  export { e as default, e as hostCallbacks };
@@ -1,3 +1,3 @@
1
- import e from "./callbacks.mjs";
2
- import t from "./HostInteractions.mjs";
3
- export { t as HostInteractions, t as default, e as hostCallbacks };
1
+ import e from "./HostInteractions.mjs";
2
+ import t from "./callbacks.mjs";
3
+ export { e as HostInteractions, e as default, t as hostCallbacks };
@@ -1,13 +1,13 @@
1
- import e from "../../InteractionsContext.mjs";
2
- import { navigationCallbacks as t } from "./callbacks.mjs";
3
- import { navigateHow as n } from "./navigateHow.mjs";
1
+ import { navigationCallbacks as e } from "./callbacks.mjs";
2
+ import { navigateHow as t } from "./navigateHow.mjs";
3
+ import n from "../../InteractionsContext.mjs";
4
4
  import { use as r, useCallback as i, useMemo as a } from "react";
5
5
  import { get as o, pick as s } from "@plitzi/plitzi-ui/helpers";
6
6
  import { toBuilderParams as c, toInteractionCallbacks as l } from "@plitzi/sdk-shared/authoring";
7
7
  import { useSdkStore as u } from "@plitzi/sdk-shared/store";
8
- //#region src/sources/NavigationSource/NavigationInteractions.tsx
8
+ // src/sources/NavigationSource/NavigationInteractions.tsx
9
9
  var d = ({ children: d, previewMode: f = !1 }) => {
10
- let { useInteractions: p } = r(e), [[m, h, g]] = u([
10
+ let { useInteractions: p } = r(n), [[m, h, g]] = u([
11
11
  "schema.pages",
12
12
  "pageDefinitions",
13
13
  "navigation.navigate"
@@ -22,14 +22,14 @@ var d = ({ children: d, previewMode: f = !1 }) => {
22
22
  }];
23
23
  }, []);
24
24
  }, [h, m]), v = i((e) => {
25
- f && g(e.url, n(e));
25
+ f && g(e.url, t(e));
26
26
  }, [g, f]);
27
27
  return p({
28
28
  id: "navigation",
29
29
  callbacks: a(() => {
30
- let { urlType: e, url: n, replace: r } = c(t.navigate.params);
31
- return l(t, { navigate: v }, { navigate: { params: {
32
- urlType: e,
30
+ let { urlType: t, url: n, replace: r } = c(e.navigate.params);
31
+ return l(e, { navigate: v }, { navigate: { params: {
32
+ urlType: t,
33
33
  replace: r,
34
34
  url: {
35
35
  ...n,
@@ -43,5 +43,4 @@ var d = ({ children: d, previewMode: f = !1 }) => {
43
43
  }, [v, _])
44
44
  }), d;
45
45
  };
46
- //#endregion
47
46
  export { d as default };
@@ -1,4 +1,4 @@
1
- //#region src/sources/NavigationSource/callbacks.ts
1
+ // src/sources/NavigationSource/callbacks.ts
2
2
  var e = { navigate: {
3
3
  source: "navigation",
4
4
  title: "Navigate",
@@ -32,5 +32,4 @@ var e = { navigate: {
32
32
  }
33
33
  }
34
34
  } };
35
- //#endregion
36
35
  export { e as navigationCallbacks };
@@ -1,7 +1,6 @@
1
- //#region src/sources/NavigationSource/navigateHow.ts
1
+ // src/sources/NavigationSource/navigateHow.ts
2
2
  var e = ({ urlType: e, replace: t = !1 }) => ({
3
3
  external: e === "external",
4
4
  replace: t
5
5
  });
6
- //#endregion
7
6
  export { e as navigateHow };
@@ -1,18 +1,17 @@
1
- import e from "../../InteractionsContext.mjs";
2
- import { queriesCallbacks as t } from "./callbacks.mjs";
1
+ import { queriesCallbacks as e } from "./callbacks.mjs";
2
+ import t from "../../InteractionsContext.mjs";
3
3
  import { use as n, useCallback as r, useMemo as i } from "react";
4
4
  import { toInteractionCallbacks as a } from "@plitzi/sdk-shared/authoring";
5
5
  import { invalidateQueries as o, parseIds as s } from "@plitzi/sdk-shared/queries";
6
- //#region src/sources/QueriesSource/QueriesInteractions.tsx
6
+ // src/sources/QueriesSource/QueriesInteractions.tsx
7
7
  var c = ({ children: c }) => {
8
- let { useInteractions: l } = n(e), u = r((e) => o({
8
+ let { useInteractions: l } = n(t), u = r((e) => o({
9
9
  url: e.url ?? "",
10
10
  elements: s(e.elements)
11
11
  }), []);
12
12
  return l({
13
13
  id: "queries",
14
- callbacks: i(() => a(t, { invalidateQueries: u }), [u])
14
+ callbacks: i(() => a(e, { invalidateQueries: u }), [u])
15
15
  }), c;
16
16
  };
17
- //#endregion
18
17
  export { c as default };
@@ -1,4 +1,4 @@
1
- //#region src/sources/QueriesSource/callbacks.ts
1
+ // src/sources/QueriesSource/callbacks.ts
2
2
  var e = { invalidateQueries: {
3
3
  source: "queries",
4
4
  title: "Invalidate Queries",
@@ -20,5 +20,4 @@ var e = { invalidateQueries: {
20
20
  },
21
21
  preview: {}
22
22
  } };
23
- //#endregion
24
23
  export { e as queriesCallbacks };
@@ -1,4 +1,4 @@
1
- //#region src/sources/QueriesSource/writeParams.ts
1
+ // src/sources/QueriesSource/writeParams.ts
2
2
  var e = {
3
3
  origin: "Requests to the same site",
4
4
  all: "All cached requests",
@@ -24,5 +24,4 @@ var e = {
24
24
  when: (e) => n(e) && e.invalidateQueries === "elements"
25
25
  }
26
26
  });
27
- //#endregion
28
27
  export { t as writeInvalidationParams };
@@ -1,9 +1,9 @@
1
- import e from "../../InteractionsContext.mjs";
2
- import { stateCallbacks as t } from "./callbacks.mjs";
1
+ import { stateCallbacks as e } from "./callbacks.mjs";
2
+ import t from "../../InteractionsContext.mjs";
3
3
  import { use as n, useCallback as r, useMemo as i } from "react";
4
4
  import { toInteractionCallbacks as a } from "@plitzi/sdk-shared/authoring";
5
5
  import { useCommonStoreSetter as o } from "@plitzi/sdk-shared/store";
6
- //#region src/sources/StateSource/StateInteractions.tsx
6
+ // src/sources/StateSource/StateInteractions.tsx
7
7
  var s = 0, c = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `e${++s}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`, l = (e, t) => {
8
8
  if (typeof t != "string") return t;
9
9
  try {
@@ -12,7 +12,7 @@ var s = 0, c = () => typeof crypto < "u" && typeof crypto.randomUUID == "functio
12
12
  throw Error(`setState "${e}" is typed json, and its value is not JSON: ${t.slice(0, 80)}`);
13
13
  }
14
14
  }, u = ({ children: s }) => {
15
- let { useInteractions: u } = n(e), d = o(), f = r((e) => {
15
+ let { useInteractions: u } = n(t), d = o(), f = r((e) => {
16
16
  let { key: t, type: n } = e, r = e.value;
17
17
  if (n === "boolean") r = r === !0 || r === "true";
18
18
  else if (n === "number") r = typeof r == "number" ? r : parseFloat(String(r));
@@ -65,7 +65,7 @@ var s = 0, c = () => typeof crypto < "u" && typeof crypto.randomUUID == "functio
65
65
  }, [d]);
66
66
  return u({
67
67
  id: "state",
68
- callbacks: i(() => a(t, {
68
+ callbacks: i(() => a(e, {
69
69
  setState: f,
70
70
  toggleState: p,
71
71
  appendState: h,
@@ -84,5 +84,4 @@ var s = 0, c = () => typeof crypto < "u" && typeof crypto.randomUUID == "functio
84
84
  ])
85
85
  }), s;
86
86
  };
87
- //#endregion
88
87
  export { u as default };
@@ -1,4 +1,4 @@
1
- //#region src/sources/StateSource/callbacks.ts
1
+ // src/sources/StateSource/callbacks.ts
2
2
  var e = {
3
3
  setState: {
4
4
  source: "state",
@@ -149,5 +149,4 @@ var e = {
149
149
  } }
150
150
  }
151
151
  };
152
- //#endregion
153
152
  export { e as stateCallbacks };
@@ -1,11 +1,10 @@
1
1
  import { copyToClipboardSpec as e } from "./copyToClipboardSpec.mjs";
2
2
  import { clipboardWriter as t } from "@plitzi/sdk-shared/helpers";
3
3
  import { toInteractionCallback as n } from "@plitzi/sdk-shared/authoring";
4
- //#region src/utility/copyToClipboard.ts
4
+ // src/utility/copyToClipboard.ts
5
5
  var r = n("copyToClipboard", e, async ({ text: e }) => {
6
6
  let n = t();
7
7
  if (!n) throw Error("This page has no clipboard to write to: the browser offers none here (a page not on https?)");
8
8
  await n(e);
9
9
  });
10
- //#endregion
11
10
  export { r as default };
@@ -1,4 +1,4 @@
1
- //#region src/utility/copyToClipboardSpec.ts
1
+ // src/utility/copyToClipboardSpec.ts
2
2
  var e = {
3
3
  title: "Copy To Clipboard",
4
4
  type: "utility",
@@ -11,5 +11,4 @@ var e = {
11
11
  required: !0
12
12
  } }
13
13
  };
14
- //#endregion
15
14
  export { e as copyToClipboardSpec };
@@ -1,4 +1,4 @@
1
- //#region src/utility/delayTime.ts
1
+ // src/utility/delayTime.ts
2
2
  var e = {
3
3
  action: "delayTime",
4
4
  title: "Delay Time",
@@ -20,5 +20,4 @@ var e = {
20
20
  r?.addEventListener("abort", i, { once: !0 });
21
21
  })
22
22
  };
23
- //#endregion
24
23
  export { e as default };
@@ -2,12 +2,11 @@ import e from "./copyToClipboard.mjs";
2
2
  import t from "./delayTime.mjs";
3
3
  import n from "./twigTemplate.mjs";
4
4
  import r from "./webHook.mjs";
5
- //#region src/utility/index.ts
5
+ // src/utility/index.ts
6
6
  var i = {
7
7
  copyToClipboard: e,
8
8
  delayTime: t,
9
9
  twigTemplate: n,
10
10
  webHook: r
11
11
  };
12
- //#endregion
13
12
  export { i as default };
@@ -1,6 +1,6 @@
1
1
  import { getPathsFromObject as e } from "@plitzi/sdk-shared/helpers";
2
2
  import { processTwig as t } from "@plitzi/sdk-shared/helpers/twigWrapper";
3
- //#region src/utility/twigTemplate.ts
3
+ // src/utility/twigTemplate.ts
4
4
  var n = {
5
5
  action: "twigTemplate",
6
6
  title: "Twig Template",
@@ -73,5 +73,4 @@ var n = {
73
73
  return { content: i };
74
74
  }
75
75
  };
76
- //#endregion
77
76
  export { n as default };
@@ -1,7 +1,7 @@
1
1
  import { webHookSpec as e } from "./webHookSpec.mjs";
2
2
  import { toInteractionCallback as t } from "@plitzi/sdk-shared/authoring";
3
3
  import { invalidateAfterWrite as n, queryCache as r, requestKey as i } from "@plitzi/sdk-shared/queries";
4
- //#region src/utility/webHook.ts
4
+ // src/utility/webHook.ts
5
5
  var a = /* @__PURE__ */ new Set(["GET", "HEAD"]), o = /* @__PURE__ */ new Set([
6
6
  "GET",
7
7
  "HEAD",
@@ -67,5 +67,4 @@ var a = /* @__PURE__ */ new Set(["GET", "HEAD"]), o = /* @__PURE__ */ new Set([
67
67
  url: e.url
68
68
  }), { response: l };
69
69
  });
70
- //#endregion
71
70
  export { p as default };
@@ -1,5 +1,5 @@
1
1
  import { writeInvalidationParams as e } from "../sources/QueriesSource/writeParams.mjs";
2
- //#region src/utility/webHookSpec.ts
2
+ // src/utility/webHookSpec.ts
3
3
  var t = (e) => {
4
4
  let t = typeof e.method == "string" ? e.method.toLowerCase() : "get";
5
5
  return t === "get" || t === "head";
@@ -82,5 +82,4 @@ var t = (e) => {
82
82
  data: ""
83
83
  } }
84
84
  };
85
- //#endregion
86
85
  export { n as webHookSpec };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-interactions",
3
- "version": "0.39.0",
3
+ "version": "0.39.2",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -9,17 +9,19 @@
9
9
  ".": {
10
10
  "@plitzi/source": "./src/index.ts",
11
11
  "types": "./dist/index.d.ts",
12
- "import": "./dist/index.mjs"
12
+ "import": "./dist/index.mjs",
13
+ "default": "./dist/index.mjs"
13
14
  },
14
15
  "./*": {
15
16
  "@plitzi/source": "./src/*/index.ts",
16
17
  "types": "./dist/*/index.d.ts",
17
- "import": "./dist/*/index.mjs"
18
+ "import": "./dist/*/index.mjs",
19
+ "default": "./dist/*/index.mjs"
18
20
  }
19
21
  },
20
22
  "scripts": {
21
- "lint": "eslint ./src",
22
- "typecheck": "tsc -p tsconfig.app.json --noEmit",
23
+ "lint": "eslint --cache --cache-location .eslintcache --cache-strategy content ./src",
24
+ "typecheck": "tsc -p tsconfig.app.json --noEmit --incremental --tsBuildInfoFile .tsbuildinfo/app.tsbuildinfo",
23
25
  "test": "vitest run",
24
26
  "test:watch": "vitest",
25
27
  "build:dev": "vite build --mode development --minify false",
@@ -32,14 +34,15 @@
32
34
  "eslint": "^9.39.5",
33
35
  "react": "^19.3.1",
34
36
  "typescript": "^6.0.3",
35
- "vite": "^8.3.4",
36
- "vitest": "^5.0.5"
37
+ "vite": "^8.3.7",
38
+ "vitest": "^5.1.0"
37
39
  },
38
40
  "dependencies": {
39
- "@plitzi/plitzi-ui": "^1.6.36",
40
- "@plitzi/sdk-auth": "0.39.0",
41
- "@plitzi/sdk-event-bridge": "0.39.0",
42
- "@plitzi/sdk-shared": "0.39.0"
41
+ "@plitzi/nexus": "^1.4.0",
42
+ "@plitzi/plitzi-ui": "^1.6.38",
43
+ "@plitzi/sdk-auth": "0.39.2",
44
+ "@plitzi/sdk-event-bridge": "0.39.2",
45
+ "@plitzi/sdk-shared": "0.39.2"
43
46
  },
44
47
  "peerDependencies": {
45
48
  "react": "^19"