@dcloudio/uni-h5 3.0.0-alpha-3021320211117003 → 3.0.0-alpha-3021320211117004
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/uni-h5.es.js +21 -8
- package/package.json +6 -6
package/dist/uni-h5.es.js
CHANGED
|
@@ -4783,6 +4783,7 @@ const PreviewImageProtocol = {
|
|
|
4783
4783
|
type: [Number, String]
|
|
4784
4784
|
}
|
|
4785
4785
|
};
|
|
4786
|
+
const API_CLOSE_PREVIEW_IMAGE = "closePreviewImage";
|
|
4786
4787
|
const API_GET_VIDEO_INFO = "getVideoInfo";
|
|
4787
4788
|
const GetVideoInfoOptions = {
|
|
4788
4789
|
formatArgs: {
|
|
@@ -17036,23 +17037,34 @@ var ImagePreview = /* @__PURE__ */ defineSystemComponent({
|
|
|
17036
17037
|
}
|
|
17037
17038
|
});
|
|
17038
17039
|
let state$2 = null;
|
|
17040
|
+
let imagePreviewInstance;
|
|
17041
|
+
const closePreviewImageView = () => {
|
|
17042
|
+
state$2 = null;
|
|
17043
|
+
nextTick(() => {
|
|
17044
|
+
imagePreviewInstance == null ? void 0 : imagePreviewInstance.unmount();
|
|
17045
|
+
imagePreviewInstance = null;
|
|
17046
|
+
});
|
|
17047
|
+
};
|
|
17039
17048
|
const previewImage = /* @__PURE__ */ defineAsyncApi(API_PREVIEW_IMAGE, (args, { resolve }) => {
|
|
17040
17049
|
if (!state$2) {
|
|
17041
17050
|
state$2 = reactive(args);
|
|
17042
17051
|
nextTick(() => {
|
|
17043
|
-
|
|
17044
|
-
|
|
17045
|
-
nextTick(() => {
|
|
17046
|
-
app.unmount();
|
|
17047
|
-
});
|
|
17048
|
-
});
|
|
17049
|
-
app.mount(ensureRoot("u-a-p"));
|
|
17052
|
+
imagePreviewInstance = createRootApp(ImagePreview, state$2, closePreviewImageView);
|
|
17053
|
+
imagePreviewInstance.mount(ensureRoot("u-a-p"));
|
|
17050
17054
|
});
|
|
17051
17055
|
} else {
|
|
17052
17056
|
extend(state$2, args);
|
|
17053
17057
|
}
|
|
17054
17058
|
resolve();
|
|
17055
17059
|
}, PreviewImageProtocol, PreviewImageOptions);
|
|
17060
|
+
const closePreviewImage = /* @__PURE__ */ defineAsyncApi(API_CLOSE_PREVIEW_IMAGE, (_, { resolve, reject }) => {
|
|
17061
|
+
if (imagePreviewInstance) {
|
|
17062
|
+
closePreviewImageView();
|
|
17063
|
+
resolve();
|
|
17064
|
+
} else {
|
|
17065
|
+
reject();
|
|
17066
|
+
}
|
|
17067
|
+
});
|
|
17056
17068
|
let videoInput = null;
|
|
17057
17069
|
const chooseVideo = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_VIDEO, ({ sourceType, extension }, { resolve, reject }) => {
|
|
17058
17070
|
initI18nChooseFileMsgsOnce();
|
|
@@ -19746,6 +19758,7 @@ var api = {
|
|
|
19746
19758
|
chooseFile,
|
|
19747
19759
|
chooseImage,
|
|
19748
19760
|
previewImage,
|
|
19761
|
+
closePreviewImage,
|
|
19749
19762
|
chooseVideo,
|
|
19750
19763
|
request,
|
|
19751
19764
|
downloadFile,
|
|
@@ -21863,4 +21876,4 @@ var index = /* @__PURE__ */ defineSystemComponent({
|
|
|
21863
21876
|
return openBlock(), createBlock("div", clazz, [loadingVNode]);
|
|
21864
21877
|
}
|
|
21865
21878
|
});
|
|
21866
|
-
export { $emit, $off, $on, $once, index$8 as Ad, index$7 as AdContentPage, index$6 as AdDraw, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, index$y as Button, index$5 as Camera, index$w as Canvas, index$u as Checkbox, index$v as CheckboxGroup, index$a as CoverImage, index$b as CoverView, index$t as Editor, index$A as Form, index$s as Icon, index$r as Image, Input, index$z as Label, LayoutComponent, index$4 as LivePlayer, index$3 as LivePusher, Map$1 as Map, MovableArea, MovableView, index$q as Navigator, index$2 as PageComponent, index$9 as Picker, PickerView, PickerViewColumn, index$p as Progress, index$n as Radio, index$o as RadioGroup, ResizeSensor, index$m as RichText, ScrollView, index$l as Slider, Swiper, SwiperItem, index$k as Switch, index$j as Text, index$i as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$e as Video, index$h as View, index$d as WebView, addInterceptor, addPhoneContact, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closeSocket, connectSocket, createAnimation$1 as createAnimation, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, downloadFile, getApp$1 as getApp, getClipboardData, getCurrentPages$1 as getCurrentPages, getEnterOptionsSync, getFileInfo, getImageInfo, getLaunchOptionsSync, getLeftWindowStyle, getLocale, getLocation, getNetworkType, getProvider, getRealPath, getRecorderManager, getRightWindowStyle, getSavedFileInfo, getSavedFileList, getScreenBrightness, getSelectedTextRange$1 as getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, interceptors, loadFontFace, login, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, offWindowResize, onAccelerometerChange, onAppLaunch, onCompassChange, onGyroscopeChange, onLocaleChange, onMemoryWarning, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onUserCaptureScreen, onWindowResize, openDocument, openLocation, pageScrollTo, index$f as plugin, preloadPage, previewImage, reLaunch, redirectTo, removeInterceptor, removeSavedFileInfo, removeStorage, removeStorageSync, removeTabBarBadge, request, saveFile, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, sendSocketMessage, setClipboardData, setKeepScreenOn, setLeftWindowStyle, setLocale, setNavigationBarColor, setNavigationBarTitle, setPageMeta, setRightWindowStyle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, setupWindow, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startGyroscope, startPullDownRefresh, stopAccelerometer, stopCompass, stopGyroscope, stopPullDownRefresh, switchTab, uni$1 as uni, uploadFile, upx2px, useI18n, useTabBar, vibrateLong, vibrateShort };
|
|
21879
|
+
export { $emit, $off, $on, $once, index$8 as Ad, index$7 as AdContentPage, index$6 as AdDraw, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, index$y as Button, index$5 as Camera, index$w as Canvas, index$u as Checkbox, index$v as CheckboxGroup, index$a as CoverImage, index$b as CoverView, index$t as Editor, index$A as Form, index$s as Icon, index$r as Image, Input, index$z as Label, LayoutComponent, index$4 as LivePlayer, index$3 as LivePusher, Map$1 as Map, MovableArea, MovableView, index$q as Navigator, index$2 as PageComponent, index$9 as Picker, PickerView, PickerViewColumn, index$p as Progress, index$n as Radio, index$o as RadioGroup, ResizeSensor, index$m as RichText, ScrollView, index$l as Slider, Swiper, SwiperItem, index$k as Switch, index$j as Text, index$i as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$e as Video, index$h as View, index$d as WebView, addInterceptor, addPhoneContact, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closePreviewImage, closeSocket, connectSocket, createAnimation$1 as createAnimation, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, downloadFile, getApp$1 as getApp, getClipboardData, getCurrentPages$1 as getCurrentPages, getEnterOptionsSync, getFileInfo, getImageInfo, getLaunchOptionsSync, getLeftWindowStyle, getLocale, getLocation, getNetworkType, getProvider, getRealPath, getRecorderManager, getRightWindowStyle, getSavedFileInfo, getSavedFileList, getScreenBrightness, getSelectedTextRange$1 as getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, interceptors, loadFontFace, login, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, offWindowResize, onAccelerometerChange, onAppLaunch, onCompassChange, onGyroscopeChange, onLocaleChange, onMemoryWarning, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onUserCaptureScreen, onWindowResize, openDocument, openLocation, pageScrollTo, index$f as plugin, preloadPage, previewImage, reLaunch, redirectTo, removeInterceptor, removeSavedFileInfo, removeStorage, removeStorageSync, removeTabBarBadge, request, saveFile, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, sendSocketMessage, setClipboardData, setKeepScreenOn, setLeftWindowStyle, setLocale, setNavigationBarColor, setNavigationBarTitle, setPageMeta, setRightWindowStyle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, setupWindow, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startGyroscope, startPullDownRefresh, stopAccelerometer, stopCompass, stopGyroscope, stopPullDownRefresh, switchTab, uni$1 as uni, uploadFile, upx2px, useI18n, useTabBar, vibrateLong, vibrateShort };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-h5",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3021320211117004",
|
|
4
4
|
"description": "@dcloudio/uni-h5",
|
|
5
5
|
"main": "./dist/uni-h5.cjs.js",
|
|
6
6
|
"module": "./dist/uni-h5.es.js",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"main": "dist/uni.compiler.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dcloudio/uni-h5-vite": "3.0.0-alpha-
|
|
33
|
-
"@dcloudio/uni-h5-vue": "3.0.0-alpha-
|
|
34
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
35
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
32
|
+
"@dcloudio/uni-h5-vite": "3.0.0-alpha-3021320211117004",
|
|
33
|
+
"@dcloudio/uni-h5-vue": "3.0.0-alpha-3021320211117004",
|
|
34
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3021320211117004",
|
|
35
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3021320211117004",
|
|
36
36
|
"@vue/server-renderer": "3.2.22",
|
|
37
37
|
"@vue/shared": "3.2.22",
|
|
38
38
|
"localstorage-polyfill": "^1.0.1",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@dcloudio/uni-cli-i18n": "^2.0.0-32920211029004",
|
|
47
|
-
"@dcloudio/uni-cli-shared": "3.0.0-alpha-
|
|
47
|
+
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3021320211117004",
|
|
48
48
|
"@types/google.maps": "^3.45.6",
|
|
49
49
|
"acorn-loose": "^8.2.1",
|
|
50
50
|
"vue": "3.2.22"
|