@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.
Files changed (71) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +508 -428
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +3 -3
  6. package/lib/browser/init.mjs +4 -4
  7. package/lib/browser/{server-entry-c9d4cfc0.cjs → server-entry-5ba46495.cjs} +1 -1
  8. package/lib/browser/{server-entry-5cac64f5.js → server-entry-98a38828.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/blocks-exports.cjs +32 -32
  12. package/lib/edge/blocks-exports.mjs +950 -870
  13. package/lib/edge/index.cjs +1 -1
  14. package/lib/edge/index.mjs +1 -1
  15. package/lib/edge/init.cjs +3 -3
  16. package/lib/edge/init.mjs +4 -4
  17. package/lib/edge/{server-entry-c9d4cfc0.cjs → server-entry-5ba46495.cjs} +1 -1
  18. package/lib/edge/{server-entry-5cac64f5.js → server-entry-98a38828.js} +1 -1
  19. package/lib/edge/server-entry.cjs +1 -1
  20. package/lib/edge/server-entry.mjs +1 -1
  21. package/lib/node/blocks-exports.cjs +25 -25
  22. package/lib/node/blocks-exports.mjs +504 -424
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +2 -2
  25. package/lib/node/init.cjs +1 -1
  26. package/lib/node/init.mjs +2 -2
  27. package/lib/node/{node-runtime-591c4640.cjs → node-runtime-5abae854.cjs} +4 -4
  28. package/lib/node/{node-runtime-8d503570.js → node-runtime-f2f9d7b3.js} +13 -13
  29. package/lib/node/{server-entry-1c6e06e6.cjs → server-entry-8f87e771.cjs} +1 -1
  30. package/lib/node/{server-entry-00baa89f.js → server-entry-9e9936de.js} +1 -1
  31. package/lib/node/server-entry.cjs +1 -1
  32. package/lib/node/server-entry.mjs +1 -1
  33. package/package.json +1 -1
  34. package/types/cjs/blocks/form/select/select.d.ts +1 -0
  35. package/types/cjs/blocks/form/textarea/component-info.d.ts +2 -0
  36. package/types/{esm/blocks → cjs/blocks/form}/textarea/textarea.d.ts +1 -0
  37. package/types/cjs/components/block/block.helpers.d.ts +8 -8
  38. package/types/cjs/components/content-variants/inlined-fns.d.ts +1 -1
  39. package/types/cjs/constants/sdk-name.d.ts +1 -1
  40. package/types/cjs/constants/sdk-version.d.ts +1 -1
  41. package/types/cjs/types/components.d.ts +31 -0
  42. package/types/esm/blocks/form/select/select.d.ts +1 -0
  43. package/types/esm/blocks/form/textarea/component-info.d.ts +2 -0
  44. package/types/{cjs/blocks → esm/blocks/form}/textarea/textarea.d.ts +1 -0
  45. package/types/esm/components/block/block.helpers.d.ts +8 -8
  46. package/types/esm/components/content-variants/inlined-fns.d.ts +1 -1
  47. package/types/esm/constants/sdk-name.d.ts +1 -1
  48. package/types/esm/constants/sdk-version.d.ts +1 -1
  49. package/types/esm/types/components.d.ts +31 -0
  50. package/types/cjs/blocks/form/component-info.d.ts +0 -2
  51. package/types/cjs/blocks/form/form.d.ts +0 -33
  52. package/types/cjs/blocks/input/component-info.d.ts +0 -2
  53. package/types/cjs/blocks/input/input.d.ts +0 -15
  54. package/types/cjs/blocks/submit-button/component-info.d.ts +0 -2
  55. package/types/cjs/blocks/submit-button/submit-button.d.ts +0 -10
  56. package/types/cjs/blocks/textarea/component-info.d.ts +0 -2
  57. package/types/cjs/functions/get-react-native-block-styles.d.ts +0 -15
  58. package/types/cjs/functions/sanitize-react-native-block-styles.d.ts +0 -3
  59. package/types/cjs/functions/sanitize-rn-allowed-css.d.ts +0 -8
  60. package/types/esm/blocks/form/component-info.d.ts +0 -2
  61. package/types/esm/blocks/form/form.d.ts +0 -33
  62. package/types/esm/blocks/input/component-info.d.ts +0 -2
  63. package/types/esm/blocks/input/input.d.ts +0 -15
  64. package/types/esm/blocks/submit-button/component-info.d.ts +0 -2
  65. package/types/esm/blocks/submit-button/submit-button.d.ts +0 -10
  66. package/types/esm/blocks/textarea/component-info.d.ts +0 -2
  67. package/types/esm/functions/get-react-native-block-styles.d.ts +0 -15
  68. package/types/esm/functions/sanitize-react-native-block-styles.d.ts +0 -3
  69. package/types/esm/functions/sanitize-rn-allowed-css.d.ts +0 -8
  70. /package/types/cjs/blocks/{textarea → form/textarea}/index.d.ts +0 -0
  71. /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,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -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,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -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,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -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,3 +0,0 @@
1
- type Styles = Record<string, string | number>;
2
- export declare const sanitizeReactNativeBlockStyles: (styles: Styles) => Styles;
3
- export {};
@@ -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 {};