@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.
@@ -3157,6 +3157,7 @@ __export(navigators_exports, {
3157
3157
  getCardOrigin: () => getCardOrigin,
3158
3158
  getRegisteredNavigator: () => getRegisteredNavigator,
3159
3159
  getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
3160
+ getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
3160
3161
  hasRegisteredNavigator: () => hasRegisteredNavigator,
3161
3162
  initializeNavigatorRegistry: () => initializeNavigatorRegistry,
3162
3163
  isFilter: () => isFilter,
@@ -3165,16 +3166,19 @@ __export(navigators_exports, {
3165
3166
  pipelineDebugAPI: () => pipelineDebugAPI,
3166
3167
  registerNavigator: () => registerNavigator
3167
3168
  });
3168
- function registerNavigator(implementingClass, constructor) {
3169
- navigatorRegistry.set(implementingClass, constructor);
3170
- logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}`);
3169
+ function registerNavigator(implementingClass, constructor, role) {
3170
+ navigatorRegistry.set(implementingClass, { constructor, role });
3171
+ logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}${role ? ` (${role})` : ""}`);
3171
3172
  }
3172
3173
  function getRegisteredNavigator(implementingClass) {
3173
- return navigatorRegistry.get(implementingClass);
3174
+ return navigatorRegistry.get(implementingClass)?.constructor;
3174
3175
  }
3175
3176
  function hasRegisteredNavigator(implementingClass) {
3176
3177
  return navigatorRegistry.has(implementingClass);
3177
3178
  }
3179
+ function getRegisteredNavigatorRole(implementingClass) {
3180
+ return navigatorRegistry.get(implementingClass)?.role;
3181
+ }
3178
3182
  function getRegisteredNavigatorNames() {
3179
3183
  return Array.from(navigatorRegistry.keys());
3180
3184
  }
@@ -3220,10 +3224,12 @@ function getCardOrigin(card) {
3220
3224
  return "new";
3221
3225
  }
3222
3226
  function isGenerator(impl) {
3223
- return NavigatorRoles[impl] === "generator" /* GENERATOR */;
3227
+ if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
3228
+ return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
3224
3229
  }
3225
3230
  function isFilter(impl) {
3226
- return NavigatorRoles[impl] === "filter" /* FILTER */;
3231
+ if (NavigatorRoles[impl] === "filter" /* FILTER */) return true;
3232
+ return getRegisteredNavigatorRole(impl) === "filter" /* FILTER */;
3227
3233
  }
3228
3234
  var navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator;
3229
3235
  var init_navigators = __esm({
@@ -6152,6 +6158,7 @@ export {
6152
6158
  getDefaultLearnableWeight,
6153
6159
  getRegisteredNavigator,
6154
6160
  getRegisteredNavigatorNames,
6161
+ getRegisteredNavigatorRole,
6155
6162
  getStudySource,
6156
6163
  hasRegisteredNavigator,
6157
6164
  importParsedCards,