@sisense/sdk-ui-preact 0.14.0 → 0.15.0
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/component-adapter/custom-element.d.ts +4 -0
- package/dist/component-adapter/index.d.ts +1 -0
- package/dist/index.es.js +54792 -49680
- package/dist/index.umd.js +166 -166
- package/dist/render.d.ts +12 -3
- package/package.json +3 -3
package/dist/render.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import { h, type FunctionComponent, type ComponentChildren, type VNode } from 'preact';
|
|
1
|
+
import { type FunctionComponent, type ComponentChildren, type VNode } from 'preact';
|
|
3
2
|
/** @internal */
|
|
4
3
|
export declare const preactRenderComponent: <P>(rootElement: HTMLDivElement, component: FunctionComponent<P>, componentProps: P) => void;
|
|
5
4
|
/** @internal */
|
|
6
|
-
export declare const createElement: <P>(component: FunctionComponent<P>, props: P
|
|
5
|
+
export declare const createElement: <P>(component: FunctionComponent<P>, props: P, children?: ComponentChildren) => VNode;
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const createWrapperElement: (nativeElement: HTMLDivElement) => VNode;
|
|
8
|
+
type AnyObject = Record<string, any>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const createWrapperElementHandler: <P extends AnyObject>(handler: (props: P) => HTMLDivElement) => (props: P) => VNode<{}>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type ComponentRenderer = (containerElement: HTMLDivElement) => void;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const createComponentRenderer: (component: VNode) => ComponentRenderer;
|
|
15
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisense/sdk-ui-preact",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "Sisense",
|
|
15
15
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@sisense/sdk-ui": "^0.
|
|
17
|
+
"@sisense/sdk-ui": "^0.15.0",
|
|
18
18
|
"preact": "^10.13.2"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@preact/preset-vite": "2.5.0",
|
|
32
|
-
"@sisense/sdk-data": "^0.
|
|
32
|
+
"@sisense/sdk-data": "^0.15.0",
|
|
33
33
|
"@types/node": "^18.16.0",
|
|
34
34
|
"eslint": "^8.40.0",
|
|
35
35
|
"prettier": "2.8.4",
|