@atlaskit/editor-plugin-autocomplete 0.1.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.
- package/afm-cc/tsconfig.json +29 -0
- package/afm-jira/tsconfig.json +29 -0
- package/afm-products/tsconfig.json +29 -0
- package/dist/cjs/autocompletePlugin.js +14 -0
- package/dist/cjs/autocompletePluginType.js +1 -0
- package/dist/cjs/index.js +12 -0
- package/dist/es2019/autocompletePlugin.js +6 -0
- package/dist/es2019/autocompletePluginType.js +0 -0
- package/dist/es2019/index.js +4 -0
- package/dist/esm/autocompletePlugin.js +8 -0
- package/dist/esm/autocompletePluginType.js +0 -0
- package/dist/esm/index.js +4 -0
- package/dist/types/autocompletePlugin.d.ts +2 -0
- package/dist/types/autocompletePluginType.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types-ts4.5/autocompletePlugin.d.ts +2 -0
- package/dist/types-ts4.5/autocompletePluginType.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/package.json +52 -0
- package/src/autocompletePlugin.tsx +7 -0
- package/src/autocompletePluginType.ts +3 -0
- package/src/index.ts +5 -0
- package/src/pm-plugins/data/combined_l2_l3_pos_tags.json +3 -0
- package/src/pm-plugins/data/ghost_pos_tags.json +3 -0
- package/src/pm-plugins/data/grammar_transitions_10k.json +3 -0
- package/src/pm-plugins/data/l3_vocabulary.json +3 -0
- package/src/pm-plugins/data/vocabulary_10k.json +3 -0
- package/src/pm-plugins/data/word-vectors_10k.bin +3 -0
- package/src/pm-plugins/data/word_index_10k.json +3 -0
- package/tsconfig.app.json +34 -0
- package/tsconfig.dev.json +38 -0
- package/tsconfig.json +8 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-autocomplete",
|
|
6
|
+
"rootDir": "../",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"noCheck": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/mocks/*",
|
|
19
|
+
"../src/**/examples.*"
|
|
20
|
+
],
|
|
21
|
+
"references": [
|
|
22
|
+
{
|
|
23
|
+
"path": "../../editor-prosemirror/afm-cc/tsconfig.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "../../editor-common/afm-cc/tsconfig.json"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"outDir": "../../../../../jira/tsDist/@atlaskit__editor-plugin-autocomplete/app",
|
|
6
|
+
"rootDir": "../",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"noCheck": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/mocks/*",
|
|
19
|
+
"../src/**/examples.*"
|
|
20
|
+
],
|
|
21
|
+
"references": [
|
|
22
|
+
{
|
|
23
|
+
"path": "../../editor-prosemirror/afm-jira/tsconfig.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"outDir": "../../../../../tsDist/@atlaskit__editor-plugin-autocomplete/app",
|
|
6
|
+
"rootDir": "../",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"noCheck": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/mocks/*",
|
|
19
|
+
"../src/**/examples.*"
|
|
20
|
+
],
|
|
21
|
+
"references": [
|
|
22
|
+
{
|
|
23
|
+
"path": "../../editor-prosemirror/afm-products/tsconfig.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "../../editor-common/afm-products/tsconfig.json"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.autocompletePlugin = void 0;
|
|
7
|
+
// This file will contain the autocomplete plugin implementation.
|
|
8
|
+
// The full implementation will be added in a follow-up PR.
|
|
9
|
+
|
|
10
|
+
var autocompletePlugin = exports.autocompletePlugin = function autocompletePlugin() {
|
|
11
|
+
return {
|
|
12
|
+
name: 'autocomplete'
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "autocompletePlugin", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _autocompletePlugin.autocompletePlugin;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _autocompletePlugin = require("./autocompletePlugin");
|
|
File without changes
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-autocomplete",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Client-side text autocomplete plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: AI",
|
|
12
|
+
"singleton": true
|
|
13
|
+
},
|
|
14
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
15
|
+
"main": "dist/cjs/index.js",
|
|
16
|
+
"module": "dist/esm/index.js",
|
|
17
|
+
"module:es2019": "dist/es2019/index.js",
|
|
18
|
+
"types": "dist/types/index.d.ts",
|
|
19
|
+
"typesVersions": {
|
|
20
|
+
">=4.5 <4.9": {
|
|
21
|
+
"*": [
|
|
22
|
+
"dist/types-ts4.5/*",
|
|
23
|
+
"dist/types-ts4.5/index.d.ts"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"atlaskit:src": "src/index.ts",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
31
|
+
"@babel/runtime": "^7.0.0",
|
|
32
|
+
"compromise": "^14.15.0",
|
|
33
|
+
"wink-nlp": "^2.4.0"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@atlaskit/editor-common": "^112.14.0",
|
|
37
|
+
"react": "^18.2.0"
|
|
38
|
+
},
|
|
39
|
+
"techstack": {
|
|
40
|
+
"@atlassian/frontend": {
|
|
41
|
+
"code-structure": [
|
|
42
|
+
"editor-plugin"
|
|
43
|
+
],
|
|
44
|
+
"import-structure": [
|
|
45
|
+
"atlassian-conventions"
|
|
46
|
+
],
|
|
47
|
+
"circular-dependencies": [
|
|
48
|
+
"file-and-folder-level"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file will contain the autocomplete plugin implementation.
|
|
2
|
+
// The full implementation will be added in a follow-up PR.
|
|
3
|
+
import type { AutocompletePlugin } from './autocompletePluginType';
|
|
4
|
+
|
|
5
|
+
export const autocompletePlugin: AutocompletePlugin = () => ({
|
|
6
|
+
name: 'autocomplete',
|
|
7
|
+
});
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../tsconfig.base.json",
|
|
3
|
+
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
|
|
4
|
+
"exclude": [
|
|
5
|
+
"**/docs/**/*",
|
|
6
|
+
"**/__tests__/**/*",
|
|
7
|
+
"**/vr-tests/**/*",
|
|
8
|
+
"**/__perf__/**/*",
|
|
9
|
+
"**/*.test.*",
|
|
10
|
+
"**/test.*",
|
|
11
|
+
"**/test-*",
|
|
12
|
+
"**/examples.ts",
|
|
13
|
+
"**/examples.tsx",
|
|
14
|
+
"**/examples/*.ts",
|
|
15
|
+
"**/examples/*.tsx",
|
|
16
|
+
"**/examples/**/*.ts",
|
|
17
|
+
"**/examples/**/*.tsx",
|
|
18
|
+
"**/storybook/**/*",
|
|
19
|
+
"**/constellation/**/*",
|
|
20
|
+
".storybook/*",
|
|
21
|
+
"./__fixtures__/**/*",
|
|
22
|
+
"./__generated__/**/*",
|
|
23
|
+
"./mocks/**/*",
|
|
24
|
+
"./__mocks__/**/*",
|
|
25
|
+
"**/mock.*",
|
|
26
|
+
"**/codemods/**/*.ts",
|
|
27
|
+
"**/codemods/**/*.tsx"
|
|
28
|
+
],
|
|
29
|
+
"compilerOptions": {
|
|
30
|
+
"composite": true,
|
|
31
|
+
"outDir": "../../../tsDist/@atlaskit__editor-plugin-autocomplete/app"
|
|
32
|
+
},
|
|
33
|
+
"references": []
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../tsconfig.base.json",
|
|
3
|
+
"include": [
|
|
4
|
+
"**/docs/**/*",
|
|
5
|
+
"**/__tests__/**/*",
|
|
6
|
+
"**/vr-tests/**/*",
|
|
7
|
+
"**/__perf__/**/*",
|
|
8
|
+
"**/*.test.*",
|
|
9
|
+
"**/test.*",
|
|
10
|
+
"**/test-*",
|
|
11
|
+
"**/examples.ts",
|
|
12
|
+
"**/examples.tsx",
|
|
13
|
+
"**/examples/*.ts",
|
|
14
|
+
"**/examples/*.tsx",
|
|
15
|
+
"**/examples/**/*.ts",
|
|
16
|
+
"**/examples/**/*.tsx",
|
|
17
|
+
"**/storybook/**/*",
|
|
18
|
+
"**/constellation/**/*",
|
|
19
|
+
".storybook/*",
|
|
20
|
+
"./__fixtures__/**/*",
|
|
21
|
+
"./__generated__/**/*",
|
|
22
|
+
"./mocks/**/*",
|
|
23
|
+
"./__mocks__/**/*",
|
|
24
|
+
"**/mock.*",
|
|
25
|
+
"**/codemods/**/*.ts",
|
|
26
|
+
"**/codemods/**/*.tsx"
|
|
27
|
+
],
|
|
28
|
+
"exclude": ["./dist/**/*", "./build/**/*", "./node_modules/**/*"],
|
|
29
|
+
"compilerOptions": {
|
|
30
|
+
"composite": true,
|
|
31
|
+
"outDir": "../../../tsDist/@atlaskit__editor-plugin-autocomplete/dev"
|
|
32
|
+
},
|
|
33
|
+
"references": [
|
|
34
|
+
{
|
|
35
|
+
"path": "./tsconfig.app.json"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|