@vue-skuilder/common-ui 0.1.14 → 0.1.15
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/components/CardBrowser.vue.d.ts +136 -0
- package/dist/components/CardBrowser.vue.d.ts.map +1 -0
- package/dist/components/CardHistoryViewer.vue.d.ts +57 -0
- package/dist/components/CardHistoryViewer.vue.d.ts.map +1 -0
- package/dist/components/CardSearch.vue.d.ts +11 -0
- package/dist/components/CardSearch.vue.d.ts.map +1 -0
- package/dist/components/CardSearchResults.vue.d.ts +54 -0
- package/dist/components/CardSearchResults.vue.d.ts.map +1 -0
- package/dist/components/CourseCardBrowser.vue.d.ts +320 -0
- package/dist/components/CourseCardBrowser.vue.d.ts.map +1 -0
- package/dist/components/CourseInformation.vue.d.ts +365 -0
- package/dist/components/CourseInformation.vue.d.ts.map +1 -0
- package/dist/components/HeatMap.vue.d.ts +112 -0
- package/dist/components/HeatMap.vue.d.ts.map +1 -0
- package/dist/components/PaginatingToolbar.vue.d.ts +51 -0
- package/dist/components/PaginatingToolbar.vue.d.ts.map +1 -0
- package/dist/components/SessionControllerDebug.vue.d.ts +40 -0
- package/dist/components/SessionControllerDebug.vue.d.ts.map +1 -0
- package/dist/components/SkMouseTrap.vue.d.ts +24 -0
- package/dist/components/SkMouseTrap.vue.d.ts.map +1 -0
- package/dist/components/SkMouseTrapToolTip.vue.d.ts +65 -0
- package/dist/components/SkMouseTrapToolTip.vue.d.ts.map +1 -0
- package/dist/components/SnackbarService.d.ts +1 -1
- package/dist/components/SnackbarService.vue.d.ts +17 -0
- package/dist/components/SnackbarService.vue.d.ts.map +1 -0
- package/dist/components/StudySession.vue.d.ts +378 -0
- package/dist/components/StudySession.vue.d.ts.map +1 -0
- package/dist/components/StudySessionTimer.vue.d.ts +45 -0
- package/dist/components/StudySessionTimer.vue.d.ts.map +1 -0
- package/dist/components/TagsInput.vue.d.ts +77 -0
- package/dist/components/TagsInput.vue.d.ts.map +1 -0
- package/dist/components/auth/RequestPasswordReset.vue.d.ts +15 -0
- package/dist/components/auth/RequestPasswordReset.vue.d.ts.map +1 -0
- package/dist/components/auth/ResetPassword.vue.d.ts +38 -0
- package/dist/components/auth/ResetPassword.vue.d.ts.map +1 -0
- package/dist/components/auth/UserChip.vue.d.ts +7 -0
- package/dist/components/auth/UserChip.vue.d.ts.map +1 -0
- package/dist/components/auth/UserLogin.vue.d.ts +31 -0
- package/dist/components/auth/UserLogin.vue.d.ts.map +1 -0
- package/dist/components/auth/UserLoginAndRegistrationContainer.vue.d.ts +19 -0
- package/dist/components/auth/UserLoginAndRegistrationContainer.vue.d.ts.map +1 -0
- package/dist/components/auth/UserRegistration.vue.d.ts +293 -0
- package/dist/components/auth/UserRegistration.vue.d.ts.map +1 -0
- package/dist/components/auth/VerifyEmail.vue.d.ts +32 -0
- package/dist/components/auth/VerifyEmail.vue.d.ts.map +1 -0
- package/dist/components/cardRendering/AudioAutoPlayer.vue.d.ts +6 -0
- package/dist/components/cardRendering/AudioAutoPlayer.vue.d.ts.map +1 -0
- package/dist/components/cardRendering/CardLoader.vue.d.ts +136 -0
- package/dist/components/cardRendering/CardLoader.vue.d.ts.map +1 -0
- package/dist/components/cardRendering/CardViewer.vue.d.ts +95 -0
- package/dist/components/cardRendering/CardViewer.vue.d.ts.map +1 -0
- package/dist/components/cardRendering/CodeBlockRenderer.vue.d.ts +23 -0
- package/dist/components/cardRendering/CodeBlockRenderer.vue.d.ts.map +1 -0
- package/dist/components/cardRendering/MarkdownRenderer.vue.d.ts +146 -0
- package/dist/components/cardRendering/MarkdownRenderer.vue.d.ts.map +1 -0
- package/dist/components/cardRendering/MdTokenRenderer.vue.d.ts +132 -0
- package/dist/components/cardRendering/MdTokenRenderer.vue.d.ts.map +1 -0
- package/dist/components/studentInputs/BaseUserInput.d.ts +4 -4
- package/dist/components/studentInputs/MultipleChoiceOption.vue.d.ts +201 -0
- package/dist/components/studentInputs/MultipleChoiceOption.vue.d.ts.map +1 -0
- package/dist/components/studentInputs/RadioMultipleChoice.types.d.ts +1 -1
- package/dist/components/studentInputs/RadioMultipleChoice.vue.d.ts +236 -0
- package/dist/components/studentInputs/RadioMultipleChoice.vue.d.ts.map +1 -0
- package/dist/components/studentInputs/TrueFalse.vue.d.ts +256 -0
- package/dist/components/studentInputs/TrueFalse.vue.d.ts.map +1 -0
- package/dist/components/studentInputs/UserInputNumber.vue.d.ts +25 -0
- package/dist/components/studentInputs/UserInputNumber.vue.d.ts.map +1 -0
- package/dist/components/studentInputs/UserInputString.vue.d.ts +27 -0
- package/dist/components/studentInputs/UserInputString.vue.d.ts.map +1 -0
- package/dist/components/studentInputs/fillInInput.vue.d.ts +43 -0
- package/dist/components/studentInputs/fillInInput.vue.d.ts.map +1 -0
- package/dist/composables/CompositionViewable.d.ts +3 -3
- package/dist/composables/Displayable.d.ts +2 -2
- package/dist/composables/useAuthUI.d.ts +4 -4
- package/dist/composables/useEntitlements.d.ts +6 -6
- package/dist/stores/useAuthStore.d.ts +66 -66
- package/dist/stores/useCardPreviewModeStore.d.ts +1 -1
- package/dist/stores/useConfigStore.d.ts +2 -2
- package/dist/utils/SkldrMouseTrap.d.ts +0 -1
- package/package.json +7 -7
- package/dist/composables/__tests__/useAuthUI.test.d.ts +0 -2
- package/dist/composables/__tests__/useAuthUI.test.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UserEntitlements } from '../services/authAPI';
|
|
2
2
|
export interface TrialStatus {
|
|
3
3
|
isActive: boolean;
|
|
4
4
|
isPaid: boolean;
|
|
@@ -22,11 +22,11 @@ export interface TrialStatus {
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
export declare function useEntitlements(courseId: string): {
|
|
25
|
-
entitlements: import(
|
|
26
|
-
trialStatus: import(
|
|
27
|
-
hasPremiumAccess: import(
|
|
28
|
-
loading: import(
|
|
29
|
-
error: import(
|
|
25
|
+
entitlements: import('vue').Ref<UserEntitlements, UserEntitlements>;
|
|
26
|
+
trialStatus: import('vue').ComputedRef<TrialStatus>;
|
|
27
|
+
hasPremiumAccess: import('vue').ComputedRef<boolean>;
|
|
28
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
29
|
+
error: import('vue').Ref<string | null, string | null>;
|
|
30
30
|
fetchEntitlements: () => Promise<void>;
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=useEntitlements.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserDBInterface } from '
|
|
1
|
+
import { UserDBInterface } from '../../../db/dist/index.mjs';
|
|
2
2
|
export interface AuthState {
|
|
3
3
|
_user: UserDBInterface | undefined;
|
|
4
4
|
loginAndRegistration: {
|
|
@@ -10,47 +10,47 @@ export interface AuthState {
|
|
|
10
10
|
onLoadComplete: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare function getCurrentUser(): Promise<UserDBInterface | undefined>;
|
|
13
|
-
export declare const useAuthStore: () => import(
|
|
13
|
+
export declare const useAuthStore: () => import('pinia').Store<"auth", AuthState, {
|
|
14
14
|
currentUser: () => Promise<UserDBInterface | undefined>;
|
|
15
15
|
isLoggedIn: (state: {
|
|
16
16
|
_user: {
|
|
17
17
|
get: <T>(id: string) => Promise<T & PouchDB.Core.RevisionIdMeta>;
|
|
18
18
|
getUsername: () => string;
|
|
19
19
|
isLoggedIn: () => boolean;
|
|
20
|
-
getConfig: () => Promise<import(
|
|
20
|
+
getConfig: () => Promise<import('../../../db/dist/index.mjs').UserConfig>;
|
|
21
21
|
getSeenCards: (courseId?: string) => Promise<string[]>;
|
|
22
|
-
getActiveCards: () => Promise<import(
|
|
23
|
-
getCourseRegistrationsDoc: () => Promise<import(
|
|
24
|
-
getCourseRegDoc: (courseId: string) => Promise<import(
|
|
25
|
-
getActiveCourses: () => Promise<import(
|
|
26
|
-
getPendingReviews: (courseId?: string) => Promise<import(
|
|
27
|
-
getActivityRecords: () => Promise<import(
|
|
28
|
-
getUserClassrooms: () => Promise<import(
|
|
22
|
+
getActiveCards: () => Promise<import('../../../db/dist/index.mjs').QualifiedCardID[]>;
|
|
23
|
+
getCourseRegistrationsDoc: () => Promise<import('../../../db/dist/index.mjs').CourseRegistrationDoc>;
|
|
24
|
+
getCourseRegDoc: (courseId: string) => Promise<import('../../../db/dist/index.mjs').CourseRegistration>;
|
|
25
|
+
getActiveCourses: () => Promise<import('../../../db/dist/index.mjs').CourseRegistration[]>;
|
|
26
|
+
getPendingReviews: (courseId?: string) => Promise<import('../../../db/dist/index.mjs').ScheduledCard[]>;
|
|
27
|
+
getActivityRecords: () => Promise<import('../../../db/dist/index.mjs').ActivityRecord[]>;
|
|
28
|
+
getUserClassrooms: () => Promise<import('../../../db/dist/index.mjs').ClassroomRegistrationDoc>;
|
|
29
29
|
getActiveClasses: () => Promise<string[]>;
|
|
30
|
-
getCourseInterface: (courseId: string) => Promise<import(
|
|
31
|
-
setConfig: (config: Partial<import(
|
|
32
|
-
putCardRecord: <T extends import(
|
|
30
|
+
getCourseInterface: (courseId: string) => Promise<import('../../../db/dist/index.mjs').UsrCrsDataInterface>;
|
|
31
|
+
setConfig: (config: Partial<import('../../../db/dist/index.mjs').UserConfig>) => Promise<void>;
|
|
32
|
+
putCardRecord: <T extends import('../../../db/dist/index.mjs').CardRecord>(record: T) => Promise<import('../../../db/dist/index.mjs').CardHistory<import('../../../db/dist/index.mjs').CardRecord>>;
|
|
33
33
|
registerForCourse: (courseId: string, previewMode?: boolean) => Promise<PouchDB.Core.Response>;
|
|
34
34
|
dropCourse: (courseId: string, dropStatus?: string) => Promise<PouchDB.Core.Response>;
|
|
35
35
|
scheduleCardReview: (review: {
|
|
36
36
|
user: string;
|
|
37
37
|
course_id: string;
|
|
38
38
|
card_id: string;
|
|
39
|
-
time: import(
|
|
39
|
+
time: import('moment').Moment;
|
|
40
40
|
scheduledFor: "course" | "classroom";
|
|
41
41
|
schedulingAgentId: string;
|
|
42
42
|
}) => Promise<void>;
|
|
43
43
|
removeScheduledCardReview: (reviewId: string) => Promise<void>;
|
|
44
44
|
registerForClassroom: (classId: string, registerAs: "student" | "teacher" | "aide" | "admin") => Promise<PouchDB.Core.Response>;
|
|
45
45
|
dropFromClassroom: (classId: string) => Promise<PouchDB.Core.Response>;
|
|
46
|
-
updateUserElo: (courseId: string, elo: import(
|
|
46
|
+
updateUserElo: (courseId: string, elo: import('../../../common/dist/index.mjs').CourseElo) => Promise<PouchDB.Core.Response>;
|
|
47
47
|
resetUserData: () => Promise<{
|
|
48
|
-
status: import(
|
|
48
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
49
49
|
error?: string;
|
|
50
50
|
}>;
|
|
51
51
|
update: <T extends PouchDB.Core.Document<object>>(id: string, update: Partial<T> | ((x: T) => T)) => Promise<T>;
|
|
52
52
|
createAccount: (username: string, password: string) => Promise<{
|
|
53
|
-
status: import(
|
|
53
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
54
54
|
error: string;
|
|
55
55
|
}>;
|
|
56
56
|
login: (username: string, password: string) => Promise<{
|
|
@@ -69,46 +69,46 @@ export declare const useAuthStore: () => import("pinia").Store<"auth", AuthState
|
|
|
69
69
|
loginDialogOpen: boolean;
|
|
70
70
|
};
|
|
71
71
|
onLoadComplete: boolean;
|
|
72
|
-
} & import(
|
|
72
|
+
} & import('pinia').PiniaCustomStateProperties<AuthState>) => boolean;
|
|
73
73
|
isInitialized: (state: {
|
|
74
74
|
_user: {
|
|
75
75
|
get: <T>(id: string) => Promise<T & PouchDB.Core.RevisionIdMeta>;
|
|
76
76
|
getUsername: () => string;
|
|
77
77
|
isLoggedIn: () => boolean;
|
|
78
|
-
getConfig: () => Promise<import(
|
|
78
|
+
getConfig: () => Promise<import('../../../db/dist/index.mjs').UserConfig>;
|
|
79
79
|
getSeenCards: (courseId?: string) => Promise<string[]>;
|
|
80
|
-
getActiveCards: () => Promise<import(
|
|
81
|
-
getCourseRegistrationsDoc: () => Promise<import(
|
|
82
|
-
getCourseRegDoc: (courseId: string) => Promise<import(
|
|
83
|
-
getActiveCourses: () => Promise<import(
|
|
84
|
-
getPendingReviews: (courseId?: string) => Promise<import(
|
|
85
|
-
getActivityRecords: () => Promise<import(
|
|
86
|
-
getUserClassrooms: () => Promise<import(
|
|
80
|
+
getActiveCards: () => Promise<import('../../../db/dist/index.mjs').QualifiedCardID[]>;
|
|
81
|
+
getCourseRegistrationsDoc: () => Promise<import('../../../db/dist/index.mjs').CourseRegistrationDoc>;
|
|
82
|
+
getCourseRegDoc: (courseId: string) => Promise<import('../../../db/dist/index.mjs').CourseRegistration>;
|
|
83
|
+
getActiveCourses: () => Promise<import('../../../db/dist/index.mjs').CourseRegistration[]>;
|
|
84
|
+
getPendingReviews: (courseId?: string) => Promise<import('../../../db/dist/index.mjs').ScheduledCard[]>;
|
|
85
|
+
getActivityRecords: () => Promise<import('../../../db/dist/index.mjs').ActivityRecord[]>;
|
|
86
|
+
getUserClassrooms: () => Promise<import('../../../db/dist/index.mjs').ClassroomRegistrationDoc>;
|
|
87
87
|
getActiveClasses: () => Promise<string[]>;
|
|
88
|
-
getCourseInterface: (courseId: string) => Promise<import(
|
|
89
|
-
setConfig: (config: Partial<import(
|
|
90
|
-
putCardRecord: <T extends import(
|
|
88
|
+
getCourseInterface: (courseId: string) => Promise<import('../../../db/dist/index.mjs').UsrCrsDataInterface>;
|
|
89
|
+
setConfig: (config: Partial<import('../../../db/dist/index.mjs').UserConfig>) => Promise<void>;
|
|
90
|
+
putCardRecord: <T extends import('../../../db/dist/index.mjs').CardRecord>(record: T) => Promise<import('../../../db/dist/index.mjs').CardHistory<import('../../../db/dist/index.mjs').CardRecord>>;
|
|
91
91
|
registerForCourse: (courseId: string, previewMode?: boolean) => Promise<PouchDB.Core.Response>;
|
|
92
92
|
dropCourse: (courseId: string, dropStatus?: string) => Promise<PouchDB.Core.Response>;
|
|
93
93
|
scheduleCardReview: (review: {
|
|
94
94
|
user: string;
|
|
95
95
|
course_id: string;
|
|
96
96
|
card_id: string;
|
|
97
|
-
time: import(
|
|
97
|
+
time: import('moment').Moment;
|
|
98
98
|
scheduledFor: "course" | "classroom";
|
|
99
99
|
schedulingAgentId: string;
|
|
100
100
|
}) => Promise<void>;
|
|
101
101
|
removeScheduledCardReview: (reviewId: string) => Promise<void>;
|
|
102
102
|
registerForClassroom: (classId: string, registerAs: "student" | "teacher" | "aide" | "admin") => Promise<PouchDB.Core.Response>;
|
|
103
103
|
dropFromClassroom: (classId: string) => Promise<PouchDB.Core.Response>;
|
|
104
|
-
updateUserElo: (courseId: string, elo: import(
|
|
104
|
+
updateUserElo: (courseId: string, elo: import('../../../common/dist/index.mjs').CourseElo) => Promise<PouchDB.Core.Response>;
|
|
105
105
|
resetUserData: () => Promise<{
|
|
106
|
-
status: import(
|
|
106
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
107
107
|
error?: string;
|
|
108
108
|
}>;
|
|
109
109
|
update: <T extends PouchDB.Core.Document<object>>(id: string, update: Partial<T> | ((x: T) => T)) => Promise<T>;
|
|
110
110
|
createAccount: (username: string, password: string) => Promise<{
|
|
111
|
-
status: import(
|
|
111
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
112
112
|
error: string;
|
|
113
113
|
}>;
|
|
114
114
|
login: (username: string, password: string) => Promise<{
|
|
@@ -127,46 +127,46 @@ export declare const useAuthStore: () => import("pinia").Store<"auth", AuthState
|
|
|
127
127
|
loginDialogOpen: boolean;
|
|
128
128
|
};
|
|
129
129
|
onLoadComplete: boolean;
|
|
130
|
-
} & import(
|
|
130
|
+
} & import('pinia').PiniaCustomStateProperties<AuthState>) => boolean;
|
|
131
131
|
status: (state: {
|
|
132
132
|
_user: {
|
|
133
133
|
get: <T>(id: string) => Promise<T & PouchDB.Core.RevisionIdMeta>;
|
|
134
134
|
getUsername: () => string;
|
|
135
135
|
isLoggedIn: () => boolean;
|
|
136
|
-
getConfig: () => Promise<import(
|
|
136
|
+
getConfig: () => Promise<import('../../../db/dist/index.mjs').UserConfig>;
|
|
137
137
|
getSeenCards: (courseId?: string) => Promise<string[]>;
|
|
138
|
-
getActiveCards: () => Promise<import(
|
|
139
|
-
getCourseRegistrationsDoc: () => Promise<import(
|
|
140
|
-
getCourseRegDoc: (courseId: string) => Promise<import(
|
|
141
|
-
getActiveCourses: () => Promise<import(
|
|
142
|
-
getPendingReviews: (courseId?: string) => Promise<import(
|
|
143
|
-
getActivityRecords: () => Promise<import(
|
|
144
|
-
getUserClassrooms: () => Promise<import(
|
|
138
|
+
getActiveCards: () => Promise<import('../../../db/dist/index.mjs').QualifiedCardID[]>;
|
|
139
|
+
getCourseRegistrationsDoc: () => Promise<import('../../../db/dist/index.mjs').CourseRegistrationDoc>;
|
|
140
|
+
getCourseRegDoc: (courseId: string) => Promise<import('../../../db/dist/index.mjs').CourseRegistration>;
|
|
141
|
+
getActiveCourses: () => Promise<import('../../../db/dist/index.mjs').CourseRegistration[]>;
|
|
142
|
+
getPendingReviews: (courseId?: string) => Promise<import('../../../db/dist/index.mjs').ScheduledCard[]>;
|
|
143
|
+
getActivityRecords: () => Promise<import('../../../db/dist/index.mjs').ActivityRecord[]>;
|
|
144
|
+
getUserClassrooms: () => Promise<import('../../../db/dist/index.mjs').ClassroomRegistrationDoc>;
|
|
145
145
|
getActiveClasses: () => Promise<string[]>;
|
|
146
|
-
getCourseInterface: (courseId: string) => Promise<import(
|
|
147
|
-
setConfig: (config: Partial<import(
|
|
148
|
-
putCardRecord: <T extends import(
|
|
146
|
+
getCourseInterface: (courseId: string) => Promise<import('../../../db/dist/index.mjs').UsrCrsDataInterface>;
|
|
147
|
+
setConfig: (config: Partial<import('../../../db/dist/index.mjs').UserConfig>) => Promise<void>;
|
|
148
|
+
putCardRecord: <T extends import('../../../db/dist/index.mjs').CardRecord>(record: T) => Promise<import('../../../db/dist/index.mjs').CardHistory<import('../../../db/dist/index.mjs').CardRecord>>;
|
|
149
149
|
registerForCourse: (courseId: string, previewMode?: boolean) => Promise<PouchDB.Core.Response>;
|
|
150
150
|
dropCourse: (courseId: string, dropStatus?: string) => Promise<PouchDB.Core.Response>;
|
|
151
151
|
scheduleCardReview: (review: {
|
|
152
152
|
user: string;
|
|
153
153
|
course_id: string;
|
|
154
154
|
card_id: string;
|
|
155
|
-
time: import(
|
|
155
|
+
time: import('moment').Moment;
|
|
156
156
|
scheduledFor: "course" | "classroom";
|
|
157
157
|
schedulingAgentId: string;
|
|
158
158
|
}) => Promise<void>;
|
|
159
159
|
removeScheduledCardReview: (reviewId: string) => Promise<void>;
|
|
160
160
|
registerForClassroom: (classId: string, registerAs: "student" | "teacher" | "aide" | "admin") => Promise<PouchDB.Core.Response>;
|
|
161
161
|
dropFromClassroom: (classId: string) => Promise<PouchDB.Core.Response>;
|
|
162
|
-
updateUserElo: (courseId: string, elo: import(
|
|
162
|
+
updateUserElo: (courseId: string, elo: import('../../../common/dist/index.mjs').CourseElo) => Promise<PouchDB.Core.Response>;
|
|
163
163
|
resetUserData: () => Promise<{
|
|
164
|
-
status: import(
|
|
164
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
165
165
|
error?: string;
|
|
166
166
|
}>;
|
|
167
167
|
update: <T extends PouchDB.Core.Document<object>>(id: string, update: Partial<T> | ((x: T) => T)) => Promise<T>;
|
|
168
168
|
createAccount: (username: string, password: string) => Promise<{
|
|
169
|
-
status: import(
|
|
169
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
170
170
|
error: string;
|
|
171
171
|
}>;
|
|
172
172
|
login: (username: string, password: string) => Promise<{
|
|
@@ -185,47 +185,47 @@ export declare const useAuthStore: () => import("pinia").Store<"auth", AuthState
|
|
|
185
185
|
loginDialogOpen: boolean;
|
|
186
186
|
};
|
|
187
187
|
onLoadComplete: boolean;
|
|
188
|
-
} & import(
|
|
188
|
+
} & import('pinia').PiniaCustomStateProperties<AuthState>) => {
|
|
189
189
|
loggedIn: boolean;
|
|
190
190
|
init: boolean;
|
|
191
191
|
user: {
|
|
192
192
|
get: <T>(id: string) => Promise<T & PouchDB.Core.RevisionIdMeta>;
|
|
193
193
|
getUsername: () => string;
|
|
194
194
|
isLoggedIn: () => boolean;
|
|
195
|
-
getConfig: () => Promise<import(
|
|
195
|
+
getConfig: () => Promise<import('../../../db/dist/index.mjs').UserConfig>;
|
|
196
196
|
getSeenCards: (courseId?: string) => Promise<string[]>;
|
|
197
|
-
getActiveCards: () => Promise<import(
|
|
198
|
-
getCourseRegistrationsDoc: () => Promise<import(
|
|
199
|
-
getCourseRegDoc: (courseId: string) => Promise<import(
|
|
200
|
-
getActiveCourses: () => Promise<import(
|
|
201
|
-
getPendingReviews: (courseId?: string) => Promise<import(
|
|
202
|
-
getActivityRecords: () => Promise<import(
|
|
203
|
-
getUserClassrooms: () => Promise<import(
|
|
197
|
+
getActiveCards: () => Promise<import('../../../db/dist/index.mjs').QualifiedCardID[]>;
|
|
198
|
+
getCourseRegistrationsDoc: () => Promise<import('../../../db/dist/index.mjs').CourseRegistrationDoc>;
|
|
199
|
+
getCourseRegDoc: (courseId: string) => Promise<import('../../../db/dist/index.mjs').CourseRegistration>;
|
|
200
|
+
getActiveCourses: () => Promise<import('../../../db/dist/index.mjs').CourseRegistration[]>;
|
|
201
|
+
getPendingReviews: (courseId?: string) => Promise<import('../../../db/dist/index.mjs').ScheduledCard[]>;
|
|
202
|
+
getActivityRecords: () => Promise<import('../../../db/dist/index.mjs').ActivityRecord[]>;
|
|
203
|
+
getUserClassrooms: () => Promise<import('../../../db/dist/index.mjs').ClassroomRegistrationDoc>;
|
|
204
204
|
getActiveClasses: () => Promise<string[]>;
|
|
205
|
-
getCourseInterface: (courseId: string) => Promise<import(
|
|
206
|
-
setConfig: (config: Partial<import(
|
|
207
|
-
putCardRecord: <T extends import(
|
|
205
|
+
getCourseInterface: (courseId: string) => Promise<import('../../../db/dist/index.mjs').UsrCrsDataInterface>;
|
|
206
|
+
setConfig: (config: Partial<import('../../../db/dist/index.mjs').UserConfig>) => Promise<void>;
|
|
207
|
+
putCardRecord: <T extends import('../../../db/dist/index.mjs').CardRecord>(record: T) => Promise<import('../../../db/dist/index.mjs').CardHistory<import('../../../db/dist/index.mjs').CardRecord>>;
|
|
208
208
|
registerForCourse: (courseId: string, previewMode?: boolean) => Promise<PouchDB.Core.Response>;
|
|
209
209
|
dropCourse: (courseId: string, dropStatus?: string) => Promise<PouchDB.Core.Response>;
|
|
210
210
|
scheduleCardReview: (review: {
|
|
211
211
|
user: string;
|
|
212
212
|
course_id: string;
|
|
213
213
|
card_id: string;
|
|
214
|
-
time: import(
|
|
214
|
+
time: import('moment').Moment;
|
|
215
215
|
scheduledFor: "course" | "classroom";
|
|
216
216
|
schedulingAgentId: string;
|
|
217
217
|
}) => Promise<void>;
|
|
218
218
|
removeScheduledCardReview: (reviewId: string) => Promise<void>;
|
|
219
219
|
registerForClassroom: (classId: string, registerAs: "student" | "teacher" | "aide" | "admin") => Promise<PouchDB.Core.Response>;
|
|
220
220
|
dropFromClassroom: (classId: string) => Promise<PouchDB.Core.Response>;
|
|
221
|
-
updateUserElo: (courseId: string, elo: import(
|
|
221
|
+
updateUserElo: (courseId: string, elo: import('../../../common/dist/index.mjs').CourseElo) => Promise<PouchDB.Core.Response>;
|
|
222
222
|
resetUserData: () => Promise<{
|
|
223
|
-
status: import(
|
|
223
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
224
224
|
error?: string;
|
|
225
225
|
}>;
|
|
226
226
|
update: <T extends PouchDB.Core.Document<object>>(id: string, update: Partial<T> | ((x: T) => T)) => Promise<T>;
|
|
227
227
|
createAccount: (username: string, password: string) => Promise<{
|
|
228
|
-
status: import(
|
|
228
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
229
229
|
error: string;
|
|
230
230
|
}>;
|
|
231
231
|
login: (username: string, password: string) => Promise<{
|
|
@@ -243,7 +243,7 @@ export declare const useAuthStore: () => import("pinia").Store<"auth", AuthState
|
|
|
243
243
|
setLoginDialog(open: boolean): void;
|
|
244
244
|
setRegDialog(open: boolean): void;
|
|
245
245
|
resetUserData(): Promise<{
|
|
246
|
-
status: import(
|
|
246
|
+
status: import('../../../common/dist/index.mjs').Status;
|
|
247
247
|
error?: string;
|
|
248
248
|
}>;
|
|
249
249
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface PreviewModeState {
|
|
2
2
|
previewMode: boolean;
|
|
3
3
|
}
|
|
4
|
-
export declare const useCardPreviewModeStore: () => import(
|
|
4
|
+
export declare const useCardPreviewModeStore: () => import('pinia').Store<"previewMode", PreviewModeState, {
|
|
5
5
|
isPreviewMode(): boolean;
|
|
6
6
|
}, {
|
|
7
7
|
setPreviewMode(mode: boolean): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserConfig } from '
|
|
2
|
-
export declare const useConfigStore: () => import(
|
|
1
|
+
import { UserConfig } from '../../../db/dist/index.mjs';
|
|
2
|
+
export declare const useConfigStore: () => import('pinia').Store<"config", {
|
|
3
3
|
config: UserConfig;
|
|
4
4
|
}, {}, {
|
|
5
5
|
updateConfig(newConfig: UserConfig): void;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.15",
|
|
7
7
|
"main": "./dist/common-ui.umd.js",
|
|
8
8
|
"module": "./dist/common-ui.es.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "vite build --watch",
|
|
25
|
-
"build": "vite build
|
|
26
|
-
"build-types": "tsc --project tsconfig.types.json",
|
|
25
|
+
"build": "vite build",
|
|
27
26
|
"lint": "eslint . --fix",
|
|
28
27
|
"lint:check": "eslint .",
|
|
29
28
|
"test:unit": "vitest run",
|
|
@@ -34,8 +33,8 @@
|
|
|
34
33
|
"@highlightjs/vue-plugin": "^2.1.2",
|
|
35
34
|
"@mdi/font": "^7.3.67",
|
|
36
35
|
"@vojtechlanka/vue-tags-input": "^3",
|
|
37
|
-
"@vue-skuilder/common": "0.1.
|
|
38
|
-
"@vue-skuilder/db": "0.1.
|
|
36
|
+
"@vue-skuilder/common": "0.1.15",
|
|
37
|
+
"@vue-skuilder/db": "0.1.15",
|
|
39
38
|
"highlight.js": "^11.0.1",
|
|
40
39
|
"marked": "^15.0.6",
|
|
41
40
|
"moment": "^2.29.4",
|
|
@@ -59,7 +58,7 @@
|
|
|
59
58
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
60
59
|
"@vue/eslint-config-typescript": "^14.4.0",
|
|
61
60
|
"@vue/test-utils": "^2.4.6",
|
|
62
|
-
"cypress": "^
|
|
61
|
+
"cypress": "^15.6.0",
|
|
63
62
|
"cypress-vite": "^1.6.0",
|
|
64
63
|
"eslint": "^9.21.0",
|
|
65
64
|
"eslint-config-prettier": "^10.0.2",
|
|
@@ -68,7 +67,8 @@
|
|
|
68
67
|
"sass": "^1.83.0",
|
|
69
68
|
"typescript": "~5.7.2",
|
|
70
69
|
"vite": "^6.0.9",
|
|
70
|
+
"vite-plugin-dts": "^4.5.3",
|
|
71
71
|
"vitest": "^3.0.5"
|
|
72
72
|
},
|
|
73
|
-
"stableVersion": "0.1.
|
|
73
|
+
"stableVersion": "0.1.15"
|
|
74
74
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAuthUI.test.d.ts","sourceRoot":"","sources":["../../../src/composables/__tests__/useAuthUI.test.ts"],"names":[],"mappings":""}
|