@atlaskit/editor-common 94.2.0 → 94.3.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 +28 -0
- package/dist/cjs/messages/insert-block.js +0 -20
- package/dist/cjs/messages/layout.js +20 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Pulse/Pulse.js +1 -2
- package/dist/cjs/with-plugin-state/index.js +1 -1
- package/dist/es2019/messages/insert-block.js +0 -20
- package/dist/es2019/messages/layout.js +20 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Pulse/Pulse.js +1 -2
- package/dist/es2019/with-plugin-state/index.js +1 -1
- package/dist/esm/messages/insert-block.js +0 -20
- package/dist/esm/messages/layout.js +20 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Pulse/Pulse.js +1 -2
- package/dist/esm/with-plugin-state/index.js +1 -1
- package/dist/types/messages/insert-block.d.ts +0 -20
- package/dist/types/messages/layout.d.ts +20 -0
- package/dist/types/types/floating-toolbar.d.ts +2 -0
- package/dist/types-ts4.5/messages/insert-block.d.ts +0 -20
- package/dist/types-ts4.5/messages/layout.d.ts +20 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +2 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 94.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#154829](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154829)
|
|
8
|
+
[`0646280e9ab18`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0646280e9ab18) -
|
|
9
|
+
[EDF-1176](https://product-fabric.atlassian.net/browse/EDF-1176) - add pulse EP effect to AI
|
|
10
|
+
button in Editor floating toolbar
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#155293](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155293)
|
|
15
|
+
[`28161e3c04419`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28161e3c04419) -
|
|
16
|
+
[ux] Implement toolbar options on layout for setting number of columns
|
|
17
|
+
- [#156078](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156078)
|
|
18
|
+
[`2b70196727715`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2b70196727715) -
|
|
19
|
+
[ux] Update text for inserting multi column layout
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 94.2.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#155345](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155345)
|
|
27
|
+
[`9f00717c4915b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f00717c4915b) -
|
|
28
|
+
[ux] Add layout placeholder behind feature gate
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 94.2.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -171,26 +171,6 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
|
|
|
171
171
|
defaultMessage: 'Layouts',
|
|
172
172
|
description: 'Create a multi column section or layout'
|
|
173
173
|
},
|
|
174
|
-
twoColumns: {
|
|
175
|
-
id: 'fabric.editor.twoColumns',
|
|
176
|
-
defaultMessage: '2 columns layout',
|
|
177
|
-
description: 'Create a section or layout with two columns'
|
|
178
|
-
},
|
|
179
|
-
threeColumns: {
|
|
180
|
-
id: 'fabric.editor.threeColumns',
|
|
181
|
-
defaultMessage: '3 columns layout',
|
|
182
|
-
description: 'Create a section or layout with three columns'
|
|
183
|
-
},
|
|
184
|
-
fourColumns: {
|
|
185
|
-
id: 'fabric.editor.fourColumns',
|
|
186
|
-
defaultMessage: '4 columns layout',
|
|
187
|
-
description: 'Create a section or layout with four columns'
|
|
188
|
-
},
|
|
189
|
-
fiveColumns: {
|
|
190
|
-
id: 'fabric.editor.fiveColumns',
|
|
191
|
-
defaultMessage: '5 columns layout',
|
|
192
|
-
description: 'Create a section or layout with five columns'
|
|
193
|
-
},
|
|
194
174
|
columnsDescription: {
|
|
195
175
|
id: 'fabric.editor.columns.description',
|
|
196
176
|
defaultMessage: 'Structure your page using sections',
|
|
@@ -21,6 +21,16 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessage
|
|
|
21
21
|
defaultMessage: 'Three columns layout',
|
|
22
22
|
description: 'Layout with three columns of equal width'
|
|
23
23
|
},
|
|
24
|
+
fourColumns: {
|
|
25
|
+
id: 'fabric.editor.fourColumns',
|
|
26
|
+
defaultMessage: 'Four columns layout',
|
|
27
|
+
description: 'Layout with four columns of equal width'
|
|
28
|
+
},
|
|
29
|
+
fiveColumns: {
|
|
30
|
+
id: 'fabric.editor.fiveColumns',
|
|
31
|
+
defaultMessage: 'Five columns layout',
|
|
32
|
+
description: 'Layout with five columns of equal width'
|
|
33
|
+
},
|
|
24
34
|
rightSidebar: {
|
|
25
35
|
id: 'fabric.editor.rightSidebar',
|
|
26
36
|
defaultMessage: 'Right sidebar layout',
|
|
@@ -40,5 +50,15 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessage
|
|
|
40
50
|
id: 'fabric.editor.floatingToolbar.floatingToolbarRadioGroupAriaLabel',
|
|
41
51
|
defaultMessage: 'Layout options',
|
|
42
52
|
description: "a floating toolbar radiogroup's aria label"
|
|
53
|
+
},
|
|
54
|
+
layoutPlaceholder: {
|
|
55
|
+
id: 'fabric.editor.layout.placeholder',
|
|
56
|
+
defaultMessage: 'Add content',
|
|
57
|
+
description: 'Add placeholder text for empty layout'
|
|
58
|
+
},
|
|
59
|
+
columnOption: {
|
|
60
|
+
id: 'fabric.editor.layout.columnOption',
|
|
61
|
+
defaultMessage: '{count, plural, one {-column} other {{count}-columns}}',
|
|
62
|
+
description: 'column option text for layout'
|
|
43
63
|
}
|
|
44
64
|
});
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "94.
|
|
20
|
+
var packageVersion = "94.3.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -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 = "94.
|
|
27
|
+
var packageVersion = "94.3.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Pulse = Pulse;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _onboarding = require("@atlaskit/onboarding");
|
|
10
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
11
10
|
/**
|
|
12
11
|
* Wraps children with {@link SpotlightPulse} component.
|
|
13
12
|
*
|
|
@@ -21,7 +20,7 @@ function Pulse(_ref) {
|
|
|
21
20
|
_ref$radius = _ref.radius,
|
|
22
21
|
radius = _ref$radius === void 0 ? 3 : _ref$radius,
|
|
23
22
|
children = _ref.children;
|
|
24
|
-
if (
|
|
23
|
+
if (pulse) {
|
|
25
24
|
return (
|
|
26
25
|
/*#__PURE__*/
|
|
27
26
|
// SpotlightPulse shows pulse effect if `pulse` is `undefined`.
|
|
@@ -28,7 +28,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
28
28
|
var DEFAULT_SAMPLING_RATE = 100;
|
|
29
29
|
var DEFAULT_SLOW_THRESHOLD = 4;
|
|
30
30
|
|
|
31
|
-
// That context was
|
|
31
|
+
// That context was extract from the old WithPluginState from editor-core
|
|
32
32
|
// It was using some private types from
|
|
33
33
|
// - EditorAction: packages/editor/editor-core/src/actions/index.ts
|
|
34
34
|
// - EditorSharedConfig: packages/editor/editor-core/src/labs/next/internal/context/shared-config.tsx
|
|
@@ -165,26 +165,6 @@ export const toolbarInsertBlockMessages = defineMessages({
|
|
|
165
165
|
defaultMessage: 'Layouts',
|
|
166
166
|
description: 'Create a multi column section or layout'
|
|
167
167
|
},
|
|
168
|
-
twoColumns: {
|
|
169
|
-
id: 'fabric.editor.twoColumns',
|
|
170
|
-
defaultMessage: '2 columns layout',
|
|
171
|
-
description: 'Create a section or layout with two columns'
|
|
172
|
-
},
|
|
173
|
-
threeColumns: {
|
|
174
|
-
id: 'fabric.editor.threeColumns',
|
|
175
|
-
defaultMessage: '3 columns layout',
|
|
176
|
-
description: 'Create a section or layout with three columns'
|
|
177
|
-
},
|
|
178
|
-
fourColumns: {
|
|
179
|
-
id: 'fabric.editor.fourColumns',
|
|
180
|
-
defaultMessage: '4 columns layout',
|
|
181
|
-
description: 'Create a section or layout with four columns'
|
|
182
|
-
},
|
|
183
|
-
fiveColumns: {
|
|
184
|
-
id: 'fabric.editor.fiveColumns',
|
|
185
|
-
defaultMessage: '5 columns layout',
|
|
186
|
-
description: 'Create a section or layout with five columns'
|
|
187
|
-
},
|
|
188
168
|
columnsDescription: {
|
|
189
169
|
id: 'fabric.editor.columns.description',
|
|
190
170
|
defaultMessage: 'Structure your page using sections',
|
|
@@ -15,6 +15,16 @@ export const toolbarMessages = defineMessages({
|
|
|
15
15
|
defaultMessage: 'Three columns layout',
|
|
16
16
|
description: 'Layout with three columns of equal width'
|
|
17
17
|
},
|
|
18
|
+
fourColumns: {
|
|
19
|
+
id: 'fabric.editor.fourColumns',
|
|
20
|
+
defaultMessage: 'Four columns layout',
|
|
21
|
+
description: 'Layout with four columns of equal width'
|
|
22
|
+
},
|
|
23
|
+
fiveColumns: {
|
|
24
|
+
id: 'fabric.editor.fiveColumns',
|
|
25
|
+
defaultMessage: 'Five columns layout',
|
|
26
|
+
description: 'Layout with five columns of equal width'
|
|
27
|
+
},
|
|
18
28
|
rightSidebar: {
|
|
19
29
|
id: 'fabric.editor.rightSidebar',
|
|
20
30
|
defaultMessage: 'Right sidebar layout',
|
|
@@ -34,5 +44,15 @@ export const toolbarMessages = defineMessages({
|
|
|
34
44
|
id: 'fabric.editor.floatingToolbar.floatingToolbarRadioGroupAriaLabel',
|
|
35
45
|
defaultMessage: 'Layout options',
|
|
36
46
|
description: "a floating toolbar radiogroup's aria label"
|
|
47
|
+
},
|
|
48
|
+
layoutPlaceholder: {
|
|
49
|
+
id: 'fabric.editor.layout.placeholder',
|
|
50
|
+
defaultMessage: 'Add content',
|
|
51
|
+
description: 'Add placeholder text for empty layout'
|
|
52
|
+
},
|
|
53
|
+
columnOption: {
|
|
54
|
+
id: 'fabric.editor.layout.columnOption',
|
|
55
|
+
defaultMessage: '{count, plural, one {-column} other {{count}-columns}}',
|
|
56
|
+
description: 'column option text for layout'
|
|
37
57
|
}
|
|
38
58
|
});
|
|
@@ -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 = "94.
|
|
4
|
+
const packageVersion = "94.3.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "94.
|
|
16
|
+
const packageVersion = "94.3.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SpotlightPulse } from '@atlaskit/onboarding';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
3
|
/**
|
|
5
4
|
* Wraps children with {@link SpotlightPulse} component.
|
|
6
5
|
*
|
|
@@ -14,7 +13,7 @@ export function Pulse({
|
|
|
14
13
|
radius = 3,
|
|
15
14
|
children
|
|
16
15
|
}) {
|
|
17
|
-
if (
|
|
16
|
+
if (pulse) {
|
|
18
17
|
return (
|
|
19
18
|
/*#__PURE__*/
|
|
20
19
|
// SpotlightPulse shows pulse effect if `pulse` is `undefined`.
|
|
@@ -11,7 +11,7 @@ import { analyticsEventKey } from '../utils';
|
|
|
11
11
|
const DEFAULT_SAMPLING_RATE = 100;
|
|
12
12
|
const DEFAULT_SLOW_THRESHOLD = 4;
|
|
13
13
|
|
|
14
|
-
// That context was
|
|
14
|
+
// That context was extract from the old WithPluginState from editor-core
|
|
15
15
|
// It was using some private types from
|
|
16
16
|
// - EditorAction: packages/editor/editor-core/src/actions/index.ts
|
|
17
17
|
// - EditorSharedConfig: packages/editor/editor-core/src/labs/next/internal/context/shared-config.tsx
|
|
@@ -165,26 +165,6 @@ export var toolbarInsertBlockMessages = defineMessages({
|
|
|
165
165
|
defaultMessage: 'Layouts',
|
|
166
166
|
description: 'Create a multi column section or layout'
|
|
167
167
|
},
|
|
168
|
-
twoColumns: {
|
|
169
|
-
id: 'fabric.editor.twoColumns',
|
|
170
|
-
defaultMessage: '2 columns layout',
|
|
171
|
-
description: 'Create a section or layout with two columns'
|
|
172
|
-
},
|
|
173
|
-
threeColumns: {
|
|
174
|
-
id: 'fabric.editor.threeColumns',
|
|
175
|
-
defaultMessage: '3 columns layout',
|
|
176
|
-
description: 'Create a section or layout with three columns'
|
|
177
|
-
},
|
|
178
|
-
fourColumns: {
|
|
179
|
-
id: 'fabric.editor.fourColumns',
|
|
180
|
-
defaultMessage: '4 columns layout',
|
|
181
|
-
description: 'Create a section or layout with four columns'
|
|
182
|
-
},
|
|
183
|
-
fiveColumns: {
|
|
184
|
-
id: 'fabric.editor.fiveColumns',
|
|
185
|
-
defaultMessage: '5 columns layout',
|
|
186
|
-
description: 'Create a section or layout with five columns'
|
|
187
|
-
},
|
|
188
168
|
columnsDescription: {
|
|
189
169
|
id: 'fabric.editor.columns.description',
|
|
190
170
|
defaultMessage: 'Structure your page using sections',
|
|
@@ -15,6 +15,16 @@ export var toolbarMessages = defineMessages({
|
|
|
15
15
|
defaultMessage: 'Three columns layout',
|
|
16
16
|
description: 'Layout with three columns of equal width'
|
|
17
17
|
},
|
|
18
|
+
fourColumns: {
|
|
19
|
+
id: 'fabric.editor.fourColumns',
|
|
20
|
+
defaultMessage: 'Four columns layout',
|
|
21
|
+
description: 'Layout with four columns of equal width'
|
|
22
|
+
},
|
|
23
|
+
fiveColumns: {
|
|
24
|
+
id: 'fabric.editor.fiveColumns',
|
|
25
|
+
defaultMessage: 'Five columns layout',
|
|
26
|
+
description: 'Layout with five columns of equal width'
|
|
27
|
+
},
|
|
18
28
|
rightSidebar: {
|
|
19
29
|
id: 'fabric.editor.rightSidebar',
|
|
20
30
|
defaultMessage: 'Right sidebar layout',
|
|
@@ -34,5 +44,15 @@ export var toolbarMessages = defineMessages({
|
|
|
34
44
|
id: 'fabric.editor.floatingToolbar.floatingToolbarRadioGroupAriaLabel',
|
|
35
45
|
defaultMessage: 'Layout options',
|
|
36
46
|
description: "a floating toolbar radiogroup's aria label"
|
|
47
|
+
},
|
|
48
|
+
layoutPlaceholder: {
|
|
49
|
+
id: 'fabric.editor.layout.placeholder',
|
|
50
|
+
defaultMessage: 'Add content',
|
|
51
|
+
description: 'Add placeholder text for empty layout'
|
|
52
|
+
},
|
|
53
|
+
columnOption: {
|
|
54
|
+
id: 'fabric.editor.layout.columnOption',
|
|
55
|
+
defaultMessage: '{count, plural, one {-column} other {{count}-columns}}',
|
|
56
|
+
description: 'column option text for layout'
|
|
37
57
|
}
|
|
38
58
|
});
|
|
@@ -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 = "94.
|
|
10
|
+
var packageVersion = "94.3.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "94.
|
|
24
|
+
var packageVersion = "94.3.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SpotlightPulse } from '@atlaskit/onboarding';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
3
|
/**
|
|
5
4
|
* Wraps children with {@link SpotlightPulse} component.
|
|
6
5
|
*
|
|
@@ -14,7 +13,7 @@ export function Pulse(_ref) {
|
|
|
14
13
|
_ref$radius = _ref.radius,
|
|
15
14
|
radius = _ref$radius === void 0 ? 3 : _ref$radius,
|
|
16
15
|
children = _ref.children;
|
|
17
|
-
if (
|
|
16
|
+
if (pulse) {
|
|
18
17
|
return (
|
|
19
18
|
/*#__PURE__*/
|
|
20
19
|
// SpotlightPulse shows pulse effect if `pulse` is `undefined`.
|
|
@@ -21,7 +21,7 @@ import { analyticsEventKey } from '../utils';
|
|
|
21
21
|
var DEFAULT_SAMPLING_RATE = 100;
|
|
22
22
|
var DEFAULT_SLOW_THRESHOLD = 4;
|
|
23
23
|
|
|
24
|
-
// That context was
|
|
24
|
+
// That context was extract from the old WithPluginState from editor-core
|
|
25
25
|
// It was using some private types from
|
|
26
26
|
// - EditorAction: packages/editor/editor-core/src/actions/index.ts
|
|
27
27
|
// - EditorSharedConfig: packages/editor/editor-core/src/labs/next/internal/context/shared-config.tsx
|
|
@@ -164,26 +164,6 @@ export declare const toolbarInsertBlockMessages: {
|
|
|
164
164
|
defaultMessage: string;
|
|
165
165
|
description: string;
|
|
166
166
|
};
|
|
167
|
-
twoColumns: {
|
|
168
|
-
id: string;
|
|
169
|
-
defaultMessage: string;
|
|
170
|
-
description: string;
|
|
171
|
-
};
|
|
172
|
-
threeColumns: {
|
|
173
|
-
id: string;
|
|
174
|
-
defaultMessage: string;
|
|
175
|
-
description: string;
|
|
176
|
-
};
|
|
177
|
-
fourColumns: {
|
|
178
|
-
id: string;
|
|
179
|
-
defaultMessage: string;
|
|
180
|
-
description: string;
|
|
181
|
-
};
|
|
182
|
-
fiveColumns: {
|
|
183
|
-
id: string;
|
|
184
|
-
defaultMessage: string;
|
|
185
|
-
description: string;
|
|
186
|
-
};
|
|
187
167
|
columnsDescription: {
|
|
188
168
|
id: string;
|
|
189
169
|
defaultMessage: string;
|
|
@@ -14,6 +14,16 @@ export declare const toolbarMessages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
fourColumns: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
fiveColumns: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
17
27
|
rightSidebar: {
|
|
18
28
|
id: string;
|
|
19
29
|
defaultMessage: string;
|
|
@@ -34,4 +44,14 @@ export declare const toolbarMessages: {
|
|
|
34
44
|
defaultMessage: string;
|
|
35
45
|
description: string;
|
|
36
46
|
};
|
|
47
|
+
layoutPlaceholder: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
columnOption: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
37
57
|
};
|
|
@@ -222,6 +222,8 @@ export type FloatingToolbarDropdown<T extends {}> = {
|
|
|
222
222
|
footer?: React.ReactNode;
|
|
223
223
|
/** If true, the component will have pulse onboarding effect around it. */
|
|
224
224
|
pulse?: boolean;
|
|
225
|
+
onMount?: () => void;
|
|
226
|
+
onClick?: () => void;
|
|
225
227
|
};
|
|
226
228
|
type FloatingToolbarExtensionsPlaceholder = {
|
|
227
229
|
type: 'extensions-placeholder';
|
|
@@ -164,26 +164,6 @@ export declare const toolbarInsertBlockMessages: {
|
|
|
164
164
|
defaultMessage: string;
|
|
165
165
|
description: string;
|
|
166
166
|
};
|
|
167
|
-
twoColumns: {
|
|
168
|
-
id: string;
|
|
169
|
-
defaultMessage: string;
|
|
170
|
-
description: string;
|
|
171
|
-
};
|
|
172
|
-
threeColumns: {
|
|
173
|
-
id: string;
|
|
174
|
-
defaultMessage: string;
|
|
175
|
-
description: string;
|
|
176
|
-
};
|
|
177
|
-
fourColumns: {
|
|
178
|
-
id: string;
|
|
179
|
-
defaultMessage: string;
|
|
180
|
-
description: string;
|
|
181
|
-
};
|
|
182
|
-
fiveColumns: {
|
|
183
|
-
id: string;
|
|
184
|
-
defaultMessage: string;
|
|
185
|
-
description: string;
|
|
186
|
-
};
|
|
187
167
|
columnsDescription: {
|
|
188
168
|
id: string;
|
|
189
169
|
defaultMessage: string;
|
|
@@ -14,6 +14,16 @@ export declare const toolbarMessages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
fourColumns: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
fiveColumns: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
17
27
|
rightSidebar: {
|
|
18
28
|
id: string;
|
|
19
29
|
defaultMessage: string;
|
|
@@ -34,4 +44,14 @@ export declare const toolbarMessages: {
|
|
|
34
44
|
defaultMessage: string;
|
|
35
45
|
description: string;
|
|
36
46
|
};
|
|
47
|
+
layoutPlaceholder: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
columnOption: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
37
57
|
};
|
|
@@ -222,6 +222,8 @@ export type FloatingToolbarDropdown<T extends {}> = {
|
|
|
222
222
|
footer?: React.ReactNode;
|
|
223
223
|
/** If true, the component will have pulse onboarding effect around it. */
|
|
224
224
|
pulse?: boolean;
|
|
225
|
+
onMount?: () => void;
|
|
226
|
+
onClick?: () => void;
|
|
225
227
|
};
|
|
226
228
|
type FloatingToolbarExtensionsPlaceholder = {
|
|
227
229
|
type: 'extensions-placeholder';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "94.
|
|
3
|
+
"version": "94.3.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
112
112
|
"@atlaskit/adf-schema": "^42.3.1",
|
|
113
|
-
"@atlaskit/adf-utils": "^19.
|
|
113
|
+
"@atlaskit/adf-utils": "^19.10.0",
|
|
114
114
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
115
115
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
116
116
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
@@ -121,36 +121,36 @@
|
|
|
121
121
|
"@atlaskit/custom-steps": "^0.8.0",
|
|
122
122
|
"@atlaskit/dropdown-menu": "^12.21.0",
|
|
123
123
|
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
124
|
-
"@atlaskit/editor-palette": "1.6.
|
|
124
|
+
"@atlaskit/editor-palette": "1.6.2",
|
|
125
125
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
126
126
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
127
127
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
128
128
|
"@atlaskit/emoji": "^67.8.0",
|
|
129
|
-
"@atlaskit/icon": "^22.
|
|
130
|
-
"@atlaskit/icon-object": "^6.
|
|
129
|
+
"@atlaskit/icon": "^22.24.0",
|
|
130
|
+
"@atlaskit/icon-object": "^6.7.0",
|
|
131
131
|
"@atlaskit/link-datasource": "^3.6.0",
|
|
132
132
|
"@atlaskit/link-picker": "^1.47.0",
|
|
133
|
-
"@atlaskit/media-card": "^78.
|
|
133
|
+
"@atlaskit/media-card": "^78.8.0",
|
|
134
134
|
"@atlaskit/media-client": "^28.0.0",
|
|
135
135
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
136
|
-
"@atlaskit/media-common": "^11.
|
|
136
|
+
"@atlaskit/media-common": "^11.7.0",
|
|
137
137
|
"@atlaskit/media-file-preview": "^0.9.0",
|
|
138
138
|
"@atlaskit/media-picker": "^66.7.0",
|
|
139
139
|
"@atlaskit/media-ui": "^25.16.0",
|
|
140
140
|
"@atlaskit/media-viewer": "49.2.2",
|
|
141
141
|
"@atlaskit/mention": "^23.3.0",
|
|
142
142
|
"@atlaskit/menu": "^2.13.0",
|
|
143
|
-
"@atlaskit/onboarding": "^11.
|
|
143
|
+
"@atlaskit/onboarding": "^11.16.0",
|
|
144
144
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
145
145
|
"@atlaskit/primitives": "^12.2.0",
|
|
146
|
-
"@atlaskit/profilecard": "^20.
|
|
146
|
+
"@atlaskit/profilecard": "^20.8.0",
|
|
147
147
|
"@atlaskit/section-message": "^6.6.0",
|
|
148
148
|
"@atlaskit/smart-card": "^30.1.0",
|
|
149
149
|
"@atlaskit/smart-user-picker": "^6.11.0",
|
|
150
150
|
"@atlaskit/spinner": "^16.3.0",
|
|
151
151
|
"@atlaskit/task-decision": "^17.11.0",
|
|
152
152
|
"@atlaskit/textfield": "^6.5.0",
|
|
153
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
153
|
+
"@atlaskit/tmp-editor-statsig": "^2.9.0",
|
|
154
154
|
"@atlaskit/tokens": "^2.0.0",
|
|
155
155
|
"@atlaskit/tooltip": "^18.8.0",
|
|
156
156
|
"@atlaskit/width-detector": "^4.3.0",
|