@atlaskit/editor-common 74.1.1 → 74.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/i18n/en_ZZ.js +2 -17
- package/dist/cjs/i18n/ja.js +4 -4
- package/dist/cjs/i18n/nl.js +11 -11
- package/dist/cjs/i18n/pt_BR.js +2 -2
- package/dist/cjs/i18n/uk.js +11 -11
- package/dist/cjs/i18n/zh.js +3 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/index.js +14 -1
- package/dist/cjs/styles/shared/grid.js +16 -0
- package/dist/cjs/styles/shared/resizer.js +14 -2
- package/dist/cjs/ui/ContextPanel/context.js +89 -0
- package/dist/cjs/ui/DropList/index.js +3 -3
- package/dist/cjs/ui/Resizer/index.js +8 -1
- package/dist/cjs/ui/index.js +25 -0
- package/dist/cjs/utils/grid.js +10 -0
- package/dist/cjs/utils/index.js +7 -0
- package/dist/cjs/utils/validator.js +2 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/en_ZZ.js +2 -17
- package/dist/es2019/i18n/ja.js +4 -4
- package/dist/es2019/i18n/nl.js +11 -11
- package/dist/es2019/i18n/pt_BR.js +2 -2
- package/dist/es2019/i18n/uk.js +11 -11
- package/dist/es2019/i18n/zh.js +3 -3
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/index.js +2 -1
- package/dist/es2019/styles/shared/grid.js +36 -0
- package/dist/es2019/styles/shared/resizer.js +23 -0
- package/dist/es2019/ui/ContextPanel/context.js +65 -0
- package/dist/es2019/ui/DropList/index.js +2 -4
- package/dist/es2019/ui/Resizer/index.js +8 -2
- package/dist/es2019/ui/index.js +2 -1
- package/dist/es2019/utils/grid.js +1 -0
- package/dist/es2019/utils/index.js +2 -1
- package/dist/es2019/utils/validator.js +2 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/en_ZZ.js +2 -17
- package/dist/esm/i18n/ja.js +4 -4
- package/dist/esm/i18n/nl.js +11 -11
- package/dist/esm/i18n/pt_BR.js +2 -2
- package/dist/esm/i18n/uk.js +11 -11
- package/dist/esm/i18n/zh.js +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/index.js +2 -1
- package/dist/esm/styles/shared/grid.js +7 -0
- package/dist/esm/styles/shared/resizer.js +9 -1
- package/dist/esm/ui/ContextPanel/context.js +79 -0
- package/dist/esm/ui/DropList/index.js +3 -3
- package/dist/esm/ui/Resizer/index.js +9 -2
- package/dist/esm/ui/index.js +2 -1
- package/dist/esm/utils/grid.js +3 -0
- package/dist/esm/utils/index.js +2 -1
- package/dist/esm/utils/validator.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/types/events.d.ts +1 -1
- package/dist/types/i18n/en_ZZ.d.ts +2 -17
- package/dist/types/provider-factory/types.d.ts +1 -1
- package/dist/types/resizer.d.ts +1 -0
- package/dist/types/styles/index.d.ts +1 -0
- package/dist/types/styles/shared/grid.d.ts +2 -0
- package/dist/types/styles/shared/resizer.d.ts +8 -0
- package/dist/types/types/editor-actions.d.ts +1 -1
- package/dist/types/types/grid.d.ts +1 -0
- package/dist/types/types/index.d.ts +2 -2
- package/dist/types/types/next-editor-plugin.d.ts +5 -0
- package/dist/types/ui/ContextPanel/context.d.ts +24 -0
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/ui/Resizer/index.d.ts +2 -1
- package/dist/types/ui/Resizer/types.d.ts +1 -0
- package/dist/types/ui/index.d.ts +1 -0
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types/utils/grid.d.ts +3 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +1 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -17
- package/dist/types-ts4.5/provider-factory/types.d.ts +1 -1
- package/dist/types-ts4.5/resizer.d.ts +1 -0
- package/dist/types-ts4.5/styles/index.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/grid.d.ts +2 -0
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +8 -0
- package/dist/types-ts4.5/types/editor-actions.d.ts +1 -1
- package/dist/types-ts4.5/types/grid.d.ts +1 -0
- package/dist/types-ts4.5/types/index.d.ts +2 -2
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +5 -0
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +24 -0
- package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Resizer/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/Resizer/types.d.ts +1 -0
- package/dist/types-ts4.5/ui/index.d.ts +1 -0
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/grid.d.ts +3 -0
- package/dist/types-ts4.5/utils/index.d.ts +1 -0
- package/package.json +10 -8
- package/report.api.md +1 -1
- package/collab/package.json +0 -15
- package/dist/cjs/collab/types.js +0 -5
- package/dist/cjs/types/collab.js +0 -5
- package/dist/es2019/types/collab.js +0 -1
- package/dist/esm/collab/types.js +0 -1
- package/dist/esm/collab.js +0 -1
- package/dist/esm/types/collab.js +0 -1
- package/dist/types/collab/types.d.ts +0 -101
- package/dist/types/collab.d.ts +0 -1
- package/dist/types/types/collab.d.ts +0 -8
- package/dist/types-ts4.5/collab/types.d.ts +0 -101
- package/dist/types-ts4.5/collab.d.ts +0 -1
- package/dist/types-ts4.5/types/collab.d.ts +0 -8
- /package/dist/cjs/{collab.js → types/grid.js} +0 -0
- /package/dist/es2019/{collab.js → types/grid.js} +0 -0
- /package/dist/{es2019/collab/types.js → esm/types/grid.js} +0 -0
package/dist/esm/i18n/pt_BR.js
CHANGED
|
@@ -81,14 +81,14 @@ export default {
|
|
|
81
81
|
'fabric.editor.visit': 'Abrir link em uma nova janela',
|
|
82
82
|
'fabric.theme.blue': 'Blue',
|
|
83
83
|
'fabric.theme.bold-blue': 'Azul-escuro',
|
|
84
|
-
'fabric.theme.bold-gray': 'Cinza
|
|
84
|
+
'fabric.theme.bold-gray': 'Cinza vibrante',
|
|
85
85
|
'fabric.theme.bold-green': 'Verde-escuro',
|
|
86
86
|
'fabric.theme.bold-magenta': 'Magenta vibrante',
|
|
87
87
|
'fabric.theme.bold-orange': 'Laranja-escuro',
|
|
88
88
|
'fabric.theme.bold-purple': 'Roxo-escuro',
|
|
89
89
|
'fabric.theme.bold-red': 'Vermelho-escuro',
|
|
90
90
|
'fabric.theme.bold-teal': 'Verde-azulado-escuro',
|
|
91
|
-
'fabric.theme.bold-yellow': 'Amarelo
|
|
91
|
+
'fabric.theme.bold-yellow': 'Amarelo vibrante',
|
|
92
92
|
'fabric.theme.bolder-blue': 'Azul mais vibrante',
|
|
93
93
|
'fabric.theme.bolder-gray': 'Cinza mais vibrante',
|
|
94
94
|
'fabric.theme.bolder-green': 'Verde mais vibrante',
|
package/dist/esm/i18n/uk.js
CHANGED
|
@@ -81,23 +81,23 @@ export default {
|
|
|
81
81
|
'fabric.editor.visit': 'Відкрити посилання в новому вікні',
|
|
82
82
|
'fabric.theme.blue': 'Синій',
|
|
83
83
|
'fabric.theme.bold-blue': 'Яскраво-синій',
|
|
84
|
-
'fabric.theme.bold-gray': '
|
|
84
|
+
'fabric.theme.bold-gray': 'Насичений сірий',
|
|
85
85
|
'fabric.theme.bold-green': 'Яскраво-зелений',
|
|
86
|
-
'fabric.theme.bold-magenta': '
|
|
86
|
+
'fabric.theme.bold-magenta': 'Насичений пурпурний',
|
|
87
87
|
'fabric.theme.bold-orange': 'Яскраво-помаранчевий',
|
|
88
88
|
'fabric.theme.bold-purple': 'Яскраво-фіолетовий',
|
|
89
89
|
'fabric.theme.bold-red': 'Яскраво-червоний',
|
|
90
90
|
'fabric.theme.bold-teal': 'Яскраво-бірюзовий',
|
|
91
|
-
'fabric.theme.bold-yellow': '
|
|
92
|
-
'fabric.theme.bolder-blue': 'Дуже
|
|
93
|
-
'fabric.theme.bolder-gray': 'Дуже
|
|
94
|
-
'fabric.theme.bolder-green': 'Дуже
|
|
95
|
-
'fabric.theme.bolder-magenta': 'Дуже
|
|
96
|
-
'fabric.theme.bolder-orange': 'Дуже
|
|
97
|
-
'fabric.theme.bolder-purple': 'Дуже
|
|
98
|
-
'fabric.theme.bolder-red': 'Дуже
|
|
91
|
+
'fabric.theme.bold-yellow': 'Насичений жовтий',
|
|
92
|
+
'fabric.theme.bolder-blue': 'Дуже насичений синій',
|
|
93
|
+
'fabric.theme.bolder-gray': 'Дуже насичений сірий',
|
|
94
|
+
'fabric.theme.bolder-green': 'Дуже насичений зелений',
|
|
95
|
+
'fabric.theme.bolder-magenta': 'Дуже насичений пурпурний',
|
|
96
|
+
'fabric.theme.bolder-orange': 'Дуже насичений помаранчевий',
|
|
97
|
+
'fabric.theme.bolder-purple': 'Дуже насичений фіолетовий',
|
|
98
|
+
'fabric.theme.bolder-red': 'Дуже насичений червоний',
|
|
99
99
|
'fabric.theme.bolder-teal': 'Дуже яскравий синьо-зелений',
|
|
100
|
-
'fabric.theme.bolder-yellow': 'Дуже
|
|
100
|
+
'fabric.theme.bolder-yellow': 'Дуже насичений жовтий',
|
|
101
101
|
'fabric.theme.dark-blue': 'Темно-синій',
|
|
102
102
|
'fabric.theme.dark-gray': 'Темно-сірий',
|
|
103
103
|
'fabric.theme.dark-green': 'Темно-зелений',
|
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -81,14 +81,14 @@ export default {
|
|
|
81
81
|
'fabric.editor.visit': '在新窗口中打开链接',
|
|
82
82
|
'fabric.theme.blue': '蓝色',
|
|
83
83
|
'fabric.theme.bold-blue': '深蓝色',
|
|
84
|
-
'fabric.theme.bold-gray': '
|
|
84
|
+
'fabric.theme.bold-gray': '深灰',
|
|
85
85
|
'fabric.theme.bold-green': '深绿色',
|
|
86
86
|
'fabric.theme.bold-magenta': '暖洋红',
|
|
87
87
|
'fabric.theme.bold-orange': '深橙色',
|
|
88
88
|
'fabric.theme.bold-purple': '深紫色',
|
|
89
89
|
'fabric.theme.bold-red': '深红色',
|
|
90
90
|
'fabric.theme.bold-teal': '深蓝绿色',
|
|
91
|
-
'fabric.theme.bold-yellow': '
|
|
91
|
+
'fabric.theme.bold-yellow': '金黄',
|
|
92
92
|
'fabric.theme.bolder-blue': '亮蓝',
|
|
93
93
|
'fabric.theme.bolder-gray': '亮灰',
|
|
94
94
|
'fabric.theme.bolder-green': '亮绿',
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
'fabric.theme.purple': '紫色',
|
|
121
121
|
'fabric.theme.red': '红色',
|
|
122
122
|
'fabric.theme.subtle-blue': '浅蓝色',
|
|
123
|
-
'fabric.theme.subtle-gray': '
|
|
123
|
+
'fabric.theme.subtle-gray': '浅灰',
|
|
124
124
|
'fabric.theme.subtle-green': '浅绿色',
|
|
125
125
|
'fabric.theme.subtle-magenta': '浅洋红',
|
|
126
126
|
'fabric.theme.subtle-orange': '浅橙',
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// DO NOT
|
|
1
|
+
// DO NOT EXPORT ANYTHING FROM THIS FILE. USE CHILD ENTRY POINTS.
|
|
2
2
|
export {};
|
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "74.
|
|
9
|
+
var packageVersion = "74.2.0";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -22,4 +22,5 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
|
|
|
22
22
|
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix } from './shared/code-block';
|
|
23
23
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
|
|
24
24
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
25
|
-
export { resizerStyles } from './shared/resizer';
|
|
25
|
+
export { resizerStyles } from './shared/resizer';
|
|
26
|
+
export { gridStyles, GRID_GUTTER } from './shared/grid';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { B200, N30A } from '@atlaskit/theme/colors';
|
|
6
|
+
export var GRID_GUTTER = 12;
|
|
7
|
+
export var gridStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .gridParent {\n width: calc(100% + ", "px);\n margin-left: -", "px;\n margin-right: -", "px;\n transform: scale(1);\n z-index: ", ";\n }\n\n .gridContainer {\n position: fixed;\n height: 100vh;\n width: 100%;\n pointer-events: none;\n }\n\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4352\n .gridLine {\n border-left: 1px solid ", ";\n display: inline-block;\n box-sizing: border-box;\n height: 100%;\n margin-left: -1px;\n\n transition: border-color 0.15s linear;\n z-index: 0;\n }\n\n .highlight {\n border-left: 1px solid ", ";\n }\n"])), GRID_GUTTER * 2, GRID_GUTTER, GRID_GUTTER, akEditorGridLineZIndex, "var(--ds-border, ".concat(N30A, ")"), "var(--ds-border-focused, ".concat(B200, ")"));
|
|
@@ -15,4 +15,12 @@ export var resizerHandleLeftClassName = 'resizer-handle-left';
|
|
|
15
15
|
var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
16
16
|
export var resizerHandlePadding = 13;
|
|
17
17
|
export var resizerHandleZIndex = 99;
|
|
18
|
-
export var
|
|
18
|
+
export var resizerHandlerSmallClassName = 'resizer-handler-small';
|
|
19
|
+
export var resizerHandlerMediumClassName = 'resizer-handler-medium';
|
|
20
|
+
export var resizerHandlerLargeClassName = 'resizer-handler-large';
|
|
21
|
+
export var resizerHandlerClassName = {
|
|
22
|
+
small: resizerHandlerSmallClassName,
|
|
23
|
+
medium: resizerHandlerMediumClassName,
|
|
24
|
+
large: resizerHandlerLargeClassName
|
|
25
|
+
};
|
|
26
|
+
export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n background: ", ";\n }\n\n .", ", .", " {\n display: flex;\n flex-direction: column;\n\n /* vertical align */\n justify-content: center;\n }\n\n .", " {\n align-items: flex-end;\n /* padding-right: 12px; */\n /* margin-right: -", "px; */\n }\n\n .", " {\n align-items: flex-start;\n /* padding-left: 12px; */\n /* margin-left: -", "px; */\n }\n\n .", "::after,\n .", "::after {\n content: ' ';\n display: flex;\n width: 3px;\n height: 64px;\n\n border-radius: 6px;\n }\n\n .", ":hover\n .", "::after,\n .", ":hover\n .", "::after {\n background: ", ";\n }\n\n .", "\n .", "::after,\n .", "\n .", "::after,\n .", "\n .", ":hover::after,\n .", "\n .", ":hover::after,\n .", ".is-resizing\n .", "::after,\n .", ".is-resizing\n .", "::after {\n background: ", ";\n }\n\n .", ".", "::after,\n .", ".", "::after {\n height: 64px;\n }\n\n .", ".", "::after,\n .", ".", "::after {\n height: 43px;\n }\n\n .", ".", "::after,\n .", ".", "::after {\n height: 96px;\n }\n"])), resizerItemClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleRightClassName, resizerHandleLeftClassName, resizerHandleRightClassName, resizerHandlePadding, resizerHandleLeftClassName, resizerHandlePadding, resizerHandleRightClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, "var(--ds-border, ".concat(N60, ")"), akEditorSelectedNodeClassName, resizerHandleRightClassName, akEditorSelectedNodeClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, resizerItemClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, resizerItemClassName, resizerHandleLeftClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleRightClassName, resizerHandlerClassName.medium, resizerHandleLeftClassName, resizerHandlerClassName.medium, resizerHandleRightClassName, resizerHandlerClassName.small, resizerHandleLeftClassName, resizerHandlerClassName.small, resizerHandleRightClassName, resizerHandlerClassName.large, resizerHandleLeftClassName, resizerHandlerClassName.large);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
|
+
import React from 'react';
|
|
11
|
+
|
|
12
|
+
// React context to communicate the active context panel width up and down the tree.
|
|
13
|
+
//
|
|
14
|
+
// We need the width prop from the ContextPanel component.
|
|
15
|
+
//
|
|
16
|
+
// However, the actual <ContextPanel /> component might be deeply nested inside the contextPanel.
|
|
17
|
+
// For example, in the template context panel storybook, we wrap it in 2 higher order components.
|
|
18
|
+
//
|
|
19
|
+
// Changing the max-width on the main editor container happens above where the <ContextPanel /> gets rendered.
|
|
20
|
+
//
|
|
21
|
+
// To subtract the context panel width from the available real estate, we use the Provider and Consumer.
|
|
22
|
+
//
|
|
23
|
+
// positionedOverEditor is used to determine whether the context panel is positioned over the Editor so we are
|
|
24
|
+
// able to position and add margins to handle certain elements like inline comment dialogues overlapping the context
|
|
25
|
+
// panel
|
|
26
|
+
export var ContextPanel = /*#__PURE__*/React.createContext({
|
|
27
|
+
width: 0,
|
|
28
|
+
positionedOverEditor: false,
|
|
29
|
+
broadcastWidth: function broadcastWidth() {},
|
|
30
|
+
broadcastPosition: function broadcastPosition() {}
|
|
31
|
+
});
|
|
32
|
+
export var ContextPanelWidthProvider = /*#__PURE__*/function (_React$Component) {
|
|
33
|
+
_inherits(ContextPanelWidthProvider, _React$Component);
|
|
34
|
+
var _super = _createSuper(ContextPanelWidthProvider);
|
|
35
|
+
function ContextPanelWidthProvider(props) {
|
|
36
|
+
var _this;
|
|
37
|
+
_classCallCheck(this, ContextPanelWidthProvider);
|
|
38
|
+
_this = _super.call(this, props);
|
|
39
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
40
|
+
width: 0,
|
|
41
|
+
positionedOverEditor: false
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(_assertThisInitialized(_this), "broadcastSidebarWidth", function (width) {
|
|
44
|
+
if (width !== _this.state.width) {
|
|
45
|
+
_this.setState({
|
|
46
|
+
width: width
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(_assertThisInitialized(_this), "broadcastPosition", function (positionedOverEditor) {
|
|
51
|
+
if (positionedOverEditor !== _this.state.positionedOverEditor) {
|
|
52
|
+
_this.setState({
|
|
53
|
+
positionedOverEditor: positionedOverEditor
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return _this;
|
|
58
|
+
}
|
|
59
|
+
_createClass(ContextPanelWidthProvider, [{
|
|
60
|
+
key: "render",
|
|
61
|
+
value: function render() {
|
|
62
|
+
var _this$state = this.state,
|
|
63
|
+
width = _this$state.width,
|
|
64
|
+
positionedOverEditor = _this$state.positionedOverEditor;
|
|
65
|
+
return /*#__PURE__*/React.createElement(Provider, {
|
|
66
|
+
value: {
|
|
67
|
+
width: width,
|
|
68
|
+
positionedOverEditor: positionedOverEditor,
|
|
69
|
+
broadcastWidth: this.broadcastSidebarWidth,
|
|
70
|
+
broadcastPosition: this.broadcastPosition
|
|
71
|
+
}
|
|
72
|
+
}, this.props.children);
|
|
73
|
+
}
|
|
74
|
+
}]);
|
|
75
|
+
return ContextPanelWidthProvider;
|
|
76
|
+
}(React.Component);
|
|
77
|
+
var Provider = ContextPanel.Provider,
|
|
78
|
+
Consumer = ContextPanel.Consumer;
|
|
79
|
+
export { Provider as ContextPanelProvider, Consumer as ContextPanelConsumer };
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "74.
|
|
22
|
+
var packageVersion = "74.2.0";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
// TODO: Migrate away from gridSize
|
|
25
25
|
// Recommendation: Replace gridSize with token('space.100', '8px') after verfiying Popper can accept this
|
|
@@ -38,13 +38,13 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
38
38
|
_defineProperty(_assertThisInitialized(_this), "triggerStyles", css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n transition-duration: 0.2s;\n transition: box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);\n ", "\n "])), _this.props.shouldFitContainer ? 'display: block; box-sizing: border-box;' : 'display: inline-flex;'));
|
|
39
39
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
40
40
|
_defineProperty(_assertThisInitialized(_this), "menuWrapper", function (theme) {
|
|
41
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n background-color: ", ";\n border-radius: ", "px;\n box-shadow:
|
|
41
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n box-sizing: border-box;\n overflow: auto;\n padding: ", " 0;\n max-height: 90vh;\n "])), themed({
|
|
42
42
|
light: "var(--ds-text, ".concat(N900, ")"),
|
|
43
43
|
dark: "var(--ds-text, ".concat(DN600, ")")
|
|
44
44
|
})(theme), themed({
|
|
45
45
|
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
46
46
|
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
47
|
-
})(theme), borderRadius(), "var(--ds-
|
|
47
|
+
})(theme), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 4px 8px calc(-1 * 2px) ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"), "var(--ds-space-050, 4px)");
|
|
48
48
|
});
|
|
49
49
|
_defineProperty(_assertThisInitialized(_this), "componentDidMount", function () {
|
|
50
50
|
_this.setContentWidth();
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { Resizable } from 're-resizable';
|
|
4
|
-
import { resizerHandleLeftClassName, resizerHandlePadding, resizerHandleRightClassName, resizerHandleZIndex, resizerItemClassName } from '../../styles/shared/resizer';
|
|
4
|
+
import { resizerHandleLeftClassName, resizerHandlePadding, resizerHandlerClassName, resizerHandleRightClassName, resizerHandleZIndex, resizerItemClassName } from '../../styles/shared/resizer';
|
|
5
5
|
import { handleSides } from './utils';
|
|
6
6
|
export default function ResizerNext(props) {
|
|
7
7
|
var resizable = React.useRef(null);
|
|
8
8
|
var handleResize = props.handleResize,
|
|
9
9
|
handleResizeStart = props.handleResizeStart,
|
|
10
|
-
handleResizeStop = props.handleResizeStop
|
|
10
|
+
handleResizeStop = props.handleResizeStop,
|
|
11
|
+
_props$handlerHeightS = props.handlerHeightSize,
|
|
12
|
+
handlerHeightSize = _props$handlerHeightS === void 0 ? 'medium' : _props$handlerHeightS;
|
|
11
13
|
var onResizeStart = React.useCallback(function (event) {
|
|
12
14
|
// prevent creating a drag event on Firefox
|
|
13
15
|
event.preventDefault();
|
|
@@ -50,6 +52,11 @@ export default function ResizerNext(props) {
|
|
|
50
52
|
right: resizerHandleRightClassName
|
|
51
53
|
};
|
|
52
54
|
}
|
|
55
|
+
|
|
56
|
+
// add handler height size classname to handleClasses
|
|
57
|
+
Object.keys(handles).forEach(function (key) {
|
|
58
|
+
handles[key] = classnames(handles[key], resizerHandlerClassName[handlerHeightSize]);
|
|
59
|
+
});
|
|
53
60
|
var innerPadding = props.innerPadding || resizerHandlePadding;
|
|
54
61
|
var handleStyles = {
|
|
55
62
|
left: {
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -17,4 +17,5 @@ export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
|
17
17
|
export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle } from './clear-next-sibling-margin-top';
|
|
18
18
|
export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
|
|
19
19
|
export { default as IntlProviderIfMissingWrapper } from './IntlProviderIfMissingWrapper';
|
|
20
|
-
export { default as FloatingToolbarButton } from './FloatingToolbar/Button';
|
|
20
|
+
export { default as FloatingToolbarButton } from './FloatingToolbar/Button';
|
|
21
|
+
export { ContextPanelProvider, ContextPanelWidthProvider, ContextPanelConsumer, ContextPanel } from './ContextPanel/context';
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -38,4 +38,5 @@ export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, is
|
|
|
38
38
|
export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent } from './hyperlink';
|
|
39
39
|
|
|
40
40
|
// prosemirror-history does not export its plugin key
|
|
41
|
-
export var pmHistoryPluginKey = 'history$';
|
|
41
|
+
export var pmHistoryPluginKey = 'history$';
|
|
42
|
+
export { gridTypeForLayout } from './grid';
|
|
@@ -656,7 +656,8 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
656
656
|
type: type,
|
|
657
657
|
content: content,
|
|
658
658
|
attrs: _objectSpread(_objectSpread({}, attrs), {}, {
|
|
659
|
-
localId: (attrs === null || attrs === void 0 ? void 0 : attrs.localId) || uuid()
|
|
659
|
+
localId: (attrs === null || attrs === void 0 ? void 0 : attrs.localId) || uuid(),
|
|
660
|
+
width: (attrs === null || attrs === void 0 ? void 0 : attrs.width) || null
|
|
660
661
|
})
|
|
661
662
|
};
|
|
662
663
|
}
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorState, PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
import type { NewCollabSyncUpErrorAttributes } from '
|
|
4
|
+
import type { NewCollabSyncUpErrorAttributes } from '@atlaskit/collab-provider/types';
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
6
6
|
import type { AvatarEventPayload } from './avatar';
|
|
7
7
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
|
-
'fabric.editor.addMediaFiles': string;
|
|
11
10
|
'fabric.editor.alignImageCenter': string;
|
|
12
11
|
'fabric.editor.alignImageLeft': string;
|
|
13
12
|
'fabric.editor.alignImageRight': string;
|
|
@@ -36,6 +35,8 @@ declare const _default: {
|
|
|
36
35
|
'fabric.editor.expandPlaceholder': string;
|
|
37
36
|
'fabric.editor.feedbackDialog': string;
|
|
38
37
|
'fabric.editor.feedbackDialog.description': string;
|
|
38
|
+
'fabric.editor.filesAndImages': string;
|
|
39
|
+
'fabric.editor.filesAndImages.description': string;
|
|
39
40
|
'fabric.editor.help': string;
|
|
40
41
|
'fabric.editor.help.description': string;
|
|
41
42
|
'fabric.editor.horizontalRule': string;
|
|
@@ -47,8 +48,6 @@ declare const _default: {
|
|
|
47
48
|
'fabric.editor.layoutWide': string;
|
|
48
49
|
'fabric.editor.link': string;
|
|
49
50
|
'fabric.editor.link.description': string;
|
|
50
|
-
'fabric.editor.mediaFiles': string;
|
|
51
|
-
'fabric.editor.mediaFiles.description': string;
|
|
52
51
|
'fabric.editor.mention': string;
|
|
53
52
|
'fabric.editor.mention.description': string;
|
|
54
53
|
'fabric.editor.openLink': string;
|
|
@@ -76,20 +75,12 @@ declare const _default: {
|
|
|
76
75
|
'fabric.editor.viewMore': string;
|
|
77
76
|
'fabric.editor.visit': string;
|
|
78
77
|
'fabric.theme.blue': string;
|
|
79
|
-
'fabric.theme.bold-blue': string;
|
|
80
|
-
'fabric.theme.bold-green': string;
|
|
81
|
-
'fabric.theme.bold-orange': string;
|
|
82
|
-
'fabric.theme.bold-purple': string;
|
|
83
|
-
'fabric.theme.bold-red': string;
|
|
84
|
-
'fabric.theme.bold-teal': string;
|
|
85
78
|
'fabric.theme.dark-blue': string;
|
|
86
|
-
'fabric.theme.dark-gray': string;
|
|
87
79
|
'fabric.theme.dark-green': string;
|
|
88
80
|
'fabric.theme.dark-purple': string;
|
|
89
81
|
'fabric.theme.dark-red': string;
|
|
90
82
|
'fabric.theme.dark-teal': string;
|
|
91
83
|
'fabric.theme.dark-yellow': string;
|
|
92
|
-
'fabric.theme.default': string;
|
|
93
84
|
'fabric.theme.gray': string;
|
|
94
85
|
'fabric.theme.green': string;
|
|
95
86
|
'fabric.theme.light-blue': string;
|
|
@@ -102,12 +93,6 @@ declare const _default: {
|
|
|
102
93
|
'fabric.theme.orange': string;
|
|
103
94
|
'fabric.theme.purple': string;
|
|
104
95
|
'fabric.theme.red': string;
|
|
105
|
-
'fabric.theme.subtle-blue': string;
|
|
106
|
-
'fabric.theme.subtle-green': string;
|
|
107
|
-
'fabric.theme.subtle-purple': string;
|
|
108
|
-
'fabric.theme.subtle-red': string;
|
|
109
|
-
'fabric.theme.subtle-teal': string;
|
|
110
|
-
'fabric.theme.subtle-yellow': string;
|
|
111
96
|
'fabric.theme.teal': string;
|
|
112
97
|
'fabric.theme.white': string;
|
|
113
98
|
'fabric.theme.yellow': string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActivityProvider } from '@atlaskit/activity-provider';
|
|
2
|
+
import type { CollabEditProvider } from '@atlaskit/collab-provider';
|
|
2
3
|
import type { EmojiProvider } from '@atlaskit/emoji/types';
|
|
3
4
|
import { MentionProvider } from '@atlaskit/mention/types';
|
|
4
5
|
import { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
5
|
-
import { CollabEditProvider } from '../collab/types';
|
|
6
6
|
import { ExtensionProvider } from '../extensions/types';
|
|
7
7
|
import { AutoformattingProvider } from './autoformatting-provider';
|
|
8
8
|
import { CardProvider } from './card-provider';
|
package/dist/types/resizer.d.ts
CHANGED
|
@@ -23,3 +23,4 @@ export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafa
|
|
|
23
23
|
export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
|
|
24
24
|
export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
|
|
25
25
|
export { resizerStyles } from './shared/resizer';
|
|
26
|
+
export { gridStyles, GRID_GUTTER } from './shared/grid';
|
|
@@ -3,4 +3,12 @@ export declare const resizerHandleRightClassName = "resizer-handle-right";
|
|
|
3
3
|
export declare const resizerHandleLeftClassName = "resizer-handle-left";
|
|
4
4
|
export declare const resizerHandlePadding = 13;
|
|
5
5
|
export declare const resizerHandleZIndex = 99;
|
|
6
|
+
export declare const resizerHandlerSmallClassName = "resizer-handler-small";
|
|
7
|
+
export declare const resizerHandlerMediumClassName = "resizer-handler-medium";
|
|
8
|
+
export declare const resizerHandlerLargeClassName = "resizer-handler-large";
|
|
9
|
+
export declare const resizerHandlerClassName: {
|
|
10
|
+
small: string;
|
|
11
|
+
medium: string;
|
|
12
|
+
large: string;
|
|
13
|
+
};
|
|
6
14
|
export declare const resizerStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { ResolvedEditorState } from '@atlaskit/collab-provider/types';
|
|
3
4
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
4
|
-
import { ResolvedEditorState } from '../collab';
|
|
5
5
|
import { EventDispatcher } from '../event-dispatcher';
|
|
6
6
|
export type ContextUpdateHandler = (editorView: EditorView, eventDispatcher: EventDispatcher) => void;
|
|
7
7
|
export type ReplaceRawValue = Node | object | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GridType = 'full' | 'wrapped';
|
|
@@ -12,7 +12,6 @@ export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
|
|
|
12
12
|
export type { AnnotationState, AnnotationProviders, AnnotationUpdateEventPayloads, InlineCommentSelectionComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, OnAnnotationClickPayload, AnnotationByMatches, AnnotationActionResult, } from './annotation';
|
|
13
13
|
export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, } from './editor-actions';
|
|
14
14
|
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
|
|
15
|
-
export type { NewCollabSyncUpErrorAttributes, SyncUpErrorFunction, } from './collab';
|
|
16
15
|
export type { CommandDispatch, Command, HigherOrderCommand } from './command';
|
|
17
16
|
export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags, } from './feature-flags';
|
|
18
17
|
export type { Browsers, Range, DisableSpellcheckByBrowser, } from './supported-browsers';
|
|
@@ -29,8 +28,9 @@ export type { EditorReactContext } from './editor-react-context';
|
|
|
29
28
|
export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
|
|
30
29
|
export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
|
|
31
30
|
export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
|
|
32
|
-
export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, } from './next-editor-plugin';
|
|
31
|
+
export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, } from './next-editor-plugin';
|
|
33
32
|
export type IconProps = {
|
|
34
33
|
label?: string;
|
|
35
34
|
};
|
|
36
35
|
export type { TTITracking, TransactionTracking, UITracking, CatchAllTracking, NodeViewTracking, BrowserFreezetracking, ProseMirrorRenderedTracking, InputTracking, ContentRetrievalTracking, OnChangeCallbackTracking, OnEditorReadyCallbackTracking, PasteTracking, RenderTracking, PerformanceTracking, } from './performance-tracking';
|
|
36
|
+
export type { GridType } from './grid';
|
|
@@ -32,6 +32,11 @@ export type PluginInjectionAPI<Name extends string, Metadata extends NextEditorP
|
|
|
32
32
|
...ExtractPluginDependenciesFromMetadata<Metadata>
|
|
33
33
|
]>;
|
|
34
34
|
};
|
|
35
|
+
export type PluginInjectionAPIWithDependency<Plugin> = Plugin extends NextEditorPlugin<infer Name, infer Metadata> ? {
|
|
36
|
+
dependencies: CreatePluginDependenciesAPI<[
|
|
37
|
+
NextEditorPlugin<Name, Metadata>
|
|
38
|
+
]>;
|
|
39
|
+
} : never;
|
|
35
40
|
type NextEditorPluginFunctionDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration> = (config: Configuration, api?: PluginInjectionAPI<Name, Metadata>) => DefaultEditorPlugin<Name, Metadata>;
|
|
36
41
|
type NextEditorPluginFunctionOptionalConfigDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration = undefined> = (config?: Configuration, api?: PluginInjectionAPI<Name, Metadata>) => DefaultEditorPlugin<Name, Metadata>;
|
|
37
42
|
type OptionalPrivateProperty = {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ContextPanelContext = {
|
|
3
|
+
width: number;
|
|
4
|
+
positionedOverEditor: boolean;
|
|
5
|
+
broadcastWidth: (width: number) => void;
|
|
6
|
+
broadcastPosition: (positionedOverEditor: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const ContextPanel: React.Context<ContextPanelContext>;
|
|
9
|
+
export type ContextPanelProviderState = {
|
|
10
|
+
width?: number;
|
|
11
|
+
positionedOverEditor?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare class ContextPanelWidthProvider extends React.Component<any, ContextPanelProviderState> {
|
|
14
|
+
state: {
|
|
15
|
+
width: number;
|
|
16
|
+
positionedOverEditor: boolean;
|
|
17
|
+
};
|
|
18
|
+
constructor(props: any);
|
|
19
|
+
broadcastSidebarWidth: (width: number) => void;
|
|
20
|
+
broadcastPosition: (positionedOverEditor: boolean) => void;
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
declare const Provider: React.Provider<ContextPanelContext>, Consumer: React.Consumer<ContextPanelContext>;
|
|
24
|
+
export { Provider as ContextPanelProvider, Consumer as ContextPanelConsumer };
|
|
@@ -16,5 +16,5 @@ export type OpenChangedEvent = {
|
|
|
16
16
|
isOpen: boolean;
|
|
17
17
|
event: MouseEvent | KeyboardEvent;
|
|
18
18
|
};
|
|
19
|
-
declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "
|
|
19
|
+
declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "children" | "id" | "position" | "trigger" | "testId" | "analyticsContext" | "isOpen" | "shouldFitContainer" | "onPositioned" | "onOpenChange"> & import("react").RefAttributes<any>>;
|
|
20
20
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { HandleComponent } from 're-resizable';
|
|
3
|
-
import { EnabledHandles, HandleResize } from './types';
|
|
3
|
+
import { EnabledHandles, HandleResize, HandlerHeightSizeType } from './types';
|
|
4
4
|
export interface ResizableNumberSize {
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
@@ -18,5 +18,6 @@ export type ResizerProps = {
|
|
|
18
18
|
maxWidth?: number;
|
|
19
19
|
handleWrapperStyle?: React.CSSProperties;
|
|
20
20
|
handleComponent?: HandleComponent;
|
|
21
|
+
handlerHeightSize?: HandlerHeightSizeType;
|
|
21
22
|
};
|
|
22
23
|
export default function ResizerNext(props: PropsWithChildren<ResizerProps>): JSX.Element;
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -26,3 +26,4 @@ export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle
|
|
|
26
26
|
export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE, } from './IntlErrorBoundary';
|
|
27
27
|
export { default as IntlProviderIfMissingWrapper } from './IntlProviderIfMissingWrapper';
|
|
28
28
|
export { default as FloatingToolbarButton } from './FloatingToolbar/Button';
|
|
29
|
+
export { ContextPanelProvider, ContextPanelWidthProvider, ContextPanelConsumer, ContextPanel, } from './ContextPanel/context';
|
|
@@ -42,7 +42,7 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
|
42
42
|
onItemClick?: ((item: MenuItem) => void) | undefined;
|
|
43
43
|
onKeyDown?: ((event: React.KeyboardEvent<HTMLElement>) => void) | undefined;
|
|
44
44
|
selected?: boolean | undefined;
|
|
45
|
-
spacing?: "
|
|
45
|
+
spacing?: "default" | "none" | "compact" | undefined;
|
|
46
46
|
target?: string | undefined;
|
|
47
47
|
title?: React.ReactNode;
|
|
48
48
|
titlePosition?: PositionType | undefined;
|
|
@@ -49,3 +49,4 @@ export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName,
|
|
|
49
49
|
export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
|
|
50
50
|
export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, } from './hyperlink';
|
|
51
51
|
export declare const pmHistoryPluginKey = "history$";
|
|
52
|
+
export { gridTypeForLayout } from './grid';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorState, PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
import type { NewCollabSyncUpErrorAttributes } from '
|
|
4
|
+
import type { NewCollabSyncUpErrorAttributes } from '@atlaskit/collab-provider/types';
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
6
6
|
import type { AvatarEventPayload } from './avatar';
|
|
7
7
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|