@rpg-engine/long-bow 0.5.72 → 0.5.73

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.
@@ -10,6 +10,7 @@ import Draggable from 'react-draggable';
10
10
  import ReactDOM from 'react-dom';
11
11
  import { camelCase } from 'lodash-es';
12
12
  import { observer } from 'mobx-react-lite';
13
+ import { Capacitor } from '@capacitor/core';
13
14
  import { AiFillCaretRight } from 'react-icons/ai';
14
15
  import 'rpgui/rpgui.css';
15
16
  import 'rpgui/rpgui.min.js';
@@ -16010,6 +16011,12 @@ var CloseButton$3 = /*#__PURE__*/styled.div.withConfig({
16010
16011
  componentId: "sc-jl6f8-4"
16011
16012
  })(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
16012
16013
 
16014
+ var getTransformedBasePath = function getTransformedBasePath(basePath) {
16015
+ if (Capacitor.isNativePlatform()) {
16016
+ return Capacitor.convertFileSrc(basePath);
16017
+ }
16018
+ return basePath;
16019
+ };
16013
16020
  var SimpleImageCarousel = function SimpleImageCarousel(_ref) {
16014
16021
  var basePath = _ref.basePath,
16015
16022
  imagesSrc = _ref.imagesSrc,
@@ -16069,7 +16076,7 @@ var SimpleImageCarousel = function SimpleImageCarousel(_ref) {
16069
16076
  onPointerDown: handleRightClick
16070
16077
  }), React.createElement(Carousel, null, React.createElement(FadeInCarouselImg, {
16071
16078
  key: currentImage,
16072
- src: basePath + "/" + imagesSrc[currentImage],
16079
+ src: getTransformedBasePath(basePath) + "/" + imagesSrc[currentImage],
16073
16080
  alt: imagesSrc[currentImage]
16074
16081
  })));
16075
16082
  };