tpmkms_4wp 8.9.1-beta.20 → 8.9.1-beta.22

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.
@@ -16,6 +16,7 @@
16
16
  "resetIdSuffix",
17
17
  {
18
18
  "operators": [
19
+ "([change_wp|change] (context.text !== 'to')* (context.text == 'to'))",
19
20
  "([changeState_wp|make] ([statefulElement_wp]) ([stateValue_wp|]))",
20
21
  "((style_wp/*) [applyStyle_wp] ([statefulElement_wp|]))",
21
22
  "((word_wp/*) [wordComparisonWithVerb_wp] ([comparisonWith_wp|with] (a/0)? (letters)))",
@@ -27,6 +28,42 @@
27
28
  "associations": {
28
29
  "negative": [],
29
30
  "positive": [
31
+ [
32
+ [
33
+ "style_wp",
34
+ 0
35
+ ],
36
+ [
37
+ "word_wp",
38
+ 0
39
+ ],
40
+ [
41
+ "statefulElementInContext_wp",
42
+ 0
43
+ ],
44
+ [
45
+ "paragraph_wp",
46
+ 0
47
+ ]
48
+ ],
49
+ [
50
+ [
51
+ "style_wp",
52
+ 0
53
+ ],
54
+ [
55
+ "letter_wp",
56
+ 0
57
+ ],
58
+ [
59
+ "statefulElementInContext_wp",
60
+ 0
61
+ ],
62
+ [
63
+ "word_wp",
64
+ 0
65
+ ]
66
+ ],
30
67
  [
31
68
  [
32
69
  "paragraph_wp",
@@ -84,6 +121,10 @@
84
121
  ]
85
122
  },
86
123
  "bridges": [
124
+ {
125
+ "id": "change_wp",
126
+ "bridge": "{ ...next(operator), from: after[0][0], generate: [operator, 'from', after[1]] }"
127
+ },
87
128
  {
88
129
  "id": "paragraphComparisonVerb_wp",
89
130
  "parents": [
@@ -118,7 +159,7 @@
118
159
  "-1": "{ ...operator, invisible: true }"
119
160
  },
120
161
  "bridge": "{ ...next(before[0]), context: append(before[0].context, [after[0]]), generate: [before[0], operator, after[0]], modifiers: [] }",
121
- "semantic": "(args) => {\n const { context, contexts } = args\n for (let i = context.context_index + 1; i < contexts.length; ++i) {\n if (contexts[i].marker == 'applyStyle_wp') {\n debugger\n debugger\n const element = contexts[i].element\n if (!element.context) {\n element.context = []\n }\n element.context = element.context.concat(context.context)\n }\n }\n console.log(JSON.stringify(Object.keys(args)))\n }"
162
+ "semantic": "(args) => {\n const { context, contexts } = args\n for (let i = context.context_index + 1; i < contexts.length; ++i) {\n if (contexts[i].marker == 'applyStyle_wp') {\n const element = contexts[i].element\n if (!element.context) {\n element.context = []\n }\n element.context = element.context.concat(context.context)\n }\n }\n console.log(JSON.stringify(Object.keys(args)))\n }"
122
163
  },
123
164
  {
124
165
  "id": "applyStyle_wp",
@@ -247,6 +288,30 @@
247
288
  }
248
289
  ],
249
290
  "priorities": [
291
+ {
292
+ "context": [
293
+ [
294
+ "ordinal",
295
+ 1
296
+ ],
297
+ [
298
+ "list",
299
+ 0
300
+ ],
301
+ [
302
+ "ordinal",
303
+ 1
304
+ ],
305
+ [
306
+ "statefulElement_wp",
307
+ 0
308
+ ]
309
+ ],
310
+ "ordered": true,
311
+ "choose": [
312
+ 1
313
+ ]
314
+ },
250
315
  {
251
316
  "context": [
252
317
  [
@@ -5359,6 +5424,36 @@
5359
5424
  1
5360
5425
  ]
5361
5426
  ],
5427
+ [
5428
+ [
5429
+ "countable",
5430
+ 0
5431
+ ],
5432
+ [
5433
+ "distributable",
5434
+ 0
5435
+ ],
5436
+ [
5437
+ "is",
5438
+ 0
5439
+ ],
5440
+ [
5441
+ "list",
5442
+ 0
5443
+ ],
5444
+ [
5445
+ "orderable",
5446
+ 0
5447
+ ],
5448
+ [
5449
+ "unknown",
5450
+ 0
5451
+ ],
5452
+ [
5453
+ "unknown",
5454
+ 1
5455
+ ]
5456
+ ],
5362
5457
  [
5363
5458
  [
5364
5459
  "countable",
@@ -19640,6 +19735,28 @@
19640
19735
  1
19641
19736
  ]
19642
19737
  ],
19738
+ [
19739
+ [
19740
+ "comma",
19741
+ 0
19742
+ ],
19743
+ [
19744
+ "is",
19745
+ 0
19746
+ ],
19747
+ [
19748
+ "list",
19749
+ 0
19750
+ ],
19751
+ [
19752
+ "unknown",
19753
+ 0
19754
+ ],
19755
+ [
19756
+ "unknown",
19757
+ 1
19758
+ ]
19759
+ ],
19643
19760
  [
19644
19761
  [
19645
19762
  "comma",
@@ -38064,6 +38181,40 @@
38064
38181
  1
38065
38182
  ]
38066
38183
  ],
38184
+ [
38185
+ [
38186
+ "capitalized_wp",
38187
+ 0
38188
+ ],
38189
+ [
38190
+ "comma",
38191
+ 0
38192
+ ],
38193
+ [
38194
+ "is",
38195
+ 0
38196
+ ],
38197
+ [
38198
+ "italicized_wp",
38199
+ 0
38200
+ ],
38201
+ [
38202
+ "list",
38203
+ 0
38204
+ ],
38205
+ [
38206
+ "underlined_wp",
38207
+ 0
38208
+ ],
38209
+ [
38210
+ "unknown",
38211
+ 0
38212
+ ],
38213
+ [
38214
+ "unknown",
38215
+ 1
38216
+ ]
38217
+ ],
38067
38218
  [
38068
38219
  [
38069
38220
  "capitalized_wp",
@@ -41264,6 +41415,7 @@
41264
41415
  {
41265
41416
  "extraConfig": true,
41266
41417
  "operators": [
41418
+ "([change_wp|change] (context.text !== 'to')* (context.text == 'to'))",
41267
41419
  "([changeState_wp|make] ([statefulElement_wp]) ([stateValue_wp|]))",
41268
41420
  "((style_wp/*) [applyStyle_wp] ([statefulElement_wp|]))",
41269
41421
  "((word_wp/*) [wordComparisonWithVerb_wp] ([comparisonWith_wp|with] (a/0)? (letters)))",
@@ -41275,6 +41427,42 @@
41275
41427
  "associations": {
41276
41428
  "negative": [],
41277
41429
  "positive": [
41430
+ [
41431
+ [
41432
+ "style_wp",
41433
+ 0
41434
+ ],
41435
+ [
41436
+ "word_wp",
41437
+ 0
41438
+ ],
41439
+ [
41440
+ "statefulElementInContext_wp",
41441
+ 0
41442
+ ],
41443
+ [
41444
+ "paragraph_wp",
41445
+ 0
41446
+ ]
41447
+ ],
41448
+ [
41449
+ [
41450
+ "style_wp",
41451
+ 0
41452
+ ],
41453
+ [
41454
+ "letter_wp",
41455
+ 0
41456
+ ],
41457
+ [
41458
+ "statefulElementInContext_wp",
41459
+ 0
41460
+ ],
41461
+ [
41462
+ "word_wp",
41463
+ 0
41464
+ ]
41465
+ ],
41278
41466
  [
41279
41467
  [
41280
41468
  "paragraph_wp",
@@ -41332,6 +41520,10 @@
41332
41520
  ]
41333
41521
  },
41334
41522
  "bridges": [
41523
+ {
41524
+ "id": "change_wp",
41525
+ "bridge": "{ ...next(operator), from: after[0][0], generate: [operator, 'from', after[1]] }"
41526
+ },
41335
41527
  {
41336
41528
  "id": "paragraphComparisonVerb_wp",
41337
41529
  "parents": [
@@ -41483,13 +41675,37 @@
41483
41675
  ],
41484
41676
  "semantics": [
41485
41677
  {
41486
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:352"
41678
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:370"
41487
41679
  },
41488
41680
  {
41489
- "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:361"
41681
+ "where": "/home/dev/code/theprogrammablemind/kms/common/wp.js:379"
41490
41682
  }
41491
41683
  ],
41492
41684
  "priorities": [
41685
+ {
41686
+ "context": [
41687
+ [
41688
+ "ordinal",
41689
+ 1
41690
+ ],
41691
+ [
41692
+ "list",
41693
+ 0
41694
+ ],
41695
+ [
41696
+ "ordinal",
41697
+ 1
41698
+ ],
41699
+ [
41700
+ "statefulElement_wp",
41701
+ 0
41702
+ ]
41703
+ ],
41704
+ "ordered": true,
41705
+ "choose": [
41706
+ 1
41707
+ ]
41708
+ },
41493
41709
  {
41494
41710
  "context": [
41495
41711
  [
@@ -41873,6 +42089,40 @@
41873
42089
  1
41874
42090
  ]
41875
42091
  ],
42092
+ [
42093
+ [
42094
+ "capitalized_wp",
42095
+ 0
42096
+ ],
42097
+ [
42098
+ "comma",
42099
+ 0
42100
+ ],
42101
+ [
42102
+ "is",
42103
+ 0
42104
+ ],
42105
+ [
42106
+ "italicized_wp",
42107
+ 0
42108
+ ],
42109
+ [
42110
+ "list",
42111
+ 0
42112
+ ],
42113
+ [
42114
+ "underlined_wp",
42115
+ 0
42116
+ ],
42117
+ [
42118
+ "unknown",
42119
+ 0
42120
+ ],
42121
+ [
42122
+ "unknown",
42123
+ 1
42124
+ ]
42125
+ ],
41876
42126
  [
41877
42127
  [
41878
42128
  "capitalized_wp",
@@ -41997,6 +42247,28 @@
41997
42247
  1
41998
42248
  ]
41999
42249
  ],
42250
+ [
42251
+ [
42252
+ "comma",
42253
+ 0
42254
+ ],
42255
+ [
42256
+ "is",
42257
+ 0
42258
+ ],
42259
+ [
42260
+ "list",
42261
+ 0
42262
+ ],
42263
+ [
42264
+ "unknown",
42265
+ 0
42266
+ ],
42267
+ [
42268
+ "unknown",
42269
+ 1
42270
+ ]
42271
+ ],
42000
42272
  [
42001
42273
  [
42002
42274
  "comma",
@@ -42217,6 +42489,36 @@
42217
42489
  1
42218
42490
  ]
42219
42491
  ],
42492
+ [
42493
+ [
42494
+ "countable",
42495
+ 0
42496
+ ],
42497
+ [
42498
+ "distributable",
42499
+ 0
42500
+ ],
42501
+ [
42502
+ "is",
42503
+ 0
42504
+ ],
42505
+ [
42506
+ "list",
42507
+ 0
42508
+ ],
42509
+ [
42510
+ "orderable",
42511
+ 0
42512
+ ],
42513
+ [
42514
+ "unknown",
42515
+ 0
42516
+ ],
42517
+ [
42518
+ "unknown",
42519
+ 1
42520
+ ]
42521
+ ],
42220
42522
  [
42221
42523
  [
42222
42524
  "countable",
package/common/wp.js CHANGED
@@ -29,22 +29,24 @@ const instance = require('./wp.instance.json')
29
29
  in the second paragraph bold the first letter of the words that start with t
30
30
  underline the first bolded word
31
31
  underline the first three words
32
+ in the first and second paragraph bold the second word
33
+ underline the first three bolded words
34
+ capitalize the first letter of the words that start with t
32
35
 
33
36
  current
34
-
35
- in the first and second paragraph bold the first word
37
+
38
+ change is editable to is really editable
36
39
 
37
40
  todo
38
41
 
42
+ the first to fifth word
39
43
  underline the last three words
40
- underline the first three bolded words
41
44
  for paragraph 1 and 2 bold the first word
42
45
  in the second paragraph for the words that start with t bold the first letter
43
46
  underline the bolded paragraphs
44
47
  bold the first three words after the second bolded letter
45
48
  underline the words that start with t in the paragraph with 3 bolded words
46
- bold the paragraph that contains three bolded words
47
- capitalize the first letter of the words that start with t
49
+ underline the paragraph that contains three bolded words
48
50
  underline the first bolded word that start with t
49
51
  bold the first word of the second paragraph and third paragraph
50
52
  the paragraph that contains the word boobies
@@ -229,6 +231,7 @@ template = {
229
231
  "resetIdSuffix",
230
232
  {
231
233
  operators: [
234
+ "([change_wp|change] (context.text !== 'to')* (context.text == 'to'))",
232
235
  "([changeState_wp|make] ([statefulElement_wp]) ([stateValue_wp|]))",
233
236
  "((style_wp/*) [applyStyle_wp] ([statefulElement_wp|]))",
234
237
  "((word_wp/*) [wordComparisonWithVerb_wp] ([comparisonWith_wp|with] (a/0)? (letters)))",
@@ -245,6 +248,10 @@ template = {
245
248
  ],
246
249
  positive: [
247
250
  // TODO remove these after crucible work done and fix the associator rules
251
+ // [['style_wp', 0], ['statefulElement_wp', 0], ['statefulElementInContext_wp', 0], ['every', 0], ['statefulElement_wp', 0]],
252
+ [['style_wp', 0], ['word_wp', 0], ['statefulElementInContext_wp', 0], ['paragraph_wp', 0]],
253
+ [['style_wp', 0], ['letter_wp', 0], ['statefulElementInContext_wp', 0], ['word_wp', 0]],
254
+ // [['statefulElement_wp', 1], ['statefulElementInContext_wp', 0], ['every', 0], ['statefulElement_wp', 1]],
248
255
  [['paragraph_wp', 0], ['thatVerb', 0], ['paragraphComparisonVerb_wp', 0], ['word_wp', 0]],
249
256
  [['paragraph_wp', 0], ['thatVerb', 0], ['paragraphComparisonVerb_wp', 0], ['styleModifier_wp', 0], ['word_wp', 0]],
250
257
  [['word_wp', 0], ['thatVerb', 0], ['wordComparison_wp', 0]],
@@ -252,6 +259,10 @@ template = {
252
259
  },
253
260
 
254
261
  bridges: [
262
+ {
263
+ id: 'change_wp',
264
+ bridge: "{ ...next(operator), from: after[0][0], generate: [operator, 'from', after[1]] }",
265
+ },
255
266
  {
256
267
  id: 'paragraphComparisonVerb_wp',
257
268
  parents: ['verb'],