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 +1 -1
- package/src/config.js +3 -1
- package/src/configHelpers.js +4 -4
package/package.json
CHANGED
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
|
-
|
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])
|
package/src/configHelpers.js
CHANGED
@@ -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)
|