@atlaskit/editor-core 220.0.0 → 220.0.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 +16 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -1
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +33 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -2
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +40 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -2
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +32 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +1 -0
- package/package.json +19 -16
- package/dist/cjs/ui/Addon/Dropdown/index.js +0 -63
- package/dist/cjs/ui/Addon/Dropdown/styles.js +0 -20
- package/dist/es2019/ui/Addon/Dropdown/index.js +0 -43
- package/dist/es2019/ui/Addon/Dropdown/styles.js +0 -13
- package/dist/esm/ui/Addon/Dropdown/index.js +0 -60
- package/dist/esm/ui/Addon/Dropdown/styles.js +0 -13
- package/dist/types/ui/Addon/Dropdown/index.d.ts +0 -18
- package/dist/types/ui/Addon/Dropdown/styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/Addon/Dropdown/styles.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 220.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ed89ab85318b9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ed89ab85318b9) -
|
|
8
|
+
[ux] Allow text selection and copying within reference synced blocks in the editor
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 220.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`95d58f9a4927c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/95d58f9a4927c) -
|
|
16
|
+
Removing unreferenced ui/addon/dropdown component styles
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 220.0.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -390,7 +390,9 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
390
390
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
391
391
|
_syncBlockStyles.syncBlockStyles,
|
|
392
392
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
393
|
-
(0, _experiments.editorExperiment)('platform_synced_block', true) && _syncBlockStyles.syncBlockOverflowStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
|
|
393
|
+
(0, _experiments.editorExperiment)('platform_synced_block', true) && _syncBlockStyles.syncBlockOverflowStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_14') &&
|
|
394
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
395
|
+
_syncBlockStyles.syncBlockTextSelectionStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
|
|
394
396
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
395
397
|
_syncBlockStyles.syncBlockFirstNodeStyles,
|
|
396
398
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.syncBlockStylesBase = exports.syncBlockStyles = exports.syncBlockOverflowStyles = exports.syncBlockFirstNodeStyles = void 0;
|
|
7
|
+
exports.syncBlockTextSelectionStyles = exports.syncBlockStylesBase = exports.syncBlockStyles = exports.syncBlockOverflowStyles = exports.syncBlockFirstNodeStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
@@ -187,6 +187,38 @@ var syncBlockOverflowStyles = exports.syncBlockOverflowStyles = (0, _react.css)(
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
+
// Styles for text selection in reference sync blocks.
|
|
191
|
+
// Gated behind platform_synced_block_patch_14.
|
|
192
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
193
|
+
var syncBlockTextSelectionStyles = exports.syncBlockTextSelectionStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.renderer), {
|
|
194
|
+
// Show text cursor to indicate content is selectable
|
|
195
|
+
cursor: 'text',
|
|
196
|
+
// Remove browser focus outline on the contentEditable renderer wrapper
|
|
197
|
+
outline: 'none',
|
|
198
|
+
// Hide the blinking insertion caret. contentEditable="true" is set on
|
|
199
|
+
// the renderer to enable text selection, but the content is read-only.
|
|
200
|
+
caretColor: 'transparent',
|
|
201
|
+
// Override cursor: pointer set by the editor's layout styles on
|
|
202
|
+
// [data-layout-section] elements rendered inside the sync block content.
|
|
203
|
+
// Without this, layout nodes inside reference sync blocks show a pointer
|
|
204
|
+
// cursor instead of a text cursor.
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
206
|
+
'[data-layout-section]': {
|
|
207
|
+
cursor: 'text'
|
|
208
|
+
}
|
|
209
|
+
}), ".ProseMirror .ak-editor-selected-node .".concat(_syncBlock.SyncBlockSharedCssClassName.renderer), {
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
211
|
+
'span[data-emoji-id], span[data-emoji-id] span': {
|
|
212
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
213
|
+
boxShadow: 'none !important',
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
215
|
+
'&::before': {
|
|
216
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
217
|
+
backgroundColor: 'transparent !important'
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}));
|
|
221
|
+
|
|
190
222
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
191
223
|
var syncBlockFirstNodeStyles = exports.syncBlockFirstNodeStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", (0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.prefix, ", .").concat(_syncBlock.BodiedSyncBlockSharedCssClassName.prefix), {
|
|
192
224
|
marginTop: 0
|
|
@@ -57,7 +57,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
|
|
|
57
57
|
import { shadowStyles } from './styles/shadowStyles';
|
|
58
58
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
59
59
|
import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, statusStylesTeam26 } from './styles/statusStyles';
|
|
60
|
-
import { syncBlockStyles, syncBlockStylesBase, syncBlockFirstNodeStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
|
|
60
|
+
import { syncBlockStyles, syncBlockStylesBase, syncBlockFirstNodeStyles, syncBlockOverflowStyles, syncBlockTextSelectionStyles } from './styles/syncBlockStyles';
|
|
61
61
|
import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes, tableLayoutFixesWithFontSize, tableContentModeStyles } from './styles/tableStyles';
|
|
62
62
|
import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
63
63
|
import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
|
|
@@ -386,7 +386,9 @@ export const EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef((prop
|
|
|
386
386
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
387
387
|
syncBlockStyles,
|
|
388
388
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
389
|
-
editorExperiment('platform_synced_block', true) && syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) &&
|
|
389
|
+
editorExperiment('platform_synced_block', true) && syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_14') &&
|
|
390
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
391
|
+
syncBlockTextSelectionStyles, editorExperiment('platform_synced_block', true) &&
|
|
390
392
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
391
393
|
syncBlockFirstNodeStyles,
|
|
392
394
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -244,6 +244,46 @@ export const syncBlockOverflowStyles = css({
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
+
// Styles for text selection in reference sync blocks.
|
|
248
|
+
// Gated behind platform_synced_block_patch_14.
|
|
249
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
250
|
+
export const syncBlockTextSelectionStyles = css({
|
|
251
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
252
|
+
[`.${SyncBlockSharedCssClassName.renderer}`]: {
|
|
253
|
+
// Show text cursor to indicate content is selectable
|
|
254
|
+
cursor: 'text',
|
|
255
|
+
// Remove browser focus outline on the contentEditable renderer wrapper
|
|
256
|
+
outline: 'none',
|
|
257
|
+
// Hide the blinking insertion caret. contentEditable="true" is set on
|
|
258
|
+
// the renderer to enable text selection, but the content is read-only.
|
|
259
|
+
caretColor: 'transparent',
|
|
260
|
+
// Override cursor: pointer set by the editor's layout styles on
|
|
261
|
+
// [data-layout-section] elements rendered inside the sync block content.
|
|
262
|
+
// Without this, layout nodes inside reference sync blocks show a pointer
|
|
263
|
+
// cursor instead of a text cursor.
|
|
264
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
265
|
+
'[data-layout-section]': {
|
|
266
|
+
cursor: 'text'
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
// Suppress ProseMirror's selected-node box-shadow and backgroundColor on emojis inside
|
|
270
|
+
// the contentEditable renderer wrapper. PM applies .ak-editor-selected-node
|
|
271
|
+
// to inline nodes within contentEditable regions.
|
|
272
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
273
|
+
[`.ProseMirror .ak-editor-selected-node .${SyncBlockSharedCssClassName.renderer}`]: {
|
|
274
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
275
|
+
'span[data-emoji-id], span[data-emoji-id] span': {
|
|
276
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
277
|
+
boxShadow: 'none !important',
|
|
278
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
279
|
+
'&::before': {
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
281
|
+
backgroundColor: 'transparent !important'
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
|
|
247
287
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
248
288
|
export const syncBlockFirstNodeStyles = css({
|
|
249
289
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "220.0.1";
|
|
@@ -58,7 +58,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
|
|
|
58
58
|
import { shadowStyles } from './styles/shadowStyles';
|
|
59
59
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
60
60
|
import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, statusStylesTeam26 } from './styles/statusStyles';
|
|
61
|
-
import { syncBlockStyles, syncBlockStylesBase, syncBlockFirstNodeStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
|
|
61
|
+
import { syncBlockStyles, syncBlockStylesBase, syncBlockFirstNodeStyles, syncBlockOverflowStyles, syncBlockTextSelectionStyles } from './styles/syncBlockStyles';
|
|
62
62
|
import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes, tableLayoutFixesWithFontSize, tableContentModeStyles } from './styles/tableStyles';
|
|
63
63
|
import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
64
64
|
import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
|
|
@@ -382,7 +382,9 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
|
|
|
382
382
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
383
383
|
syncBlockStyles,
|
|
384
384
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
385
|
-
editorExperiment('platform_synced_block', true) && syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) &&
|
|
385
|
+
editorExperiment('platform_synced_block', true) && syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_14') &&
|
|
386
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
387
|
+
syncBlockTextSelectionStyles, editorExperiment('platform_synced_block', true) &&
|
|
386
388
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
387
389
|
syncBlockFirstNodeStyles,
|
|
388
390
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -180,6 +180,38 @@ export var syncBlockOverflowStyles = css({
|
|
|
180
180
|
})
|
|
181
181
|
});
|
|
182
182
|
|
|
183
|
+
// Styles for text selection in reference sync blocks.
|
|
184
|
+
// Gated behind platform_synced_block_patch_14.
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
186
|
+
export var syncBlockTextSelectionStyles = css(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.renderer), {
|
|
187
|
+
// Show text cursor to indicate content is selectable
|
|
188
|
+
cursor: 'text',
|
|
189
|
+
// Remove browser focus outline on the contentEditable renderer wrapper
|
|
190
|
+
outline: 'none',
|
|
191
|
+
// Hide the blinking insertion caret. contentEditable="true" is set on
|
|
192
|
+
// the renderer to enable text selection, but the content is read-only.
|
|
193
|
+
caretColor: 'transparent',
|
|
194
|
+
// Override cursor: pointer set by the editor's layout styles on
|
|
195
|
+
// [data-layout-section] elements rendered inside the sync block content.
|
|
196
|
+
// Without this, layout nodes inside reference sync blocks show a pointer
|
|
197
|
+
// cursor instead of a text cursor.
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
199
|
+
'[data-layout-section]': {
|
|
200
|
+
cursor: 'text'
|
|
201
|
+
}
|
|
202
|
+
}), ".ProseMirror .ak-editor-selected-node .".concat(SyncBlockSharedCssClassName.renderer), {
|
|
203
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
204
|
+
'span[data-emoji-id], span[data-emoji-id] span': {
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
206
|
+
boxShadow: 'none !important',
|
|
207
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
208
|
+
'&::before': {
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
210
|
+
backgroundColor: 'transparent !important'
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}));
|
|
214
|
+
|
|
183
215
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
184
216
|
export var syncBlockFirstNodeStyles = css(_defineProperty({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), {
|
|
185
217
|
marginTop: 0
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "220.0.1";
|
|
@@ -2,4 +2,5 @@ import type { SerializedStyles } from '@emotion/react';
|
|
|
2
2
|
export declare const syncBlockStylesBase: SerializedStyles;
|
|
3
3
|
export declare const syncBlockStyles: SerializedStyles;
|
|
4
4
|
export declare const syncBlockOverflowStyles: SerializedStyles;
|
|
5
|
+
export declare const syncBlockTextSelectionStyles: SerializedStyles;
|
|
5
6
|
export declare const syncBlockFirstNodeStyles: SerializedStyles;
|
|
@@ -2,4 +2,5 @@ import type { SerializedStyles } from '@emotion/react';
|
|
|
2
2
|
export declare const syncBlockStylesBase: SerializedStyles;
|
|
3
3
|
export declare const syncBlockStyles: SerializedStyles;
|
|
4
4
|
export declare const syncBlockOverflowStyles: SerializedStyles;
|
|
5
|
+
export declare const syncBlockTextSelectionStyles: SerializedStyles;
|
|
5
6
|
export declare const syncBlockFirstNodeStyles: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "220.0.
|
|
3
|
+
"version": "220.0.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@atlaskit/activity-provider": "^2.6.0",
|
|
49
|
-
"@atlaskit/adf-schema": "^52.
|
|
49
|
+
"@atlaskit/adf-schema": "^52.16.0",
|
|
50
50
|
"@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
|
|
51
51
|
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
52
|
-
"@atlaskit/analytics-next": "^11.
|
|
52
|
+
"@atlaskit/analytics-next": "^11.3.0",
|
|
53
53
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
54
54
|
"@atlaskit/button": "^23.11.0",
|
|
55
55
|
"@atlaskit/css": "^0.19.0",
|
|
@@ -62,21 +62,21 @@
|
|
|
62
62
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
63
63
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
64
64
|
"@atlaskit/editor-ssr-renderer": "^6.0.0",
|
|
65
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
65
|
+
"@atlaskit/editor-toolbar": "^1.10.0",
|
|
66
66
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
67
|
-
"@atlaskit/emoji": "^70.
|
|
67
|
+
"@atlaskit/emoji": "^70.15.0",
|
|
68
68
|
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
69
|
-
"@atlaskit/icon": "^35.
|
|
69
|
+
"@atlaskit/icon": "^35.4.0",
|
|
70
70
|
"@atlaskit/link": "^3.4.0",
|
|
71
71
|
"@atlaskit/media-card": "^80.7.0",
|
|
72
|
-
"@atlaskit/mention": "^26.
|
|
72
|
+
"@atlaskit/mention": "^26.1.0",
|
|
73
73
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^6.6.0",
|
|
76
76
|
"@atlaskit/task-decision": "^20.1.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^88.
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^88.4.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.1.0",
|
|
79
|
-
"@atlaskit/tooltip": "^22.
|
|
79
|
+
"@atlaskit/tooltip": "^22.6.0",
|
|
80
80
|
"@atlaskit/width-detector": "^5.1.0",
|
|
81
81
|
"@babel/runtime": "^7.0.0",
|
|
82
82
|
"@compiled/react": "^0.20.0",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"uuid": "^3.1.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@atlaskit/editor-common": "^115.
|
|
96
|
-
"@atlaskit/link-provider": "^4.
|
|
95
|
+
"@atlaskit/editor-common": "^115.1.0",
|
|
96
|
+
"@atlaskit/link-provider": "^4.5.0",
|
|
97
97
|
"@atlaskit/media-core": "^37.1.0",
|
|
98
98
|
"react": "^18.2.0",
|
|
99
99
|
"react-dom": "^18.2.0",
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
"@atlaskit/editor-plugin-annotation": "^11.0.0",
|
|
111
111
|
"@atlaskit/editor-plugin-card": "^17.0.0",
|
|
112
112
|
"@atlaskit/editor-plugin-list": "^13.0.0",
|
|
113
|
-
"@atlaskit/editor-plugin-paste": "^12.
|
|
113
|
+
"@atlaskit/editor-plugin-paste": "^12.1.0",
|
|
114
114
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
115
|
-
"@atlaskit/link-provider": "^4.
|
|
116
|
-
"@atlaskit/linking-common": "^9.
|
|
115
|
+
"@atlaskit/link-provider": "^4.5.0",
|
|
116
|
+
"@atlaskit/linking-common": "^9.13.0",
|
|
117
117
|
"@atlaskit/logo": "^20.1.0",
|
|
118
118
|
"@atlaskit/media-core": "^37.1.0",
|
|
119
119
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
"@atlassian/editor-rovo-bridge": "^9.0.0",
|
|
133
133
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
134
134
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
135
|
-
"@atlassian/search-client": "^1.
|
|
135
|
+
"@atlassian/search-client": "^1.11.0",
|
|
136
136
|
"@atlassian/search-provider": "^12.0.0",
|
|
137
137
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
138
|
-
"@atlassian/user-profile-card": "^1.
|
|
138
|
+
"@atlassian/user-profile-card": "^1.9.0",
|
|
139
139
|
"@emotion/jest": "^11.8.0",
|
|
140
140
|
"@testing-library/react": "^16.3.0",
|
|
141
141
|
"@types/diff": "^5.0.2",
|
|
@@ -336,6 +336,9 @@
|
|
|
336
336
|
},
|
|
337
337
|
"platform_editor_chromeless_akeditor_class": {
|
|
338
338
|
"type": "boolean"
|
|
339
|
+
},
|
|
340
|
+
"platform_synced_block_patch_14": {
|
|
341
|
+
"type": "boolean"
|
|
339
342
|
}
|
|
340
343
|
},
|
|
341
344
|
"stricter": {
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _react2 = require("@emotion/react");
|
|
16
|
-
var _styles = require("./styles");
|
|
17
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
18
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
19
|
-
* @jsxRuntime classic
|
|
20
|
-
* @jsx jsx
|
|
21
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
22
|
-
// Ignored via go/ees005
|
|
23
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
24
|
-
var DropdownWrapper = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
25
|
-
function DropdownWrapper() {
|
|
26
|
-
var _this;
|
|
27
|
-
(0, _classCallCheck2.default)(this, DropdownWrapper);
|
|
28
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
29
|
-
args[_key] = arguments[_key];
|
|
30
|
-
}
|
|
31
|
-
_this = _callSuper(this, DropdownWrapper, [].concat(args));
|
|
32
|
-
(0, _defineProperty2.default)(_this, "handleClick", function (actions) {
|
|
33
|
-
var actionOnClick = actions.actionOnClick,
|
|
34
|
-
renderOnClick = actions.renderOnClick;
|
|
35
|
-
var editorActions = _this.props.editorActions;
|
|
36
|
-
if (actionOnClick) {
|
|
37
|
-
actionOnClick(editorActions);
|
|
38
|
-
_this.props.togglePopup();
|
|
39
|
-
} else if (renderOnClick) {
|
|
40
|
-
_this.props.onClick(editorActions, renderOnClick);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return _this;
|
|
44
|
-
}
|
|
45
|
-
(0, _inherits2.default)(DropdownWrapper, _React$Component);
|
|
46
|
-
return (0, _createClass2.default)(DropdownWrapper, [{
|
|
47
|
-
key: "render",
|
|
48
|
-
value: function render() {
|
|
49
|
-
var _this2 = this;
|
|
50
|
-
// adding onClick handler to each DropdownItem component
|
|
51
|
-
var children = _react.default.Children.map(this.props.children, function (child) {
|
|
52
|
-
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
53
|
-
onClick: _this2.handleClick
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
58
|
-
return (0, _react2.jsx)("div", {
|
|
59
|
-
css: _styles.dropdown
|
|
60
|
-
}, children);
|
|
61
|
-
}
|
|
62
|
-
}]);
|
|
63
|
-
}(_react.default.Component);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.dropdown = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
-
var dropdown = exports.dropdown = (0, _react.css)({
|
|
12
|
-
display: 'flex',
|
|
13
|
-
flexDirection: 'column',
|
|
14
|
-
background: "var(--ds-surface-overlay, #FFFFFF)",
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
17
|
-
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
18
|
-
boxSizing: 'border-box',
|
|
19
|
-
padding: "var(--ds-space-050, 4px)".concat(" 0")
|
|
20
|
-
});
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
10
|
-
import { dropdown } from './styles';
|
|
11
|
-
// Ignored via go/ees005
|
|
12
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
13
|
-
export default class DropdownWrapper extends React.Component {
|
|
14
|
-
constructor(...args) {
|
|
15
|
-
super(...args);
|
|
16
|
-
_defineProperty(this, "handleClick", actions => {
|
|
17
|
-
const {
|
|
18
|
-
actionOnClick,
|
|
19
|
-
renderOnClick
|
|
20
|
-
} = actions;
|
|
21
|
-
const {
|
|
22
|
-
editorActions
|
|
23
|
-
} = this.props;
|
|
24
|
-
if (actionOnClick) {
|
|
25
|
-
actionOnClick(editorActions);
|
|
26
|
-
this.props.togglePopup();
|
|
27
|
-
} else if (renderOnClick) {
|
|
28
|
-
this.props.onClick(editorActions, renderOnClick);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
// adding onClick handler to each DropdownItem component
|
|
34
|
-
const children = React.Children.map(this.props.children, child => /*#__PURE__*/React.cloneElement(child, {
|
|
35
|
-
onClick: this.handleClick
|
|
36
|
-
}));
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
39
|
-
return jsx("div", {
|
|
40
|
-
css: dropdown
|
|
41
|
-
}, children);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
-
export const dropdown = css({
|
|
5
|
-
display: 'flex',
|
|
6
|
-
flexDirection: 'column',
|
|
7
|
-
background: "var(--ds-surface-overlay, #FFFFFF)",
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
10
|
-
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
11
|
-
boxSizing: 'border-box',
|
|
12
|
-
padding: `${"var(--ds-space-050, 4px)"} 0`
|
|
13
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
import React from 'react';
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
|
-
import { jsx } from '@emotion/react';
|
|
17
|
-
import { dropdown } from './styles';
|
|
18
|
-
// Ignored via go/ees005
|
|
19
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
20
|
-
var DropdownWrapper = /*#__PURE__*/function (_React$Component) {
|
|
21
|
-
function DropdownWrapper() {
|
|
22
|
-
var _this;
|
|
23
|
-
_classCallCheck(this, DropdownWrapper);
|
|
24
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25
|
-
args[_key] = arguments[_key];
|
|
26
|
-
}
|
|
27
|
-
_this = _callSuper(this, DropdownWrapper, [].concat(args));
|
|
28
|
-
_defineProperty(_this, "handleClick", function (actions) {
|
|
29
|
-
var actionOnClick = actions.actionOnClick,
|
|
30
|
-
renderOnClick = actions.renderOnClick;
|
|
31
|
-
var editorActions = _this.props.editorActions;
|
|
32
|
-
if (actionOnClick) {
|
|
33
|
-
actionOnClick(editorActions);
|
|
34
|
-
_this.props.togglePopup();
|
|
35
|
-
} else if (renderOnClick) {
|
|
36
|
-
_this.props.onClick(editorActions, renderOnClick);
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
return _this;
|
|
40
|
-
}
|
|
41
|
-
_inherits(DropdownWrapper, _React$Component);
|
|
42
|
-
return _createClass(DropdownWrapper, [{
|
|
43
|
-
key: "render",
|
|
44
|
-
value: function render() {
|
|
45
|
-
var _this2 = this;
|
|
46
|
-
// adding onClick handler to each DropdownItem component
|
|
47
|
-
var children = React.Children.map(this.props.children, function (child) {
|
|
48
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
49
|
-
onClick: _this2.handleClick
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
54
|
-
return jsx("div", {
|
|
55
|
-
css: dropdown
|
|
56
|
-
}, children);
|
|
57
|
-
}
|
|
58
|
-
}]);
|
|
59
|
-
}(React.Component);
|
|
60
|
-
export { DropdownWrapper as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
|
-
export var dropdown = css({
|
|
5
|
-
display: 'flex',
|
|
6
|
-
flexDirection: 'column',
|
|
7
|
-
background: "var(--ds-surface-overlay, #FFFFFF)",
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
10
|
-
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)",
|
|
11
|
-
boxSizing: 'border-box',
|
|
12
|
-
padding: "var(--ds-space-050, 4px)".concat(" 0")
|
|
13
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type EditorActions from '../../../actions';
|
|
8
|
-
import type { RenderOnClickHandler } from '../../Addon/types';
|
|
9
|
-
export interface Props {
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
editorActions: EditorActions;
|
|
12
|
-
onClick: (actionOnClick: EditorActions, renderOnClick: RenderOnClickHandler) => void;
|
|
13
|
-
togglePopup: () => void;
|
|
14
|
-
}
|
|
15
|
-
export default class DropdownWrapper extends React.Component<Props> {
|
|
16
|
-
render(): jsx.JSX.Element;
|
|
17
|
-
private handleClick;
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type EditorActions from '../../../actions';
|
|
8
|
-
import type { RenderOnClickHandler } from '../../Addon/types';
|
|
9
|
-
export interface Props {
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
editorActions: EditorActions;
|
|
12
|
-
onClick: (actionOnClick: EditorActions, renderOnClick: RenderOnClickHandler) => void;
|
|
13
|
-
togglePopup: () => void;
|
|
14
|
-
}
|
|
15
|
-
export default class DropdownWrapper extends React.Component<Props> {
|
|
16
|
-
render(): jsx.JSX.Element;
|
|
17
|
-
private handleClick;
|
|
18
|
-
}
|