@builder.io/sdk-react 0.12.1 → 0.12.3
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/browser/index.cjs +29 -27
- package/lib/browser/index.mjs +603 -619
- package/lib/edge/index.cjs +35 -33
- package/lib/edge/index.mjs +1036 -1052
- package/lib/node/index.cjs +14 -12
- package/lib/node/index.mjs +385 -401
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +0 -1
- package/types/components/block/components/block-wrapper.d.ts +2 -6
- package/types/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/components/dynamic-renderer/dynamic-renderer.d.ts +8 -0
- package/types/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/is-from-trusted-host.d.ts +3 -0
- package/types/scripts/init-editing.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
|
|
2
2
|
import type { BuilderBlock } from '../../types/builder-block.js';
|
|
3
3
|
import type { RepeatData } from './types.js';
|
|
4
|
-
export declare const isEmptyHtmlElement: (tagName: unknown) => boolean;
|
|
5
4
|
export declare const getComponent: ({ block, context, registeredComponents }: {
|
|
6
5
|
block: BuilderBlock;
|
|
7
6
|
context: BuilderContextInterface;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
5
2
|
type BlockWrapperProps = {
|
|
6
3
|
Wrapper: string;
|
|
7
4
|
block: BuilderBlock;
|
|
8
5
|
context: BuilderContextInterface;
|
|
9
|
-
hasChildren: boolean;
|
|
10
6
|
};
|
|
11
7
|
/**
|
|
12
8
|
* This component renders a block's wrapper HTML element (from the block's `tagName` property).
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
*/
|
|
10
|
+
import type { BuilderContextInterface } from "../../../context/types.js";
|
|
15
11
|
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
16
12
|
import type { PropsWithChildren } from "../../../types/typescript.js";
|
|
17
13
|
declare function BlockWrapper(props: PropsWithChildren<BlockWrapperProps>): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PropsWithChildren } from "../../types/typescript.js";
|
|
3
|
+
declare function DynamicRenderer(props: PropsWithChildren<{
|
|
4
|
+
TagName: any;
|
|
5
|
+
attributes: any;
|
|
6
|
+
actionAttributes: any;
|
|
7
|
+
}>): React.JSX.Element;
|
|
8
|
+
export default DynamicRenderer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isEmptyElement: (tagName: any) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.12.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.3";
|