@atlaskit/editor-plugin-extension 1.1.7 → 1.2.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#91586](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91586) [`b3135ab49e16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b3135ab49e16) - Updated `@atlaskit/tabs` dependency which removed baked-in horizontal padding. There may be some very slight difference in padding after this change.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
12
+ - Updated dependencies
13
+
14
+ ## 1.1.8
15
+
16
+ ### Patch Changes
17
+
18
+ - [#87119](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87119) [`0cea7cb799c3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0cea7cb799c3) - [EDF-462] Add analytics for AI Blocks
19
+ - Updated dependencies
20
+
3
21
  ## 1.1.7
4
22
 
5
23
  ### Patch Changes
@@ -4,13 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.removeExtension = exports.removeDescendantNodes = exports.forceAutoSave = exports.clearEditingContext = exports.checkAndRemoveExtensionNode = void 0;
7
+ exports.removeSelectedNodeWithAnalytics = exports.removeExtension = exports.removeDescendantNodes = exports.forceAutoSave = exports.clearEditingContext = exports.checkAndRemoveExtensionNode = void 0;
8
8
  exports.setEditingContextToContextPanel = setEditingContextToContextPanel;
9
9
  exports.updateExtensionLayout = void 0;
10
10
  exports.updateState = updateState;
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _utils = require("@atlaskit/editor-common/utils");
14
+ var _state = require("@atlaskit/editor-prosemirror/state");
14
15
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
15
16
  var _pluginFactory = require("./plugin-factory");
16
17
  var _utils3 = require("./utils");
@@ -82,7 +83,7 @@ var removeExtension = exports.removeExtension = function removeExtension(editorA
82
83
  }
83
84
  }, function (tr, state) {
84
85
  if ((0, _utils3.getSelectedExtension)(state)) {
85
- return (0, _utils2.removeSelectedNode)(tr);
86
+ return removeSelectedNodeWithAnalytics(state, tr, editorAnalyticsAPI);
86
87
  } else {
87
88
  return checkAndRemoveExtensionNode(state, tr, editorAnalyticsAPI);
88
89
  }
@@ -98,6 +99,25 @@ var removeDescendantNodes = exports.removeDescendantNodes = function removeDesce
98
99
  return sourceNode ? (0, _utils.removeConnectedNodes)(state, sourceNode) : tr;
99
100
  });
100
101
  };
102
+ var removeSelectedNodeWithAnalytics = exports.removeSelectedNodeWithAnalytics = function removeSelectedNodeWithAnalytics(state, tr, analyticsApi) {
103
+ if (state.selection instanceof _state.NodeSelection) {
104
+ var node = state.selection.node;
105
+ if (analyticsApi) {
106
+ analyticsApi.attachAnalyticsEvent({
107
+ action: _analytics.ACTION.DELETED,
108
+ actionSubject: _analytics.ACTION_SUBJECT.EXTENSION,
109
+ actionSubjectId: _analytics.ACTION_SUBJECT_ID.EXTENSION,
110
+ eventType: _analytics.EVENT_TYPE.TRACK,
111
+ attributes: {
112
+ extensionType: node.attrs.extensionType,
113
+ extensionKey: node.attrs.extensionKey,
114
+ localId: node.attrs.localId
115
+ }
116
+ })(tr);
117
+ }
118
+ }
119
+ return (0, _utils2.removeSelectedNode)(tr);
120
+ };
101
121
  var checkAndRemoveExtensionNode = exports.checkAndRemoveExtensionNode = function checkAndRemoveExtensionNode(state, tr, analyticsApi) {
102
122
  var nodeType = state.schema.nodes.bodiedExtension;
103
123
  var maybeMBENode = (0, _utils2.findParentNodeOfType)(state.schema.nodes.multiBodiedExtension)(state.selection);
@@ -117,5 +137,21 @@ var checkAndRemoveExtensionNode = exports.checkAndRemoveExtensionNode = function
117
137
  })(tr);
118
138
  }
119
139
  }
140
+ var bodiedExtensionNode = (0, _utils2.findParentNodeOfType)(state.schema.nodes.bodiedExtension)(state.selection);
141
+ if (bodiedExtensionNode) {
142
+ if (analyticsApi) {
143
+ analyticsApi.attachAnalyticsEvent({
144
+ action: _analytics.ACTION.DELETED,
145
+ actionSubject: _analytics.ACTION_SUBJECT.EXTENSION,
146
+ actionSubjectId: _analytics.ACTION_SUBJECT_ID.EXTENSION_BODIED,
147
+ eventType: _analytics.EVENT_TYPE.TRACK,
148
+ attributes: {
149
+ extensionType: bodiedExtensionNode.node.attrs.extensionType,
150
+ extensionKey: bodiedExtensionNode.node.attrs.extensionKey,
151
+ localId: bodiedExtensionNode.node.attrs.localId
152
+ }
153
+ })(tr);
154
+ }
155
+ }
120
156
  return (0, _utils2.removeParentNodeOfType)(nodeType)(tr);
