@mohasinac/appkit 4.52.0 → 4.52.1
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/.build-stamp.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"stampVersion": 1,
|
|
3
|
-
"version": "4.52.
|
|
4
|
-
"head": "
|
|
3
|
+
"version": "4.52.1",
|
|
4
|
+
"head": "4f619831be27c31c5a90af46be88dafe354f25a9",
|
|
5
5
|
"branch": "main",
|
|
6
6
|
"dirty": false,
|
|
7
|
-
"builtAt": "2026-10-
|
|
7
|
+
"builtAt": "2026-10-14T13:11:31.398Z"
|
|
8
8
|
}
|
|
@@ -51,7 +51,15 @@ interface TabbableCategory {
|
|
|
51
51
|
parentIds?: readonly string[] | null;
|
|
52
52
|
isLeaf?: boolean | null;
|
|
53
53
|
}
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* A LEAF whose ancestry passes through a `*-parts` node.
|
|
56
|
+
*
|
|
57
|
+
* 🛑 `isLeaf` is required, not incidental. Without it the tab also matches the
|
|
58
|
+
* 20 classification NODES — "Attack Rings", "Weight Disks" — because their own
|
|
59
|
+
* `parentIds` include a `*-parts` node too, giving 772 entries that mix groups
|
|
60
|
+
* with the parts inside them. A part is a leaf by itself; the classification is
|
|
61
|
+
* a branch you reach by drilling down.
|
|
62
|
+
*/
|
|
55
63
|
export declare function isPartCategory(c: TabbableCategory): boolean;
|
|
56
64
|
/**
|
|
57
65
|
* Does this row belong on the given tab?
|
|
@@ -51,10 +51,20 @@ export const CATEGORY_TABS = [
|
|
|
51
51
|
];
|
|
52
52
|
export const DEFAULT_CATEGORY_TAB = "categories";
|
|
53
53
|
const typeOf = (c) => String(c.categoryType ?? "");
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* A LEAF whose ancestry passes through a `*-parts` node.
|
|
56
|
+
*
|
|
57
|
+
* 🛑 `isLeaf` is required, not incidental. Without it the tab also matches the
|
|
58
|
+
* 20 classification NODES — "Attack Rings", "Weight Disks" — because their own
|
|
59
|
+
* `parentIds` include a `*-parts` node too, giving 772 entries that mix groups
|
|
60
|
+
* with the parts inside them. A part is a leaf by itself; the classification is
|
|
61
|
+
* a branch you reach by drilling down.
|
|
62
|
+
*/
|
|
55
63
|
export function isPartCategory(c) {
|
|
56
64
|
if (typeOf(c))
|
|
57
65
|
return false; // brand / bundle / franchise / sublisting
|
|
66
|
+
if (c.isLeaf !== true)
|
|
67
|
+
return false;
|
|
58
68
|
return (c.parentIds ?? []).some((p) => PART_PARENT_IDS.includes(String(p)));
|
|
59
69
|
}
|
|
60
70
|
/**
|