foldkit-mixins-surface 0.6.9 → 0.8.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.
@@ -0,0 +1,3 @@
1
+ import * as SurfaceView from "./surfaceView.js";
2
+ import { SurfaceViewDescription, SurfaceViewInspection, define, describe, inspect, render, toMarkdown, toRenderer } from "./surfaceView.js";
3
+ export { SurfaceView, type SurfaceViewDescription, type SurfaceViewInspection, define, describe, inspect, render, toMarkdown, toRenderer };
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import * as SurfaceView from "./surfaceView.js";
2
+ import { define, describe, inspect, render, toMarkdown, toRenderer } from "./surfaceView.js";
3
+ export { SurfaceView, define, describe, inspect, render, toMarkdown, toRenderer };
@@ -1,9 +1,6 @@
1
1
  import { MetadataSummary, Renderer, Surface } from "foldkit-surface";
2
2
  import { SlotView, SlotViewRender, Slots } from "foldkit-mixins";
3
3
  import { Html } from "foldkit/html";
4
- declare namespace surfaceView_d_exports {
5
- export { SurfaceViewDescription, SurfaceViewInspection, define, describe, inspect, render, toMarkdown, toRenderer };
6
- }
7
4
  export declare const define: <Root, Model, Message, Params, Slots_>(surface: Surface<Root, Model, Message, Params>, slots: Slots_, render: SlotViewRender<Slots_, Model, Message>, options?: {
8
5
  readonly name?: string;
9
6
  }) => SlotView.SlotView<Slots_, Model, Message>;
