@digipair/skill-web-editor 0.4.17 → 0.4.19

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
@@ -2972,7 +2972,7 @@ function itemListFromPinsSettings(pinsSettings, pinsDefinition) {
2972
2972
  function itemListFromComponentSettings(componentSettings, componentDefinition) {
2973
2973
  const inputArray = [];
2974
2974
  for (const [propertyKey, propertyValue] of Object.entries(componentDefinition.properties)){
2975
- if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey)) {
2975
+ if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey) || propertyValue.type === 'array' && (!componentSettings[propertyKey] || componentSettings[propertyKey].length === 0)) {
2976
2976
  continue;
2977
2977
  }
2978
2978
  inputArray.push({
@@ -3474,7 +3474,7 @@ class GenericSceneElement extends s {
3474
3474
  Blockly.Events.enable();
3475
3475
  }
3476
3476
  async getReasoning(digipair, reasoning) {
3477
- const response = await fetch(`${window.location.origin}/admin/reasoning-read`, {
3477
+ const response = await fetch(`${window.location.origin}/admin/service-reasoning-read`, {
3478
3478
  headers: {
3479
3479
  'content-type': 'application/json'
3480
3480
  },
package/index.esm2.js CHANGED
@@ -2970,7 +2970,7 @@ function itemListFromPinsSettings(pinsSettings, pinsDefinition) {
2970
2970
  function itemListFromComponentSettings(componentSettings, componentDefinition) {
2971
2971
  const inputArray = [];
2972
2972
  for (const [propertyKey, propertyValue] of Object.entries(componentDefinition.properties)){
2973
- if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey)) {
2973
+ if (!Object.prototype.hasOwnProperty.call(componentSettings, propertyKey) || propertyValue.type === 'array' && (!componentSettings[propertyKey] || componentSettings[propertyKey].length === 0)) {
2974
2974
  continue;
2975
2975
  }
2976
2976
  inputArray.push({
@@ -3472,7 +3472,7 @@ class GenericSceneElement extends s {
3472
3472
  Blockly.Events.enable();
3473
3473
  }
3474
3474
  async getReasoning(digipair, reasoning) {
3475
- const response = await fetch(`${window.location.origin}/admin/reasoning-read`, {
3475
+ const response = await fetch(`${window.location.origin}/admin/service-reasoning-read`, {
3476
3476
  headers: {
3477
3477
  'content-type': 'application/json'
3478
3478
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.4.17",
3
+ "version": "0.4.19",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"