theprogrammablemind_4wp 9.3.0-beta.38 → 9.3.0-beta.39

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
@@ -69,6 +69,6 @@
69
69
  "sort-json": "^2.0.0",
70
70
  "uuid": "^8.3.2"
71
71
  },
72
- "version": "9.3.0-beta.38",
72
+ "version": "9.3.0-beta.39",
73
73
  "license": "UNLICENSED"
74
74
  }
package/src/config.js CHANGED
@@ -3308,7 +3308,9 @@ class Config {
3308
3308
  // console.log('more', JSON.stringify(more, null, 2))
3309
3309
  // hierarchy must update in place and does not care about the list order
3310
3310
  if (key === 'hierarchy') {
3311
- this.config[key].push(...more[key].map(normalizeIsA))
3311
+ const moreEdges = more[key].map(normalizeIsA)
3312
+ this.config[key].push(...moreEdges)
3313
+ this.hierarchy.addEdges(moreEdges)
3312
3314
  } else {
3313
3315
  if (addFirst) {
3314
3316
  this.config[key] = more[key].concat(this.config[key])
@@ -257,18 +257,18 @@ const setupProcessB = ({ config, initializer, allowDelta = false, rebuildingTemp
257
257
  const setupContexts = (rawContexts) => {
258
258
  let first = true
259
259
  const contexts = []
260
- contexts.push({ marker: 'controlStart', controlRemove: true })
260
+ contexts.push({ marker: 'controlStart', controlRemove: true, isControl: true })
261
261
  let previous
262
262
  for (const context of rawContexts) {
263
263
  if (first) {
264
264
  first = false
265
265
  } else {
266
- contexts.push({ marker: 'controlBetween', controlRemove: true, previous })
266
+ contexts.push({ marker: 'controlBetween', controlRemove: true, isControl: true, previous })
267
267
  }
268
268
  contexts.push(context)
269
269
  previous = context
270
270
  }
271
- contexts.push({ marker: 'controlEnd', controlRemove: true, previous })
271
+ contexts.push({ marker: 'controlEnd', controlRemove: true, isControl: true, previous })
272
272
 
273
273
  let _index = 0
274
274
  const id = (context) => {
@@ -441,8 +441,8 @@ const loadInstance = async (config, instance) => {
441
441
  */
442
442
 
443
443
  // const { /* data, generators, semantics, */ hierarchy } = setupProcessB({ config })
444
- const hierarchy = config.hierarchy
445
444
  for (const i in (instance.resultss || [])) {
445
+ const hierarchy = config.hierarchy
446
446
  const results = instance.resultss[i]
447
447
  if (results.extraConfig) {
448
448
  // config.addInternal(results, useOldVersion = true, skipObjects = false, includeNamespaces = true, allowNameToBeNull = false)