vim-web 0.3.44-dev.51 → 0.3.44-dev.53

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/vim-web.js CHANGED
@@ -29195,7 +29195,7 @@ class CubeTextureLoader extends Loader {
29195
29195
  constructor(manager) {
29196
29196
  super(manager);
29197
29197
  }
29198
- load(urls, onLoad, onProgress, onError) {
29198
+ load(urls2, onLoad, onProgress, onError) {
29199
29199
  const texture = new CubeTexture();
29200
29200
  texture.colorSpace = SRGBColorSpace;
29201
29201
  const loader = new ImageLoader(this.manager);
@@ -29203,7 +29203,7 @@ class CubeTextureLoader extends Loader {
29203
29203
  loader.setPath(this.path);
29204
29204
  let loaded = 0;
29205
29205
  function loadTexture(i) {
29206
- loader.load(urls[i], function(image) {
29206
+ loader.load(urls2[i], function(image) {
29207
29207
  texture.images[i] = image;
29208
29208
  loaded++;
29209
29209
  if (loaded === 6) {
@@ -29212,7 +29212,7 @@ class CubeTextureLoader extends Loader {
29212
29212
  }
29213
29213
  }, void 0, onError);
29214
29214
  }
29215
- for (let i = 0; i < urls.length; ++i) {
29215
+ for (let i = 0; i < urls2.length; ++i) {
29216
29216
  loadTexture(i);
29217
29217
  }
29218
29218
  return texture;
@@ -50705,6 +50705,25 @@ function isWebSocketUrl(input) {
50705
50705
  return false;
50706
50706
  }
50707
50707
  }
50708
+ function isLocalUrl(url) {
50709
+ try {
50710
+ const parsedUrl = new URL(url);
50711
+ return parsedUrl.hostname === "localhost" || parsedUrl.hostname === "127.0.0.1";
50712
+ } catch (e) {
50713
+ return false;
50714
+ }
50715
+ }
50716
+ function isFilePathOrUri(input) {
50717
+ const fileUriPattern = /^file:\/\//i;
50718
+ if (fileUriPattern.test(input)) {
50719
+ return true;
50720
+ }
50721
+ const urlPattern = /^(https?|ftp|data|mailto|tel):/i;
50722
+ if (urlPattern.test(input)) {
50723
+ return false;
50724
+ }
50725
+ return true;
50726
+ }
50708
50727
  class Validation {
50709
50728
  //= ===========================================================================
50710
50729
  // BASIC NUMBER VALIDATIONS
@@ -74885,8 +74904,33 @@ function bullet(label, value) {
74885
74904
  function link(url, text) {
74886
74905
  return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: url, target: "_blank", className: vcLink, children: text });
74887
74906
  }
74907
+ const errorStyle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
74908
+ __proto__: null,
74909
+ bold,
74910
+ bullet,
74911
+ detailText,
74912
+ dotList,
74913
+ footer: footer$1,
74914
+ link,
74915
+ mainText,
74916
+ numList,
74917
+ subTitle,
74918
+ vcColorLink,
74919
+ vcColorPrimary,
74920
+ vcColorSecondary,
74921
+ vcLabel,
74922
+ vcLink,
74923
+ vcRoboto
74924
+ }, Symbol.toStringTag, { value: "Module" }));
74888
74925
  const support = "https://docs.vimaec.com";
74889
74926
  const supportUltra = "https://docs.vimaec.com/docs/vim-for-windows/configuring-vim-ultra";
74927
+ const supportControls = "https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide";
74928
+ const urls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
74929
+ __proto__: null,
74930
+ support,
74931
+ supportControls,
74932
+ supportUltra
74933
+ }, Symbol.toStringTag, { value: "Module" }));
74890
74934
  function fileOpeningError(url) {
74891
74935
  return {
74892
74936
  title: "File Opening Error",
@@ -74906,25 +74950,6 @@ function serverFileOpeningErrorBody(url) {
74906
74950
  dotList([bullet("File path:", url)])
74907
74951
  ] });
74908
74952
  }
74909
- function isLocalUrl(url) {
74910
- try {
74911
- const parsedUrl = new URL(url);
74912
- return parsedUrl.hostname === "localhost" || parsedUrl.hostname === "127.0.0.1";
74913
- } catch (e) {
74914
- return false;
74915
- }
74916
- }
74917
- function isFilePathOrUri(input) {
74918
- const fileUriPattern = /^file:\/\//i;
74919
- if (fileUriPattern.test(input)) {
74920
- return true;
74921
- }
74922
- const urlPattern = /^(https?|ftp|data|mailto|tel):/i;
74923
- if (urlPattern.test(input)) {
74924
- return false;
74925
- }
74926
- return true;
74927
- }
74928
74953
  function serverFileDownloadingError(url, authToken, server) {
74929
74954
  if (isFilePathOrUri(url)) {
74930
74955
  return fileOpeningError(url);
@@ -75065,29 +75090,13 @@ function body$1(url) {
75065
75090
  }
75066
75091
  const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
75067
75092
  __proto__: null,
75068
- bold,
75069
- bullet,
75070
- detailText,
75071
- dotList,
75093
+ Style: errorStyle,
75072
75094
  fileOpeningError,
75073
- footer: footer$1,
75074
- isFilePathOrUri,
75075
- isLocalUrl,
75076
- link,
75077
- mainText,
75078
- numList,
75079
75095
  serverCompatibilityError,
75080
75096
  serverConnectionError,
75081
75097
  serverFileDownloadingError,
75082
75098
  serverFileLoadingError,
75083
- serverStreamError,
75084
- subTitle,
75085
- vcColorLink,
75086
- vcColorPrimary,
75087
- vcColorSecondary,
75088
- vcLabel,
75089
- vcLink,
75090
- vcRoboto
75099
+ serverStreamError
75091
75100
  }, Symbol.toStringTag, { value: "Module" }));
75092
75101
  class ComponentLoader {
75093
75102
  constructor(viewer, modal) {
@@ -76336,6 +76345,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
76336
76345
  Icons: icons,
76337
76346
  Settings: index$4,
76338
76347
  Ultra: index$1,
76348
+ Urls: urls,
76339
76349
  Webgl: index$2,
76340
76350
  createContainer
76341
76351
  }, Symbol.toStringTag, { value: "Module" }));