tpmkms_4wp 8.9.1-beta.6 → 8.9.1-beta.8

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/wp.js CHANGED
@@ -16,9 +16,12 @@ const instance = require('./wp.instance.json')
16
16
 
17
17
  after
18
18
  bold the first word of every paragraph
19
+ bold the first word of the second and third paragraph
20
+ bold the first word of the second paragraph and third paragraph
19
21
  bold the first letter of every word
20
22
  bold the first letter of every word that starts with t
21
23
  bold the first letter of the words that start with t in the third paragraph
24
+ bold the paragraph that contains words that start with t
22
25
 
23
26
  after
24
27
  make the words that start with t blue
@@ -119,10 +122,10 @@ let config = {
119
122
 
120
123
  const changeState = ({api, isA, context, toArray, element, state}) => {
121
124
  let scope
122
- let conditions = []
123
125
 
124
126
  const getElement = (selector, update) => {
125
127
  const unit = root(selector.marker)
128
+ let conditions = []
126
129
  let scope;
127
130
  const condition = []
128
131
  if (selector.ordinal) {
@@ -154,7 +157,6 @@ const changeState = ({api, isA, context, toArray, element, state}) => {
154
157
  }
155
158
 
156
159
  if (selector.context) {
157
- debugger
158
160
  for (const context of toArray(selector.context)) {
159
161
  getElement(context, update)
160
162
  }
@@ -300,6 +302,7 @@ template = {
300
302
  },
301
303
  ],
302
304
  priorities: [
305
+ { "context": [['ordinal',1], ['list', 0], ['ordinal', 1], ['word_wp', 1]], ordered: true, choose: [1] },
303
306
  { "context": [['changeState_wp',0], ['every', 0], ['word_wp', 1], ['list', 1]], ordered: true, choose: [1] },
304
307
  { "context": [['changeState_wp',0], ['statefulElement_wp', 0], ['list', 0]], ordered: true, choose: [0] },
305
308
  { "context": [['comparisonWith_wp',0], ['unknown', 0], ['list', 1]], ordered: true, choose: [0] },