@syntrologie/adapt-guide 0.0.0-stage → 2.8.0-canary.622

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/cdn.d.ts ADDED
@@ -0,0 +1,43 @@
1
+ /**
2
+ * adaptive-guide — CDN entrypoint
3
+ *
4
+ * Loaded by the runtime SDK's AppLoader when a tile references
5
+ * adaptive-guide:page (the package is cdn-only, never bundled). Importing
6
+ * ./runtime registers <syntro-guide-page>; this wraps the flat manifest the
7
+ * way AppRegistry.activate reads it and self-registers.
8
+ */
9
+ declare const manifest: {
10
+ id: string;
11
+ version: string;
12
+ name: string;
13
+ description: string;
14
+ runtime: {
15
+ actions: never[];
16
+ widgets: {
17
+ id: string;
18
+ component: {
19
+ mount(container: HTMLElement, config?: ({
20
+ templates?: ("pick_from_pictures" | "what_you_need" | "compare" | "hero_pick" | "product_detail")[] | undefined;
21
+ } & import("packages/sdk-contracts/dist").MountPlumbing & {
22
+ chromeless?: boolean;
23
+ }) | null): () => void;
24
+ update(container: HTMLElement, config?: ({
25
+ templates?: ("pick_from_pictures" | "what_you_need" | "compare" | "hero_pick" | "product_detail")[] | undefined;
26
+ } & import("packages/sdk-contracts/dist").MountPlumbing & {
27
+ chromeless?: boolean;
28
+ }) | null): void;
29
+ };
30
+ metadata: {
31
+ name: string;
32
+ description: string;
33
+ icon: string;
34
+ };
35
+ }[];
36
+ };
37
+ metadata: {
38
+ isBuiltIn: boolean;
39
+ };
40
+ };
41
+ export { manifest as runtime };
42
+ export default manifest;
43
+ //# sourceMappingURL=cdn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../src/cdn.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUb,CAAC;AAWF,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC;AAC/B,eAAe,QAAQ,CAAC"}
package/dist/cdn.js ADDED
@@ -0,0 +1,29 @@
1
+ import {
2
+ runtime
3
+ } from "./chunk-BVOACKL5.js";
4
+ import "./chunk-IGIU6S7P.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: [],
14
+ widgets: runtime.widgets
15
+ },
16
+ metadata: { isBuiltIn: false }
17
+ };
18
+ if (typeof window !== "undefined") {
19
+ const synOS = window.SynOS;
20
+ if (synOS?.appRegistry?.register) {
21
+ synOS.appRegistry.register(manifest);
22
+ }
23
+ }
24
+ var cdn_default = manifest;
25
+ export {
26
+ cdn_default as default,
27
+ manifest as runtime
28
+ };
29
+ //# sourceMappingURL=cdn.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/cdn.ts"],
4
+ "sourcesContent": ["/**\n * adaptive-guide \u2014 CDN entrypoint\n *\n * Loaded by the runtime SDK's AppLoader when a tile references\n * adaptive-guide:page (the package is cdn-only, never bundled). Importing\n * ./runtime registers <syntro-guide-page>; this wraps the flat manifest the\n * way AppRegistry.activate reads it and self-registers.\n */\n\nimport { runtime as flatRuntime } from './runtime';\n\nconst manifest = {\n id: flatRuntime.id,\n version: flatRuntime.version,\n name: flatRuntime.name,\n description: flatRuntime.description,\n runtime: {\n actions: [],\n widgets: flatRuntime.widgets,\n },\n metadata: { isBuiltIn: false },\n};\n\nif (typeof window !== 'undefined') {\n const synOS = (\n window as unknown as { SynOS?: { appRegistry?: { register: (m: unknown) => void } } }\n ).SynOS;\n if (synOS?.appRegistry?.register) {\n synOS.appRegistry.register(manifest);\n }\n}\n\nexport { manifest as runtime };\nexport default manifest;\n"],
5
+ "mappings": ";;;;;;AAWA,IAAM,WAAW;AAAA,EACf,IAAI,QAAY;AAAA,EAChB,SAAS,QAAY;AAAA,EACrB,MAAM,QAAY;AAAA,EAClB,aAAa,QAAY;AAAA,EACzB,SAAS;AAAA,IACP,SAAS,CAAC;AAAA,IACV,SAAS,QAAY;AAAA,EACvB;AAAA,EACA,UAAU,EAAE,WAAW,MAAM;AAC/B;AAEA,IAAI,OAAO,WAAW,aAAa;AACjC,QAAM,QACJ,OACA;AACF,MAAI,OAAO,aAAa,UAAU;AAChC,UAAM,YAAY,SAAS,QAAQ;AAAA,EACrC;AACF;AAGA,IAAO,cAAQ;",
6
+ "names": []
7
+ }