@builder.io/sdk-solid 0.13.4 → 0.14.1

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/edge/index.js CHANGED
@@ -81,9 +81,6 @@ var getClassPropName = () => {
81
81
  // src/blocks/button/button.tsx
82
82
  function Button(props) {
83
83
  return createComponent(dynamic_renderer_default, {
84
- get TagName() {
85
- return props.link ? props.builderLinkComponent || "a" : "button";
86
- },
87
84
  get attributes() {
88
85
  return {
89
86
  ...props.attributes,
@@ -97,6 +94,9 @@ function Button(props) {
97
94
  }
98
95
  };
99
96
  },
97
+ get TagName() {
98
+ return props.link ? props.builderLinkComponent || "a" : "button";
99
+ },
100
100
  actionAttributes: {},
101
101
  get children() {
102
102
  return props.text;
@@ -6961,7 +6961,6 @@ var getDefaultRegisteredComponents = () => [{
6961
6961
  }, ...getExtraComponents()];
6962
6962
 
6963
6963
  // src/functions/register-component.ts
6964
- var components = [];
6965
6964
  var createRegisterComponentMessage = (info) => ({
6966
6965
  type: "builder.registerComponent",
6967
6966
  data: serializeComponentInfo(info)
@@ -7133,16 +7132,12 @@ var normalizeSearchParams = (searchParams) => searchParams instanceof URLSearchP
7133
7132
  // src/functions/get-content/generate-content-url.ts
7134
7133
  var isPositiveNumber = (thing) => typeof thing === "number" && !isNaN(thing) && thing >= 0;
7135
7134
  var generateContentUrl = (options) => {
7136
- let {
7137
- noTraverse = false
7138
- } = options;
7139
7135
  const {
7140
7136
  limit = 30,
7141
7137
  userAttributes,
7142
7138
  query,
7143
7139
  model,
7144
7140
  apiKey,
7145
- includeRefs = true,
7146
7141
  enrich,
7147
7142
  locale,
7148
7143
  apiVersion = DEFAULT_API_VERSION,
@@ -7160,10 +7155,16 @@ var generateContentUrl = (options) => {
7160
7155
  if (!["v3"].includes(apiVersion)) {
7161
7156
  throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
7162
7157
  }
7163
- if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options)) {
7164
- noTraverse = true;
7165
- }
7166
- const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
7158
+ const noTraverse = limit !== 1;
7159
+ const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}`);
7160
+ url.searchParams.set("apiKey", apiKey);
7161
+ url.searchParams.set("limit", String(limit));
7162
+ url.searchParams.set("noTraverse", String(noTraverse));
7163
+ url.searchParams.set("includeRefs", String(true));
7164
+ if (locale)
7165
+ url.searchParams.set("locale", locale);
7166
+ if (enrich)
7167
+ url.searchParams.set("enrich", String(enrich));
7167
7168
  url.searchParams.set("omit", omit || "meta.componentsUsed");
7168
7169
  if (fields) {
7169
7170
  url.searchParams.set("fields", fields);
@@ -7222,7 +7223,6 @@ async function fetchOneEntry(options) {
7222
7223
  }
7223
7224
  return null;
7224
7225
  }
7225
- var getContent = fetchOneEntry;
7226
7226
  var _fetchContent = async (options) => {
7227
7227
  const url = generateContentUrl(options);
7228
7228
  const res = await fetch2(url.href);
@@ -7276,7 +7276,6 @@ async function fetchEntries(options) {
7276
7276
  return null;
7277
7277
  }
7278
7278
  }
7279
- var getAllContent = fetchEntries;
7280
7279
 
7281
7280
  // src/functions/is-previewing.ts
7282
7281
  function isPreviewing() {
@@ -7533,7 +7532,7 @@ function isFromTrustedHost(trustedHosts, e) {
7533
7532
  }
7534
7533
 
7535
7534
  // src/constants/sdk-version.ts
7536
- var SDK_VERSION = "0.13.4";
7535
+ var SDK_VERSION = "0.14.1";
7537
7536
 
7538
7537
  // src/functions/register.ts
7539
7538
  var registry = {};
@@ -7891,9 +7890,6 @@ function EnableEditor(props) {
7891
7890
  ...props.locale ? {
7892
7891
  locale: props.locale
7893
7892
  } : {},
7894
- ...props.includeRefs ? {
7895
- includeRefs: props.includeRefs
7896
- } : {},
7897
7893
  ...props.enrich ? {
7898
7894
  enrich: props.enrich
7899
7895
  } : {},
@@ -8164,16 +8160,7 @@ function ContentComponent(props) {
8164
8160
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
8165
8161
  contentId: props.content?.id
8166
8162
  }));
8167
- const [registeredComponents, setRegisteredComponents] = createSignal([
8168
- ...getDefaultRegisteredComponents(),
8169
- // While this `components` object is deprecated, we must maintain support for it.
8170
- // Since users are able to override our default components, we need to make sure that we do not break such
8171
- // existing usage.
8172
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
8173
- // which is the new standard way of providing custom components, and must therefore take precedence.
8174
- ...components,
8175
- ...props.customComponents || []
8176
- ].reduce((acc, {
8163
+ const [registeredComponents, setRegisteredComponents] = createSignal([...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
8177
8164
  component,
8178
8165
  ...info
8179
8166
  }) => ({
@@ -8198,16 +8185,7 @@ function ContentComponent(props) {
8198
8185
  context: props.context || {},
8199
8186
  apiKey: props.apiKey,
8200
8187
  apiVersion: props.apiVersion,
8201
- componentInfos: [
8202
- ...getDefaultRegisteredComponents(),
8203
- // While this `components` object is deprecated, we must maintain support for it.
8204
- // Since users are able to override our default components, we need to make sure that we do not break such
8205
- // existing usage.
8206
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
8207
- // which is the new standard way of providing custom components, and must therefore take precedence.
8208
- ...components,
8209
- ...props.customComponents || []
8210
- ].reduce((acc, {
8188
+ componentInfos: [...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
8211
8189
  component: _,
8212
8190
  ...info
8213
8191
  }) => ({
@@ -8253,9 +8231,6 @@ function ContentComponent(props) {
8253
8231
  get locale() {
8254
8232
  return props.locale;
8255
8233
  },
8256
- get includeRefs() {
8257
- return props.includeRefs;
8258
- },
8259
8234
  get enrich() {
8260
8235
  return props.enrich;
8261
8236
  },
@@ -8421,9 +8396,6 @@ function ContentVariants(props) {
8421
8396
  get locale() {
8422
8397
  return props.locale;
8423
8398
  },
8424
- get includeRefs() {
8425
- return props.includeRefs;
8426
- },
8427
8399
  get enrich() {
8428
8400
  return props.enrich;
8429
8401
  },
@@ -8481,9 +8453,6 @@ function ContentVariants(props) {
8481
8453
  get locale() {
8482
8454
  return props.locale;
8483
8455
  },
8484
- get includeRefs() {
8485
- return props.includeRefs;
8486
- },
8487
8456
  get enrich() {
8488
8457
  return props.enrich;
8489
8458
  },
@@ -8605,10 +8574,6 @@ function Symbol2(props) {
8605
8574
  }
8606
8575
  var symbol_default = Symbol2;
8607
8576
 
8608
- // src/index-helpers/blocks-exports.ts
8609
- var RenderBlocks = blocks_default;
8610
- var RenderContent = content_variants_default;
8611
-
8612
8577
  // src/functions/set-editor-settings.ts
8613
8578
  var settings = {};
8614
8579
  function setEditorSettings(newSettings) {
@@ -8644,4 +8609,4 @@ var fetchBuilderProps = async (_args) => {
8644
8609
  };
8645
8610
  };
8646
8611
 
8647
- 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, RenderBlocks, RenderContent, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getAllContent, getBuilderSearchParams, getContent, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
8612
+ 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 };
@@ -61,7 +61,6 @@ var getClassPropName = () => {
61
61
  // src/blocks/button/button.tsx
62
62
  function Button(props) {
63
63
  return <Dynamic_renderer_default
64
- TagName={props.link ? props.builderLinkComponent || "a" : "button"}
65
64
  attributes={{
66
65
  ...props.attributes,
67
66
  [getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
@@ -73,6 +72,7 @@ function Button(props) {
73
72
  role: "button"
74
73
  }
75
74
  }}
75
+ TagName={props.link ? props.builderLinkComponent || "a" : "button"}
76
76
  actionAttributes={{}}
77
77
  >{props.text}</Dynamic_renderer_default>;
78
78
  }
@@ -6543,7 +6543,6 @@ var getDefaultRegisteredComponents = () => [{
6543
6543
  }, ...getExtraComponents()];
6544
6544
 
6545
6545
  // src/functions/register-component.ts
6546
- var components = [];
6547
6546
  var createRegisterComponentMessage = (info) => ({
6548
6547
  type: "builder.registerComponent",
6549
6548
  data: serializeComponentInfo(info)
@@ -6708,16 +6707,12 @@ var normalizeSearchParams = (searchParams) => searchParams instanceof URLSearchP
6708
6707
  // src/functions/get-content/generate-content-url.ts
6709
6708
  var isPositiveNumber = (thing) => typeof thing === "number" && !isNaN(thing) && thing >= 0;
6710
6709
  var generateContentUrl = (options) => {
6711
- let {
6712
- noTraverse = false
6713
- } = options;
6714
6710
  const {
6715
6711
  limit = 30,
6716
6712
  userAttributes,
6717
6713
  query,
6718
6714
  model,
6719
6715
  apiKey,
6720
- includeRefs = true,
6721
6716
  enrich,
6722
6717
  locale,
6723
6718
  apiVersion = DEFAULT_API_VERSION,
@@ -6735,10 +6730,16 @@ var generateContentUrl = (options) => {
6735
6730
  if (!["v3"].includes(apiVersion)) {
6736
6731
  throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
6737
6732
  }
6738
- if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options)) {
6739
- noTraverse = true;
6740
- }
6741
- const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
6733
+ const noTraverse = limit !== 1;
6734
+ const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}`);
6735
+ url.searchParams.set("apiKey", apiKey);
6736
+ url.searchParams.set("limit", String(limit));
6737
+ url.searchParams.set("noTraverse", String(noTraverse));
6738
+ url.searchParams.set("includeRefs", String(true));
6739
+ if (locale)
6740
+ url.searchParams.set("locale", locale);
6741
+ if (enrich)
6742
+ url.searchParams.set("enrich", String(enrich));
6742
6743
  url.searchParams.set("omit", omit || "meta.componentsUsed");
6743
6744
  if (fields) {
6744
6745
  url.searchParams.set("fields", fields);
@@ -6797,7 +6798,6 @@ async function fetchOneEntry(options) {
6797
6798
  }
6798
6799
  return null;
6799
6800
  }
6800
- var getContent = fetchOneEntry;
6801
6801
  var _fetchContent = async (options) => {
6802
6802
  const url = generateContentUrl(options);
6803
6803
  const res = await fetch2(url.href);
@@ -6851,7 +6851,6 @@ async function fetchEntries(options) {
6851
6851
  return null;
6852
6852
  }
6853
6853
  }
6854
- var getAllContent = fetchEntries;
6855
6854
 
6856
6855
  // src/functions/is-previewing.ts
6857
6856
  function isPreviewing() {
@@ -7108,7 +7107,7 @@ function isFromTrustedHost(trustedHosts, e) {
7108
7107
  }
7109
7108
 
7110
7109
  // src/constants/sdk-version.ts
7111
- var SDK_VERSION = "0.13.4";
7110
+ var SDK_VERSION = "0.14.1";
7112
7111
 
7113
7112
  // src/functions/register.ts
7114
7113
  var registry = {};
@@ -7470,9 +7469,6 @@ function EnableEditor(props) {
7470
7469
  ...props.locale ? {
7471
7470
  locale: props.locale
7472
7471
  } : {},
7473
- ...props.includeRefs ? {
7474
- includeRefs: props.includeRefs
7475
- } : {},
7476
7472
  ...props.enrich ? {
7477
7473
  enrich: props.enrich
7478
7474
  } : {},
@@ -7737,12 +7733,6 @@ function ContentComponent(props) {
7737
7733
  const [registeredComponents, setRegisteredComponents] = createSignal13(
7738
7734
  [
7739
7735
  ...getDefaultRegisteredComponents(),
7740
- // While this `components` object is deprecated, we must maintain support for it.
7741
- // Since users are able to override our default components, we need to make sure that we do not break such
7742
- // existing usage.
7743
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
7744
- // which is the new standard way of providing custom components, and must therefore take precedence.
7745
- ...components,
7746
7736
  ...props.customComponents || []
7747
7737
  ].reduce(
7748
7738
  (acc, { component, ...info }) => ({
@@ -7772,12 +7762,6 @@ function ContentComponent(props) {
7772
7762
  apiVersion: props.apiVersion,
7773
7763
  componentInfos: [
7774
7764
  ...getDefaultRegisteredComponents(),
7775
- // While this `components` object is deprecated, we must maintain support for it.
7776
- // Since users are able to override our default components, we need to make sure that we do not break such
7777
- // existing usage.
7778
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
7779
- // which is the new standard way of providing custom components, and must therefore take precedence.
7780
- ...components,
7781
7765
  ...props.customComponents || []
7782
7766
  ].reduce(
7783
7767
  (acc, { component: _, ...info }) => ({
@@ -7808,7 +7792,6 @@ function ContentComponent(props) {
7808
7792
  apiKey={props.apiKey}
7809
7793
  canTrack={props.canTrack}
7810
7794
  locale={props.locale}
7811
- includeRefs={props.includeRefs}
7812
7795
  enrich={props.enrich}
7813
7796
  showContent={props.showContent}
7814
7797
  builderContextSignal={builderContextSignal()}
@@ -7893,7 +7876,6 @@ function ContentVariants(props) {
7893
7876
  linkComponent={props.linkComponent}
7894
7877
  canTrack={props.canTrack}
7895
7878
  locale={props.locale}
7896
- includeRefs={props.includeRefs}
7897
7879
  enrich={props.enrich}
7898
7880
  isSsrAbTest={shouldRenderVariants()}
7899
7881
  blocksWrapper={props.blocksWrapper}
@@ -7917,7 +7899,6 @@ function ContentVariants(props) {
7917
7899
  linkComponent={props.linkComponent}
7918
7900
  canTrack={props.canTrack}
7919
7901
  locale={props.locale}
7920
- includeRefs={props.includeRefs}
7921
7902
  enrich={props.enrich}
7922
7903
  isSsrAbTest={shouldRenderVariants()}
7923
7904
  blocksWrapper={props.blocksWrapper}
@@ -8005,10 +7986,6 @@ function Symbol2(props) {
8005
7986
  }
8006
7987
  var symbol_default = Symbol2;
8007
7988
 
8008
- // src/index-helpers/blocks-exports.ts
8009
- var RenderBlocks = Blocks_default;
8010
- var RenderContent = Content_variants_default;
8011
-
8012
7989
  // src/functions/set-editor-settings.ts
8013
7990
  var settings = {};
8014
7991
  function setEditorSettings(newSettings) {
@@ -8050,8 +8027,6 @@ export {
8050
8027
  Content_variants_default as Content,
8051
8028
  fragment_default as Fragment,
8052
8029
  image_default as Image,
8053
- RenderBlocks,
8054
- RenderContent,
8055
8030
  section_default as Section,
8056
8031
  symbol_default as Symbol,
8057
8032
  text_default as Text,
@@ -8061,9 +8036,7 @@ export {
8061
8036
  fetchBuilderProps,
8062
8037
  fetchEntries,
8063
8038
  fetchOneEntry,
8064
- getAllContent,
8065
8039
  getBuilderSearchParams,
8066
- getContent,
8067
8040
  isEditing,
8068
8041
  isPreviewing,
8069
8042
  register,
package/lib/node/dev.js CHANGED
@@ -76,9 +76,6 @@ var getClassPropName = () => {
76
76
  // src/blocks/button/button.tsx
77
77
  function Button(props) {
78
78
  return createComponent(dynamic_renderer_default, {
79
- get TagName() {
80
- return props.link ? props.builderLinkComponent || "a" : "button";
81
- },
82
79
  get attributes() {
83
80
  return {
84
81
  ...props.attributes,
@@ -92,6 +89,9 @@ function Button(props) {
92
89
  }
93
90
  };
94
91
  },
92
+ get TagName() {
93
+ return props.link ? props.builderLinkComponent || "a" : "button";
94
+ },
95
95
  actionAttributes: {},
96
96
  get children() {
97
97
  return props.text;
@@ -312,7 +312,6 @@ try {
312
312
  }
313
313
 
314
314
  // src/functions/evaluate/node-runtime/node-runtime.ts
315
- var ivm = safeDynamicRequire("isolated-vm");
316
315
  var getSyncValName = (key) => `bldr_${key}_sync`;
317
316
  var BUILDER_SET_STATE_NAME = "BUILDER_SET_STATE";
318
317
  var INJECTED_IVM_GLOBAL = "BUILDER_IVM";
@@ -365,6 +364,7 @@ output;
365
364
  `;
366
365
  };
367
366
  var getIsolateContext = () => {
367
+ const ivm = safeDynamicRequire("isolated-vm");
368
368
  const isolate = new ivm.Isolate({
369
369
  memoryLimit: 128
370
370
  });
@@ -379,6 +379,7 @@ var runInNode = ({
379
379
  rootSetState,
380
380
  rootState
381
381
  }) => {
382
+ const ivm = safeDynamicRequire("isolated-vm");
382
383
  const state = fastClone({
383
384
  ...rootState,
384
385
  ...localState
@@ -3942,7 +3943,6 @@ var getDefaultRegisteredComponents = () => [{
3942
3943
  }, ...getExtraComponents()];
3943
3944
 
3944
3945
  // src/functions/register-component.ts
3945
- var components = [];
3946
3946
  var createRegisterComponentMessage = (info) => ({
3947
3947
  type: "builder.registerComponent",
3948
3948
  data: serializeComponentInfo(info)
@@ -4116,16 +4116,12 @@ var normalizeSearchParams = (searchParams) => searchParams instanceof URLSearchP
4116
4116
  // src/functions/get-content/generate-content-url.ts
4117
4117
  var isPositiveNumber = (thing) => typeof thing === "number" && !isNaN(thing) && thing >= 0;
4118
4118
  var generateContentUrl = (options) => {
4119
- let {
4120
- noTraverse = false
4121
- } = options;
4122
4119
  const {
4123
4120
  limit = 30,
4124
4121
  userAttributes,
4125
4122
  query,
4126
4123
  model,
4127
4124
  apiKey,
4128
- includeRefs = true,
4129
4125
  enrich,
4130
4126
  locale,
4131
4127
  apiVersion = DEFAULT_API_VERSION,
@@ -4143,10 +4139,16 @@ var generateContentUrl = (options) => {
4143
4139
  if (!["v3"].includes(apiVersion)) {
4144
4140
  throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
4145
4141
  }
4146
- if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options)) {
4147
- noTraverse = true;
4148
- }
4149
- const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
4142
+ const noTraverse = limit !== 1;
4143
+ const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}`);
4144
+ url.searchParams.set("apiKey", apiKey);
4145
+ url.searchParams.set("limit", String(limit));
4146
+ url.searchParams.set("noTraverse", String(noTraverse));
4147
+ url.searchParams.set("includeRefs", String(true));
4148
+ if (locale)
4149
+ url.searchParams.set("locale", locale);
4150
+ if (enrich)
4151
+ url.searchParams.set("enrich", String(enrich));
4150
4152
  url.searchParams.set("omit", omit || "meta.componentsUsed");
4151
4153
  if (fields) {
4152
4154
  url.searchParams.set("fields", fields);
@@ -4205,7 +4207,6 @@ async function fetchOneEntry(options) {
4205
4207
  }
4206
4208
  return null;
4207
4209
  }
4208
- var getContent = fetchOneEntry;
4209
4210
  var _fetchContent = async (options) => {
4210
4211
  const url = generateContentUrl(options);
4211
4212
  const res = await fetch2(url.href);
@@ -4259,7 +4260,6 @@ async function fetchEntries(options) {
4259
4260
  return null;
4260
4261
  }
4261
4262
  }
4262
- var getAllContent = fetchEntries;
4263
4263
 
4264
4264
  // src/functions/is-previewing.ts
4265
4265
  function isPreviewing() {
@@ -4519,7 +4519,7 @@ function isFromTrustedHost(trustedHosts, e) {
4519
4519
  }
4520
4520
 
4521
4521
  // src/constants/sdk-version.ts
4522
- var SDK_VERSION = "0.13.4";
4522
+ var SDK_VERSION = "0.14.1";
4523
4523
 
4524
4524
  // src/functions/register.ts
4525
4525
  var registry = {};
@@ -4879,9 +4879,6 @@ function EnableEditor(props) {
4879
4879
  ...props.locale ? {
4880
4880
  locale: props.locale
4881
4881
  } : {},
4882
- ...props.includeRefs ? {
4883
- includeRefs: props.includeRefs
4884
- } : {},
4885
4882
  ...props.enrich ? {
4886
4883
  enrich: props.enrich
4887
4884
  } : {},
@@ -5152,16 +5149,7 @@ function ContentComponent(props) {
5152
5149
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5153
5150
  contentId: props.content?.id
5154
5151
  }));
5155
- const [registeredComponents, setRegisteredComponents] = createSignal([
5156
- ...getDefaultRegisteredComponents(),
5157
- // While this `components` object is deprecated, we must maintain support for it.
5158
- // Since users are able to override our default components, we need to make sure that we do not break such
5159
- // existing usage.
5160
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
5161
- // which is the new standard way of providing custom components, and must therefore take precedence.
5162
- ...components,
5163
- ...props.customComponents || []
5164
- ].reduce((acc, {
5152
+ const [registeredComponents, setRegisteredComponents] = createSignal([...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
5165
5153
  component,
5166
5154
  ...info
5167
5155
  }) => ({
@@ -5186,16 +5174,7 @@ function ContentComponent(props) {
5186
5174
  context: props.context || {},
5187
5175
  apiKey: props.apiKey,
5188
5176
  apiVersion: props.apiVersion,
5189
- componentInfos: [
5190
- ...getDefaultRegisteredComponents(),
5191
- // While this `components` object is deprecated, we must maintain support for it.
5192
- // Since users are able to override our default components, we need to make sure that we do not break such
5193
- // existing usage.
5194
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
5195
- // which is the new standard way of providing custom components, and must therefore take precedence.
5196
- ...components,
5197
- ...props.customComponents || []
5198
- ].reduce((acc, {
5177
+ componentInfos: [...getDefaultRegisteredComponents(), ...props.customComponents || []].reduce((acc, {
5199
5178
  component: _,
5200
5179
  ...info
5201
5180
  }) => ({
@@ -5241,9 +5220,6 @@ function ContentComponent(props) {
5241
5220
  get locale() {
5242
5221
  return props.locale;
5243
5222
  },
5244
- get includeRefs() {
5245
- return props.includeRefs;
5246
- },
5247
5223
  get enrich() {
5248
5224
  return props.enrich;
5249
5225
  },
@@ -5409,9 +5385,6 @@ function ContentVariants(props) {
5409
5385
  get locale() {
5410
5386
  return props.locale;
5411
5387
  },
5412
- get includeRefs() {
5413
- return props.includeRefs;
5414
- },
5415
5388
  get enrich() {
5416
5389
  return props.enrich;
5417
5390
  },
@@ -5469,9 +5442,6 @@ function ContentVariants(props) {
5469
5442
  get locale() {
5470
5443
  return props.locale;
5471
5444
  },
5472
- get includeRefs() {
5473
- return props.includeRefs;
5474
- },
5475
5445
  get enrich() {
5476
5446
  return props.enrich;
5477
5447
  },
@@ -5593,10 +5563,6 @@ function Symbol(props) {
5593
5563
  }
5594
5564
  var symbol_default = Symbol;
5595
5565
 
5596
- // src/index-helpers/blocks-exports.ts
5597
- var RenderBlocks = blocks_default;
5598
- var RenderContent = content_variants_default;
5599
-
5600
5566
  // src/functions/set-editor-settings.ts
5601
5567
  var settings = {};
5602
5568
  function setEditorSettings(newSettings) {
@@ -5632,4 +5598,4 @@ var fetchBuilderProps = async (_args) => {
5632
5598
  };
5633
5599
  };
5634
5600
 
5635
- 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, RenderBlocks, RenderContent, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getAllContent, getBuilderSearchParams, getContent, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
5601
+ 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 };