@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
|
@@ -2713,6 +2713,7 @@ __export(navigators_exports, {
|
|
|
2713
2713
|
getCardOrigin: () => getCardOrigin,
|
|
2714
2714
|
getRegisteredNavigator: () => getRegisteredNavigator,
|
|
2715
2715
|
getRegisteredNavigatorNames: () => getRegisteredNavigatorNames,
|
|
2716
|
+
getRegisteredNavigatorRole: () => getRegisteredNavigatorRole,
|
|
2716
2717
|
hasRegisteredNavigator: () => hasRegisteredNavigator,
|
|
2717
2718
|
initializeNavigatorRegistry: () => initializeNavigatorRegistry,
|
|
2718
2719
|
isFilter: () => isFilter,
|
|
@@ -2721,16 +2722,19 @@ __export(navigators_exports, {
|
|
|
2721
2722
|
pipelineDebugAPI: () => pipelineDebugAPI,
|
|
2722
2723
|
registerNavigator: () => registerNavigator
|
|
2723
2724
|
});
|
|
2724
|
-
function registerNavigator(implementingClass, constructor) {
|
|
2725
|
-
navigatorRegistry.set(implementingClass, constructor);
|
|
2726
|
-
logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}`);
|
|
2725
|
+
function registerNavigator(implementingClass, constructor, role) {
|
|
2726
|
+
navigatorRegistry.set(implementingClass, { constructor, role });
|
|
2727
|
+
logger.debug(`[NavigatorRegistry] Registered: ${implementingClass}${role ? ` (${role})` : ""}`);
|
|
2727
2728
|
}
|
|
2728
2729
|
function getRegisteredNavigator(implementingClass) {
|
|
2729
|
-
return navigatorRegistry.get(implementingClass);
|
|
2730
|
+
return navigatorRegistry.get(implementingClass)?.constructor;
|
|
2730
2731
|
}
|
|
2731
2732
|
function hasRegisteredNavigator(implementingClass) {
|
|
2732
2733
|
return navigatorRegistry.has(implementingClass);
|
|
2733
2734
|
}
|
|
2735
|
+
function getRegisteredNavigatorRole(implementingClass) {
|
|
2736
|
+
return navigatorRegistry.get(implementingClass)?.role;
|
|
2737
|
+
}
|
|
2734
2738
|
function getRegisteredNavigatorNames() {
|
|
2735
2739
|
return Array.from(navigatorRegistry.keys());
|
|
2736
2740
|
}
|
|
@@ -2776,10 +2780,12 @@ function getCardOrigin(card) {
|
|
|
2776
2780
|
return "new";
|
|
2777
2781
|
}
|
|
2778
2782
|
function isGenerator(impl) {
|
|
2779
|
-
|
|
2783
|
+
if (NavigatorRoles[impl] === "generator" /* GENERATOR */) return true;
|
|
2784
|
+
return getRegisteredNavigatorRole(impl) === "generator" /* GENERATOR */;
|
|
2780
2785
|
}
|
|
2781
2786
|
function isFilter(impl) {
|
|
2782
|
-
|
|
2787
|
+
if (NavigatorRoles[impl] === "filter" /* FILTER */) return true;
|
|
2788
|
+
return getRegisteredNavigatorRole(impl) === "filter" /* FILTER */;
|
|
2783
2789
|
}
|
|
2784
2790
|
var navigatorRegistry, Navigators, NavigatorRole, NavigatorRoles, ContentNavigator;
|
|
2785
2791
|
var init_navigators = __esm({
|