@lvce-editor/settings-view 1.7.0 → 1.8.0

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.
@@ -3278,11 +3278,17 @@ const getSettingsHeaderDom = () => {
3278
3278
  }, ...getSettingsInputDom()];
3279
3279
  };
3280
3280
 
3281
+ const getInputId = id => {
3282
+ return id.replaceAll('.', '\\.');
3283
+ };
3284
+
3281
3285
  const getItemCheckBoxVirtualDom = item => {
3282
3286
  const {
3283
3287
  heading,
3284
- description
3288
+ description,
3289
+ id
3285
3290
  } = item;
3291
+ const domId = getInputId(id);
3286
3292
  return [{
3287
3293
  type: VirtualDomElements.Div,
3288
3294
  className: 'SettingsItem',
@@ -3298,10 +3304,12 @@ const getItemCheckBoxVirtualDom = item => {
3298
3304
  type: VirtualDomElements.Input,
3299
3305
  className: 'CheckBox',
3300
3306
  inputType: 'checkbox',
3301
- childCount: 0
3307
+ childCount: 0,
3308
+ id: domId
3302
3309
  }, {
3303
3310
  type: VirtualDomElements.Label,
3304
- childCount: 1
3311
+ childCount: 1,
3312
+ htmlFor: domId
3305
3313
  }, text(description)];
3306
3314
  };
3307
3315
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/settings-view",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",