@murumets-ee/menus 0.95.0 → 0.97.0
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/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as validateTreeDepth, b as menuAcceptsEntityType, c as MAX_MENU_URL_LENGTH, d as MenuLinkValue, f as MenuSchemaOptions, g as measureMenuTree, h as buildMenuTreeSchema, i as LinkValueSchema, l as MenuItem, m as buildMenuItemSchema, o as MAX_MENU_DEPTH, p as MenuTreeMeasurement, r as DEFAULT_MENU_DEPTH, s as MAX_MENU_TREE_NODES, v as MAX_MENU_ENTITY_TYPE_WHITELIST, x as normalizeMenuEntityTypes, y as MenuEntityTypesSchema } from "./menu-item-schema-
|
|
1
|
+
import { _ as validateTreeDepth, b as menuAcceptsEntityType, c as MAX_MENU_URL_LENGTH, d as MenuLinkValue, f as MenuSchemaOptions, g as measureMenuTree, h as buildMenuTreeSchema, i as LinkValueSchema, l as MenuItem, m as buildMenuItemSchema, o as MAX_MENU_DEPTH, p as MenuTreeMeasurement, r as DEFAULT_MENU_DEPTH, s as MAX_MENU_TREE_NODES, v as MAX_MENU_ENTITY_TYPE_WHITELIST, x as normalizeMenuEntityTypes, y as MenuEntityTypesSchema } from "./menu-item-schema-Be161XVs.mjs";
|
|
2
2
|
import { Behavior } from "@murumets-ee/entity";
|
|
3
3
|
|
|
4
4
|
//#region src/behaviors/menu-entity-types-validation.d.ts
|
|
@@ -230,14 +230,14 @@ declare const LinkValueSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
230
230
|
id: z.ZodString;
|
|
231
231
|
anchor: z.ZodOptional<z.ZodString>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
-
id: string;
|
|
234
233
|
kind: "entity";
|
|
235
234
|
entity: string;
|
|
235
|
+
id: string;
|
|
236
236
|
anchor?: string | undefined;
|
|
237
237
|
}, {
|
|
238
|
-
id: string;
|
|
239
238
|
kind: "entity";
|
|
240
239
|
entity: string;
|
|
240
|
+
id: string;
|
|
241
241
|
anchor?: string | undefined;
|
|
242
242
|
}>, z.ZodObject<{
|
|
243
243
|
kind: z.ZodLiteral<"url">;
|
|
@@ -293,4 +293,4 @@ declare function measureMenuTree(tree: unknown): MenuTreeMeasurement;
|
|
|
293
293
|
declare function validateTreeDepth(tree: unknown, maxDepth: number): boolean;
|
|
294
294
|
//#endregion
|
|
295
295
|
export { validateTreeDepth as _, MAX_ANCHOR_LENGTH as a, menuAcceptsEntityType as b, MAX_MENU_URL_LENGTH as c, MenuLinkValue as d, MenuSchemaOptions as f, measureMenuTree as g, buildMenuTreeSchema as h, LinkValueSchema as i, MenuItem as l, buildMenuItemSchema as m, BlockAnchor as n, MAX_MENU_DEPTH as o, MenuTreeMeasurement as p, DEFAULT_MENU_DEPTH as r, MAX_MENU_TREE_NODES as s, ANCHOR_PATTERN as t, MenuItemSummary as u, MAX_MENU_ENTITY_TYPE_WHITELIST as v, normalizeMenuEntityTypes as x, MenuEntityTypesSchema as y };
|
|
296
|
-
//# sourceMappingURL=menu-item-schema-
|
|
296
|
+
//# sourceMappingURL=menu-item-schema-Be161XVs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item-schema-
|
|
1
|
+
{"version":3,"file":"menu-item-schema-Be161XVs.d.mts","names":[],"sources":["../src/menu-entity-types.ts","../src/menu-item-schema.ts"],"mappings":";;;;;ACqC+B;AAS/B;;;;AAAgC;AAWhC;;;;AAAgC;cDHnB,8BAAA;;;;ACuBiB;AAmB9B;;;;AAAgD;cD5BnC,qBAAA,EAAuB,CAAA,CAAE,OAAO,kBAAkB,CAAA,CAAE,UAAA;;;;;;;;;;;iBAwBjD,wBAAA,CAAyB,KAAc;;ACkC7B;AAgB1B;;;;;;;;;iBDpBgB,qBAAA,CAAsB,KAAA,WAAgB,UAAkB;;;;AAAA;;;;cCxF3D,cAAA;;cAGA,kBA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
package/dist/schema.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as validateTreeDepth, a as MAX_ANCHOR_LENGTH, b as menuAcceptsEntityType, c as MAX_MENU_URL_LENGTH, d as MenuLinkValue, f as MenuSchemaOptions, g as measureMenuTree, h as buildMenuTreeSchema, i as LinkValueSchema, l as MenuItem, m as buildMenuItemSchema, n as BlockAnchor, o as MAX_MENU_DEPTH, p as MenuTreeMeasurement, r as DEFAULT_MENU_DEPTH, s as MAX_MENU_TREE_NODES, t as ANCHOR_PATTERN, u as MenuItemSummary, v as MAX_MENU_ENTITY_TYPE_WHITELIST, x as normalizeMenuEntityTypes, y as MenuEntityTypesSchema } from "./menu-item-schema-
|
|
1
|
+
import { _ as validateTreeDepth, a as MAX_ANCHOR_LENGTH, b as menuAcceptsEntityType, c as MAX_MENU_URL_LENGTH, d as MenuLinkValue, f as MenuSchemaOptions, g as measureMenuTree, h as buildMenuTreeSchema, i as LinkValueSchema, l as MenuItem, m as buildMenuItemSchema, n as BlockAnchor, o as MAX_MENU_DEPTH, p as MenuTreeMeasurement, r as DEFAULT_MENU_DEPTH, s as MAX_MENU_TREE_NODES, t as ANCHOR_PATTERN, u as MenuItemSummary, v as MAX_MENU_ENTITY_TYPE_WHITELIST, x as normalizeMenuEntityTypes, y as MenuEntityTypesSchema } from "./menu-item-schema-Be161XVs.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/menu-tree-flatten.d.ts
|
|
4
4
|
/** A menu node's payload without its children — structure lives on the flat node. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@murumets-ee/menus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.97.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"drizzle-orm": "^0.45.2",
|
|
37
37
|
"zod": "^3.24.1",
|
|
38
|
-
"@murumets-ee/blocks": "0.
|
|
39
|
-
"@murumets-ee/content": "0.
|
|
40
|
-
"@murumets-ee/core": "0.
|
|
41
|
-
"@murumets-ee/entity": "0.
|
|
38
|
+
"@murumets-ee/blocks": "0.97.0",
|
|
39
|
+
"@murumets-ee/content": "0.97.0",
|
|
40
|
+
"@murumets-ee/core": "0.97.0",
|
|
41
|
+
"@murumets-ee/entity": "0.97.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^20.19.42",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"tsdown": "^0.22.2",
|
|
47
47
|
"typescript": "^5.7.3",
|
|
48
48
|
"vitest": "^2.1.8",
|
|
49
|
-
"@murumets-ee/content-api": "0.
|
|
50
|
-
"@murumets-ee/db": "0.
|
|
49
|
+
"@murumets-ee/content-api": "0.97.0",
|
|
50
|
+
"@murumets-ee/db": "0.97.0"
|
|
51
51
|
},
|
|
52
52
|
"typeCoverage": {
|
|
53
53
|
"atLeast": 100
|