@atlaskit/editor-common 116.47.0 → 116.48.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 +59 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/element-browser/components/ViewMore.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionFloatingLabel.js +1 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +1 -1
- package/dist/cjs/icons/shared/PanelErrorIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelInfoIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelNoteIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelSuccessIcon.js +1 -1
- package/dist/cjs/icons/shared/PanelWarningIcon.js +1 -1
- package/dist/cjs/messages/syncBlock.js +30 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/table/NewSortingIcon.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Layer/index.js +138 -18
- package/dist/cjs/ui/Shortcut/index.js +1 -1
- package/dist/cjs/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/cjs/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/cjs/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/cjs/ui/Toolbar/Separator.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +0 -45
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +0 -60
- package/dist/cjs/ui-color/index.js +0 -7
- package/dist/cjs/vanilla-tooltip/index.js +9 -1
- package/dist/es2019/element-browser/components/ViewMore.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionFloatingLabel.js +1 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +1 -1
- package/dist/es2019/icons/shared/PanelErrorIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelInfoIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelNoteIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelSuccessIcon.js +1 -1
- package/dist/es2019/icons/shared/PanelWarningIcon.js +1 -1
- package/dist/es2019/messages/syncBlock.js +30 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/table/NewSortingIcon.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Layer/index.js +120 -13
- package/dist/es2019/ui/Shortcut/index.js +1 -1
- package/dist/es2019/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/es2019/ui/Toolbar/Separator.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +0 -45
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +0 -60
- package/dist/es2019/ui-color/index.js +0 -1
- package/dist/es2019/vanilla-tooltip/index.js +10 -2
- package/dist/esm/element-browser/components/ViewMore.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionFloatingLabel.js +1 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +1 -1
- package/dist/esm/icons/shared/PanelErrorIcon.js +1 -1
- package/dist/esm/icons/shared/PanelInfoIcon.js +1 -1
- package/dist/esm/icons/shared/PanelNoteIcon.js +1 -1
- package/dist/esm/icons/shared/PanelSuccessIcon.js +1 -1
- package/dist/esm/icons/shared/PanelWarningIcon.js +1 -1
- package/dist/esm/messages/syncBlock.js +30 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/table/NewSortingIcon.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +138 -19
- package/dist/esm/ui/Shortcut/index.js +1 -1
- package/dist/esm/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/esm/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/esm/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/esm/ui/Toolbar/Separator.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.js +0 -45
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +0 -60
- package/dist/esm/ui-color/index.js +0 -1
- package/dist/esm/vanilla-tooltip/index.js +10 -2
- package/dist/types/messages/syncBlock.d.ts +30 -0
- package/dist/types/ui/Layer/index.d.ts +3 -26
- package/dist/types/ui/Layer/internal/helpers.d.ts +1 -1
- package/dist/types/ui-color/ColorPalette/Palettes/lightBackgroundPaletteTooltipMessages.d.ts +1 -46
- package/dist/types/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +0 -60
- package/dist/types/ui-color/index.d.ts +0 -1
- package/package.json +8 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +0 -28
- package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +0 -21
- package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.js +0 -21
- package/dist/types/ui-color/ColorPalette/Palettes/cellBackgroundColorPaletteNew.d.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import "./UnknownMacroPlaceholder.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PanelSuccessIcon.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* PanelSuccessIcon.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import "./PanelSuccessIcon.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PanelWarningIcon.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* PanelWarningIcon.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import "./PanelWarningIcon.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -40,6 +40,11 @@ export const syncBlockMessages = defineMessages({
|
|
|
40
40
|
defaultMessage: 'Synced block',
|
|
41
41
|
description: 'Label which appears above the synced block when it is selected'
|
|
42
42
|
},
|
|
43
|
+
sourceSyncedBlockLabel: {
|
|
44
|
+
id: 'fabric.editor.sourceSyncedBlock.label.text',
|
|
45
|
+
defaultMessage: 'Source synced block',
|
|
46
|
+
description: 'Label which identifies the editable source synced block when it is selected'
|
|
47
|
+
},
|
|
43
48
|
unsyncedBlockLabel: {
|
|
44
49
|
id: 'fabric.editor.unsyncedBlock.label.text',
|
|
45
50
|
defaultMessage: 'Unsynced block',
|
|
@@ -200,6 +205,26 @@ export const syncBlockMessages = defineMessages({
|
|
|
200
205
|
defaultMessage: 'You appear to be offline. Please connect to the internet to create synced content.',
|
|
201
206
|
description: 'Description in flag which appears when a sync block cannot be created in offline mode'
|
|
202
207
|
},
|
|
208
|
+
feedbackFlagTitle: {
|
|
209
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagTitle',
|
|
210
|
+
defaultMessage: 'Help us improve Synced blocks',
|
|
211
|
+
description: 'Title of the flag inviting users to give feedback about synced blocks'
|
|
212
|
+
},
|
|
213
|
+
feedbackFlagDescription: {
|
|
214
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagDescription',
|
|
215
|
+
defaultMessage: 'We’d love your feedback. This quick survey should take less than a minute.',
|
|
216
|
+
description: 'Description of the flag inviting users to give feedback about synced blocks'
|
|
217
|
+
},
|
|
218
|
+
feedbackFlagGiveFeedback: {
|
|
219
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagGiveFeedback',
|
|
220
|
+
defaultMessage: 'Give feedback',
|
|
221
|
+
description: 'Action that opens the synced blocks feedback collector'
|
|
222
|
+
},
|
|
223
|
+
feedbackFlagNoThanks: {
|
|
224
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagNoThanks',
|
|
225
|
+
defaultMessage: 'No thanks',
|
|
226
|
+
description: 'Action that dismisses the synced blocks feedback invitation'
|
|
227
|
+
},
|
|
203
228
|
loadingSyncedContent: {
|
|
204
229
|
id: 'fabric.editor.syncedBlockLoadingSyncedContent',
|
|
205
230
|
defaultMessage: 'Loading synced content',
|
|
@@ -315,6 +340,11 @@ export const syncBlockMessages = defineMessages({
|
|
|
315
340
|
defaultMessage: 'Copy and paste synced blocks to reuse in other locations.',
|
|
316
341
|
description: 'Message shown in the synced location dropdown menu when no shared locations are found'
|
|
317
342
|
},
|
|
343
|
+
syncedLocationDropdownActivationNoResults: {
|
|
344
|
+
id: 'editor-common.messages.syncBlock.syncedLocationDropdownActivationNoResults',
|
|
345
|
+
defaultMessage: 'To reuse content, copy and paste this block to sync to other locations',
|
|
346
|
+
description: 'Instruction shown in the activation synced locations dropdown when a synced block has no references. It explains how to create the first reference.'
|
|
347
|
+
},
|
|
318
348
|
syncedLocationDropdownLearnMoreLink: {
|
|
319
349
|
id: 'fabric.editor.syncedLocationDropdownLearnMoreLink',
|
|
320
350
|
defaultMessage: 'Learn more about synced blocks',
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "116.
|
|
17
|
+
const packageVersion = "116.47.0";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -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 = "116.
|
|
17
|
+
const packageVersion = "116.47.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import React, { Component } from 'react';
|
|
2
|
+
import React, { Component, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import Popper from 'popper.js';
|
|
4
4
|
// eslint-disable-line import/extensions
|
|
5
5
|
import rafSchedule from 'raf-schd';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { Popper as WrappedPopper } from '@atlaskit/popper/popper';
|
|
6
8
|
import { positionPropToPopperPosition } from './internal/helpers';
|
|
7
9
|
const defaultState = {
|
|
8
10
|
hasExtractedStyles: false,
|
|
@@ -19,10 +21,22 @@ const defaultState = {
|
|
|
19
21
|
originalHeight: null,
|
|
20
22
|
maxHeight: null
|
|
21
23
|
};
|
|
24
|
+
function defaultOnPositioned() {}
|
|
25
|
+
const defaultProps = {
|
|
26
|
+
boundariesElement: 'viewport',
|
|
27
|
+
children: null,
|
|
28
|
+
content: null,
|
|
29
|
+
offset: '0, 0',
|
|
30
|
+
position: 'right middle',
|
|
31
|
+
zIndex: 400,
|
|
32
|
+
lockScroll: false,
|
|
33
|
+
isAlwaysFixed: false,
|
|
34
|
+
onPositioned: defaultOnPositioned
|
|
35
|
+
};
|
|
22
36
|
|
|
23
37
|
// Ignored via go/ees005
|
|
24
38
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
25
|
-
|
|
39
|
+
class LegacyLayer extends Component {
|
|
26
40
|
constructor(props) {
|
|
27
41
|
super(props);
|
|
28
42
|
_defineProperty(this, "targetRef", /*#__PURE__*/React.createRef());
|
|
@@ -172,14 +186,107 @@ export default class Layer extends Component {
|
|
|
172
186
|
}
|
|
173
187
|
}
|
|
174
188
|
// working with extract-react-types
|
|
175
|
-
_defineProperty(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
189
|
+
_defineProperty(LegacyLayer, "defaultProps", defaultProps);
|
|
190
|
+
function parseOffset({
|
|
191
|
+
offset
|
|
192
|
+
}) {
|
|
193
|
+
const [rawSkidding, rawDistance] = offset.split(',');
|
|
194
|
+
const skidding = Number.parseFloat(rawSkidding);
|
|
195
|
+
const distance = Number.parseFloat(rawDistance);
|
|
196
|
+
return [Number.isFinite(skidding) ? skidding : 0, Number.isFinite(distance) ? distance : 0];
|
|
197
|
+
}
|
|
198
|
+
const popperInteropModifiers = [{
|
|
199
|
+
name: 'flip',
|
|
200
|
+
enabled: false
|
|
201
|
+
}, {
|
|
202
|
+
name: 'preventOverflow',
|
|
203
|
+
enabled: false
|
|
204
|
+
}, {
|
|
205
|
+
name: 'hide',
|
|
206
|
+
enabled: false
|
|
207
|
+
}];
|
|
208
|
+
function usePopperInteropModifiers({
|
|
209
|
+
onPositioned
|
|
210
|
+
}) {
|
|
211
|
+
const onPositionedRef = useRef(onPositioned);
|
|
212
|
+
const hasPositionedRef = useRef(false);
|
|
213
|
+
useLayoutEffect(() => {
|
|
214
|
+
onPositionedRef.current = onPositioned;
|
|
215
|
+
}, [onPositioned]);
|
|
216
|
+
return useMemo(() => [...popperInteropModifiers, {
|
|
217
|
+
name: 'editorLayerFirstPositioned',
|
|
218
|
+
enabled: true,
|
|
219
|
+
// React Popper commits calculated styles in `write`; the legacy callback ran afterwards.
|
|
220
|
+
phase: 'afterWrite',
|
|
221
|
+
fn() {
|
|
222
|
+
if (hasPositionedRef.current) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
hasPositionedRef.current = true;
|
|
226
|
+
onPositionedRef.current();
|
|
227
|
+
}
|
|
228
|
+
}], []);
|
|
229
|
+
}
|
|
230
|
+
function PopperInterop({
|
|
231
|
+
children,
|
|
232
|
+
content,
|
|
233
|
+
offset,
|
|
234
|
+
onPositioned,
|
|
235
|
+
position,
|
|
236
|
+
strategy
|
|
237
|
+
}) {
|
|
238
|
+
const targetRef = useRef(null);
|
|
239
|
+
const [referenceElement, setReferenceElement] = useState(null);
|
|
240
|
+
const modifiers = usePopperInteropModifiers({
|
|
241
|
+
onPositioned
|
|
242
|
+
});
|
|
243
|
+
// Popper v2 compares the offset prop by reference, so memoise to avoid re-running positioning every render.
|
|
244
|
+
const parsedOffset = useMemo(() => parseOffset({
|
|
245
|
+
offset
|
|
246
|
+
}), [offset]);
|
|
247
|
+
useLayoutEffect(() => {
|
|
248
|
+
var _targetRef$current;
|
|
249
|
+
const actualTarget = (_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.children[0];
|
|
250
|
+
setReferenceElement(actualTarget instanceof HTMLElement ? actualTarget : null);
|
|
251
|
+
}, [children]);
|
|
252
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
253
|
+
ref: targetRef
|
|
254
|
+
}, children), content && referenceElement ? /*#__PURE__*/React.createElement(WrappedPopper, {
|
|
255
|
+
modifiers: modifiers,
|
|
256
|
+
offset: parsedOffset,
|
|
257
|
+
placement: positionPropToPopperPosition(position),
|
|
258
|
+
referenceElement: referenceElement,
|
|
259
|
+
strategy: strategy
|
|
260
|
+
}, ({
|
|
261
|
+
ref,
|
|
262
|
+
style
|
|
263
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
264
|
+
ref: ref,
|
|
265
|
+
style: style
|
|
266
|
+
}, content)) : /*#__PURE__*/React.createElement("div", null));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/** Selects the reversible Popper v1 or ADS wrapper implementation. */
|
|
270
|
+
export default function Layer({
|
|
271
|
+
children = defaultProps.children,
|
|
272
|
+
content = defaultProps.content,
|
|
273
|
+
offset = defaultProps.offset,
|
|
274
|
+
onPositioned = defaultProps.onPositioned,
|
|
275
|
+
position = defaultProps.position
|
|
276
|
+
}) {
|
|
277
|
+
if (fg('platform-dst-popper-consolidation')) {
|
|
278
|
+
return /*#__PURE__*/React.createElement(PopperInterop, {
|
|
279
|
+
content: content,
|
|
280
|
+
offset: offset,
|
|
281
|
+
onPositioned: onPositioned,
|
|
282
|
+
position: position,
|
|
283
|
+
strategy: "absolute"
|
|
284
|
+
}, children);
|
|
285
|
+
}
|
|
286
|
+
return /*#__PURE__*/React.createElement(LegacyLayer, {
|
|
287
|
+
content: content,
|
|
288
|
+
offset: offset,
|
|
289
|
+
onPositioned: onPositioned,
|
|
290
|
+
position: position
|
|
291
|
+
}, children);
|
|
292
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import "./DropdownTriggerWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -109,50 +109,5 @@ export const lightBackgroundPaletteTooltipMessages = defineMessages({
|
|
|
109
109
|
id: 'fabric.theme.bold-gray',
|
|
110
110
|
defaultMessage: 'Bold gray',
|
|
111
111
|
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold gray color option.'
|
|
112
|
-
},
|
|
113
|
-
'#EFFFD6': {
|
|
114
|
-
id: 'fabric.theme.subtle-lime',
|
|
115
|
-
defaultMessage: 'Subtle lime',
|
|
116
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle lime color option.'
|
|
117
|
-
},
|
|
118
|
-
'#D3F1A7': {
|
|
119
|
-
id: 'fabric.theme.lime',
|
|
120
|
-
defaultMessage: 'Lime',
|
|
121
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the lime color option.'
|
|
122
|
-
},
|
|
123
|
-
'#BDE97C': {
|
|
124
|
-
id: 'fabric.theme.bold-lime',
|
|
125
|
-
defaultMessage: 'Bold lime',
|
|
126
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold lime color option.'
|
|
127
|
-
},
|
|
128
|
-
'#FFF5DB': {
|
|
129
|
-
id: 'fabric.theme.subtle-orange',
|
|
130
|
-
defaultMessage: 'Subtle orange',
|
|
131
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle orange color option.'
|
|
132
|
-
},
|
|
133
|
-
'#FCE4A6': {
|
|
134
|
-
id: 'fabric.theme.orange',
|
|
135
|
-
defaultMessage: 'Orange',
|
|
136
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the orange color option.'
|
|
137
|
-
},
|
|
138
|
-
'#FBD779': {
|
|
139
|
-
id: 'fabric.theme.bold-orange',
|
|
140
|
-
defaultMessage: 'Bold orange',
|
|
141
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold orange color option.'
|
|
142
|
-
},
|
|
143
|
-
'#FFECF8': {
|
|
144
|
-
id: 'fabric.theme.subtle-magenta',
|
|
145
|
-
defaultMessage: 'Subtle magenta',
|
|
146
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the subtle magenta color option.'
|
|
147
|
-
},
|
|
148
|
-
'#FDD0EC': {
|
|
149
|
-
id: 'fabric.theme.magenta',
|
|
150
|
-
defaultMessage: 'Magenta',
|
|
151
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the magenta color option.'
|
|
152
|
-
},
|
|
153
|
-
'#FCB6E1': {
|
|
154
|
-
id: 'fabric.theme.bold-magenta',
|
|
155
|
-
defaultMessage: 'Bold magenta',
|
|
156
|
-
description: 'The text is shown as a tooltip label for a color swatch in the editor background color picker when the user hovers over the bold magenta color option.'
|
|
157
112
|
}
|
|
158
113
|
});
|
|
@@ -150,66 +150,6 @@ const _default_1 = defineMessages({
|
|
|
150
150
|
defaultMessage: 'Bold gray',
|
|
151
151
|
description: 'Tooltip label for the bold gray color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
152
152
|
},
|
|
153
|
-
'subtle-lime': {
|
|
154
|
-
id: 'fabric.theme.subtle-lime',
|
|
155
|
-
defaultMessage: 'Subtle lime',
|
|
156
|
-
description: 'Tooltip label for the subtle lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
157
|
-
},
|
|
158
|
-
'bold-lime': {
|
|
159
|
-
id: 'fabric.theme.bold-lime',
|
|
160
|
-
defaultMessage: 'Bold lime',
|
|
161
|
-
description: 'Tooltip label for the bold lime color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
162
|
-
},
|
|
163
|
-
'subtle-orange': {
|
|
164
|
-
id: 'fabric.theme.subtle-orange',
|
|
165
|
-
defaultMessage: 'Subtle orange',
|
|
166
|
-
description: 'Tooltip label for the subtle orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
167
|
-
},
|
|
168
|
-
'bold-orange': {
|
|
169
|
-
id: 'fabric.theme.bold-orange',
|
|
170
|
-
defaultMessage: 'Bold orange',
|
|
171
|
-
description: 'Tooltip label for the bold orange color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
172
|
-
},
|
|
173
|
-
'subtle-magenta': {
|
|
174
|
-
id: 'fabric.theme.subtle-magenta',
|
|
175
|
-
defaultMessage: 'Subtle magenta',
|
|
176
|
-
description: 'Tooltip label for the subtle magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
177
|
-
},
|
|
178
|
-
'bold-magenta': {
|
|
179
|
-
id: 'fabric.theme.bold-magenta',
|
|
180
|
-
defaultMessage: 'Bold magenta',
|
|
181
|
-
description: 'Tooltip label for the bold magenta color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
182
|
-
},
|
|
183
|
-
'bold-blue': {
|
|
184
|
-
id: 'fabric.theme.bold-blue',
|
|
185
|
-
defaultMessage: 'Bold blue',
|
|
186
|
-
description: 'Tooltip label for the bold blue color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
187
|
-
},
|
|
188
|
-
'bold-teal': {
|
|
189
|
-
id: 'fabric.theme.bold-teal',
|
|
190
|
-
defaultMessage: 'Bold teal',
|
|
191
|
-
description: 'Tooltip label for the bold teal color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
192
|
-
},
|
|
193
|
-
'bold-green': {
|
|
194
|
-
id: 'fabric.theme.bold-green',
|
|
195
|
-
defaultMessage: 'Bold green',
|
|
196
|
-
description: 'Tooltip label for the bold green color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
197
|
-
},
|
|
198
|
-
'bold-yellow': {
|
|
199
|
-
id: 'fabric.theme.bold-yellow',
|
|
200
|
-
defaultMessage: 'Bold yellow',
|
|
201
|
-
description: 'Tooltip label for the bold yellow color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
202
|
-
},
|
|
203
|
-
'bold-red': {
|
|
204
|
-
id: 'fabric.theme.bold-red',
|
|
205
|
-
defaultMessage: 'Bold red',
|
|
206
|
-
description: 'Tooltip label for the bold red color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
207
|
-
},
|
|
208
|
-
'bold-purple': {
|
|
209
|
-
id: 'fabric.theme.bold-purple',
|
|
210
|
-
defaultMessage: 'Bold purple',
|
|
211
|
-
description: 'Tooltip label for the bold purple color swatch displayed in the editor toolbar color palette when users select text or highlight colors.'
|
|
212
|
-
},
|
|
213
153
|
// Colors only used in highlight palette
|
|
214
154
|
'no-color': {
|
|
215
155
|
id: 'fabric.theme.no-color',
|
|
@@ -10,7 +10,6 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
|
|
|
10
10
|
export { getHighlightColorInNonActiveTheme } from './ColorPalette/getHighlightColorInNonActiveTheme';
|
|
11
11
|
export { getTextColorInNonActiveTheme } from './ColorPalette/getTextColorInNonActiveTheme';
|
|
12
12
|
export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
|
|
13
|
-
export { default as cellBackgroundColorPaletteNew } from './ColorPalette/Palettes/cellBackgroundColorPaletteNew';
|
|
14
13
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
15
14
|
export { panelBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
16
15
|
export { panelBackgroundPaletteNew } from './ColorPalette/Palettes/panelBackgroundPaletteNew';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { createPopper } from '@popperjs/core';
|
|
2
|
+
import { createPopper as createLegacyPopper } from '@popperjs/core';
|
|
3
3
|
import { bind } from 'bind-event-listener';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { createPopper as createWrappedPopper } from '@atlaskit/popper/unsafe-imperative';
|
|
4
6
|
const startingOffset = {
|
|
5
7
|
name: 'offset',
|
|
6
8
|
options: {
|
|
@@ -13,6 +15,12 @@ const endingOffset = {
|
|
|
13
15
|
offset: [0, 8]
|
|
14
16
|
}
|
|
15
17
|
};
|
|
18
|
+
function getCreatePopper() {
|
|
19
|
+
if (fg('platform-dst-popper-consolidation')) {
|
|
20
|
+
return createWrappedPopper;
|
|
21
|
+
}
|
|
22
|
+
return createLegacyPopper;
|
|
23
|
+
}
|
|
16
24
|
|
|
17
25
|
/**
|
|
18
26
|
* A tooltip component similar to "@atlaskit/tooltip" but built for vanilla scenarios
|
|
@@ -88,7 +96,7 @@ export class VanillaTooltip {
|
|
|
88
96
|
};
|
|
89
97
|
}
|
|
90
98
|
createPopperInstance() {
|
|
91
|
-
this.popperInstance =
|
|
99
|
+
this.popperInstance = getCreatePopper()(this.button, this.tooltip, {
|
|
92
100
|
placement: 'top',
|
|
93
101
|
modifiers: [startingOffset]
|
|
94
102
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ExtensionFloatingLabel.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* ExtensionFloatingLabel.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import "./ExtensionFloatingLabel.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* UnknownMacroPlaceholder.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./UnknownMacroPlaceholder.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PanelSuccessIcon.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* PanelSuccessIcon.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import "./PanelSuccessIcon.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PanelWarningIcon.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* PanelWarningIcon.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import "./PanelWarningIcon.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -40,6 +40,11 @@ export var syncBlockMessages = defineMessages({
|
|
|
40
40
|
defaultMessage: 'Synced block',
|
|
41
41
|
description: 'Label which appears above the synced block when it is selected'
|
|
42
42
|
},
|
|
43
|
+
sourceSyncedBlockLabel: {
|
|
44
|
+
id: 'fabric.editor.sourceSyncedBlock.label.text',
|
|
45
|
+
defaultMessage: 'Source synced block',
|
|
46
|
+
description: 'Label which identifies the editable source synced block when it is selected'
|
|
47
|
+
},
|
|
43
48
|
unsyncedBlockLabel: {
|
|
44
49
|
id: 'fabric.editor.unsyncedBlock.label.text',
|
|
45
50
|
defaultMessage: 'Unsynced block',
|
|
@@ -200,6 +205,26 @@ export var syncBlockMessages = defineMessages({
|
|
|
200
205
|
defaultMessage: 'You appear to be offline. Please connect to the internet to create synced content.',
|
|
201
206
|
description: 'Description in flag which appears when a sync block cannot be created in offline mode'
|
|
202
207
|
},
|
|
208
|
+
feedbackFlagTitle: {
|
|
209
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagTitle',
|
|
210
|
+
defaultMessage: 'Help us improve Synced blocks',
|
|
211
|
+
description: 'Title of the flag inviting users to give feedback about synced blocks'
|
|
212
|
+
},
|
|
213
|
+
feedbackFlagDescription: {
|
|
214
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagDescription',
|
|
215
|
+
defaultMessage: 'We’d love your feedback. This quick survey should take less than a minute.',
|
|
216
|
+
description: 'Description of the flag inviting users to give feedback about synced blocks'
|
|
217
|
+
},
|
|
218
|
+
feedbackFlagGiveFeedback: {
|
|
219
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagGiveFeedback',
|
|
220
|
+
defaultMessage: 'Give feedback',
|
|
221
|
+
description: 'Action that opens the synced blocks feedback collector'
|
|
222
|
+
},
|
|
223
|
+
feedbackFlagNoThanks: {
|
|
224
|
+
id: 'editor-common.messages.syncBlock.feedbackFlagNoThanks',
|
|
225
|
+
defaultMessage: 'No thanks',
|
|
226
|
+
description: 'Action that dismisses the synced blocks feedback invitation'
|
|
227
|
+
},
|
|
203
228
|
loadingSyncedContent: {
|
|
204
229
|
id: 'fabric.editor.syncedBlockLoadingSyncedContent',
|
|
205
230
|
defaultMessage: 'Loading synced content',
|
|
@@ -315,6 +340,11 @@ export var syncBlockMessages = defineMessages({
|
|
|
315
340
|
defaultMessage: 'Copy and paste synced blocks to reuse in other locations.',
|
|
316
341
|
description: 'Message shown in the synced location dropdown menu when no shared locations are found'
|
|
317
342
|
},
|
|
343
|
+
syncedLocationDropdownActivationNoResults: {
|
|
344
|
+
id: 'editor-common.messages.syncBlock.syncedLocationDropdownActivationNoResults',
|
|
345
|
+
defaultMessage: 'To reuse content, copy and paste this block to sync to other locations',
|
|
346
|
+
description: 'Instruction shown in the activation synced locations dropdown when a synced block has no references. It explains how to create the first reference.'
|
|
347
|
+
},
|
|
318
348
|
syncedLocationDropdownLearnMoreLink: {
|
|
319
349
|
id: 'fabric.editor.syncedLocationDropdownLearnMoreLink',
|
|
320
350
|
defaultMessage: 'Learn more about synced blocks',
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "116.
|
|
23
|
+
var packageVersion = "116.47.0";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -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 = "116.
|
|
24
|
+
var packageVersion = "116.47.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|