@saykit/react 0.0.0-beta-20260717183214 → 0.0.0-beta-20260720032009

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  > React integration for [SayKit](https://saykit.js.org).
4
4
 
5
+ [![Coverage](https://codecov.io/gh/k0d13/saykit/graph/badge.svg?flag=integration-react)](https://codecov.io/gh/k0d13/saykit?flags%5B0%5D=integration-react)
6
+
5
7
  A `<Say>` component for rendering translated content in server and client components, a `<SayProvider>` and `useSay()` for client trees, and a small server runtime (`setSay`, `getSay`, `unstable_createWithSay`).
6
8
 
7
9
  ## Install
@@ -2,7 +2,9 @@
2
2
  //#region src/components/renderer.ts
3
3
  function Renderer({ html, components, whitespace = true }) {
4
4
  function getComponent(tag) {
5
- if (typeof components === "function") return components(tag) ?? tag ?? Fragment;
5
+ if (typeof components === "function")
6
+ /* v8 ignore next */
7
+ return components(tag) ?? tag ?? Fragment;
6
8
  return tag && tag in components ? components[tag] : Fragment;
7
9
  }
8
10
  let nodeKey = 0;
@@ -2,7 +2,9 @@ import { getSay as GET_SAY } from "./server.mjs";import { Fragment, cloneElement
2
2
  //#region src/components/renderer.ts
3
3
  function Renderer({ html, components, whitespace = true }) {
4
4
  function getComponent(tag) {
5
- if (typeof components === "function") return components(tag) ?? tag ?? Fragment;
5
+ if (typeof components === "function")
6
+ /* v8 ignore next */
7
+ return components(tag) ?? tag ?? Fragment;
6
8
  return tag && tag in components ? components[tag] : Fragment;
7
9
  }
8
10
  let nodeKey = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saykit/react",
3
- "version": "0.0.0-beta-20260717183214",
3
+ "version": "0.0.0-beta-20260720032009",
4
4
  "description": "React integration for saykit, i18n hooks and components",
5
5
  "keywords": [
6
6
  "i18n",
@@ -27,7 +27,7 @@
27
27
  ".": {
28
28
  "types": "./dist/index.d.mts",
29
29
  "react-server": "./dist/index.server.mjs",
30
- "default": "./dist/index.client.mjs"
30
+ "default": "./dist/index.mjs"
31
31
  },
32
32
  "./client": {
33
33
  "types": "./dist/client.d.mts",
@@ -47,17 +47,17 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/react": "^19.2.17",
50
+ "@types/react-dom": "^19.2.3",
50
51
  "react": "^19.2.7",
51
- "saykit": "^0.0.0-beta-20260717183214"
52
+ "react-dom": "^19.2.7",
53
+ "saykit": "^0.0.0-beta-20260720032009"
52
54
  },
53
55
  "peerDependencies": {
54
56
  "react": "*",
55
- "saykit": "0.0.0-beta-20260717183214"
57
+ "saykit": "0.0.0-beta-20260720032009"
56
58
  },
57
59
  "scripts": {
58
60
  "check": "tsc --noEmit",
59
- "build": "tsdown",
60
- "test": "vitest",
61
- "coverage": "vitest run --coverage"
61
+ "build": "tsdown"
62
62
  }
63
63
  }