@kywi-software/js 0.6.7 → 0.7.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.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/kywi.esm.js +186 -0
- package/dist/kywi.esm.js.map +3 -3
- package/dist/kywi.js +186 -0
- package/dist/kywi.js.map +3 -3
- package/dist/nav/menu.d.ts +14 -0
- package/dist/nav/menu.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Desktop breakpoint, in pixels. The single source shared with core's
|
|
3
|
+
* `site/styles.css`, whose one media query is `(max-width: 859.98px)` — the
|
|
4
|
+
* last step below this value. Change both together.
|
|
5
|
+
*/
|
|
6
|
+
export declare const NAV_BREAKPOINT = 860;
|
|
7
|
+
/** Enhance one `[data-kywi-nav]` root. Returns a teardown for tests/SPAs. */
|
|
8
|
+
export declare function enhanceNav(nav: HTMLElement): () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Enhance every nav under `root` that has not been enhanced yet. Called from
|
|
11
|
+
* `Kywi.boot()`; safe to call again after injecting markup client-side.
|
|
12
|
+
*/
|
|
13
|
+
export declare function initNavMenus(root?: ParentNode): () => void;
|
|
14
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/nav/menu.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,eAAO,MAAM,cAAc,MAAM,CAAA;AAmCjC,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,IAAI,CAoKvD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,GAAE,UAAqB,GAAG,MAAM,IAAI,CAQpE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kywi-software/js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Kywi CMS browser runtime — audience personalization, experiments, forms, and feed rendering for the public site (loaded as kywi.js).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"tsx": "^4.7.0",
|
|
39
39
|
"typescript": "^5.5.0",
|
|
40
40
|
"vitest": "^1.6.0",
|
|
41
|
-
"@kywi-software/core": "0.
|
|
41
|
+
"@kywi-software/core": "0.7.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc --emitDeclarationOnly && tsx build.ts",
|