@ecopages/lit 0.2.0-alpha.16 → 0.2.0-alpha.17

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 CHANGED
@@ -9,6 +9,7 @@ All notable changes to `@ecopages/lit` are documented here.
9
9
  ### Bug Fixes
10
10
 
11
11
  - Fixed Lit document-shell composition, declarative shadow DOM SSR, nested child serialization, lazy preload handling, explicit render paths, and mixed-renderer boundary resolution.
12
+ - Fixed Lit boundary payload compatibility coverage and removed the plugin/renderer integration-name import cycle.
12
13
 
13
14
  ### Documentation
14
15
 
@@ -17,6 +18,7 @@ All notable changes to `@ecopages/lit` 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.
20
22
 
21
23
  ### Refactoring
22
24
 
package/README.md CHANGED
@@ -50,3 +50,9 @@ This setup lets Kita own the page shell while Lit owns the nested Lit component
50
50
  ## Mixed Rendering
51
51
 
52
52
  When a non-Lit render pass enters a Lit-owned component boundary, Ecopages hands that boundary to the Lit renderer. That keeps Lit SSR in charge of custom elements, declarative shadow DOM, and Lit-managed child content.
53
+
54
+ Important:
55
+
56
+ - Components that may render foreign children must declare those children in `config.dependencies.components`.
57
+ - Ecopages validates ownership from declared dependencies during render preparation instead of relying on post-render HTML discovery.
58
+ - Lit keeps slot transport, shadow-root handling, and SSR preload behavior inside the Lit renderer.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecopages/lit",
3
- "version": "0.2.0-alpha.16",
3
+ "version": "0.2.0-alpha.17",
4
4
  "description": "Ecopages lit integration",
5
5
  "keywords": [
6
6
  "ecopages",
@@ -31,7 +31,7 @@
31
31
  "directory": "packages/integrations/lit"
32
32
  },
33
33
  "peerDependencies": {
34
- "@ecopages/core": "0.2.0-alpha.16",
34
+ "@ecopages/core": "0.2.0-alpha.17",
35
35
  "@lit-labs/ssr": "^3.3.0",
36
36
  "@lit-labs/ssr-client": "^1.1.7",
37
37
  "lit": "^3.2.1"
@@ -1,7 +1,7 @@
1
1
  import "@lit-labs/ssr/lib/install-global-dom-shim.js";
2
2
  import { IntegrationRenderer } from "@ecopages/core/route-renderer/integration-renderer";
3
3
  import { LitSsrLazyPreloader } from "./lit-ssr-lazy-preloader.js";
4
- import { PLUGIN_NAME } from "./lit.plugin.js";
4
+ import { LIT_PLUGIN_NAME } from "./lit.constants.js";
5
5
  import {
6
6
  injectLitRenderedChildren,
7
7
  LIT_COMPONENT_CHILDREN_SLOT_MARKER,
@@ -9,7 +9,7 @@ import {
9
9
  renderLitValueToString
10
10
  } from "./utils/lit-html-rendering.js";
11
11
  class LitRenderer extends IntegrationRenderer {
12
- name = PLUGIN_NAME;
12
+ name = LIT_PLUGIN_NAME;
13
13
  async resolveQueuedBoundaryChildren(children, queuedResolutionsByToken, resolveToken) {
14
14
  if (children === void 0) {
15
15
  return void 0;
@@ -0,0 +1 @@
1
+ export declare const LIT_PLUGIN_NAME = "lit";
@@ -0,0 +1,4 @@
1
+ const LIT_PLUGIN_NAME = "lit";
2
+ export {
3
+ LIT_PLUGIN_NAME
4
+ };
package/src/lit.plugin.js CHANGED
@@ -2,8 +2,9 @@ import "./console.js";
2
2
  import { IntegrationPlugin } from "@ecopages/core/plugins/integration-plugin";
3
3
  import { AssetFactory } from "@ecopages/core/services/asset-processing-service";
4
4
  import { litElementHydrateScript } from "./lit-element-hydrate.js";
5
+ import { LIT_PLUGIN_NAME } from "./lit.constants.js";
5
6
  import { LitRenderer } from "./lit-renderer.js";
6
- const PLUGIN_NAME = "lit";
7
+ const PLUGIN_NAME = LIT_PLUGIN_NAME;
7
8
  class LitPlugin extends IntegrationPlugin {
8
9
  renderer = LitRenderer;
9
10
  constructor(options) {