@atlaskit/editor-plugin-code-block 0.1.14 → 0.1.16
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 +12 -0
- package/dist/cjs/toolbar.js +2 -2
- package/dist/es2019/toolbar.js +2 -2
- package/dist/esm/toolbar.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 0.1.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
|
|
8
|
+
|
|
9
|
+
## 0.1.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802) [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) - Ensure all editor plugins are marked as singletons
|
|
14
|
+
|
|
3
15
|
## 0.1.14
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -29,9 +29,9 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
|
|
|
29
29
|
var allowCopyToClipboard = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
30
30
|
var api = arguments.length > 1 ? arguments[1] : undefined;
|
|
31
31
|
return function (state, _ref) {
|
|
32
|
-
var _api$decorations$acti, _api$analytics, _codeBlockState$pos, _node$attrs;
|
|
32
|
+
var _api$decorations$acti, _api$decorations, _api$analytics, _codeBlockState$pos, _node$attrs;
|
|
33
33
|
var formatMessage = _ref.formatMessage;
|
|
34
|
-
var _ref2 = (_api$decorations$acti = api === null || api === void 0 ? void 0 :
|
|
34
|
+
var _ref2 = (_api$decorations$acti = api === null || api === void 0 || (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions) !== null && _api$decorations$acti !== void 0 ? _api$decorations$acti : {},
|
|
35
35
|
hoverDecoration = _ref2.hoverDecoration;
|
|
36
36
|
var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
37
37
|
var codeBlockState = _pluginKey.pluginKey.getState(state);
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -18,10 +18,10 @@ const languageList = createLanguageList(DEFAULT_LANGUAGES);
|
|
|
18
18
|
export const getToolbarConfig = (allowCopyToClipboard = false, api) => (state, {
|
|
19
19
|
formatMessage
|
|
20
20
|
}) => {
|
|
21
|
-
var _api$decorations$acti, _api$analytics, _codeBlockState$pos, _node$attrs;
|
|
21
|
+
var _api$decorations$acti, _api$decorations, _api$analytics, _codeBlockState$pos, _node$attrs;
|
|
22
22
|
const {
|
|
23
23
|
hoverDecoration
|
|
24
|
-
} = (_api$decorations$acti = api === null || api === void 0 ? void 0 : api.decorations.actions) !== null && _api$decorations$acti !== void 0 ? _api$decorations$acti : {};
|
|
24
|
+
} = (_api$decorations$acti = api === null || api === void 0 ? void 0 : (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions) !== null && _api$decorations$acti !== void 0 ? _api$decorations$acti : {};
|
|
25
25
|
const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
26
26
|
const codeBlockState = pluginKey.getState(state);
|
|
27
27
|
const pos = (_codeBlockState$pos = codeBlockState === null || codeBlockState === void 0 ? void 0 : codeBlockState.pos) !== null && _codeBlockState$pos !== void 0 ? _codeBlockState$pos : null;
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -19,9 +19,9 @@ export var getToolbarConfig = function getToolbarConfig() {
|
|
|
19
19
|
var allowCopyToClipboard = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
20
20
|
var api = arguments.length > 1 ? arguments[1] : undefined;
|
|
21
21
|
return function (state, _ref) {
|
|
22
|
-
var _api$decorations$acti, _api$analytics, _codeBlockState$pos, _node$attrs;
|
|
22
|
+
var _api$decorations$acti, _api$decorations, _api$analytics, _codeBlockState$pos, _node$attrs;
|
|
23
23
|
var formatMessage = _ref.formatMessage;
|
|
24
|
-
var _ref2 = (_api$decorations$acti = api === null || api === void 0 ? void 0 :
|
|
24
|
+
var _ref2 = (_api$decorations$acti = api === null || api === void 0 || (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions) !== null && _api$decorations$acti !== void 0 ? _api$decorations$acti : {},
|
|
25
25
|
hoverDecoration = _ref2.hoverDecoration;
|
|
26
26
|
var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
27
27
|
var codeBlockState = pluginKey.getState(state);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Scarlet",
|
|
12
|
+
"singleton": true,
|
|
12
13
|
"inPublicMirror": false,
|
|
13
14
|
"releaseModel": "continuous",
|
|
14
15
|
"runReact18": false
|
|
15
16
|
},
|
|
16
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
18
|
"main": "dist/cjs/index.js",
|
|
18
19
|
"module": "dist/esm/index.js",
|
|
19
20
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@atlaskit/adf-schema": "^35.3.0",
|
|
36
37
|
"@atlaskit/code": "^15.1.0",
|
|
37
|
-
"@atlaskit/editor-common": "^76.
|
|
38
|
+
"@atlaskit/editor-common": "^76.39.0",
|
|
38
39
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
39
40
|
"@atlaskit/editor-plugin-composition": "^0.1.0",
|
|
40
41
|
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
@@ -56,7 +57,6 @@
|
|
|
56
57
|
"@atlaskit/editor-plugin-indentation": "^0.2.0",
|
|
57
58
|
"@atlaskit/ssr": "*",
|
|
58
59
|
"@atlaskit/visual-regression": "*",
|
|
59
|
-
"@atlaskit/webdriver-runner": "*",
|
|
60
60
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
61
61
|
"@testing-library/react": "^12.1.5",
|
|
62
62
|
"raf-stub": "^2.0.1",
|