@oxyhq/services 5.1.19 → 5.1.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.
@@ -140,4 +140,50 @@ export interface ContentViewer {
140
140
  userId: string;
141
141
  viewedAt: string;
142
142
  // Add other content viewer fields as needed
143
+ }
144
+
145
+ /**
146
+ * File management interfaces
147
+ */
148
+ export interface FileMetadata {
149
+ id: string;
150
+ filename: string;
151
+ contentType: string;
152
+ length: number;
153
+ chunkSize: number;
154
+ uploadDate: string;
155
+ metadata?: {
156
+ userId?: string;
157
+ description?: string;
158
+ title?: string;
159
+ tags?: string[];
160
+ [key: string]: any;
161
+ };
162
+ }
163
+
164
+ export interface FileUploadResponse {
165
+ success: boolean;
166
+ file: FileMetadata;
167
+ }
168
+
169
+ export interface FileListResponse {
170
+ files: FileMetadata[];
171
+ total: number;
172
+ hasMore: boolean;
173
+ }
174
+
175
+ export interface FileUpdateRequest {
176
+ filename?: string;
177
+ metadata?: {
178
+ description?: string;
179
+ title?: string;
180
+ tags?: string[];
181
+ [key: string]: any;
182
+ };
183
+ }
184
+
185
+ export interface FileDeleteResponse {
186
+ success: boolean;
187
+ message: string;
188
+ fileId: string;
143
189
  }
@@ -275,6 +275,16 @@ const OxyBottomSheet: React.FC<OxyProviderProps> = ({
275
275
  disappearsOnIndex={-1}
276
276
  appearsOnIndex={0}
277
277
  opacity={0.5}
278
+ style={[
279
+ props.style,
280
+ Platform.OS === 'web' && {
281
+ position: 'fixed',
282
+ top: 0,
283
+ left: 0,
284
+ right: 0,
285
+ bottom: 0,
286
+ } as any
287
+ ]}
278
288
  />
279
289
  ),
280
290
  []
@@ -426,6 +436,14 @@ const OxyBottomSheet: React.FC<OxyProviderProps> = ({
426
436
  enableHandlePanningGesture={true}
427
437
  overDragResistanceFactor={2.5}
428
438
  enableBlurKeyboardOnGesture={true}
439
+ // Web-specific styling to make the bottom sheet sticky
440
+ style={Platform.OS === 'web' ? {
441
+ position: 'fixed',
442
+ bottom: 0,
443
+ left: 0,
444
+ right: 0,
445
+ zIndex: 9999
446
+ } as any : undefined}
429
447
  // Log sheet animations for debugging
430
448
  onAnimate={(fromIndex: number, toIndex: number) => {
431
449
  console.log(`Animating from index ${fromIndex} to ${toIndex}`);
@@ -436,6 +454,11 @@ const OxyBottomSheet: React.FC<OxyProviderProps> = ({
436
454
  styles.contentContainer,
437
455
  // Override padding if provided in customStyles
438
456
  customStyles.contentPadding !== undefined && { padding: customStyles.contentPadding },
457
+ // Add web-specific styles to prevent scrolling issues
458
+ Platform.OS === 'web' && {
459
+ maxHeight: '85vh',
460
+ overscrollBehavior: 'contain'
461
+ } as any
439
462
  ]}
440
463
  onLayout={handleContentLayout}
441
464
  >
@@ -498,6 +521,7 @@ const styles = StyleSheet.create({
498
521
  }
499
522
  })
500
523
  },
524
+
501
525
  });
502
526
 
503
527
  export default OxyProvider;