@atlaskit/editor-common 78.30.0 → 78.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 +15 -0
- package/dist/cjs/analytics/fire-analytics-event.js +5 -16
- package/dist/cjs/card/LinkToolbarButtonGroup.js +12 -6
- package/dist/cjs/element-browser/ViewMore.js +13 -5
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +9 -6
- package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +6 -4
- package/dist/cjs/element-browser/hooks/use-container-width.js +5 -4
- package/dist/cjs/expand/index.js +8 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +38 -11
- package/dist/cjs/messages/table.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/Caption/index.js +13 -6
- package/dist/cjs/ui/DropList/index.js +23 -6
- package/dist/cjs/ui/Expand/index.js +81 -9
- package/dist/cjs/ui/FloatingToolbar/Separator.js +8 -4
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +4 -3
- package/dist/cjs/ui/MediaSingle/link.js +11 -4
- package/dist/cjs/ui/Messages/index.js +18 -6
- package/dist/cjs/ui/PanelTextInput/styles.js +30 -5
- package/dist/cjs/ui/UnsupportedBlock/index.js +19 -4
- package/dist/cjs/ui/WidthProvider/index.js +7 -4
- package/dist/cjs/ui-color/ColorPalette/styles.js +5 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +15 -5
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +8 -6
- package/dist/cjs/ui-menu/ToolbarButton/index.js +8 -7
- package/dist/es2019/analytics/fire-analytics-event.js +5 -16
- package/dist/es2019/card/LinkToolbarButtonGroup.js +12 -12
- package/dist/es2019/element-browser/ViewMore.js +12 -12
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +7 -7
- package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +5 -5
- package/dist/es2019/element-browser/hooks/use-container-width.js +3 -3
- package/dist/es2019/expand/index.js +7 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +37 -37
- package/dist/es2019/messages/table.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/Caption/index.js +12 -12
- package/dist/es2019/ui/DropList/index.js +23 -21
- package/dist/es2019/ui/Expand/index.js +71 -78
- package/dist/es2019/ui/FloatingToolbar/Separator.js +7 -7
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +3 -3
- package/dist/es2019/ui/MediaSingle/link.js +11 -11
- package/dist/es2019/ui/Messages/index.js +17 -17
- package/dist/es2019/ui/PanelTextInput/styles.js +26 -30
- package/dist/es2019/ui/UnsupportedBlock/index.js +17 -17
- package/dist/es2019/ui/WidthProvider/index.js +5 -4
- package/dist/es2019/ui-color/ColorPalette/styles.js +4 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +10 -8
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +5 -5
- package/dist/es2019/ui-menu/ToolbarButton/index.js +4 -4
- package/dist/esm/analytics/fire-analytics-event.js +5 -16
- package/dist/esm/card/LinkToolbarButtonGroup.js +12 -6
- package/dist/esm/element-browser/ViewMore.js +12 -4
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +7 -3
- package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +5 -3
- package/dist/esm/element-browser/hooks/use-container-width.js +3 -3
- package/dist/esm/expand/index.js +7 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +37 -9
- package/dist/esm/messages/table.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/Caption/index.js +12 -4
- package/dist/esm/ui/DropList/index.js +23 -6
- package/dist/esm/ui/Expand/index.js +81 -9
- package/dist/esm/ui/FloatingToolbar/Separator.js +7 -3
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +3 -3
- package/dist/esm/ui/MediaSingle/link.js +11 -3
- package/dist/esm/ui/Messages/index.js +17 -6
- package/dist/esm/ui/PanelTextInput/styles.js +30 -4
- package/dist/esm/ui/UnsupportedBlock/index.js +17 -3
- package/dist/esm/ui/WidthProvider/index.js +5 -3
- package/dist/esm/ui-color/ColorPalette/styles.js +5 -3
- package/dist/esm/ui-menu/DropdownMenu/index.js +15 -5
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +5 -3
- package/dist/esm/ui-menu/ToolbarButton/index.js +4 -3
- package/dist/types/expand/index.d.ts +1 -0
- package/dist/types/messages/table.d.ts +10 -0
- package/dist/types/types/feature-flags.d.ts +2 -0
- package/dist/types/ui/Caption/index.d.ts +1 -1
- package/dist/types/ui/UnsupportedBlock/index.d.ts +3 -3
- package/dist/types-ts4.5/expand/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/table.d.ts +10 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +2 -0
- package/dist/types-ts4.5/ui/Caption/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +3 -3
- package/package.json +7 -7
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
|
-
export var colorPaletteWrapper = css(
|
|
2
|
+
export var colorPaletteWrapper = css({
|
|
3
|
+
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
4
|
+
/* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */
|
|
5
|
+
display: 'flex'
|
|
6
|
+
});
|
|
@@ -11,7 +11,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
11
11
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
12
12
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
13
13
|
var _excluded = ["children"];
|
|
14
|
-
var _templateObject, _templateObject2
|
|
14
|
+
var _templateObject, _templateObject2;
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
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); }; }
|
|
@@ -32,16 +32,26 @@ import DropList from '../../ui/DropList';
|
|
|
32
32
|
import Popup from '../../ui/Popup';
|
|
33
33
|
import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
34
34
|
import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
35
|
-
var wrapper = css(
|
|
36
|
-
|
|
35
|
+
var wrapper = css({
|
|
36
|
+
/* tooltip in ToolbarButton is display:block */
|
|
37
|
+
'& > div > div': {
|
|
38
|
+
display: 'flex'
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
var focusedMenuItemStyle = css({
|
|
42
|
+
boxShadow: "inset 0px 0px 0px 2px ".concat("var(--ds-border-focused, ".concat(B100, ")")),
|
|
43
|
+
outline: 'none'
|
|
44
|
+
});
|
|
37
45
|
var buttonStyles = function buttonStyles(isActive, submenuActive) {
|
|
38
46
|
if (isActive) {
|
|
39
47
|
/**
|
|
40
48
|
* Hack for item to imitate old dropdown-menu selected styles
|
|
41
49
|
*/
|
|
42
|
-
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
51
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n > span,\n > span:hover,\n > span:active {\n background: ", ";\n color: ", ";\n }\n :focus > span[aria-disabled='false'] {\n ", ";\n }\n :focus-visible,\n :focus-visible > span[aria-disabled='false'] {\n outline: none;\n }\n "])), "var(--ds-background-selected, #6c798f)", "var(--ds-text, #fff)", focusedMenuItemStyle);
|
|
43
52
|
} else {
|
|
44
|
-
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
54
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n > span:hover[aria-disabled='false'] {\n color: ", ";\n background-color: ", ";\n }\n ", "\n > span[aria-disabled='true'] {\n color: ", ";\n }\n :focus > span[aria-disabled='false'] {\n ", ";\n }\n :focus-visible,\n :focus-visible > span[aria-disabled='false'] {\n outline: none;\n }\n "])), "var(--ds-text, ".concat(N900, ")"), "var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))", !submenuActive && "\n > span:active[aria-disabled='false'] {\n background-color: ".concat("var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))", ";\n }"), "var(--ds-text-disabled, ".concat(N70, ")"), focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
|
|
45
55
|
}
|
|
46
56
|
};
|
|
47
57
|
var DropListWithOutsideListeners = withReactEditorViewOuterListeners(DropList);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
/* eslint-disable no-console */
|
|
5
3
|
|
|
@@ -17,7 +15,11 @@ export var KeyDownHandlerContext = /*#__PURE__*/React.createContext({
|
|
|
17
15
|
handleArrowRight: function handleArrowRight() {},
|
|
18
16
|
handleTab: function handleTab() {}
|
|
19
17
|
});
|
|
20
|
-
var centeredToolbarContainer = css(
|
|
18
|
+
var centeredToolbarContainer = css({
|
|
19
|
+
display: 'flex',
|
|
20
|
+
width: '100%',
|
|
21
|
+
alignItems: 'center'
|
|
22
|
+
});
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* This component is a wrapper of main toolbar which listens to keydown events of children
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
|
-
var _templateObject;
|
|
4
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
4
|
// This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
|
|
@@ -14,7 +12,10 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
14
12
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
15
13
|
import Button from './styles';
|
|
16
14
|
export var TOOLBAR_BUTTON = TOOLBAR_ACTION_SUBJECT_ID;
|
|
17
|
-
var buttonWrapper = css(
|
|
15
|
+
var buttonWrapper = css({
|
|
16
|
+
display: 'flex',
|
|
17
|
+
height: '100%'
|
|
18
|
+
});
|
|
18
19
|
var ToolbarButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
19
20
|
var buttonId = props.buttonId,
|
|
20
21
|
testId = props.testId,
|
|
@@ -214,6 +214,16 @@ export declare const messages: {
|
|
|
214
214
|
defaultMessage: string;
|
|
215
215
|
description: string;
|
|
216
216
|
};
|
|
217
|
+
lockColumnWidths: {
|
|
218
|
+
id: string;
|
|
219
|
+
defaultMessage: string;
|
|
220
|
+
description: string;
|
|
221
|
+
};
|
|
222
|
+
unlockColumnWidths: {
|
|
223
|
+
id: string;
|
|
224
|
+
defaultMessage: string;
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
217
227
|
rowControl: {
|
|
218
228
|
id: string;
|
|
219
229
|
defaultMessage: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
5
|
type Props = {
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
hasContent?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { UnsupportedContentTooltipPayload } from '../../utils';
|
|
6
6
|
export interface Props {
|
|
7
7
|
node?: PMNode;
|
|
8
8
|
children?: React.ReactNode;
|
|
@@ -214,6 +214,16 @@ export declare const messages: {
|
|
|
214
214
|
defaultMessage: string;
|
|
215
215
|
description: string;
|
|
216
216
|
};
|
|
217
|
+
lockColumnWidths: {
|
|
218
|
+
id: string;
|
|
219
|
+
defaultMessage: string;
|
|
220
|
+
description: string;
|
|
221
|
+
};
|
|
222
|
+
unlockColumnWidths: {
|
|
223
|
+
id: string;
|
|
224
|
+
defaultMessage: string;
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
217
227
|
rowControl: {
|
|
218
228
|
id: string;
|
|
219
229
|
defaultMessage: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
5
5
|
type Props = {
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
hasContent?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { UnsupportedContentTooltipPayload } from '../../utils';
|
|
6
6
|
export interface Props {
|
|
7
7
|
node?: PMNode;
|
|
8
8
|
children?: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.30.
|
|
3
|
+
"version": "78.30.2",
|
|
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/"
|
|
@@ -95,16 +95,16 @@
|
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
98
|
-
"@atlaskit/adf-schema": "^35.9.
|
|
98
|
+
"@atlaskit/adf-schema": "^35.9.2",
|
|
99
99
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
100
100
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
101
101
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
102
102
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
103
103
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
104
|
-
"@atlaskit/button": "^17.
|
|
104
|
+
"@atlaskit/button": "^17.13.0",
|
|
105
105
|
"@atlaskit/code": "^15.1.0",
|
|
106
106
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
107
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
107
|
+
"@atlaskit/custom-steps": "^0.0.19",
|
|
108
108
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
109
109
|
"@atlaskit/editor-palette": "1.5.3",
|
|
110
110
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
@@ -115,14 +115,14 @@
|
|
|
115
115
|
"@atlaskit/icon-object": "^6.3.0",
|
|
116
116
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
117
117
|
"@atlaskit/link-datasource": "^1.28.0",
|
|
118
|
-
"@atlaskit/link-picker": "^1.
|
|
118
|
+
"@atlaskit/link-picker": "^1.35.0",
|
|
119
119
|
"@atlaskit/media-card": "^77.11.0",
|
|
120
120
|
"@atlaskit/media-client": "^26.3.0",
|
|
121
121
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
122
122
|
"@atlaskit/media-common": "^11.1.0",
|
|
123
123
|
"@atlaskit/media-file-preview": "^0.5.0",
|
|
124
124
|
"@atlaskit/media-picker": "^66.4.0",
|
|
125
|
-
"@atlaskit/media-ui": "^25.
|
|
125
|
+
"@atlaskit/media-ui": "^25.9.0",
|
|
126
126
|
"@atlaskit/media-viewer": "48.4.4",
|
|
127
127
|
"@atlaskit/mention": "^23.0.0",
|
|
128
128
|
"@atlaskit/menu": "^2.1.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"@atlaskit/primitives": "^5.5.0",
|
|
131
131
|
"@atlaskit/profilecard": "^19.11.0",
|
|
132
132
|
"@atlaskit/section-message": "^6.4.0",
|
|
133
|
-
"@atlaskit/smart-card": "^26.
|
|
133
|
+
"@atlaskit/smart-card": "^26.57.0",
|
|
134
134
|
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
135
135
|
"@atlaskit/spinner": "^16.0.0",
|
|
136
136
|
"@atlaskit/task-decision": "^17.9.0",
|