@bluepic/embed 0.4.0-next.131 → 0.4.0-next.133

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.
@@ -0,0 +1,26 @@
1
+ import { type InjectionKey, type Ref } from 'vue';
2
+ /**
3
+ * A channel for putting controls INTO the popup's own header.
4
+ *
5
+ * A popup owns its header — title, actions, close button — while the thing
6
+ * rendered inside it owns the state those actions act on. The asset viewer's
7
+ * Preview/Source switch is the case in point: it belongs visually beside the
8
+ * Download button, but the text it copies and the view it toggles live in the
9
+ * viewer, three levels down.
10
+ *
11
+ * Rather than lift that state into every host that opens a popup, the popup
12
+ * publishes the header's action container as an element ref and descendants
13
+ * TELEPORT into it. The control renders where it belongs while its state stays
14
+ * where it belongs.
15
+ *
16
+ * Null when there is no popup ancestor — a component using this must keep
17
+ * working standalone, so treat it as "no header available" and render inline.
18
+ */
19
+ export declare const popupHeaderToolsKey: InjectionKey<Ref<HTMLElement | null>>;
20
+ /** Called by the popup itself. Returns the ref to bind to the tools container. */
21
+ export declare function providePopupHeaderTools(): Ref<HTMLElement | null>;
22
+ /**
23
+ * Called by content inside a popup. The returned ref resolves after mount, so
24
+ * teleport with `v-if` on it rather than reading it during setup.
25
+ */
26
+ export declare function usePopupHeaderTools(): Ref<HTMLElement | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluepic/embed",
3
- "version": "0.4.0-next.131",
3
+ "version": "0.4.0-next.133",
4
4
  "description": "Bluepic embed sdk",
5
5
  "type": "module",
6
6
  "sideEffects": false,