@builder.io/sdk-react-native 0.0.1-6 → 0.0.1-62
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/CHANGELOG.md +42 -0
- package/README.md +19 -0
- package/package.json +6 -4
- package/src/blocks/button/button.js +31 -0
- package/src/blocks/button/component-info.js +42 -0
- package/src/blocks/columns/columns.js +59 -0
- package/src/blocks/columns/component-info.js +242 -0
- package/src/blocks/custom-code/component-info.js +32 -0
- package/src/blocks/{custom-code.lite.tsx → custom-code/custom-code.js} +16 -33
- package/src/blocks/embed/component-info.js +44 -0
- package/src/blocks/embed/embed.js +43 -0
- package/src/blocks/embed/helpers.js +10 -0
- package/src/blocks/form/component-info.js +263 -0
- package/src/blocks/form/form.js +221 -0
- package/src/blocks/fragment/component-info.js +12 -0
- package/src/blocks/fragment/fragment.js +8 -0
- package/src/blocks/image/component-info.js +151 -0
- package/src/blocks/image/image.helpers.js +49 -0
- package/src/blocks/image/image.js +41 -0
- package/src/blocks/img/component-info.js +21 -0
- package/src/blocks/img/img.js +36 -0
- package/src/blocks/input/component-info.js +75 -0
- package/src/blocks/input/input.js +36 -0
- package/src/blocks/raw-text/component-info.js +17 -0
- package/src/blocks/raw-text/raw-text.js +10 -0
- package/src/blocks/section/component-info.js +50 -0
- package/src/blocks/section/section.js +31 -0
- package/src/blocks/select/component-info.js +60 -0
- package/src/blocks/select/select.js +36 -0
- package/src/blocks/submit-button/component-info.js +29 -0
- package/src/blocks/submit-button/submit-button.js +29 -0
- package/src/blocks/symbol/component-info.js +44 -0
- package/src/blocks/symbol/symbol.js +69 -0
- package/src/blocks/{text.js → text/component-info.js} +4 -10
- package/src/blocks/text/text.js +65 -0
- package/src/blocks/textarea/component-info.js +48 -0
- package/src/blocks/textarea/textarea.js +32 -0
- package/src/blocks/video/component-info.js +107 -0
- package/src/blocks/video/video.js +33 -0
- package/src/components/render-block/block-styles.js +40 -0
- package/src/components/render-block/render-block.helpers.js +24 -0
- package/src/components/render-block/render-block.js +169 -0
- package/src/components/render-block/render-component.js +33 -0
- package/src/components/render-block/render-repeated-block.js +29 -0
- package/src/components/render-blocks.js +23 -12
- package/src/components/render-content/components/render-styles.js +58 -0
- package/src/components/render-content/index.js +5 -0
- package/src/components/render-content/render-content.js +254 -0
- package/src/components/render-inlined-styles.js +18 -0
- package/src/constants/builder-registered-components.js +43 -0
- package/src/constants/device-sizes.js +3 -21
- package/src/constants/target.js +5 -0
- package/src/context/builder.context.js +7 -1
- package/src/functions/camel-to-kebab-case.js +5 -0
- package/src/functions/convert-style-object.js +7 -0
- package/src/functions/evaluate.js +17 -8
- package/src/functions/event-handler-name.js +8 -0
- package/src/functions/get-block-actions.js +14 -13
- package/src/functions/get-block-component-options.js +22 -1
- package/src/functions/get-block-properties.js +2 -3
- package/src/functions/get-block-styles.js +9 -19
- package/src/functions/get-block-tag.js +1 -1
- package/src/functions/get-builder-search-params/fn.test.js +14 -0
- package/src/functions/get-builder-search-params/index.js +23 -0
- package/src/functions/get-content/ab-testing.js +39 -0
- package/src/functions/get-content/fn.test.js +32 -0
- package/src/functions/get-content/index.js +94 -0
- package/src/functions/get-content/types.js +1 -0
- package/src/functions/get-fetch.js +35 -0
- package/src/functions/get-global-this.js +19 -0
- package/src/functions/get-processed-block.js +18 -9
- package/src/functions/get-processed-block.test.js +14 -8
- package/src/functions/if-target.js +11 -2
- package/src/functions/is-browser.js +1 -2
- package/src/functions/is-editing.js +1 -1
- package/src/functions/is-iframe.js +1 -1
- package/src/functions/is-previewing.js +15 -0
- package/src/functions/is-react-native.js +1 -1
- package/src/functions/on-change.test.js +1 -2
- package/src/functions/previewing-model-name.js +12 -0
- package/src/functions/register-component.js +46 -26
- package/src/functions/register.js +30 -0
- package/src/functions/sanitize-styles.js +33 -0
- package/src/functions/set-editor-settings.js +16 -0
- package/src/functions/set.test.js +1 -2
- package/src/functions/track.js +7 -3
- package/src/functions/transform-block.js +38 -0
- package/src/helpers/css.js +13 -0
- package/src/helpers/flatten.js +35 -0
- package/src/index-helpers/blocks-exports.js +19 -0
- package/src/index-helpers/top-of-file.js +2 -0
- package/src/index.js +10 -23
- package/src/scripts/init-editing.js +73 -49
- package/src/types/components.js +1 -0
- package/src/types/deep-partial.js +1 -0
- package/src/types/element.js +1 -0
- package/src/types/targets.js +1 -0
- package/src/types/typescript.js +1 -0
- package/index.js +0 -11
- package/src/blocks/button.js +0 -37
- package/src/blocks/button.lite.tsx +0 -29
- package/src/blocks/columns.js +0 -42
- package/src/blocks/columns.lite.tsx +0 -41
- package/src/blocks/custom-code.js +0 -56
- package/src/blocks/embed.js +0 -56
- package/src/blocks/embed.lite.tsx +0 -65
- package/src/blocks/form.js +0 -229
- package/src/blocks/form.lite.tsx +0 -257
- package/src/blocks/image.js +0 -123
- package/src/blocks/image.lite.tsx +0 -35
- package/src/blocks/img.js +0 -41
- package/src/blocks/img.lite.tsx +0 -19
- package/src/blocks/input.js +0 -41
- package/src/blocks/input.lite.tsx +0 -23
- package/src/blocks/raw-text.js +0 -17
- package/src/blocks/raw-text.lite.tsx +0 -12
- package/src/blocks/section.js +0 -36
- package/src/blocks/section.lite.tsx +0 -20
- package/src/blocks/select.js +0 -40
- package/src/blocks/select.lite.tsx +0 -24
- package/src/blocks/submit-button.js +0 -34
- package/src/blocks/submit-button.lite.tsx +0 -11
- package/src/blocks/symbol.js +0 -20
- package/src/blocks/symbol.lite.tsx +0 -20
- package/src/blocks/text.lite.tsx +0 -12
- package/src/blocks/textarea.js +0 -37
- package/src/blocks/textarea.lite.tsx +0 -15
- package/src/blocks/video.js +0 -49
- package/src/blocks/video.lite.tsx +0 -28
- package/src/components/render-block.js +0 -84
- package/src/components/render-block.lite.tsx +0 -92
- package/src/components/render-blocks.lite.tsx +0 -56
- package/src/components/render-content.js +0 -66
- package/src/components/render-content.lite.tsx +0 -95
- package/src/functions/get-content.js +0 -103
- package/src/functions/get-target.js +0 -7
- package/src/functions/macro-eval.js +0 -6
- package/src/package.json +0 -18
package/src/blocks/img.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { View } from "react-native";
|
|
24
|
-
import { Builder } from "@builder.io/sdk";
|
|
25
|
-
function ImgComponent(props) {
|
|
26
|
-
return /* @__PURE__ */ React.createElement(View, __spreadProps(__spreadValues({}, props.attributes), {
|
|
27
|
-
style: {
|
|
28
|
-
objectFit: props.backgroundSize || "cover",
|
|
29
|
-
objectPosition: props.backgroundPosition || "center"
|
|
30
|
-
},
|
|
31
|
-
key: Builder.isEditing && props.imgSrc || "default-key",
|
|
32
|
-
alt: props.altText,
|
|
33
|
-
src: props.imgSrc
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
ImgComponent as default
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
registerComponent(ImgComponent, {name:'Raw:Img',hideFromInsertMenu:true,image:'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4',inputs:[{name:'image',bubble:true,type:'file',allowedFileTypes:['jpeg','jpg','png','svg'],required:true}],noWrap:true,static:true});
|
package/src/blocks/img.lite.tsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
import { Builder } from "@builder.io/sdk";
|
|
5
|
-
|
|
6
|
-
export default function ImgComponent(props) {
|
|
7
|
-
return (
|
|
8
|
-
<View
|
|
9
|
-
{...props.attributes}
|
|
10
|
-
style={{
|
|
11
|
-
objectFit: props.backgroundSize || "cover",
|
|
12
|
-
objectPosition: props.backgroundPosition || "center",
|
|
13
|
-
}}
|
|
14
|
-
key={(Builder.isEditing && props.imgSrc) || "default-key"}
|
|
15
|
-
alt={props.altText}
|
|
16
|
-
src={props.imgSrc}
|
|
17
|
-
/>
|
|
18
|
-
);
|
|
19
|
-
}
|
package/src/blocks/input.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { View } from "react-native";
|
|
24
|
-
import { Builder } from "@builder.io/sdk";
|
|
25
|
-
function FormInputComponent(props) {
|
|
26
|
-
return /* @__PURE__ */ React.createElement(View, __spreadProps(__spreadValues({}, props.attributes), {
|
|
27
|
-
key: Builder.isEditing && props.defaultValue ? props.defaultValue : "default-key",
|
|
28
|
-
placeholder: props.placeholder,
|
|
29
|
-
type: props.type,
|
|
30
|
-
name: props.name,
|
|
31
|
-
value: props.value,
|
|
32
|
-
defaultValue: props.defaultValue,
|
|
33
|
-
required: props.required
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
FormInputComponent as default
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
registerComponent(FormInputComponent, {name:'Form:Input',image:'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca',inputs:[{name:'type',type:'text',enum:['text','number','email','url','checkbox','radio','range','date','datetime-local','search','tel','time','file','month','week','password','color','hidden'],defaultValue:'text'},{name:'name',type:'string',required:true,helperText:'Every input in a form needs a unique name describing what it takes, e.g. "email"'},{name:'placeholder',type:'string',defaultValue:'Hello there',helperText:'Text to display when there is no value'},{name:'defaultValue',type:'string'},{name:'value',type:'string',advanced:true},{name:'required',type:'boolean',helperText:'Is this input required to be filled out to submit a form',defaultValue:false}],noWrap:true,static:true,defaultStyles:{paddingTop:'10px',paddingBottom:'10px',paddingLeft:'10px',paddingRight:'10px',borderRadius:'3px',borderWidth:'1px',borderStyle:'solid',borderColor:'#ccc'}});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
import { Builder } from "@builder.io/sdk";
|
|
5
|
-
|
|
6
|
-
export default function FormInputComponent(props) {
|
|
7
|
-
return (
|
|
8
|
-
<View
|
|
9
|
-
{...props.attributes}
|
|
10
|
-
key={
|
|
11
|
-
Builder.isEditing && props.defaultValue
|
|
12
|
-
? props.defaultValue
|
|
13
|
-
: "default-key"
|
|
14
|
-
}
|
|
15
|
-
placeholder={props.placeholder}
|
|
16
|
-
type={props.type}
|
|
17
|
-
name={props.name}
|
|
18
|
-
value={props.value}
|
|
19
|
-
defaultValue={props.defaultValue}
|
|
20
|
-
required={props.required}
|
|
21
|
-
/>
|
|
22
|
-
);
|
|
23
|
-
}
|
package/src/blocks/raw-text.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { View } from "react-native";
|
|
5
|
-
function RawText(props) {
|
|
6
|
-
var _a, _b;
|
|
7
|
-
return /* @__PURE__ */ React.createElement(View, {
|
|
8
|
-
className: ((_a = props.attributes) == null ? void 0 : _a.class) || ((_b = props.attributes) == null ? void 0 : _b.className),
|
|
9
|
-
dangerouslySetInnerHTML: { __html: "props.text || ''" }
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
RawText as default
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
registerComponent(RawText, {name:'Builder:RawText',hideFromInsertMenu:true,inputs:[{name:'text',bubble:true,type:'longText',required:true}]});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
|
|
5
|
-
export default function RawText(props) {
|
|
6
|
-
return (
|
|
7
|
-
<View
|
|
8
|
-
className={props.attributes?.class || props.attributes?.className}
|
|
9
|
-
dangerouslySetInnerHTML={{ __html: "props.text || ''" }}
|
|
10
|
-
/>
|
|
11
|
-
);
|
|
12
|
-
}
|
package/src/blocks/section.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { View } from "react-native";
|
|
24
|
-
function SectionComponent(props) {
|
|
25
|
-
return /* @__PURE__ */ React.createElement(View, __spreadProps(__spreadValues({}, props.attributes), {
|
|
26
|
-
style: props.maxWidth && typeof props.maxWidth === "number" ? {
|
|
27
|
-
maxWidth: props.maxWidth
|
|
28
|
-
} : void 0
|
|
29
|
-
}), props.children);
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
SectionComponent as default
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
registerComponent(SectionComponent, {name:'Core:Section',static:true,image:'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a',inputs:[{name:'maxWidth',type:'number',defaultValue:1200},{name:'lazyLoad',type:'boolean',defaultValue:false,advanced:true,description:'Only render this section when in view'}],defaultStyles:{paddingLeft:'20px',paddingRight:'20px',paddingTop:'50px',paddingBottom:'50px',marginTop:'0px',width:'100vw',marginLeft:'calc(50% - 50vw)'},canHaveChildren:true,defaultChildren:[{'@type':'@builder.io/sdk:Element',responsiveStyles:{large:{textAlign:'center'}},component:{name:'Text',options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
|
|
5
|
-
export default function SectionComponent(props) {
|
|
6
|
-
return (
|
|
7
|
-
<View
|
|
8
|
-
{...props.attributes}
|
|
9
|
-
style={
|
|
10
|
-
props.maxWidth && typeof props.maxWidth === "number"
|
|
11
|
-
? {
|
|
12
|
-
maxWidth: props.maxWidth,
|
|
13
|
-
}
|
|
14
|
-
: undefined
|
|
15
|
-
}
|
|
16
|
-
>
|
|
17
|
-
{props.children}
|
|
18
|
-
</View>
|
|
19
|
-
);
|
|
20
|
-
}
|
package/src/blocks/select.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { View } from "react-native";
|
|
24
|
-
import { Builder } from "@builder.io/sdk";
|
|
25
|
-
function SelectComponent(props) {
|
|
26
|
-
return /* @__PURE__ */ React.createElement(View, __spreadProps(__spreadValues({}, props.attributes), {
|
|
27
|
-
value: props.value,
|
|
28
|
-
key: Builder.isEditing && props.defaultValue ? props.defaultValue : "default-key",
|
|
29
|
-
defaultValue: props.defaultValue,
|
|
30
|
-
name: props.name
|
|
31
|
-
}), props.options.map((option) => /* @__PURE__ */ React.createElement(View, {
|
|
32
|
-
value: option.value
|
|
33
|
-
}, option.name || option.value)));
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
SelectComponent as default
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
registerComponent(SelectComponent, {name:'Form:Select',image:'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045',defaultStyles:{alignSelf:'flex-start'},inputs:[{name:'options',type:'list',required:true,subFields:[{name:'value',type:'text',required:true},{name:'name',type:'text'}],defaultValue:[{value:'option 1'},{value:'option 2'}]},{name:'name',type:'string',required:true,helperText:'Every select in a form needs a unique name describing what it gets, e.g. "email"'},{name:'defaultValue',type:'string'},{name:'value',type:'string',advanced:true},{name:'required',type:'boolean',defaultValue:false}],static:true,noWrap:true});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
import { Builder } from "@builder.io/sdk";
|
|
5
|
-
|
|
6
|
-
export default function SelectComponent(props) {
|
|
7
|
-
return (
|
|
8
|
-
<View
|
|
9
|
-
{...props.attributes}
|
|
10
|
-
value={props.value}
|
|
11
|
-
key={
|
|
12
|
-
Builder.isEditing && props.defaultValue
|
|
13
|
-
? props.defaultValue
|
|
14
|
-
: "default-key"
|
|
15
|
-
}
|
|
16
|
-
defaultValue={props.defaultValue}
|
|
17
|
-
name={props.name}
|
|
18
|
-
>
|
|
19
|
-
{props.options.map((option) => (
|
|
20
|
-
<View value={option.value}>{option.name || option.value}</View>
|
|
21
|
-
))}
|
|
22
|
-
</View>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { View } from "react-native";
|
|
24
|
-
function SubmitButton(props) {
|
|
25
|
-
return /* @__PURE__ */ React.createElement(View, __spreadProps(__spreadValues({}, props.attributes), {
|
|
26
|
-
type: "submit"
|
|
27
|
-
}), props.text);
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
SubmitButton as default
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
registerComponent(SubmitButton, {name:'Form:SubmitButton',image:'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98',defaultStyles:{appearance:'none',paddingTop:'15px',paddingBottom:'15px',paddingLeft:'25px',paddingRight:'25px',backgroundColor:'#3898EC',color:'white',borderRadius:'4px',cursor:'pointer'},inputs:[{name:'text',type:'text',defaultValue:'Click me'}],static:true,noWrap:true});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
|
|
5
|
-
export default function SubmitButton(props) {
|
|
6
|
-
return (
|
|
7
|
-
<View {...props.attributes} type="submit">
|
|
8
|
-
{props.text}
|
|
9
|
-
</View>
|
|
10
|
-
);
|
|
11
|
-
}
|
package/src/blocks/symbol.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
import RenderContent from "../components/render-content";
|
|
5
|
-
import BuilderContext from "../context/builder.context";
|
|
6
|
-
function Symbol(props) {
|
|
7
|
-
var _a, _b, _c;
|
|
8
|
-
const builderContext = useContext(BuilderContext);
|
|
9
|
-
return /* @__PURE__ */ React.createElement(View, {
|
|
10
|
-
className: "builder-symbol"
|
|
11
|
-
}, /* @__PURE__ */ React.createElement(RenderContent, {
|
|
12
|
-
context: builderContext.context,
|
|
13
|
-
data: (_a = props.symbol) == null ? void 0 : _a.data,
|
|
14
|
-
model: (_b = props.symbol) == null ? void 0 : _b.model,
|
|
15
|
-
content: (_c = props.symbol) == null ? void 0 : _c.content
|
|
16
|
-
}));
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
Symbol as default
|
|
20
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
import RenderContent from "../components/render-content.lite";
|
|
5
|
-
import BuilderContext from "../context/builder.context.lite";
|
|
6
|
-
|
|
7
|
-
export default function Symbol(props) {
|
|
8
|
-
const builderContext = useContext(BuilderContext);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<View className="builder-symbol">
|
|
12
|
-
<RenderContent
|
|
13
|
-
context={builderContext.context}
|
|
14
|
-
data={props.symbol?.data}
|
|
15
|
-
model={props.symbol?.model}
|
|
16
|
-
content={props.symbol?.content}
|
|
17
|
-
/>
|
|
18
|
-
</View>
|
|
19
|
-
);
|
|
20
|
-
}
|
package/src/blocks/text.lite.tsx
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
|
|
5
|
-
export default function Text(props) {
|
|
6
|
-
return (
|
|
7
|
-
<View
|
|
8
|
-
className="builder-text"
|
|
9
|
-
dangerouslySetInnerHTML={{ __html: "props.text" }}
|
|
10
|
-
/>
|
|
11
|
-
);
|
|
12
|
-
}
|
package/src/blocks/textarea.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { View } from "react-native";
|
|
24
|
-
function Textarea(props) {
|
|
25
|
-
return /* @__PURE__ */ React.createElement(View, __spreadProps(__spreadValues({}, props.attributes), {
|
|
26
|
-
placeholder: props.placeholder,
|
|
27
|
-
name: props.name,
|
|
28
|
-
value: props.value,
|
|
29
|
-
defaultValue: props.defaultValue
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
Textarea as default
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
registerComponent(Textarea, {name:'Form:TextArea',image:'https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3',inputs:[{advanced:true,name:'value',type:'string'},{name:'name',type:'string',required:true,helperText:'Every input in a form needs a unique name describing what it gets, e.g. "email"'},{name:'defaultValue',type:'string'},{name:'placeholder',type:'string',defaultValue:'Hello there'},{name:'required',type:'boolean',defaultValue:false}],defaultStyles:{paddingTop:'10px',paddingBottom:'10px',paddingLeft:'10px',paddingRight:'10px',borderRadius:'3px',borderWidth:'1px',borderStyle:'solid',borderColor:'#ccc'},static:true,noWrap:true});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
|
|
5
|
-
export default function Textarea(props) {
|
|
6
|
-
return (
|
|
7
|
-
<View
|
|
8
|
-
{...props.attributes}
|
|
9
|
-
placeholder={props.placeholder}
|
|
10
|
-
name={props.name}
|
|
11
|
-
value={props.value}
|
|
12
|
-
defaultValue={props.defaultValue}
|
|
13
|
-
/>
|
|
14
|
-
);
|
|
15
|
-
}
|
package/src/blocks/video.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { registerComponent } from '../functions/register-component';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { View } from "react-native";
|
|
24
|
-
function Video(props) {
|
|
25
|
-
var _a;
|
|
26
|
-
return /* @__PURE__ */ React.createElement(View, __spreadProps(__spreadValues({}, props.attributes), {
|
|
27
|
-
preload: "none",
|
|
28
|
-
style: __spreadProps(__spreadValues({
|
|
29
|
-
width: "100%",
|
|
30
|
-
height: "100%"
|
|
31
|
-
}, (_a = props.attributes) == null ? void 0 : _a.style), {
|
|
32
|
-
objectFit: props.fit,
|
|
33
|
-
objectPosition: props.position,
|
|
34
|
-
borderRadius: 1
|
|
35
|
-
}),
|
|
36
|
-
key: props.video || "no-src",
|
|
37
|
-
poster: props.posterImage,
|
|
38
|
-
autoPlay: props.autoPlay,
|
|
39
|
-
muted: props.muted,
|
|
40
|
-
controls: props.controls,
|
|
41
|
-
loop: props.loop
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
Video as default
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
registerComponent(Video, {name:'Video',canHaveChildren:true,defaultStyles:{minHeight:'20px',minWidth:'20px'},image:'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb',inputs:[{name:'video',type:'file',allowedFileTypes:['mp4'],bubble:true,defaultValue:'https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f',required:true,onChange:" const 0.7004048582995948 = 0.7004048582995948; function loadImage(url: string, timeout = 60000): Promise<HTMLImageElement> { return new Promise((resolve, reject) => { const img = document.createElement('img'); let loaded = false; img.onload = () => { loaded = true; resolve(img); }; img.addEventListener('error', event => { console.warn('Image load failed', event.error); reject(event.error); }); img.src = url; setTimeout(() => { if (!loaded) { reject(new Error('Image load timed out')); } }, timeout); }); } function round(num: number) { return Math.round(num * 1000) / 1000; } // TODO const value = options.get('image'); const aspectRatio = options.get('aspectRatio'); if (value && (!aspectRatio || aspectRatio === 0.7004048582995948)) { return loadImage(value).then(img => { const possiblyUpdatedAspectRatio = options.get('aspectRatio'); if ( options.get('image') === value && (!possiblyUpdatedAspectRatio || possiblyUpdatedAspectRatio === 0.7004048582995948) ) { if (img.width && img.height) { options.set('aspectRatio', round(img.height / img.width)); } } }); } "},{name:'posterImage',type:'file',allowedFileTypes:['jpeg','png'],helperText:'Image to show before the video plays'},{name:'autoPlay',type:'boolean',defaultValue:true},{name:'controls',type:'boolean',defaultValue:false},{name:'muted',type:'boolean',defaultValue:true},{name:'loop',type:'boolean',defaultValue:true},{name:'playsInline',type:'boolean',defaultValue:true},{name:'fit',type:'text',defaultValue:'cover',enum:['contain','cover','fill','auto']},{name:'fitContent',type:'boolean',helperText:'When child blocks are provided, fit to them instead of using the aspect ratio',defaultValue:true,advanced:true},{name:'position',type:'text',defaultValue:'center',enum:['center','top','left','right','bottom','top left','top right','bottom left','bottom right']},{name:'height',type:'number',advanced:true},{name:'width',type:'number',advanced:true},{name:'aspectRatio',type:'number',advanced:true,defaultValue:0.7004048582995948},{name:'lazyLoad',type:'boolean',helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:true,advanced:true}]});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Image, Text } from "react-native";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
|
|
5
|
-
export default function Video(props) {
|
|
6
|
-
return (
|
|
7
|
-
<View
|
|
8
|
-
{...props.attributes}
|
|
9
|
-
preload="none"
|
|
10
|
-
style={{
|
|
11
|
-
width: "100%",
|
|
12
|
-
height: "100%",
|
|
13
|
-
...props.attributes?.style,
|
|
14
|
-
objectFit: props.fit,
|
|
15
|
-
objectPosition: props.position,
|
|
16
|
-
// Hack to get object fit to work as expected and
|
|
17
|
-
// not have the video overflow
|
|
18
|
-
borderRadius: 1,
|
|
19
|
-
}}
|
|
20
|
-
key={props.video || "no-src"}
|
|
21
|
-
poster={props.posterImage}
|
|
22
|
-
autoPlay={props.autoPlay}
|
|
23
|
-
muted={props.muted}
|
|
24
|
-
controls={props.controls}
|
|
25
|
-
loop={props.loop}
|
|
26
|
-
/>
|
|
27
|
-
);
|
|
28
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import * as React from "react";
|
|
21
|
-
import { useContext } from "react";
|
|
22
|
-
import { getBlockComponentOptions } from "../functions/get-block-component-options";
|
|
23
|
-
import { getBlockProperties } from "../functions/get-block-properties";
|
|
24
|
-
import { getBlockStyles } from "../functions/get-block-styles";
|
|
25
|
-
import { getBlockTag } from "../functions/get-block-tag";
|
|
26
|
-
import { components } from "../functions/register-component";
|
|
27
|
-
import BuilderContext from "../context/builder.context";
|
|
28
|
-
import { getBlockActions } from "../functions/get-block-actions";
|
|
29
|
-
import { getProcessedBlock } from "../functions/get-processed-block";
|
|
30
|
-
function RenderBlock(props) {
|
|
31
|
-
var _a, _b, _c;
|
|
32
|
-
function component() {
|
|
33
|
-
var _a2;
|
|
34
|
-
return components[(_a2 = block().component) == null ? void 0 : _a2.name];
|
|
35
|
-
}
|
|
36
|
-
function componentInfo() {
|
|
37
|
-
var _a2;
|
|
38
|
-
return (_a2 = component == null ? void 0 : component()) == null ? void 0 : _a2.info;
|
|
39
|
-
}
|
|
40
|
-
function componentRef() {
|
|
41
|
-
var _a2;
|
|
42
|
-
return (_a2 = component == null ? void 0 : component()) == null ? void 0 : _a2.component;
|
|
43
|
-
}
|
|
44
|
-
function tagName() {
|
|
45
|
-
return getBlockTag(block());
|
|
46
|
-
}
|
|
47
|
-
function properties() {
|
|
48
|
-
return getBlockProperties(block());
|
|
49
|
-
}
|
|
50
|
-
function block() {
|
|
51
|
-
return getProcessedBlock({
|
|
52
|
-
block: props.block,
|
|
53
|
-
state: builderContext.state,
|
|
54
|
-
context: builderContext.context
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function actions() {
|
|
58
|
-
return getBlockActions({
|
|
59
|
-
block: block(),
|
|
60
|
-
state: builderContext.state,
|
|
61
|
-
context: builderContext.context
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function css() {
|
|
65
|
-
return getBlockStyles(block());
|
|
66
|
-
}
|
|
67
|
-
function componentOptions() {
|
|
68
|
-
return getBlockComponentOptions(block());
|
|
69
|
-
}
|
|
70
|
-
const builderContext = useContext(BuilderContext);
|
|
71
|
-
const ComponentRefRef = componentRef();
|
|
72
|
-
const TagNameRef = tagName();
|
|
73
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, ((_a = componentInfo == null ? void 0 : componentInfo()) == null ? void 0 : _a.noWrap) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ComponentRefRef, __spreadProps(__spreadValues({}, (_b = componentInfo == null ? void 0 : componentInfo()) == null ? void 0 : _b.options), {
|
|
74
|
-
attributes: properties(),
|
|
75
|
-
style: css()
|
|
76
|
-
}))), !((_c = componentInfo == null ? void 0 : componentInfo()) == null ? void 0 : _c.noWrap) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(TagNameRef, __spreadProps(__spreadValues({}, properties()), {
|
|
77
|
-
style: css()
|
|
78
|
-
}), componentRef() && /* @__PURE__ */ React.createElement(ComponentRefRef, __spreadValues({}, componentOptions())), !componentRef() && block().children && block().children.length && /* @__PURE__ */ React.createElement(React.Fragment, null, block().children.map((child) => /* @__PURE__ */ React.createElement(RenderBlock, {
|
|
79
|
-
block: child
|
|
80
|
-
}))))));
|
|
81
|
-
}
|
|
82
|
-
export {
|
|
83
|
-
RenderBlock as default
|
|
84
|
-
};
|