@builder.io/sdk-svelte 4.0.3 → 4.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/columns/columns.svelte +1 -0
- package/lib/browser/blocks/image/component-info.js +4 -0
- package/lib/browser/blocks/image/image.svelte +2 -0
- package/lib/browser/blocks/image/image.svelte.d.ts +1 -0
- package/lib/browser/blocks/image/image.types.d.ts +1 -0
- package/lib/browser/components/block/components/component-ref/component-ref.svelte +5 -2
- package/lib/browser/components/block/components/component-ref/component-ref.svelte.d.ts +2 -2
- package/lib/browser/components/blocks/blocks-wrapper.svelte +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/edge/blocks/columns/columns.svelte +1 -0
- package/lib/edge/blocks/image/component-info.js +4 -0
- package/lib/edge/blocks/image/image.svelte +2 -0
- package/lib/edge/blocks/image/image.svelte.d.ts +1 -0
- package/lib/edge/blocks/image/image.types.d.ts +1 -0
- package/lib/edge/components/block/components/component-ref/component-ref.svelte +5 -2
- package/lib/edge/components/block/components/component-ref/component-ref.svelte.d.ts +2 -2
- package/lib/edge/components/blocks/blocks-wrapper.svelte +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/node/blocks/columns/columns.svelte +1 -0
- package/lib/node/blocks/image/component-info.js +4 -0
- package/lib/node/blocks/image/image.svelte +2 -0
- package/lib/node/blocks/image/image.svelte.d.ts +1 -0
- package/lib/node/blocks/image/image.types.d.ts +1 -0
- package/lib/node/components/block/components/component-ref/component-ref.svelte +5 -2
- package/lib/node/components/block/components/component-ref/component-ref.svelte.d.ts +2 -2
- package/lib/node/components/blocks/blocks-wrapper.svelte +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/package.json +1 -1
- package/src/blocks/columns/columns.svelte +1 -0
- package/src/blocks/image/component-info.ts +4 -0
- package/src/blocks/image/image.svelte +2 -0
- package/src/blocks/image/image.types.ts +1 -0
- package/src/components/block/components/component-ref/component-ref.svelte +7 -2
- package/src/components/blocks/blocks-wrapper.svelte +6 -0
- package/src/constants/sdk-version.ts +1 -1
|
@@ -87,6 +87,10 @@ export const componentInfo = {
|
|
|
87
87
|
name: 'altText',
|
|
88
88
|
type: 'string',
|
|
89
89
|
helperText: 'Text to display when the user has images off'
|
|
90
|
+
}, {
|
|
91
|
+
name: 'title',
|
|
92
|
+
type: 'string',
|
|
93
|
+
helperText: 'Text to display when hovering over the asset'
|
|
90
94
|
}, {
|
|
91
95
|
name: 'height',
|
|
92
96
|
type: 'number',
|
|
@@ -6,6 +6,7 @@ export let noWebp = undefined;
|
|
|
6
6
|
export let aspectRatio = undefined;
|
|
7
7
|
export let highPriority = undefined;
|
|
8
8
|
export let altText = undefined;
|
|
9
|
+
export let title = undefined;
|
|
9
10
|
export let backgroundPosition = undefined;
|
|
10
11
|
export let backgroundSize = undefined;
|
|
11
12
|
export let className = undefined;
|
|
@@ -79,6 +80,7 @@ $: aspectRatioCss = () => {
|
|
|
79
80
|
loading={highPriority ? "eager" : "lazy"}
|
|
80
81
|
fetchpriority={highPriority ? "high" : "auto"}
|
|
81
82
|
alt={altText}
|
|
83
|
+
{title}
|
|
82
84
|
role={altText ? undefined : "presentation"}
|
|
83
85
|
class={"builder-image" + (className ? " " + className : "") + " img"}
|
|
84
86
|
src={image}
|
|
@@ -9,6 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
aspectRatio?: ImageProps["aspectRatio"];
|
|
10
10
|
highPriority?: ImageProps["highPriority"];
|
|
11
11
|
altText?: ImageProps["altText"];
|
|
12
|
+
title?: ImageProps["title"];
|
|
12
13
|
backgroundPosition?: ImageProps["backgroundPosition"];
|
|
13
14
|
backgroundSize?: ImageProps["backgroundSize"];
|
|
14
15
|
className?: ImageProps["className"];
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
import Block from "../../block.svelte";
|
|
3
3
|
import InteractiveElement from "../interactive-element.svelte";
|
|
4
4
|
import { getWrapperProps } from "./component-ref.helpers";
|
|
5
|
+
export let componentOptions;
|
|
6
|
+
export let blockChildren;
|
|
5
7
|
export let isInteractive;
|
|
6
8
|
export let componentRef;
|
|
7
|
-
export let componentOptions;
|
|
8
9
|
export let builderBlock;
|
|
9
10
|
export let context;
|
|
10
11
|
export let linkComponent;
|
|
11
12
|
export let includeBlockProps;
|
|
12
|
-
export let blockChildren;
|
|
13
13
|
export let registeredComponents;
|
|
14
|
+
let shouldUpdate = false;
|
|
14
15
|
let Wrapper = isInteractive ? InteractiveElement : componentRef;
|
|
16
|
+
function onUpdateFn_0(..._args) { }
|
|
17
|
+
$: onUpdateFn_0(...[componentOptions, blockChildren]);
|
|
15
18
|
</script>
|
|
16
19
|
|
|
17
20
|
{#if componentRef}
|
|
@@ -2,14 +2,14 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { ComponentProps } from "./component-ref.helpers";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
+
componentOptions: ComponentProps["componentOptions"];
|
|
6
|
+
blockChildren: ComponentProps["blockChildren"];
|
|
5
7
|
isInteractive: ComponentProps["isInteractive"];
|
|
6
8
|
componentRef: ComponentProps["componentRef"];
|
|
7
|
-
componentOptions: ComponentProps["componentOptions"];
|
|
8
9
|
builderBlock: ComponentProps["builderBlock"];
|
|
9
10
|
context: ComponentProps["context"];
|
|
10
11
|
linkComponent: ComponentProps["linkComponent"];
|
|
11
12
|
includeBlockProps: ComponentProps["includeBlockProps"];
|
|
12
|
-
blockChildren: ComponentProps["blockChildren"];
|
|
13
13
|
registeredComponents: ComponentProps["registeredComponents"];
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.5";
|
|
@@ -87,6 +87,10 @@ export const componentInfo = {
|
|
|
87
87
|
name: 'altText',
|
|
88
88
|
type: 'string',
|
|
89
89
|
helperText: 'Text to display when the user has images off'
|
|
90
|
+
}, {
|
|
91
|
+
name: 'title',
|
|
92
|
+
type: 'string',
|
|
93
|
+
helperText: 'Text to display when hovering over the asset'
|
|
90
94
|
}, {
|
|
91
95
|
name: 'height',
|
|
92
96
|
type: 'number',
|
|
@@ -6,6 +6,7 @@ export let noWebp = undefined;
|
|
|
6
6
|
export let aspectRatio = undefined;
|
|
7
7
|
export let highPriority = undefined;
|
|
8
8
|
export let altText = undefined;
|
|
9
|
+
export let title = undefined;
|
|
9
10
|
export let backgroundPosition = undefined;
|
|
10
11
|
export let backgroundSize = undefined;
|
|
11
12
|
export let className = undefined;
|
|
@@ -79,6 +80,7 @@ $: aspectRatioCss = () => {
|
|
|
79
80
|
loading={highPriority ? "eager" : "lazy"}
|
|
80
81
|
fetchpriority={highPriority ? "high" : "auto"}
|
|
81
82
|
alt={altText}
|
|
83
|
+
{title}
|
|
82
84
|
role={altText ? undefined : "presentation"}
|
|
83
85
|
class={"builder-image" + (className ? " " + className : "") + " img"}
|
|
84
86
|
src={image}
|
|
@@ -9,6 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
aspectRatio?: ImageProps["aspectRatio"];
|
|
10
10
|
highPriority?: ImageProps["highPriority"];
|
|
11
11
|
altText?: ImageProps["altText"];
|
|
12
|
+
title?: ImageProps["title"];
|
|
12
13
|
backgroundPosition?: ImageProps["backgroundPosition"];
|
|
13
14
|
backgroundSize?: ImageProps["backgroundSize"];
|
|
14
15
|
className?: ImageProps["className"];
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
import Block from "../../block.svelte";
|
|
3
3
|
import InteractiveElement from "../interactive-element.svelte";
|
|
4
4
|
import { getWrapperProps } from "./component-ref.helpers";
|
|
5
|
+
export let componentOptions;
|
|
6
|
+
export let blockChildren;
|
|
5
7
|
export let isInteractive;
|
|
6
8
|
export let componentRef;
|
|
7
|
-
export let componentOptions;
|
|
8
9
|
export let builderBlock;
|
|
9
10
|
export let context;
|
|
10
11
|
export let linkComponent;
|
|
11
12
|
export let includeBlockProps;
|
|
12
|
-
export let blockChildren;
|
|
13
13
|
export let registeredComponents;
|
|
14
|
+
let shouldUpdate = false;
|
|
14
15
|
let Wrapper = isInteractive ? InteractiveElement : componentRef;
|
|
16
|
+
function onUpdateFn_0(..._args) { }
|
|
17
|
+
$: onUpdateFn_0(...[componentOptions, blockChildren]);
|
|
15
18
|
</script>
|
|
16
19
|
|
|
17
20
|
{#if componentRef}
|
|
@@ -2,14 +2,14 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { ComponentProps } from "./component-ref.helpers";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
+
componentOptions: ComponentProps["componentOptions"];
|
|
6
|
+
blockChildren: ComponentProps["blockChildren"];
|
|
5
7
|
isInteractive: ComponentProps["isInteractive"];
|
|
6
8
|
componentRef: ComponentProps["componentRef"];
|
|
7
|
-
componentOptions: ComponentProps["componentOptions"];
|
|
8
9
|
builderBlock: ComponentProps["builderBlock"];
|
|
9
10
|
context: ComponentProps["context"];
|
|
10
11
|
linkComponent: ComponentProps["linkComponent"];
|
|
11
12
|
includeBlockProps: ComponentProps["includeBlockProps"];
|
|
12
|
-
blockChildren: ComponentProps["blockChildren"];
|
|
13
13
|
registeredComponents: ComponentProps["registeredComponents"];
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.5";
|
|
@@ -87,6 +87,10 @@ export const componentInfo = {
|
|
|
87
87
|
name: 'altText',
|
|
88
88
|
type: 'string',
|
|
89
89
|
helperText: 'Text to display when the user has images off'
|
|
90
|
+
}, {
|
|
91
|
+
name: 'title',
|
|
92
|
+
type: 'string',
|
|
93
|
+
helperText: 'Text to display when hovering over the asset'
|
|
90
94
|
}, {
|
|
91
95
|
name: 'height',
|
|
92
96
|
type: 'number',
|
|
@@ -6,6 +6,7 @@ export let noWebp = undefined;
|
|
|
6
6
|
export let aspectRatio = undefined;
|
|
7
7
|
export let highPriority = undefined;
|
|
8
8
|
export let altText = undefined;
|
|
9
|
+
export let title = undefined;
|
|
9
10
|
export let backgroundPosition = undefined;
|
|
10
11
|
export let backgroundSize = undefined;
|
|
11
12
|
export let className = undefined;
|
|
@@ -79,6 +80,7 @@ $: aspectRatioCss = () => {
|
|
|
79
80
|
loading={highPriority ? "eager" : "lazy"}
|
|
80
81
|
fetchpriority={highPriority ? "high" : "auto"}
|
|
81
82
|
alt={altText}
|
|
83
|
+
{title}
|
|
82
84
|
role={altText ? undefined : "presentation"}
|
|
83
85
|
class={"builder-image" + (className ? " " + className : "") + " img"}
|
|
84
86
|
src={image}
|
|
@@ -9,6 +9,7 @@ declare const __propDef: {
|
|
|
9
9
|
aspectRatio?: ImageProps["aspectRatio"];
|
|
10
10
|
highPriority?: ImageProps["highPriority"];
|
|
11
11
|
altText?: ImageProps["altText"];
|
|
12
|
+
title?: ImageProps["title"];
|
|
12
13
|
backgroundPosition?: ImageProps["backgroundPosition"];
|
|
13
14
|
backgroundSize?: ImageProps["backgroundSize"];
|
|
14
15
|
className?: ImageProps["className"];
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
import Block from "../../block.svelte";
|
|
3
3
|
import InteractiveElement from "../interactive-element.svelte";
|
|
4
4
|
import { getWrapperProps } from "./component-ref.helpers";
|
|
5
|
+
export let componentOptions;
|
|
6
|
+
export let blockChildren;
|
|
5
7
|
export let isInteractive;
|
|
6
8
|
export let componentRef;
|
|
7
|
-
export let componentOptions;
|
|
8
9
|
export let builderBlock;
|
|
9
10
|
export let context;
|
|
10
11
|
export let linkComponent;
|
|
11
12
|
export let includeBlockProps;
|
|
12
|
-
export let blockChildren;
|
|
13
13
|
export let registeredComponents;
|
|
14
|
+
let shouldUpdate = false;
|
|
14
15
|
let Wrapper = isInteractive ? InteractiveElement : componentRef;
|
|
16
|
+
function onUpdateFn_0(..._args) { }
|
|
17
|
+
$: onUpdateFn_0(...[componentOptions, blockChildren]);
|
|
15
18
|
</script>
|
|
16
19
|
|
|
17
20
|
{#if componentRef}
|
|
@@ -2,14 +2,14 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { ComponentProps } from "./component-ref.helpers";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
+
componentOptions: ComponentProps["componentOptions"];
|
|
6
|
+
blockChildren: ComponentProps["blockChildren"];
|
|
5
7
|
isInteractive: ComponentProps["isInteractive"];
|
|
6
8
|
componentRef: ComponentProps["componentRef"];
|
|
7
|
-
componentOptions: ComponentProps["componentOptions"];
|
|
8
9
|
builderBlock: ComponentProps["builderBlock"];
|
|
9
10
|
context: ComponentProps["context"];
|
|
10
11
|
linkComponent: ComponentProps["linkComponent"];
|
|
11
12
|
includeBlockProps: ComponentProps["includeBlockProps"];
|
|
12
|
-
blockChildren: ComponentProps["blockChildren"];
|
|
13
13
|
registeredComponents: ComponentProps["registeredComponents"];
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.
|
|
1
|
+
export declare const SDK_VERSION = "4.0.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.5";
|
package/package.json
CHANGED
|
@@ -89,6 +89,10 @@ export const componentInfo: ComponentInfo = {
|
|
|
89
89
|
name: 'altText',
|
|
90
90
|
type: 'string',
|
|
91
91
|
helperText: 'Text to display when the user has images off'
|
|
92
|
+
}, {
|
|
93
|
+
name: 'title',
|
|
94
|
+
type: 'string',
|
|
95
|
+
helperText: 'Text to display when hovering over the asset'
|
|
92
96
|
}, {
|
|
93
97
|
name: 'height',
|
|
94
98
|
type: 'number',
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export let aspectRatio: ImageProps["aspectRatio"] = undefined;
|
|
10
10
|
export let highPriority: ImageProps["highPriority"] = undefined;
|
|
11
11
|
export let altText: ImageProps["altText"] = undefined;
|
|
12
|
+
export let title: ImageProps["title"] = undefined;
|
|
12
13
|
export let backgroundPosition: ImageProps["backgroundPosition"] = undefined;
|
|
13
14
|
export let backgroundSize: ImageProps["backgroundSize"] = undefined;
|
|
14
15
|
export let className: ImageProps["className"] = undefined;
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
loading={highPriority ? "eager" : "lazy"}
|
|
87
88
|
fetchpriority={highPriority ? "high" : "auto"}
|
|
88
89
|
alt={altText}
|
|
90
|
+
{title}
|
|
89
91
|
role={altText ? undefined : "presentation"}
|
|
90
92
|
class={"builder-image" + (className ? " " + className : "") + " img"}
|
|
91
93
|
src={image}
|
|
@@ -5,17 +5,22 @@
|
|
|
5
5
|
import type { ComponentProps } from "./component-ref.helpers";
|
|
6
6
|
import { getWrapperProps } from "./component-ref.helpers";
|
|
7
7
|
|
|
8
|
+
export let componentOptions: ComponentProps["componentOptions"];
|
|
9
|
+
export let blockChildren: ComponentProps["blockChildren"];
|
|
8
10
|
export let isInteractive: ComponentProps["isInteractive"];
|
|
9
11
|
export let componentRef: ComponentProps["componentRef"];
|
|
10
|
-
export let componentOptions: ComponentProps["componentOptions"];
|
|
11
12
|
export let builderBlock: ComponentProps["builderBlock"];
|
|
12
13
|
export let context: ComponentProps["context"];
|
|
13
14
|
export let linkComponent: ComponentProps["linkComponent"];
|
|
14
15
|
export let includeBlockProps: ComponentProps["includeBlockProps"];
|
|
15
|
-
export let blockChildren: ComponentProps["blockChildren"];
|
|
16
16
|
export let registeredComponents: ComponentProps["registeredComponents"];
|
|
17
17
|
|
|
18
|
+
let shouldUpdate = false;
|
|
18
19
|
let Wrapper = isInteractive ? InteractiveElement : componentRef;
|
|
20
|
+
|
|
21
|
+
function onUpdateFn_0(..._args: any[]) {}
|
|
22
|
+
|
|
23
|
+
$: onUpdateFn_0(...[componentOptions, blockChildren]);
|
|
19
24
|
</script>
|
|
20
25
|
|
|
21
26
|
{#if componentRef}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.0.
|
|
1
|
+
export const SDK_VERSION = "4.0.5"
|