@weapp-vite/web 1.4.19 → 1.4.21

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.
Files changed (50) hide show
  1. package/dist/compiler/wxml/types.d.mts +1 -2
  2. package/dist/css/wxss.d.mts +3 -4
  3. package/dist/plugin/assets.d.mts +1 -2
  4. package/dist/plugin/index.d.mts +2 -2
  5. package/dist/plugin/types.d.mts +5 -6
  6. package/dist/runtime/button/index.d.mts +3 -4
  7. package/dist/runtime/component/index.d.mts +2 -2
  8. package/dist/runtime/component/types.d.mts +13 -14
  9. package/dist/runtime/execution.d.mts +3 -4
  10. package/dist/runtime/host/index.d.mts +9 -9
  11. package/dist/runtime/host/types.d.mts +4 -5
  12. package/dist/runtime/hostGlobals.d.mts +1 -2
  13. package/dist/runtime/legacyTemplate/index.d.mts +2 -3
  14. package/dist/runtime/legacyTemplate/types.d.mts +2 -3
  15. package/dist/runtime/nativeComponents/form.d.mts +1 -2
  16. package/dist/runtime/nativeComponents/image.d.mts +1 -2
  17. package/dist/runtime/nativeComponents/index.d.mts +2 -2
  18. package/dist/runtime/nativeComponents/input.d.mts +1 -2
  19. package/dist/runtime/nativeComponents/scrollView.d.mts +1 -2
  20. package/dist/runtime/nativeComponents/switch.d.mts +1 -2
  21. package/dist/runtime/nativeComponents/textarea.d.mts +1 -2
  22. package/dist/runtime/nativeComponents/video/helpers.d.mts +3 -4
  23. package/dist/runtime/navigationBar/index.d.mts +2 -2
  24. package/dist/runtime/pageLayout.d.mts +2 -3
  25. package/dist/runtime/polyfill/async.d.mts +1 -2
  26. package/dist/runtime/polyfill/deviceAuthSystemApi.d.mts +27 -28
  27. package/dist/runtime/polyfill/index.d.mts +15 -15
  28. package/dist/runtime/polyfill/routeRuntime/history.d.mts +8 -9
  29. package/dist/runtime/polyfill/routeRuntime/options.d.mts +8 -9
  30. package/dist/runtime/polyfill/routeRuntime.d.mts +11 -12
  31. package/dist/runtime/polyfill/runtimeDataApi.d.mts +28 -29
  32. package/dist/runtime/polyfill/types/base.d.mts +2 -3
  33. package/dist/runtime/polyfill/types/common.d.mts +26 -27
  34. package/dist/runtime/polyfill/types/locationRuntime.d.mts +34 -35
  35. package/dist/runtime/polyfill/types/mediaAuth.d.mts +34 -35
  36. package/dist/runtime/polyfill/types/platformRuntime.d.mts +25 -26
  37. package/dist/runtime/polyfill/types/systemAuth.d.mts +22 -23
  38. package/dist/runtime/polyfill/types/tabBarRuntime.d.mts +5 -6
  39. package/dist/runtime/polyfill/uiMediaApi.d.mts +42 -43
  40. package/dist/runtime/renderContext.d.mts +2 -3
  41. package/dist/runtime/rpx.d.mts +2 -3
  42. package/dist/runtime/seo/index.d.mts +11 -11
  43. package/dist/runtime/style.d.mts +2 -3
  44. package/dist/runtime/template.d.mts +3 -3
  45. package/dist/runtime/viewport/index.d.mts +4 -4
  46. package/dist/runtime/viewport/types.d.mts +2 -3
  47. package/dist/runtime/warning.d.mts +3 -4
  48. package/dist/runtime/wevu.d.mts +3 -4
  49. package/dist/shared/tabBar.d.mts +2 -3
  50. package/package.json +6 -6
@@ -1,17 +1,17 @@
1
1
  import { MiniProgramAsyncOptions, MiniProgramBaseResult } from "./base.mjs";