121
157
  };
@@ -15,18 +15,6 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
16
  /** @jsx jsx */
17
17
 
18
- var tabWrapperStyles = (0, _react2.css)({
19
- // increase specificity to make sure the tab style is overridden
20
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
21
- "&&& [role='tabpanel'][tabindex]": {
22
- padding: 0
23
- },
24
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
25
- "&&& [role='tablist']::before": {
26
- left: 0,
27
- right: 0
28
- }
29
- });
30
18
  var panelWrapperStyles = (0, _react2.css)({
31
19
  flexGrow: 1,
32
20
  maxWidth: '100%'
@@ -48,9 +36,7 @@ var TabGroupImpl = function TabGroupImpl(props) {
48
36
  var onChange = _react.default.useCallback(function (index) {
49
37
  setActiveTab(index);
50
38
  }, [setActiveTab]);
51
- return (0, _react2.jsx)("div", {
52
- css: tabWrapperStyles
53
- }, (0, _react2.jsx)(_tabs.default, {
39
+ return (0, _react2.jsx)(_tabs.default, {
54
40
  id: "configPanelTabs-".concat(field.name),
55
41
  onChange: onChange,
56
42
  selected: activeTab
@@ -66,7 +52,7 @@ var TabGroupImpl = function TabGroupImpl(props) {
66
52
  }, (0, _react2.jsx)("div", {
67
53
  css: panelWrapperStyles
68
54
  }, renderPanel(field)));
69
- })));
55
+ }));
70
56
  };
71
57
  TabGroupImpl.displayName = 'TabGroup';
72
58
  var TabGroup = (0, _reactIntlNext.injectIntl)(TabGroupImpl);
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.requiredIndicator = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
7
  var _react = require("@emotion/react");
10
8
  var _colors = require("@atlaskit/theme/colors");
11
- var _templateObject;
12
- var requiredIndicator = exports.requiredIndicator = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-text-danger, ".concat(_colors.R500, ")"));
9
+ var requiredIndicator = exports.requiredIndicator = (0, _react.css)({
10
+ color: "var(--ds-text-danger, ".concat(_colors.R500, ")")
11
+ });
@@ -1,5 +1,6 @@
1
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
1
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
2
  import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
3
+ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
3
4
  import { findParentNodeOfType, removeParentNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
4
5
  import { createCommand } from './plugin-factory';
5
6
  import { getSelectedExtension } from './utils';
@@ -62,7 +63,7 @@ export const removeExtension = editorAnalyticsAPI => createCommand({
62
63
  }
63
64
  }, (tr, state) => {
64
65
  if (getSelectedExtension(state)) {
65
- return removeSelectedNode(tr);
66
+ return removeSelectedNodeWithAnalytics(state, tr, editorAnalyticsAPI);
66
67
  } else {
67
68
  return checkAndRemoveExtensionNode(state, tr, editorAnalyticsAPI);
68
69
  }
@@ -75,6 +76,25 @@ export const removeDescendantNodes = sourceNode => createCommand({
75
76
  }, (tr, state) => {
76
77
  return sourceNode ? removeConnectedNodes(state, sourceNode) : tr;
77
78
  });
79
+ export const removeSelectedNodeWithAnalytics = (state, tr, analyticsApi) => {
80
+ if (state.selection instanceof NodeSelection) {
81
+ const node = state.selection.node;
82
+ if (analyticsApi) {
83
+ analyticsApi.attachAnalyticsEvent({
84
+ action: ACTION.DELETED,
85
+ actionSubject: ACTION_SUBJECT.EXTENSION,
86
+ actionSubjectId: ACTION_SUBJECT_ID.EXTENSION,
87
+ eventType: EVENT_TYPE.TRACK,
88
+ attributes: {
89
+ extensionType: node.attrs.extensionType,
90
+ extensionKey: node.attrs.extensionKey,
91
+ localId: node.attrs.localId
92
+ }
93
+ })(tr);
94
+ }
95
+ }
96
+ return removeSelectedNode(tr);
97
+ };
78
98
  export const checkAndRemoveExtensionNode = (state, tr, analyticsApi) => {
79
99
  let nodeType = state.schema.nodes.bodiedExtension;
80
100
  const maybeMBENode = findParentNodeOfType(state.schema.nodes.multiBodiedExtension)(state.selection);
@@ -94,5 +114,21 @@ export const checkAndRemoveExtensionNode = (state, tr, analyticsApi) => {
94
114
  })(tr);
95
115
  }
96
116
  }
