visio-react-viewer 0.3.0 → 0.5.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.js +4922 -2232
- package/dist/types/src/backstage.d.ts +15 -0
- package/dist/types/src/contract.d.ts +1 -1
- package/dist/types/src/controller.d.ts +5 -0
- package/dist/types/src/ribbon-action.d.ts +8 -1
- package/dist/types/src/ribbon-home-format.d.ts +2 -0
- package/dist/types/src/ribbon-home.d.ts +3 -3
- package/dist/types/src/ribbon-keytips.d.ts +2 -0
- package/dist/types/src/ribbon-other-tabs.d.ts +12 -0
- package/dist/types/src/ribbon-parts.d.ts +49 -9
- package/dist/types/src/ribbon-router.d.ts +3 -1
- package/dist/types/src/ribbon-view.d.ts +4 -1
- package/dist/types/src/ribbon.d.ts +9 -2
- package/dist/types/src/shapes-window.d.ts +28 -0
- package/dist/types/src/status-bar.d.ts +4 -1
- package/dist/types/src/styles.d.ts +1 -1
- package/dist/types/src/viewer-backstage.d.ts +33 -0
- package/dist/types/src/viewer-canvas.d.ts +21 -0
- package/dist/types/src/viewer-chrome.d.ts +9 -6
- package/dist/types/src/viewer-commands.d.ts +4 -1
- package/dist/types/src/viewer-context-menu.d.ts +8 -0
- package/dist/types/src/viewer-draw-tool.d.ts +16 -0
- package/dist/types/src/viewer-element.d.ts +7 -0
- package/dist/types/src/viewer-fit.d.ts +6 -0
- package/dist/types/src/viewer-input.d.ts +0 -2
- package/dist/types/src/viewer-options.d.ts +22 -0
- package/dist/types/src/viewer-pan-zoom.d.ts +19 -0
- package/dist/types/src/viewer-ruler.d.ts +13 -0
- package/dist/types/src/viewer-search.d.ts +18 -11
- package/dist/types/src/viewer-share.d.ts +20 -0
- package/dist/types/src/viewer-stencil.d.ts +6 -0
- package/dist/types/src/viewer-tell-me.d.ts +4 -0
- package/package.json +4 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { OfficeProfile } from 'ooxml-ui/controls';
|
|
2
|
+
import type { ViewerController } from './controller.js';
|
|
3
|
+
type Collab = typeof import('ooxml-core/collab');
|
|
4
|
+
/**
|
|
5
|
+
* File > Share: a live session over `ooxml-core/collab` (Yjs). Peers in other windows of this
|
|
6
|
+
* browser share the whole VSDX package through a BroadcastChannel; remote changes arrive as one
|
|
7
|
+
* undoable history step. The collab runtime loads only when sharing starts.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ViewerShare {
|
|
10
|
+
#private;
|
|
11
|
+
private readonly controller;
|
|
12
|
+
private readonly profile;
|
|
13
|
+
private readonly loadCollab;
|
|
14
|
+
constructor(root: ShadowRoot, controller: ViewerController, profile: () => OfficeProfile, loadCollab?: () => Promise<Collab>);
|
|
15
|
+
get active(): boolean;
|
|
16
|
+
wire(): () => void;
|
|
17
|
+
start(roomId: string): Promise<void>;
|
|
18
|
+
stop(): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewerController } from './controller.js';
|
|
2
|
+
/**
|
|
3
|
+
* Shapes window interaction: drag a master onto the page to drop it there, or activate it to add
|
|
4
|
+
* it at the page centre. Only masters the core can create are draggable; the rest stay inert.
|
|
5
|
+
*/
|
|
6
|
+
export declare function wireStencil(pane: HTMLElement, viewport: HTMLElement, controller: ViewerController, announce: (message: string) => void): () => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Visio's "Tell me what you want to do" box (the shared `office-ui-command-search`). */
|
|
2
|
+
export declare function createTellMe(doc: Document): HTMLElement;
|
|
3
|
+
/** The command list refreshes on focus, so enabled states always match the ribbon. */
|
|
4
|
+
export declare function wireTellMe(root: ShadowRoot): () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visio-react-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Local-first Visio viewer for react",
|
|
5
5
|
"homepage": "https://christophervr.github.io/visio-viewer/",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"emf-converter": "4.8.9",
|
|
31
|
-
"ooxml-core": "^0.
|
|
32
|
-
"ooxml-ui": "^0.
|
|
33
|
-
"visio-core": "^0.
|
|
31
|
+
"ooxml-core": "^0.14.1",
|
|
32
|
+
"ooxml-ui": "^0.13.0",
|
|
33
|
+
"visio-core": "^0.3.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=18"
|