@lofcz/pptist 2.0.23 → 2.0.25
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/README.md +7 -7
- package/dist/embed/agentic-manifest.json +2 -2
- package/dist/embed/pptist-embed.css +1 -1
- package/dist/embed/pptist-embed.js +21541 -21410
- package/dist/types/utils/portal.d.ts +12 -0
- package/package.json +2 -2
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
export declare function setPptistPortalTarget(target: HTMLElement | null): void;
|
|
2
2
|
export declare function clearPptistPortalTarget(target: HTMLElement): void;
|
|
3
3
|
export declare function getPptistPortalTarget(): HTMLElement;
|
|
4
|
+
/**
|
|
5
|
+
* Resolve the portal target for a *specific* embed instance.
|
|
6
|
+
*
|
|
7
|
+
* The module-level `portalTarget` only tracks the last-mounted embed, so when
|
|
8
|
+
* several embeds coexist (e.g. multiple decks force-mounted side by side in a
|
|
9
|
+
* host app) it points at the wrong one — overlays then render into a sibling
|
|
10
|
+
* embed's portal, which the host may have hidden (`display:none`), so they
|
|
11
|
+
* never appear. Resolving from the interacted element keeps each overlay in
|
|
12
|
+
* its own embed. Falls back to the global target for the standalone app, where
|
|
13
|
+
* there is no `.pptist-embed-root` wrapper.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolvePptistPortalTarget(el?: Element | null): HTMLElement;
|
|
4
16
|
export declare function queryPptist<T extends Element = Element>(selector: string): T | null;
|
|
5
17
|
export declare function queryPptistAll<T extends Element = Element>(selector: string): NodeListOf<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lofcz/pptist",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"description": "PPTist presentation editor embed bundle with a typed agentic bridge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/embed/pptist-embed.js",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"overlayscrollbars": "^2.16.0",
|
|
86
86
|
"pinia": "^3.0.2",
|
|
87
87
|
"pptxgenjs": "^3.12.0",
|
|
88
|
-
"pptxtojson": "^2.0.
|
|
88
|
+
"pptxtojson": "^2.0.6",
|
|
89
89
|
"prosemirror-commands": "^1.6.0",
|
|
90
90
|
"prosemirror-dropcursor": "^1.8.1",
|
|
91
91
|
"prosemirror-gapcursor": "^1.3.2",
|