@builder.io/sdk-solid 1.0.17 → 1.0.20

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/dist/index.d.ts CHANGED
@@ -676,6 +676,20 @@ type VariantsProviderProps = ContentVariantsPrps & {
676
676
 
677
677
  declare function ContentVariants(props: VariantsProviderProps): solid_js.JSX.Element;
678
678
 
679
+ declare const _default: solid_js.Context<{
680
+ content: any;
681
+ context: {};
682
+ localState: any;
683
+ rootSetState(): void;
684
+ rootState: {};
685
+ apiKey: any;
686
+ apiVersion: any;
687
+ componentInfos: {};
688
+ inheritedStyles: {};
689
+ BlocksWrapper: string;
690
+ BlocksWrapperProps: {};
691
+ }>;
692
+
679
693
  type QueryObject = Record<string, string | string[]>;
680
694
  type Search = URLSearchParams | string | QueryObject;
681
695
 
@@ -997,4 +1011,4 @@ declare const _processContentResult: (options: GetContentOptions, content: Conte
997
1011
  */
998
1012
  declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
999
1013
 
1000
- export { Blocks, BlocksProps, BuilderBlock, BuilderContent, Button, ButtonProps, ColumnProps, Columns, ComponentInfo, ContentVariants as Content, ContentVariantsPrps as ContentProps, FragmentComponent as Fragment, FragmentProps, Image, ImageProps, InsertMenuConfig, InsertMenuItem, RegisteredComponent, SectionComponent as Section, SectionProps, Settings, Symbol, SymbolProps, Text, TextProps, Video, VideoProps, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
1014
+ export { Blocks, BlocksProps, BuilderBlock, BuilderContent, _default as BuilderContext, Button, ButtonProps, ColumnProps, Columns, ComponentInfo, ContentVariants as Content, ContentVariantsPrps as ContentProps, FragmentComponent as Fragment, FragmentProps, Image, ImageProps, InsertMenuConfig, InsertMenuItem, RegisteredComponent, SectionComponent as Section, SectionProps, Settings, Symbol, SymbolProps, Text, TextProps, Video, VideoProps, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
@@ -3529,10 +3529,11 @@ function SelectComponent(props) {
3529
3529
  return props.options;
3530
3530
  },
3531
3531
  children: (option, _index) => {
3532
- _index();
3532
+ const index = _index();
3533
3533
  return (() => {
3534
3534
  const _el$2 = _tmpl$24();
3535
3535
  insert(_el$2, () => option.name || option.value);
3536
+ effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
3536
3537
  effect(() => _el$2.value = option.value);
3537
3538
  return _el$2;
3538
3539
  })();
@@ -4449,7 +4450,7 @@ function isFromTrustedHost(trustedHosts, e) {
4449
4450
  }
4450
4451
 
4451
4452
  // src/constants/sdk-version.ts
4452
- var SDK_VERSION = "1.0.17";
4453
+ var SDK_VERSION = "1.0.20";
4453
4454
 
4454
4455
  // src/functions/register.ts
4455
4456
  var registry = {};
@@ -5539,4 +5540,4 @@ var fetchBuilderProps = async (_args) => {
5539
5540
  };
5540
5541
  };
5541
5542
 
5542
- export { blocks_default as Blocks, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
5543
+ export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
@@ -3165,7 +3165,7 @@ function SelectComponent(props) {
3165
3165
  name={props.name}
3166
3166
  ><For6 each={props.options}>{(option, _index) => {
3167
3167
  const index = _index();
3168
- return <option value={option.value}>{option.name || option.value}</option>;
3168
+ return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3169
3169
  }}</For6></select>;
3170
3170
  }
3171
3171
  var select_default = SelectComponent;
@@ -4033,7 +4033,7 @@ function isFromTrustedHost(trustedHosts, e) {
4033
4033
  }
4034
4034
 
4035
4035
  // src/constants/sdk-version.ts
4036
- var SDK_VERSION = "1.0.17";
4036
+ var SDK_VERSION = "1.0.20";
4037
4037
 
4038
4038
  // src/functions/register.ts
4039
4039
  var registry = {};
@@ -4981,6 +4981,7 @@ var fetchBuilderProps = async (_args) => {
4981
4981
  };
4982
4982
  export {
4983
4983
  Blocks_default as Blocks,
4984
+ builder_context_default as BuilderContext,
4984
4985
  button_default as Button,
4985
4986
  columns_default as Columns,
4986
4987
  Content_variants_default as Content,
@@ -3519,10 +3519,11 @@ function SelectComponent(props) {
3519
3519
  return props.options;
3520
3520
  },
3521
3521
  children: (option, _index) => {
3522
- _index();
3522
+ const index = _index();
3523
3523
  return (() => {
3524
3524
  const _el$2 = _tmpl$24();
3525
3525
  insert(_el$2, () => option.name || option.value);
3526
+ effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
3526
3527
  effect(() => _el$2.value = option.value);
3527
3528
  return _el$2;
3528
3529
  })();
@@ -4434,7 +4435,7 @@ function isFromTrustedHost(trustedHosts, e) {
4434
4435
  }
4435
4436
 
4436
4437
  // src/constants/sdk-version.ts
4437
- var SDK_VERSION = "1.0.17";
4438
+ var SDK_VERSION = "1.0.20";
4438
4439
 
4439
4440
  // src/functions/register.ts
4440
4441
  var registry = {};
@@ -5522,4 +5523,4 @@ var fetchBuilderProps = async (_args) => {
5522
5523
  };
5523
5524
  };
5524
5525
 
5525
- export { blocks_default as Blocks, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
5526
+ export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
@@ -3155,7 +3155,7 @@ function SelectComponent(props) {
3155
3155
  name={props.name}
3156
3156
  ><For6 each={props.options}>{(option, _index) => {
3157
3157
  const index = _index();
3158
- return <option value={option.value}>{option.name || option.value}</option>;
3158
+ return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3159
3159
  }}</For6></select>;
3160
3160
  }
3161
3161
  var select_default = SelectComponent;
@@ -4018,7 +4018,7 @@ function isFromTrustedHost(trustedHosts, e) {
4018
4018
  }
4019
4019
 
4020
4020
  // src/constants/sdk-version.ts
4021
- var SDK_VERSION = "1.0.17";
4021
+ var SDK_VERSION = "1.0.20";
4022
4022
 
4023
4023
  // src/functions/register.ts
4024
4024
  var registry = {};
@@ -4964,6 +4964,7 @@ var fetchBuilderProps = async (_args) => {
4964
4964
  };
4965
4965
  export {
4966
4966
  Blocks_default as Blocks,
4967
+ builder_context_default as BuilderContext,
4967
4968
  button_default as Button,
4968
4969
  columns_default as Columns,
4969
4970
  Content_variants_default as Content,
package/lib/edge/dev.js CHANGED
@@ -6682,10 +6682,11 @@ function SelectComponent(props) {
6682
6682
  return props.options;
6683
6683
  },
6684
6684
  children: (option, _index) => {
6685
- _index();
6685
+ const index = _index();
6686
6686
  return (() => {
6687
6687
  const _el$2 = _tmpl$24();
6688
6688
  insert(_el$2, () => option.name || option.value);
6689
+ effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
6689
6690
  effect(() => _el$2.value = option.value);
6690
6691
  return _el$2;
6691
6692
  })();
@@ -7602,7 +7603,7 @@ function isFromTrustedHost(trustedHosts, e) {
7602
7603
  }
7603
7604
 
7604
7605
  // src/constants/sdk-version.ts
7605
- var SDK_VERSION = "1.0.17";
7606
+ var SDK_VERSION = "1.0.20";
7606
7607
 
7607
7608
  // src/functions/register.ts
7608
7609
  var registry = {};
@@ -8692,4 +8693,4 @@ var fetchBuilderProps = async (_args) => {
8692
8693
  };
8693
8694
  };
8694
8695
 
8695
- export { blocks_default as Blocks, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
8696
+ export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
package/lib/edge/dev.jsx CHANGED
@@ -6320,7 +6320,7 @@ function SelectComponent(props) {
6320
6320
  name={props.name}
6321
6321
  ><For6 each={props.options}>{(option, _index) => {
6322
6322
  const index = _index();
6323
- return <option value={option.value}>{option.name || option.value}</option>;
6323
+ return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
6324
6324
  }}</For6></select>;
6325
6325
  }
6326
6326
  var select_default = SelectComponent;
@@ -7188,7 +7188,7 @@ function isFromTrustedHost(trustedHosts, e) {
7188
7188
  }
7189
7189
 
7190
7190
  // src/constants/sdk-version.ts
7191
- var SDK_VERSION = "1.0.17";
7191
+ var SDK_VERSION = "1.0.20";
7192
7192
 
7193
7193
  // src/functions/register.ts
7194
7194
  var registry = {};
@@ -8136,6 +8136,7 @@ var fetchBuilderProps = async (_args) => {
8136
8136
  };
8137
8137
  export {
8138
8138
  Blocks_default as Blocks,
8139
+ builder_context_default as BuilderContext,
8139
8140
  button_default as Button,
8140
8141
  columns_default as Columns,
8141
8142
  Content_variants_default as Content,
package/lib/edge/index.js CHANGED
@@ -6672,10 +6672,11 @@ function SelectComponent(props) {
6672
6672
  return props.options;
6673
6673
  },
6674
6674
  children: (option, _index) => {
6675
- _index();
6675
+ const index = _index();
6676
6676
  return (() => {
6677
6677
  const _el$2 = _tmpl$24();
6678
6678
  insert(_el$2, () => option.name || option.value);
6679
+ effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
6679
6680
  effect(() => _el$2.value = option.value);
6680
6681
  return _el$2;
6681
6682
  })();
@@ -7587,7 +7588,7 @@ function isFromTrustedHost(trustedHosts, e) {
7587
7588
  }
7588
7589
 
7589
7590
  // src/constants/sdk-version.ts
7590
- var SDK_VERSION = "1.0.17";
7591
+ var SDK_VERSION = "1.0.20";
7591
7592
 
7592
7593
  // src/functions/register.ts
7593
7594
  var registry = {};
@@ -8675,4 +8676,4 @@ var fetchBuilderProps = async (_args) => {
8675
8676
  };
8676
8677
  };
8677
8678
 
8678
- export { blocks_default as Blocks, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
8679
+ export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
@@ -6310,7 +6310,7 @@ function SelectComponent(props) {
6310
6310
  name={props.name}
6311
6311
  ><For6 each={props.options}>{(option, _index) => {
6312
6312
  const index = _index();
6313
- return <option value={option.value}>{option.name || option.value}</option>;
6313
+ return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
6314
6314
  }}</For6></select>;
6315
6315
  }
6316
6316
  var select_default = SelectComponent;
@@ -7173,7 +7173,7 @@ function isFromTrustedHost(trustedHosts, e) {
7173
7173
  }
7174
7174
 
7175
7175
  // src/constants/sdk-version.ts
7176
- var SDK_VERSION = "1.0.17";
7176
+ var SDK_VERSION = "1.0.20";
7177
7177
 
7178
7178
  // src/functions/register.ts
7179
7179
  var registry = {};
@@ -8119,6 +8119,7 @@ var fetchBuilderProps = async (_args) => {
8119
8119
  };
8120
8120
  export {
8121
8121
  Blocks_default as Blocks,
8122
+ builder_context_default as BuilderContext,
8122
8123
  button_default as Button,
8123
8124
  columns_default as Columns,
8124
8125
  Content_variants_default as Content,
package/lib/node/dev.js CHANGED
@@ -3654,10 +3654,11 @@ function SelectComponent(props) {
3654
3654
  return props.options;
3655
3655
  },
3656
3656
  children: (option, _index) => {
3657
- _index();
3657
+ const index = _index();
3658
3658
  return (() => {
3659
3659
  const _el$2 = _tmpl$24();
3660
3660
  insert(_el$2, () => option.name || option.value);
3661
+ effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
3661
3662
  effect(() => _el$2.value = option.value);
3662
3663
  return _el$2;
3663
3664
  })();
@@ -4574,7 +4575,7 @@ function isFromTrustedHost(trustedHosts, e) {
4574
4575
  }
4575
4576
 
4576
4577
  // src/constants/sdk-version.ts
4577
- var SDK_VERSION = "1.0.17";
4578
+ var SDK_VERSION = "1.0.20";
4578
4579
 
4579
4580
  // src/functions/register.ts
4580
4581
  var registry = {};
@@ -5664,4 +5665,4 @@ var fetchBuilderProps = async (_args) => {
5664
5665
  };
5665
5666
  };
5666
5667
 
5667
- export { blocks_default as Blocks, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
5668
+ export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
package/lib/node/dev.jsx CHANGED
@@ -3292,7 +3292,7 @@ function SelectComponent(props) {
3292
3292
  name={props.name}
3293
3293
  ><For6 each={props.options}>{(option, _index) => {
3294
3294
  const index = _index();
3295
- return <option value={option.value}>{option.name || option.value}</option>;
3295
+ return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3296
3296
  }}</For6></select>;
3297
3297
  }
3298
3298
  var select_default = SelectComponent;
@@ -4160,7 +4160,7 @@ function isFromTrustedHost(trustedHosts, e) {
4160
4160
  }
4161
4161
 
4162
4162
  // src/constants/sdk-version.ts
4163
- var SDK_VERSION = "1.0.17";
4163
+ var SDK_VERSION = "1.0.20";
4164
4164
 
4165
4165
  // src/functions/register.ts
4166
4166
  var registry = {};
@@ -5108,6 +5108,7 @@ var fetchBuilderProps = async (_args) => {
5108
5108
  };
5109
5109
  export {
5110
5110
  Blocks_default as Blocks,
5111
+ builder_context_default as BuilderContext,
5111
5112
  button_default as Button,
5112
5113
  columns_default as Columns,
5113
5114
  Content_variants_default as Content,
package/lib/node/index.js CHANGED
@@ -3643,10 +3643,11 @@ function SelectComponent(props) {
3643
3643
  return props.options;
3644
3644
  },
3645
3645
  children: (option, _index) => {
3646
- _index();
3646
+ const index = _index();
3647
3647
  return (() => {
3648
3648
  const _el$2 = _tmpl$24();
3649
3649
  insert(_el$2, () => option.name || option.value);
3650
+ effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
3650
3651
  effect(() => _el$2.value = option.value);
3651
3652
  return _el$2;
3652
3653
  })();
@@ -4558,7 +4559,7 @@ function isFromTrustedHost(trustedHosts, e) {
4558
4559
  }
4559
4560
 
4560
4561
  // src/constants/sdk-version.ts
4561
- var SDK_VERSION = "1.0.17";
4562
+ var SDK_VERSION = "1.0.20";
4562
4563
 
4563
4564
  // src/functions/register.ts
4564
4565
  var registry = {};
@@ -5646,4 +5647,4 @@ var fetchBuilderProps = async (_args) => {
5646
5647
  };
5647
5648
  };
5648
5649
 
5649
- export { blocks_default as Blocks, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
5650
+ export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
@@ -3281,7 +3281,7 @@ function SelectComponent(props) {
3281
3281
  name={props.name}
3282
3282
  ><For6 each={props.options}>{(option, _index) => {
3283
3283
  const index = _index();
3284
- return <option value={option.value}>{option.name || option.value}</option>;
3284
+ return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
3285
3285
  }}</For6></select>;
3286
3286
  }
3287
3287
  var select_default = SelectComponent;
@@ -4144,7 +4144,7 @@ function isFromTrustedHost(trustedHosts, e) {
4144
4144
  }
4145
4145
 
4146
4146
  // src/constants/sdk-version.ts
4147
- var SDK_VERSION = "1.0.17";
4147
+ var SDK_VERSION = "1.0.20";
4148
4148
 
4149
4149
  // src/functions/register.ts
4150
4150
  var registry = {};
@@ -5090,6 +5090,7 @@ var fetchBuilderProps = async (_args) => {
5090
5090
  };
5091
5091
  export {
5092
5092
  Blocks_default as Blocks,
5093
+ builder_context_default as BuilderContext,
5093
5094
  button_default as Button,
5094
5095
  columns_default as Columns,
5095
5096
  Content_variants_default as Content,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",