@atlaskit/editor-common 110.30.1 → 110.30.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 +8 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +1 -1
- package/dist/cjs/media-inline/inline-image-card.js +3 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/core-plugin/requestDocument.js +1 -1
- package/dist/cjs/preset/plugin-injection-api.js +4 -4
- package/dist/cjs/selection/index.js +1 -1
- package/dist/cjs/styles/shared/headings.js +1 -1
- package/dist/cjs/ui/AssistiveText/AssistiveText.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +1 -1
- package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +1 -1
- package/dist/cjs/utils/annotation/index.js +2 -2
- package/dist/cjs/utils/nodes.js +1 -1
- package/dist/es2019/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/es2019/floating-toolbar/DropdownMenuExtensionItems.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +3 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/requestDocument.js +1 -1
- package/dist/es2019/preset/plugin-injection-api.js +4 -4
- package/dist/es2019/selection/index.js +1 -1
- package/dist/es2019/styles/shared/headings.js +1 -1
- package/dist/es2019/ui/AssistiveText/AssistiveText.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +1 -1
- package/dist/es2019/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/es2019/ui/Popup/index.js +1 -1
- package/dist/es2019/utils/annotation/index.js +2 -2
- package/dist/es2019/utils/nodes.js +1 -1
- package/dist/esm/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/esm/floating-toolbar/DropdownMenuExtensionItems.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +3 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/requestDocument.js +1 -1
- package/dist/esm/preset/plugin-injection-api.js +4 -4
- package/dist/esm/selection/index.js +1 -1
- package/dist/esm/styles/shared/headings.js +1 -1
- package/dist/esm/ui/AssistiveText/AssistiveText.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +1 -1
- package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/utils/annotation/index.js +2 -2
- package/dist/esm/utils/nodes.js +1 -1
- package/dist/types/preset/builder.d.ts +1 -1
- package/dist/types/preset/core-plugin/requestDocument.d.ts +2 -2
- package/dist/types/selection/index.d.ts +1 -1
- package/dist/types/styles/shared/headings.d.ts +1 -1
- package/dist/types/ui/AssistiveText/AssistiveText.d.ts +1 -1
- package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -1
- package/dist/types-ts4.5/preset/builder.d.ts +1 -1
- package/dist/types-ts4.5/preset/core-plugin/requestDocument.d.ts +2 -2
- package/dist/types-ts4.5/selection/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/headings.d.ts +1 -1
- package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +1 -1
- package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.30.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c60de47015108`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60de47015108) -
|
|
8
|
+
Fix types for editor related dependencies
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 110.30.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -28,6 +28,8 @@ var buttonStyleNoneEvent = (0, _react2.css)({
|
|
|
28
28
|
var DisallowedWrapper = function DisallowedWrapper(_ref) {
|
|
29
29
|
var disabled = _ref.disabled,
|
|
30
30
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
|
+
// adding this ignore to avoid having to use compiled (can be fixed at a later date)
|
|
32
|
+
// @ts-ignore
|
|
31
33
|
// Ignored via go/ees005
|
|
32
34
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
33
35
|
return (0, _react2.jsx)("div", props);
|
|
@@ -187,7 +187,7 @@ var DropdownMenuExtensionItems = exports.DropdownMenuExtensionItems = function D
|
|
|
187
187
|
if (!extensionItems.length || !dropdownOptions) {
|
|
188
188
|
return null;
|
|
189
189
|
}
|
|
190
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extensionItems.map(function (item,
|
|
190
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extensionItems.map(function (item, _idx) {
|
|
191
191
|
if (!('key' in item)) {
|
|
192
192
|
return null;
|
|
193
193
|
}
|
|
@@ -69,5 +69,7 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
|
|
|
69
69
|
crop: crop,
|
|
70
70
|
stretch: stretch,
|
|
71
71
|
ref: copyNodeRef
|
|
72
|
-
}), getSsrScriptProps &&
|
|
72
|
+
}), getSsrScriptProps &&
|
|
73
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
74
|
+
(0, _react2.jsx)("script", getSsrScriptProps()));
|
|
73
75
|
};
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
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); }
|
|
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 = "
|
|
19
|
+
var packageVersion = "0.0.0-development";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -69,7 +69,7 @@ function createThrottleSchedule(callback) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
|
-
function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent,
|
|
72
|
+
function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, _alwaysFire) {
|
|
73
73
|
var _editorView$state;
|
|
74
74
|
var _ref = (_editorView$state = editorView === null || editorView === void 0 ? void 0 : editorView.state) !== null && _editorView$state !== void 0 ? _editorView$state : {},
|
|
75
75
|
doc = _ref.doc,
|
|
@@ -152,7 +152,7 @@ var ActionsAPI = /*#__PURE__*/function () {
|
|
|
152
152
|
return {};
|
|
153
153
|
}
|
|
154
154
|
return new Proxy(plugin.actions || {}, {
|
|
155
|
-
get: function get(target, prop,
|
|
155
|
+
get: function get(target, prop, _receiver) {
|
|
156
156
|
// We will be able to track perfomance here
|
|
157
157
|
return Reflect.get(target, prop);
|
|
158
158
|
}
|
|
@@ -177,7 +177,7 @@ var EditorCommandsAPI = /*#__PURE__*/function () {
|
|
|
177
177
|
return {};
|
|
178
178
|
}
|
|
179
179
|
return new Proxy(plugin.commands || {}, {
|
|
180
|
-
get: function get(target, prop,
|
|
180
|
+
get: function get(target, prop, _receiver) {
|
|
181
181
|
// We will be able to track perfomance here
|
|
182
182
|
return Reflect.get(target, prop);
|
|
183
183
|
}
|
|
@@ -205,7 +205,7 @@ var SharedStateAPI = exports.SharedStateAPI = /*#__PURE__*/function () {
|
|
|
205
205
|
currentState: function currentState() {
|
|
206
206
|
return undefined;
|
|
207
207
|
},
|
|
208
|
-
onChange: function onChange(
|
|
208
|
+
onChange: function onChange(_sub) {
|
|
209
209
|
return function () {};
|
|
210
210
|
}
|
|
211
211
|
};
|
|
@@ -340,7 +340,7 @@ var EditorPluginInjectionAPI = exports.EditorPluginInjectionAPI = /*#__PURE__*/f
|
|
|
340
340
|
// Ignored via go/ees005
|
|
341
341
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
342
342
|
return new Proxy({}, {
|
|
343
|
-
get: function get(target, prop,
|
|
343
|
+
get: function get(target, prop, _receiver) {
|
|
344
344
|
// If we pass this as a prop React hates us
|
|
345
345
|
// Let's just reflect the result and ignore these
|
|
346
346
|
if (prop === 'toJSON') {
|
|
@@ -238,7 +238,7 @@ var selectNode = exports.selectNode = function selectNode(pos) {
|
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
function createSelectionClickHandler(nodes, isValidTarget, options) {
|
|
241
|
-
return function handleClickOn(view,
|
|
241
|
+
return function handleClickOn(view, _pos, node, nodePos, event, direct) {
|
|
242
242
|
if (options.useLongPressSelection) {
|
|
243
243
|
return false;
|
|
244
244
|
}
|
|
@@ -47,7 +47,7 @@ var headingWithAlignmentStyles = function headingWithAlignmentStyles() {
|
|
|
47
47
|
|
|
48
48
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
49
49
|
// text sizing prototype: http://proto/fabricrender/
|
|
50
|
-
var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles(
|
|
50
|
+
var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles(_typographyTheme) {
|
|
51
51
|
if ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc')) {
|
|
52
52
|
return (0, _react.css)(_objectSpread({
|
|
53
53
|
'& h1': {
|
|
@@ -36,7 +36,7 @@ var AssistiveText = exports.AssistiveText = function AssistiveText(_ref) {
|
|
|
36
36
|
_ref$id = _ref.id,
|
|
37
37
|
id = _ref$id === void 0 ? '' : _ref$id,
|
|
38
38
|
_ref$statusDebounceMi = _ref.statusDebounceMillis,
|
|
39
|
-
|
|
39
|
+
_statusDebounceMillis = _ref$statusDebounceMi === void 0 ? 1400 : _ref$statusDebounceMi;
|
|
40
40
|
var _useState = (0, _react.useState)(false),
|
|
41
41
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
42
42
|
bump = _useState2[0],
|
|
@@ -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 = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -93,7 +93,7 @@ function (props, ref) {
|
|
|
93
93
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
94
94
|
return (
|
|
95
95
|
// Ignored via go/ees005
|
|
96
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
96
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/no-explicit-any
|
|
97
97
|
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
98
98
|
css: expandLayoutWrapperStyle
|
|
99
99
|
}, rest, {
|
|
@@ -39,7 +39,7 @@ var IntlErrorBoundary = exports.IntlErrorBoundary = /*#__PURE__*/function (_Reac
|
|
|
39
39
|
(0, _inherits2.default)(IntlErrorBoundary, _React$Component);
|
|
40
40
|
return (0, _createClass2.default)(IntlErrorBoundary, [{
|
|
41
41
|
key: "componentDidCatch",
|
|
42
|
-
value: function componentDidCatch(error,
|
|
42
|
+
value: function componentDidCatch(error, _errorInfo) {
|
|
43
43
|
// if missing IntlProvider in ancestry, we setup a fallback IntlProvider ourselves
|
|
44
44
|
if (isMissingIntlProviderInAncestryError(error)) {
|
|
45
45
|
this.setState({
|
|
@@ -46,7 +46,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
46
46
|
}
|
|
47
47
|
_this.initPopup(popup);
|
|
48
48
|
});
|
|
49
|
-
(0, _defineProperty2.default)(_this, "scheduledUpdatePosition", (0, _rafSchd.default)(function (
|
|
49
|
+
(0, _defineProperty2.default)(_this, "scheduledUpdatePosition", (0, _rafSchd.default)(function (_props) {
|
|
50
50
|
_this.updatePosition(_this.props);
|
|
51
51
|
}));
|
|
52
52
|
(0, _defineProperty2.default)(_this, "onResize", function () {
|
|
@@ -156,7 +156,7 @@ function getRangeAncestorNodeNames(_ref2) {
|
|
|
156
156
|
// This isn't as precise as calling resolve() on each parent, but it's a lot faster
|
|
157
157
|
// and should hopefully provide a good approximation of the ancestor nodes
|
|
158
158
|
var seenParents = new Set();
|
|
159
|
-
doc.nodesBetween(pos.from, pos.to, function (
|
|
159
|
+
doc.nodesBetween(pos.from, pos.to, function (_node, _nodePos, parent) {
|
|
160
160
|
// Collect parent chain using the parent parameter
|
|
161
161
|
var currentParent = parent;
|
|
162
162
|
if (!!currentParent && !seenParents.has(currentParent)) {
|
|
@@ -203,7 +203,7 @@ function getAnnotationInlineNodeTypes(state, annotationId) {
|
|
|
203
203
|
annotationType: _adfSchema.AnnotationTypes.INLINE_COMMENT
|
|
204
204
|
});
|
|
205
205
|
var inlineNodeNames = new Set();
|
|
206
|
-
state.doc.descendants(function (node,
|
|
206
|
+
state.doc.descendants(function (node, _pos) {
|
|
207
207
|
if (mark.isInSet(node.marks)) {
|
|
208
208
|
inlineNodeNames.add(node.type.name);
|
|
209
209
|
}
|
package/dist/cjs/utils/nodes.js
CHANGED
|
@@ -18,7 +18,7 @@ var findChangedNodesFromTransaction = exports.findChangedNodesFromTransaction =
|
|
|
18
18
|
var nodes = [];
|
|
19
19
|
var steps = tr.steps || [];
|
|
20
20
|
steps.forEach(function (step) {
|
|
21
|
-
step.getMap().forEach(function (
|
|
21
|
+
step.getMap().forEach(function (_oldStart, _oldEnd, newStart, newEnd) {
|
|
22
22
|
tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
|
|
23
23
|
if (!nodes.find(function (n) {
|
|
24
24
|
return n === node;
|
|
@@ -22,6 +22,8 @@ const DisallowedWrapper = ({
|
|
|
22
22
|
disabled,
|
|
23
23
|
...props
|
|
24
24
|
}) => {
|
|
25
|
+
// adding this ignore to avoid having to use compiled (can be fixed at a later date)
|
|
26
|
+
// @ts-ignore
|
|
25
27
|
// Ignored via go/ees005
|
|
26
28
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
27
29
|
return jsx("div", props);
|
|
@@ -111,7 +111,7 @@ export const DropdownMenuExtensionItems = props => {
|
|
|
111
111
|
if (!extensionItems.length || !dropdownOptions) {
|
|
112
112
|
return null;
|
|
113
113
|
}
|
|
114
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map((item,
|
|
114
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map((item, _idx) => {
|
|
115
115
|
if (!('key' in item)) {
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
@@ -62,5 +62,7 @@ export const InlineImageCard = ({
|
|
|
62
62
|
crop: crop,
|
|
63
63
|
stretch: stretch,
|
|
64
64
|
ref: copyNodeRef
|
|
65
|
-
}), getSsrScriptProps &&
|
|
65
|
+
}), getSsrScriptProps &&
|
|
66
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
67
|
+
jsx("script", getSsrScriptProps()));
|
|
66
68
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "
|
|
4
|
+
const packageVersion = "0.0.0-development";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -50,7 +50,7 @@ export function createThrottleSchedule(callback) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
|
-
export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent,
|
|
53
|
+
export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, _alwaysFire) {
|
|
54
54
|
var _editorView$state;
|
|
55
55
|
const {
|
|
56
56
|
doc,
|
|
@@ -105,7 +105,7 @@ class ActionsAPI {
|
|
|
105
105
|
return {};
|
|
106
106
|
}
|
|
107
107
|
return new Proxy(plugin.actions || {}, {
|
|
108
|
-
get: function (target, prop,
|
|
108
|
+
get: function (target, prop, _receiver) {
|
|
109
109
|
// We will be able to track perfomance here
|
|
110
110
|
return Reflect.get(target, prop);
|
|
111
111
|
}
|
|
@@ -124,7 +124,7 @@ class EditorCommandsAPI {
|
|
|
124
124
|
return {};
|
|
125
125
|
}
|
|
126
126
|
return new Proxy(plugin.commands || {}, {
|
|
127
|
-
get: function (target, prop,
|
|
127
|
+
get: function (target, prop, _receiver) {
|
|
128
128
|
// We will be able to track perfomance here
|
|
129
129
|
return Reflect.get(target, prop);
|
|
130
130
|
}
|
|
@@ -146,7 +146,7 @@ export class SharedStateAPI {
|
|
|
146
146
|
if (!plugin) {
|
|
147
147
|
return {
|
|
148
148
|
currentState: () => undefined,
|
|
149
|
-
onChange:
|
|
149
|
+
onChange: _sub => {
|
|
150
150
|
return () => {};
|
|
151
151
|
}
|
|
152
152
|
};
|
|
@@ -265,7 +265,7 @@ export class EditorPluginInjectionAPI {
|
|
|
265
265
|
// Ignored via go/ees005
|
|
266
266
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
267
267
|
return new Proxy({}, {
|
|
268
|
-
get: function (target, prop,
|
|
268
|
+
get: function (target, prop, _receiver) {
|
|
269
269
|
// If we pass this as a prop React hates us
|
|
270
270
|
// Let's just reflect the result and ignore these
|
|
271
271
|
if (prop === 'toJSON') {
|
|
@@ -101,7 +101,7 @@ export const selectNode = pos => (state, dispatch) => {
|
|
|
101
101
|
return true;
|
|
102
102
|
};
|
|
103
103
|
export function createSelectionClickHandler(nodes, isValidTarget, options) {
|
|
104
|
-
return function handleClickOn(view,
|
|
104
|
+
return function handleClickOn(view, _pos, node, nodePos, event, direct) {
|
|
105
105
|
if (options.useLongPressSelection) {
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
@@ -40,7 +40,7 @@ const headingWithAlignmentStyles = () => (
|
|
|
40
40
|
|
|
41
41
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
42
42
|
// text sizing prototype: http://proto/fabricrender/
|
|
43
|
-
export const headingsSharedStyles =
|
|
43
|
+
export const headingsSharedStyles = _typographyTheme => {
|
|
44
44
|
if (fg('platform_editor_typography_ugc')) {
|
|
45
45
|
return css({
|
|
46
46
|
'& h1': {
|
|
@@ -24,7 +24,7 @@ export const AssistiveText = ({
|
|
|
24
24
|
assistiveText = '',
|
|
25
25
|
isInFocus = false,
|
|
26
26
|
id = '',
|
|
27
|
-
statusDebounceMillis = 1400
|
|
27
|
+
statusDebounceMillis: _statusDebounceMillis = 1400
|
|
28
28
|
}) => {
|
|
29
29
|
const [bump, setBump] = useState(false);
|
|
30
30
|
const [debounced, setDebounced] = useState(false);
|
|
@@ -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 = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -83,7 +83,7 @@ export const ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(
|
|
|
83
83
|
} = props;
|
|
84
84
|
return (
|
|
85
85
|
// Ignored via go/ees005
|
|
86
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
86
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/no-explicit-any
|
|
87
87
|
jsx("div", _extends({
|
|
88
88
|
css: expandLayoutWrapperStyle
|
|
89
89
|
}, rest, {
|
|
@@ -16,7 +16,7 @@ export class IntlErrorBoundary extends React.Component {
|
|
|
16
16
|
missingIntlProviderInAncestry: false
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
componentDidCatch(error,
|
|
19
|
+
componentDidCatch(error, _errorInfo) {
|
|
20
20
|
// if missing IntlProvider in ancestry, we setup a fallback IntlProvider ourselves
|
|
21
21
|
if (isMissingIntlProviderInAncestryError(error)) {
|
|
22
22
|
this.setState({
|
|
@@ -25,7 +25,7 @@ export default class Popup extends React.Component {
|
|
|
25
25
|
}
|
|
26
26
|
this.initPopup(popup);
|
|
27
27
|
});
|
|
28
|
-
_defineProperty(this, "scheduledUpdatePosition", rafSchedule(
|
|
28
|
+
_defineProperty(this, "scheduledUpdatePosition", rafSchedule(_props => {
|
|
29
29
|
this.updatePosition(this.props);
|
|
30
30
|
}));
|
|
31
31
|
_defineProperty(this, "onResize", () => this.scheduledUpdatePosition(this.props));
|
|
@@ -151,7 +151,7 @@ export function getRangeAncestorNodeNames({
|
|
|
151
151
|
// This isn't as precise as calling resolve() on each parent, but it's a lot faster
|
|
152
152
|
// and should hopefully provide a good approximation of the ancestor nodes
|
|
153
153
|
const seenParents = new Set();
|
|
154
|
-
doc.nodesBetween(pos.from, pos.to, (
|
|
154
|
+
doc.nodesBetween(pos.from, pos.to, (_node, _nodePos, parent) => {
|
|
155
155
|
// Collect parent chain using the parent parameter
|
|
156
156
|
const currentParent = parent;
|
|
157
157
|
if (!!currentParent && !seenParents.has(currentParent)) {
|
|
@@ -198,7 +198,7 @@ export function getAnnotationInlineNodeTypes(state, annotationId) {
|
|
|
198
198
|
annotationType: AnnotationTypes.INLINE_COMMENT
|
|
199
199
|
});
|
|
200
200
|
const inlineNodeNames = new Set();
|
|
201
|
-
state.doc.descendants((node,
|
|
201
|
+
state.doc.descendants((node, _pos) => {
|
|
202
202
|
if (mark.isInSet(node.marks)) {
|
|
203
203
|
inlineNodeNames.add(node.type.name);
|
|
204
204
|
}
|
|
@@ -9,7 +9,7 @@ export const findChangedNodesFromTransaction = tr => {
|
|
|
9
9
|
const nodes = [];
|
|
10
10
|
const steps = tr.steps || [];
|
|
11
11
|
steps.forEach(step => {
|
|
12
|
-
step.getMap().forEach((
|
|
12
|
+
step.getMap().forEach((_oldStart, _oldEnd, newStart, newEnd) => {
|
|
13
13
|
tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), node => {
|
|
14
14
|
if (!nodes.find(n => n === node)) {
|
|
15
15
|
nodes.push(node);
|
|
@@ -23,6 +23,8 @@ var buttonStyleNoneEvent = css({
|
|
|
23
23
|
var DisallowedWrapper = function DisallowedWrapper(_ref) {
|
|
24
24
|
var disabled = _ref.disabled,
|
|
25
25
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
// adding this ignore to avoid having to use compiled (can be fixed at a later date)
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
// Ignored via go/ees005
|
|
27
29
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
28
30
|
return jsx("div", props);
|
|
@@ -178,7 +178,7 @@ export var DropdownMenuExtensionItems = function DropdownMenuExtensionItems(prop
|
|
|
178
178
|
if (!extensionItems.length || !dropdownOptions) {
|
|
179
179
|
return null;
|
|
180
180
|
}
|
|
181
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map(function (item,
|
|
181
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map(function (item, _idx) {
|
|
182
182
|
if (!('key' in item)) {
|
|
183
183
|
return null;
|
|
184
184
|
}
|
|
@@ -62,5 +62,7 @@ export var InlineImageCard = function InlineImageCard(_ref) {
|
|
|
62
62
|
crop: crop,
|
|
63
63
|
stretch: stretch,
|
|
64
64
|
ref: copyNodeRef
|
|
65
|
-
}), getSsrScriptProps &&
|
|
65
|
+
}), getSsrScriptProps &&
|
|
66
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
67
|
+
jsx("script", getSsrScriptProps()));
|
|
66
68
|
};
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "
|
|
10
|
+
var packageVersion = "0.0.0-development";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -60,7 +60,7 @@ export function createThrottleSchedule(callback) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
63
|
-
export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent,
|
|
63
|
+
export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, _alwaysFire) {
|
|
64
64
|
var _editorView$state;
|
|
65
65
|
var _ref = (_editorView$state = editorView === null || editorView === void 0 ? void 0 : editorView.state) !== null && _editorView$state !== void 0 ? _editorView$state : {},
|
|
66
66
|
doc = _ref.doc,
|
|
@@ -146,7 +146,7 @@ var ActionsAPI = /*#__PURE__*/function () {
|
|
|
146
146
|
return {};
|
|
147
147
|
}
|
|
148
148
|
return new Proxy(plugin.actions || {}, {
|
|
149
|
-
get: function get(target, prop,
|
|
149
|
+
get: function get(target, prop, _receiver) {
|
|
150
150
|
// We will be able to track perfomance here
|
|
151
151
|
return Reflect.get(target, prop);
|
|
152
152
|
}
|
|
@@ -171,7 +171,7 @@ var EditorCommandsAPI = /*#__PURE__*/function () {
|
|
|
171
171
|
return {};
|
|
172
172
|
}
|
|
173
173
|
return new Proxy(plugin.commands || {}, {
|
|
174
|
-
get: function get(target, prop,
|
|
174
|
+
get: function get(target, prop, _receiver) {
|
|
175
175
|
// We will be able to track perfomance here
|
|
176
176
|
return Reflect.get(target, prop);
|
|
177
177
|
}
|
|
@@ -199,7 +199,7 @@ export var SharedStateAPI = /*#__PURE__*/function () {
|
|
|
199
199
|
currentState: function currentState() {
|
|
200
200
|
return undefined;
|
|
201
201
|
},
|
|
202
|
-
onChange: function onChange(
|
|
202
|
+
onChange: function onChange(_sub) {
|
|
203
203
|
return function () {};
|
|
204
204
|
}
|
|
205
205
|
};
|
|
@@ -334,7 +334,7 @@ export var EditorPluginInjectionAPI = /*#__PURE__*/function () {
|
|
|
334
334
|
// Ignored via go/ees005
|
|
335
335
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
336
336
|
return new Proxy({}, {
|
|
337
|
-
get: function get(target, prop,
|
|
337
|
+
get: function get(target, prop, _receiver) {
|
|
338
338
|
// If we pass this as a prop React hates us
|
|
339
339
|
// Let's just reflect the result and ignore these
|
|
340
340
|
if (prop === 'toJSON') {
|
|
@@ -101,7 +101,7 @@ export var selectNode = function selectNode(pos) {
|
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
export function createSelectionClickHandler(nodes, isValidTarget, options) {
|
|
104
|
-
return function handleClickOn(view,
|
|
104
|
+
return function handleClickOn(view, _pos, node, nodePos, event, direct) {
|
|
105
105
|
if (options.useLongPressSelection) {
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
@@ -46,7 +46,7 @@ var headingWithAlignmentStyles = function headingWithAlignmentStyles() {
|
|
|
46
46
|
|
|
47
47
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
48
48
|
// text sizing prototype: http://proto/fabricrender/
|
|
49
|
-
export var headingsSharedStyles = function headingsSharedStyles(
|
|
49
|
+
export var headingsSharedStyles = function headingsSharedStyles(_typographyTheme) {
|
|
50
50
|
if (fg('platform_editor_typography_ugc')) {
|
|
51
51
|
return css(_objectSpread({
|
|
52
52
|
'& h1': {
|
|
@@ -29,7 +29,7 @@ export var AssistiveText = function AssistiveText(_ref) {
|
|
|
29
29
|
_ref$id = _ref.id,
|
|
30
30
|
id = _ref$id === void 0 ? '' : _ref$id,
|
|
31
31
|
_ref$statusDebounceMi = _ref.statusDebounceMillis,
|
|
32
|
-
|
|
32
|
+
_statusDebounceMillis = _ref$statusDebounceMi === void 0 ? 1400 : _ref$statusDebounceMi;
|
|
33
33
|
var _useState = useState(false),
|
|
34
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
35
|
bump = _useState2[0],
|
|
@@ -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 = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -86,7 +86,7 @@ function (props, ref) {
|
|
|
86
86
|
rest = _objectWithoutProperties(props, _excluded);
|
|
87
87
|
return (
|
|
88
88
|
// Ignored via go/ees005
|
|
89
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
89
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/no-explicit-any
|
|
90
90
|
jsx("div", _extends({
|
|
91
91
|
css: expandLayoutWrapperStyle
|
|
92
92
|
}, rest, {
|
|
@@ -32,7 +32,7 @@ export var IntlErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
32
32
|
_inherits(IntlErrorBoundary, _React$Component);
|
|
33
33
|
return _createClass(IntlErrorBoundary, [{
|
|
34
34
|
key: "componentDidCatch",
|
|
35
|
-
value: function componentDidCatch(error,
|
|
35
|
+
value: function componentDidCatch(error, _errorInfo) {
|
|
36
36
|
// if missing IntlProvider in ancestry, we setup a fallback IntlProvider ourselves
|
|
37
37
|
if (isMissingIntlProviderInAncestryError(error)) {
|
|
38
38
|
this.setState({
|
|
@@ -39,7 +39,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
|
|
|
39
39
|
}
|
|
40
40
|
_this.initPopup(popup);
|
|
41
41
|
});
|
|
42
|
-
_defineProperty(_this, "scheduledUpdatePosition", rafSchedule(function (
|
|
42
|
+
_defineProperty(_this, "scheduledUpdatePosition", rafSchedule(function (_props) {
|
|
43
43
|
_this.updatePosition(_this.props);
|
|
44
44
|
}));
|
|
45
45
|
_defineProperty(_this, "onResize", function () {
|
|
@@ -140,7 +140,7 @@ export function getRangeAncestorNodeNames(_ref2) {
|
|
|
140
140
|
// This isn't as precise as calling resolve() on each parent, but it's a lot faster
|
|
141
141
|
// and should hopefully provide a good approximation of the ancestor nodes
|
|
142
142
|
var seenParents = new Set();
|
|
143
|
-
doc.nodesBetween(pos.from, pos.to, function (
|
|
143
|
+
doc.nodesBetween(pos.from, pos.to, function (_node, _nodePos, parent) {
|
|
144
144
|
// Collect parent chain using the parent parameter
|
|
145
145
|
var currentParent = parent;
|
|
146
146
|
if (!!currentParent && !seenParents.has(currentParent)) {
|
|
@@ -187,7 +187,7 @@ export function getAnnotationInlineNodeTypes(state, annotationId) {
|
|
|
187
187
|
annotationType: AnnotationTypes.INLINE_COMMENT
|
|
188
188
|
});
|
|
189
189
|
var inlineNodeNames = new Set();
|
|
190
|
-
state.doc.descendants(function (node,
|
|
190
|
+
state.doc.descendants(function (node, _pos) {
|
|
191
191
|
if (mark.isInSet(node.marks)) {
|
|
192
192
|
inlineNodeNames.add(node.type.name);
|
|
193
193
|
}
|
package/dist/esm/utils/nodes.js
CHANGED
|
@@ -9,7 +9,7 @@ export var findChangedNodesFromTransaction = function findChangedNodesFromTransa
|
|
|
9
9
|
var nodes = [];
|
|
10
10
|
var steps = tr.steps || [];
|
|
11
11
|
steps.forEach(function (step) {
|
|
12
|
-
step.getMap().forEach(function (
|
|
12
|
+
step.getMap().forEach(function (_oldStart, _oldEnd, newStart, newEnd) {
|
|
13
13
|
tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
|
|
14
14
|
if (!nodes.find(function (n) {
|
|
15
15
|
return n === node;
|
|
@@ -130,7 +130,7 @@ type ExtractPluginConfigurationFromMetadata<Metadata> = 'pluginConfiguration' ex
|
|
|
130
130
|
* You probably wants to use this if you need to extract the NextEditorPlugin from a @see PresetPlugin .
|
|
131
131
|
* Since the PresetPlugin is an union between a tuple and a plugin.
|
|
132
132
|
*/
|
|
133
|
-
type ExtractPluginAllBuilderPlugins<Plugin extends PresetPlugin> = Plugin extends Array<any> ? Plugin extends [infer MPlugin, ...any] ? MPlugin extends NextEditorPlugin<infer
|
|
133
|
+
type ExtractPluginAllBuilderPlugins<Plugin extends PresetPlugin> = Plugin extends Array<any> ? Plugin extends [infer MPlugin, ...any] ? MPlugin extends NextEditorPlugin<infer _Name, any> ? MPlugin : never : never : Plugin extends NextEditorPlugin<infer _Name, any> ? Plugin : never;
|
|
134
134
|
/**
|
|
135
135
|
* 🧱 Internal Type: Editor FE Platform
|
|
136
136
|
*
|
|
@@ -7,5 +7,5 @@ export declare function toJSON(node: PMNode): JSONDocNode;
|
|
|
7
7
|
/**
|
|
8
8
|
* This throttles the callback with requestIdleCallback.
|
|
9
9
|
*/
|
|
10
|
-
export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined,
|
|
11
|
-
export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback,
|
|
10
|
+
export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined, _alwaysFire?: boolean | undefined) => void;
|
|
11
|
+
export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback, _alwaysFire?: boolean): undefined;
|
|
@@ -29,4 +29,4 @@ export declare const selectNode: (pos: number) => Command;
|
|
|
29
29
|
export declare function createSelectionClickHandler(nodes: string[], isValidTarget: (target: HTMLElement) => boolean, options: {
|
|
30
30
|
getNodeSelectionPos?: (state: EditorState, nodePos: number) => number;
|
|
31
31
|
useLongPressSelection: boolean;
|
|
32
|
-
}): (view: EditorView,
|
|
32
|
+
}): (view: EditorView, _pos: number, node: PmNode, nodePos: number, event: MouseEvent, direct: boolean) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const headingsSharedStyles: (
|
|
1
|
+
export declare const headingsSharedStyles: (_typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed") => import("@emotion/react").SerializedStyles;
|
|
@@ -10,5 +10,5 @@ type AssistiveTextProps = {
|
|
|
10
10
|
isInFocus: boolean;
|
|
11
11
|
statusDebounceMillis?: number;
|
|
12
12
|
};
|
|
13
|
-
export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
|
|
13
|
+
export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis: _statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -10,7 +10,7 @@ export declare class IntlErrorBoundary extends React.Component<ErrorBoundaryProp
|
|
|
10
10
|
state: {
|
|
11
11
|
missingIntlProviderInAncestry: boolean;
|
|
12
12
|
};
|
|
13
|
-
componentDidCatch(error: Error,
|
|
13
|
+
componentDidCatch(error: Error, _errorInfo: React.ErrorInfo): void;
|
|
14
14
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -140,7 +140,7 @@ type ExtractPluginConfigurationFromMetadata<Metadata> = 'pluginConfiguration' ex
|
|
|
140
140
|
type ExtractPluginAllBuilderPlugins<Plugin extends PresetPlugin> = Plugin extends Array<any> ? Plugin extends [
|
|
141
141
|
infer MPlugin,
|
|
142
142
|
...any
|
|
143
|
-
] ? MPlugin extends NextEditorPlugin<infer
|
|
143
|
+
] ? MPlugin extends NextEditorPlugin<infer _Name, any> ? MPlugin : never : never : Plugin extends NextEditorPlugin<infer _Name, any> ? Plugin : never;
|
|
144
144
|
/**
|
|
145
145
|
* 🧱 Internal Type: Editor FE Platform
|
|
146
146
|
*
|
|
@@ -7,5 +7,5 @@ export declare function toJSON(node: PMNode): JSONDocNode;
|
|
|
7
7
|
/**
|
|
8
8
|
* This throttles the callback with requestIdleCallback.
|
|
9
9
|
*/
|
|
10
|
-
export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined,
|
|
11
|
-
export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback,
|
|
10
|
+
export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined, _alwaysFire?: boolean | undefined) => void;
|
|
11
|
+
export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback, _alwaysFire?: boolean): undefined;
|
|
@@ -29,4 +29,4 @@ export declare const selectNode: (pos: number) => Command;
|
|
|
29
29
|
export declare function createSelectionClickHandler(nodes: string[], isValidTarget: (target: HTMLElement) => boolean, options: {
|
|
30
30
|
getNodeSelectionPos?: (state: EditorState, nodePos: number) => number;
|
|
31
31
|
useLongPressSelection: boolean;
|
|
32
|
-
}): (view: EditorView,
|
|
32
|
+
}): (view: EditorView, _pos: number, node: PmNode, nodePos: number, event: MouseEvent, direct: boolean) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const headingsSharedStyles: (
|
|
1
|
+
export declare const headingsSharedStyles: (_typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed") => import("@emotion/react").SerializedStyles;
|
|
@@ -10,5 +10,5 @@ type AssistiveTextProps = {
|
|
|
10
10
|
isInFocus: boolean;
|
|
11
11
|
statusDebounceMillis?: number;
|
|
12
12
|
};
|
|
13
|
-
export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
|
|
13
|
+
export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis: _statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -10,7 +10,7 @@ export declare class IntlErrorBoundary extends React.Component<ErrorBoundaryProp
|
|
|
10
10
|
state: {
|
|
11
11
|
missingIntlProviderInAncestry: boolean;
|
|
12
12
|
};
|
|
13
|
-
componentDidCatch(error: Error,
|
|
13
|
+
componentDidCatch(error: Error, _errorInfo: React.ErrorInfo): void;
|
|
14
14
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
package/package.json
CHANGED