117
+ const bodiedExtensionNode = findParentNodeOfType(state.schema.nodes.bodiedExtension)(state.selection);
118
+ if (bodiedExtensionNode) {
119
+ if (analyticsApi) {
120
+ analyticsApi.attachAnalyticsEvent({
121
+ action: ACTION.DELETED,
122
+ actionSubject: ACTION_SUBJECT.EXTENSION,
123
+ actionSubjectId: ACTION_SUBJECT_ID.EXTENSION_BODIED,
124
+ eventType: EVENT_TYPE.TRACK,
125
+ attributes: {
126
+ extensionType: bodiedExtensionNode.node.attrs.extensionType,
127
+ extensionKey: bodiedExtensionNode.node.attrs.extensionKey,
128
+ localId: bodiedExtensionNode.node.attrs.localId
129
+ }
130
+ })(tr);
131
+ }
132
+ }
97
133
  return removeParentNodeOfType(nodeType)(tr);
98
134
  };
@@ -3,18 +3,6 @@ import React, { useState } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { injectIntl } from 'react-intl-next';
5
5
  import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
6
- const tabWrapperStyles = css({
7
- // increase specificity to make sure the tab style is overridden
8
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
9
- "&&& [role='tabpanel'][tabindex]": {
10
- padding: 0
11
- },
12
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
13
- "&&& [role='tablist']::before": {
14
- left: 0,
15
- right: 0
16
- }
17
- });
18
6
  const panelWrapperStyles = css({
19
7
  flexGrow: 1,
20
8
  maxWidth: '100%'
@@ -35,9 +23,7 @@ const TabGroupImpl = props => {
35
23
  const onChange = React.useCallback(index => {
36
24
  setActiveTab(index);
37
25
  }, [setActiveTab]);
38
- return jsx("div", {
39
- css: tabWrapperStyles
40
- }, jsx(Tabs, {
26
+ return jsx(Tabs, {
41
27
  id: `configPanelTabs-${field.name}`,
42
28
  onChange: onChange,
43
29
  selected: activeTab
@@ -50,7 +36,7 @@ const TabGroupImpl = props => {
50
36
  key: `panel-${field.name}`
51
37
  }, jsx("div", {
52
38
  css: panelWrapperStyles
53
- }, renderPanel(field))))));
39
+ }, renderPanel(field)))));
54
40
  };
55
41
  TabGroupImpl.displayName = 'TabGroup';
56
42
  const TabGroup = injectIntl(TabGroupImpl);
@@ -1,5 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { R500 } from '@atlaskit/theme/colors';
3
- export const requiredIndicator = css`
4
- color: ${`var(--ds-text-danger, ${R500})`};
5
- `;
3
+ export const requiredIndicator = css({
4
+ color: `var(--ds-text-danger, ${R500})`
5
+ });
@@ -1,8 +1,9 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
4
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
5
5
  import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
6
+ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
6
7
  import { findParentNodeOfType, removeParentNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
7
8
  import { createCommand } from './plugin-factory';
8
9
  import { getSelectedExtension } from './utils';
@@ -73,7 +74,7 @@ export var removeExtension = function removeExtension(editorAnalyticsAPI) {
73
74
  }
74
75
  }, function (tr, state) {
75
76
  if (getSelectedExtension(state)) {
76
- return removeSelectedNode(tr);
77
+ return removeSelectedNodeWithAnalytics(state, tr, editorAnalyticsAPI);
77
78
  } else {
78
79
  return checkAndRemoveExtensionNode(state, tr, editorAnalyticsAPI);
79
80
  }
@@ -89,6 +90,25 @@ export var removeDescendantNodes = function removeDescendantNodes(sourceNode) {
89
90
  return sourceNode ? removeConnectedNodes(state, sourceNode) : tr;
90
91
  });
91
92
  };
