@atlaskit/editor-core 219.9.19 → 220.0.1
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/Appearance/FullPage/FullPageContentArea.js +2 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +23 -26
- 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.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`95d58f9a4927c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/95d58f9a4927c) -
|
|
8
|
+
Removing unreferenced ui/addon/dropdown component styles
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 220.0.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`bb770e21fd25c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bb770e21fd25c) -
|
|
16
|
+
Clean up feature gate platform_editor_delay_markdown_view_mode_eval, keeping the enabled path.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 219.9.19
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -66,12 +66,6 @@ var editorContentAreaProsemirrorStyle = (0, _react2.css)({
|
|
|
66
66
|
EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
|
|
67
67
|
editors like the footer page-comment composer aren't hidden in Syntax view.
|
|
68
68
|
*/
|
|
69
|
-
var hideEditorContentAreaProsemirrorStyle = (0, _react2.css)({
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
71
|
-
'& > .ak-editor-content-area > .ProseMirror': {
|
|
72
|
-
display: 'none'
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
69
|
var hideEditorContentAreaProsemirrorWithAttributeStyle = (0, _react2.css)({
|
|
76
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
77
71
|
'&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
|
|
@@ -290,11 +284,11 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
290
284
|
editorView: props.editorView,
|
|
291
285
|
editorDisabled: props.disabled
|
|
292
286
|
}, (0, _react2.jsx)("div", {
|
|
293
|
-
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode
|
|
287
|
+
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
|
|
294
288
|
css: [editorContentAreaNew, editorContentAreaProsemirrorStyle,
|
|
295
289
|
// EDITOR-6558: hide ProseMirror when the markdown-mode plugin
|
|
296
290
|
// reports a non-WYSIWYG view.
|
|
297
|
-
shouldHideProseMirrorForMarkdownMode &&
|
|
291
|
+
shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
|
|
298
292
|
// for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
|
|
299
293
|
(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !(0, _platformFeatureFlags.fg)('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
|
|
300
294
|
style: {
|
|
@@ -57,12 +57,6 @@ const editorContentAreaProsemirrorStyle = css({
|
|
|
57
57
|
EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
|
|
58
58
|
editors like the footer page-comment composer aren't hidden in Syntax view.
|
|
59
59
|
*/
|
|
60
|
-
const hideEditorContentAreaProsemirrorStyle = css({
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
62
|
-
'& > .ak-editor-content-area > .ProseMirror': {
|
|
63
|
-
display: 'none'
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
60
|
const hideEditorContentAreaProsemirrorWithAttributeStyle = css({
|
|
67
61
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
62
|
'&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
|
|
@@ -282,11 +276,11 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
282
276
|
editorView: props.editorView,
|
|
283
277
|
editorDisabled: props.disabled
|
|
284
278
|
}, jsx("div", {
|
|
285
|
-
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode
|
|
279
|
+
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
|
|
286
280
|
css: [editorContentAreaNew, editorContentAreaProsemirrorStyle,
|
|
287
281
|
// EDITOR-6558: hide ProseMirror when the markdown-mode plugin
|
|
288
282
|
// reports a non-WYSIWYG view.
|
|
289
|
-
shouldHideProseMirrorForMarkdownMode &&
|
|
283
|
+
shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
|
|
290
284
|
// for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
|
|
291
285
|
expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
|
|
292
286
|
style: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "220.0.0";
|
|
@@ -56,12 +56,6 @@ var editorContentAreaProsemirrorStyle = css({
|
|
|
56
56
|
EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
|
|
57
57
|
editors like the footer page-comment composer aren't hidden in Syntax view.
|
|
58
58
|
*/
|
|
59
|
-
var hideEditorContentAreaProsemirrorStyle = css({
|
|
60
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
61
|
-
'& > .ak-editor-content-area > .ProseMirror': {
|
|
62
|
-
display: 'none'
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
59
|
var hideEditorContentAreaProsemirrorWithAttributeStyle = css({
|
|
66
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
61
|
'&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
|
|
@@ -280,11 +274,11 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
280
274
|
editorView: props.editorView,
|
|
281
275
|
editorDisabled: props.disabled
|
|
282
276
|
}, jsx("div", {
|
|
283
|
-
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode
|
|
277
|
+
"data-markdown-mode-hide-prosemirror": shouldHideProseMirrorForMarkdownMode ? 'true' : undefined,
|
|
284
278
|
css: [editorContentAreaNew, editorContentAreaProsemirrorStyle,
|
|
285
279
|
// EDITOR-6558: hide ProseMirror when the markdown-mode plugin
|
|
286
280
|
// reports a non-WYSIWYG view.
|
|
287
|
-
shouldHideProseMirrorForMarkdownMode &&
|
|
281
|
+
shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
|
|
288
282
|
// for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
|
|
289
283
|
expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
|
|
290
284
|
style: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "220.0.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "220.0.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,27 +46,27 @@
|
|
|
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",
|
|
56
56
|
"@atlaskit/editor-json-transformer": "^8.33.0",
|
|
57
57
|
"@atlaskit/editor-performance-metrics": "^2.2.0",
|
|
58
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
59
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
60
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
58
|
+
"@atlaskit/editor-plugin-connectivity": "^11.0.0",
|
|
59
|
+
"@atlaskit/editor-plugin-quick-insert": "^11.0.0",
|
|
60
|
+
"@atlaskit/editor-plugin-user-preferences": "^9.0.0",
|
|
61
61
|
"@atlaskit/editor-plugins": "^13.1.0",
|
|
62
62
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
63
63
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
64
|
-
"@atlaskit/editor-ssr-renderer": "^
|
|
64
|
+
"@atlaskit/editor-ssr-renderer": "^6.0.0",
|
|
65
65
|
"@atlaskit/editor-toolbar": "^1.9.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
72
|
"@atlaskit/mention": "^26.0.0",
|
|
@@ -74,9 +74,9 @@
|
|
|
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": "^
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^88.3.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,7 +92,7 @@
|
|
|
92
92
|
"uuid": "^3.1.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@atlaskit/editor-common": "^
|
|
95
|
+
"@atlaskit/editor-common": "^115.0.0",
|
|
96
96
|
"@atlaskit/link-provider": "^4.4.0",
|
|
97
97
|
"@atlaskit/media-core": "^37.1.0",
|
|
98
98
|
"react": "^18.2.0",
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
"@atlaskit/adf-utils": "^19.32.0",
|
|
107
107
|
"@atlaskit/analytics-listeners": "^10.1.0",
|
|
108
108
|
"@atlaskit/code": "^17.5.0",
|
|
109
|
-
"@atlaskit/collab-provider": "^
|
|
110
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
111
|
-
"@atlaskit/editor-plugin-card": "^
|
|
112
|
-
"@atlaskit/editor-plugin-list": "^
|
|
113
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
109
|
+
"@atlaskit/collab-provider": "^20.0.0",
|
|
110
|
+
"@atlaskit/editor-plugin-annotation": "^11.0.0",
|
|
111
|
+
"@atlaskit/editor-plugin-card": "^17.0.0",
|
|
112
|
+
"@atlaskit/editor-plugin-list": "^13.0.0",
|
|
113
|
+
"@atlaskit/editor-plugin-paste": "^12.1.0",
|
|
114
114
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
115
115
|
"@atlaskit/link-provider": "^4.4.0",
|
|
116
|
-
"@atlaskit/linking-common": "^9.
|
|
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:^",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@atlaskit/modal-dialog": "^15.2.0",
|
|
122
122
|
"@atlaskit/popper": "^7.2.0",
|
|
123
123
|
"@atlaskit/portal": "^5.5.0",
|
|
124
|
-
"@atlaskit/renderer": "^
|
|
124
|
+
"@atlaskit/renderer": "^132.0.0",
|
|
125
125
|
"@atlaskit/section-message": "^8.13.0",
|
|
126
126
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
127
127
|
"@atlaskit/toggle": "^16.1.0",
|
|
@@ -129,13 +129,13 @@
|
|
|
129
129
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
130
130
|
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
131
131
|
"@atlassian/adf-schema-json": "^1.33.0",
|
|
132
|
-
"@atlassian/editor-rovo-bridge": "^
|
|
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.
|
|
136
|
-
"@atlassian/search-provider": "^
|
|
135
|
+
"@atlassian/search-client": "^1.11.0",
|
|
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,9 +336,6 @@
|
|
|
336
336
|
},
|
|
337
337
|
"platform_editor_chromeless_akeditor_class": {
|
|
338
338
|
"type": "boolean"
|
|
339
|
-
},
|
|
340
|
-
"platform_editor_delay_markdown_view_mode_eval": {
|
|
341
|
-
"type": "boolean"
|
|
342
339
|
}
|
|
343
340
|
},
|
|
344
341
|
"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
|
-
}
|