@atlaskit/editor-common 111.4.0 → 111.6.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 +22 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/analytics/types/table-events.js +1 -0
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/selection/index.js +6 -0
- package/dist/cjs/selection/utils.js +4 -0
- package/dist/cjs/styles/shared/sync-block.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/analytics/types/table-events.js +1 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/selection/index.js +1 -1
- package/dist/es2019/selection/utils.js +3 -0
- package/dist/es2019/styles/shared/sync-block.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/analytics/types/table-events.js +1 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/selection/index.js +1 -1
- package/dist/esm/selection/utils.js +3 -0
- package/dist/esm/styles/shared/sync-block.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types/analytics/types/table-events.d.ts +7 -3
- package/dist/types/extensibility/Extension/Extension/index.d.ts +1 -1
- package/dist/types/link/LinkSearch/index.d.ts +1 -1
- package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types/selection/index.d.ts +1 -1
- package/dist/types/selection/utils.d.ts +1 -0
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +7 -3
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkSearch/index.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types-ts4.5/selection/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/utils.d.ts +1 -0
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`38de936c97015`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38de936c97015) -
|
|
8
|
+
EDITOR-3707 Fire UI event when native/ legacy sticky headers are enabled
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 111.5.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`ca937489954b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ca937489954b8) -
|
|
19
|
+
Introduce new insertMediaSingle on media plugin and deprecate old action version.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 111.4.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -536,6 +536,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
536
536
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
537
537
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
538
538
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
539
|
+
ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
|
|
539
540
|
return ACTION_SUBJECT_ID;
|
|
540
541
|
}({});
|
|
541
542
|
var FLOATING_CONTROLS_TITLE = exports.FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -47,6 +47,7 @@ var TABLE_ACTION = exports.TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
47
47
|
TABLE_ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
|
|
48
48
|
TABLE_ACTION["TABLE_EDITOR_HEIGHT_INFO"] = "tableEditorHeightInformation";
|
|
49
49
|
TABLE_ACTION["TABLE_RENDERER_HEIGHT_INFO"] = "tableRendererHeightInformation";
|
|
50
|
+
TABLE_ACTION["STICKY_HEADER_METHOD_TOGGLED"] = "stickyHeaderMethodToggled";
|
|
50
51
|
return TABLE_ACTION;
|
|
51
52
|
}({});
|
|
52
53
|
var TABLE_BREAKOUT = exports.TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
|
|
@@ -13,9 +13,9 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsContext"));
|
|
15
15
|
var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
16
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
16
17
|
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
17
18
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
18
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
19
19
|
var _messages = require("../../messages");
|
|
20
20
|
var _StyledButton = require("./StyledButton");
|
|
21
21
|
var _useLinkOverlayAnalyticsEvents = require("./useLinkOverlayAnalyticsEvents");
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "111.
|
|
22
|
+
var packageVersion = "111.5.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -141,6 +141,12 @@ Object.defineProperty(exports, "isValidTargetNode", {
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
exports.selectNode = void 0;
|
|
144
|
+
Object.defineProperty(exports, "selectionIsAtTheBeginningOfBlock", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _utils2.selectionIsAtTheBeginningOfBlock;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
144
150
|
Object.defineProperty(exports, "setGapCursorAtPos", {
|
|
145
151
|
enumerable: true,
|
|
146
152
|
get: function get() {
|
|
@@ -12,6 +12,7 @@ exports.endPositionOfParent = endPositionOfParent;
|
|
|
12
12
|
exports.isMultiBlockRange = exports.expandToBlockRange = exports.expandSelectionToBlockRange = exports.expandSelectionBounds = void 0;
|
|
13
13
|
exports.isMultiBlockSelection = isMultiBlockSelection;
|
|
14
14
|
exports.isSelectionAtStartOfNode = exports.isSelectionAtEndOfNode = void 0;
|
|
15
|
+
exports.selectionIsAtTheBeginningOfBlock = selectionIsAtTheBeginningOfBlock;
|
|
15
16
|
exports.startPositionOfParent = startPositionOfParent;
|
|
16
17
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
17
18
|
var _utils = require("@atlaskit/editor-tables/utils");
|
|
@@ -68,6 +69,9 @@ function atTheEndOfBlock(state) {
|
|
|
68
69
|
}
|
|
69
70
|
function atTheBeginningOfBlock(state) {
|
|
70
71
|
var selection = state.selection;
|
|
72
|
+
return selectionIsAtTheBeginningOfBlock(selection);
|
|
73
|
+
}
|
|
74
|
+
function selectionIsAtTheBeginningOfBlock(selection) {
|
|
71
75
|
var $from = selection.$from;
|
|
72
76
|
if (selection instanceof _selection.GapCursorSelection) {
|
|
73
77
|
return false;
|
|
@@ -15,7 +15,7 @@ var SyncBlockRendererDataAttributeName = exports.SyncBlockRendererDataAttributeN
|
|
|
15
15
|
var bodiedPrefix = 'ak-editor-bodied-sync-block';
|
|
16
16
|
var BodiedSyncBlockSharedCssClassName = exports.BodiedSyncBlockSharedCssClassName = {
|
|
17
17
|
prefix: bodiedPrefix,
|
|
18
|
-
renderer: "".concat(
|
|
18
|
+
renderer: "".concat(bodiedPrefix, "__renderer"),
|
|
19
19
|
content: "".concat(bodiedPrefix, "__content"),
|
|
20
20
|
selectionInside: "".concat(bodiedPrefix, "__selection_inside")
|
|
21
21
|
};
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "111.
|
|
27
|
+
var packageVersion = "111.5.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -530,6 +530,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
530
530
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
531
531
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
532
532
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
533
|
+
ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
|
|
533
534
|
return ACTION_SUBJECT_ID;
|
|
534
535
|
}({});
|
|
535
536
|
export let FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -41,6 +41,7 @@ export let TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
41
41
|
TABLE_ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
|
|
42
42
|
TABLE_ACTION["TABLE_EDITOR_HEIGHT_INFO"] = "tableEditorHeightInformation";
|
|
43
43
|
TABLE_ACTION["TABLE_RENDERER_HEIGHT_INFO"] = "tableRendererHeightInformation";
|
|
44
|
+
TABLE_ACTION["STICKY_HEADER_METHOD_TOGGLED"] = "stickyHeaderMethodToggled";
|
|
44
45
|
return TABLE_ACTION;
|
|
45
46
|
}({});
|
|
46
47
|
export let TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
|
|
@@ -10,9 +10,9 @@ import { jsx } from '@emotion/react';
|
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
12
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
13
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
13
14
|
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
14
15
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
15
|
-
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
16
16
|
import { cardMessages as messages } from '../../messages';
|
|
17
17
|
import { StyledButton } from './StyledButton';
|
|
18
18
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "111.
|
|
7
|
+
const packageVersion = "111.5.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -12,7 +12,7 @@ export { isIgnored } from './gap-cursor/utils/is-ignored';
|
|
|
12
12
|
export { isValidTargetNode } from './gap-cursor/utils/is-valid-target-node';
|
|
13
13
|
export { setGapCursorSelection } from './gap-cursor/utils/setGapCursorSelection';
|
|
14
14
|
export { hideCaretModifier, gapCursorStyles } from './gap-cursor/styles';
|
|
15
|
-
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent } from './utils';
|
|
15
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, selectionIsAtTheBeginningOfBlock, startPositionOfParent } from './utils';
|
|
16
16
|
export function getNodeSelectionAnalyticsPayload(selection) {
|
|
17
17
|
if (selection instanceof NodeSelection) {
|
|
18
18
|
return {
|
|
@@ -9,7 +9,7 @@ export const SyncBlockRendererDataAttributeName = 'data-sync-block-renderer';
|
|
|
9
9
|
const bodiedPrefix = 'ak-editor-bodied-sync-block';
|
|
10
10
|
export const BodiedSyncBlockSharedCssClassName = {
|
|
11
11
|
prefix: bodiedPrefix,
|
|
12
|
-
renderer: `${
|
|
12
|
+
renderer: `${bodiedPrefix}__renderer`,
|
|
13
13
|
content: `${bodiedPrefix}__content`,
|
|
14
14
|
selectionInside: `${bodiedPrefix}__selection_inside`
|
|
15
15
|
};
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "111.
|
|
17
|
+
const packageVersion = "111.5.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -530,6 +530,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
530
530
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
531
531
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
532
532
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
533
|
+
ACTION_SUBJECT_ID["TABLE_STICKY_HEADER"] = "tableStickyHeader";
|
|
533
534
|
return ACTION_SUBJECT_ID;
|
|
534
535
|
}({});
|
|
535
536
|
export var FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -41,6 +41,7 @@ export var TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
41
41
|
TABLE_ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
|
|
42
42
|
TABLE_ACTION["TABLE_EDITOR_HEIGHT_INFO"] = "tableEditorHeightInformation";
|
|
43
43
|
TABLE_ACTION["TABLE_RENDERER_HEIGHT_INFO"] = "tableRendererHeightInformation";
|
|
44
|
+
TABLE_ACTION["STICKY_HEADER_METHOD_TOGGLED"] = "stickyHeaderMethodToggled";
|
|
44
45
|
return TABLE_ACTION;
|
|
45
46
|
}({});
|
|
46
47
|
export var TABLE_BREAKOUT = /*#__PURE__*/function (TABLE_BREAKOUT) {
|
|
@@ -12,9 +12,9 @@ import { jsx } from '@emotion/react';
|
|
|
12
12
|
import { useIntl } from 'react-intl-next';
|
|
13
13
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
14
14
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
15
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
15
16
|
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
16
17
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
17
|
-
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
18
18
|
import { cardMessages as messages } from '../../messages';
|
|
19
19
|
import { StyledButton } from './StyledButton';
|
|
20
20
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "111.
|
|
13
|
+
var packageVersion = "111.5.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -12,7 +12,7 @@ export { isIgnored } from './gap-cursor/utils/is-ignored';
|
|
|
12
12
|
export { isValidTargetNode } from './gap-cursor/utils/is-valid-target-node';
|
|
13
13
|
export { setGapCursorSelection } from './gap-cursor/utils/setGapCursorSelection';
|
|
14
14
|
export { hideCaretModifier, gapCursorStyles } from './gap-cursor/styles';
|
|
15
|
-
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent } from './utils';
|
|
15
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, selectionIsAtTheBeginningOfBlock, startPositionOfParent } from './utils';
|
|
16
16
|
export function getNodeSelectionAnalyticsPayload(selection) {
|
|
17
17
|
if (selection instanceof NodeSelection) {
|
|
18
18
|
return {
|
|
@@ -53,6 +53,9 @@ export function atTheEndOfBlock(state) {
|
|
|
53
53
|
}
|
|
54
54
|
export function atTheBeginningOfBlock(state) {
|
|
55
55
|
var selection = state.selection;
|
|
56
|
+
return selectionIsAtTheBeginningOfBlock(selection);
|
|
57
|
+
}
|
|
58
|
+
export function selectionIsAtTheBeginningOfBlock(selection) {
|
|
56
59
|
var $from = selection.$from;
|
|
57
60
|
if (selection instanceof GapCursorSelection) {
|
|
58
61
|
return false;
|
|
@@ -9,7 +9,7 @@ export var SyncBlockRendererDataAttributeName = 'data-sync-block-renderer';
|
|
|
9
9
|
var bodiedPrefix = 'ak-editor-bodied-sync-block';
|
|
10
10
|
export var BodiedSyncBlockSharedCssClassName = {
|
|
11
11
|
prefix: bodiedPrefix,
|
|
12
|
-
renderer: "".concat(
|
|
12
|
+
renderer: "".concat(bodiedPrefix, "__renderer"),
|
|
13
13
|
content: "".concat(bodiedPrefix, "__content"),
|
|
14
14
|
selectionInside: "".concat(bodiedPrefix, "__selection_inside")
|
|
15
15
|
};
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "111.
|
|
24
|
+
var packageVersion = "111.5.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -521,7 +521,8 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
521
521
|
REFERENCE_SYNCED_BLOCK_CREATE = "referenceSyncedBlockCreate",
|
|
522
522
|
SYNCED_BLOCK_DELETE = "syncedBlockDelete",
|
|
523
523
|
SYNCED_BLOCK_GET_SOURCE_INFO = "syncedBlockGetSourceInfo",
|
|
524
|
-
SYNCED_BLOCK_FETCH = "syncedBlockFetch"
|
|
524
|
+
SYNCED_BLOCK_FETCH = "syncedBlockFetch",
|
|
525
|
+
TABLE_STICKY_HEADER = "tableStickyHeader"
|
|
525
526
|
}
|
|
526
527
|
export declare enum FLOATING_CONTROLS_TITLE {
|
|
527
528
|
CODE_BLOCK = "codeBlockFloatingControls",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
2
2
|
import type { EditorBreakpointKey } from '../../utils/analytics';
|
|
3
|
-
import type { ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
3
|
+
import type { ACTION_SUBJECT, INPUT_METHOD, ACTION_SUBJECT_ID } from './enums';
|
|
4
4
|
import type { OperationalAEP, TableAEP, UIAEP } from './utils';
|
|
5
5
|
export declare enum TABLE_ACTION {
|
|
6
6
|
DELETED = "deleted",
|
|
@@ -43,7 +43,8 @@ export declare enum TABLE_ACTION {
|
|
|
43
43
|
TABLE_CELL_BACKGROUND_FIXED = "tableCellBackgroundFixed",
|
|
44
44
|
TABLE_WIDTH_INFO = "tableWidthInformation",
|
|
45
45
|
TABLE_EDITOR_HEIGHT_INFO = "tableEditorHeightInformation",
|
|
46
|
-
TABLE_RENDERER_HEIGHT_INFO = "tableRendererHeightInformation"
|
|
46
|
+
TABLE_RENDERER_HEIGHT_INFO = "tableRendererHeightInformation",
|
|
47
|
+
STICKY_HEADER_METHOD_TOGGLED = "stickyHeaderMethodToggled"
|
|
47
48
|
}
|
|
48
49
|
export declare enum TABLE_BREAKOUT {
|
|
49
50
|
WIDE = "wide",
|
|
@@ -231,5 +232,8 @@ type TableHeightInfoAEP = TableAEP<TABLE_ACTION.TABLE_EDITOR_HEIGHT_INFO, {
|
|
|
231
232
|
tableHeight: number;
|
|
232
233
|
}>;
|
|
233
234
|
}, undefined>;
|
|
234
|
-
|
|
235
|
+
type TableStickyHeaderEnabledAEP = UIAEP<TABLE_ACTION.STICKY_HEADER_METHOD_TOGGLED, ACTION_SUBJECT.TABLE, ACTION_SUBJECT_ID.TABLE_STICKY_HEADER, {
|
|
236
|
+
nativeStickyHeaderEnabled: boolean;
|
|
237
|
+
}, undefined>;
|
|
238
|
+
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableBackgroundColorFixAEP | TableChangedAlignmentAEP | TableWidthInfoAEP | TableHeightInfoAEP | TableStickyHeaderEnabledAEP;
|
|
235
239
|
export {};
|
|
@@ -29,7 +29,7 @@ export interface Props {
|
|
|
29
29
|
view: EditorView;
|
|
30
30
|
}
|
|
31
31
|
declare const _default: {
|
|
32
|
-
new (props:
|
|
32
|
+
new (props: Props & OverflowShadowProps): {
|
|
33
33
|
overflowContainer?: HTMLElement | null;
|
|
34
34
|
container?: HTMLElement;
|
|
35
35
|
shadowObserver?: import("../../../ui").ShadowObserver;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type RecentSearchProps } from './types';
|
|
3
3
|
import { type WithActivityProviderProps } from './withActivityProvider';
|
|
4
4
|
declare const _default: {
|
|
5
|
-
new (props:
|
|
5
|
+
new (props: import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps): {
|
|
6
6
|
renderNode: (providers: import("../../provider-factory").Providers) => React.JSX.Element;
|
|
7
7
|
render(): React.JSX.Element;
|
|
8
8
|
context: unknown;
|
|
@@ -10,7 +10,7 @@ export interface WithActivityProviderProps {
|
|
|
10
10
|
activityProvider: ActivityProvider;
|
|
11
11
|
}
|
|
12
12
|
export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props & WithActivityProviderProps>>): {
|
|
13
|
-
new (props:
|
|
13
|
+
new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps): {
|
|
14
14
|
renderNode: (providers: Providers) => React.JSX.Element;
|
|
15
15
|
render(): React.JSX.Element;
|
|
16
16
|
context: unknown;
|
|
@@ -11,7 +11,7 @@ export { isIgnored } from './gap-cursor/utils/is-ignored';
|
|
|
11
11
|
export { isValidTargetNode } from './gap-cursor/utils/is-valid-target-node';
|
|
12
12
|
export { setGapCursorSelection } from './gap-cursor/utils/setGapCursorSelection';
|
|
13
13
|
export { hideCaretModifier, gapCursorStyles } from './gap-cursor/styles';
|
|
14
|
-
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent, } from './utils';
|
|
14
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, selectionIsAtTheBeginningOfBlock, startPositionOfParent, } from './utils';
|
|
15
15
|
export declare function getNodeSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
16
16
|
export declare function getAllSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
17
17
|
export declare function getCellSelectionAnalyticsPayload(state: EditorState): AnalyticsEventPayload | undefined;
|
|
@@ -7,6 +7,7 @@ export declare function atTheEndOfDoc(state: EditorState): boolean;
|
|
|
7
7
|
export declare function atTheBeginningOfDoc(state: EditorState): boolean;
|
|
8
8
|
export declare function atTheEndOfBlock(state: EditorState): boolean;
|
|
9
9
|
export declare function atTheBeginningOfBlock(state: EditorState): boolean;
|
|
10
|
+
export declare function selectionIsAtTheBeginningOfBlock(selection: Selection): boolean;
|
|
10
11
|
export declare function startPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
11
12
|
export declare function endPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
12
13
|
/**
|
|
@@ -19,7 +19,7 @@ export interface OverflowShadowOptions {
|
|
|
19
19
|
useShadowObserver?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions): {
|
|
22
|
-
new (props:
|
|
22
|
+
new (props: P & OverflowShadowProps): {
|
|
23
23
|
overflowContainer?: HTMLElement | null;
|
|
24
24
|
container?: HTMLElement;
|
|
25
25
|
shadowObserver?: ShadowObserver;
|
|
@@ -521,7 +521,8 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
521
521
|
REFERENCE_SYNCED_BLOCK_CREATE = "referenceSyncedBlockCreate",
|
|
522
522
|
SYNCED_BLOCK_DELETE = "syncedBlockDelete",
|
|
523
523
|
SYNCED_BLOCK_GET_SOURCE_INFO = "syncedBlockGetSourceInfo",
|
|
524
|
-
SYNCED_BLOCK_FETCH = "syncedBlockFetch"
|
|
524
|
+
SYNCED_BLOCK_FETCH = "syncedBlockFetch",
|
|
525
|
+
TABLE_STICKY_HEADER = "tableStickyHeader"
|
|
525
526
|
}
|
|
526
527
|
export declare enum FLOATING_CONTROLS_TITLE {
|
|
527
528
|
CODE_BLOCK = "codeBlockFloatingControls",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
2
2
|
import type { EditorBreakpointKey } from '../../utils/analytics';
|
|
3
|
-
import type { ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
3
|
+
import type { ACTION_SUBJECT, INPUT_METHOD, ACTION_SUBJECT_ID } from './enums';
|
|
4
4
|
import type { OperationalAEP, TableAEP, UIAEP } from './utils';
|
|
5
5
|
export declare enum TABLE_ACTION {
|
|
6
6
|
DELETED = "deleted",
|
|
@@ -43,7 +43,8 @@ export declare enum TABLE_ACTION {
|
|
|
43
43
|
TABLE_CELL_BACKGROUND_FIXED = "tableCellBackgroundFixed",
|
|
44
44
|
TABLE_WIDTH_INFO = "tableWidthInformation",
|
|
45
45
|
TABLE_EDITOR_HEIGHT_INFO = "tableEditorHeightInformation",
|
|
46
|
-
TABLE_RENDERER_HEIGHT_INFO = "tableRendererHeightInformation"
|
|
46
|
+
TABLE_RENDERER_HEIGHT_INFO = "tableRendererHeightInformation",
|
|
47
|
+
STICKY_HEADER_METHOD_TOGGLED = "stickyHeaderMethodToggled"
|
|
47
48
|
}
|
|
48
49
|
export declare enum TABLE_BREAKOUT {
|
|
49
50
|
WIDE = "wide",
|
|
@@ -231,5 +232,8 @@ type TableHeightInfoAEP = TableAEP<TABLE_ACTION.TABLE_EDITOR_HEIGHT_INFO, {
|
|
|
231
232
|
tableHeight: number;
|
|
232
233
|
}>;
|
|
233
234
|
}, undefined>;
|
|
234
|
-
|
|
235
|
+
type TableStickyHeaderEnabledAEP = UIAEP<TABLE_ACTION.STICKY_HEADER_METHOD_TOGGLED, ACTION_SUBJECT.TABLE, ACTION_SUBJECT_ID.TABLE_STICKY_HEADER, {
|
|
236
|
+
nativeStickyHeaderEnabled: boolean;
|
|
237
|
+
}, undefined>;
|
|
238
|
+
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableBackgroundColorFixAEP | TableChangedAlignmentAEP | TableWidthInfoAEP | TableHeightInfoAEP | TableStickyHeaderEnabledAEP;
|
|
235
239
|
export {};
|
|
@@ -29,7 +29,7 @@ export interface Props {
|
|
|
29
29
|
view: EditorView;
|
|
30
30
|
}
|
|
31
31
|
declare const _default: {
|
|
32
|
-
new (props:
|
|
32
|
+
new (props: Props & OverflowShadowProps): {
|
|
33
33
|
overflowContainer?: HTMLElement | null;
|
|
34
34
|
container?: HTMLElement;
|
|
35
35
|
shadowObserver?: import("../../../ui").ShadowObserver;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type RecentSearchProps } from './types';
|
|
3
3
|
import { type WithActivityProviderProps } from './withActivityProvider';
|
|
4
4
|
declare const _default: {
|
|
5
|
-
new (props:
|
|
5
|
+
new (props: import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps): {
|
|
6
6
|
renderNode: (providers: import("../../provider-factory").Providers) => React.JSX.Element;
|
|
7
7
|
render(): React.JSX.Element;
|
|
8
8
|
context: unknown;
|
|
@@ -10,7 +10,7 @@ export interface WithActivityProviderProps {
|
|
|
10
10
|
activityProvider: ActivityProvider;
|
|
11
11
|
}
|
|
12
12
|
export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props & WithActivityProviderProps>>): {
|
|
13
|
-
new (props:
|
|
13
|
+
new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps): {
|
|
14
14
|
renderNode: (providers: Providers) => React.JSX.Element;
|
|
15
15
|
render(): React.JSX.Element;
|
|
16
16
|
context: unknown;
|
|
@@ -11,7 +11,7 @@ export { isIgnored } from './gap-cursor/utils/is-ignored';
|
|
|
11
11
|
export { isValidTargetNode } from './gap-cursor/utils/is-valid-target-node';
|
|
12
12
|
export { setGapCursorSelection } from './gap-cursor/utils/setGapCursorSelection';
|
|
13
13
|
export { hideCaretModifier, gapCursorStyles } from './gap-cursor/styles';
|
|
14
|
-
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent, } from './utils';
|
|
14
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, deleteSelectedRange, endPositionOfParent, expandSelectionBounds, expandSelectionToBlockRange, expandToBlockRange, isMultiBlockRange, isMultiBlockSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, selectionIsAtTheBeginningOfBlock, startPositionOfParent, } from './utils';
|
|
15
15
|
export declare function getNodeSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
16
16
|
export declare function getAllSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
17
17
|
export declare function getCellSelectionAnalyticsPayload(state: EditorState): AnalyticsEventPayload | undefined;
|
|
@@ -7,6 +7,7 @@ export declare function atTheEndOfDoc(state: EditorState): boolean;
|
|
|
7
7
|
export declare function atTheBeginningOfDoc(state: EditorState): boolean;
|
|
8
8
|
export declare function atTheEndOfBlock(state: EditorState): boolean;
|
|
9
9
|
export declare function atTheBeginningOfBlock(state: EditorState): boolean;
|
|
10
|
+
export declare function selectionIsAtTheBeginningOfBlock(selection: Selection): boolean;
|
|
10
11
|
export declare function startPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
11
12
|
export declare function endPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
12
13
|
/**
|
|
@@ -19,7 +19,7 @@ export interface OverflowShadowOptions {
|
|
|
19
19
|
useShadowObserver?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions): {
|
|
22
|
-
new (props:
|
|
22
|
+
new (props: P & OverflowShadowProps): {
|
|
23
23
|
overflowContainer?: HTMLElement | null;
|
|
24
24
|
container?: HTMLElement;
|
|
25
25
|
shadowObserver?: ShadowObserver;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.
|
|
3
|
+
"version": "111.6.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@atlaskit/editor-toolbar": "^0.18.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
52
52
|
"@atlaskit/emoji": "^69.9.0",
|
|
53
|
-
"@atlaskit/icon": "^29.
|
|
53
|
+
"@atlaskit/icon": "^29.4.0",
|
|
54
54
|
"@atlaskit/icon-object": "^7.4.0",
|
|
55
55
|
"@atlaskit/link": "^3.3.0",
|
|
56
|
-
"@atlaskit/link-datasource": "^4.
|
|
56
|
+
"@atlaskit/link-datasource": "^4.31.0",
|
|
57
57
|
"@atlaskit/link-picker": "^4.2.0",
|
|
58
58
|
"@atlaskit/media-card": "^79.12.0",
|
|
59
59
|
"@atlaskit/media-client": "^35.7.0",
|
|
@@ -75,15 +75,15 @@
|
|
|
75
75
|
"@atlaskit/react-ufo": "^4.16.0",
|
|
76
76
|
"@atlaskit/section-message": "^8.11.0",
|
|
77
77
|
"@atlaskit/smart-card": "^43.19.0",
|
|
78
|
-
"@atlaskit/smart-user-picker": "^8.
|
|
78
|
+
"@atlaskit/smart-user-picker": "^8.8.0",
|
|
79
79
|
"@atlaskit/spinner": "^19.0.0",
|
|
80
80
|
"@atlaskit/status": "^3.0.0",
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^16.8.0",
|
|
85
85
|
"@atlaskit/tokens": "^9.1.0",
|
|
86
|
-
"@atlaskit/tooltip": "^20.
|
|
86
|
+
"@atlaskit/tooltip": "^20.12.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
88
88
|
"@babel/runtime": "^7.0.0",
|
|
89
89
|
"@compiled/react": "^0.18.6",
|