@builder.io/sdk-solid 2.0.5 → 2.0.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.
package/dist/index.d.ts CHANGED
@@ -480,13 +480,20 @@ interface ComponentInfo {
480
480
  }
481
481
  type Permission = 'read' | 'publish' | 'editCode' | 'editDesigns' | 'admin' | 'create';
482
482
 
483
+ /**
484
+ * no-op type for extra context types on a per-SDK basis
485
+ * See `overrides/react-native/src/context/extra-context-types.ts` for an example
486
+ * */
487
+ interface ExtraContextTypes {
488
+ }
489
+
483
490
  type RegisteredComponent = ComponentInfo & {
484
491
  component: any;
485
492
  };
486
493
  type RegisteredComponents = Dictionary<RegisteredComponent>;
487
494
  type BuilderRenderState = Record<string, unknown>;
488
495
  type BuilderRenderContext = Record<string, unknown>;
489
- interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'> {
496
+ interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>, ExtraContextTypes {
490
497
  content: Nullable<BuilderContent>;
491
498
  context: BuilderRenderContext;
492
499
  /**
@@ -646,7 +653,10 @@ type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWra
646
653
 
647
654
  declare function Blocks(props: BlocksProps): solid_js.JSX.Element;
648
655
 
649
- interface ContentVariantsPrps {
656
+ interface ExtraFrameworkProps {
657
+ }
658
+
659
+ interface ContentVariantsPrps extends ExtraFrameworkProps {
650
660
  /**
651
661
  * The Builder content JSON to render (required).
652
662
  */
@@ -1278,7 +1278,7 @@ function Block(props) {
1278
1278
  registeredComponents: props.registeredComponents,
1279
1279
  builderBlock: processedBlock(),
1280
1280
  includeBlockProps: blockComponent()?.noWrap === true,
1281
- isInteractive: !blockComponent()?.isRSC
1281
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1282
1282
  };
1283
1283
  });
1284
1284
  onMount(() => {
@@ -5172,7 +5172,7 @@ function isFromTrustedHost(trustedHosts, e) {
5172
5172
  }
5173
5173
 
5174
5174
  // src/constants/sdk-version.ts
5175
- var SDK_VERSION = "2.0.5";
5175
+ var SDK_VERSION = "2.0.8";
5176
5176
 
5177
5177
  // src/functions/register.ts
5178
5178
  var registry = {};
@@ -6047,7 +6047,7 @@ function ContentVariants(props) {
6047
6047
  },
6048
6048
  children: (variant, _index) => {
6049
6049
  _index();
6050
- return createComponent(content_default, {
6050
+ return createComponent(content_default, mergeProps({
6051
6051
  get isNestedRender() {
6052
6052
  return props.isNestedRender;
6053
6053
  },
@@ -6107,7 +6107,7 @@ function ContentVariants(props) {
6107
6107
  get trustedHosts() {
6108
6108
  return props.trustedHosts;
6109
6109
  }
6110
- });
6110
+ }, {}));
6111
6111
  }
6112
6112
  })];
6113
6113
  }
@@ -1225,7 +1225,7 @@ function Block(props) {
1225
1225
  registeredComponents: props.registeredComponents,
1226
1226
  builderBlock: processedBlock(),
1227
1227
  includeBlockProps: blockComponent()?.noWrap === true,
1228
- isInteractive: !blockComponent()?.isRSC
1228
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1229
1229
  };
1230
1230
  });
1231
1231
  onMount(() => {
@@ -4689,7 +4689,7 @@ function isFromTrustedHost(trustedHosts, e) {
4689
4689
  }
4690
4690
 
4691
4691
  // src/constants/sdk-version.ts
4692
- var SDK_VERSION = "2.0.5";
4692
+ var SDK_VERSION = "2.0.8";
4693
4693
 
4694
4694
  // src/functions/register.ts
4695
4695
  var registry = {};
@@ -5522,6 +5522,7 @@ function ContentVariants(props) {
5522
5522
  contentWrapper={props.contentWrapper}
5523
5523
  contentWrapperProps={props.contentWrapperProps}
5524
5524
  trustedHosts={props.trustedHosts}
5525
+ {...{}}
5525
5526
  />;
5526
5527
  }}</For9>
5527
5528
  </Show14>
@@ -1272,7 +1272,7 @@ function Block(props) {
1272
1272
  registeredComponents: props.registeredComponents,
1273
1273
  builderBlock: processedBlock(),
1274
1274
  includeBlockProps: blockComponent()?.noWrap === true,
1275
- isInteractive: !blockComponent()?.isRSC
1275
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1276
1276
  };
1277
1277
  });
