@atlaskit/editor-common 77.0.0 → 77.0.2
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 +13 -0
- package/dist/cjs/analytics/types/paste-events.js +1 -0
- package/dist/cjs/analytics/types/smart-links.js +1 -0
- package/dist/cjs/extensions/module-helpers.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/rank.js +1 -3
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +1 -0
- package/dist/cjs/utils/count-nodes.js +2 -2
- package/dist/es2019/analytics/types/paste-events.js +1 -0
- package/dist/es2019/analytics/types/smart-links.js +1 -0
- package/dist/es2019/extensions/module-helpers.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/rank.js +1 -3
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -0
- package/dist/es2019/utils/count-nodes.js +2 -2
- package/dist/esm/analytics/types/paste-events.js +1 -0
- package/dist/esm/analytics/types/smart-links.js +1 -0
- package/dist/esm/extensions/module-helpers.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/rank.js +1 -3
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -0
- package/dist/esm/utils/count-nodes.js +2 -2
- package/dist/types/analytics/types/insert-events.d.ts +3 -1
- package/dist/types/analytics/types/paste-events.d.ts +1 -1
- package/dist/types/analytics/types/smart-links.d.ts +1 -1
- package/dist/types/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types/types/floating-toolbar.d.ts +1 -0
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +3 -1
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 77.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#68501](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68501) [`c813e900fdde`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c813e900fdde) - ED-21735: Added extension config panel support for MBE
|
|
8
|
+
- [#67948](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67948) [`28fcdf6793a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28fcdf6793a4) - Expand/collapse for panel and table color pickers
|
|
9
|
+
|
|
10
|
+
## 77.0.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#67703](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67703) [`d5303cb0f0cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5303cb0f0cb) - When a table is inserted via the table selector popup, an analytics event should be sent with the totalRowCount and totalColumnCount and the input method picker. Removed ASCII and TYPEAHEAD inputMethod from table selector command.
|
|
15
|
+
|
|
3
16
|
## 77.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
|
@@ -35,6 +35,7 @@ var PasteContents = exports.PasteContents = {
|
|
|
35
35
|
blockquote: 'blockquote',
|
|
36
36
|
blockCard: 'blockCard',
|
|
37
37
|
bodiedExtension: 'bodiedExtension',
|
|
38
|
+
multiBodiedExtension: 'multiBodiedExtension',
|
|
38
39
|
bulletList: 'bulletList',
|
|
39
40
|
codeBlock: 'codeBlock',
|
|
40
41
|
decisionList: 'decisionList',
|
|
@@ -12,6 +12,7 @@ var SmartLinkNodeContexts = exports.SmartLinkNodeContexts = {
|
|
|
12
12
|
decisionList: 'decisionList',
|
|
13
13
|
taskList: 'taskList',
|
|
14
14
|
bodiedExtension: 'bodiedExtension',
|
|
15
|
+
multiBodiedExtension: 'multiBodiedExtension',
|
|
15
16
|
listItem: 'listItem',
|
|
16
17
|
panel: 'panel',
|
|
17
18
|
mixed: 'mixed'
|
|
@@ -260,7 +260,7 @@ function shouldAddExtensionItemForNode(item, node) {
|
|
|
260
260
|
if (item.context.type === 'node' && item.context.nodeType === node.type) {
|
|
261
261
|
return true;
|
|
262
262
|
}
|
|
263
|
-
// for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension")
|
|
263
|
+
// for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension" | "multiBodiedExtension")
|
|
264
264
|
if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
|
|
265
265
|
return false;
|
|
266
266
|
}
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "77.0.
|
|
19
|
+
var packageVersion = "77.0.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/cjs/rank.js
CHANGED
|
@@ -24,9 +24,7 @@ var rankEditorPlugins = exports.rankEditorPlugins = {
|
|
|
24
24
|
// selection keymap needs to be above gap cursor keymap so it can set node selections from
|
|
25
25
|
// left/right arrows
|
|
26
26
|
'selectionKeymap', 'gapCursorKeymap', 'gapCursor', 'syncUrlText', 'fakeCursorToolbarPlugin', 'hyperLink', 'table', 'tableDecorations', 'hyperlinkInputRule', 'tablePMColResizing', 'hyperlinkKeymap', 'tableColResizing', 'undoRedoKeyMap', 'blockTypeKeyMap', 'tableEditing', 'filterStepsPlugin', 'pmCollab', 'collab', 'ruleInputRule', 'ruleKeymap', 'panel', 'media', 'mediaSingleKeymap', 'mediaEditor', 'unsupportedContent', 'jiraIssue', 'helpDialog', 'helpDialogKeymap', 'macro', 'expand', 'extension', 'layout', 'contextPanel', 'selectionToolbar', 'floatingToolbar', 'clearMarksOnChange', 'reactNodeView', 'history', 'undoRedoPlugin', 'codeBlockIndent', 'placeholder', 'width', 'maxContentSize', 'multilineContent', 'grid', 'mobileDimensions', 'scrollGutterPlugin', 'analytics', 'findReplace', 'selection', 'avatarGroup', 'viewUpdateSubscription', 'beforePrimaryToolbar', 'inlineCode'],
|
|
27
|
-
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension',
|
|
28
|
-
// Check with Lego Team if there is a different file to include the ranks, since this file is deprecated
|
|
29
|
-
'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
|
|
27
|
+
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension', 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
|
|
30
28
|
marks: [
|
|
31
29
|
// Fragment mark is both for inline and block elements
|
|
32
30
|
'fragment',
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "77.0.
|
|
25
|
+
var packageVersion = "77.0.2";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -174,6 +174,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
174
174
|
}, (0, _react2.jsx)(_button.default, {
|
|
175
175
|
ref: buttonRef,
|
|
176
176
|
"aria-label": title,
|
|
177
|
+
"aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
|
|
177
178
|
spacing: "compact",
|
|
178
179
|
onClick: togglePopup,
|
|
179
180
|
onKeyDown: function onKeyDown(event) {
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.countNodes = countNodes;
|
|
7
7
|
function countNodes(state) {
|
|
8
|
-
var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte;
|
|
8
|
+
var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte, _nodeTypes$multiBodie;
|
|
9
9
|
var nodeCount = {};
|
|
10
10
|
var extensionNodeCount = {};
|
|
11
11
|
var nodeTypes = state.schema.nodes;
|
|
12
|
-
var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name];
|
|
12
|
+
var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name, (_nodeTypes$multiBodie = nodeTypes.multiBodiedExtension) === null || _nodeTypes$multiBodie === void 0 ? void 0 : _nodeTypes$multiBodie.name];
|
|
13
13
|
state.doc.descendants(function (node) {
|
|
14
14
|
var _node$attrs;
|
|
15
15
|
var nodeName = node.type.name;
|
|
@@ -29,6 +29,7 @@ export const PasteContents = {
|
|
|
29
29
|
blockquote: 'blockquote',
|
|
30
30
|
blockCard: 'blockCard',
|
|
31
31
|
bodiedExtension: 'bodiedExtension',
|
|
32
|
+
multiBodiedExtension: 'multiBodiedExtension',
|
|
32
33
|
bulletList: 'bulletList',
|
|
33
34
|
codeBlock: 'codeBlock',
|
|
34
35
|
decisionList: 'decisionList',
|
|
@@ -156,7 +156,7 @@ function shouldAddExtensionItemForNode(item, node) {
|
|
|
156
156
|
if (item.context.type === 'node' && item.context.nodeType === node.type) {
|
|
157
157
|
return true;
|
|
158
158
|
}
|
|
159
|
-
// for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension")
|
|
159
|
+
// for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension" | "multiBodiedExtension")
|
|
160
160
|
if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "77.0.
|
|
3
|
+
const packageVersion = "77.0.2";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/es2019/rank.js
CHANGED
|
@@ -16,9 +16,7 @@ export const rankEditorPlugins = {
|
|
|
16
16
|
// selection keymap needs to be above gap cursor keymap so it can set node selections from
|
|
17
17
|
// left/right arrows
|
|
18
18
|
'selectionKeymap', 'gapCursorKeymap', 'gapCursor', 'syncUrlText', 'fakeCursorToolbarPlugin', 'hyperLink', 'table', 'tableDecorations', 'hyperlinkInputRule', 'tablePMColResizing', 'hyperlinkKeymap', 'tableColResizing', 'undoRedoKeyMap', 'blockTypeKeyMap', 'tableEditing', 'filterStepsPlugin', 'pmCollab', 'collab', 'ruleInputRule', 'ruleKeymap', 'panel', 'media', 'mediaSingleKeymap', 'mediaEditor', 'unsupportedContent', 'jiraIssue', 'helpDialog', 'helpDialogKeymap', 'macro', 'expand', 'extension', 'layout', 'contextPanel', 'selectionToolbar', 'floatingToolbar', 'clearMarksOnChange', 'reactNodeView', 'history', 'undoRedoPlugin', 'codeBlockIndent', 'placeholder', 'width', 'maxContentSize', 'multilineContent', 'grid', 'mobileDimensions', 'scrollGutterPlugin', 'analytics', 'findReplace', 'selection', 'avatarGroup', 'viewUpdateSubscription', 'beforePrimaryToolbar', 'inlineCode'],
|
|
19
|
-
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension',
|
|
20
|
-
// Check with Lego Team if there is a different file to include the ranks, since this file is deprecated
|
|
21
|
-
'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
|
|
19
|
+
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension', 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
|
|
22
20
|
marks: [
|
|
23
21
|
// Fragment mark is both for inline and block elements
|
|
24
22
|
'fragment',
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "77.0.
|
|
10
|
+
const packageVersion = "77.0.2";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export function countNodes(state) {
|
|
2
|
-
var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte;
|
|
2
|
+
var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte, _nodeTypes$multiBodie;
|
|
3
3
|
const nodeCount = {};
|
|
4
4
|
const extensionNodeCount = {};
|
|
5
5
|
const nodeTypes = state.schema.nodes;
|
|
6
|
-
const extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name];
|
|
6
|
+
const extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name, (_nodeTypes$multiBodie = nodeTypes.multiBodiedExtension) === null || _nodeTypes$multiBodie === void 0 ? void 0 : _nodeTypes$multiBodie.name];
|
|
7
7
|
state.doc.descendants(node => {
|
|
8
8
|
var _node$attrs;
|
|
9
9
|
const nodeName = node.type.name;
|
|
@@ -248,7 +248,7 @@ function shouldAddExtensionItemForNode(item, node) {
|
|
|
248
248
|
if (item.context.type === 'node' && item.context.nodeType === node.type) {
|
|
249
249
|
return true;
|
|
250
250
|
}
|
|
251
|
-
// for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension")
|
|
251
|
+
// for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension" | "multiBodiedExtension")
|
|
252
252
|
if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
|
|
253
253
|
return false;
|
|
254
254
|
}
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "77.0.
|
|
9
|
+
var packageVersion = "77.0.2";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/esm/rank.js
CHANGED
|
@@ -16,9 +16,7 @@ export var rankEditorPlugins = {
|
|
|
16
16
|
// selection keymap needs to be above gap cursor keymap so it can set node selections from
|
|
17
17
|
// left/right arrows
|
|
18
18
|
'selectionKeymap', 'gapCursorKeymap', 'gapCursor', 'syncUrlText', 'fakeCursorToolbarPlugin', 'hyperLink', 'table', 'tableDecorations', 'hyperlinkInputRule', 'tablePMColResizing', 'hyperlinkKeymap', 'tableColResizing', 'undoRedoKeyMap', 'blockTypeKeyMap', 'tableEditing', 'filterStepsPlugin', 'pmCollab', 'collab', 'ruleInputRule', 'ruleKeymap', 'panel', 'media', 'mediaSingleKeymap', 'mediaEditor', 'unsupportedContent', 'jiraIssue', 'helpDialog', 'helpDialogKeymap', 'macro', 'expand', 'extension', 'layout', 'contextPanel', 'selectionToolbar', 'floatingToolbar', 'clearMarksOnChange', 'reactNodeView', 'history', 'undoRedoPlugin', 'codeBlockIndent', 'placeholder', 'width', 'maxContentSize', 'multilineContent', 'grid', 'mobileDimensions', 'scrollGutterPlugin', 'analytics', 'findReplace', 'selection', 'avatarGroup', 'viewUpdateSubscription', 'beforePrimaryToolbar', 'inlineCode'],
|
|
19
|
-
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension',
|
|
20
|
-
// Check with Lego Team if there is a different file to include the ranks, since this file is deprecated
|
|
21
|
-
'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
|
|
19
|
+
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension', 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
|
|
22
20
|
marks: [
|
|
23
21
|
// Fragment mark is both for inline and block elements
|
|
24
22
|
'fragment',
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "77.0.
|
|
20
|
+
var packageVersion = "77.0.2";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -168,6 +168,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
168
168
|
}, jsx(Button, {
|
|
169
169
|
ref: buttonRef,
|
|
170
170
|
"aria-label": title,
|
|
171
|
+
"aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
|
|
171
172
|
spacing: "compact",
|
|
172
173
|
onClick: togglePopup,
|
|
173
174
|
onKeyDown: function onKeyDown(event) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export function countNodes(state) {
|
|
2
|
-
var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte;
|
|
2
|
+
var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte, _nodeTypes$multiBodie;
|
|
3
3
|
var nodeCount = {};
|
|
4
4
|
var extensionNodeCount = {};
|
|
5
5
|
var nodeTypes = state.schema.nodes;
|
|
6
|
-
var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name];
|
|
6
|
+
var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name, (_nodeTypes$multiBodie = nodeTypes.multiBodiedExtension) === null || _nodeTypes$multiBodie === void 0 ? void 0 : _nodeTypes$multiBodie.name];
|
|
7
7
|
state.doc.descendants(function (node) {
|
|
8
8
|
var _node$attrs;
|
|
9
9
|
var nodeName = node.type.name;
|
|
@@ -44,7 +44,9 @@ type InsertCodeBlockAEP = InsertAEP<ACTION_SUBJECT_ID.CODE_BLOCK, {
|
|
|
44
44
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU;
|
|
45
45
|
}, undefined>;
|
|
46
46
|
type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
|
|
47
|
-
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT;
|
|
47
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
|
|
48
|
+
totalRowCount?: number;
|
|
49
|
+
totalColumnCount?: number;
|
|
48
50
|
}, undefined>;
|
|
49
51
|
type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
|
|
50
52
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
|
|
@@ -11,7 +11,7 @@ export type PasteSource = 'fabric-editor' | 'apple-pages' | 'google-spreadsheets
|
|
|
11
11
|
export declare const PasteContents: {
|
|
12
12
|
[P in PasteContent]: P;
|
|
13
13
|
};
|
|
14
|
-
export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
|
|
14
|
+
export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'multiBodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
|
|
15
15
|
export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTION_SUBJECT_ID.PASTE_BLOCK_CARD | ACTION_SUBJECT_ID.PASTE_BODIED_EXTENSION | ACTION_SUBJECT_ID.PASTE_BULLET_LIST | ACTION_SUBJECT_ID.PASTE_CODE_BLOCK | ACTION_SUBJECT_ID.PASTE_DECISION_LIST | ACTION_SUBJECT_ID.PASTE_EXTENSION | ACTION_SUBJECT_ID.PASTE_HEADING | ACTION_SUBJECT_ID.PASTE_MEDIA_GROUP | ACTION_SUBJECT_ID.PASTE_MEDIA_SINGLE | ACTION_SUBJECT_ID.PASTE_ORDERED_LIST | ACTION_SUBJECT_ID.PASTE_PANEL | ACTION_SUBJECT_ID.PASTE_PARAGRAPH | ACTION_SUBJECT_ID.PASTE_RULE | ACTION_SUBJECT_ID.PASTE_TABLE | ACTION_SUBJECT_ID.PASTE_TABLE_CELL | ACTION_SUBJECT_ID.PASTE_TABLE_HEADER | ACTION_SUBJECT_ID.PASTE_TABLE_ROW | ACTION_SUBJECT_ID.PASTE_TASK_LIST | ACTION_SUBJECT_ID.PASTE_EXPAND | ACTION_SUBJECT_ID.PASTE_NESTED_EXPAND;
|
|
16
16
|
type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
|
|
17
17
|
type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
2
2
|
import type { InsertAEP } from './utils';
|
|
3
|
-
export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'panel' | 'taskList' | 'mixed';
|
|
3
|
+
export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'multiBodiedExtension' | 'panel' | 'taskList' | 'mixed';
|
|
4
4
|
export declare const SmartLinkNodeContexts: {
|
|
5
5
|
[P in SmartLinkNodeContext]: P;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension';
|
|
1
|
+
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension' | 'multiBodiedExtension';
|
|
4
4
|
export interface MacroAttributes {
|
|
5
5
|
type: ExtensionType;
|
|
6
6
|
attrs: {
|
|
@@ -21,5 +21,5 @@ export interface MacroProvider {
|
|
|
21
21
|
* If "macro" param is passed in, it will open macro browser for editing the macro
|
|
22
22
|
*/
|
|
23
23
|
openMacroBrowser(macroNode?: PmNode): Promise<MacroAttributes>;
|
|
24
|
-
autoConvert(link:
|
|
24
|
+
autoConvert(link: string): MacroAttributes | null;
|
|
25
25
|
}
|
|
@@ -151,6 +151,7 @@ type FloatingToolbarSelectBase<T extends {}, V = SelectOption> = {
|
|
|
151
151
|
type: 'select';
|
|
152
152
|
selectType: 'list' | 'emoji' | 'date' | 'color';
|
|
153
153
|
title?: string;
|
|
154
|
+
isAriaExpanded?: boolean;
|
|
154
155
|
options: V[];
|
|
155
156
|
hidden?: boolean;
|
|
156
157
|
hideExpandIcon?: boolean;
|
|
@@ -6,6 +6,7 @@ import type { Position as PopupPosition } from '../../ui/Popup/utils';
|
|
|
6
6
|
type Props = WithAnalyticsEventsProps & {
|
|
7
7
|
currentColor?: string;
|
|
8
8
|
title?: string;
|
|
9
|
+
isAriaExpanded?: boolean;
|
|
9
10
|
onChange?: (color: PaletteColor) => void;
|
|
10
11
|
colorPalette: PaletteColor[];
|
|
11
12
|
placement: string;
|
|
@@ -26,5 +27,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
26
27
|
skipFocusButtonAfterPick?: boolean;
|
|
27
28
|
absoluteOffset?: PopupPosition;
|
|
28
29
|
};
|
|
29
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
30
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
30
31
|
export default _default;
|
|
@@ -44,7 +44,9 @@ type InsertCodeBlockAEP = InsertAEP<ACTION_SUBJECT_ID.CODE_BLOCK, {
|
|
|
44
44
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU;
|
|
45
45
|
}, undefined>;
|
|
46
46
|
type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
|
|
47
|
-
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT;
|
|
47
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.PICKER | INPUT_METHOD.SHORTCUT;
|
|
48
|
+
totalRowCount?: number;
|
|
49
|
+
totalColumnCount?: number;
|
|
48
50
|
}, undefined>;
|
|
49
51
|
type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
|
|
50
52
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
|
|
@@ -11,7 +11,7 @@ export type PasteSource = 'fabric-editor' | 'apple-pages' | 'google-spreadsheets
|
|
|
11
11
|
export declare const PasteContents: {
|
|
12
12
|
[P in PasteContent]: P;
|
|
13
13
|
};
|
|
14
|
-
export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
|
|
14
|
+
export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'multiBodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
|
|
15
15
|
export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTION_SUBJECT_ID.PASTE_BLOCK_CARD | ACTION_SUBJECT_ID.PASTE_BODIED_EXTENSION | ACTION_SUBJECT_ID.PASTE_BULLET_LIST | ACTION_SUBJECT_ID.PASTE_CODE_BLOCK | ACTION_SUBJECT_ID.PASTE_DECISION_LIST | ACTION_SUBJECT_ID.PASTE_EXTENSION | ACTION_SUBJECT_ID.PASTE_HEADING | ACTION_SUBJECT_ID.PASTE_MEDIA_GROUP | ACTION_SUBJECT_ID.PASTE_MEDIA_SINGLE | ACTION_SUBJECT_ID.PASTE_ORDERED_LIST | ACTION_SUBJECT_ID.PASTE_PANEL | ACTION_SUBJECT_ID.PASTE_PARAGRAPH | ACTION_SUBJECT_ID.PASTE_RULE | ACTION_SUBJECT_ID.PASTE_TABLE | ACTION_SUBJECT_ID.PASTE_TABLE_CELL | ACTION_SUBJECT_ID.PASTE_TABLE_HEADER | ACTION_SUBJECT_ID.PASTE_TABLE_ROW | ACTION_SUBJECT_ID.PASTE_TASK_LIST | ACTION_SUBJECT_ID.PASTE_EXPAND | ACTION_SUBJECT_ID.PASTE_NESTED_EXPAND;
|
|
16
16
|
type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
|
|
17
17
|
type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
2
2
|
import type { InsertAEP } from './utils';
|
|
3
|
-
export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'panel' | 'taskList' | 'mixed';
|
|
3
|
+
export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'multiBodiedExtension' | 'panel' | 'taskList' | 'mixed';
|
|
4
4
|
export declare const SmartLinkNodeContexts: {
|
|
5
5
|
[P in SmartLinkNodeContext]: P;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension';
|
|
1
|
+
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension' | 'multiBodiedExtension';
|
|
4
4
|
export interface MacroAttributes {
|
|
5
5
|
type: ExtensionType;
|
|
6
6
|
attrs: {
|
|
@@ -21,5 +21,5 @@ export interface MacroProvider {
|
|
|
21
21
|
* If "macro" param is passed in, it will open macro browser for editing the macro
|
|
22
22
|
*/
|
|
23
23
|
openMacroBrowser(macroNode?: PmNode): Promise<MacroAttributes>;
|
|
24
|
-
autoConvert(link:
|
|
24
|
+
autoConvert(link: string): MacroAttributes | null;
|
|
25
25
|
}
|
|
@@ -151,6 +151,7 @@ type FloatingToolbarSelectBase<T extends {}, V = SelectOption> = {
|
|
|
151
151
|
type: 'select';
|
|
152
152
|
selectType: 'list' | 'emoji' | 'date' | 'color';
|
|
153
153
|
title?: string;
|
|
154
|
+
isAriaExpanded?: boolean;
|
|
154
155
|
options: V[];
|
|
155
156
|
hidden?: boolean;
|
|
156
157
|
hideExpandIcon?: boolean;
|
|
@@ -6,6 +6,7 @@ import type { Position as PopupPosition } from '../../ui/Popup/utils';
|
|
|
6
6
|
type Props = WithAnalyticsEventsProps & {
|
|
7
7
|
currentColor?: string;
|
|
8
8
|
title?: string;
|
|
9
|
+
isAriaExpanded?: boolean;
|
|
9
10
|
onChange?: (color: PaletteColor) => void;
|
|
10
11
|
colorPalette: PaletteColor[];
|
|
11
12
|
placement: string;
|
|
@@ -26,5 +27,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
26
27
|
skipFocusButtonAfterPick?: boolean;
|
|
27
28
|
absoluteOffset?: PopupPosition;
|
|
28
29
|
};
|
|
29
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
30
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
30
31
|
export default _default;
|
package/package.json
CHANGED