@autono/pinbox-toolbar 0.14.0 → 0.16.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/dist/{index-BVd-ZD4Y.d.ts → index-DENhglDF.d.ts} +48 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +3 -7
- package/dist/{src-GX3kPe0X.js → src-z-YC_RT4.js} +1991 -1081
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +3 -3
- package/dist/toolbar.iife.js +1991 -1081
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +2 -2
- package/package.json +2 -2
package/dist/svelte.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as applyHubEvent, a as HubEvent, b as upsertPin, c as WebSocketLike, d as PinboxToolbarElement, f as Draft, g as appendThreadMessage, h as UiStatus, i as ConnectionState, l as HubError, m as ToolbarState, n as PinboxConfig, o as HubTransport, p as Store, r as defineToolbarElement, s as TransportOptions, t as Pinbox, u as StorageLike, v as createStore, x as CaptureResult, y as deriveUiStatus } from "./index-
|
|
1
|
+
import { _ as applyHubEvent, a as HubEvent, b as upsertPin, c as WebSocketLike, d as PinboxToolbarElement, f as Draft, g as appendThreadMessage, h as UiStatus, i as ConnectionState, l as HubError, m as ToolbarState, n as PinboxConfig, o as HubTransport, p as Store, r as defineToolbarElement, s as TransportOptions, t as Pinbox, u as StorageLike, v as createStore, x as CaptureResult, y as deriveUiStatus } from "./index-DENhglDF.js";
|
|
2
2
|
import { Action } from "svelte/action";
|
|
3
3
|
//#region src/svelte.d.ts
|
|
4
4
|
/**
|
package/dist/svelte.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as HubError, c as createStore, i as HubTransport, l as deriveUiStatus, n as defineToolbarElement, o as appendThreadMessage, r as PinboxToolbarElement, s as applyHubEvent, t as Pinbox, u as upsertPin } from "./src-
|
|
1
|
+
import { a as HubError, c as createStore, i as HubTransport, l as deriveUiStatus, n as defineToolbarElement, o as appendThreadMessage, r as PinboxToolbarElement, s as applyHubEvent, t as Pinbox, u as upsertPin } from "./src-z-YC_RT4.js";
|
|
2
2
|
//#region src/svelte.ts
|
|
3
3
|
/**
|
|
4
4
|
* `<div use:pinbox={{ endpoint }} />` — creates + configures the element BEFORE insertion
|
|
5
5
|
* (its transport starts in connectedCallback) and removes it when the node is destroyed.
|
|
6
6
|
* Config forwards once; re-create the node to change endpoints.
|
|
7
7
|
*/
|
|
8
|
-
const pinbox = (
|
|
8
|
+
const pinbox = (_node, config) => {
|
|
9
9
|
defineToolbarElement();
|
|
10
10
|
const el = document.createElement(PinboxToolbarElement.tagName);
|
|
11
11
|
el.configure(config);
|
|
12
|
-
|
|
12
|
+
document.body.appendChild(el);
|
|
13
13
|
return { destroy: () => {
|
|
14
14
|
el.remove();
|
|
15
15
|
} };
|