@builder.io/sdk-svelte 3.0.2 → 3.0.5
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/accordion/accordion.svelte +1 -1
- package/lib/browser/blocks/columns/columns.svelte +3 -3
- package/lib/browser/blocks/form/form/form.svelte +2 -15
- package/lib/browser/blocks/image/image.svelte +1 -3
- package/lib/browser/blocks/video/video.svelte +0 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/types/builder-content.d.ts +1 -0
- package/lib/browser/types/components.d.ts +2 -2
- package/lib/browser/types/input.d.ts +10 -0
- package/lib/edge/blocks/accordion/accordion.svelte +1 -1
- package/lib/edge/blocks/columns/columns.svelte +3 -3
- package/lib/edge/blocks/form/form/form.svelte +2 -15
- package/lib/edge/blocks/image/image.svelte +1 -3
- package/lib/edge/blocks/video/video.svelte +0 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/types/builder-content.d.ts +1 -0
- package/lib/edge/types/components.d.ts +2 -2
- package/lib/edge/types/input.d.ts +10 -0
- package/lib/node/blocks/accordion/accordion.svelte +1 -1
- package/lib/node/blocks/columns/columns.svelte +3 -3
- package/lib/node/blocks/form/form/form.svelte +2 -15
- package/lib/node/blocks/image/image.svelte +1 -3
- package/lib/node/blocks/video/video.svelte +0 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/types/builder-content.d.ts +1 -0
- package/lib/node/types/components.d.ts +2 -2
- package/lib/node/types/input.d.ts +10 -0
- package/package.json +2 -2
- package/src/blocks/accordion/accordion.svelte +1 -1
- package/src/blocks/columns/columns.svelte +3 -3
- package/src/blocks/form/form/form.svelte +3 -15
- package/src/blocks/image/image.svelte +0 -4
- package/src/blocks/video/video.svelte +0 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/types/builder-content.ts +1 -0
- package/src/types/components.ts +2 -2
- package/src/types/input.ts +10 -0
|
@@ -113,7 +113,7 @@ let open = [];
|
|
|
113
113
|
</script>
|
|
114
114
|
|
|
115
115
|
<div style={stringifyStyles(accordionStyles())} class="builder-accordion">
|
|
116
|
-
{#each items as item, index}
|
|
116
|
+
{#each items as item, index (index)}
|
|
117
117
|
<div
|
|
118
118
|
style={stringifyStyles({
|
|
119
119
|
...accordionTitleStyles(),
|
|
@@ -170,13 +170,13 @@ $: flexDir = () => {
|
|
|
170
170
|
><Blocks
|
|
171
171
|
path={`columns.${index}.blocks`}
|
|
172
172
|
parent={builderBlock.id}
|
|
173
|
-
styleProp={{
|
|
174
|
-
flexGrow: "1",
|
|
175
|
-
}}
|
|
176
173
|
context={builderContext}
|
|
177
174
|
registeredComponents={builderComponents}
|
|
178
175
|
linkComponent={builderLinkComponent}
|
|
179
176
|
blocks={column.blocks}
|
|
177
|
+
styleProp={{
|
|
178
|
+
flexGrow: "1",
|
|
179
|
+
}}
|
|
180
180
|
/></DynamicRenderer
|
|
181
181
|
>
|
|
182
182
|
{/each}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<script>import
|
|
7
|
-
import Blocks from "../../../components/blocks/blocks.svelte";
|
|
6
|
+
<script>import Blocks from "../../../components/blocks/blocks.svelte";
|
|
8
7
|
import { getEnv } from "../../../functions/get-env";
|
|
9
8
|
import { get } from "../../../functions/get";
|
|
10
9
|
import { isEditing } from "../../../functions/is-editing";
|
|
@@ -27,9 +26,6 @@ export let resetFormOnSubmit = undefined;
|
|
|
27
26
|
export let successUrl = undefined;
|
|
28
27
|
export let validate = undefined;
|
|
29
28
|
export let attributes = undefined;
|
|
30
|
-
export let builderBlock;
|
|
31
|
-
export let builderComponents;
|
|
32
|
-
export let builderLinkComponent = undefined;
|
|
33
29
|
export let errorMessage = undefined;
|
|
34
30
|
export let sendingMessage = undefined;
|
|
35
31
|
export let successMessage = undefined;
|
|
@@ -254,16 +250,7 @@ let formErrorMessage = "";
|
|
|
254
250
|
{...filterAttrs(attributes, "on:", false)}
|
|
255
251
|
use:setAttrs={filterAttrs(attributes, "on:", true)}
|
|
256
252
|
>
|
|
257
|
-
|
|
258
|
-
{#each builderBlock?.children as block, idx (`form-block-${idx}`)}
|
|
259
|
-
<Block
|
|
260
|
-
{block}
|
|
261
|
-
context={builderContext}
|
|
262
|
-
registeredComponents={builderComponents}
|
|
263
|
-
linkComponent={builderLinkComponent}
|
|
264
|
-
/>
|
|
265
|
-
{/each}
|
|
266
|
-
{/if}
|
|
253
|
+
<slot />
|
|
267
254
|
{#if submissionState() === "error"}
|
|
268
255
|
<Blocks
|
|
269
256
|
path="errorMessage"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { getSrcSet } from "./image.helpers";
|
|
1
|
+
<script>import { getSrcSet } from "./image.helpers";
|
|
3
2
|
export let image;
|
|
4
3
|
export let src = undefined;
|
|
5
4
|
export let srcset = undefined;
|
|
@@ -66,7 +65,6 @@ $: aspectRatioCss = () => {
|
|
|
66
65
|
const out = aspectRatio ? aspectRatioStyles : undefined;
|
|
67
66
|
return out;
|
|
68
67
|
};
|
|
69
|
-
onMount(() => { });
|
|
70
68
|
</script>
|
|
71
69
|
|
|
72
70
|
<picture>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.0.
|
|
1
|
+
export const SDK_VERSION = "3.0.5";
|
|
@@ -122,7 +122,7 @@ export interface ComponentInfo {
|
|
|
122
122
|
/**
|
|
123
123
|
* Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
|
|
124
124
|
*
|
|
125
|
-
* Defaults to `
|
|
125
|
+
* Defaults to `false`.
|
|
126
126
|
*/
|
|
127
127
|
builderBlock?: boolean;
|
|
128
128
|
/**
|
|
@@ -130,7 +130,7 @@ export interface ComponentInfo {
|
|
|
130
130
|
* The Builder Context contains a lot of data relevant to the current `Content` render.
|
|
131
131
|
* You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
|
|
132
132
|
*
|
|
133
|
-
* Defaults to `
|
|
133
|
+
* Defaults to `false`.
|
|
134
134
|
*/
|
|
135
135
|
builderContext?: boolean;
|
|
136
136
|
/**
|
|
@@ -19,6 +19,16 @@ export interface Input {
|
|
|
19
19
|
/** @hidden */
|
|
20
20
|
autoFocus?: boolean;
|
|
21
21
|
subFields?: Input[];
|
|
22
|
+
/**
|
|
23
|
+
* When input is of `type` `object`, use this field to collapse multiple inputs
|
|
24
|
+
* in the Visual Editor by default and preserve screen space.
|
|
25
|
+
*/
|
|
26
|
+
folded?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When input is of `type` `object`, provide guidance in the Visual Editor
|
|
29
|
+
* on how to edit this object's contents.
|
|
30
|
+
*/
|
|
31
|
+
keysHelperText?: string;
|
|
22
32
|
/**
|
|
23
33
|
* Additional text to render in the UI to give guidance on how to use this
|
|
24
34
|
*
|
|
@@ -113,7 +113,7 @@ let open = [];
|
|
|
113
113
|
</script>
|
|
114
114
|
|
|
115
115
|
<div style={stringifyStyles(accordionStyles())} class="builder-accordion">
|
|
116
|
-
{#each items as item, index}
|
|
116
|
+
{#each items as item, index (index)}
|
|
117
117
|
<div
|
|
118
118
|
style={stringifyStyles({
|
|
119
119
|
...accordionTitleStyles(),
|
|
@@ -170,13 +170,13 @@ $: flexDir = () => {
|
|
|
170
170
|
><Blocks
|
|
171
171
|
path={`columns.${index}.blocks`}
|
|
172
172
|
parent={builderBlock.id}
|
|
173
|
-
styleProp={{
|
|
174
|
-
flexGrow: "1",
|
|
175
|
-
}}
|
|
176
173
|
context={builderContext}
|
|
177
174
|
registeredComponents={builderComponents}
|
|
178
175
|
linkComponent={builderLinkComponent}
|
|
179
176
|
blocks={column.blocks}
|
|
177
|
+
styleProp={{
|
|
178
|
+
flexGrow: "1",
|
|
179
|
+
}}
|
|
180
180
|
/></DynamicRenderer
|
|
181
181
|
>
|
|
182
182
|
{/each}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<script>import
|
|
7
|
-
import Blocks from "../../../components/blocks/blocks.svelte";
|
|
6
|
+
<script>import Blocks from "../../../components/blocks/blocks.svelte";
|
|
8
7
|
import { getEnv } from "../../../functions/get-env";
|
|
9
8
|
import { get } from "../../../functions/get";
|
|
10
9
|
import { isEditing } from "../../../functions/is-editing";
|
|
@@ -27,9 +26,6 @@ export let resetFormOnSubmit = undefined;
|
|
|
27
26
|
export let successUrl = undefined;
|
|
28
27
|
export let validate = undefined;
|
|
29
28
|
export let attributes = undefined;
|
|
30
|
-
export let builderBlock;
|
|
31
|
-
export let builderComponents;
|
|
32
|
-
export let builderLinkComponent = undefined;
|
|
33
29
|
export let errorMessage = undefined;
|
|
34
30
|
export let sendingMessage = undefined;
|
|
35
31
|
export let successMessage = undefined;
|
|
@@ -254,16 +250,7 @@ let formErrorMessage = "";
|
|
|
254
250
|
{...filterAttrs(attributes, "on:", false)}
|
|
255
251
|
use:setAttrs={filterAttrs(attributes, "on:", true)}
|
|
256
252
|
>
|
|
257
|
-
|
|
258
|
-
{#each builderBlock?.children as block, idx (`form-block-${idx}`)}
|
|
259
|
-
<Block
|
|
260
|
-
{block}
|
|
261
|
-
context={builderContext}
|
|
262
|
-
registeredComponents={builderComponents}
|
|
263
|
-
linkComponent={builderLinkComponent}
|
|
264
|
-
/>
|
|
265
|
-
{/each}
|
|
266
|
-
{/if}
|
|
253
|
+
<slot />
|
|
267
254
|
{#if submissionState() === "error"}
|
|
268
255
|
<Blocks
|
|
269
256
|
path="errorMessage"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { getSrcSet } from "./image.helpers";
|
|
1
|
+
<script>import { getSrcSet } from "./image.helpers";
|
|
3
2
|
export let image;
|
|
4
3
|
export let src = undefined;
|
|
5
4
|
export let srcset = undefined;
|
|
@@ -66,7 +65,6 @@ $: aspectRatioCss = () => {
|
|
|
66
65
|
const out = aspectRatio ? aspectRatioStyles : undefined;
|
|
67
66
|
return out;
|
|
68
67
|
};
|
|
69
|
-
onMount(() => { });
|
|
70
68
|
</script>
|
|
71
69
|
|
|
72
70
|
<picture>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.0.
|
|
1
|
+
export const SDK_VERSION = "3.0.5";
|
|
@@ -122,7 +122,7 @@ export interface ComponentInfo {
|
|
|
122
122
|
/**
|
|
123
123
|
* Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
|
|
124
124
|
*
|
|
125
|
-
* Defaults to `
|
|
125
|
+
* Defaults to `false`.
|
|
126
126
|
*/
|
|
127
127
|
builderBlock?: boolean;
|
|
128
128
|
/**
|
|
@@ -130,7 +130,7 @@ export interface ComponentInfo {
|
|
|
130
130
|
* The Builder Context contains a lot of data relevant to the current `Content` render.
|
|
131
131
|
* You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
|
|
132
132
|
*
|
|
133
|
-
* Defaults to `
|
|
133
|
+
* Defaults to `false`.
|
|
134
134
|
*/
|
|
135
135
|
builderContext?: boolean;
|
|
136
136
|
/**
|
|
@@ -19,6 +19,16 @@ export interface Input {
|
|
|
19
19
|
/** @hidden */
|
|
20
20
|
autoFocus?: boolean;
|
|
21
21
|
subFields?: Input[];
|
|
22
|
+
/**
|
|
23
|
+
* When input is of `type` `object`, use this field to collapse multiple inputs
|
|
24
|
+
* in the Visual Editor by default and preserve screen space.
|
|
25
|
+
*/
|
|
26
|
+
folded?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When input is of `type` `object`, provide guidance in the Visual Editor
|
|
29
|
+
* on how to edit this object's contents.
|
|
30
|
+
*/
|
|
31
|
+
keysHelperText?: string;
|
|
22
32
|
/**
|
|
23
33
|
* Additional text to render in the UI to give guidance on how to use this
|
|
24
34
|
*
|
|
@@ -113,7 +113,7 @@ let open = [];
|
|
|
113
113
|
</script>
|
|
114
114
|
|
|
115
115
|
<div style={stringifyStyles(accordionStyles())} class="builder-accordion">
|
|
116
|
-
{#each items as item, index}
|
|
116
|
+
{#each items as item, index (index)}
|
|
117
117
|
<div
|
|
118
118
|
style={stringifyStyles({
|
|
119
119
|
...accordionTitleStyles(),
|
|
@@ -170,13 +170,13 @@ $: flexDir = () => {
|
|
|
170
170
|
><Blocks
|
|
171
171
|
path={`columns.${index}.blocks`}
|
|
172
172
|
parent={builderBlock.id}
|
|
173
|
-
styleProp={{
|
|
174
|
-
flexGrow: "1",
|
|
175
|
-
}}
|
|
176
173
|
context={builderContext}
|
|
177
174
|
registeredComponents={builderComponents}
|
|
178
175
|
linkComponent={builderLinkComponent}
|
|
179
176
|
blocks={column.blocks}
|
|
177
|
+
styleProp={{
|
|
178
|
+
flexGrow: "1",
|
|
179
|
+
}}
|
|
180
180
|
/></DynamicRenderer
|
|
181
181
|
>
|
|
182
182
|
{/each}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<script>import
|
|
7
|
-
import Blocks from "../../../components/blocks/blocks.svelte";
|
|
6
|
+
<script>import Blocks from "../../../components/blocks/blocks.svelte";
|
|
8
7
|
import { getEnv } from "../../../functions/get-env";
|
|
9
8
|
import { get } from "../../../functions/get";
|
|
10
9
|
import { isEditing } from "../../../functions/is-editing";
|
|
@@ -27,9 +26,6 @@ export let resetFormOnSubmit = undefined;
|
|
|
27
26
|
export let successUrl = undefined;
|
|
28
27
|
export let validate = undefined;
|
|
29
28
|
export let attributes = undefined;
|
|
30
|
-
export let builderBlock;
|
|
31
|
-
export let builderComponents;
|
|
32
|
-
export let builderLinkComponent = undefined;
|
|
33
29
|
export let errorMessage = undefined;
|
|
34
30
|
export let sendingMessage = undefined;
|
|
35
31
|
export let successMessage = undefined;
|
|
@@ -254,16 +250,7 @@ let formErrorMessage = "";
|
|
|
254
250
|
{...filterAttrs(attributes, "on:", false)}
|
|
255
251
|
use:setAttrs={filterAttrs(attributes, "on:", true)}
|
|
256
252
|
>
|
|
257
|
-
|
|
258
|
-
{#each builderBlock?.children as block, idx (`form-block-${idx}`)}
|
|
259
|
-
<Block
|
|
260
|
-
{block}
|
|
261
|
-
context={builderContext}
|
|
262
|
-
registeredComponents={builderComponents}
|
|
263
|
-
linkComponent={builderLinkComponent}
|
|
264
|
-
/>
|
|
265
|
-
{/each}
|
|
266
|
-
{/if}
|
|
253
|
+
<slot />
|
|
267
254
|
{#if submissionState() === "error"}
|
|
268
255
|
<Blocks
|
|
269
256
|
path="errorMessage"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { getSrcSet } from "./image.helpers";
|
|
1
|
+
<script>import { getSrcSet } from "./image.helpers";
|
|
3
2
|
export let image;
|
|
4
3
|
export let src = undefined;
|
|
5
4
|
export let srcset = undefined;
|
|
@@ -66,7 +65,6 @@ $: aspectRatioCss = () => {
|
|
|
66
65
|
const out = aspectRatio ? aspectRatioStyles : undefined;
|
|
67
66
|
return out;
|
|
68
67
|
};
|
|
69
|
-
onMount(() => { });
|
|
70
68
|
</script>
|
|
71
69
|
|
|
72
70
|
<picture>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.0.
|
|
1
|
+
export const SDK_VERSION = "3.0.5";
|
|
@@ -122,7 +122,7 @@ export interface ComponentInfo {
|
|
|
122
122
|
/**
|
|
123
123
|
* Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
|
|
124
124
|
*
|
|
125
|
-
* Defaults to `
|
|
125
|
+
* Defaults to `false`.
|
|
126
126
|
*/
|
|
127
127
|
builderBlock?: boolean;
|
|
128
128
|
/**
|
|
@@ -130,7 +130,7 @@ export interface ComponentInfo {
|
|
|
130
130
|
* The Builder Context contains a lot of data relevant to the current `Content` render.
|
|
131
131
|
* You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
|
|
132
132
|
*
|
|
133
|
-
* Defaults to `
|
|
133
|
+
* Defaults to `false`.
|
|
134
134
|
*/
|
|
135
135
|
builderContext?: boolean;
|
|
136
136
|
/**
|
|
@@ -19,6 +19,16 @@ export interface Input {
|
|
|
19
19
|
/** @hidden */
|
|
20
20
|
autoFocus?: boolean;
|
|
21
21
|
subFields?: Input[];
|
|
22
|
+
/**
|
|
23
|
+
* When input is of `type` `object`, use this field to collapse multiple inputs
|
|
24
|
+
* in the Visual Editor by default and preserve screen space.
|
|
25
|
+
*/
|
|
26
|
+
folded?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When input is of `type` `object`, provide guidance in the Visual Editor
|
|
29
|
+
* on how to edit this object's contents.
|
|
30
|
+
*/
|
|
31
|
+
keysHelperText?: string;
|
|
22
32
|
/**
|
|
23
33
|
* Additional text to render in the UI to give guidance on how to use this
|
|
24
34
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-svelte",
|
|
3
3
|
"description": "Builder.io SDK for Svelte",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"svelte-preprocess": "^5.0.4",
|
|
61
61
|
"tslib": "^2.3.1",
|
|
62
62
|
"typescript": "^5.1.6",
|
|
63
|
-
"vite": "^4.
|
|
63
|
+
"vite": "^4.5.6"
|
|
64
64
|
},
|
|
65
65
|
"nx": {
|
|
66
66
|
"targets": {
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
><Blocks
|
|
195
195
|
path={`columns.${index}.blocks`}
|
|
196
196
|
parent={builderBlock.id}
|
|
197
|
-
styleProp={{
|
|
198
|
-
flexGrow: "1",
|
|
199
|
-
}}
|
|
200
197
|
context={builderContext}
|
|
201
198
|
registeredComponents={builderComponents}
|
|
202
199
|
linkComponent={builderLinkComponent}
|
|
203
200
|
blocks={column.blocks}
|
|
201
|
+
styleProp={{
|
|
202
|
+
flexGrow: "1",
|
|
203
|
+
}}
|
|
204
204
|
/></DynamicRenderer
|
|
205
205
|
>
|
|
206
206
|
{/each}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
sendingMessage?: BuilderBlock[];
|
|
26
26
|
resetFormOnSubmit?: boolean;
|
|
27
27
|
errorMessagePath?: string;
|
|
28
|
+
children?: any;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
/**
|
|
@@ -35,7 +36,6 @@
|
|
|
35
36
|
</script>
|
|
36
37
|
|
|
37
38
|
<script lang="ts">
|
|
38
|
-
import Block from "../../../components/block/block.svelte";
|
|
39
39
|
import Blocks from "../../../components/blocks/blocks.svelte";
|
|
40
40
|
import { getEnv } from "../../../functions/get-env";
|
|
41
41
|
import { get } from "../../../functions/get";
|
|
@@ -68,10 +68,7 @@
|
|
|
68
68
|
export let successUrl: FormProps["successUrl"] = undefined;
|
|
69
69
|
export let validate: FormProps["validate"] = undefined;
|
|
70
70
|
export let attributes: FormProps["attributes"] = undefined;
|
|
71
|
-
|
|
72
|
-
export let builderComponents: FormProps["builderComponents"];
|
|
73
|
-
export let builderLinkComponent: FormProps["builderLinkComponent"] =
|
|
74
|
-
undefined;
|
|
71
|
+
|
|
75
72
|
export let errorMessage: FormProps["errorMessage"] = undefined;
|
|
76
73
|
export let sendingMessage: FormProps["sendingMessage"] = undefined;
|
|
77
74
|
export let successMessage: FormProps["successMessage"] = undefined;
|
|
@@ -307,16 +304,7 @@
|
|
|
307
304
|
{...filterAttrs(attributes, "on:", false)}
|
|
308
305
|
use:setAttrs={filterAttrs(attributes, "on:", true)}
|
|
309
306
|
>
|
|
310
|
-
|
|
311
|
-
{#each builderBlock?.children as block, idx (`form-block-${idx}`)}
|
|
312
|
-
<Block
|
|
313
|
-
{block}
|
|
314
|
-
context={builderContext}
|
|
315
|
-
registeredComponents={builderComponents}
|
|
316
|
-
linkComponent={builderLinkComponent}
|
|
317
|
-
/>
|
|
318
|
-
{/each}
|
|
319
|
-
{/if}
|
|
307
|
+
<slot />
|
|
320
308
|
{#if submissionState() === "error"}
|
|
321
309
|
<Blocks
|
|
322
310
|
path="errorMessage"
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { onMount } from "svelte";
|
|
3
|
-
|
|
4
2
|
import { getSrcSet } from "./image.helpers";
|
|
5
3
|
import type { ImageProps } from "./image.types";
|
|
6
4
|
|
|
@@ -74,8 +72,6 @@
|
|
|
74
72
|
const out = aspectRatio ? aspectRatioStyles : undefined;
|
|
75
73
|
return out;
|
|
76
74
|
};
|
|
77
|
-
|
|
78
|
-
onMount(() => {});
|
|
79
75
|
</script>
|
|
80
76
|
|
|
81
77
|
<picture>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.0.
|
|
1
|
+
export const SDK_VERSION = "3.0.5"
|
package/src/types/components.ts
CHANGED
|
@@ -134,7 +134,7 @@ export interface ComponentInfo {
|
|
|
134
134
|
/**
|
|
135
135
|
* Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
|
|
136
136
|
*
|
|
137
|
-
* Defaults to `
|
|
137
|
+
* Defaults to `false`.
|
|
138
138
|
*/
|
|
139
139
|
builderBlock?: boolean;
|
|
140
140
|
|
|
@@ -143,7 +143,7 @@ export interface ComponentInfo {
|
|
|
143
143
|
* The Builder Context contains a lot of data relevant to the current `Content` render.
|
|
144
144
|
* You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
|
|
145
145
|
*
|
|
146
|
-
* Defaults to `
|
|
146
|
+
* Defaults to `false`.
|
|
147
147
|
*/
|
|
148
148
|
builderContext?: boolean;
|
|
149
149
|
|
package/src/types/input.ts
CHANGED
|
@@ -19,6 +19,16 @@ export interface Input {
|
|
|
19
19
|
/** @hidden */
|
|
20
20
|
autoFocus?: boolean;
|
|
21
21
|
subFields?: Input[];
|
|
22
|
+
/**
|
|
23
|
+
* When input is of `type` `object`, use this field to collapse multiple inputs
|
|
24
|
+
* in the Visual Editor by default and preserve screen space.
|
|
25
|
+
*/
|
|
26
|
+
folded?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When input is of `type` `object`, provide guidance in the Visual Editor
|
|
29
|
+
* on how to edit this object's contents.
|
|
30
|
+
*/
|
|
31
|
+
keysHelperText?: string;
|
|
22
32
|
/**
|
|
23
33
|
* Additional text to render in the UI to give guidance on how to use this
|
|
24
34
|
*
|