@speakableio/core 0.1.28 → 0.1.30
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.native.d.mts
CHANGED
|
@@ -749,6 +749,7 @@ declare const useCreateNotification: () => {
|
|
|
749
749
|
};
|
|
750
750
|
|
|
751
751
|
type FsClient = ReturnType<typeof createFsClientBase>;
|
|
752
|
+
type FsClientParams = Omit<Parameters<typeof createFsClientBase>[0], 'helpers'>;
|
|
752
753
|
declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
753
754
|
db: FirebaseInstance;
|
|
754
755
|
helpers: FirestoreHelpers;
|
|
@@ -1129,7 +1130,7 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
|
|
|
1129
1130
|
};
|
|
1130
1131
|
};
|
|
1131
1132
|
|
|
1132
|
-
declare const createFsClientNative: ({ db, httpsCallable, logEvent
|
|
1133
|
+
declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientParams) => {
|
|
1133
1134
|
assignmentRepo: {
|
|
1134
1135
|
getAssignment: (params: {
|
|
1135
1136
|
assignmentId: string;
|
package/dist/index.native.mjs
CHANGED
|
@@ -1907,7 +1907,7 @@ function useActivityTracker({ userId }) {
|
|
|
1907
1907
|
}) => {
|
|
1908
1908
|
if (userId) {
|
|
1909
1909
|
const { doc: doc2, serverTimestamp: serverTimestamp2, setDoc: setDoc2 } = api.accessHelpers();
|
|
1910
|
-
const activityRef = doc2(`users/${userId}/activity
|
|
1910
|
+
const activityRef = doc2(`users/${userId}/activity/${id}`);
|
|
1911
1911
|
const timestamp = serverTimestamp2();
|
|
1912
1912
|
await setDoc2(activityRef, {
|
|
1913
1913
|
name: activityName,
|
|
@@ -2225,11 +2225,7 @@ function createFsClientBase({
|
|
|
2225
2225
|
}
|
|
2226
2226
|
|
|
2227
2227
|
// src/lib/create-firebase-client-native.ts
|
|
2228
|
-
var createFsClientNative = ({
|
|
2229
|
-
db,
|
|
2230
|
-
httpsCallable,
|
|
2231
|
-
logEvent
|
|
2232
|
-
}) => {
|
|
2228
|
+
var createFsClientNative = ({ db, httpsCallable, logEvent }) => {
|
|
2233
2229
|
return createFsClientBase({
|
|
2234
2230
|
db,
|
|
2235
2231
|
httpsCallable,
|