1278
1278
  onMount(() => {
@@ -5157,7 +5157,7 @@ function isFromTrustedHost(trustedHosts, e) {
5157
5157
  }
5158
5158
 
5159
5159
  // src/constants/sdk-version.ts
5160
- var SDK_VERSION = "2.0.5";
5160
+ var SDK_VERSION = "2.0.8";
5161
5161
 
5162
5162
  // src/functions/register.ts
5163
5163
  var registry = {};
@@ -6030,7 +6030,7 @@ function ContentVariants(props) {
6030
6030
  },
6031
6031
  children: (variant, _index) => {
6032
6032
  _index();
6033
- return createComponent(content_default, {
6033
+ return createComponent(content_default, mergeProps({
6034
6034
  get isNestedRender() {
6035
6035
  return props.isNestedRender;
6036
6036
  },
@@ -6090,7 +6090,7 @@ function ContentVariants(props) {
6090
6090
  get trustedHosts() {
6091
6091
  return props.trustedHosts;
6092
6092
  }
6093
- });
6093
+ }, {}));
6094
6094
  }
6095
6095
  })];
6096
6096
  }
@@ -1219,7 +1219,7 @@ function Block(props) {
1219
1219
  registeredComponents: props.registeredComponents,
1220
1220
  builderBlock: processedBlock(),
1221
1221
  includeBlockProps: blockComponent()?.noWrap === true,
1222
- isInteractive: !blockComponent()?.isRSC
1222
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1223
1223
  };
1224
1224
  });
1225
1225
  onMount(() => {
@@ -4674,7 +4674,7 @@ function isFromTrustedHost(trustedHosts, e) {
4674
4674
  }
4675
4675
 
4676
4676
  // src/constants/sdk-version.ts
4677
- var SDK_VERSION = "2.0.5";
4677
+ var SDK_VERSION = "2.0.8";
4678
4678
 
4679
4679
  // src/functions/register.ts
4680
4680
  var registry = {};
@@ -5505,6 +5505,7 @@ function ContentVariants(props) {
5505
5505
  contentWrapper={props.contentWrapper}
5506
5506
  contentWrapperProps={props.contentWrapperProps}
5507
5507
  trustedHosts={props.trustedHosts}
5508
+ {...{}}
5508
5509
  />;
5509
5510
  }}</For9>
5510
5511
  </Show14>
package/lib/edge/dev.js CHANGED
@@ -4424,7 +4424,7 @@ function Block(props) {
4424
4424
  registeredComponents: props.registeredComponents,
4425
4425
  builderBlock: processedBlock(),
4426
4426
  includeBlockProps: blockComponent()?.noWrap === true,
4427
- isInteractive: !blockComponent()?.isRSC
4427
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
4428
4428
  };
4429
4429
  });
4430
4430
  onMount(() => {
@@ -8318,7 +8318,7 @@ function isFromTrustedHost(trustedHosts, e) {
8318
8318
  }
8319
8319
 
8320
8320
  // src/constants/sdk-version.ts
8321
- var SDK_VERSION = "2.0.5";
8321
+ var SDK_VERSION = "2.0.8";
8322
8322
 
8323
8323
  // src/functions/register.ts
8324
8324
  var registry = {};
@@ -9193,7 +9193,7 @@ function ContentVariants(props) {
9193
9193
  },
9194
9194
  children: (variant, _index) => {
9195
9195
  _index();
9196
- return createComponent(content_default, {
9196
+ return createComponent(content_default, mergeProps({
9197
9197
  get isNestedRender() {
9198
9198
  return props.isNestedRender;
9199
9199
  },
@@ -9253,7 +9253,7 @@ function ContentVariants(props) {
9253
9253
  get trustedHosts() {
9254
9254
  return props.trustedHosts;
9255
9255
  }
9256
- });
9256
+ }, {}));
9257
9257
  }
9258
9258
  })];
9259
9259
  }
package/lib/edge/dev.jsx CHANGED
@@ -4373,7 +4373,7 @@ function Block(props) {
4373
4373
  registeredComponents: props.registeredComponents,
4374
4374
  builderBlock: processedBlock(),
4375
4375
  includeBlockProps: blockComponent()?.noWrap === true,
4376
- isInteractive: !blockComponent()?.isRSC
4376
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
4377
4377
  };
4378
4378
  });
