@interlucent/pixel-stream-react 0.0.1 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -8
  2. package/package.json +3 -4
package/dist/index.js CHANGED
@@ -220,14 +220,8 @@ export const PixelStream = forwardRef(function PixelStream(props, ref) {
220
220
  // On the client, also render <pixel-stream> and let effects handle attrs/events.
221
221
  return React.createElement('pixel-stream', {
222
222
  ref: elementRef,
223
- class: props.className,
224
- style: props.style
225
- ? Object.entries(props.style).reduce((css, [k, v]) => {
226
- const kebab = k.replace(/[A-Z]/g, m => `-${m.toLowerCase()}`);
227
- return `${css}${kebab}:${v};`;
228
- }, '')
229
- : undefined,
230
- // Suppress React hydration warnings for attributes set by effects
223
+ className: props.className,
224
+ style: props.style,
231
225
  suppressHydrationWarning: true,
232
226
  }, props.children);
233
227
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interlucent/pixel-stream-react",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "React bindings for the @interlucent/pixel-stream web component",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,13 +21,12 @@
21
21
  "scripts": {
22
22
  "build": "tsc -p tsconfig.build.json"
23
23
  },
24
- "dependencies": {
25
- "@interlucent/pixel-stream": "workspace:*"
26
- },
27
24
  "peerDependencies": {
25
+ "@interlucent/pixel-stream": ">=0.0.79",
28
26
  "react": ">=18.0.0"
29
27
  },
30
28
  "devDependencies": {
29
+ "@interlucent/pixel-stream": "workspace:*",
31
30
  "@types/react": "^18.0.0",
32
31
  "react": "^18.0.0",
33
32
  "typescript": "^5.3.0"