tpmkms_4wp 8.9.1-beta.1 → 8.9.1-beta.2

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
@@ -9,6 +9,8 @@ const wp_tests = require('./wp.test.json')
9
9
  const instance = require('./wp.instance.json')
10
10
 
11
11
  /*
12
+ the bolded words that start with t
13
+
12
14
  start inserting text until I say banana
13
15
  ...
14
16
  or
@@ -17,12 +19,16 @@ const instance = require('./wp.instance.json')
17
19
  make the text of the 1st to 3rd paragraphs blue
18
20
 
19
21
 
22
+ make the words that start with a bold
23
+
20
24
  make every word bold and underlines and blue -> weirdly "bold underlined and blue" works
21
25
 
22
26
  make the font ...
23
27
  make the color blue
24
28
  make the color of the first paragraph blue
25
29
 
30
+ undeline the bolded text / the text that is bolded
31
+
26
32
  words that start with a
27
33
  make all the bold text uppercase
28
34
  underline all the bold text
@@ -38,6 +44,11 @@ const instance = require('./wp.instance.json')
38
44
  bold the first three words that start with t
39
45
  bold much and many
40
46
  make the words that start with t bold and underlined
47
+ make all the capital letters|punctuation bold
48
+
49
+ move this paragraph up 2
50
+ move the next paragraph up 1
51
+ move the last paragraph before this one
41
52
  */
42
53
 
43
54
  class API {
@@ -90,8 +101,8 @@ const changeState = ({api, isA, context, toArray, element, state}) => {
90
101
  let conditions = []
91
102
  if (isA(context.element, 'everything')) {
92
103
  scope = 'all'
93
- } else if (context.element.condition) {
94
- const condition = context.element.condition
104
+ } else if (context.element.conditions) {
105
+ const condition = context.element.conditions[0]
95
106
  if (condition.marker == 'wordComparisonWith_wp') {
96
107
  // with or not with that is the question
97
108
  const letters = condition.letters.letters.text
@@ -114,13 +125,16 @@ template = {
114
125
  'setidsuffix _wp',
115
126
  'words are countable and statefulElements',
116
127
  'characters are countable',
117
- 'paragraphs are countable',
128
+ 'paragraphs are countable and statefulElement',
129
+ 'text is a statefulElement',
118
130
  'bold, italic, code, capitalize, lowercase and underline are styles',
119
131
  'underlined means underline',
120
132
  'capitalized means capitalize',
121
133
  'uppercase means capitalize',
122
134
  'italicize means italic',
123
135
  'italicized means italic',
136
+ // TODO have a mode where I can stay this is a definition sentence then just say style modifies and it will do it right
137
+ 'capitalized, bolded, italicized and underlined are styleModifiers',
124
138
  // 'start end and contain are wordComparisonWiths',
125
139
  // 'styles are negatable',
126
140
  "resetIdSuffix",
@@ -130,8 +144,15 @@ template = {
130
144
  "((style_wp/*) [applyStyle_wp] ([statefulElement_wp|]))",
131
145
  "((word_wp/*) [wordComparisonWith_wp] ([comparisonWith_wp|with] (a/0)? (letters)))",
132
146
  "((word_wp/*) [wordComparison_wp] (a/0)? (letters))",
147
+ "((styleModifier_wp/*) [modifiedByStyle_wp] (statefulElement_wp/*))",
133
148
  ],
134
149
  bridges: [
150
+ {
151
+ id: 'modifiedByStyle_wp',
152
+ parents: ['adjective'],
153
+ convolution: true,
154
+ bridge: "{ ...after[0], style: before[0], target: after[0], generate: ['style', 'target'], conditions: append(after[0].conditions, [before[0]]) }",
155
+ },
135
156
  {
136
157
  id: 'wordComparisonWith_wp',
137
158
  parents: ['verb'],
package/package.json CHANGED
@@ -315,8 +315,8 @@
315
315
  "table": "^6.7.1",
316
316
  "base-64": "^1.0.0",
317
317
  "argparse": "^2.0.1",
318
- "theprogrammablemind_4wp": "8.9.1-beta.1"
318
+ "theprogrammablemind_4wp": "8.9.1-beta.2"
319
319
  },
320
- "version": "8.9.1-beta.1",
320
+ "version": "8.9.1-beta.2",
321
321
  "license": "UNLICENSED"
322
322
  }