4379
4379
  onMount(() => {
@@ -7837,7 +7837,7 @@ function isFromTrustedHost(trustedHosts, e) {
7837
7837
  }
7838
7838
 
7839
7839
  // src/constants/sdk-version.ts
7840
- var SDK_VERSION = "2.0.5";
7840
+ var SDK_VERSION = "2.0.8";
7841
7841
 
7842
7842
  // src/functions/register.ts
7843
7843
  var registry = {};
@@ -8670,6 +8670,7 @@ function ContentVariants(props) {
8670
8670
  contentWrapper={props.contentWrapper}
8671
8671
  contentWrapperProps={props.contentWrapperProps}
8672
8672
  trustedHosts={props.trustedHosts}
8673
+ {...{}}
8673
8674
  />;
8674
8675
  }}</For9>
8675
8676
  </Show14>
package/lib/edge/index.js CHANGED
@@ -4418,7 +4418,7 @@ function Block(props) {
4418
4418
  registeredComponents: props.registeredComponents,
4419
4419
  builderBlock: processedBlock(),
4420
4420
  includeBlockProps: blockComponent()?.noWrap === true,
4421
- isInteractive: !blockComponent()?.isRSC
4421
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
4422
4422
  };
4423
4423
  });
4424
4424
  onMount(() => {
@@ -8303,7 +8303,7 @@ function isFromTrustedHost(trustedHosts, e) {
8303
8303
  }
8304
8304
 
8305
8305
  // src/constants/sdk-version.ts
8306
- var SDK_VERSION = "2.0.5";
8306
+ var SDK_VERSION = "2.0.8";
8307
8307
 
8308
8308
  // src/functions/register.ts
8309
8309
  var registry = {};
@@ -9176,7 +9176,7 @@ function ContentVariants(props) {
9176
9176
  },
9177
9177
  children: (variant, _index) => {
9178
9178
  _index();
9179
- return createComponent(content_default, {
9179
+ return createComponent(content_default, mergeProps({
9180
9180
  get isNestedRender() {
9181
9181
  return props.isNestedRender;
9182
9182
  },
@@ -9236,7 +9236,7 @@ function ContentVariants(props) {
9236
9236
  get trustedHosts() {
9237
9237
  return props.trustedHosts;
9238
9238
  }
9239
- });
9239
+ }, {}));
9240
9240
  }
9241
9241
  })];
9242
9242
  }
@@ -4367,7 +4367,7 @@ function Block(props) {
4367
4367
  registeredComponents: props.registeredComponents,
4368
4368
  builderBlock: processedBlock(),
4369
4369
  includeBlockProps: blockComponent()?.noWrap === true,
4370
- isInteractive: !blockComponent()?.isRSC
4370
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
4371
4371
  };
4372
4372
  });
4373
4373
  onMount(() => {
@@ -7822,7 +7822,7 @@ function isFromTrustedHost(trustedHosts, e) {
7822
7822
  }
7823
7823
 
7824
7824
  // src/constants/sdk-version.ts
7825
- var SDK_VERSION = "2.0.5";
7825
+ var SDK_VERSION = "2.0.8";
7826
7826
 
7827
7827
  // src/functions/register.ts
7828
7828
  var registry = {};
@@ -8653,6 +8653,7 @@ function ContentVariants(props) {
8653
8653
  contentWrapper={props.contentWrapper}
8654
8654
  contentWrapperProps={props.contentWrapperProps}
8655
8655
  trustedHosts={props.trustedHosts}
8656
+ {...{}}
8656
8657
  />;
8657
8658
  }}</For9>
8658
8659
  </Show14>
package/lib/node/dev.js CHANGED
@@ -1448,7 +1448,7 @@ function Block(props) {
1448
1448
  registeredComponents: props.registeredComponents,
1449
1449
  builderBlock: processedBlock(),
1450
1450
  includeBlockProps: blockComponent()?.noWrap === true,
1451
- isInteractive: !blockComponent()?.isRSC
1451
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1452
1452
  };
1453
1453
  });
1454
1454
  onMount(() => {
@@ -5342,7 +5342,7 @@ function isFromTrustedHost(trustedHosts, e) {
5342
5342
  }
5343
5343
 
5344
5344
  // src/constants/sdk-version.ts
5345
- var SDK_VERSION = "2.0.5";
5345
+ var SDK_VERSION = "2.0.8";
5346
5346
 
5347
5347
  // src/functions/register.ts
5348
5348
  var registry = {};
@@ -6217,7 +6217,7 @@ function ContentVariants(props) {
6217
6217
  },
6218
6218
  children: (variant, _index) => {
6219
6219
  _index();
6220
- return createComponent(content_default, {
6220
+ return createComponent(content_default, mergeProps({
6221
6221
  get isNestedRender() {
6222
6222
  return props.isNestedRender;
6223
6223
  },
@@ -6277,7 +6277,7 @@ function ContentVariants(props) {
6277
6277
  get trustedHosts() {
6278
6278
  return props.trustedHosts;
6279
6279
  }
6280
- });
6280
+ }, {}));
6281
6281
  }
6282
6282
  })];
