@builder.io/sdk-solid 1.0.19 → 1.0.21
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 +3 -3
- package/lib/browser/dev.js +3 -2
- package/lib/browser/dev.jsx +2 -2
- package/lib/browser/index.js +3 -2
- package/lib/browser/index.jsx +2 -2
- package/lib/edge/dev.js +3 -2
- package/lib/edge/dev.jsx +2 -2
- package/lib/edge/index.js +3 -2
- package/lib/edge/index.jsx +2 -2
- package/lib/node/dev.js +25 -4
- package/lib/node/dev.jsx +24 -4
- package/lib/node/index.js +26 -4
- package/lib/node/index.jsx +25 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -938,11 +938,11 @@ interface GetContentOptions {
|
|
|
938
938
|
/**
|
|
939
939
|
* Optional override of the `fetch` function. (Defaults to global `fetch`)
|
|
940
940
|
*/
|
|
941
|
-
fetch?:
|
|
941
|
+
fetch?: (input: string, init?: object) => Promise<any>;
|
|
942
942
|
/**
|
|
943
|
-
* Optional fetch options to be passed to the `fetch` function.
|
|
943
|
+
* Optional fetch options to be passed as the second argument to the `fetch` function.
|
|
944
944
|
*/
|
|
945
|
-
fetchOptions?:
|
|
945
|
+
fetchOptions?: object;
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
type GetBuilderPropsOptions = (Omit<GetContentOptions, 'model'> & {
|
package/lib/browser/dev.js
CHANGED
|
@@ -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.
|
|
4453
|
+
var SDK_VERSION = "1.0.21";
|
|
4453
4454
|
|
|
4454
4455
|
// src/functions/register.ts
|
|
4455
4456
|
var registry = {};
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -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.
|
|
4036
|
+
var SDK_VERSION = "1.0.21";
|
|
4037
4037
|
|
|
4038
4038
|
// src/functions/register.ts
|
|
4039
4039
|
var registry = {};
|
package/lib/browser/index.js
CHANGED
|
@@ -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.
|
|
4438
|
+
var SDK_VERSION = "1.0.21";
|
|
4438
4439
|
|
|
4439
4440
|
// src/functions/register.ts
|
|
4440
4441
|
var registry = {};
|
package/lib/browser/index.jsx
CHANGED
|
@@ -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.
|
|
4021
|
+
var SDK_VERSION = "1.0.21";
|
|
4022
4022
|
|
|
4023
4023
|
// src/functions/register.ts
|
|
4024
4024
|
var registry = {};
|
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.
|
|
7606
|
+
var SDK_VERSION = "1.0.21";
|
|
7606
7607
|
|
|
7607
7608
|
// src/functions/register.ts
|
|
7608
7609
|
var registry = {};
|
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.
|
|
7191
|
+
var SDK_VERSION = "1.0.21";
|
|
7192
7192
|
|
|
7193
7193
|
// src/functions/register.ts
|
|
7194
7194
|
var registry = {};
|
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.
|
|
7591
|
+
var SDK_VERSION = "1.0.21";
|
|
7591
7592
|
|
|
7592
7593
|
// src/functions/register.ts
|
|
7593
7594
|
var registry = {};
|
package/lib/edge/index.jsx
CHANGED
|
@@ -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.
|
|
7176
|
+
var SDK_VERSION = "1.0.21";
|
|
7177
7177
|
|
|
7178
7178
|
// src/functions/register.ts
|
|
7179
7179
|
var registry = {};
|
package/lib/node/dev.js
CHANGED
|
@@ -381,8 +381,28 @@ if (typeof output === 'object' && output !== null) {
|
|
|
381
381
|
output;
|
|
382
382
|
`;
|
|
383
383
|
};
|
|
384
|
+
var IVM_INSTANCE = null;
|
|
385
|
+
var getIvm = () => {
|
|
386
|
+
try {
|
|
387
|
+
if (IVM_INSTANCE)
|
|
388
|
+
return IVM_INSTANCE;
|
|
389
|
+
const dynRequiredIvm = safeDynamicRequire("isolated-vm");
|
|
390
|
+
if (dynRequiredIvm)
|
|
391
|
+
return dynRequiredIvm;
|
|
392
|
+
} catch (error2) {
|
|
393
|
+
logger.error("isolated-vm import error.", error2);
|
|
394
|
+
}
|
|
395
|
+
throw new Error(`${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on Node server.
|
|
396
|
+
|
|
397
|
+
In certain Node environments, the SDK requires additional initialization steps. This can be achieved by
|
|
398
|
+
importing and calling \`initializeNodeRuntime()\` from "@builder.io/sdk-react/node/init". This must be done in
|
|
399
|
+
a server-only execution path within your application.
|
|
400
|
+
|
|
401
|
+
Please see the documentation for more information: https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments
|
|
402
|
+
`);
|
|
403
|
+
};
|
|
384
404
|
var getIsolateContext = () => {
|
|
385
|
-
const ivm =
|
|
405
|
+
const ivm = getIvm();
|
|
386
406
|
const isolate = new ivm.Isolate({
|
|
387
407
|
memoryLimit: 128
|
|
388
408
|
});
|
|
@@ -397,7 +417,7 @@ var runInNode = ({
|
|
|
397
417
|
rootSetState,
|
|
398
418
|
rootState
|
|
399
419
|
}) => {
|
|
400
|
-
const ivm =
|
|
420
|
+
const ivm = getIvm();
|
|
401
421
|
const state = fastClone({
|
|
402
422
|
...rootState,
|
|
403
423
|
...localState
|
|
@@ -3654,10 +3674,11 @@ function SelectComponent(props) {
|
|
|
3654
3674
|
return props.options;
|
|
3655
3675
|
},
|
|
3656
3676
|
children: (option, _index) => {
|
|
3657
|
-
_index();
|
|
3677
|
+
const index = _index();
|
|
3658
3678
|
return (() => {
|
|
3659
3679
|
const _el$2 = _tmpl$24();
|
|
3660
3680
|
insert(_el$2, () => option.name || option.value);
|
|
3681
|
+
effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
|
|
3661
3682
|
effect(() => _el$2.value = option.value);
|
|
3662
3683
|
return _el$2;
|
|
3663
3684
|
})();
|
|
@@ -4574,7 +4595,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4574
4595
|
}
|
|
4575
4596
|
|
|
4576
4597
|
// src/constants/sdk-version.ts
|
|
4577
|
-
var SDK_VERSION = "1.0.
|
|
4598
|
+
var SDK_VERSION = "1.0.21";
|
|
4578
4599
|
|
|
4579
4600
|
// src/functions/register.ts
|
|
4580
4601
|
var registry = {};
|
package/lib/node/dev.jsx
CHANGED
|
@@ -370,8 +370,28 @@ if (typeof output === 'object' && output !== null) {
|
|
|
370
370
|
output;
|
|
371
371
|
`;
|
|
372
372
|
};
|
|
373
|
+
var IVM_INSTANCE = null;
|
|
374
|
+
var getIvm = () => {
|
|
375
|
+
try {
|
|
376
|
+
if (IVM_INSTANCE)
|
|
377
|
+
return IVM_INSTANCE;
|
|
378
|
+
const dynRequiredIvm = safeDynamicRequire("isolated-vm");
|
|
379
|
+
if (dynRequiredIvm)
|
|
380
|
+
return dynRequiredIvm;
|
|
381
|
+
} catch (error2) {
|
|
382
|
+
logger.error("isolated-vm import error.", error2);
|
|
383
|
+
}
|
|
384
|
+
throw new Error(`${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on Node server.
|
|
385
|
+
|
|
386
|
+
In certain Node environments, the SDK requires additional initialization steps. This can be achieved by
|
|
387
|
+
importing and calling \`initializeNodeRuntime()\` from "@builder.io/sdk-react/node/init". This must be done in
|
|
388
|
+
a server-only execution path within your application.
|
|
389
|
+
|
|
390
|
+
Please see the documentation for more information: https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments
|
|
391
|
+
`);
|
|
392
|
+
};
|
|
373
393
|
var getIsolateContext = () => {
|
|
374
|
-
const ivm =
|
|
394
|
+
const ivm = getIvm();
|
|
375
395
|
const isolate = new ivm.Isolate({
|
|
376
396
|
memoryLimit: 128
|
|
377
397
|
});
|
|
@@ -386,7 +406,7 @@ var runInNode = ({
|
|
|
386
406
|
rootSetState,
|
|
387
407
|
rootState
|
|
388
408
|
}) => {
|
|
389
|
-
const ivm =
|
|
409
|
+
const ivm = getIvm();
|
|
390
410
|
const state = fastClone({
|
|
391
411
|
...rootState,
|
|
392
412
|
...localState
|
|
@@ -3292,7 +3312,7 @@ function SelectComponent(props) {
|
|
|
3292
3312
|
name={props.name}
|
|
3293
3313
|
><For6 each={props.options}>{(option, _index) => {
|
|
3294
3314
|
const index = _index();
|
|
3295
|
-
return <option value={option.value}>{option.name || option.value}</option>;
|
|
3315
|
+
return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
|
|
3296
3316
|
}}</For6></select>;
|
|
3297
3317
|
}
|
|
3298
3318
|
var select_default = SelectComponent;
|
|
@@ -4160,7 +4180,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4160
4180
|
}
|
|
4161
4181
|
|
|
4162
4182
|
// src/constants/sdk-version.ts
|
|
4163
|
-
var SDK_VERSION = "1.0.
|
|
4183
|
+
var SDK_VERSION = "1.0.21";
|
|
4164
4184
|
|
|
4165
4185
|
// src/functions/register.ts
|
|
4166
4186
|
var registry = {};
|
package/lib/node/index.js
CHANGED
|
@@ -128,6 +128,7 @@ function getBlockComponentOptions(block) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
// src/helpers/logger.ts
|
|
131
|
+
var MSG_PREFIX = "[Builder.io]: ";
|
|
131
132
|
var logger = {
|
|
132
133
|
log: (...message) => void 0,
|
|
133
134
|
error: (...message) => void 0,
|
|
@@ -379,8 +380,28 @@ if (typeof output === 'object' && output !== null) {
|
|
|
379
380
|
output;
|
|
380
381
|
`;
|
|
381
382
|
};
|
|
383
|
+
var IVM_INSTANCE = null;
|
|
384
|
+
var getIvm = () => {
|
|
385
|
+
try {
|
|
386
|
+
if (IVM_INSTANCE)
|
|
387
|
+
return IVM_INSTANCE;
|
|
388
|
+
const dynRequiredIvm = safeDynamicRequire("isolated-vm");
|
|
389
|
+
if (dynRequiredIvm)
|
|
390
|
+
return dynRequiredIvm;
|
|
391
|
+
} catch (error2) {
|
|
392
|
+
logger.error("isolated-vm import error.", error2);
|
|
393
|
+
}
|
|
394
|
+
throw new Error(`${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on Node server.
|
|
395
|
+
|
|
396
|
+
In certain Node environments, the SDK requires additional initialization steps. This can be achieved by
|
|
397
|
+
importing and calling \`initializeNodeRuntime()\` from "@builder.io/sdk-react/node/init". This must be done in
|
|
398
|
+
a server-only execution path within your application.
|
|
399
|
+
|
|
400
|
+
Please see the documentation for more information: https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments
|
|
401
|
+
`);
|
|
402
|
+
};
|
|
382
403
|
var getIsolateContext = () => {
|
|
383
|
-
const ivm =
|
|
404
|
+
const ivm = getIvm();
|
|
384
405
|
const isolate = new ivm.Isolate({
|
|
385
406
|
memoryLimit: 128
|
|
386
407
|
});
|
|
@@ -395,7 +416,7 @@ var runInNode = ({
|
|
|
395
416
|
rootSetState,
|
|
396
417
|
rootState
|
|
397
418
|
}) => {
|
|
398
|
-
const ivm =
|
|
419
|
+
const ivm = getIvm();
|
|
399
420
|
const state = fastClone({
|
|
400
421
|
...rootState,
|
|
401
422
|
...localState
|
|
@@ -3643,10 +3664,11 @@ function SelectComponent(props) {
|
|
|
3643
3664
|
return props.options;
|
|
3644
3665
|
},
|
|
3645
3666
|
children: (option, _index) => {
|
|
3646
|
-
_index();
|
|
3667
|
+
const index = _index();
|
|
3647
3668
|
return (() => {
|
|
3648
3669
|
const _el$2 = _tmpl$24();
|
|
3649
3670
|
insert(_el$2, () => option.name || option.value);
|
|
3671
|
+
effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
|
|
3650
3672
|
effect(() => _el$2.value = option.value);
|
|
3651
3673
|
return _el$2;
|
|
3652
3674
|
})();
|
|
@@ -4558,7 +4580,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4558
4580
|
}
|
|
4559
4581
|
|
|
4560
4582
|
// src/constants/sdk-version.ts
|
|
4561
|
-
var SDK_VERSION = "1.0.
|
|
4583
|
+
var SDK_VERSION = "1.0.21";
|
|
4562
4584
|
|
|
4563
4585
|
// src/functions/register.ts
|
|
4564
4586
|
var registry = {};
|
package/lib/node/index.jsx
CHANGED
|
@@ -114,6 +114,7 @@ function getBlockComponentOptions(block) {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
// src/helpers/logger.ts
|
|
117
|
+
var MSG_PREFIX = "[Builder.io]: ";
|
|
117
118
|
var logger = {
|
|
118
119
|
log: (...message) => void 0,
|
|
119
120
|
error: (...message) => void 0,
|
|
@@ -368,8 +369,28 @@ if (typeof output === 'object' && output !== null) {
|
|
|
368
369
|
output;
|
|
369
370
|
`;
|
|
370
371
|
};
|
|
372
|
+
var IVM_INSTANCE = null;
|
|
373
|
+
var getIvm = () => {
|
|
374
|
+
try {
|
|
375
|
+
if (IVM_INSTANCE)
|
|
376
|
+
return IVM_INSTANCE;
|
|
377
|
+
const dynRequiredIvm = safeDynamicRequire("isolated-vm");
|
|
378
|
+
if (dynRequiredIvm)
|
|
379
|
+
return dynRequiredIvm;
|
|
380
|
+
} catch (error2) {
|
|
381
|
+
logger.error("isolated-vm import error.", error2);
|
|
382
|
+
}
|
|
383
|
+
throw new Error(`${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on Node server.
|
|
384
|
+
|
|
385
|
+
In certain Node environments, the SDK requires additional initialization steps. This can be achieved by
|
|
386
|
+
importing and calling \`initializeNodeRuntime()\` from "@builder.io/sdk-react/node/init". This must be done in
|
|
387
|
+
a server-only execution path within your application.
|
|
388
|
+
|
|
389
|
+
Please see the documentation for more information: https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments
|
|
390
|
+
`);
|
|
391
|
+
};
|
|
371
392
|
var getIsolateContext = () => {
|
|
372
|
-
const ivm =
|
|
393
|
+
const ivm = getIvm();
|
|
373
394
|
const isolate = new ivm.Isolate({
|
|
374
395
|
memoryLimit: 128
|
|
375
396
|
});
|
|
@@ -384,7 +405,7 @@ var runInNode = ({
|
|
|
384
405
|
rootSetState,
|
|
385
406
|
rootState
|
|
386
407
|
}) => {
|
|
387
|
-
const ivm =
|
|
408
|
+
const ivm = getIvm();
|
|
388
409
|
const state = fastClone({
|
|
389
410
|
...rootState,
|
|
390
411
|
...localState
|
|
@@ -3281,7 +3302,7 @@ function SelectComponent(props) {
|
|
|
3281
3302
|
name={props.name}
|
|
3282
3303
|
><For6 each={props.options}>{(option, _index) => {
|
|
3283
3304
|
const index = _index();
|
|
3284
|
-
return <option value={option.value}>{option.name || option.value}</option>;
|
|
3305
|
+
return <option key={`${option.name}-${index}`} value={option.value}>{option.name || option.value}</option>;
|
|
3285
3306
|
}}</For6></select>;
|
|
3286
3307
|
}
|
|
3287
3308
|
var select_default = SelectComponent;
|
|
@@ -4144,7 +4165,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4144
4165
|
}
|
|
4145
4166
|
|
|
4146
4167
|
// src/constants/sdk-version.ts
|
|
4147
|
-
var SDK_VERSION = "1.0.
|
|
4168
|
+
var SDK_VERSION = "1.0.21";
|
|
4148
4169
|
|
|
4149
4170
|
// src/functions/register.ts
|
|
4150
4171
|
var registry = {};
|