@atlaskit/editor-plugin-autocomplete 6.0.0 → 7.0.0

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 (60) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/analytics/ufo.js +3 -2
  3. package/dist/cjs/pm-plugins/artifacts-manifest.js +210 -0
  4. package/dist/cjs/pm-plugins/autocomplete-plugin.js +10 -2
  5. package/dist/cjs/pm-plugins/local-slow-lane-client.js +68 -153
  6. package/dist/cjs/pm-plugins/scoring-pipeline.js +130 -28
  7. package/dist/cjs/pm-plugins/text-predictor.js +45 -106
  8. package/dist/es2019/analytics/ufo.js +4 -2
  9. package/dist/es2019/pm-plugins/artifacts-manifest.js +126 -0
  10. package/dist/es2019/pm-plugins/autocomplete-plugin.js +10 -2
  11. package/dist/es2019/pm-plugins/local-slow-lane-client.js +8 -78
  12. package/dist/es2019/pm-plugins/scoring-pipeline.js +97 -21
  13. package/dist/es2019/pm-plugins/text-predictor.js +17 -59
  14. package/dist/esm/analytics/ufo.js +3 -2
  15. package/dist/esm/pm-plugins/artifacts-manifest.js +204 -0
  16. package/dist/esm/pm-plugins/autocomplete-plugin.js +10 -2
  17. package/dist/esm/pm-plugins/local-slow-lane-client.js +67 -148
  18. package/dist/esm/pm-plugins/scoring-pipeline.js +128 -26
  19. package/dist/esm/pm-plugins/text-predictor.js +45 -98
  20. package/dist/types/analytics/ufo.d.ts +1 -0
  21. package/dist/types/pm-plugins/artifacts-manifest.d.ts +55 -0
  22. package/dist/types/pm-plugins/autocomplete-plugin.d.ts +5 -11
  23. package/dist/types/pm-plugins/scoring-pipeline.d.ts +14 -0
  24. package/dist/types/pm-plugins/text-predictor.d.ts +0 -1
  25. package/package.json +2 -5
  26. package/src/analytics/ufo.ts +5 -0
  27. package/src/pm-plugins/artifacts-manifest.ts +151 -0
  28. package/src/pm-plugins/autocomplete-plugin.ts +14 -12
  29. package/src/pm-plugins/local-slow-lane-client.ts +10 -92
  30. package/src/pm-plugins/scoring-pipeline.ts +115 -23
  31. package/src/pm-plugins/text-predictor.ts +26 -76
  32. package/dist/cjs/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  33. package/dist/cjs/pm-plugins/data/first_token_to_words.json +0 -1
  34. package/dist/cjs/pm-plugins/data/ghost_pos_tags.json +0 -43
  35. package/dist/cjs/pm-plugins/data/grammar_transitions_10k.json +0 -46
  36. package/dist/cjs/pm-plugins/data/l3_vocabulary.json +0 -20002
  37. package/dist/cjs/pm-plugins/data/vocabulary_10k.json +0 -38794
  38. package/dist/cjs/pm-plugins/data/word_index_10k.json +0 -7762
  39. package/dist/es2019/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  40. package/dist/es2019/pm-plugins/data/first_token_to_words.json +0 -1
  41. package/dist/es2019/pm-plugins/data/ghost_pos_tags.json +0 -43
  42. package/dist/es2019/pm-plugins/data/grammar_transitions_10k.json +0 -46
  43. package/dist/es2019/pm-plugins/data/l3_vocabulary.json +0 -20002
  44. package/dist/es2019/pm-plugins/data/vocabulary_10k.json +0 -38794
  45. package/dist/es2019/pm-plugins/data/word_index_10k.json +0 -7762
  46. package/dist/esm/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  47. package/dist/esm/pm-plugins/data/first_token_to_words.json +0 -1
  48. package/dist/esm/pm-plugins/data/ghost_pos_tags.json +0 -43
  49. package/dist/esm/pm-plugins/data/grammar_transitions_10k.json +0 -46
  50. package/dist/esm/pm-plugins/data/l3_vocabulary.json +0 -20002
  51. package/dist/esm/pm-plugins/data/vocabulary_10k.json +0 -38794
  52. package/dist/esm/pm-plugins/data/word_index_10k.json +0 -7762
  53. package/src/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  54. package/src/pm-plugins/data/first_token_to_words.json +0 -1
  55. package/src/pm-plugins/data/ghost_pos_tags.json +0 -43
  56. package/src/pm-plugins/data/grammar_transitions_10k.json +0 -46
  57. package/src/pm-plugins/data/l3_vocabulary.json +0 -20002
  58. package/src/pm-plugins/data/vocabulary_10k.json +0 -38794
  59. package/src/pm-plugins/data/word-vectors_10k.bin +0 -3
  60. package/src/pm-plugins/data/word_index_10k.json +0 -7762
