@doubao-dev/taro-runtime 0.9.0 → 0.10.0
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/README.md +117 -0
- package/assets/refresh-loading.png +0 -0
- package/dist/api/base/can-i-use.d.ts +3 -0
- package/dist/api/base/can-i-use.js +12 -0
- package/dist/api/base/event-center.d.ts +12 -0
- package/dist/api/base/event-center.js +52 -0
- package/dist/api/base/index.d.ts +1 -1
- package/dist/api/base/index.js +1 -1
- package/dist/api/base/next-tick.d.ts +3 -0
- package/dist/api/base/next-tick.js +11 -0
- package/dist/api/canvas/index.d.ts +17 -0
- package/dist/api/canvas/index.js +29 -0
- package/dist/api/create-animation.d.ts +47 -0
- package/dist/api/create-animation.js +98 -0
- package/dist/api/create-intersection-observer/index.d.ts +7 -0
- package/dist/api/create-intersection-observer/index.js +126 -0
- package/dist/api/create-selector-query/index.js +284 -109
- package/dist/api/device/accelerometer.js +1 -1
- package/dist/api/device/accessibility.js +1 -1
- package/dist/api/device/battery.js +1 -1
- package/dist/api/device/beacon.js +1 -1
- package/dist/api/device/bluetooth.js +1 -1
- package/dist/api/device/clipboard.js +1 -1
- package/dist/api/device/compass.js +1 -1
- package/dist/api/device/crypto.js +1 -1
- package/dist/api/device/device-motion.js +1 -1
- package/dist/api/device/gyroscope.js +1 -1
- package/dist/api/device/keyboard.js +1 -1
- package/dist/api/device/scan.js +1 -1
- package/dist/api/device/screen.js +1 -1
- package/dist/api/device/sms.js +1 -1
- package/dist/api/device/vibration.js +1 -1
- package/dist/api/device/wifi.js +1 -1
- package/dist/api/index.d.ts +8 -1
- package/dist/api/index.js +8 -1
- package/dist/api/interaction/index.js +1 -1
- package/dist/api/location/index.d.ts +2 -2
- package/dist/api/location/index.js +1 -1
- package/dist/api/media/image.d.ts +9 -0
- package/dist/api/media/image.js +21 -1
- package/dist/api/media/index.d.ts +2 -0
- package/dist/api/media/index.js +2 -0
- package/dist/api/media/inner-audio.d.ts +5 -0
- package/dist/api/media/inner-audio.js +7 -0
- package/dist/api/media/media.d.ts +6 -0
- package/dist/api/media/media.js +9 -0
- package/dist/api/px-transform.d.ts +11 -0
- package/dist/api/px-transform.js +31 -0
- package/dist/api/request/index.js +1 -1
- package/dist/api/request/websocket.js +1 -1
- package/dist/api/router/current-instance.d.ts +17 -0
- package/dist/api/router/current-instance.js +28 -0
- package/dist/api/router/exit-mini-program.js +1 -1
- package/dist/api/router/get-current-pages.d.ts +13 -1
- package/dist/api/router/get-current-pages.js +5 -3
- package/dist/api/router/index.d.ts +1 -0
- package/dist/api/router/index.js +1 -0
- package/dist/api/router/navigate-back.js +1 -1
- package/dist/api/router/navigate-to.js +1 -1
- package/dist/api/router/re-launch.js +1 -1
- package/dist/api/router/redirect-to.js +1 -1
- package/dist/api/runtime/download.d.ts +11 -0
- package/dist/api/runtime/download.js +18 -0
- package/dist/api/runtime/resize.d.ts +7 -0
- package/dist/api/runtime/resize.js +26 -0
- package/dist/api/runtime/system.d.ts +8 -0
- package/dist/api/runtime/system.js +10 -0
- package/dist/api/show-toast/index.js +1 -1
- package/dist/api/storage/index.d.ts +1 -1
- package/dist/api/storage/index.js +1 -1
- package/dist/api/system/index.js +1 -1
- package/dist/components/Block/index.d.ts +3 -0
- package/dist/components/Block/index.jsx +4 -0
- package/dist/components/Button/index.d.ts +7 -0
- package/dist/components/Button/index.jsx +28 -0
- package/dist/components/Canvas/index.d.ts +4 -0
- package/dist/components/Canvas/index.jsx +25 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.jsx +17 -0
- package/dist/components/CheckboxGroup/index.d.ts +3 -0
- package/dist/components/CheckboxGroup/index.jsx +13 -0
- package/dist/components/CoverView/index.d.ts +6 -1
- package/dist/components/CoverView/index.js +5 -1
- package/dist/components/Form/index.d.ts +4 -0
- package/dist/components/Form/index.jsx +39 -0
- package/dist/components/Form/use-form-field.d.ts +5 -0
- package/dist/components/Form/use-form-field.js +40 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.jsx +40 -0
- package/dist/components/Image/index.d.ts +3 -1
- package/dist/components/Image/index.jsx +15 -4
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.jsx +9 -5
- package/dist/components/Input/map.d.ts +1 -1
- package/dist/components/Label/control.d.ts +6 -0
- package/dist/components/Label/control.js +29 -0
- package/dist/components/Label/index.d.ts +3 -0
- package/dist/components/Label/index.jsx +15 -0
- package/dist/components/LivePlayer/index.d.ts +3 -0
- package/dist/components/LivePlayer/index.jsx +8 -0
- package/dist/components/Map/bridge.d.ts +1 -1
- package/dist/components/Map/index.jsx +10 -6
- package/dist/components/Movable/index.d.ts +4 -0
- package/dist/components/Movable/index.jsx +26 -0
- package/dist/components/NavigationBar/index.d.ts +3 -0
- package/dist/components/NavigationBar/index.jsx +16 -0
- package/dist/components/Navigator/index.d.ts +3 -0
- package/dist/components/Navigator/index.jsx +32 -0
- package/dist/components/OpenData/index.d.ts +3 -0
- package/dist/components/OpenData/index.js +4 -0
- package/dist/components/Picker/index.d.ts +6 -0
- package/dist/components/Picker/index.jsx +155 -0
- package/dist/components/Picker/popup.d.ts +18 -0
- package/dist/components/Picker/popup.jsx +105 -0
- package/dist/components/PickerView/index.d.ts +1 -1
- package/dist/components/PickerView/index.jsx +1 -1
- package/dist/components/PickerView/map.d.ts +1 -1
- package/dist/components/Progress/index.d.ts +3 -0
- package/dist/components/Progress/index.jsx +14 -0
- package/dist/components/Radio/index.jsx +9 -5
- package/dist/components/Radio/shared.d.ts +1 -1
- package/dist/components/RadioGroup/context.js +1 -1
- package/dist/components/RadioGroup/index.jsx +8 -4
- package/dist/components/RadioGroup/map.d.ts +1 -1
- package/dist/components/RichText/index.d.ts +3 -0
- package/dist/components/RichText/index.jsx +7 -0
- package/dist/components/ScrollView/index.d.ts +4 -1
- package/dist/components/ScrollView/index.jsx +44 -14
- package/dist/components/ScrollView/map.d.ts +4 -2
- package/dist/components/ScrollView/map.js +19 -1
- package/dist/components/ScrollView/refresh-types.d.ts +25 -0
- package/dist/components/ScrollView/refresh-types.js +2 -0
- package/dist/components/ScrollView/refresh.d.ts +10 -0
- package/dist/components/ScrollView/refresh.jsx +29 -0
- package/dist/components/ScrollView/use-refresher.d.ts +19 -0
- package/dist/components/ScrollView/use-refresher.js +214 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/index.jsx +13 -0
- package/dist/components/Swiper/index.d.ts +3 -0
- package/dist/components/Swiper/index.jsx +79 -0
- package/dist/components/SwiperItem/index.d.ts +3 -0
- package/dist/components/SwiperItem/index.jsx +18 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Switch/index.jsx +32 -0
- package/dist/components/Text/format.d.ts +5 -0
- package/dist/components/Text/format.js +51 -0
- package/dist/components/Text/index.d.ts +4 -3
- package/dist/components/Text/index.jsx +3 -2
- package/dist/components/Text/map.js +9 -4
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.jsx +30 -0
- package/dist/components/Video/index.d.ts +3 -0
- package/dist/components/Video/index.jsx +22 -0
- package/dist/components/View/index.d.ts +5 -5
- package/dist/components/View/index.jsx +11 -13
- package/dist/components/View/map.js +5 -0
- package/dist/components/base/change-event.d.ts +18 -0
- package/dist/components/base/change-event.js +13 -0
- package/dist/components/base/wrap-text-node.d.ts +3 -0
- package/dist/components/base/wrap-text-node.jsx +34 -0
- package/dist/components/index.d.ts +24 -1
- package/dist/components/index.js +24 -1
- package/dist/exports/app.d.ts +2 -1
- package/dist/exports/app.js +3 -1
- package/dist/exports/common.d.ts +1 -0
- package/dist/exports/common.js +1 -0
- package/dist/exports/view-core.d.ts +2 -1
- package/dist/exports/view-core.js +2 -1
- package/dist/exports/view.d.ts +2 -1
- package/dist/exports/view.js +3 -1
- package/dist/hooks/lifecycle/app.js +1 -1
- package/dist/hooks/use-animation.d.ts +9 -0
- package/dist/hooks/use-animation.js +151 -0
- package/dist/internal/class-components.d.ts +11 -0
- package/dist/internal/class-components.js +42 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +1 -0
- package/dist/internal/map-context/index.d.ts +1 -1
- package/dist/internal/query-node.d.ts +9 -0
- package/dist/internal/query-node.js +35 -0
- package/dist/internal/selector-id.d.ts +6 -0
- package/dist/internal/selector-id.js +18 -0
- package/dist/react.d.ts +4 -0
- package/dist/react.js +4 -0
- package/package.json +23 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as appFrameworkApi from '@
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
2
2
|
import { runCallbackApi } from '../utils.js';
|
|
3
3
|
export async function hideKeyboard(option) {
|
|
4
4
|
return runCallbackApi('hideKeyboard', option, () => appFrameworkApi.hideKeyboard({}));
|
package/dist/api/device/scan.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as appFrameworkApi from '@
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildOkCallbackResult, runCallbackApi } from '../utils.js';
|
|
3
3
|
const userCaptureScreenCallbacks = new Map();
|
|
4
4
|
export async function setKeepScreenOn(option) {
|
package/dist/api/device/sms.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as appFrameworkApi from '@
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
2
2
|
import { runCallbackApi } from '../utils.js';
|
|
3
3
|
export async function vibrateShort(option) {
|
|
4
4
|
return runCallbackApi('vibrateShort', option, () => appFrameworkApi.vibrateShort({
|
package/dist/api/device/wifi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as appFrameworkApi from '@
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildOkCallbackResult, runTaroApi } from '../utils.js';
|
|
3
3
|
const wifiConnectedCallbacks = new Map();
|
|
4
4
|
function mapWifiInfo(wifi) {
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export { getEnv, ENV_TYPE } from './base/index.js';
|
|
2
|
+
export { canIUse } from './base/can-i-use.js';
|
|
3
|
+
export { eventCenter } from './base/event-center.js';
|
|
4
|
+
export { nextTick } from './base/next-tick.js';
|
|
5
|
+
export { getSystemInfo } from './runtime/system.js';
|
|
2
6
|
export * from './device/index.js';
|
|
3
7
|
export * from './device/index.js';
|
|
4
8
|
export * from './media/index.js';
|
|
5
9
|
export { request } from './request/index.js';
|
|
6
10
|
export { connectSocket, onSocketOpen, onSocketMessage, onSocketError, onSocketClose } from './request/websocket.js';
|
|
7
|
-
export { exitMiniProgram, navigateBack, navigateTo, getCurrentPages, reLaunch, redirectTo } from './router/index.js';
|
|
11
|
+
export { exitMiniProgram, getApp, getCurrentInstance, navigateBack, navigateTo, getCurrentPages, reLaunch, redirectTo, useRouter } from './router/index.js';
|
|
8
12
|
export { setStorage, setStorageSync, getStorage, getStorageSync, removeStorage, removeStorageSync, clearStorage, clearStorageSync, getStorageInfo, getStorageInfoSync } from './storage/index.js';
|
|
9
13
|
export * from './system/index.js';
|
|
10
14
|
export * from './location/index.js';
|
|
@@ -12,4 +16,7 @@ export { disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToa
|
|
|
12
16
|
export { showToast } from './show-toast/index.js';
|
|
13
17
|
export { createMapContext } from './map/index.js';
|
|
14
18
|
export { createSelectorQuery } from './create-selector-query/index.js';
|
|
19
|
+
export { createIntersectionObserver } from './create-intersection-observer/index.js';
|
|
20
|
+
export { canvasToTempFilePath, createOffscreenCanvas } from './canvas/index.js';
|
|
21
|
+
export { createAnimation } from './create-animation.js';
|
|
15
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export { getEnv, ENV_TYPE } from './base/index.js';
|
|
2
|
+
export { canIUse } from './base/can-i-use.js';
|
|
3
|
+
export { eventCenter } from './base/event-center.js';
|
|
4
|
+
export { nextTick } from './base/next-tick.js';
|
|
5
|
+
export { getSystemInfo } from './runtime/system.js';
|
|
2
6
|
export * from './device/index.js';
|
|
3
7
|
export * from './device/index.js';
|
|
4
8
|
export * from './media/index.js';
|
|
5
9
|
export { request } from './request/index.js';
|
|
6
10
|
export { connectSocket, onSocketOpen, onSocketMessage, onSocketError, onSocketClose } from './request/websocket.js';
|
|
7
|
-
export { exitMiniProgram, navigateBack, navigateTo, getCurrentPages, reLaunch, redirectTo } from './router/index.js';
|
|
11
|
+
export { exitMiniProgram, getApp, getCurrentInstance, navigateBack, navigateTo, getCurrentPages, reLaunch, redirectTo, useRouter } from './router/index.js';
|
|
8
12
|
export { setStorage, setStorageSync, getStorage, getStorageSync, removeStorage, removeStorageSync, clearStorage, clearStorageSync, getStorageInfo, getStorageInfoSync } from './storage/index.js';
|
|
9
13
|
export * from './system/index.js';
|
|
10
14
|
export * from './location/index.js';
|
|
@@ -12,4 +16,7 @@ export { disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToa
|
|
|
12
16
|
export { showToast } from './show-toast/index.js';
|
|
13
17
|
export { createMapContext } from './map/index.js';
|
|
14
18
|
export { createSelectorQuery } from './create-selector-query/index.js';
|
|
19
|
+
export { createIntersectionObserver } from './create-intersection-observer/index.js';
|
|
20
|
+
export { canvasToTempFilePath, createOffscreenCanvas } from './canvas/index.js';
|
|
21
|
+
export { createAnimation } from './create-animation.js';
|
|
15
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { disableAlertBeforeUnload as appDisableAlertBeforeUnload, enableAlertBeforeUnload as appEnableAlertBeforeUnload, hideLoading as appHideLoading, hideToast as appHideToast, showActionSheet as appShowActionSheet, showLoading as appShowLoading, showModal as appShowModal } from '@
|
|
1
|
+
import { disableAlertBeforeUnload as appDisableAlertBeforeUnload, enableAlertBeforeUnload as appEnableAlertBeforeUnload, hideLoading as appHideLoading, hideToast as appHideToast, showActionSheet as appShowActionSheet, showLoading as appShowLoading, showModal as appShowModal } from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildOkCallbackResult, runCallbackApi, runTaroApi } from '../utils.js';
|
|
3
3
|
function runVoidCallbackApi(apiName, callbacks, run) {
|
|
4
4
|
const task = runCallbackApi(apiName, callbacks, run);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as appFrameworkApi from '@
|
|
2
|
-
import type { GetLocationParams } from '@
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
2
|
+
import type { GetLocationParams } from '@doubao-dev/framework/api';
|
|
3
3
|
import type Taro from '@tarojs/taro';
|
|
4
4
|
type TaroGetLocationOption = Parameters<typeof Taro.getLocation>[0];
|
|
5
5
|
type TaroGetLocationResult = Awaited<ReturnType<typeof Taro.getLocation>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as appFrameworkApi from '@
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildOkCallbackResult, runCallbackApi, runTaroApi } from '../utils.js';
|
|
3
3
|
const locationChangeCallbacks = new Map();
|
|
4
4
|
const locationChangeErrorCallbacks = new Map();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
1
2
|
import type Taro from '@tarojs/taro';
|
|
2
3
|
type TaroSaveImageToPhotosAlbumOption = Parameters<typeof Taro.saveImageToPhotosAlbum>[0];
|
|
3
4
|
type TaroSaveImageToPhotosAlbumResult = Awaited<ReturnType<typeof Taro.saveImageToPhotosAlbum>>;
|
|
@@ -11,6 +12,14 @@ type TaroCompressImageOption = Parameters<typeof Taro.compressImage>[0];
|
|
|
11
12
|
type TaroCompressImageResult = Awaited<ReturnType<typeof Taro.compressImage>>;
|
|
12
13
|
export declare function saveImageToPhotosAlbum(option: TaroSaveImageToPhotosAlbumOption): Promise<TaroSaveImageToPhotosAlbumResult>;
|
|
13
14
|
export declare function previewImage(option: TaroPreviewImageOption): Promise<TaroPreviewImageResult>;
|
|
15
|
+
export declare function previewMedia(option: Parameters<typeof Taro.previewMedia>[0] & {
|
|
16
|
+
muted?: boolean;
|
|
17
|
+
showBottomActionBar?: boolean;
|
|
18
|
+
}): Promise<TaroGeneral.CallbackResult>;
|
|
19
|
+
export declare function chooseMessageFile(option: Parameters<typeof Taro.chooseMessageFile>[0]): Promise<{
|
|
20
|
+
errMsg: string;
|
|
21
|
+
tempFiles: appFrameworkApi.ChooseMessageFile[];
|
|
22
|
+
}>;
|
|
14
23
|
export declare function getImageInfo(option: TaroGetImageInfoOption): Promise<TaroGetImageInfoResult>;
|
|
15
24
|
export declare function chooseImage(option?: TaroChooseImageOption): Promise<TaroChooseImageResult>;
|
|
16
25
|
export declare function compressImage(option: TaroCompressImageOption): Promise<TaroCompressImageResult>;
|
package/dist/api/media/image.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as appFrameworkApi from '@
|
|
1
|
+
import * as appFrameworkApi from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildOkCallbackResult, runCallbackApi, runTaroApi } from '../utils.js';
|
|
3
3
|
function buildGetImageInfoResult(result, src) {
|
|
4
4
|
return {
|
|
@@ -38,6 +38,26 @@ export async function previewImage(option) {
|
|
|
38
38
|
referrerPolicy: option.referrerPolicy
|
|
39
39
|
}));
|
|
40
40
|
}
|
|
41
|
+
export async function previewMedia(option) {
|
|
42
|
+
return runCallbackApi('previewMedia', option, () => appFrameworkApi.previewMedia({
|
|
43
|
+
sources: option.sources,
|
|
44
|
+
current: option.current,
|
|
45
|
+
showmenu: option.showmenu,
|
|
46
|
+
muted: option.muted,
|
|
47
|
+
showBottomActionBar: option.showBottomActionBar,
|
|
48
|
+
referrerPolicy: option.referrerPolicy
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
export async function chooseMessageFile(option) {
|
|
52
|
+
return runTaroApi('chooseMessageFile', option, async () => ({
|
|
53
|
+
...(await appFrameworkApi.chooseMessageFile({
|
|
54
|
+
count: option.count,
|
|
55
|
+
type: option.type,
|
|
56
|
+
extension: option.extension
|
|
57
|
+
})),
|
|
58
|
+
...buildOkCallbackResult('chooseMessageFile')
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
41
61
|
export async function getImageInfo(option) {
|
|
42
62
|
return runTaroApi('getImageInfo', option, async () => buildGetImageInfoResult(await appFrameworkApi.getImageInfo({
|
|
43
63
|
src: option.src
|
package/dist/api/media/index.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type Taro from '@tarojs/taro';
|
|
2
|
+
type TaroCreateInnerAudioContextOption = Parameters<typeof Taro.createInnerAudioContext>[0];
|
|
3
|
+
export declare function createInnerAudioContext(_option?: TaroCreateInnerAudioContextOption): Taro.InnerAudioContext;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=inner-audio.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createInnerAudioContext as appCreateInnerAudioContext } from '@doubao-dev/framework/api';
|
|
2
|
+
export function createInnerAudioContext(_option) {
|
|
3
|
+
const audio = appCreateInnerAudioContext();
|
|
4
|
+
audio.obeyMuteSwitch = true;
|
|
5
|
+
return audio;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=inner-audio.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type Taro from '@tarojs/taro';
|
|
2
|
+
type TaroChooseMediaOption = Parameters<typeof Taro.chooseMedia>[0];
|
|
3
|
+
type TaroChooseMediaResult = Awaited<ReturnType<typeof Taro.chooseMedia>>;
|
|
4
|
+
export declare function chooseMedia(option?: TaroChooseMediaOption): Promise<TaroChooseMediaResult>;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { warnUnsupported } from '../../utils/warn-unsupported.js';
|
|
2
|
+
import { runTaroApi } from '../utils.js';
|
|
3
|
+
export async function chooseMedia(option) {
|
|
4
|
+
return runTaroApi('chooseMedia', option, () => {
|
|
5
|
+
warnUnsupported('chooseMedia');
|
|
6
|
+
throw new Error('not supported in Doubao Apps');
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PxTransformConfig {
|
|
2
|
+
designWidth?: number | ((size?: string | number) => number);
|
|
3
|
+
deviceRatio?: Record<string, number>;
|
|
4
|
+
baseFontSize?: number;
|
|
5
|
+
targetUnit?: string;
|
|
6
|
+
unitPrecision?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function initPxTransform(options: PxTransformConfig): void;
|
|
9
|
+
export declare function __configurePxTransform(ratio: number | null): void;
|
|
10
|
+
export declare function pxTransform(size: number): string;
|
|
11
|
+
//# sourceMappingURL=px-transform.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const defaultDeviceRatio = { 640: 2.34 / 2, 750: 1, 828: 1.81 / 2 };
|
|
2
|
+
let config = {};
|
|
3
|
+
export function initPxTransform(options) {
|
|
4
|
+
config = {
|
|
5
|
+
unitPrecision: 5,
|
|
6
|
+
...options
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function __configurePxTransform(ratio) {
|
|
10
|
+
config = { deviceRatio: ratio === null ? {} : { 750: ratio } };
|
|
11
|
+
}
|
|
12
|
+
export function pxTransform(size) {
|
|
13
|
+
const { designWidth = 750, deviceRatio = defaultDeviceRatio, targetUnit = 'rpx', baseFontSize = 20, unitPrecision } = config;
|
|
14
|
+
const width = typeof designWidth === 'function' ? designWidth(size) : designWidth;
|
|
15
|
+
const ratio = deviceRatio[width];
|
|
16
|
+
if (!Number.isFinite(ratio) || ratio <= 0) {
|
|
17
|
+
throw new Error(`Taro.pxTransform requires a positive deviceRatio for designWidth ${width}`);
|
|
18
|
+
}
|
|
19
|
+
let value = size * ratio;
|
|
20
|
+
if (targetUnit === 'px') {
|
|
21
|
+
value /= 2;
|
|
22
|
+
}
|
|
23
|
+
if (targetUnit === 'rem') {
|
|
24
|
+
value /= baseFontSize * 2;
|
|
25
|
+
}
|
|
26
|
+
if (unitPrecision !== undefined && unitPrecision >= 0 && unitPrecision <= 100) {
|
|
27
|
+
value = Number(value.toFixed(unitPrecision));
|
|
28
|
+
}
|
|
29
|
+
return `${value}${targetUnit}`;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=px-transform.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { request as appletRequest } from '@
|
|
1
|
+
import { request as appletRequest } from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildFailCallbackResult, buildOkCallbackResult, emitFailure, emitSuccess } from '../utils.js';
|
|
3
3
|
import { createRequestTask } from './request-task.js';
|
|
4
4
|
const DEFAULT_METHOD = 'GET';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type App, getApp } from '@doubao-dev/framework';
|
|
2
|
+
import { type TaroCurrentPage } from './get-current-pages.js';
|
|
3
|
+
export { getApp };
|
|
4
|
+
export type RouteParams = Partial<Record<string, string>>;
|
|
5
|
+
export interface TaroRouter<TParams extends RouteParams = RouteParams> {
|
|
6
|
+
path: string;
|
|
7
|
+
params: TParams;
|
|
8
|
+
}
|
|
9
|
+
export interface TaroCurrentInstance {
|
|
10
|
+
app: App | null;
|
|
11
|
+
page: TaroCurrentPage | null;
|
|
12
|
+
router: TaroRouter | null;
|
|
13
|
+
}
|
|
14
|
+
export declare function getCurrentInstance(): TaroCurrentInstance;
|
|
15
|
+
/** Returns the router of the first render, or the latest router when `dynamic` is true. */
|
|
16
|
+
export declare function useRouter<TParams extends RouteParams = RouteParams>(dynamic?: boolean): TaroRouter<TParams>;
|
|
17
|
+
//# sourceMappingURL=current-instance.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { getApp, getCurrentPage, useCurrentPage, useMemo, useState } from '@doubao-dev/framework';
|
|
2
|
+
import { toTaroPage } from './get-current-pages.js';
|
|
3
|
+
export { getApp };
|
|
4
|
+
const EMPTY_ROUTER = { path: '', params: {} };
|
|
5
|
+
function toRouter(current) {
|
|
6
|
+
// Taro's router path starts with `/`, while the framework route keeps the host format.
|
|
7
|
+
return current && { path: current.route.replace(/^\/?/, '/'), params: current.query };
|
|
8
|
+
}
|
|
9
|
+
function getAppOrNull() {
|
|
10
|
+
try {
|
|
11
|
+
return getApp();
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export function getCurrentInstance() {
|
|
18
|
+
const current = getCurrentPage();
|
|
19
|
+
return { app: getAppOrNull(), page: current && toTaroPage(current), router: toRouter(current) };
|
|
20
|
+
}
|
|
21
|
+
/** Returns the router of the first render, or the latest router when `dynamic` is true. */
|
|
22
|
+
export function useRouter(dynamic = false) {
|
|
23
|
+
const current = useCurrentPage();
|
|
24
|
+
const [initial] = useState(current);
|
|
25
|
+
const page = dynamic ? current : initial;
|
|
26
|
+
return useMemo(() => toRouter(page) ?? EMPTY_ROUTER, [page]);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=current-instance.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { exitApp } from '@
|
|
1
|
+
import { exitApp } from '@doubao-dev/framework/api';
|
|
2
2
|
import { runCallbackApi } from '../utils.js';
|
|
3
3
|
export async function exitMiniProgram(option) {
|
|
4
4
|
return runCallbackApi('exitMiniProgram', option, () => exitApp());
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { type CurrentPage } from '@doubao-dev/framework';
|
|
2
|
+
export interface TaroCurrentPage {
|
|
3
|
+
/** 页面路径,对应 Taro `PageInstance` 的 `path`。 */
|
|
4
|
+
path: string;
|
|
5
|
+
/** 页面路由,与 `path` 相同,保留以兼容框架的 `getCurrentPages()`。 */
|
|
6
|
+
route: string;
|
|
7
|
+
/** 页面查询参数,对应 Taro `PageInstance` 的 `options`。 */
|
|
8
|
+
options: Record<string, string>;
|
|
9
|
+
/** 页面查询参数,与 `options` 相同,保留以兼容框架的 `getCurrentPages()`。 */
|
|
10
|
+
query: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
export declare function toTaroPage({ route, query }: CurrentPage): TaroCurrentPage;
|
|
13
|
+
export declare function getCurrentPages(): TaroCurrentPage[];
|
|
2
14
|
//# sourceMappingURL=get-current-pages.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { getCurrentPages as appGetCurrentPages } from '@
|
|
1
|
+
import { getCurrentPages as appGetCurrentPages } from '@doubao-dev/framework';
|
|
2
|
+
export function toTaroPage({ route, query }) {
|
|
3
|
+
return { path: route, route, options: query, query };
|
|
4
|
+
}
|
|
2
5
|
export function getCurrentPages() {
|
|
3
|
-
|
|
4
|
-
return appGetCurrentPages();
|
|
6
|
+
return appGetCurrentPages().map(toTaroPage);
|
|
5
7
|
}
|
|
6
8
|
//# sourceMappingURL=get-current-pages.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { exitMiniProgram } from './exit-mini-program.js';
|
|
2
|
+
export { getApp, getCurrentInstance, useRouter } from './current-instance.js';
|
|
2
3
|
export { navigateBack } from './navigate-back.js';
|
|
3
4
|
export { getCurrentPages } from './get-current-pages.js';
|
|
4
5
|
export { navigateTo } from './navigate-to.js';
|
package/dist/api/router/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { exitMiniProgram } from './exit-mini-program.js';
|
|
2
|
+
export { getApp, getCurrentInstance, useRouter } from './current-instance.js';
|
|
2
3
|
export { navigateBack } from './navigate-back.js';
|
|
3
4
|
export { getCurrentPages } from './get-current-pages.js';
|
|
4
5
|
export { navigateTo } from './navigate-to.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reLaunch as appReLaunch } from '@
|
|
1
|
+
import { reLaunch as appReLaunch } from '@doubao-dev/framework/api';
|
|
2
2
|
import { runCallbackApi } from '../utils.js';
|
|
3
3
|
export async function reLaunch(params) {
|
|
4
4
|
return runCallbackApi('reLaunch', params, () => appReLaunch({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { downloadFile as nativeDownloadFile } from '@doubao-dev/framework/api';
|
|
2
|
+
import { type CallbackHooks } from '../utils.js';
|
|
3
|
+
type NativeTask = ReturnType<typeof nativeDownloadFile>;
|
|
4
|
+
type DownloadResult = Awaited<NativeTask> & {
|
|
5
|
+
errMsg: string;
|
|
6
|
+
};
|
|
7
|
+
type DownloadOptions = Parameters<typeof nativeDownloadFile>[0] & Partial<CallbackHooks<DownloadResult>>;
|
|
8
|
+
type DownloadTask = Promise<DownloadResult> & Pick<NativeTask, 'abort' | 'onProgressUpdate' | 'offProgressUpdate' | 'onHeadersReceived' | 'offHeadersReceived'>;
|
|
9
|
+
export declare function downloadFile(options: DownloadOptions): DownloadTask;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=download.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { downloadFile as nativeDownloadFile } from '@doubao-dev/framework/api';
|
|
2
|
+
import { runTaroApi } from '../utils.js';
|
|
3
|
+
export function downloadFile(options) {
|
|
4
|
+
const { success, fail, complete, ...params } = options;
|
|
5
|
+
const native = nativeDownloadFile(params);
|
|
6
|
+
const promise = runTaroApi('downloadFile', { success, fail, complete }, async () => ({
|
|
7
|
+
...(await native),
|
|
8
|
+
errMsg: 'downloadFile:ok'
|
|
9
|
+
}));
|
|
10
|
+
return Object.assign(promise, {
|
|
11
|
+
abort: () => native.abort(),
|
|
12
|
+
onProgressUpdate: native.onProgressUpdate.bind(native),
|
|
13
|
+
offProgressUpdate: native.offProgressUpdate.bind(native),
|
|
14
|
+
onHeadersReceived: native.onHeadersReceived.bind(native),
|
|
15
|
+
offHeadersReceived: native.offHeadersReceived.bind(native)
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=download.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { onWindowResize as appOnWindowResize } from '@doubao-dev/framework/api';
|
|
2
|
+
type ResizeCallback = Parameters<typeof appOnWindowResize>[0];
|
|
3
|
+
export declare function onWindowResize(callback: ResizeCallback): void;
|
|
4
|
+
export declare function offWindowResize(callback?: ResizeCallback): void;
|
|
5
|
+
export declare function useResize(callback: ResizeCallback): void;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=resize.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useEffect, useRef } from '@doubao-dev/framework';
|
|
2
|
+
import { onWindowResize as appOnWindowResize } from '@doubao-dev/framework/api';
|
|
3
|
+
const subscriptions = new Map();
|
|
4
|
+
export function onWindowResize(callback) {
|
|
5
|
+
if (subscriptions.has(callback)) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
subscriptions.set(callback, appOnWindowResize(callback));
|
|
9
|
+
}
|
|
10
|
+
export function offWindowResize(callback) {
|
|
11
|
+
const callbacks = callback ? [callback] : [...subscriptions.keys()];
|
|
12
|
+
for (const item of callbacks) {
|
|
13
|
+
subscriptions.get(item)?.();
|
|
14
|
+
subscriptions.delete(item);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export function useResize(callback) {
|
|
18
|
+
const latest = useRef(callback);
|
|
19
|
+
latest.current = callback;
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const listener = (event) => latest.current(event);
|
|
22
|
+
onWindowResize(listener);
|
|
23
|
+
return () => offWindowResize(listener);
|
|
24
|
+
}, []);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=resize.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getAccountInfoSync, getSystemInfoSync, getSystemInfo as nativeGetSystemInfo } from '@doubao-dev/framework/api';
|
|
2
|
+
import { type CallbackHooks } from '../utils.js';
|
|
3
|
+
export { getAccountInfoSync, getSystemInfoSync };
|
|
4
|
+
type SystemInfo = Awaited<ReturnType<typeof nativeGetSystemInfo>> & {
|
|
5
|
+
errMsg: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function getSystemInfo(options?: Partial<CallbackHooks<SystemInfo>>): Promise<SystemInfo>;
|
|
8
|
+
//# sourceMappingURL=system.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { getAccountInfoSync, getSystemInfoSync, getSystemInfo as nativeGetSystemInfo } from '@doubao-dev/framework/api';
|
|
2
|
+
import { runTaroApi } from '../utils.js';
|
|
3
|
+
export { getAccountInfoSync, getSystemInfoSync };
|
|
4
|
+
export function getSystemInfo(options = {}) {
|
|
5
|
+
return runTaroApi('getSystemInfo', options, async () => ({
|
|
6
|
+
...(await nativeGetSystemInfo()),
|
|
7
|
+
errMsg: 'getSystemInfo:ok'
|
|
8
|
+
}));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=system.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { showToast as appShowToast } from '@
|
|
1
|
+
import { showToast as appShowToast } from '@doubao-dev/framework/api';
|
|
2
2
|
import { runCallbackApi } from '../utils.js';
|
|
3
3
|
function resolveType(icon) {
|
|
4
4
|
if (icon === 'success' || icon === 'error') {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getStorageInfoSync as appGetStorageInfoSync } from '@
|
|
1
|
+
import { getStorageInfoSync as appGetStorageInfoSync } from '@doubao-dev/framework/api';
|
|
2
2
|
import type { clearStorage as taroClearStorage, getStorageInfo as taroGetStorageInfo, removeStorage as taroRemoveStorage, setStorage as taroSetStorage } from '@tarojs/taro';
|
|
3
3
|
type GetStorageInfoResult = ReturnType<typeof appGetStorageInfoSync>;
|
|
4
4
|
type GetStorageResult<T = any> = Taro.getStorage.SuccessCallbackResult<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clearStorage as appClearStorage, clearStorageSync as appClearStorageSync, getStorage as appGetStorage, getStorageInfo as appGetStorageInfo, getStorageInfoSync as appGetStorageInfoSync, getStorageSync as appGetStorageSync, removeStorage as appRemoveStorage, removeStorageSync as appRemoveStorageSync, setStorage as appSetStorage, setStorageSync as appSetStorageSync } from '@
|
|
1
|
+
import { clearStorage as appClearStorage, clearStorageSync as appClearStorageSync, getStorage as appGetStorage, getStorageInfo as appGetStorageInfo, getStorageInfoSync as appGetStorageInfoSync, getStorageSync as appGetStorageSync, removeStorage as appRemoveStorage, removeStorageSync as appRemoveStorageSync, setStorage as appSetStorage, setStorageSync as appSetStorageSync } from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildOkCallbackResult, runCallbackApi, runTaroApi } from '../utils.js';
|
|
3
3
|
export async function setStorage(option) {
|
|
4
4
|
const { key, data } = option;
|
package/dist/api/system/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAppAuthorizeSetting as appGetAppAuthorizeSetting, getDeviceInfoSync as appGetDeviceInfoSync, getMenuButtonBoundingClientRect as appGetMenuButtonBoundingClientRect, getNetworkType as appGetNetworkType, getScreenBrightness as appGetScreenBrightness, getSystemSetting as appGetSystemSetting, makePhoneCall as appMakePhoneCall, onKeyboardHeightChange as appOnKeyboardHeightChange, onNetworkStatusChange as appOnNetworkStatusChange, onThemeChange as appOnThemeChange, setClipboardData as appSetClipboardData, getAppBaseInfoSync, getWindowInfoSync } from '@
|
|
1
|
+
import { getAppAuthorizeSetting as appGetAppAuthorizeSetting, getDeviceInfoSync as appGetDeviceInfoSync, getMenuButtonBoundingClientRect as appGetMenuButtonBoundingClientRect, getNetworkType as appGetNetworkType, getScreenBrightness as appGetScreenBrightness, getSystemSetting as appGetSystemSetting, makePhoneCall as appMakePhoneCall, onKeyboardHeightChange as appOnKeyboardHeightChange, onNetworkStatusChange as appOnNetworkStatusChange, onThemeChange as appOnThemeChange, setClipboardData as appSetClipboardData, getAppBaseInfoSync, getWindowInfoSync } from '@doubao-dev/framework/api';
|
|
2
2
|
import { buildFailCallbackResult, emitFailure, runCallbackApi, runTaroApi } from '../utils.js';
|
|
3
3
|
const networkStatusChangeCallbacks = new Map();
|
|
4
4
|
const keyboardHeightChangeCallbacks = new Map();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Button as DoubaoButton, type ButtonProps as SDKButtonProps } from '@doubao-dev/framework/components';
|
|
2
|
+
import { type ComponentRef, forwardRef } from '@doubao-dev/framework';
|
|
3
|
+
import type { ButtonProps as TaroButtonProps } from '@tarojs/components';
|
|
4
|
+
type ButtonProps = SDKButtonProps & Pick<TaroButtonProps, 'id' | 'formType'>;
|
|
5
|
+
export declare const Button: ReturnType<typeof forwardRef<ComponentRef<typeof DoubaoButton>, ButtonProps>>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Button as DoubaoButton } from '@doubao-dev/framework/components';
|
|
2
|
+
import { forwardRef, useContext } from '@doubao-dev/framework';
|
|
3
|
+
import { FormContext } from '@lynx-js/lynx-ui-form';
|
|
4
|
+
import { withSelectorId } from '../../internal/selector-id.js';
|
|
5
|
+
import { FormResetContext } from '../Form/index.jsx';
|
|
6
|
+
import { useLabelControl } from '../Label/control.js';
|
|
7
|
+
import { wrapTextNode } from '../base/wrap-text-node.jsx';
|
|
8
|
+
export const Button = forwardRef(function Button({ throttle = 0, children, id, formType, onClick, ...props }, ref) {
|
|
9
|
+
const form = useContext(FormContext);
|
|
10
|
+
const reset = useContext(FormResetContext);
|
|
11
|
+
const activate = (event) => {
|
|
12
|
+
if (props.disabled || props.loading) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
onClick?.(event);
|
|
16
|
+
if (formType === 'submit') {
|
|
17
|
+
form?.submit();
|
|
18
|
+
}
|
|
19
|
+
if (formType === 'reset') {
|
|
20
|
+
reset?.();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
useLabelControl(id, activate);
|
|
24
|
+
return (<DoubaoButton {...props} {...(id ? { id } : {})} className={withSelectorId(props.className, id)} ref={ref} throttle={throttle} onClick={activate}>
|
|
25
|
+
{wrapTextNode(children)}
|
|
26
|
+
</DoubaoButton>);
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.jsx.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type CanvasRef, type CanvasProps as SDKCanvasProps } from '@doubao-dev/framework/components';
|
|
2
|
+
import type { CanvasProps } from '@tarojs/components';
|
|
3
|
+
export declare const Canvas: (props: CanvasProps & Pick<SDKCanvasProps, "exportScope"> & import("react").RefAttributes<CanvasRef>) => React.ReactElement | null;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Canvas as SDKCanvas } from '@doubao-dev/framework/components';
|
|
2
|
+
import { forwardRef, useCallback, useRef } from '@doubao-dev/framework';
|
|
3
|
+
import { clearQueryCanvas, setQueryCanvas, useQueryNodeProps } from '../../internal/query-node.js';
|
|
4
|
+
export const Canvas = forwardRef(function Canvas({ id, canvasId, exportScope, type, className, style, disableScroll, onTouchStart, onTouchMove, onTouchEnd, onTouchCancel, onLongTap, onError }, ref) {
|
|
5
|
+
const queryId = id ?? canvasId;
|
|
6
|
+
const current = useRef(null);
|
|
7
|
+
useQueryNodeProps(queryId, { canvasId, type, disableScroll });
|
|
8
|
+
const assignRef = useCallback((instance) => {
|
|
9
|
+
if (queryId && current.current) {
|
|
10
|
+
clearQueryCanvas(queryId, current.current);
|
|
11
|
+
}
|
|
12
|
+
current.current = instance;
|
|
13
|
+
if (queryId && instance) {
|
|
14
|
+
setQueryCanvas(queryId, instance);
|
|
15
|
+
}
|
|
16
|
+
if (typeof ref === 'function') {
|
|
17
|
+
ref(instance);
|
|
18
|
+
}
|
|
19
|
+
else if (ref) {
|
|
20
|
+
ref.current = instance;
|
|
21
|
+
}
|
|
22
|
+
}, [queryId, ref]);
|
|
23
|
+
return (<SDKCanvas ref={assignRef} id={id ?? canvasId} exportScope={exportScope} className={className} style={style} disableScroll={disableScroll} onTouchStart={onTouchStart} onTouchMove={onTouchMove} onTouchEnd={onTouchEnd} onTouchCancel={onTouchCancel} onLongPress={onLongTap} onError={onError}/>);
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.jsx.map
|