@ecopages/kitajs 0.2.0-alpha.16 → 0.2.0-alpha.18
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/CHANGELOG.md +2 -0
- package/README.md +6 -0
- package/package.json +2 -2
- package/src/kitajs-renderer.js +2 -2
- package/src/kitajs.constants.d.ts +1 -0
- package/src/kitajs.constants.js +4 -0
- package/src/kitajs.plugin.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,7 @@ All notable changes to `@ecopages/kitajs` are documented here.
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
11
|
- Fixed Kita full-route and direct `ctx.render()` rendering to stay on the renderer-owned page/layout/document path while resolving mixed boundaries inside the owning renderer.
|
|
12
|
+
- Fixed Kita boundary payload compatibility coverage and removed the plugin/renderer integration-name import cycle.
|
|
12
13
|
|
|
13
14
|
### Documentation
|
|
14
15
|
|
|
@@ -17,3 +18,4 @@ All notable changes to `@ecopages/kitajs` are documented here.
|
|
|
17
18
|
### Tests
|
|
18
19
|
|
|
19
20
|
- Updated integration coverage for explicit boundary composition and Node and esbuild compatibility.
|
|
21
|
+
- Added renderer-level coverage for the boundary payload compatibility contract.
|
package/README.md
CHANGED
|
@@ -33,3 +33,9 @@ export default config;
|
|
|
33
33
|
## Mixed Rendering
|
|
34
34
|
|
|
35
35
|
Kita works well as the outer renderer in mixed apps. When a Kita-owned page encounters a nested boundary from another integration, Ecopages resolves that boundary with its owning renderer and inserts the resulting HTML back into the Kita shell.
|
|
36
|
+
|
|
37
|
+
Important:
|
|
38
|
+
|
|
39
|
+
- Components that may render foreign children must declare those children in `config.dependencies.components`.
|
|
40
|
+
- Ecopages validates mixed-renderer ownership from declared dependencies during render preparation instead of inferring every foreign child from rendered HTML.
|
|
41
|
+
- Kita remains an HTML-first outer shell. Same-integration Kita children do not go through a separate universal child serialization contract.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecopages/kitajs",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.18",
|
|
4
4
|
"description": "Kitajs plugin for Ecopages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ecopages",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"directory": "packages/integrations/kitajs"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@ecopages/core": "0.2.0-alpha.
|
|
20
|
+
"@ecopages/core": "0.2.0-alpha.18",
|
|
21
21
|
"@kitajs/html": "^4.1.0",
|
|
22
22
|
"@kitajs/ts-html-plugin": "^4.0.1"
|
|
23
23
|
}
|
package/src/kitajs-renderer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IntegrationRenderer } from "@ecopages/core/route-renderer/integration-renderer";
|
|
2
|
-
import {
|
|
2
|
+
import { KITAJS_PLUGIN_NAME } from "./kitajs.constants.js";
|
|
3
3
|
class KitaRenderer extends IntegrationRenderer {
|
|
4
|
-
name =
|
|
4
|
+
name = KITAJS_PLUGIN_NAME;
|
|
5
5
|
/**
|
|
6
6
|
* Renders a Kita component boundary for component-level orchestration.
|
|
7
7
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KITAJS_PLUGIN_NAME = "kitajs";
|
package/src/kitajs.plugin.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IntegrationPlugin } from "@ecopages/core/plugins/integration-plugin";
|
|
2
2
|
import { KitaRenderer } from "./kitajs-renderer.js";
|
|
3
|
-
|
|
3
|
+
import { KITAJS_PLUGIN_NAME } from "./kitajs.constants.js";
|
|
4
|
+
const PLUGIN_NAME = KITAJS_PLUGIN_NAME;
|
|
4
5
|
class KitaHtmlPlugin extends IntegrationPlugin {
|
|
5
6
|
renderer = KitaRenderer;
|
|
6
7
|
constructor(options) {
|