@builder.io/sdk-react-nextjs 0.14.28 → 0.14.30-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 +188 -0
- package/lib/browser/blocks-exports.mjs +2812 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +25 -26
- package/lib/browser/init.cjs +8 -0
- package/lib/browser/init.mjs +60 -0
- package/lib/browser/server-entry-5cac64f5.js +720 -0
- package/lib/browser/server-entry-c9d4cfc0.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -0
- package/lib/browser/server-entry.mjs +16 -0
- package/lib/edge/blocks-exports.cjs +208 -0
- package/lib/edge/{bundle-c67d25d8.js → blocks-exports.mjs} +2388 -2405
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +25 -26
- package/lib/edge/init.cjs +8 -0
- package/lib/edge/init.mjs +60 -0
- package/lib/edge/server-entry-5cac64f5.js +720 -0
- package/lib/edge/server-entry-c9d4cfc0.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -0
- package/lib/edge/server-entry.mjs +16 -0
- package/lib/node/blocks-exports.cjs +188 -0
- package/lib/node/blocks-exports.mjs +2788 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +23 -23
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.mjs +13 -0
- package/lib/node/node-runtime-591c4640.cjs +48 -0
- package/lib/node/node-runtime-8d503570.js +167 -0
- package/lib/node/server-entry-00baa89f.js +720 -0
- package/lib/node/server-entry-1c6e06e6.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -0
- package/lib/node/server-entry.mjs +16 -0
- package/package.json +14 -9
- package/types/cjs/blocks/BaseText.d.ts +6 -0
- package/types/cjs/blocks/form/component-info.d.ts +2 -0
- package/types/cjs/blocks/form/form.d.ts +33 -0
- package/types/cjs/blocks/input/component-info.d.ts +2 -0
- package/types/cjs/blocks/input/input.d.ts +15 -0
- package/types/cjs/blocks/raw-text/component-info.d.ts +2 -0
- package/types/cjs/blocks/raw-text/index.d.ts +1 -0
- package/types/cjs/blocks/raw-text/raw-text.d.ts +7 -0
- package/types/cjs/blocks/submit-button/component-info.d.ts +2 -0
- package/types/cjs/blocks/submit-button/submit-button.d.ts +10 -0
- package/types/cjs/blocks/textarea/component-info.d.ts +2 -0
- package/types/cjs/blocks/textarea/index.d.ts +1 -0
- package/types/cjs/blocks/textarea/textarea.d.ts +13 -0
- package/types/cjs/components/content/index.d.ts +1 -0
- package/types/cjs/components/error-boundary.d.ts +11 -0
- package/types/cjs/constants/sdk-name.d.ts +1 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/apply-patch-with-mutation.d.ts +10 -0
- package/types/cjs/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/types/cjs/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/types/cjs/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/types/cjs/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/types/cjs/functions/evaluate/node-runtime/init.d.ts +13 -0
- package/types/cjs/functions/evaluate/node-runtime/node-runtime.d.ts +11 -0
- package/types/cjs/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +8 -0
- package/types/cjs/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/types/cjs/functions/extract-css-var-default-value.d.ts +1 -0
- package/types/cjs/functions/get-react-native-block-styles.d.ts +15 -0
- package/types/cjs/functions/is-edge-runtime.d.ts +4 -0
- package/types/cjs/functions/on-change.d.ts +7 -0
- package/types/cjs/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/cjs/functions/sanitize-rn-allowed-css.d.ts +8 -0
- package/types/cjs/helpers/omit.d.ts +1 -0
- package/types/cjs/helpers/time.d.ts +1 -0
- package/types/esm/blocks/BaseText.d.ts +6 -0
- package/types/esm/blocks/form/component-info.d.ts +2 -0
- package/types/esm/blocks/form/form.d.ts +33 -0
- package/types/esm/blocks/input/component-info.d.ts +2 -0
- package/types/esm/blocks/input/input.d.ts +15 -0
- package/types/esm/blocks/raw-text/component-info.d.ts +2 -0
- package/types/esm/blocks/raw-text/index.d.ts +1 -0
- package/types/esm/blocks/raw-text/raw-text.d.ts +7 -0
- package/types/esm/blocks/submit-button/component-info.d.ts +2 -0
- package/types/esm/blocks/submit-button/submit-button.d.ts +10 -0
- package/types/esm/blocks/textarea/component-info.d.ts +2 -0
- package/types/esm/blocks/textarea/index.d.ts +1 -0
- package/types/esm/blocks/textarea/textarea.d.ts +13 -0
- package/types/esm/components/content/index.d.ts +1 -0
- package/types/esm/components/error-boundary.d.ts +11 -0
- package/types/esm/constants/sdk-name.d.ts +1 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/apply-patch-with-mutation.d.ts +10 -0
- package/types/esm/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/types/esm/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/types/esm/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/types/esm/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/types/esm/functions/evaluate/node-runtime/init.d.ts +13 -0
- package/types/esm/functions/evaluate/node-runtime/node-runtime.d.ts +11 -0
- package/types/esm/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +8 -0
- package/types/esm/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/types/esm/functions/extract-css-var-default-value.d.ts +1 -0
- package/types/esm/functions/get-react-native-block-styles.d.ts +15 -0
- package/types/esm/functions/is-edge-runtime.d.ts +4 -0
- package/types/esm/functions/on-change.d.ts +7 -0
- package/types/esm/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/esm/functions/sanitize-rn-allowed-css.d.ts +8 -0
- package/types/esm/helpers/omit.d.ts +1 -0
- package/types/esm/helpers/time.d.ts +1 -0
- package/lib/browser/USE_CLIENT_BUNDLE-1c35fc0a.js +0 -703
- package/lib/browser/USE_CLIENT_BUNDLE-65950ed4.cjs +0 -21
- package/lib/browser/USE_SERVER_BUNDLE-3ea7f606.cjs +0 -1
- package/lib/browser/USE_SERVER_BUNDLE-812dfc95.js +0 -11
- package/lib/browser/bundle-763c7cf6.js +0 -2829
- package/lib/browser/bundle-aff841a2.cjs +0 -169
- package/lib/edge/USE_CLIENT_BUNDLE-cf0350f7.js +0 -703
- package/lib/edge/USE_CLIENT_BUNDLE-fc025b97.cjs +0 -21
- package/lib/edge/USE_SERVER_BUNDLE-8e198f44.cjs +0 -1
- package/lib/edge/USE_SERVER_BUNDLE-ded4dbdc.js +0 -11
- package/lib/edge/bundle-05000fd3.cjs +0 -189
- package/lib/node/USE_CLIENT_BUNDLE-0fda6fd8.js +0 -703
- package/lib/node/USE_CLIENT_BUNDLE-c57c9376.cjs +0 -21
- package/lib/node/USE_SERVER_BUNDLE-15a235fc.js +0 -11
- package/lib/node/USE_SERVER_BUNDLE-5472e997.cjs +0 -1
- package/lib/node/bundle-40b09581.js +0 -2950
- package/lib/node/bundle-acffe20a.cjs +0 -216
|
@@ -0,0 +1,15 @@
|
|
|
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>;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function omit<T extends object>(obj: T, ...values: (keyof T)[]): Partial<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCurrentDatePlusMinutes: (minutes?: number) => Date;
|