@sirendesign/markup 1.0.12 → 1.0.13
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.esm.js +5612 -3139
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5612 -3139
- package/dist/index.js.map +1 -1
- package/dist/services/firebase.d.ts +6 -0
- package/dist/services/storage.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FirebaseApp } from "firebase/app";
|
|
2
2
|
import { Auth } from "firebase/auth";
|
|
3
3
|
import { Firestore } from "firebase/firestore";
|
|
4
|
+
import { FirebaseStorage } from "firebase/storage";
|
|
4
5
|
export interface FirebaseConfig {
|
|
5
6
|
apiKey: string;
|
|
6
7
|
authDomain: string;
|
|
@@ -20,6 +21,7 @@ export declare const initializeFirebase: (config: FirebaseConfig) => {
|
|
|
20
21
|
app: FirebaseApp;
|
|
21
22
|
auth: Auth;
|
|
22
23
|
db: Firestore;
|
|
24
|
+
storage: FirebaseStorage;
|
|
23
25
|
};
|
|
24
26
|
/**
|
|
25
27
|
* Get Firebase Auth instance. Throws if Firebase not initialized.
|
|
@@ -29,3 +31,7 @@ export declare const getFirebaseAuth: () => Auth;
|
|
|
29
31
|
* Get Firestore Database instance. Throws if Firebase not initialized.
|
|
30
32
|
*/
|
|
31
33
|
export declare const getFirebaseDb: () => Firestore;
|
|
34
|
+
/**
|
|
35
|
+
* Get Firebase Storage instance. Throws if Firebase not initialized.
|
|
36
|
+
*/
|
|
37
|
+
export declare const getFirebaseStorage: () => FirebaseStorage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Upload a video blob to Firebase Storage
|
|
3
|
+
* @param blob - Video blob to upload
|
|
4
|
+
* @param feedbackId - Feedback ID for organizing files
|
|
5
|
+
* @returns Download URL for the uploaded video
|
|
6
|
+
*/
|
|
7
|
+
export declare const uploadScreenRecording: (blob: Blob, feedbackId: string) => Promise<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Delete a screen recording from Firebase Storage
|
|
10
|
+
* @param downloadURL - The download URL of the file to delete
|
|
11
|
+
*/
|
|
12
|
+
export declare const deleteScreenRecording: (downloadURL: string) => Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Upload a design mockup image to Firebase Storage
|
|
15
|
+
* @param blob - Image blob to upload
|
|
16
|
+
* @param feedbackId - Feedback ID for organizing files
|
|
17
|
+
* @returns Download URL for the uploaded image
|
|
18
|
+
*/
|
|
19
|
+
export declare const uploadDesignMockup: (blob: Blob, feedbackId: string) => Promise<string>;
|
package/package.json
CHANGED