tpmkms_4wp 9.5.1-beta.30 → 9.5.1-beta.31

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/common/stm.js CHANGED
@@ -40,7 +40,16 @@ class API {
40
40
  return this._objects.mentioned.filter( (context) => this.isA(context.marker, type) )
41
41
  }
42
42
 
43
- mentioned({ context:concept, value=null, frameOfReference } = {}) {
43
+ mentioned(args) {
44
+ let concept, value, frameOfReference
45
+ if (!args.context) {
46
+ concept = args
47
+ } else {
48
+ concept = args.context
49
+ value = args.value
50
+ frameOfReference = args.frameOfReference
51
+ }
52
+
44
53
  if (!frameOfReference) {
45
54
  frameOfReference = this._objects
46
55
  }
@@ -271,7 +280,9 @@ knowledgeModule( {
271
280
  contents: stm_tests,
272
281
  checks: {
273
282
  context: [defaultContextCheck({ extra: ['pullFromContext', 'stm_id'] })],
274
- objects: [{ property: 'mentioned', filter: helpers.defaultContextCheckProperties }],
283
+ objects: [ { path: ['mentioned'] }],
284
+ // objects: [defaultContextCheck({ extra: ['mentioned'] })],
285
+ // objects: [{ property: 'mentioned', filter: helpers.defaultContextCheckProperties }],
275
286
  },
276
287
  },
277
288
  })