visio-solid-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/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mountViewer, propertyKeys } from "ooxml-ui/visio";
|
|
2
|
-
import { className, effect, style, template, use } from "solid-js/web";
|
|
2
|
+
import { className, effect, setAttribute, style, template, use } from "solid-js/web";
|
|
3
3
|
import { createEffect, createSignal, onCleanup, onMount } from "solid-js";
|
|
4
4
|
export * from "ooxml-ui/visio";
|
|
5
5
|
export * from "visio-core";
|
|
@@ -161,13 +161,15 @@ function VisioViewer(props) {
|
|
|
161
161
|
var _ref$ = host;
|
|
162
162
|
typeof _ref$ === "function" ? use(_ref$, _el$) : host = _el$;
|
|
163
163
|
effect((_p$) => {
|
|
164
|
-
var _v$ = props.class, _v$2 = props.style;
|
|
164
|
+
var _v$ = props.class, _v$2 = props.style, _v$3 = props["aria-label"];
|
|
165
165
|
_v$ !== _p$.e && className(_el$, _p$.e = _v$);
|
|
166
166
|
_p$.t = style(_el$, _v$2, _p$.t);
|
|
167
|
+
_v$3 !== _p$.a && setAttribute(_el$, "aria-label", _p$.a = _v$3);
|
|
167
168
|
return _p$;
|
|
168
169
|
}, {
|
|
169
170
|
e: void 0,
|
|
170
|
-
t: void 0
|
|
171
|
+
t: void 0,
|
|
172
|
+
a: void 0
|
|
171
173
|
});
|
|
172
174
|
return _el$;
|
|
173
175
|
})();
|
package/dist/index.server.js
CHANGED
|
@@ -124,7 +124,8 @@ function viewerStateSource(current) {
|
|
|
124
124
|
var _tmpl$ = [
|
|
125
125
|
"<div",
|
|
126
126
|
" style=\"",
|
|
127
|
-
"\"
|
|
127
|
+
"\"",
|
|
128
|
+
"></div>"
|
|
128
129
|
];
|
|
129
130
|
/** Native Solid host and ownership; all document work remains in the shared binding. */
|
|
130
131
|
function VisioViewer(props) {
|
|
@@ -160,7 +161,7 @@ function VisioViewer(props) {
|
|
|
160
161
|
mounted?.destroy();
|
|
161
162
|
}
|
|
162
163
|
});
|
|
163
|
-
return ssr(_tmpl$, ssrHydrationKey() + ssrAttribute("class", escape(props.class, true), false), ssrStyle(props.style));
|
|
164
|
+
return ssr(_tmpl$, ssrHydrationKey() + ssrAttribute("class", escape(props.class, true), false), ssrStyle(props.style), ssrAttribute("aria-label", escape(props["aria-label"], true), false));
|
|
164
165
|
}
|
|
165
166
|
/**
|
|
166
167
|
* Reactive viewer state as a Solid accessor for a handle accessor (for example a signal set by
|
|
@@ -3,6 +3,7 @@ import { type ViewerHandle, type ViewerProps, type ViewerState } from './common.
|
|
|
3
3
|
export interface VisioViewerProps extends ViewerProps {
|
|
4
4
|
class?: string | undefined;
|
|
5
5
|
style?: JSX.CSSProperties | undefined;
|
|
6
|
+
'aria-label'?: string | undefined;
|
|
6
7
|
viewerRef?: ((handle: ViewerHandle | undefined) => void) | undefined;
|
|
7
8
|
}
|
|
8
9
|
/** Native Solid host and ownership; all document work remains in the shared binding. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visio-solid-viewer",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "Local-first Visio viewer for solid",
|
|
5
5
|
"homepage": "https://christophervr.github.io/ooxml/visio/",
|
|
6
6
|
"bugs": {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"emf-converter": "4.8.21",
|
|
35
|
-
"ooxml-core": "^
|
|
36
|
-
"ooxml-ui": "^
|
|
37
|
-
"visio-core": "^0.3.
|
|
35
|
+
"ooxml-core": "^1.1.0",
|
|
36
|
+
"ooxml-ui": "^1.1.0",
|
|
37
|
+
"visio-core": "^0.3.7"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"solid-js": "^1.9.0"
|