tpmkms_4wp 8.9.1-beta.18 → 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.
Files changed (41) hide show
  1. package/common/animals.instance.json +78 -78
  2. package/common/articles.js +4 -4
  3. package/common/colors.instance.json +84 -112
  4. package/common/comparable.instance.json +18 -18
  5. package/common/comparable.js +1 -1
  6. package/common/countable.js +1 -1
  7. package/common/crew.instance.json +252 -156
  8. package/common/dialogues.js +5 -5
  9. package/common/dimension.instance.json +6 -6
  10. package/common/edible.instance.json +192 -248
  11. package/common/emotions.instance.json +6 -6
  12. package/common/fastfood.instance.json +574 -958
  13. package/common/fastfood.js +1 -1
  14. package/common/formulas.instance.json +6 -6
  15. package/common/gdefaults.js +1 -1
  16. package/common/helpers/concept.js +2 -2
  17. package/common/helpers/properties.js +1 -1
  18. package/common/kirk.instance.json +6 -6
  19. package/common/length.instance.json +90 -90
  20. package/common/math.instance.json +6 -6
  21. package/common/ordering.instance.json +12 -12
  22. package/common/ordinals.js +1 -0
  23. package/common/people.instance.json +48 -48
  24. package/common/pipboy.instance.json +112 -168
  25. package/common/pipboy.js +5 -5
  26. package/common/pokemon.instance.json +78 -78
  27. package/common/pos.js +6 -6
  28. package/common/pressure.instance.json +24 -24
  29. package/common/properties.instance.json +6 -6
  30. package/common/properties.js +3 -3
  31. package/common/reports.instance.json +13 -13
  32. package/common/reports.js +1 -1
  33. package/common/sizeable.js +1 -1
  34. package/common/spock.instance.json +6 -6
  35. package/common/temperature.instance.json +24 -24
  36. package/common/ui.instance.json +6 -6
  37. package/common/weight.instance.json +72 -72
  38. package/common/wp.instance.json +88 -144
  39. package/common/wp.js +15 -5
  40. package/common/wp.test.json +4906 -987
  41. 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
- in the second paragraph bold the first word
34
+ underline the first three words
32
35
 
33
36
  todo
34
37
 
35
- in the second paragraph bold the first letter of the words that start with t
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
- conditions.push({ ordinals: toArray(selector.ordinal).map((context) => context.value)})
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,7 +267,7 @@ 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
273
  for (let i = context.context_index + 1; i < contexts.length; ++i) {