visio-svelte-viewer 0.5.7 → 0.5.9
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/VisioViewer.svelte +3 -3
- package/dist/index.js +1 -0
- package/dist/index.server.js +2 -2
- package/package.json +4 -4
package/dist/VisioViewer.svelte
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { readonly, writable } from 'svelte/store';
|
|
3
3
|
import { mountFrameworkViewer, viewerHandle, viewerOptions, viewerStateSource, type ViewerState, type MountedViewer, type ViewerProps, type VsdxSource, type VisioEdit, type SvgExportOptions, type CurrentPagePrintSnapshotOptions } from './runtime.js';
|
|
4
|
-
type Props = ViewerProps & { class?: string; style?: string };
|
|
5
|
-
let { document, pageIndex, zoom, showToolbar, events, class: className, style }: Props = $props();
|
|
4
|
+
type Props = ViewerProps & { class?: string; style?: string; 'aria-label'?: string };
|
|
5
|
+
let { document, pageIndex, zoom, showToolbar, events, class: className, style, 'aria-label': ariaLabel }: Props = $props();
|
|
6
6
|
const options = $derived({ document, pageIndex, zoom, showToolbar, events } satisfies Required<ViewerProps>);
|
|
7
7
|
let binding: MountedViewer | undefined;
|
|
8
8
|
const handle = viewerHandle(() => binding);
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
export function exportSvg(options?: SvgExportOptions) { return handle.exportSvg(options); }
|
|
36
36
|
export function createPrintSnapshot(options?: CurrentPagePrintSnapshotOptions) { return handle.createPrintSnapshot(options); }
|
|
37
37
|
</script>
|
|
38
|
-
<div class={className} {style} use:attach={options}></div>
|
|
38
|
+
<div class={className} {style} aria-label={ariaLabel} use:attach={options}></div>
|
package/dist/index.js
CHANGED
|
@@ -217,6 +217,7 @@ function VisioViewer($$anchor, $$props) {
|
|
|
217
217
|
$.template_effect(() => {
|
|
218
218
|
$.set_class(div, 1, $.clsx($$props.class));
|
|
219
219
|
$.set_style(div, $$props.style);
|
|
220
|
+
$.set_attribute(div, "aria-label", $$props["aria-label"]);
|
|
220
221
|
});
|
|
221
222
|
$.append($$anchor, div);
|
|
222
223
|
return $.pop($$exports);
|
package/dist/index.server.js
CHANGED
|
@@ -60,7 +60,7 @@ function viewerHandle(current) {
|
|
|
60
60
|
//#region packages/bindings/src/VisioViewer.svelte
|
|
61
61
|
function VisioViewer($$renderer, $$props) {
|
|
62
62
|
$$renderer.component(($$renderer) => {
|
|
63
|
-
let { document, pageIndex, zoom, showToolbar, events, class: className, style } = $$props;
|
|
63
|
+
let { document, pageIndex, zoom, showToolbar, events, class: className, style, "aria-label": ariaLabel } = $$props;
|
|
64
64
|
$.derived(() => ({
|
|
65
65
|
document,
|
|
66
66
|
pageIndex,
|
|
@@ -114,7 +114,7 @@ function VisioViewer($$renderer, $$props) {
|
|
|
114
114
|
function createPrintSnapshot(options) {
|
|
115
115
|
return handle.createPrintSnapshot(options);
|
|
116
116
|
}
|
|
117
|
-
$$renderer.push(`<div${$.attr_class($.clsx(className))}${$.attr_style(style)}></div>`);
|
|
117
|
+
$$renderer.push(`<div${$.attr_class($.clsx(className))}${$.attr_style(style)}${$.attr("aria-label", ariaLabel)}></div>`);
|
|
118
118
|
$.bind_props($$props, {
|
|
119
119
|
getState,
|
|
120
120
|
getHandle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visio-svelte-viewer",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "Local-first Visio viewer for svelte",
|
|
5
5
|
"homepage": "https://christophervr.github.io/ooxml/visio/",
|
|
6
6
|
"bugs": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"emf-converter": "4.8.21",
|
|
41
|
-
"ooxml-core": "^
|
|
42
|
-
"ooxml-ui": "^
|
|
43
|
-
"visio-core": "^0.3.
|
|
41
|
+
"ooxml-core": "^1.1.0",
|
|
42
|
+
"ooxml-ui": "^1.1.0",
|
|
43
|
+
"visio-core": "^0.3.7"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"svelte": "^5.0.0"
|