93
+ export var removeSelectedNodeWithAnalytics = function removeSelectedNodeWithAnalytics(state, tr, analyticsApi) {
94
+ if (state.selection instanceof NodeSelection) {
95
+ var node = state.selection.node;
96
+ if (analyticsApi) {
97
+ analyticsApi.attachAnalyticsEvent({
98
+ action: ACTION.DELETED,
99
+ actionSubject: ACTION_SUBJECT.EXTENSION,
100
+ actionSubjectId: ACTION_SUBJECT_ID.EXTENSION,
101
+ eventType: EVENT_TYPE.TRACK,
102
+ attributes: {
103
+ extensionType: node.attrs.extensionType,
104
+ extensionKey: node.attrs.extensionKey,
105
+ localId: node.attrs.localId
106
+ }
107
+ })(tr);
108
+ }
109
+ }
110
+ return removeSelectedNode(tr);
111
+ };
92
112
  export var checkAndRemoveExtensionNode = function checkAndRemoveExtensionNode(state, tr, analyticsApi) {
93
113
  var nodeType = state.schema.nodes.bodiedExtension;
94
114
  var maybeMBENode = findParentNodeOfType(state.schema.nodes.multiBodiedExtension)(state.selection);
@@ -108,5 +128,21 @@ export var checkAndRemoveExtensionNode = function checkAndRemoveExtensionNode(st
108
128
  })(tr);
109
129
  }
110
130
  }
131
+ var bodiedExtensionNode = findParentNodeOfType(state.schema.nodes.bodiedExtension)(state.selection);
132
+ if (bodiedExtensionNode) {
133
+ if (analyticsApi) {
134
+ analyticsApi.attachAnalyticsEvent({
135
+ action: ACTION.DELETED,
136
+ actionSubject: ACTION_SUBJECT.EXTENSION,
137
+ actionSubjectId: ACTION_SUBJECT_ID.EXTENSION_BODIED,
138
+ eventType: EVENT_TYPE.TRACK,
139
+ attributes: {
140
+ extensionType: bodiedExtensionNode.node.attrs.extensionType,
141
+ extensionKey: bodiedExtensionNode.node.attrs.extensionKey,
142
+ localId: bodiedExtensionNode.node.attrs.localId
143
+ }
144
+ })(tr);
145
+ }
146
+ }
111
147
  return removeParentNodeOfType(nodeType)(tr);
112
148
  };
@@ -4,18 +4,6 @@ import React, { useState } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { injectIntl } from 'react-intl-next';
6
6
  import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
7
- var tabWrapperStyles = css({
8
- // increase specificity to make sure the tab style is overridden
9
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
10
- "&&& [role='tabpanel'][tabindex]": {
11
- padding: 0
12
- },
13
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
14
- "&&& [role='tablist']::before": {
15
- left: 0,
16
- right: 0
17
- }
18
- });
19
7
  var panelWrapperStyles = css({
20
8
  flexGrow: 1,
21
9
  maxWidth: '100%'
@@ -37,9 +25,7 @@ var TabGroupImpl = function TabGroupImpl(props) {
37
25
  var onChange = React.useCallback(function (index) {
38
26
  setActiveTab(index);
39
27
  }, [setActiveTab]);
40
- return jsx("div", {
41
- css: tabWrapperStyles
42
- }, jsx(Tabs, {
28
+ return jsx(Tabs, {
43
29
  id: "configPanelTabs-".concat(field.name),
44
30
  onChange: onChange,
45
31
  selected: activeTab
@@ -55,7 +41,7 @@ var TabGroupImpl = function TabGroupImpl(props) {
55
41
  }, jsx("div", {
56
42
  css: panelWrapperStyles
57
43
  }, renderPanel(field)));
58
- })));
44
+ }));
59
45
  };
60
46
  TabGroupImpl.displayName = 'TabGroup';
61
47
  var TabGroup = injectIntl(TabGroupImpl);
@@ -1,5 +1,5 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import { css } from '@emotion/react';
4
2
  import { R500 } from '@atlaskit/theme/colors';
5
- export var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-text-danger, ".concat(R500, ")"));
3
+ export var requiredIndicator = css({
4
+ color: "var(--ds-text-danger, ".concat(R500, ")")
5
+ });
@@ -3,7 +3,7 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Parameters, TransformAfter, TransformBefore } from '@atlaskit/editor-common/extensions';
4
4
  import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
5
5
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
6
+ import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { ExtensionState, RejectSave } from './types';
8
8
  export declare function updateState(state: Partial<ExtensionState>): import("@atlaskit/editor-common/types").Command;
9
9
  export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined): import("@atlaskit/editor-common/types").Command;
@@ -12,4 +12,5 @@ export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandl
12
12
  export declare const updateExtensionLayout: (layout: ExtensionLayout) => import("@atlaskit/editor-common/types").Command;
