@ecopages/lit 0.2.0-alpha.33 → 0.2.0-alpha.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecopages/lit",
3
- "version": "0.2.0-alpha.33",
3
+ "version": "0.2.0-alpha.35",
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.33",
34
+ "@ecopages/core": "0.2.0-alpha.34",
35
35
  "@lit-labs/ssr": "^3.3.0",
36
36
  "@lit-labs/ssr-client": "^1.1.7",
37
37
  "lit": "^3.2.1"
@@ -17,7 +17,10 @@ class LitRenderer extends IntegrationRenderer {
17
17
  if (children === void 0) {
18
18
  return void 0;
19
19
  }
20
- let renderedChildren = typeof children === "string" ? children : await renderLitValueToString(children);
20
+ if (typeof children !== "string") {
21
+ return children;
22
+ }
23
+ let renderedChildren = children;
21
24
  renderedChildren = await this.foreignSubtreeExecutionService.resolveQueuedTokens(
22
25
  renderedChildren,
23
26
  queuedResolutionsByToken,
@@ -40,6 +43,12 @@ class LitRenderer extends IntegrationRenderer {
40
43
  queuedResolutionsByToken,
41
44
  resolveToken
42
45
  );
46
+ if (typeof renderedChildren !== "string") {
47
+ return {
48
+ assets: [],
49
+ children: renderedChildren
50
+ };
51
+ }
43
52
  return {
44
53
  assets: [],
45
54
  html: renderedChildren