@@ -1,43 +0,0 @@
1
- {
2
- "a": ["DET"], "an": ["DET"], "the": ["DET"],
3
- "this": ["DET", "PRON"], "that": ["DET", "PRON", "SCONJ"],
4
- "these": ["DET", "PRON"], "those": ["DET", "PRON"],
5
-
6
- "my": ["DET"], "your": ["DET"], "his": ["DET"], "her": ["DET"],
7
- "its": ["DET"], "our": ["DET"], "their": ["DET"],
8
-
9
- "in": ["ADP"], "on": ["ADP"], "at": ["ADP"], "for": ["ADP"],
10
- "with": ["ADP"], "about": ["ADP"], "of": ["ADP"], "by": ["ADP"],
11
- "from": ["ADP"], "as": ["ADP", "SCONJ"], "into": ["ADP"],
12
- "through": ["ADP"], "after": ["ADP"], "over": ["ADP"],
13
- "between": ["ADP"], "out": ["ADP"], "against": ["ADP"],
14
- "during": ["ADP"], "without": ["ADP"], "before": ["ADP"],
15
- "under": ["ADP"], "around": ["ADP"], "among": ["ADP"],
16
-
17
- "to": ["PART", "ADP"],
18
- "not": ["PART", "ADV"],
19
-
20
- "i": ["PRON"], "you": ["PRON"], "he": ["PRON"], "she": ["PRON"],
21
- "it": ["PRON"], "we": ["PRON"], "they": ["PRON"],
22
- "me": ["PRON"], "him": ["PRON"], "us": ["PRON"], "them": ["PRON"],
23
- "what": ["PRON"], "who": ["PRON"], "which": ["PRON"], "whom": ["PRON"],
24
-
25
- "and": ["CCONJ"], "or": ["CCONJ"], "but": ["CCONJ"],
26
- "so": ["ADV", "CCONJ"], "because": ["SCONJ"], "if": ["SCONJ"],
27
- "when": ["SCONJ", "ADV"], "while": ["SCONJ"], "although": ["SCONJ"],
28
- "though": ["SCONJ"], "since": ["SCONJ", "ADP"], "unless": ["SCONJ"],
29
-
30
- "is": ["VERB"], "am": ["VERB"], "are": ["VERB"], "was": ["VERB"],
31
- "were": ["VERB"], "be": ["VERB"], "been": ["VERB"],
32
- "has": ["VERB"], "have": ["VERB"], "had": ["VERB"],
33
- "do": ["VERB"], "does": ["VERB"], "did": ["VERB"],
34
-
35
- "can": ["VERB"], "could": ["VERB"], "will": ["VERB"], "would": ["VERB"],
36
- "shall": ["VERB"], "should": ["VERB"], "may": ["VERB"], "might": ["VERB"],
37
- "must": ["VERB"],
38
-
39
- "very": ["ADV"], "too": ["ADV"], "always": ["ADV"], "never": ["ADV"],
40
- "just": ["ADV"], "really": ["ADV"], "also": ["ADV"], "only": ["ADV"],
41
- "well": ["ADV"], "even": ["ADV"], "still": ["ADV"], "now": ["ADV"],
42
- "then": ["ADV"]
43
- }
@@ -1,46 +0,0 @@
1
- {
2
- "transitions": {
3
- "DET": {
4
- "allowed": ["NOUN", "ADJ", "PROPN"],
5
- "note": "Determiners (a, the) must be followed by a noun or an adjective describing a noun."
6
- },
7
- "ADP": {
8
- "allowed": ["NOUN", "DET", "ADJ", "PROPN"],
9
- "note": "Prepositions (of, in) usually lead to a noun phrase."
10
- },
11
- "VERB": {
12
- "allowed": ["NOUN", "DET", "ADJ", "ADP", "ADV", "PROPN", "VERB"]
13
- },
14
- "ADV": {
15
- "allowed": ["VERB", "ADJ", "ADV", "ADP"],
16
- "note": "Adverbs modify verbs (quickly run), adjectives (so frustrating), or other adverbs."
17
- },
18
- "CCONJ": {
19
- "allowed": ["NOUN", "VERB", "ADJ", "ADV", "PRON", "PROPN", "DET"],
20
- "note": "Conjunctions (and, but, or) can join almost any parallel structures."
21
- },
22
- "ADJ": {
23
- "allowed": ["NOUN", "ADJ"],
24
- "note": "Adjectives should almost always stack or end in a noun."
25
- },
26
- "NOUN": {
27
- "allowed": ["VERB", "ADP", "CCONJ", "PUNCT", "NOUN"],
28
- "note": "Nouns are usually followed by an action (verb) or a relationship (preposition)."
29
- },
30
- "PROPN": {
31
- "allowed": ["VERB", "ADP", "CCONJ", "PUNCT", "NOUN", "PART"]
32
- },
33
- "PRON": {
34
- "allowed": ["VERB", "ADV"],
35
- "note": "Pronouns (I, we, it) are almost always followed by a verb."
36
- },
37
- "PART": {
38
- "allowed": ["VERB", "ADV"],
39
- "note": "Particles like 'to' or 'not' usually lead directly into a base verb or adverb (to demonstrate, not typing)."
40
- },
41
- "SCONJ": {
42
- "allowed": ["PRON", "DET", "NOUN", "PROPN", "ADJ"],
43
- "note": "Subordinating conjunctions (because, if, while) start new clauses, usually followed by a subject."
44
- }
45
- }
46
- }