@builder.io/sdk-react-nextjs 0.14.30-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/lib/browser/blocks-exports.cjs +24 -24
- package/lib/browser/blocks-exports.mjs +508 -428
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +3 -3
- package/lib/browser/init.mjs +4 -4
- package/lib/browser/{server-entry-c9d4cfc0.cjs → server-entry-5ba46495.cjs} +1 -1
- package/lib/browser/{server-entry-5cac64f5.js → server-entry-98a38828.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +32 -32
- package/lib/edge/blocks-exports.mjs +950 -870
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +3 -3
- package/lib/edge/init.mjs +4 -4
- package/lib/edge/{server-entry-c9d4cfc0.cjs → server-entry-5ba46495.cjs} +1 -1
- package/lib/edge/{server-entry-5cac64f5.js → server-entry-98a38828.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +504 -424
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-591c4640.cjs → node-runtime-5abae854.cjs} +4 -4
- package/lib/node/{node-runtime-8d503570.js → node-runtime-f2f9d7b3.js} +13 -13
- package/lib/node/{server-entry-1c6e06e6.cjs → server-entry-8f87e771.cjs} +1 -1
- package/lib/node/{server-entry-00baa89f.js → server-entry-9e9936de.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/blocks/form/select/select.d.ts +1 -0
- package/types/cjs/blocks/form/textarea/component-info.d.ts +2 -0
- package/types/{esm/blocks → cjs/blocks/form}/textarea/textarea.d.ts +1 -0
- package/types/cjs/components/block/block.helpers.d.ts +8 -8
- package/types/cjs/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/cjs/constants/sdk-name.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/components.d.ts +31 -0
- package/types/esm/blocks/form/select/select.d.ts +1 -0
- package/types/esm/blocks/form/textarea/component-info.d.ts +2 -0
- package/types/{cjs/blocks → esm/blocks/form}/textarea/textarea.d.ts +1 -0
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/esm/constants/sdk-name.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/components.d.ts +31 -0
- package/types/cjs/blocks/form/component-info.d.ts +0 -2
- package/types/cjs/blocks/form/form.d.ts +0 -33
- package/types/cjs/blocks/input/component-info.d.ts +0 -2
- package/types/cjs/blocks/input/input.d.ts +0 -15
- package/types/cjs/blocks/submit-button/component-info.d.ts +0 -2
- package/types/cjs/blocks/submit-button/submit-button.d.ts +0 -10
- package/types/cjs/blocks/textarea/component-info.d.ts +0 -2
- package/types/cjs/functions/get-react-native-block-styles.d.ts +0 -15
- package/types/cjs/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/cjs/functions/sanitize-rn-allowed-css.d.ts +0 -8
- package/types/esm/blocks/form/component-info.d.ts +0 -2
- package/types/esm/blocks/form/form.d.ts +0 -33
- package/types/esm/blocks/input/component-info.d.ts +0 -2
- package/types/esm/blocks/input/input.d.ts +0 -15
- package/types/esm/blocks/submit-button/component-info.d.ts +0 -2
- package/types/esm/blocks/submit-button/submit-button.d.ts +0 -10
- package/types/esm/blocks/textarea/component-info.d.ts +0 -2
- package/types/esm/functions/get-react-native-block-styles.d.ts +0 -15
- package/types/esm/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/esm/functions/sanitize-rn-allowed-css.d.ts +0 -8
- /package/types/cjs/blocks/{textarea → form/textarea}/index.d.ts +0 -0
- /package/types/esm/blocks/{textarea → form/textarea}/index.d.ts +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
5
|
-
export type FormProps = PropsWithBuilderData<BuilderComponentsProp & BuilderLinkComponentProp & {
|
|
6
|
-
attributes?: any;
|
|
7
|
-
name?: string;
|
|
8
|
-
action?: string;
|
|
9
|
-
validate?: boolean;
|
|
10
|
-
method?: string;
|
|
11
|
-
sendSubmissionsTo?: string;
|
|
12
|
-
sendSubmissionsToEmail?: string;
|
|
13
|
-
sendWithJs?: boolean;
|
|
14
|
-
contentType?: string;
|
|
15
|
-
customHeaders?: {
|
|
16
|
-
[key: string]: string;
|
|
17
|
-
};
|
|
18
|
-
successUrl?: string;
|
|
19
|
-
previewState?: FormState;
|
|
20
|
-
successMessage?: BuilderBlock[];
|
|
21
|
-
errorMessage?: BuilderBlock[];
|
|
22
|
-
sendingMessage?: BuilderBlock[];
|
|
23
|
-
resetFormOnSubmit?: boolean;
|
|
24
|
-
errorMessagePath?: string;
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* This import is used by the Svelte SDK. Do not remove.
|
|
28
|
-
*/
|
|
29
|
-
export type FormState = "unsubmitted" | "sending" | "success" | "error";
|
|
30
|
-
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
31
|
-
import type { BuilderComponentsProp, BuilderLinkComponentProp, PropsWithBuilderData } from "../../types/builder-props.js";
|
|
32
|
-
declare function FormComponent(props: FormProps): React.JSX.Element;
|
|
33
|
-
export default FormComponent;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
5
|
-
export interface FormInputProps {
|
|
6
|
-
type?: string;
|
|
7
|
-
attributes?: any;
|
|
8
|
-
name?: string;
|
|
9
|
-
value?: string;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
defaultValue?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare function FormInputComponent(props: FormInputProps): React.JSX.Element;
|
|
15
|
-
export default FormInputComponent;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
-
*/
|
|
5
|
-
export interface ButtonProps {
|
|
6
|
-
attributes?: any;
|
|
7
|
-
text?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function SubmitButton(props: ButtonProps): React.JSX.Element;
|
|
10
|
-
export default SubmitButton;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
/**
|
|
4
|
-
* @description Cleans styles that RN can't handle and css-to-react-native doesn't fix
|
|
5
|
-
*/
|
|
6
|
-
export declare const cleanCssStyleProps: (styles: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
}) => {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function getReactNativeBlockStyles({ block, context, blockStyles }: {
|
|
12
|
-
block: BuilderBlock;
|
|
13
|
-
context: BuilderContextInterface;
|
|
14
|
-
blockStyles: any;
|
|
15
|
-
}): CSSStyleDeclaration | Record<string, string | undefined>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
type StyleSheetProperties = ImageStyle & TextStyle & ViewStyle;
|
|
3
|
-
/**
|
|
4
|
-
* @description List of allowed css properties.
|
|
5
|
-
* We use this to filter out web CSS from Builder.io that would crash RN.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ALLOWED_CSS_PROPERTIES: Array<keyof StyleSheetProperties>;
|
|
8
|
-
export {};
|
|
File without changes
|
|
File without changes
|