@digipair/skill-web-editor 0.72.4 → 0.72.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.72.4",
3
+ "version": "0.72.6",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "web"
@@ -268,7 +268,7 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
268
268
  return ((_item_schema = item.schema) == null ? void 0 : _item_schema.type) === 'array' && (((_item_schema_items = item.schema.items) == null ? void 0 : _item_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_item_schema_items1 = item.schema.items) == null ? void 0 : (_item_schema_items_$ref = _item_schema_items1.$ref) == null ? void 0 : _item_schema_items_$ref.includes('#/components/schemas/')));
269
269
  }).map((item)=>index._extends({}, item, {
270
270
  name: item.name + '__EVALUATE',
271
- summary: item.summary + ' (evaluate)',
271
+ summary: (item.summary || item.name) + ' (evaluate)',
272
272
  required: false,
273
273
  schema: {
274
274
  type: 'string'
@@ -286,13 +286,17 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
286
286
  return propertyValue.type === 'array' && (((_propertyValue_items = propertyValue.items) == null ? void 0 : _propertyValue_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_propertyValue_items1 = propertyValue.items) == null ? void 0 : (_propertyValue_items_$ref = _propertyValue_items1.$ref) == null ? void 0 : _propertyValue_items_$ref.includes('#/components/schemas/')));
287
287
  }).reduce((acc, [propertyKey, property])=>index._extends({}, acc, {
288
288
  [propertyKey + '__EVALUATE']: index._extends({}, property, {
289
- required: false
289
+ summary: (property.summary || propertyKey) + ' (evaluate)',
290
+ required: false,
291
+ schema: {
292
+ type: 'string'
293
+ }
290
294
  })
291
295
  }), {}))
292
296
  })
293
297
  }), {}))
294
298
  }),
295
- 'x-scene-blocks': index._extends({}, Object.entries(schema.paths).reduce((acc, [key, path])=>index._extends({}, acc, {
299
+ 'x-scene-blocks': index._extends({}, Object.entries(schema['x-scene-blocks'] || {}).reduce((acc, [key, path])=>index._extends({}, acc, {
296
300
  [key]: index._extends({}, path, {
297
301
  metadata: !path.metadata ? [] : [
298
302
  ...path.metadata,
@@ -301,7 +305,7 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
301
305
  return ((_item_schema = item.schema) == null ? void 0 : _item_schema.type) === 'array' && (((_item_schema_items = item.schema.items) == null ? void 0 : _item_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_item_schema_items1 = item.schema.items) == null ? void 0 : (_item_schema_items_$ref = _item_schema_items1.$ref) == null ? void 0 : _item_schema_items_$ref.includes('#/components/schemas/')));
302
306
  }).map((item)=>index._extends({}, item, {
303
307
  name: item.name + '__EVALUATE',
304
- summary: item.summary + ' (evaluate)',
308
+ summary: (item.summary || item.name) + ' (evaluate)',
305
309
  required: false,
306
310
  schema: {
307
311
  type: 'string'
@@ -315,7 +319,7 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
315
319
  return ((_item_schema = item.schema) == null ? void 0 : _item_schema.type) === 'array' && (((_item_schema_items = item.schema.items) == null ? void 0 : _item_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_item_schema_items1 = item.schema.items) == null ? void 0 : (_item_schema_items_$ref = _item_schema_items1.$ref) == null ? void 0 : _item_schema_items_$ref.includes('#/components/schemas/')));
316
320
  }).map((item)=>index._extends({}, item, {
317
321
  name: item.name + '__EVALUATE',
318
- summary: item.summary + ' (evaluate)',
322
+ summary: (item.summary || item.name) + ' (evaluate)',
319
323
  required: false,
320
324
  schema: {
321
325
  type: 'string'
@@ -266,7 +266,7 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
266
266
  return ((_item_schema = item.schema) == null ? void 0 : _item_schema.type) === 'array' && (((_item_schema_items = item.schema.items) == null ? void 0 : _item_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_item_schema_items1 = item.schema.items) == null ? void 0 : (_item_schema_items_$ref = _item_schema_items1.$ref) == null ? void 0 : _item_schema_items_$ref.includes('#/components/schemas/')));
267
267
  }).map((item)=>_extends({}, item, {
268
268
  name: item.name + '__EVALUATE',
269
- summary: item.summary + ' (evaluate)',
269
+ summary: (item.summary || item.name) + ' (evaluate)',
270
270
  required: false,
271
271
  schema: {
272
272
  type: 'string'
@@ -284,13 +284,17 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
284
284
  return propertyValue.type === 'array' && (((_propertyValue_items = propertyValue.items) == null ? void 0 : _propertyValue_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_propertyValue_items1 = propertyValue.items) == null ? void 0 : (_propertyValue_items_$ref = _propertyValue_items1.$ref) == null ? void 0 : _propertyValue_items_$ref.includes('#/components/schemas/')));
285
285
  }).reduce((acc, [propertyKey, property])=>_extends({}, acc, {
286
286
  [propertyKey + '__EVALUATE']: _extends({}, property, {
287
- required: false
287
+ summary: (property.summary || propertyKey) + ' (evaluate)',
288
+ required: false,
289
+ schema: {
290
+ type: 'string'
291
+ }
288
292
  })
289
293
  }), {}))
290
294
  })
291
295
  }), {}))
292
296
  }),
293
- 'x-scene-blocks': _extends({}, Object.entries(schema.paths).reduce((acc, [key, path])=>_extends({}, acc, {
297
+ 'x-scene-blocks': _extends({}, Object.entries(schema['x-scene-blocks'] || {}).reduce((acc, [key, path])=>_extends({}, acc, {
294
298
  [key]: _extends({}, path, {
295
299
  metadata: !path.metadata ? [] : [
296
300
  ...path.metadata,
@@ -299,7 +303,7 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
299
303
  return ((_item_schema = item.schema) == null ? void 0 : _item_schema.type) === 'array' && (((_item_schema_items = item.schema.items) == null ? void 0 : _item_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_item_schema_items1 = item.schema.items) == null ? void 0 : (_item_schema_items_$ref = _item_schema_items1.$ref) == null ? void 0 : _item_schema_items_$ref.includes('#/components/schemas/')));
300
304
  }).map((item)=>_extends({}, item, {
301
305
  name: item.name + '__EVALUATE',
302
- summary: item.summary + ' (evaluate)',
306
+ summary: (item.summary || item.name) + ' (evaluate)',
303
307
  required: false,
304
308
  schema: {
305
309
  type: 'string'
@@ -313,7 +317,7 @@ function convertPinsLibrariesToBlocklyLibraries(pinsLibraries) {
313
317
  return ((_item_schema = item.schema) == null ? void 0 : _item_schema.type) === 'array' && (((_item_schema_items = item.schema.items) == null ? void 0 : _item_schema_items.$ref) === 'https://schemas.digipair.ai/pinsSettings' || ((_item_schema_items1 = item.schema.items) == null ? void 0 : (_item_schema_items_$ref = _item_schema_items1.$ref) == null ? void 0 : _item_schema_items_$ref.includes('#/components/schemas/')));
314
318
  }).map((item)=>_extends({}, item, {
315
319
  name: item.name + '__EVALUATE',
316
- summary: item.summary + ' (evaluate)',
320
+ summary: (item.summary || item.name) + ' (evaluate)',
317
321
  required: false,
318
322
  schema: {
319
323
  type: 'string'