kopular 0.17.1 → 0.17.2

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.
Files changed (2) hide show
  1. package/LLM.md +9 -0
  2. package/package.json +1 -1
package/LLM.md CHANGED
@@ -98,6 +98,12 @@ extern class VElement {
98
98
  (Event) => void OnChange { get; set; }
99
99
  void AppendChild(VElement child);
100
100
  void SetAttr(string name, string value);
101
+ // Embeds a live child Component as this slot's content — see "Nested
102
+ // component composition" below. Declared taking a concrete Component
103
+ // rather than Kopular's own Mountable interface: extern declarations
104
+ // don't model inheritance/interface conformance between separate extern
105
+ // classes, and every real caller passes a Component subclass anyway.
106
+ static VElement Mount(Component component);
101
107
  } from "kopular/velement";
102
108
 
103
109
  extern class Component {
@@ -106,6 +112,9 @@ extern class Component {
106
112
  virtual void AfterRender(Element root); // see "Component" below
107
113
  void Mount(Element parent);
108
114
  void Update();
115
+ // Called once when this component is removed from its parent's tree via
116
+ // VElement.Mount above — see "Nested component composition" below.
117
+ virtual void OnUnmount();
109
118
  } from "kopular/component";
110
119
 
111
120
  extern class Router {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kopular",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "Kopular: a small component framework for KopScript — components, reactive state, constructor-injected services, routing, real compiled templates, and HTTP, with no DI container",
5
5
  "type": "module",
6
6
  "license": "MIT",