@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.
- package/dist/long-bow.cjs.development.js +8 -1
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +8 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -1
- package/src/components/ImageCarousel/SimpleImageCarousel.tsx +9 -1
|
@@ -18,6 +18,7 @@ var Draggable = _interopDefault(require('react-draggable'));
|
|
|
18
18
|
var ReactDOM = _interopDefault(require('react-dom'));
|
|
19
19
|
var lodash = require('lodash');
|
|
20
20
|
var mobxReactLite = require('mobx-react-lite');
|
|
21
|
+
var core = require('@capacitor/core');
|
|
21
22
|
var ai = require('react-icons/ai');
|
|
22
23
|
require('rpgui/rpgui.css');
|
|
23
24
|
require('rpgui/rpgui.min.js');
|
|
@@ -16014,6 +16015,12 @@ var CloseButton$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
16014
16015
|
componentId: "sc-jl6f8-4"
|
|
16015
16016
|
})(["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;}"]);
|
|
16016
16017
|
|
|
16018
|
+
var getTransformedBasePath = function getTransformedBasePath(basePath) {
|
|
16019
|
+
if (core.Capacitor.isNativePlatform()) {
|
|
16020
|
+
return core.Capacitor.convertFileSrc(basePath);
|
|
16021
|
+
}
|
|
16022
|
+
return basePath;
|
|
16023
|
+
};
|
|
16017
16024
|
var SimpleImageCarousel = function SimpleImageCarousel(_ref) {
|
|
16018
16025
|
var basePath = _ref.basePath,
|
|
16019
16026
|
imagesSrc = _ref.imagesSrc,
|
|
@@ -16073,7 +16080,7 @@ var SimpleImageCarousel = function SimpleImageCarousel(_ref) {
|
|
|
16073
16080
|
onPointerDown: handleRightClick
|
|
16074
16081
|
}), React__default.createElement(Carousel, null, React__default.createElement(FadeInCarouselImg, {
|
|
16075
16082
|
key: currentImage,
|
|
16076
|
-
src: basePath + "/" + imagesSrc[currentImage],
|
|
16083
|
+
src: getTransformedBasePath(basePath) + "/" + imagesSrc[currentImage],
|
|
16077
16084
|
alt: imagesSrc[currentImage]
|
|
16078
16085
|
})));
|
|
16079
16086
|
};
|