@syntrologie/adapt-nav 2.28.0 → 2.29.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/NavWidgetLit.d.ts +7 -0
- package/dist/NavWidgetLit.d.ts.map +1 -1
- package/dist/cdn.d.ts +55 -0
- package/dist/cdn.d.ts.map +1 -0
- package/dist/cdn.js +33 -0
- package/dist/cdn.js.map +7 -0
- package/dist/chunk-VG3E3ALH.js +668 -0
- package/dist/chunk-VG3E3ALH.js.map +7 -0
- package/dist/{chunk-DDX6VH2W.js → chunk-XO4TLMHA.js} +183 -1
- package/dist/chunk-XO4TLMHA.js.map +7 -0
- package/dist/editor.d.ts +1 -2
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +32 -17
- package/dist/editor.js.map +2 -2
- package/dist/runtime.js +8 -629
- package/dist/runtime.js.map +4 -4
- package/dist/schema.d.ts +35 -5
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -2
- package/dist/schema.js.map +1 -1
- package/package.json +5 -1
- package/dist/chunk-7DTOSQNC.js +0 -43
- package/dist/chunk-7DTOSQNC.js.map +0 -7
- package/dist/chunk-DDX6VH2W.js.map +0 -7
package/dist/NavWidgetLit.d.ts
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { LitElement } from 'lit';
|
|
15
15
|
import type { NavConfig, NavWidgetRuntime } from './types';
|
|
16
|
+
/** Browser side effects used by navigation clicks. Injectable for host adapters and tests. */
|
|
17
|
+
export interface NavNavigationPort {
|
|
18
|
+
open(url: string): void;
|
|
19
|
+
fullNavigate(url: string): void;
|
|
20
|
+
pushState(url: string): void;
|
|
21
|
+
}
|
|
16
22
|
export declare class NavWidgetLit extends LitElement {
|
|
17
23
|
#private;
|
|
18
24
|
createRenderRoot(): this;
|
|
@@ -39,6 +45,7 @@ export declare class NavWidgetLit extends LitElement {
|
|
|
39
45
|
config: NavConfig;
|
|
40
46
|
runtime: NavWidgetRuntime | undefined;
|
|
41
47
|
instanceId: string;
|
|
48
|
+
navigationPort: NavNavigationPort;
|
|
42
49
|
/** @internal */ _expandedIds: Set<string>;
|
|
43
50
|
/** @internal */ _renderTick: number;
|
|
44
51
|
/** @internal */ _hoveredId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavWidgetLit.d.ts","sourceRoot":"","sources":["../src/NavWidgetLit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"NavWidgetLit.d.ts","sourceRoot":"","sources":["../src/NavWidgetLit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;AAMhD,OAAO,KAAK,EAAE,SAAS,EAAgB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAuGzE,8FAA8F;AAC9F,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAmBD,qBAAa,YAAa,SAAQ,UAAU;;IAGjC,gBAAgB;IAMzB,OAAgB,UAAU;;;;;;;;;;;;;;;;;;;MAUxB;IAIF,MAAM,EAAE,SAAS,CAA4D;IAC7E,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAa;IAClD,UAAU,EAAE,MAAM,CAAgB;IAClC,cAAc,EAAE,iBAAiB,CAAyB;IAI1D,gBAAgB,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IACvD,gBAAgB,CAAC,WAAW,SAAK;IACjC,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IASzC,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAO5B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAyU5C,MAAM;CAuFhB;AAQD,wBAAgB,oBAAoB,IAAI,IAAI,CAK3C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,YAAY,CAAC;KACjC;CACF"}
|
package/dist/cdn.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CDN Entry Point for Adaptive Nav
|
|
3
|
+
*
|
|
4
|
+
* Bundled for CDN delivery and loaded on-demand by the host runtime's
|
|
5
|
+
* AppLoader when a config references navigation/nav actions/widgets. Part of the
|
|
6
|
+
* kernel diet (ADR 2026-07-17-runtime-kernel-vs-lazy-presentation):
|
|
7
|
+
* this app left the builtin list — it has 1s+ loading tolerance, unlike
|
|
8
|
+
* adaptive-content which must act inside the anti-flicker window.
|
|
9
|
+
*
|
|
10
|
+
* Mirrors adaptive-gamification/src/cdn.ts: builds the manifest from the
|
|
11
|
+
* runtime export, then self-registers with the host's app registry on
|
|
12
|
+
* import. Without this entry, build-adaptives-only.js silently skips the
|
|
13
|
+
* package and the app is "lazy in name only" (no bundle on disk).
|
|
14
|
+
*/
|
|
15
|
+
export declare const manifest: {
|
|
16
|
+
id: string;
|
|
17
|
+
version: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
runtime: {
|
|
21
|
+
actions: {
|
|
22
|
+
kind: "navigation:scrollTo" | "navigation:navigate";
|
|
23
|
+
executor: import("packages/sdk-contracts/dist").ActionExecutor<import("./types").ScrollToAction> | import("packages/sdk-contracts/dist").ActionExecutor<import("./types").NavigateAction>;
|
|
24
|
+
}[];
|
|
25
|
+
widgets: {
|
|
26
|
+
id: string;
|
|
27
|
+
component: {
|
|
28
|
+
mount(container: HTMLElement, config?: (import("./types").NavConfig & import("packages/sdk-contracts/dist").MountPlumbing & {
|
|
29
|
+
runtime?: import("./types").NavWidgetRuntime;
|
|
30
|
+
}) | null): () => void;
|
|
31
|
+
};
|
|
32
|
+
metadata: {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
};
|
|
37
|
+
}[];
|
|
38
|
+
notifyWatchers: unknown;
|
|
39
|
+
events: unknown;
|
|
40
|
+
};
|
|
41
|
+
metadata: {
|
|
42
|
+
isBuiltIn: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
declare global {
|
|
46
|
+
interface Window {
|
|
47
|
+
SynOS?: {
|
|
48
|
+
appRegistry?: {
|
|
49
|
+
register?: (m: unknown) => void;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export default manifest;
|
|
55
|
+
//# sourceMappingURL=cdn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../src/cdn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;2BAkC81J,CAAC;;;;;;;;;;;;;;;CApBn3J,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,KAAK,CAAC,EAAE;YACN,WAAW,CAAC,EAAE;gBACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;aACjC,CAAC;SACH,CAAC;KACH;CACF;AASD,eAAe,QAAQ,CAAC"}
|
package/dist/cdn.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runtime
|
|
3
|
+
} from "./chunk-VG3E3ALH.js";
|
|
4
|
+
import "./chunk-XO4TLMHA.js";
|
|
5
|
+
|
|
6
|
+
// src/cdn.ts
|
|
7
|
+
var manifest = {
|
|
8
|
+
id: runtime.id,
|
|
9
|
+
version: runtime.version,
|
|
10
|
+
name: runtime.name,
|
|
11
|
+
description: runtime.description,
|
|
12
|
+
runtime: {
|
|
13
|
+
actions: (runtime.executors ?? []).map(({ kind, executor }) => ({ kind, executor })),
|
|
14
|
+
widgets: runtime.widgets,
|
|
15
|
+
notifyWatchers: runtime.notifyWatchers,
|
|
16
|
+
events: runtime.eventHandlers
|
|
17
|
+
},
|
|
18
|
+
metadata: {
|
|
19
|
+
isBuiltIn: false
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
if (typeof window !== "undefined") {
|
|
23
|
+
const registry = window.SynOS?.appRegistry;
|
|
24
|
+
if (registry && typeof registry.register === "function") {
|
|
25
|
+
registry.register(manifest);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
var cdn_default = manifest;
|
|
29
|
+
export {
|
|
30
|
+
cdn_default as default,
|
|
31
|
+
manifest
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=cdn.js.map
|
package/dist/cdn.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/cdn.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * CDN Entry Point for Adaptive Nav\n *\n * Bundled for CDN delivery and loaded on-demand by the host runtime's\n * AppLoader when a config references navigation/nav actions/widgets. Part of the\n * kernel diet (ADR 2026-07-17-runtime-kernel-vs-lazy-presentation):\n * this app left the builtin list \u2014 it has 1s+ loading tolerance, unlike\n * adaptive-content which must act inside the anti-flicker window.\n *\n * Mirrors adaptive-gamification/src/cdn.ts: builds the manifest from the\n * runtime export, then self-registers with the host's app registry on\n * import. Without this entry, build-adaptives-only.js silently skips the\n * package and the app is \"lazy in name only\" (no bundle on disk).\n */\n\nimport { runtime } from './runtime';\n\nexport const manifest = {\n id: runtime.id,\n version: runtime.version,\n name: runtime.name,\n description: runtime.description,\n runtime: {\n actions: (runtime.executors ?? []).map(({ kind, executor }) => ({ kind, executor })),\n widgets: runtime.widgets,\n notifyWatchers: (runtime as { notifyWatchers?: unknown }).notifyWatchers,\n events: (runtime as { eventHandlers?: unknown }).eventHandlers,\n },\n metadata: {\n isBuiltIn: false,\n },\n};\n\ndeclare global {\n interface Window {\n SynOS?: {\n appRegistry?: {\n register?: (m: unknown) => void;\n };\n };\n }\n}\n\nif (typeof window !== 'undefined') {\n const registry = window.SynOS?.appRegistry;\n if (registry && typeof registry.register === 'function') {\n registry.register(manifest);\n }\n}\n\nexport default manifest;\n"],
|
|
5
|
+
"mappings": ";;;;;;AAiBO,IAAM,WAAW;AAAA,EACtB,IAAI,QAAQ;AAAA,EACZ,SAAS,QAAQ;AAAA,EACjB,MAAM,QAAQ;AAAA,EACd,aAAa,QAAQ;AAAA,EACrB,SAAS;AAAA,IACP,UAAU,QAAQ,aAAa,CAAC,GAAG,IAAI,CAAC,EAAE,MAAM,SAAS,OAAO,EAAE,MAAM,SAAS,EAAE;AAAA,IACnF,SAAS,QAAQ;AAAA,IACjB,gBAAiB,QAAyC;AAAA,IAC1D,QAAS,QAAwC;AAAA,EACnD;AAAA,EACA,UAAU;AAAA,IACR,WAAW;AAAA,EACb;AACF;AAYA,IAAI,OAAO,WAAW,aAAa;AACjC,QAAM,WAAW,OAAO,OAAO;AAC/B,MAAI,YAAY,OAAO,SAAS,aAAa,YAAY;AACvD,aAAS,SAAS,QAAQ;AAAA,EAC5B;AACF;AAEA,IAAO,cAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|