@xtandard/webhooks 0.1.0 → 0.1.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/dist/cli.cjs +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/{core-CMpnmI5Q.mjs → core-B1JzRitF.mjs} +20 -3
- package/dist/core-B1JzRitF.mjs.map +1 -0
- package/dist/{core-ZGhH6Vs2.cjs → core-DuHD0Rdg.cjs} +20 -3
- package/dist/core-DuHD0Rdg.cjs.map +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{create-fetch-handler-jy3hy5nZ.d.mts → create-fetch-handler-BN9vXbgW.d.mts} +7 -3
- package/dist/{create-fetch-handler-CmooujQo.cjs → create-fetch-handler-BNsNcspj.cjs} +6 -5
- package/dist/{create-fetch-handler-CmooujQo.cjs.map → create-fetch-handler-BNsNcspj.cjs.map} +1 -1
- package/dist/{create-fetch-handler-BIdk9P30.mjs → create-fetch-handler-C6BqzdsN.mjs} +6 -5
- package/dist/{create-fetch-handler-BIdk9P30.mjs.map → create-fetch-handler-C6BqzdsN.mjs.map} +1 -1
- package/dist/{create-fetch-handler-Dlkhustu.d.cts → create-fetch-handler-D9ZRfrY6.d.cts} +7 -3
- package/dist/{dispatcher-Coubwrka.mjs → dispatcher-CFfWo-fN.mjs} +3 -3
- package/dist/{dispatcher-Coubwrka.mjs.map → dispatcher-CFfWo-fN.mjs.map} +1 -1
- package/dist/{dispatcher-B0xTEHt1.cjs → dispatcher-COdWV6hM.cjs} +3 -3
- package/dist/{dispatcher-B0xTEHt1.cjs.map → dispatcher-COdWV6hM.cjs.map} +1 -1
- package/dist/entry-bun.cjs +1 -1
- package/dist/entry-bun.d.cts +1 -1
- package/dist/entry-bun.d.mts +1 -1
- package/dist/entry-bun.mjs +1 -1
- package/dist/entry-elysia.cjs +1 -1
- package/dist/entry-elysia.d.cts +1 -1
- package/dist/entry-elysia.d.mts +1 -1
- package/dist/entry-elysia.mjs +1 -1
- package/dist/entry-express.cjs +1 -1
- package/dist/entry-express.d.cts +1 -1
- package/dist/entry-express.d.mts +1 -1
- package/dist/entry-express.mjs +1 -1
- package/dist/entry-hono.cjs +1 -1
- package/dist/entry-hono.d.cts +1 -1
- package/dist/entry-hono.d.mts +1 -1
- package/dist/entry-hono.mjs +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/react.css +1 -1
- package/dist/react.js +2522 -2506
- package/dist/testing.cjs +2 -2
- package/dist/testing.mjs +2 -2
- package/dist/types-react/ui/lib/portal-container.d.ts +24 -0
- package/dist/ui/assets/{index-S5t_CLOe.js → index-BgyX_njf.js} +44 -44
- package/dist/ui/assets/index-mJCJq_EB.css +1 -0
- package/dist/ui/index.html +2 -2
- package/package.json +4 -2
- package/dist/core-CMpnmI5Q.mjs.map +0 -1
- package/dist/core-ZGhH6Vs2.cjs.map +0 -1
- package/dist/ui/assets/index-B0eoQX2U.css +0 -1
package/dist/testing.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_core = require("./core-DuHD0Rdg.cjs");
|
|
2
3
|
const require_signing = require("./signing.cjs");
|
|
3
|
-
const
|
|
4
|
-
const require_dispatcher = require("./dispatcher-B0xTEHt1.cjs");
|
|
4
|
+
const require_dispatcher = require("./dispatcher-COdWV6hM.cjs");
|
|
5
5
|
const require_memory = require("./memory-8Ef-PL5a.cjs");
|
|
6
6
|
let node_http = require("node:http");
|
|
7
7
|
//#region src/testing.ts
|
package/dist/testing.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { o as createWebhooksCore } from "./core-B1JzRitF.mjs";
|
|
1
2
|
import { verify } from "./signing.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n as createDispatcher } from "./dispatcher-Coubwrka.mjs";
|
|
3
|
+
import { n as createDispatcher } from "./dispatcher-CFfWo-fN.mjs";
|
|
4
4
|
import { t as createMemoryStorage } from "./memory-BMsSSwqn.mjs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
//#region src/testing.ts
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where Base UI portals (Select/Combobox popups, Dialogs) render.
|
|
3
|
+
*
|
|
4
|
+
* In the **standalone SPA** the stylesheet is global, so portals default to
|
|
5
|
+
* `document.body` and look right. In the **React embed** the stylesheet is
|
|
6
|
+
* scoped under `.xtandard-webhooks` (see `scripts/scope-embed-css.ts`), so
|
|
7
|
+
* anything portaled to `document.body` would fall outside the scope and render
|
|
8
|
+
* unstyled. The embed therefore points portals at its own wrapper element via
|
|
9
|
+
* {@link setPortalContainerRef}, keeping popups inside the scoped subtree.
|
|
10
|
+
*
|
|
11
|
+
* Module-level singleton (same trade-off as `setApiBase`/`setApiToken`): one
|
|
12
|
+
* embed per page. Unset → portals default to `document.body`.
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
import type { RefObject } from "react";
|
|
17
|
+
/** Point portals at `ref` (the embed wrapper). Pass `undefined` to reset to the body default. */
|
|
18
|
+
export declare function setPortalContainerRef(ref: RefObject<HTMLElement | null> | undefined): void;
|
|
19
|
+
/**
|
|
20
|
+
* The current portal container ref, or `undefined` when none is set (Base UI
|
|
21
|
+
* then defaults to `document.body`). Pass the result to a Base UI
|
|
22
|
+
* `*.Portal container={…}` prop.
|
|
23
|
+
*/
|
|
24
|
+
export declare function portalContainerRef(): RefObject<HTMLElement | null> | undefined;
|