@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
|
|
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":
|
|
16
|
+
"data-hydrate-props": serializedProps,
|
|
18
17
|
"data-hydrate-bundle": bundlePath,
|
|
19
18
|
children: rendered
|
|
20
19
|
}
|
package/dist/client.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudwerk/ui",
|
|
3
|
-
"version": "0.15.
|
|
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/
|
|
26
|
-
"@cloudwerk/
|
|
25
|
+
"@cloudwerk/core": "0.15.3",
|
|
26
|
+
"@cloudwerk/utils": "0.6.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"hono": "^4.0.0",
|