2
2
  //#region src/runtime/polyfill/types/mediaAuth.d.ts
3
- interface AuthSettingResult {
3
+ export interface AuthSettingResult {
4
4
  authSetting: Record<string, boolean>;
5
5
  }
6
- interface GetSettingSuccessResult extends MiniProgramBaseResult, AuthSettingResult {}
7
- interface GetSettingOptions extends MiniProgramAsyncOptions<GetSettingSuccessResult> {}
8
- interface AuthorizeOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
6
+ export interface GetSettingSuccessResult extends MiniProgramBaseResult, AuthSettingResult {}
7
+ export interface GetSettingOptions extends MiniProgramAsyncOptions<GetSettingSuccessResult> {}
8
+ export interface AuthorizeOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
9
9
  scope?: string;
10
10
  }
11
- interface OpenSettingSuccessResult extends MiniProgramBaseResult, AuthSettingResult {}
12
- interface OpenSettingOptions extends MiniProgramAsyncOptions<OpenSettingSuccessResult> {}
13
- type ChooseMediaType = 'image' | 'video';
14
- interface ChooseMediaTempFile {
11
+ export interface OpenSettingSuccessResult extends MiniProgramBaseResult, AuthSettingResult {}
12
+ export interface OpenSettingOptions extends MiniProgramAsyncOptions<OpenSettingSuccessResult> {}
13
+ export type ChooseMediaType = 'image' | 'video';
14
+ export interface ChooseMediaTempFile {
15
15
  tempFilePath: string;
16
16
  size: number;
17
17
  fileType: ChooseMediaType;
@@ -20,11 +20,11 @@ interface ChooseMediaTempFile {
20
20
  height: number;
21
21
  duration: number;
22
22
  }
23
- interface ChooseMediaSuccessResult extends MiniProgramBaseResult {
23
+ export interface ChooseMediaSuccessResult extends MiniProgramBaseResult {
24
24
  type: ChooseMediaType;
25
25
  tempFiles: ChooseMediaTempFile[];
26
26
  }
27
- interface ChooseMediaOptions extends MiniProgramAsyncOptions<ChooseMediaSuccessResult> {
27
+ export interface ChooseMediaOptions extends MiniProgramAsyncOptions<ChooseMediaSuccessResult> {
28
28
  count?: number;
29
29
  mediaType?: Array<'image' | 'video' | 'mix'>;
30
30
  sourceType?: Array<'album' | 'camera'>;
@@ -32,29 +32,29 @@ interface ChooseMediaOptions extends MiniProgramAsyncOptions<ChooseMediaSuccessR
32
32
  sizeType?: Array<'original' | 'compressed'>;
33
33
  camera?: 'back' | 'front';
34
34
  }
35
- interface CompressImageSuccessResult extends MiniProgramBaseResult {
35
+ export interface CompressImageSuccessResult extends MiniProgramBaseResult {
36
36
  tempFilePath: string;
37
37
  }
38
- interface CompressImageOptions extends MiniProgramAsyncOptions<CompressImageSuccessResult> {
38
+ export interface CompressImageOptions extends MiniProgramAsyncOptions<CompressImageSuccessResult> {
39
39
  src?: string;
40
40
  quality?: number;
41
41
  compressedWidth?: number;
42
42
  compressedHeight?: number;
43
43
  }
44
- interface ChooseVideoSuccessResult extends MiniProgramBaseResult {
44
+ export interface ChooseVideoSuccessResult extends MiniProgramBaseResult {
45
45
  tempFilePath: string;
46
46
  duration: number;
47
47
  size: number;
48
48
  height: number;
49
49
  width: number;
50
50
  }
51
- interface ChooseVideoOptions extends MiniProgramAsyncOptions<ChooseVideoSuccessResult> {
51
+ export interface ChooseVideoOptions extends MiniProgramAsyncOptions<ChooseVideoSuccessResult> {
52
52
  sourceType?: Array<'album' | 'camera'>;
53
53
  compressed?: boolean;
54
54
  maxDuration?: number;
55
55
  camera?: 'back' | 'front';
56
56
  }
57
- interface GetVideoInfoSuccessResult extends MiniProgramBaseResult {
57
+ export interface GetVideoInfoSuccessResult extends MiniProgramBaseResult {
58
58
  size: number;
59
59
  duration: number;
60
60
  width: number;
@@ -64,10 +64,10 @@ interface GetVideoInfoSuccessResult extends MiniProgramBaseResult {
64
64
  type: string;
65
65
  orientation: 'up';
66
66
  }
67
- interface GetVideoInfoOptions extends MiniProgramAsyncOptions<GetVideoInfoSuccessResult> {
67
+ export interface GetVideoInfoOptions extends MiniProgramAsyncOptions<GetVideoInfoSuccessResult> {
68
68
  src?: string;
69
69
  }
70
- interface CompressVideoSuccessResult extends MiniProgramBaseResult {
70
+ export interface CompressVideoSuccessResult extends MiniProgramBaseResult {
71
71
  tempFilePath: string;
72
72
  size: number;
73
73
  duration: number;
@@ -76,76 +76,75 @@ interface CompressVideoSuccessResult extends MiniProgramBaseResult {
76
76
  bitrate: number;
77
77
  fps: number;
78
78
  }
79
- interface CompressVideoOptions extends MiniProgramAsyncOptions<CompressVideoSuccessResult> {
79
+ export interface CompressVideoOptions extends MiniProgramAsyncOptions<CompressVideoSuccessResult> {
80
80
  src?: string;
81
81
  quality?: 'low' | 'medium' | 'high';
82
82
  bitrate?: number;
83
83
  }
84
- interface MediaPreviewSource {
84
+ export interface MediaPreviewSource {
85
85
  url: string;
86
86
  type?: 'image' | 'video';
87
87
  poster?: string;
88
88
  }
89
- interface PreviewMediaOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
89
+ export interface PreviewMediaOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
90
90
  sources?: MediaPreviewSource[];
91
91
  current?: number;
92
92
  }
93
- interface SaveVideoToPhotosAlbumOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
93
+ export interface SaveVideoToPhotosAlbumOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
94
94
  filePath?: string;
95
95
  }
96
- interface ChooseFileSuccessResult extends MiniProgramBaseResult {
96
+ export interface ChooseFileSuccessResult extends MiniProgramBaseResult {
97
97
  tempFiles: ChooseMessageFileTempFile[];
98
98
  }
99
- interface ChooseFileOptions extends MiniProgramAsyncOptions<ChooseFileSuccessResult> {
99
+ export interface ChooseFileOptions extends MiniProgramAsyncOptions<ChooseFileSuccessResult> {
100
100
  count?: number;
101
101
  type?: 'all' | 'video' | 'image' | 'file';
102
102
  extension?: string[];
103
103
  }
104
- interface OpenVideoEditorSuccessResult extends MiniProgramBaseResult {
104
+ export interface OpenVideoEditorSuccessResult extends MiniProgramBaseResult {
105
105
  tempFilePath: string;
106
106
  }
107
- interface OpenVideoEditorOptions extends MiniProgramAsyncOptions<OpenVideoEditorSuccessResult> {
107
+ export interface OpenVideoEditorOptions extends MiniProgramAsyncOptions<OpenVideoEditorSuccessResult> {
108
108
  src?: string;
109
109
  }
110
- interface SaveFileSuccessResult extends MiniProgramBaseResult {
110
+ export interface SaveFileSuccessResult extends MiniProgramBaseResult {
111
111
  savedFilePath: string;
112
112
  }
113
- interface SaveFileOptions extends MiniProgramAsyncOptions<SaveFileSuccessResult> {
113
+ export interface SaveFileOptions extends MiniProgramAsyncOptions<SaveFileSuccessResult> {
114
114
  tempFilePath?: string;
115
115
  filePath?: string;
116
116
  }
117
- interface SaveFileToDiskOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
117
+ export interface SaveFileToDiskOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
118
118
  filePath?: string;
119
119
  fileName?: string;
120
120
  }
121
- interface ChooseMessageFileTempFile {
121
+ export interface ChooseMessageFileTempFile {
122
122
  path: string;
123
123
  size: number;
124
124
  type: string;
125
125
  name: string;
126
126
  time: number;
127
127
  }
128
- interface ChooseMessageFileSuccessResult extends MiniProgramBaseResult {
128
+ export interface ChooseMessageFileSuccessResult extends MiniProgramBaseResult {
129
129
  tempFiles: ChooseMessageFileTempFile[];
130
130
  }
131
- interface ChooseMessageFileOptions extends MiniProgramAsyncOptions<ChooseMessageFileSuccessResult> {
131
+ export interface ChooseMessageFileOptions extends MiniProgramAsyncOptions<ChooseMessageFileSuccessResult> {
132
132
  count?: number;
133
133
  type?: 'all' | 'video' | 'image' | 'file';
134
134
  }
135
- interface SaveImageToPhotosAlbumOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
135
+ export interface SaveImageToPhotosAlbumOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
136
136
  filePath?: string;
137
137
  }
138
- interface ScanCodeSuccessResult extends MiniProgramBaseResult {
138
+ export interface ScanCodeSuccessResult extends MiniProgramBaseResult {
139
139
  result: string;
140
140
  scanType: string;
141
141
  charSet: string;
142
142
  path: string;
143
143
  rawData: string;
144
144
  }
145
- interface ScanCodeOptions extends MiniProgramAsyncOptions<ScanCodeSuccessResult> {
145
+ export interface ScanCodeOptions extends MiniProgramAsyncOptions<ScanCodeSuccessResult> {
146
146
  onlyFromCamera?: boolean;
147
147
  scanType?: string[];
148
148
  }
149
149
  //#endregion
150
- export { AuthSettingResult, AuthorizeOptions, ChooseFileOptions, ChooseFileSuccessResult, ChooseMediaOptions, ChooseMediaSuccessResult, ChooseMediaTempFile, ChooseMediaType, ChooseMessageFileOptions, ChooseMessageFileSuccessResult, ChooseMessageFileTempFile, ChooseVideoOptions, ChooseVideoSuccessResult, CompressImageOptions, CompressImageSuccessResult, CompressVideoOptions, CompressVideoSuccessResult, GetSettingOptions, GetSettingSuccessResult, GetVideoInfoOptions, GetVideoInfoSuccessResult, MediaPreviewSource, OpenSettingOptions, OpenSettingSuccessResult, OpenVideoEditorOptions, OpenVideoEditorSuccessResult, PreviewMediaOptions, SaveFileOptions, SaveFileSuccessResult, SaveFileToDiskOptions, SaveImageToPhotosAlbumOptions, SaveVideoToPhotosAlbumOptions, ScanCodeOptions, ScanCodeSuccessResult };
151
150
  //# sourceMappingURL=mediaAuth.d.mts.map
@@ -1,46 +1,46 @@
1
1
  import { MiniProgramAsyncOptions, MiniProgramBaseResult } from "./base.mjs";
2
2
  //#region src/runtime/polyfill/types/platformRuntime.d.ts
3
- interface VibrateShortOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
3
+ export interface VibrateShortOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
4
4
  type?: 'heavy' | 'medium' | 'light';
5
5
  }
6
- interface BatteryInfo {
6
+ export interface BatteryInfo {
7
7
  level: number;
8
8
  isCharging: boolean;
9
9
  }
10
- interface GetBatteryInfoSuccessResult extends MiniProgramBaseResult, BatteryInfo {}
11
- interface GetExtConfigSuccessResult extends MiniProgramBaseResult {
10
+ export interface GetBatteryInfoSuccessResult extends MiniProgramBaseResult, BatteryInfo {}
11
+ export interface GetExtConfigSuccessResult extends MiniProgramBaseResult {
12
12
  extConfig: Record<string, any>;
13
13
  }
14
- interface GetExtConfigOptions extends MiniProgramAsyncOptions<GetExtConfigSuccessResult> {}
15
- interface ShowModalSuccessResult extends MiniProgramBaseResult {
14
+ export interface GetExtConfigOptions extends MiniProgramAsyncOptions<GetExtConfigSuccessResult> {}
15
+ export interface ShowModalSuccessResult extends MiniProgramBaseResult {
16
16
  confirm: boolean;
17
17
  cancel: boolean;
18
18
  }
19
- interface ShowModalOptions extends MiniProgramAsyncOptions<ShowModalSuccessResult> {
19
+ export interface ShowModalOptions extends MiniProgramAsyncOptions<ShowModalSuccessResult> {
20
20
  title?: string;
21
21
  content?: string;
22
22
  showCancel?: boolean;
23
23
  confirmText?: string;
24
24
  cancelText?: string;
25
25
  }
26
- interface ShowActionSheetSuccessResult extends MiniProgramBaseResult {
26
+ export interface ShowActionSheetSuccessResult extends MiniProgramBaseResult {
27
27
  tapIndex: number;
28
28
  }
29
- interface ShowActionSheetOptions extends MiniProgramAsyncOptions<ShowActionSheetSuccessResult> {
29
+ export interface ShowActionSheetOptions extends MiniProgramAsyncOptions<ShowActionSheetSuccessResult> {
30
30
  itemList?: string[];
31
31
  itemColor?: string;
32
32
  alertText?: string;
33
33
  }
34
- interface OpenDocumentOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
34
+ export interface OpenDocumentOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
35
35
  filePath?: string;
36
36
  fileType?: string;
37
37
  showMenu?: boolean;
38
38
  }
39
- interface PageScrollToOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
39
+ export interface PageScrollToOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
40
40
  scrollTop?: number;
41
41
  duration?: number;
42
42
  }
43
- interface SelectorQueryNodeFields {
43
+ export interface SelectorQueryNodeFields {
44
44
  id?: boolean;
45
45
  dataset?: boolean;
46
46
  rect?: boolean;
@@ -51,21 +51,21 @@ interface SelectorQueryNodeFields {
51
51
  context?: boolean;
52
52
  node?: boolean;
53
53
  }
54
- type SelectorQueryNodeCallback = (result: any) => void;
55
- interface SelectorQuery {
54
+ export type SelectorQueryNodeCallback = (result: any) => void;
55
+ export interface SelectorQuery {
56
56
  in: (context?: unknown) => SelectorQuery;
57
57
  select: (selector: string) => SelectorQueryNodesRef;
58
58
  selectAll: (selector: string) => SelectorQueryNodesRef;
59
59
  selectViewport: () => SelectorQueryNodesRef;
60
60
  exec: (callback?: (result: any[]) => void) => SelectorQuery;
61
61
  }
62
- interface SelectorQueryNodesRef {
62
+ export interface SelectorQueryNodesRef {
63
63
  boundingClientRect: (callback?: SelectorQueryNodeCallback) => SelectorQuery;
64
64
  scrollOffset: (callback?: SelectorQueryNodeCallback) => SelectorQuery;
65
65
  fields: (fields: SelectorQueryNodeFields, callback?: SelectorQueryNodeCallback) => SelectorQuery;
66
66
  node: (callback?: SelectorQueryNodeCallback) => SelectorQuery;
67
67
  }
68
- interface CanvasContext {
68
+ export interface CanvasContext {
69
69
  setFillStyle: (color: string) => void;
70
70
  setStrokeStyle: (color: string) => void;
71
71
  setLineWidth: (width: number) => void;
@@ -90,7 +90,7 @@ interface CanvasContext {
90
90
  scale: (scaleWidth: number, scaleHeight: number) => void;
91
91
  draw: (reserve?: boolean | (() => void), callback?: () => void) => void;
92
92
  }
93
- interface VideoContext {
93
+ export interface VideoContext {
94
94
  play: () => void;
95
95
  pause: () => void;
96
96
  stop: () => void;
@@ -99,23 +99,23 @@ interface VideoContext {
99
99
  requestFullScreen: () => void;
100
100
  exitFullScreen: () => void;
101
101
  }
102
- interface AdBaseOptions {
102
+ export interface AdBaseOptions {
103
103
  adUnitId?: string;
104
104
  }
105
- interface AdError {
105
+ export interface AdError {
106
106
  errMsg: string;
107
107
  errCode: number;
108
108
  }
109
- interface AdLoadResult {
109
+ export interface AdLoadResult {
110
110
  errMsg: string;
111
111
  }
112
- interface AdShowResult {
112
+ export interface AdShowResult {
113
113
  errMsg: string;
114
114
  }
115
- interface RewardedVideoAdCloseResult {
115
+ export interface RewardedVideoAdCloseResult {
116
116
  isEnded: boolean;
117
117
  }
118
- interface RewardedVideoAd {
118
+ export interface RewardedVideoAd {
119
119
  load: () => Promise<AdLoadResult>;
120
120
  show: () => Promise<AdShowResult>;
121
121
  destroy: () => void;
@@ -126,7 +126,7 @@ interface RewardedVideoAd {
126
126
  onClose: (callback: (result: RewardedVideoAdCloseResult) => void) => void;
127
127
  offClose: (callback?: (result: RewardedVideoAdCloseResult) => void) => void;
128
128
  }
129
- interface InterstitialAd {
129
+ export interface InterstitialAd {
130
130
  load: () => Promise<AdLoadResult>;
131
131
  show: () => Promise<AdShowResult>;
132
132
  destroy: () => void;
@@ -137,7 +137,7 @@ interface InterstitialAd {
137
137
  onClose: (callback: () => void) => void;
138
138
  offClose: (callback?: () => void) => void;
139
139
  }
140
- interface VkSession {
140
+ export interface VkSession {
141
141
  start: () => Promise<MiniProgramBaseResult>;
142
142
  stop: () => Promise<MiniProgramBaseResult>;
143
143
  destroy: () => void;
@@ -145,5 +145,4 @@ interface VkSession {
145
145
  off: (eventName?: string, callback?: (payload: unknown) => void) => void;
146
146
  }
147
147
  //#endregion
148
- export { AdBaseOptions, AdError, AdLoadResult, AdShowResult, BatteryInfo, CanvasContext, GetBatteryInfoSuccessResult, GetExtConfigOptions, GetExtConfigSuccessResult, InterstitialAd, OpenDocumentOptions, PageScrollToOptions, RewardedVideoAd, RewardedVideoAdCloseResult, SelectorQuery, SelectorQueryNodeCallback, SelectorQueryNodeFields, SelectorQueryNodesRef, ShowActionSheetOptions, ShowActionSheetSuccessResult, ShowModalOptions, ShowModalSuccessResult, VibrateShortOptions, VideoContext, VkSession };
149
148
  //# sourceMappingURL=platformRuntime.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { MiniProgramAsyncOptions, MiniProgramBaseResult } from "./base.mjs";
2
2
  //#region src/runtime/polyfill/types/systemAuth.d.ts
3
- interface SafeArea {
3
+ export interface SafeArea {
4
4
  left: number;
5
5
  right: number;
6
6
  top: number;
@@ -8,13 +8,13 @@ interface SafeArea {
8
8
  width: number;
9
9
  height: number;
10
10
  }
11
- interface SafeAreaInsets {
11
+ export interface SafeAreaInsets {
12
12
  left: number;
13
13
  right: number;
14
14
  top: number;
15
15
  bottom: number;
16
16
  }
17
- interface SystemInfo {
17
+ export interface SystemInfo {
18
18
  brand: string;
19
19
  model: string;
20
20
  pixelRatio: number;
@@ -32,7 +32,7 @@ interface SystemInfo {
32
32
  system: string;
33
33
  platform: string;
34
34
  }
35
- interface AppBaseInfo {
35
+ export interface AppBaseInfo {
36
36
  SDKVersion: string;
37
37
  language: string;
38
38
  version: string;
@@ -40,7 +40,7 @@ interface AppBaseInfo {
40
40
  enableDebug: boolean;
41
41
  theme: 'light' | 'dark';
42
42
  }
43
- interface MenuButtonBoundingClientRect {
43
+ export interface MenuButtonBoundingClientRect {
44
44
  width: number;
45
45
  height: number;
46
46
  top: number;
@@ -48,7 +48,7 @@ interface MenuButtonBoundingClientRect {
48
48
  bottom: number;
49
49
  left: number;
50
50
  }
51
- interface WindowInfo {
51
+ export interface WindowInfo {
52
52
  pixelRatio: number;
53
53
  screenWidth: number;
54
54
  screenHeight: number;
@@ -58,7 +58,7 @@ interface WindowInfo {
58
58
  screenTop: number;
59
59
  safeArea: SafeArea;
60
60
  }
61
- interface DeviceInfo {
61
+ export interface DeviceInfo {
62
62
  brand: string;
63
63
  model: string;
64
64
  system: string;
@@ -68,15 +68,15 @@ interface DeviceInfo {
68
68
  abi: string;
69
69
  deviceOrientation: 'portrait' | 'landscape';
70
70
  }
71
- interface SystemSetting {
71
+ export interface SystemSetting {
72
72
  bluetoothEnabled: boolean;
73
73
  wifiEnabled: boolean;
74
74
  locationEnabled: boolean;
75
75
  locationReducedAccuracy: boolean;
76
76
  deviceOrientation: 'portrait' | 'landscape';
77
77
  }
78
- type AppAuthorizeStatus = 'authorized' | 'denied' | 'not determined';
79
- interface AppAuthorizeSetting {
78
+ export type AppAuthorizeStatus = 'authorized' | 'denied' | 'not determined';
79
+ export interface AppAuthorizeSetting {
80
80
  albumAuthorized: AppAuthorizeStatus;
81
81
  bluetoothAuthorized: AppAuthorizeStatus;
82
82
  cameraAuthorized: AppAuthorizeStatus;
@@ -85,16 +85,16 @@ interface AppAuthorizeSetting {
85
85
  notificationAuthorized: AppAuthorizeStatus;
86
86
  phoneCalendarAuthorized: AppAuthorizeStatus;
87
87
  }
88
- interface OpenAppAuthorizeSettingSuccessResult extends MiniProgramBaseResult, AppAuthorizeSetting {}
89
- interface OpenAppAuthorizeSettingOptions extends MiniProgramAsyncOptions<OpenAppAuthorizeSettingSuccessResult> {}
90
- interface LoginSuccessResult extends MiniProgramBaseResult {
88
+ export interface OpenAppAuthorizeSettingSuccessResult extends MiniProgramBaseResult, AppAuthorizeSetting {}
89
+ export interface OpenAppAuthorizeSettingOptions extends MiniProgramAsyncOptions<OpenAppAuthorizeSettingSuccessResult> {}
90
+ export interface LoginSuccessResult extends MiniProgramBaseResult {
91
91
  code: string;
92
92
  }
93
- interface LoginOptions extends MiniProgramAsyncOptions<LoginSuccessResult> {
93
+ export interface LoginOptions extends MiniProgramAsyncOptions<LoginSuccessResult> {
94
94
  timeout?: number;
95
95
  }
96
- interface CheckSessionOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {}
97
- interface UserInfo {
96
+ export interface CheckSessionOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {}
97
+ export interface UserInfo {
98
98
  nickName: string;
99
99
  avatarUrl: string;
100
100
  gender: 0 | 1 | 2;
@@ -103,21 +103,21 @@ interface UserInfo {
103
103
  city: string;
104
104
  language: string;
105
105
  }
106
- interface UserProfileSuccessResult extends MiniProgramBaseResult {
106
+ export interface UserProfileSuccessResult extends MiniProgramBaseResult {
107
107
  userInfo: UserInfo;
108
108
  rawData: string;
109
109
  signature: string;
110
110
  encryptedData: string;
111
111
  iv: string;
112
112
  }
113
- interface GetUserInfoOptions extends MiniProgramAsyncOptions<UserProfileSuccessResult> {
113
+ export interface GetUserInfoOptions extends MiniProgramAsyncOptions<UserProfileSuccessResult> {
114
114
  lang?: 'en' | 'zh_CN' | 'zh_TW';
115
115
  }
116
- interface GetUserProfileOptions extends MiniProgramAsyncOptions<UserProfileSuccessResult> {
116
+ export interface GetUserProfileOptions extends MiniProgramAsyncOptions<UserProfileSuccessResult> {
117
117
  desc?: string;
118
118
  lang?: 'en' | 'zh_CN' | 'zh_TW';
119
119
  }
120
- interface AccountInfoSync {
120
+ export interface AccountInfoSync {
121
121
  miniProgram: {
122
122
  appId: string;
123
123
  envVersion: 'develop' | 'trial' | 'release';
@@ -125,8 +125,7 @@ interface AccountInfoSync {
125
125
  };
126
126
  plugin: Record<string, unknown>;
127
127
  }
128
- interface GetSystemInfoSuccessResult extends MiniProgramBaseResult, SystemInfo {}
129
- interface GetSystemInfoOptions extends MiniProgramAsyncOptions<GetSystemInfoSuccessResult> {}
128
+ export interface GetSystemInfoSuccessResult extends MiniProgramBaseResult, SystemInfo {}
129
+ export interface GetSystemInfoOptions extends MiniProgramAsyncOptions<GetSystemInfoSuccessResult> {}
130
130
  //#endregion
131
- export { AccountInfoSync, AppAuthorizeSetting, AppAuthorizeStatus, AppBaseInfo, CheckSessionOptions, DeviceInfo, GetSystemInfoOptions, GetSystemInfoSuccessResult, GetUserInfoOptions, GetUserProfileOptions, LoginOptions, LoginSuccessResult, MenuButtonBoundingClientRect, OpenAppAuthorizeSettingOptions, OpenAppAuthorizeSettingSuccessResult, SafeArea, SafeAreaInsets, SystemInfo, SystemSetting, UserInfo, UserProfileSuccessResult, WindowInfo };
132
131
  //# sourceMappingURL=systemAuth.d.mts.map
@@ -1,25 +1,24 @@
1
1
  import { MiniProgramAsyncOptions, MiniProgramBaseResult } from "./base.mjs";
2
2
  //#region src/runtime/polyfill/types/tabBarRuntime.d.ts
3
- interface TabBarOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
3
+ export interface TabBarOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
4
4
  animation?: boolean;
5
5
  }
6
- interface TabBarIndexOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
6
+ export interface TabBarIndexOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
7
7
  index: number;
8
8
  }
9
- interface SetTabBarItemOptions extends TabBarIndexOptions {
9
+ export interface SetTabBarItemOptions extends TabBarIndexOptions {
10
10
  text?: string;
11
11
  iconPath?: string;
12
12
  selectedIconPath?: string;
13
13
  }
14
- interface SetTabBarStyleOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
14
+ export interface SetTabBarStyleOptions extends MiniProgramAsyncOptions<MiniProgramBaseResult> {
15
15
  color?: string;
16
16
  selectedColor?: string;
17
17
  backgroundColor?: string;
18
18
  borderStyle?: 'black' | 'white';
19
19
  }
20
- interface SetTabBarBadgeOptions extends TabBarIndexOptions {
20
+ export interface SetTabBarBadgeOptions extends TabBarIndexOptions {
21
21
  text: string;
22
22
  }
23
23
  //#endregion
24
- export { SetTabBarBadgeOptions, SetTabBarItemOptions, SetTabBarStyleOptions, TabBarIndexOptions, TabBarOptions };
25
24
  //# sourceMappingURL=tabBarRuntime.d.mts.map