@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.
package/dist/index.mjs CHANGED
@@ -3310,6 +3310,7 @@ __export(navigators_exports, {
3310
3310
  getCardOrigin: () => getCardOrigin,
3311
3311
  getRegisteredNavigator: () => getRegisteredNavigator,
3312
3312
  getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
3313
+ getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
3313
3314
  hasRegisteredNavigator: () => hasRegisteredNavigator,
3314
3315
  initializeNavigatorRegistry: () => initializeNavigatorRegistry,
3315
3316
  isFilter: () => isFilter,
@@ -3318,16 +3319,19 @@ __export(navigators_exports, {
3318
3319
  pipelineDebugAPI: () => pipelineDebugAPI,
3319
3320
  registerNavigator: () => registerNavigator
3320
3321
  });
3321
- function registerNavigator(implementingClass, constructor) {
3322
- navigatorRegistry.set(implementingClass, constructor);
3323
- logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}`);
3322
+ function registerNavigator(implementingClass, constructor, role) {
3323
+ navigatorRegistry.set(implementingClass, { constructor, role });
3324
+ logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}${role ? ` (${role})` : ""}`);
3324
3325
  }
3325
3326
  function getRegisteredNavigator(implementingClass) {
3326
- return navigatorRegistry.get(implementingClass);
3327
+ return navigatorRegistry.get(implementingClass)?.constructor;
3327
3328
  }
3328
3329
  function hasRegisteredNavigator(implementingClass) {
3329
3330
  return navigatorRegistry.has(implementingClass);
3330
3331
  }
3332
+ function getRegisteredNavigatorRole(implementingClass) {
3333
+ return navigatorRegistry.get(implementingClass)?.role;
3334
+ }
3331
3335
  function getRegisteredNavigatorNames() {
3332
3336
  return Array.from(navigatorRegistry.keys());
3333
3337
  }
@@ -3373,10 +3377,12 @@ function getCardOrigin(card) {
3373
3377
  return "new";
3374
3378
  }
3375
3379
  function isGenerator(impl) {
3376
- return NavigatorRoles[impl] === "generator" /* GENERATOR */;
3380
+ if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
3381
+ return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
3377
3382
  }
3378
3383
  function isFilter(impl) {
3379
- return NavigatorRoles[impl] === "filter" /* FILTER */;
3384
+ if (NavigatorRoles[impl] === "filter" /* FILTER */) return true;
3385
+ return getRegisteredNavigatorRole(impl) === "filter" /* FILTER */;
3380
3386
  }
3381
3387
  var navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator;
3382
3388
  var init_navigators = __esm({
@@ -11563,6 +11569,7 @@ export {
11563
11569
  getDefaultLearnableWeight,
11564
11570
  getRegisteredNavigator,
11565
11571
  getRegisteredNavigatorNames,
11572
+ getRegisteredNavigatorRole,
11566
11573
  getStudySource,
11567
11574
  hasRegisteredNavigator,
11568
11575
  importParsedCards,