@builder.io/sdk-svelte 4.0.3 → 4.0.4

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.
@@ -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"];
@@ -9,6 +9,7 @@ export interface ImageProps {
9
9
  height?: number;
10
10
  width?: number;
11
11
  altText?: string;
12
+ title?: string;
12
13
  backgroundSize?: 'cover' | 'contain';
13
14
  backgroundPosition?: string;
14
15
  srcset?: string;
@@ -59,7 +59,10 @@ $: dataPath = () => {
59
59
  : `${pathPrefix}${path || ""}`;
60
60
  };
61
61
  let blocksWrapperRef;
62
+ let shouldUpdate = false;
62
63
  onMount(() => { });
64
+ function onUpdateFn_0(..._args) { }
65
+ $: onUpdateFn_0(...[blocks]);
63
66
  </script>
64
67
 
65
68
  <svelte:element
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.3";
1
+ export declare const SDK_VERSION = "4.0.4";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.3";
1
+ export const SDK_VERSION = "4.0.4";
@@ -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"];
@@ -9,6 +9,7 @@ export interface ImageProps {
9
9
  height?: number;
10
10
  width?: number;
11
11
  altText?: string;
12
+ title?: string;
12
13
  backgroundSize?: 'cover' | 'contain';
13
14
  backgroundPosition?: string;
14
15
  srcset?: string;
@@ -59,7 +59,10 @@ $: dataPath = () => {
59
59
  : `${pathPrefix}${path || ""}`;
60
60
  };
61
61
  let blocksWrapperRef;
62
+ let shouldUpdate = false;
62
63
  onMount(() => { });
64
+ function onUpdateFn_0(..._args) { }
65
+ $: onUpdateFn_0(...[blocks]);
63
66
  </script>
64
67
 
65
68
  <svelte:element
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.3";
1
+ export declare const SDK_VERSION = "4.0.4";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.3";
1
+ export const SDK_VERSION = "4.0.4";
@@ -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"];
@@ -9,6 +9,7 @@ export interface ImageProps {
9
9
  height?: number;
10
10
  width?: number;
11
11
  altText?: string;
12
+ title?: string;
12
13
  backgroundSize?: 'cover' | 'contain';
13
14
  backgroundPosition?: string;
14
15
  srcset?: string;
@@ -59,7 +59,10 @@ $: dataPath = () => {
59
59
  : `${pathPrefix}${path || ""}`;
60
60
  };
61
61
  let blocksWrapperRef;
62
+ let shouldUpdate = false;
62
63
  onMount(() => { });
64
+ function onUpdateFn_0(..._args) { }
65
+ $: onUpdateFn_0(...[blocks]);
63
66
  </script>
64
67
 
65
68
  <svelte:element
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.3";
1
+ export declare const SDK_VERSION = "4.0.4";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.3";
1
+ export const SDK_VERSION = "4.0.4";
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": "4.0.3",
4
+ "version": "4.0.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "lib",
@@ -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}
@@ -9,6 +9,7 @@ export interface ImageProps {
9
9
  height?: number;
10
10
  width?: number;
11
11
  altText?: string;
12
+ title?: string;
12
13
  backgroundSize?: 'cover' | 'contain';
13
14
  backgroundPosition?: string;
14
15
  srcset?: string;
@@ -90,7 +90,13 @@
90
90
 
91
91
  let blocksWrapperRef;
92
92
 
93
+ let shouldUpdate = false;
94
+
93
95
  onMount(() => {});
96
+
97
+ function onUpdateFn_0(..._args: any[]) {}
98
+
99
+ $: onUpdateFn_0(...[blocks]);
94
100
  </script>
95
101
 
96
102
  <svelte:element
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.3"
1
+ export const SDK_VERSION = "4.0.4"