@atlaskit/editor-plugin-autocomplete 2.3.0 → 2.4.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/CHANGELOG.md +11 -0
- package/autocompletePlugin/package.json +15 -0
- package/autocompletePluginType/package.json +15 -0
- package/dist/cjs/entry-points/autocompletePlugin.js +12 -0
- package/dist/cjs/entry-points/autocompletePluginType.js +1 -0
- package/dist/cjs/entry-points/src-pm-plugins-autocomplete-plugin.js +18 -0
- package/dist/cjs/entry-points/src-pm-plugins-slow-lane-client.js +36 -0
- package/dist/cjs/entry-points/src-pm-plugins-text-predictor.js +66 -0
- package/dist/es2019/entry-points/autocompletePlugin.js +2 -0
- package/dist/es2019/entry-points/autocompletePluginType.js +0 -0
- package/dist/es2019/entry-points/src-pm-plugins-autocomplete-plugin.js +2 -0
- package/dist/es2019/entry-points/src-pm-plugins-slow-lane-client.js +2 -0
- package/dist/es2019/entry-points/src-pm-plugins-text-predictor.js +2 -0
- package/dist/esm/entry-points/autocompletePlugin.js +2 -0
- package/dist/esm/entry-points/autocompletePluginType.js +0 -0
- package/dist/esm/entry-points/src-pm-plugins-autocomplete-plugin.js +2 -0
- package/dist/esm/entry-points/src-pm-plugins-slow-lane-client.js +2 -0
- package/dist/esm/entry-points/src-pm-plugins-text-predictor.js +2 -0
- package/dist/types/entry-points/autocompletePlugin.d.ts +1 -0
- package/dist/types/entry-points/autocompletePluginType.d.ts +1 -0
- package/dist/types/entry-points/src-pm-plugins-autocomplete-plugin.d.ts +2 -0
- package/dist/types/entry-points/src-pm-plugins-slow-lane-client.d.ts +2 -0
- package/dist/types/entry-points/src-pm-plugins-text-predictor.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/autocompletePlugin.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/autocompletePluginType.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/src-pm-plugins-autocomplete-plugin.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/src-pm-plugins-slow-lane-client.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/src-pm-plugins-text-predictor.d.ts +2 -0
- package/package.json +3 -3
- package/src/entry-points/autocompletePlugin.tsx +2 -0
- package/src/entry-points/autocompletePluginType.ts +2 -0
- package/src/entry-points/src-pm-plugins-autocomplete-plugin.ts +7 -0
- package/src/entry-points/src-pm-plugins-slow-lane-client.ts +13 -0
- package/src/entry-points/src-pm-plugins-text-predictor.ts +14 -0
- package/src/pm-plugins/autocomplete-plugin/package.json +5 -5
- package/src/pm-plugins/slow-lane-client/package.json +5 -5
- package/src/pm-plugins/text-predictor/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-autocomplete
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ce30a31e6369d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce30a31e6369d) -
|
|
8
|
+
Autofix: add explicit package exports (barrel removal)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 2.3.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-autocomplete/autocompletePlugin",
|
|
3
|
+
"main": "../dist/cjs/entry-points/autocompletePlugin.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/autocompletePlugin.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/autocompletePlugin.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/entry-points/autocompletePlugin.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/entry-points/autocompletePlugin.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-autocomplete/autocompletePluginType",
|
|
3
|
+
"main": "../dist/cjs/entry-points/autocompletePluginType.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/autocompletePluginType.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/autocompletePluginType.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/entry-points/autocompletePluginType.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/entry-points/autocompletePluginType.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -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");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "autocompletePluginKey", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _autocompletePlugin.autocompletePluginKey;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "createAutocompletePlugin", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _autocompletePlugin.createAutocompletePlugin;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _autocompletePlugin = require("../pm-plugins/autocomplete-plugin");
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "createSlowLaneClient", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _slowLaneClient.createSlowLaneClient;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getStoredContextVector", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _slowLaneClient.getStoredContextVector;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "getStoredLmLogits", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _slowLaneClient.getStoredLmLogits;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "isWordBoundary", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _slowLaneClient.isWordBoundary;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "setDefaultSlowLaneClient", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _slowLaneClient.setDefaultSlowLaneClient;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var _slowLaneClient = require("../pm-plugins/slow-lane-client");
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "getLastPredictionDebug", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _textPredictor.getLastPredictionDebug;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getPredictorStatus", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _textPredictor.getPredictorStatus;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "incrementSessionFreq", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _textPredictor.incrementSessionFreq;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "ingestDocumentPage", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _textPredictor.ingestDocumentPage;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "initL3Vocabulary", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _textPredictor.initL3Vocabulary;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "initVectors", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _textPredictor.initVectors;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "initVocabulary", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _textPredictor.initVocabulary;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "loadDefaultVocabulary", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _textPredictor.loadDefaultVocabulary;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "loadVectorsAsync", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _textPredictor.loadVectorsAsync;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "predict", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _textPredictor.predict;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var _textPredictor = require("../pm-plugins/text-predictor");
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
+
export { getLastPredictionDebug, getPredictorStatus, incrementSessionFreq, ingestDocumentPage, initL3Vocabulary, initVectors, initVocabulary, loadDefaultVocabulary, loadVectorsAsync, predict } from '../pm-plugins/text-predictor';
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
+
export { getLastPredictionDebug, getPredictorStatus, incrementSessionFreq, ingestDocumentPage, initL3Vocabulary, initVectors, initVocabulary, loadDefaultVocabulary, loadVectorsAsync, predict } from '../pm-plugins/text-predictor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { autocompletePlugin } from '../autocompletePlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AutocompletePlugin } from '../autocompletePluginType';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { createSlowLaneClient, getStoredContextVector, getStoredLmLogits, isWordBoundary, setDefaultSlowLaneClient, } from '../pm-plugins/slow-lane-client';
|
|
2
|
+
export type { SlowLaneClientConfig, TypeaheadEncodingsRequest, TypeaheadEncodingsResponse, } from '../pm-plugins/slow-lane-client';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getLastPredictionDebug, getPredictorStatus, incrementSessionFreq, ingestDocumentPage, initL3Vocabulary, initVectors, initVocabulary, loadDefaultVocabulary, loadVectorsAsync, predict, } from '../pm-plugins/text-predictor';
|
|
2
|
+
export type { TenantVocabulary, WeightedTerm } from '../pm-plugins/text-predictor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { autocompletePlugin } from '../autocompletePlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AutocompletePlugin } from '../autocompletePluginType';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { createSlowLaneClient, getStoredContextVector, getStoredLmLogits, isWordBoundary, setDefaultSlowLaneClient, } from '../pm-plugins/slow-lane-client';
|
|
2
|
+
export type { SlowLaneClientConfig, TypeaheadEncodingsRequest, TypeaheadEncodingsResponse, } from '../pm-plugins/slow-lane-client';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getLastPredictionDebug, getPredictorStatus, incrementSessionFreq, ingestDocumentPage, initL3Vocabulary, initVectors, initVocabulary, loadDefaultVocabulary, loadVectorsAsync, predict, } from '../pm-plugins/text-predictor';
|
|
2
|
+
export type { TenantVocabulary, WeightedTerm } from '../pm-plugins/text-predictor';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-autocomplete",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Client-side text autocomplete plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"wink-nlp": "^2.4.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^114.
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^10.
|
|
36
|
+
"@atlaskit/editor-common": "^114.32.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"techstack": {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
+
export { autocompletePluginKey, createAutocompletePlugin } from '../pm-plugins/autocomplete-plugin';
|
|
3
|
+
export type {
|
|
4
|
+
AutocompleteContext,
|
|
5
|
+
AutocompletePluginOptions,
|
|
6
|
+
AutocompletePluginState,
|
|
7
|
+
} from '../pm-plugins/autocomplete-plugin';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
+
export {
|
|
3
|
+
createSlowLaneClient,
|
|
4
|
+
getStoredContextVector,
|
|
5
|
+
getStoredLmLogits,
|
|
6
|
+
isWordBoundary,
|
|
7
|
+
setDefaultSlowLaneClient,
|
|
8
|
+
} from '../pm-plugins/slow-lane-client';
|
|
9
|
+
export type {
|
|
10
|
+
SlowLaneClientConfig,
|
|
11
|
+
TypeaheadEncodingsRequest,
|
|
12
|
+
TypeaheadEncodingsResponse,
|
|
13
|
+
} from '../pm-plugins/slow-lane-client';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
+
export {
|
|
3
|
+
getLastPredictionDebug,
|
|
4
|
+
getPredictorStatus,
|
|
5
|
+
incrementSessionFreq,
|
|
6
|
+
ingestDocumentPage,
|
|
7
|
+
initL3Vocabulary,
|
|
8
|
+
initVectors,
|
|
9
|
+
initVocabulary,
|
|
10
|
+
loadDefaultVocabulary,
|
|
11
|
+
loadVectorsAsync,
|
|
12
|
+
predict,
|
|
13
|
+
} from '../pm-plugins/text-predictor';
|
|
14
|
+
export type { TenantVocabulary, WeightedTerm } from '../pm-plugins/text-predictor';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-autocomplete/src/pm-plugins/autocomplete-plugin",
|
|
3
|
-
"main": "../../../dist/cjs/pm-plugins
|
|
4
|
-
"module": "../../../dist/esm/pm-plugins
|
|
5
|
-
"module:es2019": "../../../dist/es2019/pm-plugins
|
|
3
|
+
"main": "../../../dist/cjs/entry-points/src-pm-plugins-autocomplete-plugin.js",
|
|
4
|
+
"module": "../../../dist/esm/entry-points/src-pm-plugins-autocomplete-plugin.js",
|
|
5
|
+
"module:es2019": "../../../dist/es2019/entry-points/src-pm-plugins-autocomplete-plugin.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../../../dist/types/pm-plugins
|
|
7
|
+
"types": "../../../dist/types/entry-points/src-pm-plugins-autocomplete-plugin.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
9
|
">=4.5 <5.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../../../dist/types-ts4.5/pm-plugins
|
|
11
|
+
"../../../dist/types-ts4.5/entry-points/src-pm-plugins-autocomplete-plugin.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-autocomplete/src/pm-plugins/slow-lane-client",
|
|
3
|
-
"main": "../../../dist/cjs/pm-plugins
|
|
4
|
-
"module": "../../../dist/esm/pm-plugins
|
|
5
|
-
"module:es2019": "../../../dist/es2019/pm-plugins
|
|
3
|
+
"main": "../../../dist/cjs/entry-points/src-pm-plugins-slow-lane-client.js",
|
|
4
|
+
"module": "../../../dist/esm/entry-points/src-pm-plugins-slow-lane-client.js",
|
|
5
|
+
"module:es2019": "../../../dist/es2019/entry-points/src-pm-plugins-slow-lane-client.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../../../dist/types/pm-plugins
|
|
7
|
+
"types": "../../../dist/types/entry-points/src-pm-plugins-slow-lane-client.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
9
|
">=4.5 <5.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../../../dist/types-ts4.5/pm-plugins
|
|
11
|
+
"../../../dist/types-ts4.5/entry-points/src-pm-plugins-slow-lane-client.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-autocomplete/src/pm-plugins/text-predictor",
|
|
3
|
-
"main": "../../../dist/cjs/pm-plugins
|
|
4
|
-
"module": "../../../dist/esm/pm-plugins
|
|
5
|
-
"module:es2019": "../../../dist/es2019/pm-plugins
|
|
3
|
+
"main": "../../../dist/cjs/entry-points/src-pm-plugins-text-predictor.js",
|
|
4
|
+
"module": "../../../dist/esm/entry-points/src-pm-plugins-text-predictor.js",
|
|
5
|
+
"module:es2019": "../../../dist/es2019/entry-points/src-pm-plugins-text-predictor.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../../../dist/types/pm-plugins
|
|
7
|
+
"types": "../../../dist/types/entry-points/src-pm-plugins-text-predictor.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
9
|
">=4.5 <5.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../../../dist/types-ts4.5/pm-plugins
|
|
11
|
+
"../../../dist/types-ts4.5/entry-points/src-pm-plugins-text-predictor.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|