@atlaskit/editor-plugin-autocomplete 5.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 (62) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/build/tsconfig.json +2 -1
  3. package/dist/cjs/analytics/ufo.js +3 -2
  4. package/dist/cjs/pm-plugins/artifacts-manifest.js +210 -0
  5. package/dist/cjs/pm-plugins/autocomplete-plugin.js +10 -2
  6. package/dist/cjs/pm-plugins/local-slow-lane-client.js +68 -153
  7. package/dist/cjs/pm-plugins/scoring-pipeline.js +130 -28
  8. package/dist/cjs/pm-plugins/text-predictor.js +45 -106
  9. package/dist/es2019/analytics/ufo.js +4 -2
  10. package/dist/es2019/pm-plugins/artifacts-manifest.js +126 -0
  11. package/dist/es2019/pm-plugins/autocomplete-plugin.js +10 -2
  12. package/dist/es2019/pm-plugins/local-slow-lane-client.js +8 -78
  13. package/dist/es2019/pm-plugins/scoring-pipeline.js +97 -21
  14. package/dist/es2019/pm-plugins/text-predictor.js +17 -59
  15. package/dist/esm/analytics/ufo.js +3 -2
  16. package/dist/esm/pm-plugins/artifacts-manifest.js +204 -0
  17. package/dist/esm/pm-plugins/autocomplete-plugin.js +10 -2
  18. package/dist/esm/pm-plugins/local-slow-lane-client.js +67 -148
  19. package/dist/esm/pm-plugins/scoring-pipeline.js +128 -26
  20. package/dist/esm/pm-plugins/text-predictor.js +45 -98
  21. package/dist/types/analytics/ufo.d.ts +1 -0
  22. package/dist/types/pm-plugins/artifacts-manifest.d.ts +55 -0
  23. package/dist/types/pm-plugins/autocomplete-plugin.d.ts +5 -11
  24. package/dist/types/pm-plugins/scoring-pipeline.d.ts +14 -0
  25. package/dist/types/pm-plugins/text-predictor.d.ts +0 -1
  26. package/package.json +3 -6
  27. package/src/analytics/ufo.ts +5 -0
  28. package/src/pm-plugins/artifacts-manifest.ts +151 -0
  29. package/src/pm-plugins/autocomplete-plugin.ts +14 -12
  30. package/src/pm-plugins/local-slow-lane-client.ts +10 -92
  31. package/src/pm-plugins/scoring-pipeline.ts +115 -23
  32. package/src/pm-plugins/text-predictor.ts +26 -76
  33. package/tsconfig.json +3 -6
  34. package/dist/cjs/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  35. package/dist/cjs/pm-plugins/data/first_token_to_words.json +0 -1
  36. package/dist/cjs/pm-plugins/data/ghost_pos_tags.json +0 -43
  37. package/dist/cjs/pm-plugins/data/grammar_transitions_10k.json +0 -46
  38. package/dist/cjs/pm-plugins/data/l3_vocabulary.json +0 -20002
  39. package/dist/cjs/pm-plugins/data/vocabulary_10k.json +0 -38794
  40. package/dist/cjs/pm-plugins/data/word_index_10k.json +0 -7762
  41. package/dist/es2019/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  42. package/dist/es2019/pm-plugins/data/first_token_to_words.json +0 -1
  43. package/dist/es2019/pm-plugins/data/ghost_pos_tags.json +0 -43
  44. package/dist/es2019/pm-plugins/data/grammar_transitions_10k.json +0 -46
  45. package/dist/es2019/pm-plugins/data/l3_vocabulary.json +0 -20002
  46. package/dist/es2019/pm-plugins/data/vocabulary_10k.json +0 -38794
  47. package/dist/es2019/pm-plugins/data/word_index_10k.json +0 -7762
  48. package/dist/esm/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  49. package/dist/esm/pm-plugins/data/first_token_to_words.json +0 -1
  50. package/dist/esm/pm-plugins/data/ghost_pos_tags.json +0 -43
  51. package/dist/esm/pm-plugins/data/grammar_transitions_10k.json +0 -46
  52. package/dist/esm/pm-plugins/data/l3_vocabulary.json +0 -20002
  53. package/dist/esm/pm-plugins/data/vocabulary_10k.json +0 -38794
  54. package/dist/esm/pm-plugins/data/word_index_10k.json +0 -7762
  55. package/src/pm-plugins/data/combined_l2_l3_pos_tags.json +0 -73571
  56. package/src/pm-plugins/data/first_token_to_words.json +0 -1
  57. package/src/pm-plugins/data/ghost_pos_tags.json +0 -43
  58. package/src/pm-plugins/data/grammar_transitions_10k.json +0 -46
  59. package/src/pm-plugins/data/l3_vocabulary.json +0 -20002
  60. package/src/pm-plugins/data/vocabulary_10k.json +0 -38794
  61. package/src/pm-plugins/data/word-vectors_10k.bin +0 -3
  62. 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
- }