@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/{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.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
|
-
|
|
3380
|
+
if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
|
|
3381
|
+
return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
|
|
3377
3382
|
}
|
|
3378
3383
|
function isFilter(impl) {
|
|
3379
|
-
|
|
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,
|