@atlaskit/editor-common 111.3.0 → 111.5.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/monitoring/error.js +1 -1
- package/dist/cjs/selection/index.js +6 -0
- package/dist/cjs/selection/utils.js +4 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- 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/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- 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/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- 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 +1 -0
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ca937489954b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ca937489954b8) -
|
|
8
|
+
Introduce new insertMediaSingle on media plugin and deprecate old action version.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 111.4.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`e8f5c745198b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8f5c745198b6) -
|
|
19
|
+
add sampled "renderer rendered" event
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 111.3.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -146,6 +146,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
146
146
|
ACTION["VISITED"] = "visited";
|
|
147
147
|
ACTION["WITH_PLUGIN_STATE_CALLED"] = "withPluginStateCalled";
|
|
148
148
|
ACTION["RENDERED"] = "rendered";
|
|
149
|
+
ACTION["RENDERED_SAMPLED"] = "renderedSampled";
|
|
149
150
|
ACTION["ON_EDITOR_READY_CALLBACK"] = "onEditorReadyCallback";
|
|
150
151
|
/**
|
|
151
152
|
* @private
|
|
@@ -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 = "
|
|
22
|
+
var packageVersion = "111.4.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;
|
|
@@ -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 = "
|
|
27
|
+
var packageVersion = "111.4.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -140,6 +140,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
140
140
|
ACTION["VISITED"] = "visited";
|
|
141
141
|
ACTION["WITH_PLUGIN_STATE_CALLED"] = "withPluginStateCalled";
|
|
142
142
|
ACTION["RENDERED"] = "rendered";
|
|
143
|
+
ACTION["RENDERED_SAMPLED"] = "renderedSampled";
|
|
143
144
|
ACTION["ON_EDITOR_READY_CALLBACK"] = "onEditorReadyCallback";
|
|
144
145
|
/**
|
|
145
146
|
* @private
|
|
@@ -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 = "
|
|
7
|
+
const packageVersion = "111.4.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 {
|
|
@@ -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 = "
|
|
17
|
+
const packageVersion = "111.4.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -140,6 +140,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
140
140
|
ACTION["VISITED"] = "visited";
|
|
141
141
|
ACTION["WITH_PLUGIN_STATE_CALLED"] = "withPluginStateCalled";
|
|
142
142
|
ACTION["RENDERED"] = "rendered";
|
|
143
|
+
ACTION["RENDERED_SAMPLED"] = "renderedSampled";
|
|
143
144
|
ACTION["ON_EDITOR_READY_CALLBACK"] = "onEditorReadyCallback";
|
|
144
145
|
/**
|
|
145
146
|
* @private
|
|
@@ -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 = "
|
|
13
|
+
var packageVersion = "111.4.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;
|
|
@@ -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 = "
|
|
24
|
+
var packageVersion = "111.4.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -139,6 +139,7 @@ export declare enum ACTION {
|
|
|
139
139
|
VISITED = "visited",
|
|
140
140
|
WITH_PLUGIN_STATE_CALLED = "withPluginStateCalled",
|
|
141
141
|
RENDERED = "rendered",
|
|
142
|
+
RENDERED_SAMPLED = "renderedSampled",
|
|
142
143
|
ON_EDITOR_READY_CALLBACK = "onEditorReadyCallback",
|
|
143
144
|
/**
|
|
144
145
|
* @private
|
|
@@ -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;
|
|
@@ -139,6 +139,7 @@ export declare enum ACTION {
|
|
|
139
139
|
VISITED = "visited",
|
|
140
140
|
WITH_PLUGIN_STATE_CALLED = "withPluginStateCalled",
|
|
141
141
|
RENDERED = "rendered",
|
|
142
|
+
RENDERED_SAMPLED = "renderedSampled",
|
|
142
143
|
ON_EDITOR_READY_CALLBACK = "onEditorReadyCallback",
|
|
143
144
|
/**
|
|
144
145
|
* @private
|
|
@@ -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.5.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/"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/icon": "^29.3.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",
|
|
@@ -81,7 +81,7 @@
|
|
|
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
86
|
"@atlaskit/tooltip": "^20.11.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|