@blocklet/pages-kit-core 0.5.56 → 0.6.1
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/lib/cjs/block.d.ts +2 -2
- package/lib/cjs/page.d.ts +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/block.d.ts +2 -2
- package/lib/esm/page.d.ts +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/block.d.ts +2 -2
- package/lib/types/page.d.ts +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
package/lib/cjs/block.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Block as BlockType } from '@types';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
import { Renderable, RenderOptions } from './types/renderable';
|
|
4
|
-
export declare class Block implements BlockType, Renderable<Record<string, any>, ReactElement | null> {
|
|
4
|
+
export declare class Block implements BlockType, Renderable<Record<string, any>, ReactElement<any> | null> {
|
|
5
5
|
code?: string | undefined;
|
|
6
6
|
private ESM_IMPORT_REGEX;
|
|
7
7
|
private ESM_KEYWORDS;
|
|
8
8
|
constructor(code?: string | undefined);
|
|
9
9
|
setData(code: string): void;
|
|
10
|
-
render(input?: Record<string, any>, _options?: RenderOptions): Promise<ReactElement | null>;
|
|
10
|
+
render(input?: Record<string, any>, _options?: RenderOptions): Promise<ReactElement<any> | null>;
|
|
11
11
|
}
|
package/lib/cjs/page.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare class Page implements PageType {
|
|
|
7
7
|
private initBlocks;
|
|
8
8
|
private createPageElement;
|
|
9
9
|
setData(data: PageData): void;
|
|
10
|
-
render(input?: Record<string, any>, options?: RenderOptions): Promise<ReactElement | null>;
|
|
10
|
+
render(input?: Record<string, any>, options?: RenderOptions): Promise<ReactElement<any> | null>;
|
|
11
11
|
}
|