@simple-table/react 3.0.0-beta.10 → 3.0.0-beta.11
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/cjs/index.js +1 -1
- package/dist/cjs/react/src/SimpleTable.d.ts +1 -4
- package/dist/cjs/react/src/utils/wrapReactRenderer.d.ts +9 -7
- package/dist/index.es.js +1 -1
- package/dist/react/src/SimpleTable.d.ts +1 -4
- package/dist/react/src/utils/wrapReactRenderer.d.ts +9 -7
- package/package.json +4 -4
- package/dist/cjs/package.json +0 -3
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime")
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.SimpleTable=()=>e.jsx("div",{children:"hello"});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { TableAPI } from "simple-table-core";
|
|
3
|
-
import type { SimpleTableReactProps } from "./types";
|
|
4
1
|
/**
|
|
5
2
|
* SimpleTable — React adapter for simple-table-core.
|
|
6
3
|
*
|
|
@@ -23,5 +20,5 @@ import type { SimpleTableReactProps } from "./types";
|
|
|
23
20
|
* footerRenderer={MyFooter}
|
|
24
21
|
* />
|
|
25
22
|
*/
|
|
26
|
-
declare const SimpleTable:
|
|
23
|
+
declare const SimpleTable: () => import("react/jsx-runtime").JSX.Element;
|
|
27
24
|
export default SimpleTable;
|
|
@@ -9,14 +9,16 @@ import React from "react";
|
|
|
9
9
|
export declare function wrapReactRenderer<P extends object>(Component: React.ComponentType<P>): (props: P) => HTMLElement;
|
|
10
10
|
/**
|
|
11
11
|
* Renders a static ReactNode into an HTMLElement.
|
|
12
|
-
* Used for
|
|
13
|
-
* the vanilla table accepts string | HTMLElement | SVGSVGElement.
|
|
14
|
-
*
|
|
15
|
-
* Note: react-dom/server (renderToStaticMarkup) is intentionally NOT used here.
|
|
16
|
-
* A static top-level import of react-dom/server causes Turbopack to throw during
|
|
17
|
-
* client bundle evaluation, making the entire @simple-table/react module fail and
|
|
18
|
-
* SimpleTable export as undefined.
|
|
12
|
+
* Used for props like tableEmptyStateRenderer that are not called with arguments.
|
|
19
13
|
*/
|
|
20
14
|
export declare function wrapReactNode(node: React.ReactNode): HTMLElement;
|
|
15
|
+
/**
|
|
16
|
+
* Converts a ReactNode to an HTML string using server-side static rendering.
|
|
17
|
+
* Used for icon props where the vanilla table expects a string | HTMLElement | SVGSVGElement.
|
|
18
|
+
* Uses renderToStaticMarkup so it works synchronously from any context — including
|
|
19
|
+
* inside a useEffect — unlike createRoot + flushSync which silently produces empty
|
|
20
|
+
* output when called during React 18's passive effects phase.
|
|
21
|
+
*/
|
|
22
|
+
export declare function reactNodeToHtmlString(node: React.ReactNode): string;
|
|
21
23
|
/** Returns true if the value is a React component (function or class). */
|
|
22
24
|
export declare function isReactComponent(value: unknown): value is React.ComponentType<any>;
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";const e=()=>r("div",{children:"hello"});export{e as SimpleTable};
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { TableAPI } from "simple-table-core";
|
|
3
|
-
import type { SimpleTableReactProps } from "./types";
|
|
4
1
|
/**
|
|
5
2
|
* SimpleTable — React adapter for simple-table-core.
|
|
6
3
|
*
|
|
@@ -23,5 +20,5 @@ import type { SimpleTableReactProps } from "./types";
|
|
|
23
20
|
* footerRenderer={MyFooter}
|
|
24
21
|
* />
|
|
25
22
|
*/
|
|
26
|
-
declare const SimpleTable:
|
|
23
|
+
declare const SimpleTable: () => import("react/jsx-runtime").JSX.Element;
|
|
27
24
|
export default SimpleTable;
|
|
@@ -9,14 +9,16 @@ import React from "react";
|
|
|
9
9
|
export declare function wrapReactRenderer<P extends object>(Component: React.ComponentType<P>): (props: P) => HTMLElement;
|
|
10
10
|
/**
|
|
11
11
|
* Renders a static ReactNode into an HTMLElement.
|
|
12
|
-
* Used for
|
|
13
|
-
* the vanilla table accepts string | HTMLElement | SVGSVGElement.
|
|
14
|
-
*
|
|
15
|
-
* Note: react-dom/server (renderToStaticMarkup) is intentionally NOT used here.
|
|
16
|
-
* A static top-level import of react-dom/server causes Turbopack to throw during
|
|
17
|
-
* client bundle evaluation, making the entire @simple-table/react module fail and
|
|
18
|
-
* SimpleTable export as undefined.
|
|
12
|
+
* Used for props like tableEmptyStateRenderer that are not called with arguments.
|
|
19
13
|
*/
|
|
20
14
|
export declare function wrapReactNode(node: React.ReactNode): HTMLElement;
|
|
15
|
+
/**
|
|
16
|
+
* Converts a ReactNode to an HTML string using server-side static rendering.
|
|
17
|
+
* Used for icon props where the vanilla table expects a string | HTMLElement | SVGSVGElement.
|
|
18
|
+
* Uses renderToStaticMarkup so it works synchronously from any context — including
|
|
19
|
+
* inside a useEffect — unlike createRoot + flushSync which silently produces empty
|
|
20
|
+
* output when called during React 18's passive effects phase.
|
|
21
|
+
*/
|
|
22
|
+
export declare function reactNodeToHtmlString(node: React.ReactNode): string;
|
|
21
23
|
/** Returns true if the value is a React component (function or class). */
|
|
22
24
|
export declare function isReactComponent(value: unknown): value is React.ComponentType<any>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-table/react",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.11",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/index.es.js",
|
|
11
11
|
"require": "./dist/cjs/index.js",
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"types": "./dist/types/index.d.ts"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react-dom": ">=18.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"simple-table-core": "3.0.0-beta.
|
|
28
|
+
"simple-table-core": "3.0.0-beta.11"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@rollup/plugin-alias": "^4.0.4",
|
package/dist/cjs/package.json
DELETED