@@ -20,7 +17,7 @@ export declare const toRenderer: <Slots_, Model, Message>(view: SlotView.SlotVie
20
17
  * tests, and static output.
21
18
  */
22
19
  export declare const render: <Root, Model, Message, Params, Slots_>(view: SlotView.SlotView<Slots_, Model, Message>, surface: Surface<Root, Model, Message, Params>, params: Params, root: Root) => Html;
23
- interface SurfaceViewInspection {
20
+ export interface SurfaceViewInspection {
24
21
  /** The SlotView's name, defaulted from the Surface's name. */
25
22
  readonly name: string;
26
23
  readonly slots: ReturnType<typeof Slots.describe>['slots'];
@@ -32,7 +29,7 @@ interface SurfaceViewInspection {
32
29
  * `Surface.inspect`, which reports what the Surface observes and emits.
33
30
  */
34
31
  export declare const inspect: <Slots_, Model, Message>(view: SlotView.SlotView<Slots_, Model, Message>) => SurfaceViewInspection;
35
- interface SurfaceViewDescription {
32
+ export interface SurfaceViewDescription {
36
33
  readonly name: string;
37
34
  readonly observes: ReturnType<typeof Surface.inspect>['dependencies'];
38
35
  readonly metadata: ReadonlyArray<MetadataSummary>;
@@ -49,5 +46,4 @@ interface SurfaceViewDescription {
49
46
  export declare const describe: <Root, Model, Message, Params, Slots_>(surface: Surface<Root, Model, Message, Params>, params: Params, view: SlotView.SlotView<Slots_, Model, Message>) => SurfaceViewDescription;
50
47
  /** Deterministic Markdown for a description; stable key order, no timestamps. */
51
48
  export declare const toMarkdown: (description: SurfaceViewDescription) => string;
52
- export { surfaceView_d_exports as SurfaceView, type SurfaceViewDescription, type SurfaceViewInspection };
53
- //# sourceMappingURL=index.d.mts.map
49
+ //# sourceMappingURL=surfaceView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceView.d.ts","names":[],"sources":["../src/surfaceView.ts"],"mappings":";;;qBAaa,SAAU,MAAM,OAAO,SAAS,QAAQ,QAAM,SAChD,QAAQ,MAAM,OAAO,SAAS,SAAO,OACvC,QAAM,QACL,eAAe,QAAQ,OAAO,UAAQ;WACzB;MACpB,SAAS,SAAS,QAAQ,OAAO;;;;;;;qBAWvB,aACV,QAAQ,OAAO,SAAO,MACf,SAAS,SAAS,QAAQ,OAAO,aACtC,SAAS,OAAO;;;;;;qBASR,SAAU,MAAM,OAAO,SAAS,QAAQ,QAAM,MACnD,SAAS,SAAS,QAAQ,OAAO,UAAQ,SACtC,QAAQ,MAAM,OAAO,SAAS,SAAO,QACtC,QAAM,MACR,SACL;iBAGc;;WAEN;WACA,OAAO,kBAAkB,MAAM;WAC/B,QAAQ;;;;;;;qBAQN,UAAW,QAAQ,OAAO,SAAO,MACtC,SAAS,SAAS,QAAQ,OAAO,aACtC;iBAec;WACN;WACA,UAAU,kBAAkB,QAAQ;WACpC,UAAU,cAAc;;WAExB,OAAO;WACP,OAAO,kBAAkB,MAAM;WAC/B,QAAQ;;;;;;;qBAQN,WAAY,MAAM,OAAO,SAAS,QAAQ,QAAM,SAClD,QAAQ,MAAM,OAAO,SAAS,SAAO,QACtC,QAAM,MACR,SAAS,SAAS,QAAQ,OAAO,aACtC;;qBAcU,aAAU,aAAiB"}
@@ -1,15 +1,6 @@
1
- import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.mjs";
2
1
  import { Surface } from "foldkit-surface";
3
2
  import { SlotView, Slots } from "foldkit-mixins";
4
3
  // src/surfaceView.ts
5
- var surfaceView_exports = /* @__PURE__ */ __exportAll({
6
- define: () => define,
7
- describe: () => describe,
8
- inspect: () => inspect,
9
- render: () => render,
10
- toMarkdown: () => toMarkdown,
11
- toRenderer: () => toRenderer
12
- });
13
4
  const define = (surface, slots, render, options) => SlotView.define(slots, render, { name: options?.name ?? surface.name });
14
5
  /**
15
6
  * Adapts a SlotView to a Surface renderer. `Surface.view` hands a renderer a
@@ -78,6 +69,6 @@ const toMarkdown = (description) => {
78
69
  for (const name of description.mixins) lines.push(`- \`${name}\``);
79
70
  return lines.join("\n");
80
71
  };
81
- export { surfaceView_exports as SurfaceView, define, describe, inspect, render, toMarkdown, toRenderer };
72
+ export { define, describe, inspect, render, toMarkdown, toRenderer };
82
73
 
83
- //# sourceMappingURL=index.mjs.map
74
+ //# sourceMappingURL=surfaceView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceView.js","names":[],"sources":["../src/surfaceView.ts"],"sourcesContent":["/**\n * Binds a Surface's projected Model and Message subset to a SlotView.\n *\n * The renderer's input is the Surface's projected Model, so Style and Behavior\n * contributions can only read what the Surface projects. Its builder is typed\n * with the Surface's Message subset, so a Behavior cannot emit a Message the\n * Surface does not expose. The returned value is an ordinary `SlotView`, so the\n * core attach/pipe algebra applies unchanged.\n */\nimport type { Html, HtmlBuilder } from 'foldkit/html'\nimport { Surface, type MetadataSummary, type Renderer } from 'foldkit-surface'\nimport { Slots, SlotView, type SlotViewRender } from 'foldkit-mixins'\n\nexport const define = <Root, Model, Message, Params, Slots_>(\n surface: Surface<Root, Model, Message, Params>,\n slots: Slots_,\n render: SlotViewRender<Slots_, Model, Message>,\n options?: { readonly name?: string },\n): SlotView.SlotView<Slots_, Model, Message> =>\n SlotView.define<Slots_, Model, Message>(slots, render, {\n name: options?.name ?? surface.name,\n })\n\n/**\n * Adapts a SlotView to a Surface renderer. `Surface.view` hands a renderer a\n * `ViewBuilder` — the real builder with its `MessageUniverse` phantom removed —\n * and this is the matching boundary cast, sound because the renderer only\n * constructs the Surface's Message subset.\n */\nexport const toRenderer =\n <Slots_, Model, Message>(\n view: SlotView.SlotView<Slots_, Model, Message>,\n ): Renderer<Model, Message> =>\n (model, h) =>\n view(model, h as unknown as HtmlBuilder<Message>)\n\n/**\n * Renders a SlotView for `surface`'s projection of `root` with an inert\n * builder: no runtime, so handlers are built but never dispatched. For demos,\n * tests, and static output.\n */\nexport const render = <Root, Model, Message, Params, Slots_>(\n view: SlotView.SlotView<Slots_, Model, Message>,\n surface: Surface<Root, Model, Message, Params>,\n params: Params,\n root: Root,\n): Html =>\n Surface.rootView(surface, params, toRenderer(view))(root, SlotView.inertBuilder<Message>())\n\nexport interface SurfaceViewInspection {\n /** The SlotView's name, defaulted from the Surface's name. */\n readonly name: string\n readonly slots: ReturnType<typeof Slots.describe>['slots']\n readonly mixins: ReadonlyArray<string>\n}\n\n/**\n * Serializable metadata for DevTools and docs: the published slots and the\n * names of the attached Mixins, with no functions. It composes with\n * `Surface.inspect`, which reports what the Surface observes and emits.\n */\nexport const inspect = <Slots_, Model, Message>(\n view: SlotView.SlotView<Slots_, Model, Message>,\n): SurfaceViewInspection => ({\n name: view.name ?? '',\n slots: Slots.describe(view.slots as unknown as Parameters<typeof Slots.describe>[0]).slots,\n mixins: view.mixins.map(mixin => mixin.name),\n})\n\n/** Reads the tag off a Foldkit Message constructor without constructing one. */\nconst constructorTag = (constructor: unknown): string => {\n const literal = (constructor as { fields?: { _tag?: { ast?: { literal?: unknown } } } }).fields\n ?._tag?.ast?.literal\n if (typeof literal === 'string') return literal\n const name = (constructor as { readonly name?: unknown }).name\n return typeof name === 'string' ? name : 'unknown'\n}\n\nexport interface SurfaceViewDescription {\n readonly name: string\n readonly observes: ReturnType<typeof Surface.inspect>['dependencies']\n readonly metadata: ReadonlyArray<MetadataSummary>\n /** Emitted Message tags, not constructors, so the value stays serializable. */\n readonly emits: ReadonlyArray<string>\n readonly slots: ReturnType<typeof Slots.describe>['slots']\n readonly mixins: ReadonlyArray<string>\n}\n\n/**\n * One serializable description of a Surface and the SlotView that renders it:\n * what it observes and may emit, and where Style/Behavior attach. No functions,\n * so it can be committed, diffed, or handed to DevTools and agent tooling.\n */\nexport const describe = <Root, Model, Message, Params, Slots_>(\n surface: Surface<Root, Model, Message, Params>,\n params: Params,\n view: SlotView.SlotView<Slots_, Model, Message>,\n): SurfaceViewDescription => {\n const inspection = Surface.inspect(surface, params)\n const ui = inspect(view)\n return {\n name: ui.name === '' ? inspection.name : ui.name,\n observes: inspection.dependencies,\n metadata: inspection.metadata,\n emits: inspection.emits.map(constructorTag),\n slots: ui.slots,\n mixins: ui.mixins,\n }\n}\n\n/** Deterministic Markdown for a description; stable key order, no timestamps. */\nexport const toMarkdown = (description: SurfaceViewDescription): string => {\n const lines: string[] = [`# ${description.name}`, '', '## Observes', '']\n for (const path of description.observes) lines.push(`- \\`${path.join('.')}\\``)\n lines.push('', '## May emit', '')\n for (const tag of description.emits) lines.push(`- \\`${tag}\\``)\n lines.push('', '## Slots', '')\n for (const [name, slot] of Object.entries(description.slots)) {\n const events = slot.events.length === 0 ? '' : ` (events: ${slot.events.join(', ')})`\n lines.push(`- \\`${name}\\` — ${slot.capability}${events}`)\n }\n lines.push('', '## Mixins', '')\n for (const name of description.mixins) lines.push(`- \\`${name}\\``)\n return lines.join('\\n')\n}\n"],"mappings":";;;AAaA,MAAa,UACX,SACA,OACA,QACA,YAEA,SAAS,OAA+B,OAAO,QAAQ,EACrD,MAAM,SAAS,QAAQ,QAAQ,KACjC,CAAC;;;;;;;AAQH,MAAa,cAET,UAED,OAAO,MACN,KAAK,OAAO,CAAoC;;;;;;AAOpD,MAAa,UACX,MACA,SACA,QACA,SAEA,QAAQ,SAAS,SAAS,QAAQ,WAAW,IAAI,CAAC,CAAC,CAAC,MAAM,SAAS,aAAsB,CAAC;;;;;;AAc5F,MAAa,WACX,UAC2B;CAC3B,MAAM,KAAK,QAAQ;CACnB,OAAO,MAAM,SAAS,KAAK,KAAwD,CAAC,CAAC;CACrF,QAAQ,KAAK,OAAO,KAAI,UAAS,MAAM,IAAI;AAC7C;;AAGA,MAAM,kBAAkB,gBAAiC;CACvD,MAAM,UAAW,YAAwE,QACrF,MAAM,KAAK;CACf,IAAI,OAAO,YAAY,UAAU,OAAO;CACxC,MAAM,OAAQ,YAA4C;CAC1D,OAAO,OAAO,SAAS,WAAW,OAAO;AAC3C;;;;;;AAiBA,MAAa,YACX,SACA,QACA,SAC2B;CAC3B,MAAM,aAAa,QAAQ,QAAQ,SAAS,MAAM;CAClD,MAAM,KAAK,QAAQ,IAAI;CACvB,OAAO;EACL,MAAM,GAAG,SAAS,KAAK,WAAW,OAAO,GAAG;EAC5C,UAAU,WAAW;EACrB,UAAU,WAAW;EACrB,OAAO,WAAW,MAAM,IAAI,cAAc;EAC1C,OAAO,GAAG;EACV,QAAQ,GAAG;CACb;AACF;;AAGA,MAAa,cAAc,gBAAgD;CACzE,MAAM,QAAkB;EAAC,KAAK,YAAY;EAAQ;EAAI;EAAe;CAAE;CACvE,KAAK,MAAM,QAAQ,YAAY,UAAU,MAAM,KAAK,OAAO,KAAK,KAAK,GAAG,EAAE,GAAG;CAC7E,MAAM,KAAK,IAAI,eAAe,EAAE;CAChC,KAAK,MAAM,OAAO,YAAY,OAAO,MAAM,KAAK,OAAO,IAAI,GAAG;CAC9D,MAAM,KAAK,IAAI,YAAY,EAAE;CAC7B,KAAK,MAAM,CAAC,MAAM,SAAS,OAAO,QAAQ,YAAY,KAAK,GAAG;EAC5D,MAAM,SAAS,KAAK,OAAO,WAAW,IAAI,KAAK,aAAa,KAAK,OAAO,KAAK,IAAI,EAAE;EACnF,MAAM,KAAK,OAAO,KAAK,OAAO,KAAK,aAAa,QAAQ;CAC1D;CACA,MAAM,KAAK,IAAI,aAAa,EAAE;CAC9B,KAAK,MAAM,QAAQ,YAAY,QAAQ,MAAM,KAAK,OAAO,KAAK,GAAG;CACjE,OAAO,MAAM,KAAK,IAAI;AACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foldkit-mixins-surface",
3
- "version": "0.6.9",
3
+ "version": "0.8.0",
4
4
  "description": "Bridge foldkit-surface's projected Model and Message subset to foldkit-mixins SlotViews.",
5
5
  "keywords": [
6
6
  "foldkit",
@@ -28,8 +28,8 @@
28
28
  "exports": {
29
29
  ".": {
30
30
  "foldkit-plus:source": "./src/index.ts",
31
- "types": "./dist/index.d.mts",
32
- "import": "./dist/index.mjs"
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.js"
33
33
  }
34
34
  },
35
35
  "files": [
@@ -38,24 +38,24 @@
38
38
  "LICENSE"
39
39
  ],
40
40
  "peerDependencies": {
41
- "effect": "^4.0.0",
42
- "foldkit": "^0.169.0",
43
- "foldkit-mixins": "^0.20.0",
44
- "foldkit-surface": "^0.10.2"
41
+ "effect": "^4.1.0",
42
+ "foldkit": "^0.170.0",
43
+ "foldkit-mixins": "^0.22.0",
44
+ "foldkit-surface": "^0.12.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@effect/platform-browser": "^4.0.5",
48
- "@foldkit/ui": "0.169.0",
49
- "effect": "^4.0.5",
50
- "foldkit": "0.169.0",
47
+ "@effect/platform-browser": "^4.1.1",
48
+ "@foldkit/ui": "0.170.0",
49
+ "effect": "^4.1.1",
50
+ "foldkit": "0.170.0",
51
51
  "tsdown": "^0.23.1",
52
52
  "typescript": "7.0.2",
53
- "foldkit-mixins": "0.20.0",
54
- "foldkit-mixins-ui": "0.21.0",
55
- "foldkit-surface": "0.10.2"
53
+ "foldkit-mixins": "0.22.0",
54
+ "foldkit-mixins-ui": "0.23.0",
55
+ "foldkit-surface": "0.12.0"
56
56
  },
57
57
  "scripts": {
58
- "build": "tsdown",
58
+ "build": "node ../../scripts/declarations.mjs . && tsdown && node ../../scripts/declared-any.mjs .",
59
59
  "typecheck": "tsc -b"
60
60
  }
61
61
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/surfaceView.ts"],"mappings":";;;;;;qBAaa,SAAU,MAAM,OAAO,SAAS,QAAQ,QAAM,SAChD,QAAQ,MAAM,OAAO,SAAS,SAAO,OACvC,QAAM,QACL,eAAe,QAAQ,OAAO,UAAQ;WACzB;MACpB,SAAS,SAAS,QAAQ,OAAO;;;;;;;qBAWvB,aACV,QAAQ,OAAO,SAAO,MACf,SAAS,SAAS,QAAQ,OAAO,aACtC,SAAS,OAAO;;;;;;qBASR,SAAU,MAAM,OAAO,SAAS,QAAQ,QAAM,MACnD,SAAS,SAAS,QAAQ,OAAO,UAAQ,SACtC,QAAQ,MAAM,OAAO,SAAS,SAAO,QACtC,QAAM,MACR,SACL;UAGc;;WAEN;WACA,OAAO,kBAAkB,MAAM;WAC/B,QAAQ;;;;;;;qBAQN,UAAW,QAAQ,OAAO,SAAO,MACtC,SAAS,SAAS,QAAQ,OAAO,aACtC;UAec;WACN;WACA,UAAU,kBAAkB,QAAQ;WACpC,UAAU,cAAc;;WAExB,OAAO;WACP,OAAO,kBAAkB,MAAM;WAC/B,QAAQ;;;;;;;qBAQN,WAAY,MAAM,OAAO,SAAS,QAAQ,QAAM,SAClD,QAAQ,MAAM,OAAO,SAAS,SAAO,QACtC,QAAM,MACR,SAAS,SAAS,QAAQ,OAAO,aACtC;;qBAcU,aAAU,aAAiB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/surfaceView.ts"],"sourcesContent":["/**\n * Binds a Surface's projected Model and Message subset to a SlotView.\n *\n * The renderer's input is the Surface's projected Model, so Style and Behavior\n * contributions can only read what the Surface projects. Its builder is typed\n * with the Surface's Message subset, so a Behavior cannot emit a Message the\n * Surface does not expose. The returned value is an ordinary `SlotView`, so the\n * core attach/pipe algebra applies unchanged.\n */\nimport type { Html, HtmlBuilder } from 'foldkit/html'\nimport { Surface, type MetadataSummary, type Renderer } from 'foldkit-surface'\nimport { Slots, SlotView, type SlotViewRender } from 'foldkit-mixins'\n\nexport const define = <Root, Model, Message, Params, Slots_>(\n surface: Surface<Root, Model, Message, Params>,\n slots: Slots_,\n render: SlotViewRender<Slots_, Model, Message>,\n options?: { readonly name?: string },\n): SlotView.SlotView<Slots_, Model, Message> =>\n SlotView.define<Slots_, Model, Message>(slots, render, {\n name: options?.name ?? surface.name,\n })\n\n/**\n * Adapts a SlotView to a Surface renderer. `Surface.view` hands a renderer a\n * `ViewBuilder` — the real builder with its `MessageUniverse` phantom removed —\n * and this is the matching boundary cast, sound because the renderer only\n * constructs the Surface's Message subset.\n */\nexport const toRenderer =\n <Slots_, Model, Message>(\n view: SlotView.SlotView<Slots_, Model, Message>,\n ): Renderer<Model, Message> =>\n (model, h) =>\n view(model, h as unknown as HtmlBuilder<Message>)\n\n/**\n * Renders a SlotView for `surface`'s projection of `root` with an inert\n * builder: no runtime, so handlers are built but never dispatched. For demos,\n * tests, and static output.\n */\nexport const render = <Root, Model, Message, Params, Slots_>(\n view: SlotView.SlotView<Slots_, Model, Message>,\n surface: Surface<Root, Model, Message, Params>,\n params: Params,\n root: Root,\n): Html =>\n Surface.rootView(surface, params, toRenderer(view))(root, SlotView.inertBuilder<Message>())\n\nexport interface SurfaceViewInspection {\n /** The SlotView's name, defaulted from the Surface's name. */\n readonly name: string\n readonly slots: ReturnType<typeof Slots.describe>['slots']\n readonly mixins: ReadonlyArray<string>\n}\n\n/**\n * Serializable metadata for DevTools and docs: the published slots and the\n * names of the attached Mixins, with no functions. It composes with\n * `Surface.inspect`, which reports what the Surface observes and emits.\n */\nexport const inspect = <Slots_, Model, Message>(\n view: SlotView.SlotView<Slots_, Model, Message>,\n): SurfaceViewInspection => ({\n name: view.name ?? '',\n slots: Slots.describe(view.slots as unknown as Parameters<typeof Slots.describe>[0]).slots,\n mixins: view.mixins.map(mixin => mixin.name),\n})\n\n/** Reads the tag off a Foldkit Message constructor without constructing one. */\nconst constructorTag = (constructor: unknown): string => {\n const literal = (constructor as { fields?: { _tag?: { ast?: { literal?: unknown } } } }).fields\n ?._tag?.ast?.literal\n if (typeof literal === 'string') return literal\n const name = (constructor as { readonly name?: unknown }).name\n return typeof name === 'string' ? name : 'unknown'\n}\n\nexport interface SurfaceViewDescription {\n readonly name: string\n readonly observes: ReturnType<typeof Surface.inspect>['dependencies']\n readonly metadata: ReadonlyArray<MetadataSummary>\n /** Emitted Message tags, not constructors, so the value stays serializable. */\n readonly emits: ReadonlyArray<string>\n readonly slots: ReturnType<typeof Slots.describe>['slots']\n readonly mixins: ReadonlyArray<string>\n}\n\n/**\n * One serializable description of a Surface and the SlotView that renders it:\n * what it observes and may emit, and where Style/Behavior attach. No functions,\n * so it can be committed, diffed, or handed to DevTools and agent tooling.\n */\nexport const describe = <Root, Model, Message, Params, Slots_>(\n surface: Surface<Root, Model, Message, Params>,\n params: Params,\n view: SlotView.SlotView<Slots_, Model, Message>,\n): SurfaceViewDescription => {\n const inspection = Surface.inspect(surface, params)\n const ui = inspect(view)\n return {\n name: ui.name === '' ? inspection.name : ui.name,\n observes: inspection.dependencies,\n metadata: inspection.metadata,\n emits: inspection.emits.map(constructorTag),\n slots: ui.slots,\n mixins: ui.mixins,\n }\n}\n\n/** Deterministic Markdown for a description; stable key order, no timestamps. */\nexport const toMarkdown = (description: SurfaceViewDescription): string => {\n const lines: string[] = [`# ${description.name}`, '', '## Observes', '']\n for (const path of description.observes) lines.push(`- \\`${path.join('.')}\\``)\n lines.push('', '## May emit', '')\n for (const tag of description.emits) lines.push(`- \\`${tag}\\``)\n lines.push('', '## Slots', '')\n for (const [name, slot] of Object.entries(description.slots)) {\n const events = slot.events.length === 0 ? '' : ` (events: ${slot.events.join(', ')})`\n lines.push(`- \\`${name}\\` — ${slot.capability}${events}`)\n }\n lines.push('', '## Mixins', '')\n for (const name of description.mixins) lines.push(`- \\`${name}\\``)\n return lines.join('\\n')\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAa,UACX,SACA,OACA,QACA,YAEA,SAAS,OAA+B,OAAO,QAAQ,EACrD,MAAM,SAAS,QAAQ,QAAQ,KACjC,CAAC;;;;;;;AAQH,MAAa,cAET,UAED,OAAO,MACN,KAAK,OAAO,CAAoC;;;;;;AAOpD,MAAa,UACX,MACA,SACA,QACA,SAEA,QAAQ,SAAS,SAAS,QAAQ,WAAW,IAAI,CAAC,CAAC,CAAC,MAAM,SAAS,aAAsB,CAAC;;;;;;AAc5F,MAAa,WACX,UAC2B;CAC3B,MAAM,KAAK,QAAQ;CACnB,OAAO,MAAM,SAAS,KAAK,KAAwD,CAAC,CAAC;CACrF,QAAQ,KAAK,OAAO,KAAI,UAAS,MAAM,IAAI;AAC7C;;AAGA,MAAM,kBAAkB,gBAAiC;CACvD,MAAM,UAAW,YAAwE,QACrF,MAAM,KAAK;CACf,IAAI,OAAO,YAAY,UAAU,OAAO;CACxC,MAAM,OAAQ,YAA4C;CAC1D,OAAO,OAAO,SAAS,WAAW,OAAO;AAC3C;;;;;;AAiBA,MAAa,YACX,SACA,QACA,SAC2B;CAC3B,MAAM,aAAa,QAAQ,QAAQ,SAAS,MAAM;CAClD,MAAM,KAAK,QAAQ,IAAI;CACvB,OAAO;EACL,MAAM,GAAG,SAAS,KAAK,WAAW,OAAO,GAAG;EAC5C,UAAU,WAAW;EACrB,UAAU,WAAW;EACrB,OAAO,WAAW,MAAM,IAAI,cAAc;EAC1C,OAAO,GAAG;EACV,QAAQ,GAAG;CACb;AACF;;AAGA,MAAa,cAAc,gBAAgD;CACzE,MAAM,QAAkB;EAAC,KAAK,YAAY;EAAQ;EAAI;EAAe;CAAE;CACvE,KAAK,MAAM,QAAQ,YAAY,UAAU,MAAM,KAAK,OAAO,KAAK,KAAK,GAAG,EAAE,GAAG;CAC7E,MAAM,KAAK,IAAI,eAAe,EAAE;CAChC,KAAK,MAAM,OAAO,YAAY,OAAO,MAAM,KAAK,OAAO,IAAI,GAAG;CAC9D,MAAM,KAAK,IAAI,YAAY,EAAE;CAC7B,KAAK,MAAM,CAAC,MAAM,SAAS,OAAO,QAAQ,YAAY,KAAK,GAAG;EAC5D,MAAM,SAAS,KAAK,OAAO,WAAW,IAAI,KAAK,aAAa,KAAK,OAAO,KAAK,IAAI,EAAE;EACnF,MAAM,KAAK,OAAO,KAAK,OAAO,KAAK,aAAa,QAAQ;CAC1D;CACA,MAAM,KAAK,IAAI,aAAa,EAAE;CAC9B,KAAK,MAAM,QAAQ,YAAY,QAAQ,MAAM,KAAK,OAAO,KAAK,GAAG;CACjE,OAAO,MAAM,KAAK,IAAI;AACxB"}
@@ -1,12 +0,0 @@
1
- // \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __exportAll = (all, no_symbols) => {
4
- let target = {};
5
- for (var name in all) __defProp(target, name, {
6
- get: all[name],
7
- enumerable: true
8
- });
9
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
- return target;
11
- };
12
- export { __exportAll as t };