13
13
  export declare const removeExtension: (editorAnalyticsAPI?: EditorAnalyticsAPI) => import("@atlaskit/editor-common/types").Command;
14
14
  export declare const removeDescendantNodes: (sourceNode?: PMNode) => import("@atlaskit/editor-common/types").Command;
15
+ export declare const removeSelectedNodeWithAnalytics: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI) => Transaction;
15
16
  export declare const checkAndRemoveExtensionNode: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI) => Transaction;
@@ -3,7 +3,7 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Parameters, TransformAfter, TransformBefore } from '@atlaskit/editor-common/extensions';
4
4
  import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
5
5
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
6
+ import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { ExtensionState, RejectSave } from './types';
8
8
  export declare function updateState(state: Partial<ExtensionState>): import("@atlaskit/editor-common/types").Command;
9
9
  export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined): import("@atlaskit/editor-common/types").Command;
@@ -12,4 +12,5 @@ export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandl
12
12
  export declare const updateExtensionLayout: (layout: ExtensionLayout) => import("@atlaskit/editor-common/types").Command;
13
13
  export declare const removeExtension: (editorAnalyticsAPI?: EditorAnalyticsAPI) => import("@atlaskit/editor-common/types").Command;
14
14
  export declare const removeDescendantNodes: (sourceNode?: PMNode) => import("@atlaskit/editor-common/types").Command;
15
+ export declare const removeSelectedNodeWithAnalytics: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI) => Transaction;
15
16
  export declare const checkAndRemoveExtensionNode: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI) => Transaction;
@@ -29,15 +29,15 @@ const wrapperStyles = xcss({ margin: 'space.200' });
29
29
  const exampleWrapperStyles = css({ display: 'flex', flexDirection: 'row' });
30
30
 
31
31
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
32
- const column = (width: number | string) => css`
33
- width: ${width}px;
34
- margin: ${token('space.200', '16px')};
35
-
36
- h3 {
37
- border-bottom: 1px solid ${colors.N50};
38
- margin-bottom: ${token('space.200', '16px')};
39
- }
40
- `;
32
+ const column = (width: number | string) =>
33
+ css({
34
+ width: `${width}px`,
35
+ margin: token('space.200', '16px'),
36
+ h3: {
37
+ borderBottom: `1px solid ${colors.N50}`,
38
+ marginBottom: token('space.200', '16px'),
39
+ },
40
+ });
41
41
 
42
42
  const codeWrapperStyles = css({
43
43
  marginTop: token('space.200', '16px'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "1.1.7",
3
+ "version": "1.2.0",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,14 +24,14 @@
24
24
  ".": "./src/index.ts"
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^35.9.0",
27
+ "@atlaskit/adf-schema": "^35.9.2",
28
28
  "@atlaskit/adf-utils": "^19.0.0",
29
29
  "@atlaskit/analytics-next": "^9.2.0",
30
30
  "@atlaskit/avatar": "^21.5.0",
31
- "@atlaskit/button": "^17.12.0",
31
+ "@atlaskit/button": "^17.13.0",
32
32
  "@atlaskit/checkbox": "^13.1.0",
33
33
  "@atlaskit/datetime-picker": "^13.3.0",
34
- "@atlaskit/editor-common": "^78.28.0",
34
+ "@atlaskit/editor-common": "^78.30.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.10.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
37
37
  "@atlaskit/editor-plugin-context-identifier": "^1.0.0",
@@ -42,8 +42,8 @@
42
42
  "@atlaskit/editor-prosemirror": "3.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^2.9.0",
44
44
  "@atlaskit/editor-tables": "^2.6.0",
45
- "@atlaskit/empty-state": "^7.7.0",
46
- "@atlaskit/form": "^9.2.0",
45
+ "@atlaskit/empty-state": "^7.8.0",
46
+ "@atlaskit/form": "^9.3.0",
47
47
  "@atlaskit/icon": "^22.1.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.0",
49
49
  "@atlaskit/primitives": "^5.5.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/select": "^17.6.0",
53
53
  "@atlaskit/smart-user-picker": "^6.9.0",
54
54
  "@atlaskit/spinner": "^16.0.0",
55
- "@atlaskit/tabs": "^14.1.0",
55
+ "@atlaskit/tabs": "^15.0.0",
56
56
  "@atlaskit/textarea": "^5.2.0",
57
57
  "@atlaskit/textfield": "^6.1.0",
58
58
  "@atlaskit/theme": "^12.7.0",