@atlaskit/editor-plugin-code-block 0.1.15 → 0.1.17

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 0.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.1.16
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 0.1.15
4
16
 
5
17
  ### Patch Changes
@@ -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 : api.decorations.actions) !== null && _api$decorations$acti !== void 0 ? _api$decorations$acti : {},
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);
@@ -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;
@@ -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 : api.decorations.actions) !== null && _api$decorations$acti !== void 0 ? _api$decorations$acti : {},
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.15",
3
+ "version": "0.1.17",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  "releaseModel": "continuous",
15
15
  "runReact18": false
16
16
  },
17
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
17
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
18
18
  "main": "dist/cjs/index.js",
19
19
  "module": "dist/esm/index.js",
20
20
  "module:es2019": "dist/es2019/index.js",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^35.3.0",
37
37
  "@atlaskit/code": "^15.1.0",
38
- "@atlaskit/editor-common": "^76.35.0",
38
+ "@atlaskit/editor-common": "^77.0.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
40
  "@atlaskit/editor-plugin-composition": "^0.1.0",
41
41
  "@atlaskit/editor-plugin-decorations": "^0.2.0",