@digipair/skill-web-editor 0.4.15 → 0.4.17

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/index.cjs2.js CHANGED
@@ -3619,7 +3619,7 @@ class GenericSceneElement extends s {
3619
3619
  return x`
3620
3620
  <style>
3621
3621
  .blocklyToolboxDiv {
3622
- background-color: #09121d;
3622
+ background-color: rgb(66, 133, 244);
3623
3623
  color: white;
3624
3624
  width: 370px;
3625
3625
  }
@@ -3677,7 +3677,7 @@ class GenericSceneElement extends s {
3677
3677
  transition: box-shadow 0.3s ease-in-out;
3678
3678
  text-align: center;
3679
3679
  font-weight: 500;
3680
- background-color:${this.canSave ? '#12b5cd' : '#5F5F5F'} ;
3680
+ background-color:${this.canSave ? 'rgb(66, 133, 244)' : '#5F5F5F'} ;
3681
3681
  cursor: pointer;"
3682
3682
  class="material-icons"
3683
3683
  aria-hidden="true"
package/index.esm2.js CHANGED
@@ -3617,7 +3617,7 @@ class GenericSceneElement extends s {
3617
3617
  return x`
3618
3618
  <style>
3619
3619
  .blocklyToolboxDiv {
3620
- background-color: #09121d;
3620
+ background-color: rgb(66, 133, 244);
3621
3621
  color: white;
3622
3622
  width: 370px;
3623
3623
  }
@@ -3675,7 +3675,7 @@ class GenericSceneElement extends s {
3675
3675
  transition: box-shadow 0.3s ease-in-out;
3676
3676
  text-align: center;
3677
3677
  font-weight: 500;
3678
- background-color:${this.canSave ? '#12b5cd' : '#5F5F5F'} ;
3678
+ background-color:${this.canSave ? 'rgb(66, 133, 244)' : '#5F5F5F'} ;
3679
3679
  cursor: pointer;"
3680
3680
  class="material-icons"
3681
3681
  aria-hidden="true"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
@@ -290,7 +290,8 @@ function generateBlocklyBlockFromLibraries(pinsLibraries, blocksLegacy) {
290
290
  if (Object.hasOwnProperty.call(pinsLibrary['x-scene-blocks'], endpoint)) {
291
291
  const endpointSceneblock = pinsLibrary['x-scene-blocks'][endpoint];
292
292
  const sceneBlockId = pinsLibrary.info.title + '/__SCENEBLOCK__' + endpoint;
293
- blocksLibrary.push(getSceneBlockDefinition(pinsLibrary, endpointSceneblock, sceneBlockId));
293
+ const block = getSceneBlockDefinition(pinsLibrary, endpointSceneblock, sceneBlockId);
294
+ blocksLibrary.push(block);
294
295
  }
295
296
  }
296
297
  }
@@ -469,7 +470,10 @@ function getSceneBlockDefinition(library, methodData, sceneBlockId) {
469
470
  parameters.push(parameter);
470
471
  }
471
472
  const requiredParamInputs = parameters.filter((param)=>param.required === true);
472
- const requiredFields = requiredParamInputs.map((param)=>param.name);
473
+ const requiredFields = [
474
+ ...requiredParamInputs.map((param)=>param.name),
475
+ ...metadata.map((param)=>'metadata--' + param.name)
476
+ ];
473
477
  requiredFields.push('');
474
478
  // metadata
475
479
  for(let i = 0; i < (metadata == null ? void 0 : metadata.length); i++){
@@ -288,7 +288,8 @@ function generateBlocklyBlockFromLibraries(pinsLibraries, blocksLegacy) {
288
288
  if (Object.hasOwnProperty.call(pinsLibrary['x-scene-blocks'], endpoint)) {
289
289
  const endpointSceneblock = pinsLibrary['x-scene-blocks'][endpoint];
290
290
  const sceneBlockId = pinsLibrary.info.title + '/__SCENEBLOCK__' + endpoint;
291
- blocksLibrary.push(getSceneBlockDefinition(pinsLibrary, endpointSceneblock, sceneBlockId));
291
+ const block = getSceneBlockDefinition(pinsLibrary, endpointSceneblock, sceneBlockId);
292
+ blocksLibrary.push(block);
292
293
  }
293
294
  }
294
295
  }
@@ -467,7 +468,10 @@ function getSceneBlockDefinition(library, methodData, sceneBlockId) {
467
468
  parameters.push(parameter);
468
469
  }
469
470
  const requiredParamInputs = parameters.filter((param)=>param.required === true);
470
- const requiredFields = requiredParamInputs.map((param)=>param.name);
471
+ const requiredFields = [
472
+ ...requiredParamInputs.map((param)=>param.name),
473
+ ...metadata.map((param)=>'metadata--' + param.name)
474
+ ];
471
475
  requiredFields.push('');
472
476
  // metadata
473
477
  for(let i = 0; i < (metadata == null ? void 0 : metadata.length); i++){