@vue-skuilder/db 0.1.29 → 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/{contentSource-DfBbaLA-.d.cts → contentSource-B7nXusjk.d.cts} +19 -4
- package/dist/{contentSource-BmnmvH8C.d.ts → contentSource-ygoFw9oV.d.ts} +19 -4
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +14 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +13 -6
- package/dist/core/index.mjs.map +1 -1
- package/dist/{dataLayerProvider-BeRXVMs5.d.cts → dataLayerProvider-BW7HvkMt.d.cts} +1 -1
- package/dist/{dataLayerProvider-CG9GfaAY.d.ts → dataLayerProvider-BfXUVDuG.d.ts} +1 -1
- package/dist/impl/couch/index.d.cts +2 -2
- package/dist/impl/couch/index.d.ts +2 -2
- package/dist/impl/couch/index.js +12 -6
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +12 -6
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.d.cts +2 -2
- package/dist/impl/static/index.d.ts +2 -2
- package/dist/impl/static/index.js +12 -6
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +12 -6
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -6
- package/dist/index.mjs.map +1 -1
- package/docs/navigators-architecture.md +64 -5
- package/package.json +3 -3
- package/src/core/navigators/index.ts +43 -10
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { U as UserDBInterface, s as CourseRegistrationDoc, S as StudySessionItem, W as WeightedCard, h as StudyContentSource, C as CourseDBInterface } from './contentSource-
|
|
2
|
-
export { J as ActivityRecord, A as AdminDBInterface, v as AssignedCard, g as AssignedContent, u as AssignedCourse, t as AssignedTag, c as ClassroomDBInterface, F as ClassroomRegistration, E as ClassroomRegistrationDesignation, G as ClassroomRegistrationDoc, e as ContentNavigationStrategyData, f as ContentNavigator, q as ContentSourceID, d as CourseInfo, K as CourseRegistration, b as CoursesDBInterface,
|
|
3
|
-
import { D as DataLayerProvider } from './dataLayerProvider-
|
|
1
|
+
import { U as UserDBInterface, s as CourseRegistrationDoc, S as StudySessionItem, W as WeightedCard, h as StudyContentSource, C as CourseDBInterface } from './contentSource-B7nXusjk.cjs';
|
|
2
|
+
export { J as ActivityRecord, A as AdminDBInterface, v as AssignedCard, g as AssignedContent, u as AssignedCourse, t as AssignedTag, c as ClassroomDBInterface, F as ClassroomRegistration, E as ClassroomRegistrationDesignation, G as ClassroomRegistrationDoc, e as ContentNavigationStrategyData, f as ContentNavigator, q as ContentSourceID, d as CourseInfo, K as CourseRegistration, b as CoursesDBInterface, a8 as DocumentUpdater, a2 as LearnableWeight, N as NavigatorConstructor, _ as NavigatorRole, $ as NavigatorRoles, Z as Navigators, a3 as OrchestrationContext, j as ScheduledCard, H as SessionTrackingData, X as StrategyContribution, i as StudentClassroomDBInterface, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, n as StudySessionNewItem, o as StudySessionReviewItem, T as TeacherClassroomDBInterface, I as UserConfig, z as UserCourseSetting, y as UserCourseSettings, x as UserDBAuthenticator, a as UserDBReader, w as UserDBWriter, L as UserOutcomeRecord, B as UsrCrsDataInterface, a4 as computeDeviation, a6 as computeEffectiveWeight, a5 as computeSpread, a7 as createOrchestrationContext, Y as getCardOrigin, O as getRegisteredNavigator, R as getRegisteredNavigatorNames, Q as getRegisteredNavigatorRole, r as getStudySource, P as hasRegisteredNavigator, V as initializeNavigatorRegistry, a1 as isFilter, a0 as isGenerator, p as isReview, a9 as newInterval, M as registerNavigator } from './contentSource-B7nXusjk.cjs';
|
|
3
|
+
import { D as DataLayerProvider } from './dataLayerProvider-BW7HvkMt.cjs';
|
|
4
4
|
import { C as CardHistory, c as CardRecord } from './types-legacy-JXDxinpU.cjs';
|
|
5
5
|
export { d as CardData, e as CourseListData, g as DataShapeData, f as DisplayableData, D as DocType, b as DocTypePrefixes, F as Field, G as GuestUsername, Q as QualifiedCardID, h as QuestionData, i as QuestionRecord, S as SkuilderCourseData, a as Tag, T as TagStub, l as log } from './types-legacy-JXDxinpU.cjs';
|
|
6
6
|
import { Loggable } from './core/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { U as UserDBInterface, s as CourseRegistrationDoc, S as StudySessionItem, W as WeightedCard, h as StudyContentSource, C as CourseDBInterface } from './contentSource-
|
|
2
|
-
export { J as ActivityRecord, A as AdminDBInterface, v as AssignedCard, g as AssignedContent, u as AssignedCourse, t as AssignedTag, c as ClassroomDBInterface, F as ClassroomRegistration, E as ClassroomRegistrationDesignation, G as ClassroomRegistrationDoc, e as ContentNavigationStrategyData, f as ContentNavigator, q as ContentSourceID, d as CourseInfo, K as CourseRegistration, b as CoursesDBInterface,
|
|
3
|
-
import { D as DataLayerProvider } from './dataLayerProvider-
|
|
1
|
+
import { U as UserDBInterface, s as CourseRegistrationDoc, S as StudySessionItem, W as WeightedCard, h as StudyContentSource, C as CourseDBInterface } from './contentSource-ygoFw9oV.js';
|
|
2
|
+
export { J as ActivityRecord, A as AdminDBInterface, v as AssignedCard, g as AssignedContent, u as AssignedCourse, t as AssignedTag, c as ClassroomDBInterface, F as ClassroomRegistration, E as ClassroomRegistrationDesignation, G as ClassroomRegistrationDoc, e as ContentNavigationStrategyData, f as ContentNavigator, q as ContentSourceID, d as CourseInfo, K as CourseRegistration, b as CoursesDBInterface, a8 as DocumentUpdater, a2 as LearnableWeight, N as NavigatorConstructor, _ as NavigatorRole, $ as NavigatorRoles, Z as Navigators, a3 as OrchestrationContext, j as ScheduledCard, H as SessionTrackingData, X as StrategyContribution, i as StudentClassroomDBInterface, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, n as StudySessionNewItem, o as StudySessionReviewItem, T as TeacherClassroomDBInterface, I as UserConfig, z as UserCourseSetting, y as UserCourseSettings, x as UserDBAuthenticator, a as UserDBReader, w as UserDBWriter, L as UserOutcomeRecord, B as UsrCrsDataInterface, a4 as computeDeviation, a6 as computeEffectiveWeight, a5 as computeSpread, a7 as createOrchestrationContext, Y as getCardOrigin, O as getRegisteredNavigator, R as getRegisteredNavigatorNames, Q as getRegisteredNavigatorRole, r as getStudySource, P as hasRegisteredNavigator, V as initializeNavigatorRegistry, a1 as isFilter, a0 as isGenerator, p as isReview, a9 as newInterval, M as registerNavigator } from './contentSource-ygoFw9oV.js';
|
|
3
|
+
import { D as DataLayerProvider } from './dataLayerProvider-BfXUVDuG.js';
|
|
4
4
|
import { C as CardHistory, c as CardRecord } from './types-legacy-JXDxinpU.js';
|
|
5
5
|
export { d as CardData, e as CourseListData, g as DataShapeData, f as DisplayableData, D as DocType, b as DocTypePrefixes, F as Field, G as GuestUsername, Q as QualifiedCardID, h as QuestionData, i as QuestionRecord, S as SkuilderCourseData, a as Tag, T as TagStub, l as log } from './types-legacy-JXDxinpU.js';
|
|
6
6
|
import { Loggable } from './core/index.js';
|
package/dist/index.js
CHANGED
|
@@ -3333,6 +3333,7 @@ __export(navigators_exports, {
|
|
|
3333
3333
|
getCardOrigin: () => getCardOrigin,
|
|
3334
3334
|
getRegisteredNavigator: () => getRegisteredNavigator,
|
|
3335
3335
|
getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
|
|
3336
|
+
getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
|
|
3336
3337
|
hasRegisteredNavigator: () => hasRegisteredNavigator,
|
|
3337
3338
|
initializeNavigatorRegistry: () => initializeNavigatorRegistry,
|
|
3338
3339
|
isFilter: () => isFilter,
|
|
@@ -3341,16 +3342,19 @@ __export(navigators_exports, {
|
|
|
3341
3342
|
pipelineDebugAPI: () => pipelineDebugAPI,
|
|
3342
3343
|
registerNavigator: () => registerNavigator
|
|
3343
3344
|
});
|
|
3344
|
-
function registerNavigator(implementingClass, constructor) {
|
|
3345
|
-
navigatorRegistry.set(implementingClass, constructor);
|
|
3346
|
-
logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}`);
|
|
3345
|
+
function registerNavigator(implementingClass, constructor, role) {
|
|
3346
|
+
navigatorRegistry.set(implementingClass, { constructor, role });
|
|
3347
|
+
logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}${role ? ` (${role})` : ""}`);
|
|
3347
3348
|
}
|
|
3348
3349
|
function getRegisteredNavigator(implementingClass) {
|
|
3349
|
-
return navigatorRegistry.get(implementingClass);
|
|
3350
|
+
return navigatorRegistry.get(implementingClass)?.constructor;
|
|
3350
3351
|
}
|
|
3351
3352
|
function hasRegisteredNavigator(implementingClass) {
|
|
3352
3353
|
return navigatorRegistry.has(implementingClass);
|
|
3353
3354
|
}
|
|
3355
|
+
function getRegisteredNavigatorRole(implementingClass) {
|
|
3356
|
+
return navigatorRegistry.get(implementingClass)?.role;
|
|
3357
|
+
}
|
|
3354
3358
|
function getRegisteredNavigatorNames() {
|
|
3355
3359
|
return Array.from(navigatorRegistry.keys());
|
|
3356
3360
|
}
|
|
@@ -3396,10 +3400,12 @@ function getCardOrigin(card) {
|
|
|
3396
3400
|
return "new";
|
|
3397
3401
|
}
|
|
3398
3402
|
function isGenerator(impl) {
|
|
3399
|
-
|
|
3403
|
+
if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
|
|
3404
|
+
return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
|
|
3400
3405
|
}
|
|
3401
3406
|
function isFilter(impl) {
|
|
3402
|
-
|
|
3407
|
+
if (NavigatorRoles[impl] === "filter" /* FILTER */) return true;
|
|
3408
|
+
return getRegisteredNavigatorRole(impl) === "filter" /* FILTER */;
|
|
3403
3409
|
}
|
|
3404
3410
|
var navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator;
|
|
3405
3411
|
var init_navigators = __esm({
|
|
@@ -7998,6 +8004,7 @@ __export(index_exports, {
|
|
|
7998
8004
|
getDefaultLearnableWeight: () => getDefaultLearnableWeight,
|
|
7999
8005
|
getRegisteredNavigator: () => getRegisteredNavigator,
|
|
8000
8006
|
getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
|
|
8007
|
+
getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
|
|
8001
8008
|
getStudySource: () => getStudySource,
|
|
8002
8009
|
hasRegisteredNavigator: () => hasRegisteredNavigator,
|
|
8003
8010
|
importParsedCards: () => importParsedCards,
|
|
@@ -11665,6 +11672,7 @@ init_factory();
|
|
|
11665
11672
|
getDefaultLearnableWeight,
|
|
11666
11673
|
getRegisteredNavigator,
|
|
11667
11674
|
getRegisteredNavigatorNames,
|
|
11675
|
+
getRegisteredNavigatorRole,
|
|
11668
11676
|
getStudySource,
|
|
11669
11677
|
hasRegisteredNavigator,
|
|
11670
11678
|
importParsedCards,
|