vim-web 0.3.44-dev.52 → 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
@@ -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,6 +74904,24 @@ 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";
74890
74927
  const supportControls = "https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide";
@@ -74913,25 +74950,6 @@ function serverFileOpeningErrorBody(url) {
74913
74950
  dotList([bullet("File path:", url)])
74914
74951
  ] });
74915
74952
  }
74916
- function isLocalUrl(url) {
74917
- try {
74918
- const parsedUrl = new URL(url);
74919
- return parsedUrl.hostname === "localhost" || parsedUrl.hostname === "127.0.0.1";
74920
- } catch (e) {
74921
- return false;
74922
- }
74923
- }
74924
- function isFilePathOrUri(input) {
74925
- const fileUriPattern = /^file:\/\//i;
74926
- if (fileUriPattern.test(input)) {
74927
- return true;
74928
- }
74929
- const urlPattern = /^(https?|ftp|data|mailto|tel):/i;
74930
- if (urlPattern.test(input)) {
74931
- return false;
74932
- }
74933
- return true;
74934
- }
74935
74953
  function serverFileDownloadingError(url, authToken, server) {
74936
74954
  if (isFilePathOrUri(url)) {
74937
74955
  return fileOpeningError(url);
@@ -75072,29 +75090,13 @@ function body$1(url) {
75072
75090
  }
75073
75091
  const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
75074
75092
  __proto__: null,
75075
- bold,
75076
- bullet,
75077
- detailText,
75078
- dotList,
75093
+ Style: errorStyle,
75079
75094
  fileOpeningError,
75080
- footer: footer$1,
75081
- isFilePathOrUri,
75082
- isLocalUrl,
75083
- link,
75084
- mainText,
75085
- numList,
75086
75095
  serverCompatibilityError,
75087
75096
  serverConnectionError,
75088
75097
  serverFileDownloadingError,
75089
75098
  serverFileLoadingError,
75090
- serverStreamError,
75091
- subTitle,
75092
- vcColorLink,
75093
- vcColorPrimary,
75094
- vcColorSecondary,
75095
- vcLabel,
75096
- vcLink,
75097
- vcRoboto
75099
+ serverStreamError
75098
75100
  }, Symbol.toStringTag, { value: "Module" }));
75099
75101
  class ComponentLoader {
75100
75102
  constructor(viewer, modal) {