tpmkms_4wp 8.9.1-beta.17 → 8.9.1-beta.19
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/animals.instance.json +91 -78
- package/common/articles.js +4 -4
- package/common/asking.test.json +41 -0
- package/common/colors.instance.json +98 -128
- package/common/comparable.instance.json +21 -18
- package/common/comparable.js +1 -1
- package/common/countable.js +1 -1
- package/common/crew.instance.json +182 -224
- package/common/dialogues.js +5 -5
- package/common/dimension.instance.json +7 -6
- package/common/edible.instance.json +224 -236
- package/common/emotions.instance.json +7 -66
- package/common/fastfood.instance.json +709 -1161
- package/common/fastfood.js +1 -1
- package/common/formulas.instance.json +7 -6
- package/common/formulas.test.json +461 -10
- package/common/gdefaults.js +1 -1
- package/common/helpers/concept.js +2 -2
- package/common/helpers/properties.js +1 -1
- package/common/kirk.instance.json +7 -6
- package/common/length.instance.json +105 -90
- package/common/math.instance.json +7 -6
- package/common/ordering.instance.json +14 -132
- package/common/ordinals.js +1 -0
- package/common/people.instance.json +56 -48
- package/common/pipboy.instance.json +129 -112
- package/common/pipboy.js +5 -5
- package/common/pokemon.instance.json +91 -78
- package/common/pos.js +6 -6
- package/common/pressure.instance.json +28 -24
- package/common/properties.instance.json +7 -50
- package/common/properties.js +3 -3
- package/common/reports.instance.json +15 -13
- package/common/reports.js +1 -1
- package/common/sizeable.js +1 -1
- package/common/spock.instance.json +7 -6
- package/common/temperature.instance.json +28 -220
- package/common/ui.instance.json +7 -6
- package/common/weight.instance.json +84 -140
- package/common/wp.instance.json +140 -169
- package/common/wp.js +16 -6
- package/common/wp.test.json +4906 -987
- package/package.json +2 -2
package/common/wp.js
CHANGED
@@ -25,19 +25,24 @@ const instance = require('./wp.instance.json')
|
|
25
25
|
underline the bolded words in the second paragraph
|
26
26
|
bold the words that start with t in the second paragraph
|
27
27
|
bold the first letter of the words that start with t in the second paragraph
|
28
|
+
in the second paragraph bold the first word
|
29
|
+
in the second paragraph bold the first letter of the words that start with t
|
30
|
+
underline the first bolded word
|
28
31
|
|
29
32
|
current
|
30
33
|
|
31
|
-
|
34
|
+
underline the first three words
|
32
35
|
|
33
36
|
todo
|
34
37
|
|
35
|
-
|
38
|
+
underline the last three words
|
39
|
+
underline the first three bolded words
|
36
40
|
in the second paragraph for the words that start with t bold the first letter
|
37
41
|
underline the bolded paragraphs
|
42
|
+
bold the first three words after the second bolded letter
|
43
|
+
underline the words that start with t in the paragraph with 3 bolded words
|
38
44
|
bold the paragraph that contains three bolded words
|
39
45
|
capitalize the first letter of the words that start with t
|
40
|
-
underline the first bolded word
|
41
46
|
underline the first bolded word that start with t
|
42
47
|
bold the first word of the second paragraph and third paragraph
|
43
48
|
the paragraph that contains the word boobies
|
@@ -148,7 +153,12 @@ const changeState = ({api, isA, context, toArray, element, state}) => {
|
|
148
153
|
let scope;
|
149
154
|
const condition = []
|
150
155
|
if (selector.ordinal) {
|
151
|
-
|
156
|
+
// TODO think this out better but its just POC so good enough for now
|
157
|
+
const condition = { ordinals: toArray(selector.ordinal).map((context) => context.value) }
|
158
|
+
if (selector.quantity) {
|
159
|
+
condition.count = selector.quantity.value
|
160
|
+
}
|
161
|
+
conditions.push(condition)
|
152
162
|
} else if (isA(selector, 'everything')) {
|
153
163
|
scope = 'all'
|
154
164
|
} else if (selector.quantity) {
|
@@ -257,10 +267,10 @@ template = {
|
|
257
267
|
optional: {
|
258
268
|
'-1': "{ ...operator, invisible: true }",
|
259
269
|
},
|
260
|
-
bridge: "{ ...next(before[0]), context: append(before[0].context, [after[0]]), generate: [before[0], operator, after[0]] }",
|
270
|
+
bridge: "{ ...next(before[0]), context: append(before[0].context, [after[0]]), generate: [before[0], operator, after[0]], modifiers: [] }",
|
261
271
|
semantic: (args) => {
|
262
272
|
const { context, contexts } = args
|
263
|
-
for (let i = context.
|
273
|
+
for (let i = context.context_index + 1; i < contexts.length; ++i) {
|
264
274
|
if (contexts[i].marker == 'applyStyle_wp') {
|
265
275
|
debugger
|
266
276
|
debugger
|