@saykit/react 0.0.0-beta-20260729112211 → 0.0.0-beta-20260729131250

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/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren, ReactElement, ReactNode } from "react";
2
- import { Disallow, NumeralOptions, SelectOptions } from "saykit";
2
+ import { Disallow, Named, NumeralOptions, SelectOptions } from "saykit";
3
3
  //#region src/types.d.ts
4
4
  type PropsWithJSXSafeKeys<T> = { [K in keyof T as K extends number | `${number}${string}` ? `_${K}` : K extends `_${number}${string}` ? never : K]: T[K]; };
5
5
  //#endregion
@@ -34,7 +34,7 @@ declare namespace Say {
34
34
  * @remark This is a macro and must be used with the relevant saykit plugin
35
35
  */
36
36
  function Plural(props: {
37
- _: number;
37
+ _: number | Named<number>;
38
38
  } & PropsWithJSXSafeKeys<Disallow<NumeralOptions, 'id' | 'context'>>): ReactNode;
39
39
  /**
40
40
  * Define an ordinal message (e.g. "1st", "2nd", "3rd").
@@ -56,7 +56,7 @@ declare namespace Say {
56
56
  * @remark This is a macro and must be used with the relevant saykit plugin
57
57
  */
58
58
  function Ordinal(props: {
59
- _: number;
59
+ _: number | Named<number>;
60
60
  } & PropsWithJSXSafeKeys<Disallow<NumeralOptions, 'id' | 'context'>>): ReactNode;
61
61
  /**
62
62
  * Define a select message, useful for handling gender, status, or other categories.
@@ -77,7 +77,7 @@ declare namespace Say {
77
77
  * @remark This is a macro and must be used with the relevant saykit plugin
78
78
  */
79
79
  function Select(props: {
80
- _: string;
80
+ _: string | Named<string>;
81
81
  } & PropsWithJSXSafeKeys<Disallow<SelectOptions, 'id' | 'context'>>): ReactNode;
82
82
  }
83
83
  //#endregion
package/dist/index.mjs CHANGED
@@ -73,7 +73,7 @@ function Say(props) {
73
73
  const values = resolveValuePropKeys(rest);
74
74
  return createElement(Renderer, {
75
75
  html: say.call({
76
- ...values,
76
+ ...rest,
77
77
  id
78
78
  }),
79
79
  whitespace,
@@ -73,7 +73,7 @@ function Say(props) {
73
73
  const values = resolveValuePropKeys(rest);
74
74
  return createElement(Renderer, {
75
75
  html: say.call({
76
- ...values,
76
+ ...rest,
77
77
  id
78
78
  }),
79
79
  whitespace,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saykit/react",
3
- "version": "0.0.0-beta-20260729112211",
3
+ "version": "0.0.0-beta-20260729131250",
4
4
  "description": "React integration for saykit, i18n hooks and components",
5
5
  "keywords": [
6
6
  "i18n",
@@ -52,11 +52,11 @@
52
52
  "jsdom": "^29.1.1",
53
53
  "react": "^19.2.8",
54
54
  "react-dom": "^19.2.8",
55
- "saykit": "^0.0.0-beta-20260729112211"
55
+ "saykit": "^0.0.0-beta-20260729131250"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": "*",
59
- "saykit": "0.0.0-beta-20260729112211"
59
+ "saykit": "0.0.0-beta-20260729131250"
60
60
  },
61
61
  "scripts": {
62
62
  "check": "tsc --noEmit",