@intable/react 0.0.11 → 0.0.13
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.js +1 -3
- package/dist/react/src/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17,9 +17,7 @@ const Intable = (o) => {
|
|
|
17
17
|
style: { display: "contents" }
|
|
18
18
|
});
|
|
19
19
|
}, component = (i) => (a) => {
|
|
20
|
-
let c = document.
|
|
21
|
-
c.remove ??= () => {}, c.removeChild = (e) => e.parentElement?.removeChild(e);
|
|
22
|
-
let l = createRoot(c);
|
|
20
|
+
let c = document.createElement("div"), l = createRoot(c);
|
|
23
21
|
return createComputed(() => flushSync(() => l.render(createElement(i, a)))), onCleanup(() => l.unmount()), c;
|
|
24
22
|
};
|
|
25
23
|
var src_default = Intable;
|
|
@@ -4,5 +4,5 @@ import '../../intable/src/wc';
|
|
|
4
4
|
import 'intable/wc';
|
|
5
5
|
import './style.scss';
|
|
6
6
|
export declare const Intable: FC<TableProps>;
|
|
7
|
-
export declare const component: <T extends Record<string, any>>(Comp: FC<T>) => (props: T) =>
|
|
7
|
+
export declare const component: <T extends Record<string, any>>(Comp: FC<T>) => (props: T) => HTMLDivElement;
|
|
8
8
|
export default Intable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intable/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"solid-js": "^1.9.9",
|
|
21
|
-
"intable": "^0.0.
|
|
21
|
+
"intable": "^0.0.13"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^18.0.0 || ^19.0.0 || ^20.0.0",
|