@vue-skuilder/db 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.
@@ -1,4 +1,4 @@
1
- import { U as UserDBInterface, a as UserDBReader, C as CourseDBInterface, b as CoursesDBInterface, c as ClassroomDBInterface, A as AdminDBInterface } from './contentSource-DfBbaLA-.cjs';
1
+ import { U as UserDBInterface, a as UserDBReader, C as CourseDBInterface, b as CoursesDBInterface, c as ClassroomDBInterface, A as AdminDBInterface } from './contentSource-B7nXusjk.cjs';
2
2
 
3
3
  /**
4
4
  * Main factory interface for data access
@@ -1,4 +1,4 @@
1
- import { U as UserDBInterface, a as UserDBReader, C as CourseDBInterface, b as CoursesDBInterface, c as ClassroomDBInterface, A as AdminDBInterface } from './contentSource-BmnmvH8C.js';
1
+ import { U as UserDBInterface, a as UserDBReader, C as CourseDBInterface, b as CoursesDBInterface, c as ClassroomDBInterface, A as AdminDBInterface } from './contentSource-ygoFw9oV.js';
2
2
 
3
3
  /**
4
4
  * Main factory interface for data access
@@ -1,7 +1,7 @@
1
1
  import { T as TagStub, a as Tag, S as SkuilderCourseData, Q as QualifiedCardID } from '../../types-legacy-JXDxinpU.cjs';
2
2
  import { Moment } from 'moment';
3
- import { A as AdminDBInterface, g as AssignedContent, h as StudyContentSource, i as StudentClassroomDBInterface, U as UserDBInterface, W as WeightedCard, T as TeacherClassroomDBInterface, b as CoursesDBInterface, C as CourseDBInterface, d as CourseInfo, D as DataLayerResult, e as ContentNavigationStrategyData, f as ContentNavigator, S as StudySessionItem, j as ScheduledCard } from '../../contentSource-DfBbaLA-.cjs';
4
- export { q as ContentSourceID, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, n as StudySessionNewItem, o as StudySessionReviewItem, r as getStudySource, p as isReview } from '../../contentSource-DfBbaLA-.cjs';
3
+ import { A as AdminDBInterface, g as AssignedContent, h as StudyContentSource, i as StudentClassroomDBInterface, U as UserDBInterface, W as WeightedCard, T as TeacherClassroomDBInterface, b as CoursesDBInterface, C as CourseDBInterface, d as CourseInfo, D as DataLayerResult, e as ContentNavigationStrategyData, f as ContentNavigator, S as StudySessionItem, j as ScheduledCard } from '../../contentSource-B7nXusjk.cjs';
4
+ export { q as ContentSourceID, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, n as StudySessionNewItem, o as StudySessionReviewItem, r as getStudySource, p as isReview } from '../../contentSource-B7nXusjk.cjs';
5
5
  import * as _vue_skuilder_common from '@vue-skuilder/common';
6
6
  import { ClassroomConfig, DataShape, CourseElo, CourseConfig as CourseConfig$1 } from '@vue-skuilder/common';
7
7
  import { S as SyncStrategy, A as AccountCreationResult, a as AuthenticationResult } from '../../SyncStrategy-CyATpyLQ.cjs';
@@ -1,7 +1,7 @@
1
1
  import { T as TagStub, a as Tag, S as SkuilderCourseData, Q as QualifiedCardID } from '../../types-legacy-JXDxinpU.js';
2
2
  import { Moment } from 'moment';
3
- import { A as AdminDBInterface, g as AssignedContent, h as StudyContentSource, i as StudentClassroomDBInterface, U as UserDBInterface, W as WeightedCard, T as TeacherClassroomDBInterface, b as CoursesDBInterface, C as CourseDBInterface, d as CourseInfo, D as DataLayerResult, e as ContentNavigationStrategyData, f as ContentNavigator, S as StudySessionItem, j as ScheduledCard } from '../../contentSource-BmnmvH8C.js';
4
- export { q as ContentSourceID, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, n as StudySessionNewItem, o as StudySessionReviewItem, r as getStudySource, p as isReview } from '../../contentSource-BmnmvH8C.js';
3
+ import { A as AdminDBInterface, g as AssignedContent, h as StudyContentSource, i as StudentClassroomDBInterface, U as UserDBInterface, W as WeightedCard, T as TeacherClassroomDBInterface, b as CoursesDBInterface, C as CourseDBInterface, d as CourseInfo, D as DataLayerResult, e as ContentNavigationStrategyData, f as ContentNavigator, S as StudySessionItem, j as ScheduledCard } from '../../contentSource-ygoFw9oV.js';
4
+ export { q as ContentSourceID, k as StudySessionFailedItem, l as StudySessionFailedNewItem, m as StudySessionFailedReviewItem, n as StudySessionNewItem, o as StudySessionReviewItem, r as getStudySource, p as isReview } from '../../contentSource-ygoFw9oV.js';
5
5
  import * as _vue_skuilder_common from '@vue-skuilder/common';
6
6
  import { ClassroomConfig, DataShape, CourseElo, CourseConfig as CourseConfig$1 } from '@vue-skuilder/common';
7
7
  import { S as SyncStrategy, A as AccountCreationResult, a as AuthenticationResult } from '../../SyncStrategy-CyATpyLQ.js';
@@ -2858,6 +2858,7 @@ __export(navigators_exports, {
2858
2858
  getCardOrigin: () => getCardOrigin,
2859
2859
  getRegisteredNavigator: () => getRegisteredNavigator,
2860
2860
  getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
2861
+ getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
2861
2862
  hasRegisteredNavigator: () => hasRegisteredNavigator,
2862
2863
  initializeNavigatorRegistry: () => initializeNavigatorRegistry,
2863
2864
  isFilter: () => isFilter,
@@ -2866,16 +2867,19 @@ __export(navigators_exports, {
2866
2867
  pipelineDebugAPI: () => pipelineDebugAPI,
2867
2868
  registerNavigator: () => registerNavigator
2868
2869
  });
2869
- function registerNavigator(implementingClass, constructor) {
2870
- navigatorRegistry.set(implementingClass, constructor);
2871
- logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}`);
2870
+ function registerNavigator(implementingClass, constructor, role) {
2871
+ navigatorRegistry.set(implementingClass, { constructor, role });
2872
+ logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}${role ? ` (${role})` : ""}`);
2872
2873
  }
2873
2874
  function getRegisteredNavigator(implementingClass) {
2874
- return navigatorRegistry.get(implementingClass);
2875
+ return navigatorRegistry.get(implementingClass)?.constructor;
2875
2876
  }
2876
2877
  function hasRegisteredNavigator(implementingClass) {
2877
2878
  return navigatorRegistry.has(implementingClass);
2878
2879
  }
2880
+ function getRegisteredNavigatorRole(implementingClass) {
2881
+ return navigatorRegistry.get(implementingClass)?.role;
2882
+ }
2879
2883
  function getRegisteredNavigatorNames() {
2880
2884
  return Array.from(navigatorRegistry.keys());
2881
2885
  }
@@ -2921,10 +2925,12 @@ function getCardOrigin(card) {
2921
2925
  return "new";
2922
2926
  }
2923
2927
  function isGenerator(impl) {
2924
- return NavigatorRoles[impl] === "generator" /* GENERATOR */;
2928
+ if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
2929
+ return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
2925
2930
  }
2926
2931
  function isFilter(impl) {
2927
- return NavigatorRoles[impl] === "filter" /* FILTER */;
2932
+ if (NavigatorRoles[impl] === "filter" /* FILTER */) return true;
2933
+ return getRegisteredNavigatorRole(impl) === "filter" /* FILTER */;
2928
2934
  }
2929
2935
  var navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator;
2930
2936
  var init_navigators = __esm({