@ayden-fc2/riffle-bridge-web 1.0.0 → 1.0.1

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/index.d.mts CHANGED
@@ -88,6 +88,8 @@ interface AudioStatus {
88
88
  isPlaying: boolean;
89
89
  volume: number;
90
90
  rate: number;
91
+ durationMillis?: number;
92
+ positionMillis?: number;
91
93
  }
92
94
  interface DeviceInfo {
93
95
  brand: string | null;
@@ -155,6 +157,13 @@ interface StorageStats {
155
157
  size: number;
156
158
  }>;
157
159
  }
160
+ interface UrlMapping {
161
+ url: string;
162
+ localUri: string;
163
+ size?: number;
164
+ sizeFormatted?: string;
165
+ createdAt?: number;
166
+ }
158
167
  interface FileInfo {
159
168
  filename: string;
160
169
  uri: string;
@@ -193,8 +202,11 @@ interface PhotoResult {
193
202
  }
194
203
  interface RecordingResult {
195
204
  isRecording: boolean;
196
- uri?: string;
205
+ isDoneRecording?: boolean;
197
206
  durationMillis?: number;
207
+ canRecord: boolean;
208
+ isPaused?: boolean;
209
+ uri?: string;
198
210
  }
199
211
  interface PermissionResult {
200
212
  granted: boolean;
@@ -211,6 +223,7 @@ interface TweakConfigBase {
211
223
  type: TweakType;
212
224
  group?: string;
213
225
  description?: string;
226
+ index?: number;
214
227
  }
215
228
  interface ColorTweakConfig extends TweakConfigBase {
216
229
  type: 'color';
@@ -716,4 +729,4 @@ declare function riffleBridgeTweaks<T extends TweaksConfig>(config: T, options?:
716
729
  React?: ReactType;
717
730
  }): TweaksProxy<T>;
718
731
 
719
- export { type AppInfo, AudioController, type AudioStatus, type BarometerData, type Base64Result, type BatteryInfo, type BooleanTweakConfig, BridgeCore, type BridgeMessage, type BridgeResponse, type CachedFileInfo, CameraController, type CameraFacing, type CameraFilter, type ColorTweakConfig, ConfigController, DeviceController, type DeviceInfo, type DownloadResult, type FileInfo, FileStorageController, HapticController, type HapticFeedbackType, MicrophoneController, type NetworkInfo, type NumberTweakConfig, type PermissionResult, type PhotoResult, type PlayOptions, type RecordingResult, RiffleBridge, RiffleBridgeTweaks, type ScreenInfo, type SelectOption, type SelectTweakConfig, SensorController, type SensorData, type SensorStartOptions, type SensorType, type ShakeIntensity, type StorageStats, type StringTweakConfig, type SystemInfo, type TiltDirection, type TweakConfig, type TweakType, TweakValue, type TweaksConfig, Utils, type VolumeData, createTweaks, getBridgeCore, getRiffleBridge, riffleBridgeTweaks };
732
+ export { type AppInfo, AudioController, type AudioStatus, type BarometerData, type Base64Result, type BatteryInfo, type BooleanTweakConfig, BridgeCore, type BridgeMessage, type BridgeResponse, type CachedFileInfo, CameraController, type CameraFacing, type CameraFilter, type ColorTweakConfig, ConfigController, DeviceController, type DeviceInfo, type DownloadResult, type FileInfo, FileStorageController, HapticController, type HapticFeedbackType, MicrophoneController, type NetworkInfo, type NumberTweakConfig, type PermissionResult, type PhotoResult, type PlayOptions, type RecordingResult, RiffleBridge, RiffleBridgeTweaks, type ScreenInfo, type SelectOption, type SelectTweakConfig, SensorController, type SensorData, type SensorStartOptions, type SensorType, type ShakeIntensity, type StorageStats, type StringTweakConfig, type SystemInfo, type TiltDirection, type TweakConfig, type TweakType, TweakValue, type TweaksConfig, type UrlMapping, Utils, type VolumeData, createTweaks, getBridgeCore, getRiffleBridge, riffleBridgeTweaks };
package/dist/index.d.ts CHANGED
@@ -88,6 +88,8 @@ interface AudioStatus {
88
88
  isPlaying: boolean;
89
89
  volume: number;
90
90
  rate: number;
91
+ durationMillis?: number;
92
+ positionMillis?: number;
91
93
  }
92
94
  interface DeviceInfo {
93
95
  brand: string | null;
@@ -155,6 +157,13 @@ interface StorageStats {
155
157
  size: number;
156
158
  }>;
157
159
  }
160
+ interface UrlMapping {
161
+ url: string;
162
+ localUri: string;
163
+ size?: number;
164
+ sizeFormatted?: string;
165
+ createdAt?: number;
166
+ }
158
167
  interface FileInfo {
159
168
  filename: string;
160
169
  uri: string;
@@ -193,8 +202,11 @@ interface PhotoResult {
193
202
  }
194
203
  interface RecordingResult {
195
204
  isRecording: boolean;
196
- uri?: string;
205
+ isDoneRecording?: boolean;
197
206
  durationMillis?: number;
207
+ canRecord: boolean;
208
+ isPaused?: boolean;
209
+ uri?: string;
198
210
  }
199
211
  interface PermissionResult {
200
212
  granted: boolean;
@@ -211,6 +223,7 @@ interface TweakConfigBase {
211
223
  type: TweakType;
212
224
  group?: string;
213
225
  description?: string;
226
+ index?: number;
214
227
  }
215
228
  interface ColorTweakConfig extends TweakConfigBase {
216
229
  type: 'color';
@@ -716,4 +729,4 @@ declare function riffleBridgeTweaks<T extends TweaksConfig>(config: T, options?:
716
729
  React?: ReactType;
717
730
  }): TweaksProxy<T>;
718
731
 
719
- export { type AppInfo, AudioController, type AudioStatus, type BarometerData, type Base64Result, type BatteryInfo, type BooleanTweakConfig, BridgeCore, type BridgeMessage, type BridgeResponse, type CachedFileInfo, CameraController, type CameraFacing, type CameraFilter, type ColorTweakConfig, ConfigController, DeviceController, type DeviceInfo, type DownloadResult, type FileInfo, FileStorageController, HapticController, type HapticFeedbackType, MicrophoneController, type NetworkInfo, type NumberTweakConfig, type PermissionResult, type PhotoResult, type PlayOptions, type RecordingResult, RiffleBridge, RiffleBridgeTweaks, type ScreenInfo, type SelectOption, type SelectTweakConfig, SensorController, type SensorData, type SensorStartOptions, type SensorType, type ShakeIntensity, type StorageStats, type StringTweakConfig, type SystemInfo, type TiltDirection, type TweakConfig, type TweakType, TweakValue, type TweaksConfig, Utils, type VolumeData, createTweaks, getBridgeCore, getRiffleBridge, riffleBridgeTweaks };
732
+ export { type AppInfo, AudioController, type AudioStatus, type BarometerData, type Base64Result, type BatteryInfo, type BooleanTweakConfig, BridgeCore, type BridgeMessage, type BridgeResponse, type CachedFileInfo, CameraController, type CameraFacing, type CameraFilter, type ColorTweakConfig, ConfigController, DeviceController, type DeviceInfo, type DownloadResult, type FileInfo, FileStorageController, HapticController, type HapticFeedbackType, MicrophoneController, type NetworkInfo, type NumberTweakConfig, type PermissionResult, type PhotoResult, type PlayOptions, type RecordingResult, RiffleBridge, RiffleBridgeTweaks, type ScreenInfo, type SelectOption, type SelectTweakConfig, SensorController, type SensorData, type SensorStartOptions, type SensorType, type ShakeIntensity, type StorageStats, type StringTweakConfig, type SystemInfo, type TiltDirection, type TweakConfig, type TweakType, TweakValue, type TweaksConfig, type UrlMapping, Utils, type VolumeData, createTweaks, getBridgeCore, getRiffleBridge, riffleBridgeTweaks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayden-fc2/riffle-bridge-web",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Riffle Bridge Web SDK - WebView 与 Native 通信桥接库",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/index.ts CHANGED
@@ -66,6 +66,7 @@ export type {
66
66
  AppInfo,
67
67
  ScreenInfo,
68
68
  StorageStats,
69
+ UrlMapping,
69
70
  FileInfo,
70
71
  CachedFileInfo,
71
72
  DownloadResult,
package/src/types.ts CHANGED
@@ -72,6 +72,8 @@ export interface AudioStatus {
72
72
  isPlaying: boolean;
73
73
  volume: number;
74
74
  rate: number;
75
+ durationMillis?: number;
76
+ positionMillis?: number;
75
77
  }
76
78
 
77
79
  export interface DeviceInfo {
@@ -144,6 +146,14 @@ export interface StorageStats {
144
146
  subfolders: Record<string, { files: number; size: number }>;
145
147
  }
146
148
 
149
+ export interface UrlMapping {
150
+ url: string;
151
+ localUri: string;
152
+ size?: number;
153
+ sizeFormatted?: string;
154
+ createdAt?: number;
155
+ }
156
+
147
157
  export interface FileInfo {
148
158
  filename: string;
149
159
  uri: string;
@@ -187,8 +197,11 @@ export interface PhotoResult {
187
197
 
188
198
  export interface RecordingResult {
189
199
  isRecording: boolean;
190
- uri?: string;
200
+ isDoneRecording?: boolean;
191
201
  durationMillis?: number;
202
+ canRecord: boolean;
203
+ isPaused?: boolean;
204
+ uri?: string;
192
205
  }
193
206
 
194
207
  export interface PermissionResult {
@@ -213,6 +226,7 @@ export interface TweakConfigBase {
213
226
  type: TweakType;
214
227
  group?: string;
215
228
  description?: string;
229
+ index?: number;
216
230
  }
217
231
 
218
232
  export interface ColorTweakConfig extends TweakConfigBase {