@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/core/index.mjs
CHANGED
|
@@ -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
|
-
|
|
3227
|
+
if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
|
|
3228
|
+
return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
|
|
3224
3229
|
}
|
|
3225
3230
|
function isFilter(impl) {
|
|
3226
|
-
|
|
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,
|