6283
6283
  }
package/lib/node/dev.jsx CHANGED
@@ -1397,7 +1397,7 @@ function Block(props) {
1397
1397
  registeredComponents: props.registeredComponents,
1398
1398
  builderBlock: processedBlock(),
1399
1399
  includeBlockProps: blockComponent()?.noWrap === true,
1400
- isInteractive: !blockComponent()?.isRSC
1400
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1401
1401
  };
1402
1402
  });
1403
1403
  onMount(() => {
@@ -4861,7 +4861,7 @@ function isFromTrustedHost(trustedHosts, e) {
4861
4861
  }
4862
4862
 
4863
4863
  // src/constants/sdk-version.ts
4864
- var SDK_VERSION = "2.0.5";
4864
+ var SDK_VERSION = "2.0.8";
4865
4865
 
4866
4866
  // src/functions/register.ts
4867
4867
  var registry = {};
@@ -5694,6 +5694,7 @@ function ContentVariants(props) {
5694
5694
  contentWrapper={props.contentWrapper}
5695
5695
  contentWrapperProps={props.contentWrapperProps}
5696
5696
  trustedHosts={props.trustedHosts}
5697
+ {...{}}
5697
5698
  />;
5698
5699
  }}</For9>
5699
5700
  </Show14>
package/lib/node/index.js CHANGED
@@ -1442,7 +1442,7 @@ function Block(props) {
1442
1442
  registeredComponents: props.registeredComponents,
1443
1443
  builderBlock: processedBlock(),
1444
1444
  includeBlockProps: blockComponent()?.noWrap === true,
1445
- isInteractive: !blockComponent()?.isRSC
1445
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1446
1446
  };
1447
1447
  });
1448
1448
  onMount(() => {
@@ -5327,7 +5327,7 @@ function isFromTrustedHost(trustedHosts, e) {
5327
5327
  }
5328
5328
 
5329
5329
  // src/constants/sdk-version.ts
5330
- var SDK_VERSION = "2.0.5";
5330
+ var SDK_VERSION = "2.0.8";
5331
5331
 
5332
5332
  // src/functions/register.ts
5333
5333
  var registry = {};
@@ -6200,7 +6200,7 @@ function ContentVariants(props) {
6200
6200
  },
6201
6201
  children: (variant, _index) => {
6202
6202
  _index();
6203
- return createComponent(content_default, {
6203
+ return createComponent(content_default, mergeProps({
6204
6204
  get isNestedRender() {
6205
6205
  return props.isNestedRender;
6206
6206
  },
@@ -6260,7 +6260,7 @@ function ContentVariants(props) {
6260
6260
  get trustedHosts() {
6261
6261
  return props.trustedHosts;
6262
6262
  }
6263
- });
6263
+ }, {}));
6264
6264
  }
6265
6265
  })];
6266
6266
  }
@@ -1391,7 +1391,7 @@ function Block(props) {
1391
1391
  registeredComponents: props.registeredComponents,
1392
1392
  builderBlock: processedBlock(),
1393
1393
  includeBlockProps: blockComponent()?.noWrap === true,
1394
- isInteractive: !blockComponent()?.isRSC
1394
+ isInteractive: !(blockComponent()?.isRSC && TARGET === "rsc")
1395
1395
  };
1396
1396
  });
1397
1397
  onMount(() => {
@@ -4846,7 +4846,7 @@ function isFromTrustedHost(trustedHosts, e) {
4846
4846
  }
4847
4847
 
4848
4848
  // src/constants/sdk-version.ts
4849
- var SDK_VERSION = "2.0.5";
4849
+ var SDK_VERSION = "2.0.8";
4850
4850
 
4851
4851
  // src/functions/register.ts
4852
4852
  var registry = {};
@@ -5677,6 +5677,7 @@ function ContentVariants(props) {
5677
5677
  contentWrapper={props.contentWrapper}
5678
5678
  contentWrapperProps={props.contentWrapperProps}
5679
5679
  trustedHosts={props.trustedHosts}
5680
+ {...{}}
5680
5681
  />;
5681
5682
  }}</For9>
5682
5683
  </Show14>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "2.0.5",
3
+ "version": "2.0.8",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",