@builder.io/sdk-solid 2.0.5 → 2.0.9
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 +12 -2
- package/lib/browser/dev.js +11 -8
- package/lib/browser/dev.jsx +10 -6
- package/lib/browser/index.js +11 -8
- package/lib/browser/index.jsx +10 -6
- package/lib/edge/dev.js +11 -8
- package/lib/edge/dev.jsx +10 -6
- package/lib/edge/index.js +11 -8
- package/lib/edge/index.jsx +10 -6
- package/lib/node/dev.js +11 -8
- package/lib/node/dev.jsx +10 -6
- package/lib/node/index.js +11 -8
- package/lib/node/index.jsx +10 -6
- package/package.json +1 -1
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
|
|
656
|
+
interface ExtraFrameworkProps {
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
interface ContentVariantsPrps extends ExtraFrameworkProps {
|
|
650
660
|
/**
|
|
651
661
|
* The Builder content JSON to render (required).
|
|
652
662
|
*/
|
package/lib/browser/dev.js
CHANGED
|
@@ -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(() => {
|
|
@@ -4592,14 +4592,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4592
4592
|
// src/functions/register-component.ts
|
|
4593
4593
|
var createRegisterComponentMessage = (info) => ({
|
|
4594
4594
|
type: "builder.registerComponent",
|
|
4595
|
-
data:
|
|
4595
|
+
data: serializeIncludingFunctions(info)
|
|
4596
4596
|
});
|
|
4597
4597
|
var serializeFn = (fnValue) => {
|
|
4598
4598
|
const fnStr = fnValue.toString().trim();
|
|
4599
4599
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4600
4600
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4601
4601
|
};
|
|
4602
|
-
function
|
|
4602
|
+
function serializeIncludingFunctions(info) {
|
|
4603
4603
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4604
4604
|
if (typeof value === "function") {
|
|
4605
4605
|
return serializeFn(value);
|
|
@@ -5172,11 +5172,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5172
5172
|
}
|
|
5173
5173
|
|
|
5174
5174
|
// src/constants/sdk-version.ts
|
|
5175
|
-
var SDK_VERSION = "2.0.
|
|
5175
|
+
var SDK_VERSION = "2.0.9";
|
|
5176
5176
|
|
|
5177
5177
|
// src/functions/register.ts
|
|
5178
5178
|
var registry = {};
|
|
5179
5179
|
function register(type, info) {
|
|
5180
|
+
if (type === "plugin") {
|
|
5181
|
+
info = serializeIncludingFunctions(info);
|
|
5182
|
+
}
|
|
5180
5183
|
let typeList = registry[type];
|
|
5181
5184
|
if (!typeList) {
|
|
5182
5185
|
typeList = registry[type] = [];
|
|
@@ -5822,7 +5825,7 @@ function ContentComponent(props) {
|
|
|
5822
5825
|
...acc,
|
|
5823
5826
|
[info.name]: {
|
|
5824
5827
|
component,
|
|
5825
|
-
...
|
|
5828
|
+
...serializeIncludingFunctions(info)
|
|
5826
5829
|
}
|
|
5827
5830
|
}), {}));
|
|
5828
5831
|
const [builderContextSignal, setBuilderContextSignal] = createSignal({
|
|
@@ -5854,7 +5857,7 @@ function ContentComponent(props) {
|
|
|
5854
5857
|
...info
|
|
5855
5858
|
}) => ({
|
|
5856
5859
|
...acc,
|
|
5857
|
-
[info.name]:
|
|
5860
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
5858
5861
|
}), {}),
|
|
5859
5862
|
inheritedStyles: {},
|
|
5860
5863
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
@@ -6047,7 +6050,7 @@ function ContentVariants(props) {
|
|
|
6047
6050
|
},
|
|
6048
6051
|
children: (variant, _index) => {
|
|
6049
6052
|
_index();
|
|
6050
|
-
return createComponent(content_default, {
|
|
6053
|
+
return createComponent(content_default, mergeProps({
|
|
6051
6054
|
get isNestedRender() {
|
|
6052
6055
|
return props.isNestedRender;
|
|
6053
6056
|
},
|
|
@@ -6107,7 +6110,7 @@ function ContentVariants(props) {
|
|
|
6107
6110
|
get trustedHosts() {
|
|
6108
6111
|
return props.trustedHosts;
|
|
6109
6112
|
}
|
|
6110
|
-
});
|
|
6113
|
+
}, {}));
|
|
6111
6114
|
}
|
|
6112
6115
|
})];
|
|
6113
6116
|
}
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -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(() => {
|
|
@@ -4107,14 +4107,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4107
4107
|
// src/functions/register-component.ts
|
|
4108
4108
|
var createRegisterComponentMessage = (info) => ({
|
|
4109
4109
|
type: "builder.registerComponent",
|
|
4110
|
-
data:
|
|
4110
|
+
data: serializeIncludingFunctions(info)
|
|
4111
4111
|
});
|
|
4112
4112
|
var serializeFn = (fnValue) => {
|
|
4113
4113
|
const fnStr = fnValue.toString().trim();
|
|
4114
4114
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4115
4115
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4116
4116
|
};
|
|
4117
|
-
function
|
|
4117
|
+
function serializeIncludingFunctions(info) {
|
|
4118
4118
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4119
4119
|
if (typeof value === "function") {
|
|
4120
4120
|
return serializeFn(value);
|
|
@@ -4689,11 +4689,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4689
4689
|
}
|
|
4690
4690
|
|
|
4691
4691
|
// src/constants/sdk-version.ts
|
|
4692
|
-
var SDK_VERSION = "2.0.
|
|
4692
|
+
var SDK_VERSION = "2.0.9";
|
|
4693
4693
|
|
|
4694
4694
|
// src/functions/register.ts
|
|
4695
4695
|
var registry = {};
|
|
4696
4696
|
function register(type, info) {
|
|
4697
|
+
if (type === "plugin") {
|
|
4698
|
+
info = serializeIncludingFunctions(info);
|
|
4699
|
+
}
|
|
4697
4700
|
let typeList = registry[type];
|
|
4698
4701
|
if (!typeList) {
|
|
4699
4702
|
typeList = registry[type] = [];
|
|
@@ -5355,7 +5358,7 @@ function ContentComponent(props) {
|
|
|
5355
5358
|
...acc,
|
|
5356
5359
|
[info.name]: {
|
|
5357
5360
|
component,
|
|
5358
|
-
...
|
|
5361
|
+
...serializeIncludingFunctions(info)
|
|
5359
5362
|
}
|
|
5360
5363
|
}),
|
|
5361
5364
|
{}
|
|
@@ -5389,7 +5392,7 @@ function ContentComponent(props) {
|
|
|
5389
5392
|
].reduce(
|
|
5390
5393
|
(acc, { component: _, ...info }) => ({
|
|
5391
5394
|
...acc,
|
|
5392
|
-
[info.name]:
|
|
5395
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
5393
5396
|
}),
|
|
5394
5397
|
{}
|
|
5395
5398
|
),
|
|
@@ -5522,6 +5525,7 @@ function ContentVariants(props) {
|
|
|
5522
5525
|
contentWrapper={props.contentWrapper}
|
|
5523
5526
|
contentWrapperProps={props.contentWrapperProps}
|
|
5524
5527
|
trustedHosts={props.trustedHosts}
|
|
5528
|
+
{...{}}
|
|
5525
5529
|
/>;
|
|
5526
5530
|
}}</For9>
|
|
5527
5531
|
</Show14>
|
package/lib/browser/index.js
CHANGED
|
@@ -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(() => {
|
|
@@ -4582,14 +4582,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4582
4582
|
// src/functions/register-component.ts
|
|
4583
4583
|
var createRegisterComponentMessage = (info) => ({
|
|
4584
4584
|
type: "builder.registerComponent",
|
|
4585
|
-
data:
|
|
4585
|
+
data: serializeIncludingFunctions(info)
|
|
4586
4586
|
});
|
|
4587
4587
|
var serializeFn = (fnValue) => {
|
|
4588
4588
|
const fnStr = fnValue.toString().trim();
|
|
4589
4589
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4590
4590
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4591
4591
|
};
|
|
4592
|
-
function
|
|
4592
|
+
function serializeIncludingFunctions(info) {
|
|
4593
4593
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4594
4594
|
if (typeof value === "function") {
|
|
4595
4595
|
return serializeFn(value);
|
|
@@ -5157,11 +5157,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5157
5157
|
}
|
|
5158
5158
|
|
|
5159
5159
|
// src/constants/sdk-version.ts
|
|
5160
|
-
var SDK_VERSION = "2.0.
|
|
5160
|
+
var SDK_VERSION = "2.0.9";
|
|
5161
5161
|
|
|
5162
5162
|
// src/functions/register.ts
|
|
5163
5163
|
var registry = {};
|
|
5164
5164
|
function register(type, info) {
|
|
5165
|
+
if (type === "plugin") {
|
|
5166
|
+
info = serializeIncludingFunctions(info);
|
|
5167
|
+
}
|
|
5165
5168
|
let typeList = registry[type];
|
|
5166
5169
|
if (!typeList) {
|
|
5167
5170
|
typeList = registry[type] = [];
|
|
@@ -5805,7 +5808,7 @@ function ContentComponent(props) {
|
|
|
5805
5808
|
...acc,
|
|
5806
5809
|
[info.name]: {
|
|
5807
5810
|
component,
|
|
5808
|
-
...
|
|
5811
|
+
...serializeIncludingFunctions(info)
|
|
5809
5812
|
}
|
|
5810
5813
|
}), {}));
|
|
5811
5814
|
const [builderContextSignal, setBuilderContextSignal] = createSignal({
|
|
@@ -5837,7 +5840,7 @@ function ContentComponent(props) {
|
|
|
5837
5840
|
...info
|
|
5838
5841
|
}) => ({
|
|
5839
5842
|
...acc,
|
|
5840
|
-
[info.name]:
|
|
5843
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
5841
5844
|
}), {}),
|
|
5842
5845
|
inheritedStyles: {},
|
|
5843
5846
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
@@ -6030,7 +6033,7 @@ function ContentVariants(props) {
|
|
|
6030
6033
|
},
|
|
6031
6034
|
children: (variant, _index) => {
|
|
6032
6035
|
_index();
|
|
6033
|
-
return createComponent(content_default, {
|
|
6036
|
+
return createComponent(content_default, mergeProps({
|
|
6034
6037
|
get isNestedRender() {
|
|
6035
6038
|
return props.isNestedRender;
|
|
6036
6039
|
},
|
|
@@ -6090,7 +6093,7 @@ function ContentVariants(props) {
|
|
|
6090
6093
|
get trustedHosts() {
|
|
6091
6094
|
return props.trustedHosts;
|
|
6092
6095
|
}
|
|
6093
|
-
});
|
|
6096
|
+
}, {}));
|
|
6094
6097
|
}
|
|
6095
6098
|
})];
|
|
6096
6099
|
}
|
package/lib/browser/index.jsx
CHANGED
|
@@ -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(() => {
|
|
@@ -4097,14 +4097,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4097
4097
|
// src/functions/register-component.ts
|
|
4098
4098
|
var createRegisterComponentMessage = (info) => ({
|
|
4099
4099
|
type: "builder.registerComponent",
|
|
4100
|
-
data:
|
|
4100
|
+
data: serializeIncludingFunctions(info)
|
|
4101
4101
|
});
|
|
4102
4102
|
var serializeFn = (fnValue) => {
|
|
4103
4103
|
const fnStr = fnValue.toString().trim();
|
|
4104
4104
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4105
4105
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4106
4106
|
};
|
|
4107
|
-
function
|
|
4107
|
+
function serializeIncludingFunctions(info) {
|
|
4108
4108
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4109
4109
|
if (typeof value === "function") {
|
|
4110
4110
|
return serializeFn(value);
|
|
@@ -4674,11 +4674,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4674
4674
|
}
|
|
4675
4675
|
|
|
4676
4676
|
// src/constants/sdk-version.ts
|
|
4677
|
-
var SDK_VERSION = "2.0.
|
|
4677
|
+
var SDK_VERSION = "2.0.9";
|
|
4678
4678
|
|
|
4679
4679
|
// src/functions/register.ts
|
|
4680
4680
|
var registry = {};
|
|
4681
4681
|
function register(type, info) {
|
|
4682
|
+
if (type === "plugin") {
|
|
4683
|
+
info = serializeIncludingFunctions(info);
|
|
4684
|
+
}
|
|
4682
4685
|
let typeList = registry[type];
|
|
4683
4686
|
if (!typeList) {
|
|
4684
4687
|
typeList = registry[type] = [];
|
|
@@ -5338,7 +5341,7 @@ function ContentComponent(props) {
|
|
|
5338
5341
|
...acc,
|
|
5339
5342
|
[info.name]: {
|
|
5340
5343
|
component,
|
|
5341
|
-
...
|
|
5344
|
+
...serializeIncludingFunctions(info)
|
|
5342
5345
|
}
|
|
5343
5346
|
}),
|
|
5344
5347
|
{}
|
|
@@ -5372,7 +5375,7 @@ function ContentComponent(props) {
|
|
|
5372
5375
|
].reduce(
|
|
5373
5376
|
(acc, { component: _, ...info }) => ({
|
|
5374
5377
|
...acc,
|
|
5375
|
-
[info.name]:
|
|
5378
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
5376
5379
|
}),
|
|
5377
5380
|
{}
|
|
5378
5381
|
),
|
|
@@ -5505,6 +5508,7 @@ function ContentVariants(props) {
|
|
|
5505
5508
|
contentWrapper={props.contentWrapper}
|
|
5506
5509
|
contentWrapperProps={props.contentWrapperProps}
|
|
5507
5510
|
trustedHosts={props.trustedHosts}
|
|
5511
|
+
{...{}}
|
|
5508
5512
|
/>;
|
|
5509
5513
|
}}</For9>
|
|
5510
5514
|
</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(() => {
|
|
@@ -7738,14 +7738,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
7738
7738
|
// src/functions/register-component.ts
|
|
7739
7739
|
var createRegisterComponentMessage = (info) => ({
|
|
7740
7740
|
type: "builder.registerComponent",
|
|
7741
|
-
data:
|
|
7741
|
+
data: serializeIncludingFunctions(info)
|
|
7742
7742
|
});
|
|
7743
7743
|
var serializeFn = (fnValue) => {
|
|
7744
7744
|
const fnStr = fnValue.toString().trim();
|
|
7745
7745
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
7746
7746
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
7747
7747
|
};
|
|
7748
|
-
function
|
|
7748
|
+
function serializeIncludingFunctions(info) {
|
|
7749
7749
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
7750
7750
|
if (typeof value === "function") {
|
|
7751
7751
|
return serializeFn(value);
|
|
@@ -8318,11 +8318,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8318
8318
|
}
|
|
8319
8319
|
|
|
8320
8320
|
// src/constants/sdk-version.ts
|
|
8321
|
-
var SDK_VERSION = "2.0.
|
|
8321
|
+
var SDK_VERSION = "2.0.9";
|
|
8322
8322
|
|
|
8323
8323
|
// src/functions/register.ts
|
|
8324
8324
|
var registry = {};
|
|
8325
8325
|
function register(type, info) {
|
|
8326
|
+
if (type === "plugin") {
|
|
8327
|
+
info = serializeIncludingFunctions(info);
|
|
8328
|
+
}
|
|
8326
8329
|
let typeList = registry[type];
|
|
8327
8330
|
if (!typeList) {
|
|
8328
8331
|
typeList = registry[type] = [];
|
|
@@ -8968,7 +8971,7 @@ function ContentComponent(props) {
|
|
|
8968
8971
|
...acc,
|
|
8969
8972
|
[info.name]: {
|
|
8970
8973
|
component,
|
|
8971
|
-
...
|
|
8974
|
+
...serializeIncludingFunctions(info)
|
|
8972
8975
|
}
|
|
8973
8976
|
}), {}));
|
|
8974
8977
|
const [builderContextSignal, setBuilderContextSignal] = createSignal({
|
|
@@ -9000,7 +9003,7 @@ function ContentComponent(props) {
|
|
|
9000
9003
|
...info
|
|
9001
9004
|
}) => ({
|
|
9002
9005
|
...acc,
|
|
9003
|
-
[info.name]:
|
|
9006
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
9004
9007
|
}), {}),
|
|
9005
9008
|
inheritedStyles: {},
|
|
9006
9009
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
@@ -9193,7 +9196,7 @@ function ContentVariants(props) {
|
|
|
9193
9196
|
},
|
|
9194
9197
|
children: (variant, _index) => {
|
|
9195
9198
|
_index();
|
|
9196
|
-
return createComponent(content_default, {
|
|
9199
|
+
return createComponent(content_default, mergeProps({
|
|
9197
9200
|
get isNestedRender() {
|
|
9198
9201
|
return props.isNestedRender;
|
|
9199
9202
|
},
|
|
@@ -9253,7 +9256,7 @@ function ContentVariants(props) {
|
|
|
9253
9256
|
get trustedHosts() {
|
|
9254
9257
|
return props.trustedHosts;
|
|
9255
9258
|
}
|
|
9256
|
-
});
|
|
9259
|
+
}, {}));
|
|
9257
9260
|
}
|
|
9258
9261
|
})];
|
|
9259
9262
|
}
|
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(() => {
|
|
@@ -7255,14 +7255,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
7255
7255
|
// src/functions/register-component.ts
|
|
7256
7256
|
var createRegisterComponentMessage = (info) => ({
|
|
7257
7257
|
type: "builder.registerComponent",
|
|
7258
|
-
data:
|
|
7258
|
+
data: serializeIncludingFunctions(info)
|
|
7259
7259
|
});
|
|
7260
7260
|
var serializeFn = (fnValue) => {
|
|
7261
7261
|
const fnStr = fnValue.toString().trim();
|
|
7262
7262
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
7263
7263
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
7264
7264
|
};
|
|
7265
|
-
function
|
|
7265
|
+
function serializeIncludingFunctions(info) {
|
|
7266
7266
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
7267
7267
|
if (typeof value === "function") {
|
|
7268
7268
|
return serializeFn(value);
|
|
@@ -7837,11 +7837,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7837
7837
|
}
|
|
7838
7838
|
|
|
7839
7839
|
// src/constants/sdk-version.ts
|
|
7840
|
-
var SDK_VERSION = "2.0.
|
|
7840
|
+
var SDK_VERSION = "2.0.9";
|
|
7841
7841
|
|
|
7842
7842
|
// src/functions/register.ts
|
|
7843
7843
|
var registry = {};
|
|
7844
7844
|
function register(type, info) {
|
|
7845
|
+
if (type === "plugin") {
|
|
7846
|
+
info = serializeIncludingFunctions(info);
|
|
7847
|
+
}
|
|
7845
7848
|
let typeList = registry[type];
|
|
7846
7849
|
if (!typeList) {
|
|
7847
7850
|
typeList = registry[type] = [];
|
|
@@ -8503,7 +8506,7 @@ function ContentComponent(props) {
|
|
|
8503
8506
|
...acc,
|
|
8504
8507
|
[info.name]: {
|
|
8505
8508
|
component,
|
|
8506
|
-
...
|
|
8509
|
+
...serializeIncludingFunctions(info)
|
|
8507
8510
|
}
|
|
8508
8511
|
}),
|
|
8509
8512
|
{}
|
|
@@ -8537,7 +8540,7 @@ function ContentComponent(props) {
|
|
|
8537
8540
|
].reduce(
|
|
8538
8541
|
(acc, { component: _, ...info }) => ({
|
|
8539
8542
|
...acc,
|
|
8540
|
-
[info.name]:
|
|
8543
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
8541
8544
|
}),
|
|
8542
8545
|
{}
|
|
8543
8546
|
),
|
|
@@ -8670,6 +8673,7 @@ function ContentVariants(props) {
|
|
|
8670
8673
|
contentWrapper={props.contentWrapper}
|
|
8671
8674
|
contentWrapperProps={props.contentWrapperProps}
|
|
8672
8675
|
trustedHosts={props.trustedHosts}
|
|
8676
|
+
{...{}}
|
|
8673
8677
|
/>;
|
|
8674
8678
|
}}</For9>
|
|
8675
8679
|
</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(() => {
|
|
@@ -7728,14 +7728,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
7728
7728
|
// src/functions/register-component.ts
|
|
7729
7729
|
var createRegisterComponentMessage = (info) => ({
|
|
7730
7730
|
type: "builder.registerComponent",
|
|
7731
|
-
data:
|
|
7731
|
+
data: serializeIncludingFunctions(info)
|
|
7732
7732
|
});
|
|
7733
7733
|
var serializeFn = (fnValue) => {
|
|
7734
7734
|
const fnStr = fnValue.toString().trim();
|
|
7735
7735
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
7736
7736
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
7737
7737
|
};
|
|
7738
|
-
function
|
|
7738
|
+
function serializeIncludingFunctions(info) {
|
|
7739
7739
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
7740
7740
|
if (typeof value === "function") {
|
|
7741
7741
|
return serializeFn(value);
|
|
@@ -8303,11 +8303,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
|
|
8305
8305
|
// src/constants/sdk-version.ts
|
|
8306
|
-
var SDK_VERSION = "2.0.
|
|
8306
|
+
var SDK_VERSION = "2.0.9";
|
|
8307
8307
|
|
|
8308
8308
|
// src/functions/register.ts
|
|
8309
8309
|
var registry = {};
|
|
8310
8310
|
function register(type, info) {
|
|
8311
|
+
if (type === "plugin") {
|
|
8312
|
+
info = serializeIncludingFunctions(info);
|
|
8313
|
+
}
|
|
8311
8314
|
let typeList = registry[type];
|
|
8312
8315
|
if (!typeList) {
|
|
8313
8316
|
typeList = registry[type] = [];
|
|
@@ -8951,7 +8954,7 @@ function ContentComponent(props) {
|
|
|
8951
8954
|
...acc,
|
|
8952
8955
|
[info.name]: {
|
|
8953
8956
|
component,
|
|
8954
|
-
...
|
|
8957
|
+
...serializeIncludingFunctions(info)
|
|
8955
8958
|
}
|
|
8956
8959
|
}), {}));
|
|
8957
8960
|
const [builderContextSignal, setBuilderContextSignal] = createSignal({
|
|
@@ -8983,7 +8986,7 @@ function ContentComponent(props) {
|
|
|
8983
8986
|
...info
|
|
8984
8987
|
}) => ({
|
|
8985
8988
|
...acc,
|
|
8986
|
-
[info.name]:
|
|
8989
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
8987
8990
|
}), {}),
|
|
8988
8991
|
inheritedStyles: {},
|
|
8989
8992
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
@@ -9176,7 +9179,7 @@ function ContentVariants(props) {
|
|
|
9176
9179
|
},
|
|
9177
9180
|
children: (variant, _index) => {
|
|
9178
9181
|
_index();
|
|
9179
|
-
return createComponent(content_default, {
|
|
9182
|
+
return createComponent(content_default, mergeProps({
|
|
9180
9183
|
get isNestedRender() {
|
|
9181
9184
|
return props.isNestedRender;
|
|
9182
9185
|
},
|
|
@@ -9236,7 +9239,7 @@ function ContentVariants(props) {
|
|
|
9236
9239
|
get trustedHosts() {
|
|
9237
9240
|
return props.trustedHosts;
|
|
9238
9241
|
}
|
|
9239
|
-
});
|
|
9242
|
+
}, {}));
|
|
9240
9243
|
}
|
|
9241
9244
|
})];
|
|
9242
9245
|
}
|
package/lib/edge/index.jsx
CHANGED
|
@@ -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(() => {
|
|
@@ -7245,14 +7245,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
7245
7245
|
// src/functions/register-component.ts
|
|
7246
7246
|
var createRegisterComponentMessage = (info) => ({
|
|
7247
7247
|
type: "builder.registerComponent",
|
|
7248
|
-
data:
|
|
7248
|
+
data: serializeIncludingFunctions(info)
|
|
7249
7249
|
});
|
|
7250
7250
|
var serializeFn = (fnValue) => {
|
|
7251
7251
|
const fnStr = fnValue.toString().trim();
|
|
7252
7252
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
7253
7253
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
7254
7254
|
};
|
|
7255
|
-
function
|
|
7255
|
+
function serializeIncludingFunctions(info) {
|
|
7256
7256
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
7257
7257
|
if (typeof value === "function") {
|
|
7258
7258
|
return serializeFn(value);
|
|
@@ -7822,11 +7822,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7822
7822
|
}
|
|
7823
7823
|
|
|
7824
7824
|
// src/constants/sdk-version.ts
|
|
7825
|
-
var SDK_VERSION = "2.0.
|
|
7825
|
+
var SDK_VERSION = "2.0.9";
|
|
7826
7826
|
|
|
7827
7827
|
// src/functions/register.ts
|
|
7828
7828
|
var registry = {};
|
|
7829
7829
|
function register(type, info) {
|
|
7830
|
+
if (type === "plugin") {
|
|
7831
|
+
info = serializeIncludingFunctions(info);
|
|
7832
|
+
}
|
|
7830
7833
|
let typeList = registry[type];
|
|
7831
7834
|
if (!typeList) {
|
|
7832
7835
|
typeList = registry[type] = [];
|
|
@@ -8486,7 +8489,7 @@ function ContentComponent(props) {
|
|
|
8486
8489
|
...acc,
|
|
8487
8490
|
[info.name]: {
|
|
8488
8491
|
component,
|
|
8489
|
-
...
|
|
8492
|
+
...serializeIncludingFunctions(info)
|
|
8490
8493
|
}
|
|
8491
8494
|
}),
|
|
8492
8495
|
{}
|
|
@@ -8520,7 +8523,7 @@ function ContentComponent(props) {
|
|
|
8520
8523
|
].reduce(
|
|
8521
8524
|
(acc, { component: _, ...info }) => ({
|
|
8522
8525
|
...acc,
|
|
8523
|
-
[info.name]:
|
|
8526
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
8524
8527
|
}),
|
|
8525
8528
|
{}
|
|
8526
8529
|
),
|
|
@@ -8653,6 +8656,7 @@ function ContentVariants(props) {
|
|
|
8653
8656
|
contentWrapper={props.contentWrapper}
|
|
8654
8657
|
contentWrapperProps={props.contentWrapperProps}
|
|
8655
8658
|
trustedHosts={props.trustedHosts}
|
|
8659
|
+
{...{}}
|
|
8656
8660
|
/>;
|
|
8657
8661
|
}}</For9>
|
|
8658
8662
|
</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(() => {
|
|
@@ -4762,14 +4762,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4762
4762
|
// src/functions/register-component.ts
|
|
4763
4763
|
var createRegisterComponentMessage = (info) => ({
|
|
4764
4764
|
type: "builder.registerComponent",
|
|
4765
|
-
data:
|
|
4765
|
+
data: serializeIncludingFunctions(info)
|
|
4766
4766
|
});
|
|
4767
4767
|
var serializeFn = (fnValue) => {
|
|
4768
4768
|
const fnStr = fnValue.toString().trim();
|
|
4769
4769
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4770
4770
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4771
4771
|
};
|
|
4772
|
-
function
|
|
4772
|
+
function serializeIncludingFunctions(info) {
|
|
4773
4773
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4774
4774
|
if (typeof value === "function") {
|
|
4775
4775
|
return serializeFn(value);
|
|
@@ -5342,11 +5342,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5342
5342
|
}
|
|
5343
5343
|
|
|
5344
5344
|
// src/constants/sdk-version.ts
|
|
5345
|
-
var SDK_VERSION = "2.0.
|
|
5345
|
+
var SDK_VERSION = "2.0.9";
|
|
5346
5346
|
|
|
5347
5347
|
// src/functions/register.ts
|
|
5348
5348
|
var registry = {};
|
|
5349
5349
|
function register(type, info) {
|
|
5350
|
+
if (type === "plugin") {
|
|
5351
|
+
info = serializeIncludingFunctions(info);
|
|
5352
|
+
}
|
|
5350
5353
|
let typeList = registry[type];
|
|
5351
5354
|
if (!typeList) {
|
|
5352
5355
|
typeList = registry[type] = [];
|
|
@@ -5992,7 +5995,7 @@ function ContentComponent(props) {
|
|
|
5992
5995
|
...acc,
|
|
5993
5996
|
[info.name]: {
|
|
5994
5997
|
component,
|
|
5995
|
-
...
|
|
5998
|
+
...serializeIncludingFunctions(info)
|
|
5996
5999
|
}
|
|
5997
6000
|
}), {}));
|
|
5998
6001
|
const [builderContextSignal, setBuilderContextSignal] = createSignal({
|
|
@@ -6024,7 +6027,7 @@ function ContentComponent(props) {
|
|
|
6024
6027
|
...info
|
|
6025
6028
|
}) => ({
|
|
6026
6029
|
...acc,
|
|
6027
|
-
[info.name]:
|
|
6030
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
6028
6031
|
}), {}),
|
|
6029
6032
|
inheritedStyles: {},
|
|
6030
6033
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
@@ -6217,7 +6220,7 @@ function ContentVariants(props) {
|
|
|
6217
6220
|
},
|
|
6218
6221
|
children: (variant, _index) => {
|
|
6219
6222
|
_index();
|
|
6220
|
-
return createComponent(content_default, {
|
|
6223
|
+
return createComponent(content_default, mergeProps({
|
|
6221
6224
|
get isNestedRender() {
|
|
6222
6225
|
return props.isNestedRender;
|
|
6223
6226
|
},
|
|
@@ -6277,7 +6280,7 @@ function ContentVariants(props) {
|
|
|
6277
6280
|
get trustedHosts() {
|
|
6278
6281
|
return props.trustedHosts;
|
|
6279
6282
|
}
|
|
6280
|
-
});
|
|
6283
|
+
}, {}));
|
|
6281
6284
|
}
|
|
6282
6285
|
})];
|
|
6283
6286
|
}
|
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(() => {
|
|
@@ -4279,14 +4279,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4279
4279
|
// src/functions/register-component.ts
|
|
4280
4280
|
var createRegisterComponentMessage = (info) => ({
|
|
4281
4281
|
type: "builder.registerComponent",
|
|
4282
|
-
data:
|
|
4282
|
+
data: serializeIncludingFunctions(info)
|
|
4283
4283
|
});
|
|
4284
4284
|
var serializeFn = (fnValue) => {
|
|
4285
4285
|
const fnStr = fnValue.toString().trim();
|
|
4286
4286
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4287
4287
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4288
4288
|
};
|
|
4289
|
-
function
|
|
4289
|
+
function serializeIncludingFunctions(info) {
|
|
4290
4290
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4291
4291
|
if (typeof value === "function") {
|
|
4292
4292
|
return serializeFn(value);
|
|
@@ -4861,11 +4861,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4861
4861
|
}
|
|
4862
4862
|
|
|
4863
4863
|
// src/constants/sdk-version.ts
|
|
4864
|
-
var SDK_VERSION = "2.0.
|
|
4864
|
+
var SDK_VERSION = "2.0.9";
|
|
4865
4865
|
|
|
4866
4866
|
// src/functions/register.ts
|
|
4867
4867
|
var registry = {};
|
|
4868
4868
|
function register(type, info) {
|
|
4869
|
+
if (type === "plugin") {
|
|
4870
|
+
info = serializeIncludingFunctions(info);
|
|
4871
|
+
}
|
|
4869
4872
|
let typeList = registry[type];
|
|
4870
4873
|
if (!typeList) {
|
|
4871
4874
|
typeList = registry[type] = [];
|
|
@@ -5527,7 +5530,7 @@ function ContentComponent(props) {
|
|
|
5527
5530
|
...acc,
|
|
5528
5531
|
[info.name]: {
|
|
5529
5532
|
component,
|
|
5530
|
-
...
|
|
5533
|
+
...serializeIncludingFunctions(info)
|
|
5531
5534
|
}
|
|
5532
5535
|
}),
|
|
5533
5536
|
{}
|
|
@@ -5561,7 +5564,7 @@ function ContentComponent(props) {
|
|
|
5561
5564
|
].reduce(
|
|
5562
5565
|
(acc, { component: _, ...info }) => ({
|
|
5563
5566
|
...acc,
|
|
5564
|
-
[info.name]:
|
|
5567
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
5565
5568
|
}),
|
|
5566
5569
|
{}
|
|
5567
5570
|
),
|
|
@@ -5694,6 +5697,7 @@ function ContentVariants(props) {
|
|
|
5694
5697
|
contentWrapper={props.contentWrapper}
|
|
5695
5698
|
contentWrapperProps={props.contentWrapperProps}
|
|
5696
5699
|
trustedHosts={props.trustedHosts}
|
|
5700
|
+
{...{}}
|
|
5697
5701
|
/>;
|
|
5698
5702
|
}}</For9>
|
|
5699
5703
|
</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(() => {
|
|
@@ -4752,14 +4752,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4752
4752
|
// src/functions/register-component.ts
|
|
4753
4753
|
var createRegisterComponentMessage = (info) => ({
|
|
4754
4754
|
type: "builder.registerComponent",
|
|
4755
|
-
data:
|
|
4755
|
+
data: serializeIncludingFunctions(info)
|
|
4756
4756
|
});
|
|
4757
4757
|
var serializeFn = (fnValue) => {
|
|
4758
4758
|
const fnStr = fnValue.toString().trim();
|
|
4759
4759
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4760
4760
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4761
4761
|
};
|
|
4762
|
-
function
|
|
4762
|
+
function serializeIncludingFunctions(info) {
|
|
4763
4763
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4764
4764
|
if (typeof value === "function") {
|
|
4765
4765
|
return serializeFn(value);
|
|
@@ -5327,11 +5327,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5327
5327
|
}
|
|
5328
5328
|
|
|
5329
5329
|
// src/constants/sdk-version.ts
|
|
5330
|
-
var SDK_VERSION = "2.0.
|
|
5330
|
+
var SDK_VERSION = "2.0.9";
|
|
5331
5331
|
|
|
5332
5332
|
// src/functions/register.ts
|
|
5333
5333
|
var registry = {};
|
|
5334
5334
|
function register(type, info) {
|
|
5335
|
+
if (type === "plugin") {
|
|
5336
|
+
info = serializeIncludingFunctions(info);
|
|
5337
|
+
}
|
|
5335
5338
|
let typeList = registry[type];
|
|
5336
5339
|
if (!typeList) {
|
|
5337
5340
|
typeList = registry[type] = [];
|
|
@@ -5975,7 +5978,7 @@ function ContentComponent(props) {
|
|
|
5975
5978
|
...acc,
|
|
5976
5979
|
[info.name]: {
|
|
5977
5980
|
component,
|
|
5978
|
-
...
|
|
5981
|
+
...serializeIncludingFunctions(info)
|
|
5979
5982
|
}
|
|
5980
5983
|
}), {}));
|
|
5981
5984
|
const [builderContextSignal, setBuilderContextSignal] = createSignal({
|
|
@@ -6007,7 +6010,7 @@ function ContentComponent(props) {
|
|
|
6007
6010
|
...info
|
|
6008
6011
|
}) => ({
|
|
6009
6012
|
...acc,
|
|
6010
|
-
[info.name]:
|
|
6013
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
6011
6014
|
}), {}),
|
|
6012
6015
|
inheritedStyles: {},
|
|
6013
6016
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
@@ -6200,7 +6203,7 @@ function ContentVariants(props) {
|
|
|
6200
6203
|
},
|
|
6201
6204
|
children: (variant, _index) => {
|
|
6202
6205
|
_index();
|
|
6203
|
-
return createComponent(content_default, {
|
|
6206
|
+
return createComponent(content_default, mergeProps({
|
|
6204
6207
|
get isNestedRender() {
|
|
6205
6208
|
return props.isNestedRender;
|
|
6206
6209
|
},
|
|
@@ -6260,7 +6263,7 @@ function ContentVariants(props) {
|
|
|
6260
6263
|
get trustedHosts() {
|
|
6261
6264
|
return props.trustedHosts;
|
|
6262
6265
|
}
|
|
6263
|
-
});
|
|
6266
|
+
}, {}));
|
|
6264
6267
|
}
|
|
6265
6268
|
})];
|
|
6266
6269
|
}
|
package/lib/node/index.jsx
CHANGED
|
@@ -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(() => {
|
|
@@ -4269,14 +4269,14 @@ var getDefaultRegisteredComponents = () => [{
|
|
|
4269
4269
|
// src/functions/register-component.ts
|
|
4270
4270
|
var createRegisterComponentMessage = (info) => ({
|
|
4271
4271
|
type: "builder.registerComponent",
|
|
4272
|
-
data:
|
|
4272
|
+
data: serializeIncludingFunctions(info)
|
|
4273
4273
|
});
|
|
4274
4274
|
var serializeFn = (fnValue) => {
|
|
4275
4275
|
const fnStr = fnValue.toString().trim();
|
|
4276
4276
|
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
4277
4277
|
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
4278
4278
|
};
|
|
4279
|
-
function
|
|
4279
|
+
function serializeIncludingFunctions(info) {
|
|
4280
4280
|
return JSON.parse(JSON.stringify(info, (key, value) => {
|
|
4281
4281
|
if (typeof value === "function") {
|
|
4282
4282
|
return serializeFn(value);
|
|
@@ -4846,11 +4846,14 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4846
4846
|
}
|
|
4847
4847
|
|
|
4848
4848
|
// src/constants/sdk-version.ts
|
|
4849
|
-
var SDK_VERSION = "2.0.
|
|
4849
|
+
var SDK_VERSION = "2.0.9";
|
|
4850
4850
|
|
|
4851
4851
|
// src/functions/register.ts
|
|
4852
4852
|
var registry = {};
|
|
4853
4853
|
function register(type, info) {
|
|
4854
|
+
if (type === "plugin") {
|
|
4855
|
+
info = serializeIncludingFunctions(info);
|
|
4856
|
+
}
|
|
4854
4857
|
let typeList = registry[type];
|
|
4855
4858
|
if (!typeList) {
|
|
4856
4859
|
typeList = registry[type] = [];
|
|
@@ -5510,7 +5513,7 @@ function ContentComponent(props) {
|
|
|
5510
5513
|
...acc,
|
|
5511
5514
|
[info.name]: {
|
|
5512
5515
|
component,
|
|
5513
|
-
...
|
|
5516
|
+
...serializeIncludingFunctions(info)
|
|
5514
5517
|
}
|
|
5515
5518
|
}),
|
|
5516
5519
|
{}
|
|
@@ -5544,7 +5547,7 @@ function ContentComponent(props) {
|
|
|
5544
5547
|
].reduce(
|
|
5545
5548
|
(acc, { component: _, ...info }) => ({
|
|
5546
5549
|
...acc,
|
|
5547
|
-
[info.name]:
|
|
5550
|
+
[info.name]: serializeIncludingFunctions(info)
|
|
5548
5551
|
}),
|
|
5549
5552
|
{}
|
|
5550
5553
|
),
|
|
@@ -5677,6 +5680,7 @@ function ContentVariants(props) {
|
|
|
5677
5680
|
contentWrapper={props.contentWrapper}
|
|
5678
5681
|
contentWrapperProps={props.contentWrapperProps}
|
|
5679
5682
|
trustedHosts={props.trustedHosts}
|
|
5683
|
+
{...{}}
|
|
5680
5684
|
/>;
|
|
5681
5685
|
}}</For9>
|
|
5682
5686
|
</Show14>
|