@cloudwerk/ui 0.15.1 → 0.15.3

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.
@@ -1,5 +1,5 @@
1
1
  // src/clientWrapper.tsx
2
- import { serializeProps, escapeHtmlAttribute } from "@cloudwerk/utils";
2
+ import { serializeProps } from "@cloudwerk/utils";
3
3
  import { jsx } from "hono/jsx/jsx-runtime";
4
4
  function createClientComponentWrapper(Component, meta) {
5
5
  if (typeof window !== "undefined") {
@@ -9,12 +9,11 @@ function createClientComponentWrapper(Component, meta) {
9
9
  return function WrappedClientComponent(props) {
10
10
  const rendered = Component(props);
11
11
  const serializedProps = serializeProps(props);
12
- const escapedProps = escapeHtmlAttribute(serializedProps);
13
12
  return /* @__PURE__ */ jsx(
14
13
  "div",
15
14
  {
16
15
  "data-hydrate-id": componentId,
17
- "data-hydrate-props": escapedProps,
16
+ "data-hydrate-props": serializedProps,
18
17
  "data-hydrate-bundle": bundlePath,
19
18
  children: rendered
20
19
  }
package/dist/client.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createClientComponentWrapper
3
- } from "./chunk-C4MFDUV4.js";
3
+ } from "./chunk-A22YCEJM.js";
4
4
  export {
5
5
  createClientComponentWrapper
6
6
  };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createClientComponentWrapper
3
- } from "./chunk-C4MFDUV4.js";
3
+ } from "./chunk-A22YCEJM.js";
4
4
 
5
5
  // src/renderers/hono-jsx.ts
6
6
  import { renderToReadableStream } from "hono/jsx/streaming";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudwerk/ui",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "description": "UI rendering abstraction for Cloudwerk",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,8 +22,8 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@cloudwerk/utils": "0.6.1",
26
- "@cloudwerk/core": "0.15.1"
25
+ "@cloudwerk/core": "0.15.3",
26
+ "@cloudwerk/utils": "0.6.1"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "hono": "^4.0.0",