@builder.io/sdk-svelte 5.2.7 → 5.2.8

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.
@@ -84,7 +84,7 @@ onMount(() => { });
84
84
  })}
85
85
  loading={highPriority ? "eager" : "lazy"}
86
86
  fetchpriority={highPriority ? "high" : "auto"}
87
- alt={altText}
87
+ alt={altText || ""}
88
88
  {title}
89
89
  role={altText ? undefined : "presentation"}
90
90
  class={"builder-image" + (className ? " " + className : "") + " img"}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.2.7";
1
+ export declare const SDK_VERSION = "5.2.8";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.2.7";
1
+ export const SDK_VERSION = "5.2.8";
@@ -98,6 +98,20 @@ export interface ComponentInfo {
98
98
  query?: any;
99
99
  };
100
100
  friendlyName?: string;
101
+ /**
102
+ * Group custom components into their own accordion sections in the editor's insert menu.
103
+ * Components with the same `group` value are grouped together; components without a `group`
104
+ * (or with a blank value) fall back to the default "Custom Components" accordion.
105
+ *
106
+ * @example
107
+ * ```js
108
+ * Builder.registerComponent(MyStepComponent, {
109
+ * name: 'Step',
110
+ * group: 'Steps',
111
+ * })
112
+ * ```
113
+ */
114
+ group?: string;
101
115
  /**
102
116
  * Use to restrict access to your component based on a the current user permissions
103
117
  * By default components will show to all users
@@ -84,7 +84,7 @@ onMount(() => { });
84
84
  })}
85
85
  loading={highPriority ? "eager" : "lazy"}
86
86
  fetchpriority={highPriority ? "high" : "auto"}
87
- alt={altText}
87
+ alt={altText || ""}
88
88
  {title}
89
89
  role={altText ? undefined : "presentation"}
90
90
  class={"builder-image" + (className ? " " + className : "") + " img"}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.2.7";
1
+ export declare const SDK_VERSION = "5.2.8";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.2.7";
1
+ export const SDK_VERSION = "5.2.8";
@@ -98,6 +98,20 @@ export interface ComponentInfo {
98
98
  query?: any;
99
99
  };
100
100
  friendlyName?: string;
101
+ /**
102
+ * Group custom components into their own accordion sections in the editor's insert menu.
103
+ * Components with the same `group` value are grouped together; components without a `group`
104
+ * (or with a blank value) fall back to the default "Custom Components" accordion.
105
+ *
106
+ * @example
107
+ * ```js
108
+ * Builder.registerComponent(MyStepComponent, {
109
+ * name: 'Step',
110
+ * group: 'Steps',
111
+ * })
112
+ * ```
113
+ */
114
+ group?: string;
101
115
  /**
102
116
  * Use to restrict access to your component based on a the current user permissions
103
117
  * By default components will show to all users
@@ -84,7 +84,7 @@ onMount(() => { });
84
84
  })}
85
85
  loading={highPriority ? "eager" : "lazy"}
86
86
  fetchpriority={highPriority ? "high" : "auto"}
87
- alt={altText}
87
+ alt={altText || ""}
88
88
  {title}
89
89
  role={altText ? undefined : "presentation"}
90
90
  class={"builder-image" + (className ? " " + className : "") + " img"}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.2.7";
1
+ export declare const SDK_VERSION = "5.2.8";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.2.7";
1
+ export const SDK_VERSION = "5.2.8";
@@ -98,6 +98,20 @@ export interface ComponentInfo {
98
98
  query?: any;
99
99
  };
100
100
  friendlyName?: string;
101
+ /**
102
+ * Group custom components into their own accordion sections in the editor's insert menu.
103
+ * Components with the same `group` value are grouped together; components without a `group`
104
+ * (or with a blank value) fall back to the default "Custom Components" accordion.
105
+ *
106
+ * @example
107
+ * ```js
108
+ * Builder.registerComponent(MyStepComponent, {
109
+ * name: 'Step',
110
+ * group: 'Steps',
111
+ * })
112
+ * ```
113
+ */
114
+ group?: string;
101
115
  /**
102
116
  * Use to restrict access to your component based on a the current user permissions
103
117
  * By default components will show to all users
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": "5.2.7",
4
+ "version": "5.2.8",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "lib",
@@ -93,7 +93,7 @@
93
93
  })}
94
94
  loading={highPriority ? "eager" : "lazy"}
95
95
  fetchpriority={highPriority ? "high" : "auto"}
96
- alt={altText}
96
+ alt={altText || ""}
97
97
  {title}
98
98
  role={altText ? undefined : "presentation"}
99
99
  class={"builder-image" + (className ? " " + className : "") + " img"}
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.2.7"
1
+ export const SDK_VERSION = "5.2.8"
@@ -106,6 +106,21 @@ export interface ComponentInfo {
106
106
  };
107
107
  friendlyName?: string;
108
108
 
109
+ /**
110
+ * Group custom components into their own accordion sections in the editor's insert menu.
111
+ * Components with the same `group` value are grouped together; components without a `group`
112
+ * (or with a blank value) fall back to the default "Custom Components" accordion.
113
+ *
114
+ * @example
115
+ * ```js
116
+ * Builder.registerComponent(MyStepComponent, {
117
+ * name: 'Step',
118
+ * group: 'Steps',
119
+ * })
120
+ * ```
121
+ */
122
+ group?: string;
123
+
109
124
  /**
110
125
  * Use to restrict access to your component based on a the current user permissions
111
126
  * By default components will show to all users