@atlaskit/editor-core 189.3.14 → 189.3.16
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 +17 -0
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/cjs/plugins/analytics/index.js +0 -6
- package/dist/cjs/plugins/analytics/utils.js +0 -29
- package/dist/cjs/plugins/breakout/index.js +3 -3
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +4 -4
- package/dist/cjs/plugins/extension/extension-api.js +3 -3
- package/dist/cjs/plugins/extension/index.js +14 -3
- package/dist/cjs/plugins/{macro → extension/pm-plugins/macro}/actions.js +3 -4
- package/dist/cjs/plugins/{macro → extension/pm-plugins/macro}/index.js +2 -18
- package/dist/cjs/plugins/extension/toolbar.js +1 -1
- package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +32 -30
- package/dist/cjs/plugins/find-replace/commands-with-analytics.js +85 -71
- package/dist/cjs/plugins/find-replace/index.js +5 -2
- package/dist/cjs/plugins/find-replace/keymap.js +4 -4
- package/dist/cjs/plugins/index.js +1 -24
- package/dist/cjs/plugins/insert-block/index.js +36 -53
- package/dist/cjs/{ui → plugins/insert-block/ui}/ElementBrowser/InsertMenu.js +3 -9
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +3 -3
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -5
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +7 -8
- package/dist/cjs/plugins/paste/handlers.js +3 -3
- package/dist/cjs/plugins/paste/pm-plugins/main.js +4 -4
- package/dist/cjs/presets/context.js +5 -3
- package/dist/cjs/presets/universal.js +12 -8
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -2
- package/dist/cjs/{plugins/expand/ui/styles.js → ui/ContentStyles/expand.js} +11 -8
- package/dist/cjs/ui/ContentStyles/index.js +4 -4
- package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
- package/dist/cjs/use-preset.js +0 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/es2019/plugins/analytics/index.js +1 -1
- package/dist/es2019/plugins/analytics/utils.js +0 -24
- package/dist/es2019/plugins/breakout/index.js +1 -1
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +1 -1
- package/dist/es2019/plugins/extension/extension-api.js +2 -2
- package/dist/es2019/plugins/extension/index.js +13 -3
- package/dist/es2019/plugins/{macro → extension/pm-plugins/macro}/actions.js +2 -2
- package/dist/es2019/plugins/{macro → extension/pm-plugins/macro}/index.js +1 -14
- package/dist/es2019/plugins/extension/toolbar.js +1 -1
- package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +20 -19
- package/dist/es2019/plugins/find-replace/commands-with-analytics.js +15 -15
- package/dist/es2019/plugins/find-replace/index.js +7 -2
- package/dist/es2019/plugins/find-replace/keymap.js +4 -4
- package/dist/es2019/plugins/index.js +0 -2
- package/dist/es2019/plugins/insert-block/index.js +19 -36
- package/dist/es2019/{ui → plugins/insert-block/ui}/ElementBrowser/InsertMenu.js +4 -8
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -2
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -3
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +2 -2
- package/dist/es2019/plugins/paste/handlers.js +4 -3
- package/dist/es2019/plugins/paste/pm-plugins/main.js +4 -4
- package/dist/es2019/presets/context.js +2 -2
- package/dist/es2019/presets/universal.js +10 -6
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -2
- package/dist/es2019/{plugins/expand/ui/styles.js → ui/ContentStyles/expand.js} +9 -4
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +2 -2
- package/dist/es2019/use-preset.js +0 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/esm/plugins/analytics/index.js +1 -1
- package/dist/esm/plugins/analytics/utils.js +0 -28
- package/dist/esm/plugins/breakout/index.js +1 -1
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -1
- package/dist/esm/plugins/extension/extension-api.js +2 -2
- package/dist/esm/plugins/extension/index.js +14 -3
- package/dist/esm/plugins/{macro → extension/pm-plugins/macro}/actions.js +2 -2
- package/dist/esm/plugins/{macro → extension/pm-plugins/macro}/index.js +1 -17
- package/dist/esm/plugins/extension/toolbar.js +1 -1
- package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +32 -30
- package/dist/esm/plugins/find-replace/commands-with-analytics.js +84 -70
- package/dist/esm/plugins/find-replace/index.js +5 -2
- package/dist/esm/plugins/find-replace/keymap.js +4 -4
- package/dist/esm/plugins/index.js +0 -2
- package/dist/esm/plugins/insert-block/index.js +36 -53
- package/dist/esm/{ui → plugins/insert-block/ui}/ElementBrowser/InsertMenu.js +4 -10
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -2
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -3
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +2 -2
- package/dist/esm/plugins/paste/handlers.js +4 -3
- package/dist/esm/plugins/paste/pm-plugins/main.js +4 -4
- package/dist/esm/presets/context.js +2 -2
- package/dist/esm/presets/universal.js +9 -6
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -2
- package/dist/esm/{plugins/expand/ui/styles.js → ui/ContentStyles/expand.js} +9 -4
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/use-preset.js +0 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/analytics/index.d.ts +1 -1
- package/dist/types/plugins/analytics/utils.d.ts +0 -11
- package/dist/types/plugins/extension/extension-api.d.ts +1 -1
- package/dist/{types-ts4.5/plugins → types/plugins/extension/pm-plugins}/macro/index.d.ts +1 -4
- package/dist/types/plugins/extension/pm-plugins/macro/types.d.ts +4 -0
- package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +4 -2
- package/dist/types/plugins/find-replace/commands-with-analytics.d.ts +9 -9
- package/dist/types/plugins/find-replace/index.d.ts +5 -3
- package/dist/types/plugins/find-replace/keymap.d.ts +2 -1
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/plugins/insert-block/types.d.ts +4 -2
- package/dist/{types-ts4.5 → types/plugins/insert-block}/ui/ElementBrowser/types.d.ts +2 -2
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +0 -2
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +0 -1
- package/dist/types/plugins/mobile-dimensions/index.d.ts +2 -1
- package/dist/types/plugins/paste/handlers.d.ts +2 -1
- package/dist/types/presets/context.d.ts +2 -2
- package/dist/types/presets/default.d.ts +8 -0
- package/dist/types/presets/universal.d.ts +5 -0
- package/dist/types/{plugins/expand/ui/styles.d.ts → ui/ContentStyles/expand.d.ts} +1 -1
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/analytics/utils.d.ts +0 -11
- package/dist/types-ts4.5/plugins/extension/extension-api.d.ts +1 -1
- package/dist/{types/plugins → types-ts4.5/plugins/extension/pm-plugins}/macro/index.d.ts +1 -4
- package/dist/types-ts4.5/plugins/extension/pm-plugins/macro/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +4 -2
- package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +9 -9
- package/dist/types-ts4.5/plugins/find-replace/index.d.ts +6 -3
- package/dist/types-ts4.5/plugins/find-replace/keymap.d.ts +2 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +4 -2
- package/dist/{types → types-ts4.5/plugins/insert-block}/ui/ElementBrowser/types.d.ts +2 -2
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +1 -1
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +1 -1
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +0 -2
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -1
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/mobile-dimensions/index.d.ts +2 -1
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +2 -1
- package/dist/types-ts4.5/presets/context.d.ts +2 -2
- package/dist/types-ts4.5/presets/default.d.ts +8 -0
- package/dist/types-ts4.5/presets/universal.d.ts +5 -0
- package/dist/types-ts4.5/{plugins/expand/ui/styles.d.ts → ui/ContentStyles/expand.d.ts} +1 -1
- package/package.json +5 -9
- package/dist/cjs/plugins/breakout/constants.js +0 -10
- package/dist/cjs/plugins/expand/commands.js +0 -184
- package/dist/cjs/plugins/expand/index.js +0 -111
- package/dist/cjs/plugins/expand/nodeviews/index.js +0 -485
- package/dist/cjs/plugins/expand/pm-plugins/keymap.js +0 -171
- package/dist/cjs/plugins/expand/pm-plugins/main.js +0 -85
- package/dist/cjs/plugins/expand/pm-plugins/plugin-factory.js +0 -15
- package/dist/cjs/plugins/expand/reducer.js +0 -20
- package/dist/cjs/plugins/expand/toolbar.js +0 -59
- package/dist/cjs/plugins/expand/ui/ExpandIconButton.js +0 -104
- package/dist/cjs/plugins/expand/ui/class-names.js +0 -20
- package/dist/cjs/plugins/expand/utils.js +0 -24
- package/dist/cjs/ui/ElementBrowser/types.js +0 -5
- package/dist/es2019/plugins/breakout/constants.js +0 -4
- package/dist/es2019/plugins/expand/commands.js +0 -161
- package/dist/es2019/plugins/expand/index.js +0 -95
- package/dist/es2019/plugins/expand/nodeviews/index.js +0 -475
- package/dist/es2019/plugins/expand/pm-plugins/keymap.js +0 -197
- package/dist/es2019/plugins/expand/pm-plugins/main.js +0 -73
- package/dist/es2019/plugins/expand/pm-plugins/plugin-factory.js +0 -9
- package/dist/es2019/plugins/expand/reducer.js +0 -11
- package/dist/es2019/plugins/expand/toolbar.js +0 -52
- package/dist/es2019/plugins/expand/ui/ExpandIconButton.js +0 -85
- package/dist/es2019/plugins/expand/ui/class-names.js +0 -12
- package/dist/es2019/plugins/expand/utils.js +0 -1
- package/dist/esm/plugins/breakout/constants.js +0 -4
- package/dist/esm/plugins/expand/commands.js +0 -177
- package/dist/esm/plugins/expand/index.js +0 -97
- package/dist/esm/plugins/expand/nodeviews/index.js +0 -477
- package/dist/esm/plugins/expand/pm-plugins/keymap.js +0 -165
- package/dist/esm/plugins/expand/pm-plugins/main.js +0 -77
- package/dist/esm/plugins/expand/pm-plugins/plugin-factory.js +0 -9
- package/dist/esm/plugins/expand/reducer.js +0 -13
- package/dist/esm/plugins/expand/toolbar.js +0 -52
- package/dist/esm/plugins/expand/ui/ExpandIconButton.js +0 -95
- package/dist/esm/plugins/expand/ui/class-names.js +0 -14
- package/dist/esm/plugins/expand/utils.js +0 -1
- package/dist/esm/plugins/macro/types.js +0 -1
- package/dist/esm/ui/ElementBrowser/types.js +0 -1
- package/dist/types/plugins/breakout/constants.d.ts +0 -4
- package/dist/types/plugins/expand/commands.d.ts +0 -13
- package/dist/types/plugins/expand/index.d.ts +0 -31
- package/dist/types/plugins/expand/nodeviews/index.d.ts +0 -55
- package/dist/types/plugins/expand/pm-plugins/keymap.d.ts +0 -4
- package/dist/types/plugins/expand/pm-plugins/main.d.ts +0 -8
- package/dist/types/plugins/expand/pm-plugins/plugin-factory.d.ts +0 -3
- package/dist/types/plugins/expand/reducer.d.ts +0 -3
- package/dist/types/plugins/expand/toolbar.d.ts +0 -3
- package/dist/types/plugins/expand/types.d.ts +0 -9
- package/dist/types/plugins/expand/ui/ExpandIconButton.d.ts +0 -43
- package/dist/types/plugins/expand/ui/class-names.d.ts +0 -11
- package/dist/types/plugins/expand/utils.d.ts +0 -1
- package/dist/types/plugins/macro/types.d.ts +0 -4
- package/dist/types-ts4.5/plugins/breakout/constants.d.ts +0 -4
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +0 -13
- package/dist/types-ts4.5/plugins/expand/index.d.ts +0 -31
- package/dist/types-ts4.5/plugins/expand/nodeviews/index.d.ts +0 -55
- package/dist/types-ts4.5/plugins/expand/pm-plugins/keymap.d.ts +0 -4
- package/dist/types-ts4.5/plugins/expand/pm-plugins/main.d.ts +0 -8
- package/dist/types-ts4.5/plugins/expand/pm-plugins/plugin-factory.d.ts +0 -3
- package/dist/types-ts4.5/plugins/expand/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +0 -3
- package/dist/types-ts4.5/plugins/expand/types.d.ts +0 -9
- package/dist/types-ts4.5/plugins/expand/ui/ExpandIconButton.d.ts +0 -43
- package/dist/types-ts4.5/plugins/expand/ui/class-names.d.ts +0 -11
- package/dist/types-ts4.5/plugins/expand/utils.d.ts +0 -1
- package/dist/types-ts4.5/plugins/macro/types.d.ts +0 -4
- /package/dist/cjs/plugins/{macro → extension/pm-plugins/macro}/plugin-key.js +0 -0
- /package/dist/cjs/plugins/{expand → extension/pm-plugins/macro}/types.js +0 -0
- /package/dist/cjs/plugins/{macro → insert-block/ui/ElementBrowser}/types.js +0 -0
- /package/dist/es2019/plugins/{macro → extension/pm-plugins/macro}/plugin-key.js +0 -0
- /package/dist/es2019/plugins/{expand → extension/pm-plugins/macro}/types.js +0 -0
- /package/dist/es2019/plugins/{macro → insert-block/ui/ElementBrowser}/types.js +0 -0
- /package/dist/esm/plugins/{macro → extension/pm-plugins/macro}/plugin-key.js +0 -0
- /package/dist/{es2019/ui/ElementBrowser → esm/plugins/extension/pm-plugins/macro}/types.js +0 -0
- /package/dist/esm/plugins/{expand → insert-block/ui/ElementBrowser}/types.js +0 -0
- /package/dist/types/plugins/{macro → extension/pm-plugins/macro}/actions.d.ts +0 -0
- /package/dist/types/plugins/{macro → extension/pm-plugins/macro}/plugin-key.d.ts +0 -0
- /package/dist/types/{ui → plugins/insert-block/ui}/ElementBrowser/InsertMenu.d.ts +0 -0
- /package/dist/types-ts4.5/plugins/{macro → extension/pm-plugins/macro}/actions.d.ts +0 -0
- /package/dist/types-ts4.5/plugins/{macro → extension/pm-plugins/macro}/plugin-key.d.ts +0 -0
- /package/dist/types-ts4.5/{ui → plugins/insert-block/ui}/ElementBrowser/InsertMenu.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -71,12 +70,6 @@ Object.defineProperty(exports, "dataConsumerMarkPlugin", {
|
|
|
71
70
|
return _dataConsumer.default;
|
|
72
71
|
}
|
|
73
72
|
});
|
|
74
|
-
Object.defineProperty(exports, "expandPlugin", {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
get: function get() {
|
|
77
|
-
return _expand.default;
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
73
|
Object.defineProperty(exports, "extensionPlugin", {
|
|
81
74
|
enumerable: true,
|
|
82
75
|
get: function get() {
|
|
@@ -107,24 +100,12 @@ Object.defineProperty(exports, "insertBlockPlugin", {
|
|
|
107
100
|
return _insertBlock.default;
|
|
108
101
|
}
|
|
109
102
|
});
|
|
110
|
-
Object.defineProperty(exports, "isExpandInsertionEnabled", {
|
|
111
|
-
enumerable: true,
|
|
112
|
-
get: function get() {
|
|
113
|
-
return _expand.isExpandInsertionEnabled;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
103
|
Object.defineProperty(exports, "jiraIssuePlugin", {
|
|
117
104
|
enumerable: true,
|
|
118
105
|
get: function get() {
|
|
119
106
|
return _jiraIssue.default;
|
|
120
107
|
}
|
|
121
108
|
});
|
|
122
|
-
Object.defineProperty(exports, "macroPlugin", {
|
|
123
|
-
enumerable: true,
|
|
124
|
-
get: function get() {
|
|
125
|
-
return _macro.default;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
109
|
Object.defineProperty(exports, "mobileDimensionsPlugin", {
|
|
129
110
|
enumerable: true,
|
|
130
111
|
get: function get() {
|
|
@@ -173,7 +154,6 @@ var _extension = _interopRequireDefault(require("./extension"));
|
|
|
173
154
|
var _insertBlock = _interopRequireDefault(require("./insert-block"));
|
|
174
155
|
var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
|
|
175
156
|
var _toolbarListsIndentation = _interopRequireDefault(require("./toolbar-lists-indentation"));
|
|
176
|
-
var _macro = _interopRequireDefault(require("./macro"));
|
|
177
157
|
var _paste = _interopRequireDefault(require("./paste"));
|
|
178
158
|
var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions"));
|
|
179
159
|
var _breakout = _interopRequireDefault(require("./breakout"));
|
|
@@ -184,7 +164,6 @@ var _annotation = _interopRequireDefault(require("./annotation"));
|
|
|
184
164
|
var _analytics = _interopRequireDefault(require("./analytics"));
|
|
185
165
|
var _customAutoformat = _interopRequireDefault(require("./custom-autoformat"));
|
|
186
166
|
var _feedbackDialog = _interopRequireDefault(require("./feedback-dialog"));
|
|
187
|
-
var _expand = _interopRequireWildcard(require("./expand"));
|
|
188
167
|
var _mobileDimensions = _interopRequireDefault(require("./mobile-dimensions"));
|
|
189
168
|
var _findReplace = _interopRequireDefault(require("./find-replace"));
|
|
190
169
|
var _mobileSelection = _interopRequireDefault(require("./mobile-selection"));
|
|
@@ -192,6 +171,4 @@ var _undoRedo = _interopRequireDefault(require("./undo-redo"));
|
|
|
192
171
|
var _avatarGroup = _interopRequireDefault(require("./avatar-group"));
|
|
193
172
|
var _viewUpdateSubscription = _interopRequireDefault(require("./view-update-subscription"));
|
|
194
173
|
var _beforePrimaryToolbar = _interopRequireDefault(require("./before-primaryToolbar"));
|
|
195
|
-
var _codeBidiWarning = _interopRequireDefault(require("./code-bidi-warning"));
|
|
196
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
197
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
174
|
+
var _codeBidiWarning = _interopRequireDefault(require("./code-bidi-warning"));
|
|
@@ -7,13 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
10
|
-
var _macro = require("../macro");
|
|
11
|
-
var _WithPluginState = _interopRequireDefault(require("../../ui/WithPluginState"));
|
|
12
10
|
var _ToolbarInsertBlock = _interopRequireDefault(require("./ui/ToolbarInsertBlock"));
|
|
13
11
|
var _consts = require("@atlaskit/editor-plugin-block-type/consts");
|
|
14
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
15
|
-
var
|
|
16
|
-
var _types = require("../../ui/Toolbar/types");
|
|
13
|
+
var _types = require("@atlaskit/editor-common/types");
|
|
17
14
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
18
15
|
var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize) {
|
|
19
16
|
switch (toolbarSize) {
|
|
@@ -69,34 +66,22 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
69
66
|
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
70
67
|
isLastItem = _ref2.isLastItem;
|
|
71
68
|
var renderNode = function renderNode(providers) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
popupsBoundariesElement: popupsBoundariesElement,
|
|
89
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
90
|
-
toolbarSize: toolbarSize,
|
|
91
|
-
disabled: disabled,
|
|
92
|
-
isToolbarReducedSpacing: isToolbarReducedSpacing,
|
|
93
|
-
isLastItem: isLastItem,
|
|
94
|
-
featureFlags: featureFlags,
|
|
95
|
-
macroState: macroState,
|
|
96
|
-
providers: providers,
|
|
97
|
-
options: options
|
|
98
|
-
});
|
|
99
|
-
}
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
70
|
+
pluginInjectionApi: api,
|
|
71
|
+
editorView: editorView,
|
|
72
|
+
editorActions: editorActions,
|
|
73
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
74
|
+
providerFactory: providerFactory,
|
|
75
|
+
popupsMountPoint: popupsMountPoint,
|
|
76
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
77
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
78
|
+
toolbarSize: toolbarSize,
|
|
79
|
+
disabled: disabled,
|
|
80
|
+
isToolbarReducedSpacing: isToolbarReducedSpacing,
|
|
81
|
+
isLastItem: isLastItem,
|
|
82
|
+
featureFlags: featureFlags,
|
|
83
|
+
providers: providers,
|
|
84
|
+
options: options
|
|
100
85
|
});
|
|
101
86
|
};
|
|
102
87
|
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders, {
|
|
@@ -107,23 +92,22 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
107
92
|
}
|
|
108
93
|
};
|
|
109
94
|
};
|
|
110
|
-
function ToolbarInsertBlockWithInjectionApi(
|
|
111
|
-
var
|
|
112
|
-
var editorView =
|
|
113
|
-
editorActions =
|
|
114
|
-
dispatchAnalyticsEvent =
|
|
115
|
-
popupsMountPoint =
|
|
116
|
-
popupsBoundariesElement =
|
|
117
|
-
popupsScrollableElement =
|
|
118
|
-
toolbarSize =
|
|
119
|
-
disabled =
|
|
120
|
-
isToolbarReducedSpacing =
|
|
121
|
-
isLastItem =
|
|
122
|
-
providers =
|
|
123
|
-
pluginInjectionApi =
|
|
124
|
-
options =
|
|
125
|
-
|
|
126
|
-
featureFlags = _ref4.featureFlags;
|
|
95
|
+
function ToolbarInsertBlockWithInjectionApi(_ref3) {
|
|
96
|
+
var _ref4, _ref5, _pluginInjectionApi$i, _pluginInjectionApi$c, _pluginInjectionApi$p, _pluginInjectionApi$b, _pluginInjectionApi$e;
|
|
97
|
+
var editorView = _ref3.editorView,
|
|
98
|
+
editorActions = _ref3.editorActions,
|
|
99
|
+
dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent,
|
|
100
|
+
popupsMountPoint = _ref3.popupsMountPoint,
|
|
101
|
+
popupsBoundariesElement = _ref3.popupsBoundariesElement,
|
|
102
|
+
popupsScrollableElement = _ref3.popupsScrollableElement,
|
|
103
|
+
toolbarSize = _ref3.toolbarSize,
|
|
104
|
+
disabled = _ref3.disabled,
|
|
105
|
+
isToolbarReducedSpacing = _ref3.isToolbarReducedSpacing,
|
|
106
|
+
isLastItem = _ref3.isLastItem,
|
|
107
|
+
providers = _ref3.providers,
|
|
108
|
+
pluginInjectionApi = _ref3.pluginInjectionApi,
|
|
109
|
+
options = _ref3.options,
|
|
110
|
+
featureFlags = _ref3.featureFlags;
|
|
127
111
|
var buttons = toolbarSizeToButtons(toolbarSize);
|
|
128
112
|
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead', 'placeholderText']),
|
|
129
113
|
dateState = _useSharedPluginState.dateState,
|
|
@@ -151,8 +135,8 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
151
135
|
placeholderTextEnabled: placeholderTextState && placeholderTextState.allowInserting,
|
|
152
136
|
layoutSectionEnabled: Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.layout),
|
|
153
137
|
expandEnabled: !!options.allowExpand,
|
|
154
|
-
mediaUploadsEnabled: (
|
|
155
|
-
onShowMediaPicker: (
|
|
138
|
+
mediaUploadsEnabled: (_ref4 = mediaState && mediaState.allowsUploads) !== null && _ref4 !== void 0 ? _ref4 : undefined,
|
|
139
|
+
onShowMediaPicker: (_ref5 = mediaState && mediaState.showMediaPicker) !== null && _ref5 !== void 0 ? _ref5 : undefined,
|
|
156
140
|
mediaSupported: !!mediaState,
|
|
157
141
|
imageUploadSupported: !!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.imageUpload),
|
|
158
142
|
imageUploadEnabled: imageUploadState === null || imageUploadState === void 0 ? void 0 : imageUploadState.enabled,
|
|
@@ -165,8 +149,7 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
165
149
|
nativeStatusSupported: options.nativeStatusSupported,
|
|
166
150
|
horizontalRuleEnabled: options.horizontalRuleEnabled,
|
|
167
151
|
onInsertBlockType: handleInsertBlockType(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.codeBlock) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.actions.insertCodeBlock, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$p = pluginInjectionApi.panel) === null || _pluginInjectionApi$p === void 0 ? void 0 : _pluginInjectionApi$p.actions.insertPanel, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$b = pluginInjectionApi.blockType) === null || _pluginInjectionApi$b === void 0 ? void 0 : _pluginInjectionApi$b.actions.insertBlockQuote),
|
|
168
|
-
onInsertMacroFromMacroBrowser:
|
|
169
|
-
macroProvider: macroState.macroProvider,
|
|
152
|
+
onInsertMacroFromMacroBrowser: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.extension) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.actions.insertMacroFromMacroBrowser,
|
|
170
153
|
popupsMountPoint: popupsMountPoint,
|
|
171
154
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
172
155
|
popupsScrollableElement: popupsScrollableElement,
|
|
@@ -12,7 +12,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
var _theme = require("@atlaskit/theme");
|
|
15
|
-
var _components = require("@atlaskit/theme/components");
|
|
16
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
16
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
18
17
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
@@ -92,9 +91,7 @@ var InsertMenu = function InsertMenu(_ref) {
|
|
|
92
91
|
}, [pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$q6 = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q6 === void 0 ? void 0 : _pluginInjectionApi$q6.actions, quickInsertDropdownItems]);
|
|
93
92
|
var emptyStateHandler = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$q7 = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q7 === void 0 || (_pluginInjectionApi$q7 = _pluginInjectionApi$q7.sharedState.currentState()) === null || _pluginInjectionApi$q7 === void 0 ? void 0 : _pluginInjectionApi$q7.emptyStateHandler;
|
|
94
93
|
return (0, _react2.jsx)("div", {
|
|
95
|
-
css:
|
|
96
|
-
return insertMenuWrapper(theme, itemCount);
|
|
97
|
-
}
|
|
94
|
+
css: insertMenuWrapper(itemCount)
|
|
98
95
|
}, (0, _react2.jsx)(ElementBrowserWrapper, {
|
|
99
96
|
handleClickOutside: toggleVisiblity,
|
|
100
97
|
handleEscapeKeydown: toggleVisiblity,
|
|
@@ -138,13 +135,10 @@ var getInsertMenuHeight = function getInsertMenuHeight(_ref3) {
|
|
|
138
135
|
return 560; // For showing 6 Elements.
|
|
139
136
|
};
|
|
140
137
|
|
|
141
|
-
var insertMenuWrapper = function insertMenuWrapper(
|
|
138
|
+
var insertMenuWrapper = function insertMenuWrapper(itemCount) {
|
|
142
139
|
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n width: 320px;\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"])), getInsertMenuHeight({
|
|
143
140
|
itemCount: itemCount
|
|
144
|
-
}), (0,
|
|
145
|
-
light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
146
|
-
dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
|
|
147
|
-
})(theme), (0, _theme.borderRadius)(), "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ",\n 0 2px 1px ").concat(_colors.N30A, ",\n 0 0 20px -6px ").concat(_colors.N60A), ")"));
|
|
141
|
+
}), "var(--ds-surface-overlay, ".concat(_colors.N0, ")"), (0, _theme.borderRadius)(), "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ",\n 0 2px 1px ").concat(_colors.N30A, ",\n 0 0 20px -6px ").concat(_colors.N60A), ")"));
|
|
148
142
|
};
|
|
149
143
|
var flexWrapperStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex: 1;\n box-sizing: border-box;\n overflow: hidden;\n"])));
|
|
150
144
|
var FlexWrapper = function FlexWrapper(props) {
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.BlockInsertElementBrowser = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
10
|
-
var _InsertMenu = _interopRequireDefault(require("
|
|
10
|
+
var _InsertMenu = _interopRequireDefault(require("../ElementBrowser/InsertMenu"));
|
|
11
11
|
var _dropdownButton = require("./dropdown-button");
|
|
12
12
|
var BlockInsertElementBrowser = exports.BlockInsertElementBrowser = function BlockInsertElementBrowser(props) {
|
|
13
13
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, props.open && /*#__PURE__*/_react.default.createElement(_ui.Popup, {
|
|
@@ -12,7 +12,7 @@ var _memoize = _interopRequireDefault(require("lodash/memoize"));
|
|
|
12
12
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
13
13
|
var _messages = require("./messages");
|
|
14
14
|
var _messages2 = require("@atlaskit/editor-common/messages");
|
|
15
|
-
var _keymaps = require("
|
|
15
|
+
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
16
16
|
var _sortItems = require("./sort-items");
|
|
17
17
|
var _item = require("./item");
|
|
18
18
|
var _shallowEquals = require("./shallow-equals");
|
|
@@ -9,8 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _add = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/add"));
|
|
11
11
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
12
|
-
var _keymaps = require("
|
|
13
|
-
var
|
|
12
|
+
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
13
|
+
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
14
14
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
15
15
|
var _styles2 = require("./styles");
|
|
16
16
|
/** @jsx jsx */
|
|
@@ -27,7 +27,7 @@ var DropDownButtonIcon = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
27
27
|
})));
|
|
28
28
|
});
|
|
29
29
|
var DropDownButton = exports.DropDownButton = /*#__PURE__*/_react.default.memo(function (props) {
|
|
30
|
-
return (0, _react2.jsx)(
|
|
30
|
+
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
31
31
|
ref: props.handleRef,
|
|
32
32
|
selected: props.selected,
|
|
33
33
|
disabled: props.disabled,
|
|
@@ -19,7 +19,7 @@ var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
|
19
19
|
var _reactIntlNext = require("react-intl-next");
|
|
20
20
|
var _picker = require("@atlaskit/emoji/picker");
|
|
21
21
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
22
|
-
var
|
|
22
|
+
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
23
23
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
25
|
var _commands = require("../../../tasks-and-decisions/commands");
|
|
@@ -27,7 +27,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
27
27
|
var _messages = require("./messages");
|
|
28
28
|
var _createItems3 = require("./create-items");
|
|
29
29
|
var _blockInsertMenu = require("./block-insert-menu");
|
|
30
|
-
var
|
|
30
|
+
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
31
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
32
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
33
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -39,7 +39,7 @@ var isDetachedElement = function isDetachedElement(el) {
|
|
|
39
39
|
return !document.body.contains(el);
|
|
40
40
|
};
|
|
41
41
|
var noop = function noop() {};
|
|
42
|
-
var EmojiPickerWithListeners = (0,
|
|
42
|
+
var EmojiPickerWithListeners = (0, _uiReact.withReactEditorViewOuterListeners)(_picker.EmojiPicker);
|
|
43
43
|
var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
44
44
|
(0, _inherits2.default)(ToolbarInsertBlock, _React$PureComponent);
|
|
45
45
|
var _super = _createSuper(ToolbarInsertBlock);
|
|
@@ -477,7 +477,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
477
477
|
return (0, _react2.jsx)("span", {
|
|
478
478
|
css: _styles.buttonGroupStyle
|
|
479
479
|
}, buttons.map(function (btn) {
|
|
480
|
-
return (0, _react2.jsx)(
|
|
480
|
+
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
481
481
|
item: btn,
|
|
482
482
|
testId: String(btn.content),
|
|
483
483
|
ref: btn.value.name === 'emoji' ? _this2.handleEmojiButtonRef : noop,
|
|
@@ -543,7 +543,6 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
543
543
|
horizontalRuleEnabled: props.horizontalRuleEnabled,
|
|
544
544
|
layoutSectionEnabled: props.layoutSectionEnabled,
|
|
545
545
|
expandEnabled: props.expandEnabled,
|
|
546
|
-
macroProvider: props.macroProvider,
|
|
547
546
|
showElementBrowserLink: props.showElementBrowserLink,
|
|
548
547
|
emojiProvider: props.emojiProvider,
|
|
549
548
|
availableWrapperBlockTypes: props.availableWrapperBlockTypes,
|
|
@@ -25,10 +25,9 @@ var _horizontalRule = _interopRequireDefault(require("@atlaskit/icon/glyph/edito
|
|
|
25
25
|
var _code = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/code"));
|
|
26
26
|
var _info = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/info"));
|
|
27
27
|
var _quote = _interopRequireDefault(require("@atlaskit/icon/glyph/quote"));
|
|
28
|
-
var
|
|
29
|
-
var _keymaps = require("
|
|
28
|
+
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
29
|
+
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
30
30
|
var _shallowEquals = require("./shallow-equals");
|
|
31
|
-
var _keymaps2 = require("@atlaskit/editor-common/keymaps");
|
|
32
31
|
/** @jsx jsx */
|
|
33
32
|
|
|
34
33
|
var from = function from(init) {
|
|
@@ -42,7 +41,7 @@ var from = function from(init) {
|
|
|
42
41
|
label: init.content
|
|
43
42
|
}),
|
|
44
43
|
elemAfter: init.shortcut ? (0, _react2.jsx)("div", {
|
|
45
|
-
css:
|
|
44
|
+
css: _shortcut.shortcutStyle
|
|
46
45
|
}, init.shortcut) : undefined,
|
|
47
46
|
'aria-label': init.shortcut ? init.content + ' ' + init.shortcut : init.content,
|
|
48
47
|
'aria-haspopup': init['aria-haspopup'],
|
|
@@ -74,7 +73,7 @@ var link = exports.link = mem(function (init) {
|
|
|
74
73
|
shortcut: (0, _keymaps.tooltip)(_keymaps.addLink),
|
|
75
74
|
Icon: _link.default,
|
|
76
75
|
'aria-haspopup': init['aria-haspopup'],
|
|
77
|
-
'aria-keyshortcuts': (0,
|
|
76
|
+
'aria-keyshortcuts': (0, _keymaps.getAriaKeyshortcuts)(_keymaps.addLink)
|
|
78
77
|
});
|
|
79
78
|
});
|
|
80
79
|
var media = exports.media = mem(function (init) {
|
|
@@ -127,7 +126,7 @@ var table = exports.table = mem(function (init) {
|
|
|
127
126
|
name: 'table',
|
|
128
127
|
Icon: _table.default,
|
|
129
128
|
shortcut: (0, _keymaps.tooltip)(_keymaps.toggleTable),
|
|
130
|
-
'aria-keyshortcuts': (0,
|
|
129
|
+
'aria-keyshortcuts': (0, _keymaps.getAriaKeyshortcuts)(_keymaps.toggleTable)
|
|
131
130
|
});
|
|
132
131
|
});
|
|
133
132
|
var layout = exports.layout = mem(function (init) {
|
|
@@ -147,7 +146,7 @@ var codeblock = exports.codeblock = mem(function (init) {
|
|
|
147
146
|
name: 'codeblock',
|
|
148
147
|
Icon: _code.default,
|
|
149
148
|
shortcut: init.shortcut,
|
|
150
|
-
'aria-keyshortcuts': (0,
|
|
149
|
+
'aria-keyshortcuts': (0, _keymaps.getAriaKeyshortcuts)(init.shortcut)
|
|
151
150
|
});
|
|
152
151
|
});
|
|
153
152
|
var panel = exports.panel = mem(function (init) {
|
|
@@ -158,7 +157,7 @@ var panel = exports.panel = mem(function (init) {
|
|
|
158
157
|
name: 'panel',
|
|
159
158
|
Icon: _info.default,
|
|
160
159
|
shortcut: init.shortcut,
|
|
161
|
-
'aria-keyshortcuts': (0,
|
|
160
|
+
'aria-keyshortcuts': (0, _keymaps.getAriaKeyshortcuts)(init.shortcut)
|
|
162
161
|
});
|
|
163
162
|
});
|
|
164
163
|
var blockquote = exports.blockquote = mem(function (init) {
|
|
@@ -35,7 +35,6 @@ var _utils3 = require("@atlaskit/editor-common/utils");
|
|
|
35
35
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
36
36
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
37
37
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
38
|
-
var _macro = require("../macro");
|
|
39
38
|
var _util = require("./util");
|
|
40
39
|
var _edgeCases = require("./edge-cases");
|
|
41
40
|
var _commands = require("./commands");
|
|
@@ -508,7 +507,7 @@ function insertAutoMacro(slice, macro, view, from, to) {
|
|
|
508
507
|
}
|
|
509
508
|
return false;
|
|
510
509
|
}
|
|
511
|
-
function handleMacroAutoConvert(text, slice, queueCardsFromChangedTr, cardsOptions, extensionAutoConverter) {
|
|
510
|
+
function handleMacroAutoConvert(text, slice, queueCardsFromChangedTr, runMacroAutoConvert, cardsOptions, extensionAutoConverter) {
|
|
512
511
|
return function (state, dispatch, view) {
|
|
513
512
|
var macro = null;
|
|
514
513
|
|
|
@@ -522,7 +521,8 @@ function handleMacroAutoConvert(text, slice, queueCardsFromChangedTr, cardsOptio
|
|
|
522
521
|
|
|
523
522
|
// then try from macro provider (which will be removed some time in the future)
|
|
524
523
|
if (!macro) {
|
|
525
|
-
|
|
524
|
+
var _runMacroAutoConvert;
|
|
525
|
+
macro = (_runMacroAutoConvert = runMacroAutoConvert === null || runMacroAutoConvert === void 0 ? void 0 : runMacroAutoConvert(state, text)) !== null && _runMacroAutoConvert !== void 0 ? _runMacroAutoConvert : null;
|
|
526
526
|
}
|
|
527
527
|
if (macro) {
|
|
528
528
|
/**
|
|
@@ -254,14 +254,14 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
254
254
|
// force a "paste as plain text" action by clearing the markdownSlice.
|
|
255
255
|
markdownSlice = !((_markdownSlice = markdownSlice) !== null && _markdownSlice !== void 0 && _markdownSlice.size) ? undefined : markdownSlice;
|
|
256
256
|
if (markdownSlice) {
|
|
257
|
-
var _pluginInjectionApi$c;
|
|
257
|
+
var _pluginInjectionApi$c, _pluginInjectionApi$e;
|
|
258
258
|
// linkify text prior to converting to macro
|
|
259
259
|
if ((0, _analytics2.handlePasteLinkOnSelectedTextWithAnalytics)(editorAnalyticsAPI)(view, event, markdownSlice, _analytics.PasteTypes.markdown)(state, dispatch)) {
|
|
260
260
|
return true;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
// run macro autoconvert prior to other conversions
|
|
264
|
-
if ((0, _handlers.handleMacroAutoConvert)(text, markdownSlice, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.card) === null || _pluginInjectionApi$c === void 0 || (_pluginInjectionApi$c = _pluginInjectionApi$c.actions) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.queueCardsFromChangedTr, cardOptions, extensionAutoConverter)(state, dispatch, view)) {
|
|
264
|
+
if ((0, _handlers.handleMacroAutoConvert)(text, markdownSlice, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.card) === null || _pluginInjectionApi$c === void 0 || (_pluginInjectionApi$c = _pluginInjectionApi$c.actions) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.queueCardsFromChangedTr, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.extension) === null || _pluginInjectionApi$e === void 0 || (_pluginInjectionApi$e = _pluginInjectionApi$e.actions) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.runMacroAutoConvert, cardOptions, extensionAutoConverter)(state, dispatch, view)) {
|
|
265
265
|
// TODO: handleMacroAutoConvert dispatch twice, so we can't use the helper
|
|
266
266
|
(0, _analytics2.sendPasteAnalyticsEvent)(editorAnalyticsAPI)(view, event, markdownSlice, {
|
|
267
267
|
type: _analytics.PasteTypes.markdown
|
|
@@ -326,7 +326,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
326
326
|
|
|
327
327
|
// finally, handle rich-text copy-paste
|
|
328
328
|
if (isRichText) {
|
|
329
|
-
var _pluginInjectionApi$c2, _pluginInjectionApi$l;
|
|
329
|
+
var _pluginInjectionApi$c2, _pluginInjectionApi$e2, _pluginInjectionApi$l;
|
|
330
330
|
// linkify the text where possible
|
|
331
331
|
slice = (0, _utils.linkifyContent)(state.schema)(slice);
|
|
332
332
|
if ((0, _analytics2.handlePasteLinkOnSelectedTextWithAnalytics)(editorAnalyticsAPI)(view, event, slice, _analytics.PasteTypes.richText)(state, dispatch)) {
|
|
@@ -334,7 +334,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
// run macro autoconvert prior to other conversions
|
|
337
|
-
if ((0, _handlers.handleMacroAutoConvert)(text, slice, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c2 = pluginInjectionApi.card) === null || _pluginInjectionApi$c2 === void 0 || (_pluginInjectionApi$c2 = _pluginInjectionApi$c2.actions) === null || _pluginInjectionApi$c2 === void 0 ? void 0 : _pluginInjectionApi$c2.queueCardsFromChangedTr, cardOptions, extensionAutoConverter)(state, dispatch, view)) {
|
|
337
|
+
if ((0, _handlers.handleMacroAutoConvert)(text, slice, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c2 = pluginInjectionApi.card) === null || _pluginInjectionApi$c2 === void 0 || (_pluginInjectionApi$c2 = _pluginInjectionApi$c2.actions) === null || _pluginInjectionApi$c2 === void 0 ? void 0 : _pluginInjectionApi$c2.queueCardsFromChangedTr, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e2 = pluginInjectionApi.extension) === null || _pluginInjectionApi$e2 === void 0 || (_pluginInjectionApi$e2 = _pluginInjectionApi$e2.actions) === null || _pluginInjectionApi$e2 === void 0 ? void 0 : _pluginInjectionApi$e2.runMacroAutoConvert, cardOptions, extensionAutoConverter)(state, dispatch, view)) {
|
|
338
338
|
// TODO: handleMacroAutoConvert dispatch twice, so we can't use the helper
|
|
339
339
|
(0, _analytics2.sendPasteAnalyticsEvent)(editorAnalyticsAPI)(view, event, slice, {
|
|
340
340
|
type: _analytics.PasteTypes.richText
|
|
@@ -5,7 +5,9 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.PresetContextProvider = exports.EditorAPIContext = void 0;
|
|
9
|
+
exports.usePresetContext = usePresetContext;
|
|
10
|
+
exports.useSetPresetContext = void 0;
|
|
9
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -24,11 +26,11 @@ var PresetContextProvider = exports.PresetContextProvider = function PresetConte
|
|
|
24
26
|
}
|
|
25
27
|
}, children);
|
|
26
28
|
};
|
|
27
|
-
|
|
29
|
+
function usePresetContext() {
|
|
28
30
|
var _useContext = (0, _react.useContext)(EditorAPIContext),
|
|
29
31
|
editorApi = _useContext.editorApi;
|
|
30
32
|
return editorApi;
|
|
31
|
-
}
|
|
33
|
+
}
|
|
32
34
|
var useSetPresetContext = exports.useSetPresetContext = function useSetPresetContext() {
|
|
33
35
|
var _useContext2 = (0, _react.useContext)(EditorAPIContext),
|
|
34
36
|
setEditorApi = _useContext2.setEditorApi;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = createUniversalPreset;
|
|
8
|
+
exports.isExpandInsertionEnabled = isExpandInsertionEnabled;
|
|
8
9
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
11
|
var _plugins = require("../plugins");
|
|
@@ -36,6 +37,7 @@ var _editorPluginSaveOnEnter = require("@atlaskit/editor-plugin-save-on-enter");
|
|
|
36
37
|
var _editorPluginScrollIntoView = require("@atlaskit/editor-plugin-scroll-into-view");
|
|
37
38
|
var _editorPluginMentions = require("@atlaskit/editor-plugin-mentions");
|
|
38
39
|
var _editorPluginPlaceholderText = require("@atlaskit/editor-plugin-placeholder-text");
|
|
40
|
+
var _editorPluginExpand = require("@atlaskit/editor-plugin-expand");
|
|
39
41
|
var _isFullPage = require("../utils/is-full-page");
|
|
40
42
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
41
43
|
var _default = require("./default");
|
|
@@ -95,10 +97,10 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
95
97
|
return builder.add(plugin);
|
|
96
98
|
}
|
|
97
99
|
return builder;
|
|
98
|
-
}).maybeAdd(
|
|
100
|
+
}).maybeAdd(_editorPluginExpand.expandPlugin, function (plugin, builder) {
|
|
99
101
|
if (props.allowExpand) {
|
|
100
102
|
return builder.add([plugin, {
|
|
101
|
-
allowInsertion:
|
|
103
|
+
allowInsertion: isExpandInsertionEnabled(props),
|
|
102
104
|
useLongPressSelection: false,
|
|
103
105
|
appearance: appearance
|
|
104
106
|
}]);
|
|
@@ -272,11 +274,6 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
272
274
|
}]);
|
|
273
275
|
}
|
|
274
276
|
return builder;
|
|
275
|
-
}).maybeAdd(_plugins.macroPlugin, function (plugin, builder) {
|
|
276
|
-
if (props.macroProvider) {
|
|
277
|
-
return builder.add(plugin);
|
|
278
|
-
}
|
|
279
|
-
return builder;
|
|
280
277
|
}).maybeAdd(_plugins.annotationPlugin, function (plugin, builder) {
|
|
281
278
|
// See default list for when adding annotations with a provider
|
|
282
279
|
if (!props.annotationProviders && props.allowConfluenceInlineComment) {
|
|
@@ -362,7 +359,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
362
359
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
363
360
|
}]).add([_plugins.insertBlockPlugin, {
|
|
364
361
|
allowTables: !!props.allowTables,
|
|
365
|
-
allowExpand:
|
|
362
|
+
allowExpand: isExpandInsertionEnabled(props),
|
|
366
363
|
insertMenuItems: props.insertMenuItems,
|
|
367
364
|
horizontalRuleEnabled: props.allowRule,
|
|
368
365
|
nativeStatusSupported: !statusMenuDisabled,
|
|
@@ -419,4 +416,11 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
419
416
|
appearance: appearance
|
|
420
417
|
}]);
|
|
421
418
|
return finalPreset;
|
|
419
|
+
}
|
|
420
|
+
function isExpandInsertionEnabled(_ref) {
|
|
421
|
+
var allowExpand = _ref.allowExpand;
|
|
422
|
+
if (allowExpand && (0, _typeof2.default)(allowExpand) === 'object') {
|
|
423
|
+
return !!allowExpand.allowInsertion;
|
|
424
|
+
}
|
|
425
|
+
return false;
|
|
422
426
|
}
|
|
@@ -213,7 +213,7 @@ function RenderWithPluginState(_ref4) {
|
|
|
213
213
|
maxContentSizeState = _useSharedPluginState.maxContentSizeState;
|
|
214
214
|
return (0, _react2.jsx)(_react.Fragment, null, renderChrome({
|
|
215
215
|
maxContentSize: maxContentSizeState,
|
|
216
|
-
mediaState: mediaState
|
|
216
|
+
mediaState: mediaState !== null && mediaState !== void 0 ? mediaState : undefined
|
|
217
217
|
}));
|
|
218
218
|
}
|
|
219
219
|
var CommentEditorWithIntl = exports.CommentEditorWithIntl = (0, _reactIntlNext.injectIntl)(Editor);
|
|
@@ -24,7 +24,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
24
24
|
/** @jsx jsx */
|
|
25
25
|
|
|
26
26
|
var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
27
|
-
var _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$collabEdit, _props$collabEdit2, _props$collabEdit3;
|
|
27
|
+
var _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _editorAPI$analytics;
|
|
28
28
|
var _useState = (0, _react.useState)(false),
|
|
29
29
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
30
30
|
shouldSplitToolbar = _useState2[0],
|
|
@@ -76,7 +76,8 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
76
76
|
editorView: props.editorView,
|
|
77
77
|
containerElement: props.containerElement,
|
|
78
78
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
79
|
-
featureFlags: props.featureFlags
|
|
79
|
+
featureFlags: props.featureFlags,
|
|
80
|
+
editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions
|
|
80
81
|
}) : null, !!props.customPrimaryToolbarComponents && 'after' in props.customPrimaryToolbarComponents ? props.customPrimaryToolbarComponents.after : props.customPrimaryToolbarComponents);
|
|
81
82
|
(0, _react.useEffect)(function () {
|
|
82
83
|
if (twoLineEditorToolbar) {
|
|
@@ -7,17 +7,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.expandStyles = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var _components = require("@atlaskit/theme/components");
|
|
11
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
+
var _components = require("@atlaskit/theme/components");
|
|
12
|
+
var _styles = require("@atlaskit/editor-common/styles");
|
|
12
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
13
14
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
|
-
var
|
|
15
|
-
var _classNames = require("./class-names");
|
|
16
|
-
var _templateObject, _templateObject2;
|
|
15
|
+
var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
17
16
|
var EXPAND_SELECTED_BACKGROUND = (0, _components.themed)({
|
|
18
17
|
light: "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))",
|
|
19
18
|
dark: "var(--ds-background-neutral-subtle, rgba(9, 10, 11, 0.29))"
|
|
20
19
|
});
|
|
20
|
+
|
|
21
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
21
22
|
var EXPAND_ICON_COLOR = function EXPAND_ICON_COLOR(props) {
|
|
22
23
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), (0, _components.themed)({
|
|
23
24
|
light: "var(--ds-icon-subtle, ".concat(_colors.N80A, ")"),
|
|
@@ -46,17 +47,19 @@ var DANGER_STATE_BORDER_COLOR = (0, _components.themed)({
|
|
|
46
47
|
var DANGER_STATE_BORDER_RADIUS = (0, _components.themed)({
|
|
47
48
|
dark: '3px'
|
|
48
49
|
});
|
|
50
|
+
|
|
51
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
49
52
|
var expandStyles = exports.expandStyles = function expandStyles(props) {
|
|
50
|
-
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n .", " > div {\n display: flex;\n }\n\n .", " {\n ", "\n overflow: hidden;\n cursor: pointer;\n box-sizing: border-box;\n\n td > & {\n margin-top: 0;\n }\n\n .", " svg {\n ", ";\n transform: rotate(90deg);\n }\n\n &.", ":not(.danger) {\n ", "\n\n ::after {\n // Custom background color and borders (for dark theme).\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n }\n }\n\n &.danger {\n background: ", ";\n border: ", ";\n border-color: ", ";\n border-radius: ", ";\n }\n }\n\n .ProseMirror\n > .", ",\n .", "\n > .", " {\n margin-left: -", "px;\n margin-right: -", "px;\n }\n\n .", " {\n ", "\n cursor: text;\n padding-top: 0px;\n }\n\n .", " {\n ", "\n }\n\n .", " {\n ", ";\n align-items: center;\n overflow: visible;\n }\n\n .", " {\n background: ", ";\n border-color: ", ";\n\n .", " {\n padding-top: ", ";\n }\n }\n\n .", " {\n width: 100%;\n }\n\n /* stylelint-disable property-no-unknown, value-keyword-case */\n .", ":(.", ") {\n .expand-content-wrapper {\n height: auto;\n }\n }\n /* stylelint-enable property-no-unknown, value-keyword-case */\n\n .", ":not(.", ") {\n .ak-editor-expand__content {\n position: absolute;\n height: 1px;\n width: 1px;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n }\n\n .", " svg {\n ", ";\n transform: rotate(0deg);\n }\n\n &:not(.", "):not(.danger) {\n background: transparent;\n border-color: transparent;\n\n &:hover {\n border-color: ", ";\n background: ", ";\n }\n }\n }\n"])),
|
|
53
|
+
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n .", " > div {\n display: flex;\n }\n\n .", " {\n ", "\n overflow: hidden;\n cursor: pointer;\n box-sizing: border-box;\n\n td > & {\n margin-top: 0;\n }\n\n .", " svg {\n ", ";\n transform: rotate(90deg);\n }\n\n &.", ":not(.danger) {\n ", "\n\n ::after {\n // Custom background color and borders (for dark theme).\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n }\n }\n\n &.danger {\n background: ", ";\n border: ", ";\n border-color: ", ";\n border-radius: ", ";\n }\n }\n\n .ProseMirror\n > .", ",\n .", "\n > .", " {\n margin-left: -", "px;\n margin-right: -", "px;\n }\n\n .", " {\n ", "\n cursor: text;\n padding-top: 0px;\n }\n\n .", " {\n ", "\n }\n\n .", " {\n ", ";\n align-items: center;\n overflow: visible;\n }\n\n .", " {\n background: ", ";\n border-color: ", ";\n\n .", " {\n padding-top: ", ";\n }\n }\n\n .", " {\n width: 100%;\n }\n\n /* stylelint-disable property-no-unknown, value-keyword-case */\n .", ":(.", ") {\n .expand-content-wrapper {\n height: auto;\n }\n }\n /* stylelint-enable property-no-unknown, value-keyword-case */\n\n .", ":not(.", ") {\n .ak-editor-expand__content {\n position: absolute;\n height: 1px;\n width: 1px;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n }\n\n .", " svg {\n ", ";\n transform: rotate(0deg);\n }\n\n &:not(.", "):not(.danger) {\n background: transparent;\n border-color: transparent;\n\n &:hover {\n border-color: ", ";\n background: ", ";\n }\n }\n }\n"])), _styles.expandClassNames.icon, _styles.expandClassNames.prefix, _ui.sharedExpandStyles.containerStyles({
|
|
51
54
|
expanded: false,
|
|
52
55
|
focused: false
|
|
53
|
-
})(props),
|
|
56
|
+
})(props), _styles.expandClassNames.iconContainer, EXPAND_ICON_COLOR(props), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket, _editorSharedStyles.SelectionStyle.Border]), ACTIVE_STATE_BACKGROUND_COLOR(props), ACTIVE_STATE_BORDER(props), ACTIVE_STATE_BORDER_RADIUS(props), DANGER_STATE_BACKGROUND_COLOR(props), DANGER_STATE_BORDER(props), DANGER_STATE_BORDER_COLOR(props), DANGER_STATE_BORDER_RADIUS(props), _styles.expandClassNames.type('expand'), _styles.BreakoutCssClassName.BREAKOUT_MARK_DOM, _styles.expandClassNames.type('expand'), _editorSharedStyles.akLayoutGutterOffset, _editorSharedStyles.akLayoutGutterOffset, _styles.expandClassNames.content, _ui.sharedExpandStyles.contentStyles({
|
|
54
57
|
expanded: false,
|
|
55
58
|
focused: false
|
|
56
|
-
})(props),
|
|
59
|
+
})(props), _styles.expandClassNames.titleInput, _ui.sharedExpandStyles.titleInputStyles(props), _styles.expandClassNames.titleContainer, _ui.sharedExpandStyles.titleContainerStyles(props), _styles.expandClassNames.expanded, EXPAND_SELECTED_BACKGROUND(props), (0, _components.themed)({
|
|
57
60
|
light: "var(--ds-border, ".concat(_colors.N40A, ")"),
|
|
58
61
|
dark: "var(--ds-border, ".concat(_colors.DN50, ")")
|
|
59
|
-
})(props),
|
|
62
|
+
})(props), _styles.expandClassNames.content, "var(--ds-space-100, 8px)", _styles.expandClassNames.inputContainer, _styles.expandClassNames.prefix, _styles.expandClassNames.expanded, _styles.expandClassNames.prefix, _styles.expandClassNames.expanded, _styles.expandClassNames.iconContainer, EXPAND_ICON_COLOR(props), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _components.themed)({
|
|
60
63
|
light: "var(--ds-border, ".concat(_colors.N50A, ")"),
|
|
61
64
|
dark: "var(--ds-border, ".concat(_colors.DN50, ")")
|
|
62
65
|
})(props), EXPAND_SELECTED_BACKGROUND(props));
|