vim-web 0.3.44-dev.27 → 0.3.44-dev.28
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 +2 -2
- package/dist/style.css +6 -0
- package/dist/types/core-viewers/ultra/index.d.ts +1 -0
- package/dist/types/react-viewers/ultra/errors/ultraErrors.d.ts +1 -1
- package/dist/types/react-viewers/urls.d.ts +1 -0
- package/dist/vim-web.iife.js +14 -11
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +14 -11
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -61788,9 +61788,9 @@ class Renderer2 {
|
|
|
61788
61788
|
}
|
|
61789
61789
|
class SectionBox2 {
|
|
61790
61790
|
constructor(rpc) {
|
|
61791
|
-
__publicField(this, "_visible",
|
|
61792
|
-
__publicField(this, "_interactible",
|
|
61793
|
-
__publicField(this, "_clip",
|
|
61791
|
+
__publicField(this, "_visible", false);
|
|
61792
|
+
__publicField(this, "_interactible", false);
|
|
61793
|
+
__publicField(this, "_clip", false);
|
|
61794
61794
|
__publicField(this, "_box", new Box3());
|
|
61795
61795
|
__publicField(this, "_rpc");
|
|
61796
61796
|
__publicField(this, "_interval");
|
|
@@ -75856,13 +75856,14 @@ function useSectionBox(adapter) {
|
|
|
75856
75856
|
const bottomOffset = useStateRef("1");
|
|
75857
75857
|
const boxRef = useRef(adapter.getBox());
|
|
75858
75858
|
useEffect(() => {
|
|
75859
|
-
adapter.setClip(true);
|
|
75860
75859
|
adapter.setVisible(false);
|
|
75860
|
+
adapter.setClip(false);
|
|
75861
75861
|
return adapter.onSelectionChanged.sub(() => {
|
|
75862
75862
|
if (auto.get() && enable.get()) sectionSelection.call();
|
|
75863
75863
|
});
|
|
75864
75864
|
}, []);
|
|
75865
75865
|
enable.useOnChange((v) => {
|
|
75866
|
+
adapter.setClip(v);
|
|
75866
75867
|
visible2.set(v);
|
|
75867
75868
|
showOffsetPanel.set(false);
|
|
75868
75869
|
if (v && auto.get()) {
|
|
@@ -76247,11 +76248,13 @@ const errorStyle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
76247
76248
|
vcRoboto
|
|
76248
76249
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
76249
76250
|
const support = "https://docs.vimaec.com";
|
|
76251
|
+
const supportUltra = "https://docs.vimaec.com/docs/vim-for-windows/configuring-vim-ultra";
|
|
76250
76252
|
const supportControls = "https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide";
|
|
76251
76253
|
const urls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76252
76254
|
__proto__: null,
|
|
76253
76255
|
support,
|
|
76254
|
-
supportControls
|
|
76256
|
+
supportControls,
|
|
76257
|
+
supportUltra
|
|
76255
76258
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
76256
76259
|
function fileOpeningError(url) {
|
|
76257
76260
|
return {
|
|
@@ -76297,12 +76300,12 @@ function serverFileDownloadingError(url, authToken, server) {
|
|
|
76297
76300
|
}
|
|
76298
76301
|
return {
|
|
76299
76302
|
title: "File Downloading Error",
|
|
76300
|
-
body: body$4(
|
|
76303
|
+
body: body$4(url, authToken, server),
|
|
76301
76304
|
footer: footer(support),
|
|
76302
76305
|
canClose: false
|
|
76303
76306
|
};
|
|
76304
76307
|
}
|
|
76305
|
-
function body$4(url,
|
|
76308
|
+
function body$4(url, authToken, server) {
|
|
76306
76309
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: vcRoboto, children: [
|
|
76307
76310
|
mainText(/* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
76308
76311
|
"Oops, it appears that there’s an ",
|
|
@@ -76367,7 +76370,7 @@ function body$2(url, local) {
|
|
|
76367
76370
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
76368
76371
|
"Ensure that VIM Ultra",
|
|
76369
76372
|
" ",
|
|
76370
|
-
link(
|
|
76373
|
+
link(supportUltra, "process is running"),
|
|
76371
76374
|
" ",
|
|
76372
76375
|
"at ",
|
|
76373
76376
|
detailText(url)
|
|
@@ -76449,7 +76452,7 @@ function getErrorMessage(state) {
|
|
|
76449
76452
|
return serverStreamError(state.serverUrl);
|
|
76450
76453
|
}
|
|
76451
76454
|
}
|
|
76452
|
-
function getRequestErrorMessage(source, error) {
|
|
76455
|
+
function getRequestErrorMessage(serverUrl, source, error) {
|
|
76453
76456
|
console.log(error);
|
|
76454
76457
|
switch (error) {
|
|
76455
76458
|
case "loadingError":
|
|
@@ -76457,7 +76460,7 @@ function getRequestErrorMessage(source, error) {
|
|
|
76457
76460
|
case "downloadingError":
|
|
76458
76461
|
case "unknown":
|
|
76459
76462
|
case "cancelled":
|
|
76460
|
-
return serverFileDownloadingError(source.url);
|
|
76463
|
+
return serverFileDownloadingError(source.url, source.authToken, serverUrl);
|
|
76461
76464
|
case "serverDisconnected":
|
|
76462
76465
|
return serverConnectionError(source.url);
|
|
76463
76466
|
}
|
|
@@ -76603,7 +76606,7 @@ function patchLoad(viewer, modal) {
|
|
|
76603
76606
|
void request2.getResult().then(
|
|
76604
76607
|
(result) => {
|
|
76605
76608
|
if (result.isError) {
|
|
76606
|
-
modal.message(getRequestErrorMessage(source, result.error));
|
|
76609
|
+
modal.message(getRequestErrorMessage(viewer.serverUrl, source, result.error));
|
|
76607
76610
|
return;
|
|
76608
76611
|
}
|
|
76609
76612
|
if (result.isSuccess) {
|