@kbach/react 0.5.38 → 0.5.40

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.
@@ -2,13 +2,18 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-EJFQKJPT.mjs";
6
- import "./chunk-W7UBSRE5.mjs";
7
- import "./chunk-NWVL4BES.mjs";
5
+ } from "./chunk-6NHHYHNV.mjs";
6
+ import "./chunk-EYPBYQSB.mjs";
7
+ import "./chunk-IZ3W6G3V.mjs";
8
8
 
9
9
  // src/jsx-dev-runtime.tsx
10
- function jsxDEV(type, props, key, isStaticChildren, _source, _self) {
11
- return (isStaticChildren ? jsxs : jsx)(type, props, key);
10
+ function jsxDEV(type, props, key, isStaticChildren, source, self) {
11
+ const element = (isStaticChildren ? jsxs : jsx)(type, props, key);
12
+ if (source && element && typeof element === "object" && "_source" in Object.getPrototypeOf(element ?? {})) {
13
+ element._source = source;
14
+ element._self = self;
15
+ }
16
+ return element;
12
17
  }
13
18
  export {
14
19
  Fragment,
@@ -9,9 +9,8 @@ export { Fragment, JSX } from 'react';
9
9
  * built-ins, HTML elements on web, and any third-party library component.
10
10
  */
11
11
 
12
- /** jsx() — elements with 0–1 child or dynamic key. */
12
+ declare function _invalidateDefaultFontCache(): void;
13
13
  declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
14
- /** jsxs() — elements with 2+ static children. Children array is compile-time stable. */
15
14
  declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
16
15
 
17
- export { jsx, jsxs };
16
+ export { _invalidateDefaultFontCache, jsx, jsxs };
@@ -9,9 +9,8 @@ export { Fragment, JSX } from 'react';
9
9
  * built-ins, HTML elements on web, and any third-party library component.
10
10
  */
11
11
 
12
- /** jsx() — elements with 0–1 child or dynamic key. */
12
+ declare function _invalidateDefaultFontCache(): void;
13
13
  declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
14
- /** jsxs() — elements with 2+ static children. Children array is compile-time stable. */
15
14
  declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
16
15
 
17
- export { jsx, jsxs };
16
+ export { _invalidateDefaultFontCache, jsx, jsxs };