@atlaskit/editor-common 100.1.2 → 100.2.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 +30 -0
- package/UNSAFE_do_not_use_editor_context/package.json +3 -1
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/analytics/package.json +3 -1
- package/annotation/package.json +3 -1
- package/browser/package.json +3 -1
- package/card/package.json +3 -1
- package/clipboard/package.json +3 -1
- package/code-block/package.json +3 -1
- package/collab/package.json +3 -1
- package/commands/package.json +3 -1
- package/constants/package.json +3 -1
- package/copy-button/package.json +3 -1
- package/core-utils/package.json +3 -1
- package/count-nodes/package.json +3 -1
- package/dist/cjs/analytics/types/enums.js +4 -0
- package/dist/cjs/analytics/types/selection-extension-events.js +5 -0
- package/dist/cjs/extensions/module-helpers.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/expand.js +4 -0
- package/dist/cjs/styles/shared/plugins.js +24 -0
- package/dist/cjs/type-ahead/messages.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +6 -3
- package/dist/cjs/ui/Shortcut/index.compiled.css +10 -0
- package/dist/cjs/ui/Shortcut/index.js +24 -0
- package/dist/cjs/ui/Toolbar/ButtonGroup.compiled.css +6 -0
- package/dist/cjs/ui/Toolbar/ButtonGroup.js +26 -0
- package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.compiled.css +3 -0
- package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.js +23 -0
- package/dist/cjs/ui/Toolbar/DropdownWrapper.compiled.css +7 -0
- package/dist/cjs/ui/Toolbar/DropdownWrapper.js +21 -0
- package/dist/cjs/ui/Toolbar/ExpandIcon.compiled.css +2 -0
- package/dist/cjs/ui/Toolbar/ExpandIcon.js +25 -0
- package/dist/cjs/ui/Toolbar/Separator.compiled.css +9 -0
- package/dist/cjs/ui/Toolbar/Separator.js +19 -0
- package/dist/cjs/ui/index.js +42 -0
- package/dist/es2019/analytics/types/enums.js +4 -0
- package/dist/es2019/analytics/types/selection-extension-events.js +1 -0
- package/dist/es2019/extensions/module-helpers.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/expand.js +4 -0
- package/dist/es2019/styles/shared/plugins.js +24 -0
- package/dist/es2019/type-ahead/messages.js +5 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +6 -3
- package/dist/es2019/ui/Shortcut/index.compiled.css +10 -0
- package/dist/es2019/ui/Shortcut/index.js +15 -0
- package/dist/es2019/ui/Toolbar/ButtonGroup.compiled.css +6 -0
- package/dist/es2019/ui/Toolbar/ButtonGroup.js +20 -0
- package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.compiled.css +3 -0
- package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.js +17 -0
- package/dist/es2019/ui/Toolbar/DropdownWrapper.compiled.css +7 -0
- package/dist/es2019/ui/Toolbar/DropdownWrapper.js +15 -0
- package/dist/es2019/ui/Toolbar/ExpandIcon.compiled.css +2 -0
- package/dist/es2019/ui/Toolbar/ExpandIcon.js +15 -0
- package/dist/es2019/ui/Toolbar/Separator.compiled.css +9 -0
- package/dist/es2019/ui/Toolbar/Separator.js +10 -0
- package/dist/es2019/ui/index.js +6 -0
- package/dist/esm/analytics/types/enums.js +4 -0
- package/dist/esm/analytics/types/selection-extension-events.js +1 -0
- package/dist/esm/extensions/module-helpers.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/expand.js +4 -0
- package/dist/esm/styles/shared/plugins.js +24 -0
- package/dist/esm/type-ahead/messages.js +5 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +6 -3
- package/dist/esm/ui/Shortcut/index.compiled.css +10 -0
- package/dist/esm/ui/Shortcut/index.js +17 -0
- package/dist/esm/ui/Toolbar/ButtonGroup.compiled.css +6 -0
- package/dist/esm/ui/Toolbar/ButtonGroup.js +19 -0
- package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.compiled.css +3 -0
- package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.js +16 -0
- package/dist/esm/ui/Toolbar/DropdownWrapper.compiled.css +7 -0
- package/dist/esm/ui/Toolbar/DropdownWrapper.js +14 -0
- package/dist/esm/ui/Toolbar/ExpandIcon.compiled.css +2 -0
- package/dist/esm/ui/Toolbar/ExpandIcon.js +15 -0
- package/dist/esm/ui/Toolbar/Separator.compiled.css +9 -0
- package/dist/esm/ui/Toolbar/Separator.js +10 -0
- package/dist/esm/ui/index.js +6 -0
- package/dist/types/analytics/types/ai-inline-suggestion-events.d.ts +1 -0
- package/dist/types/analytics/types/enums.d.ts +5 -1
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/selection-extension-events.d.ts +11 -0
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +1 -0
- package/dist/types/styles/shared/expand.d.ts +4 -0
- package/dist/types/styles/shared/plugins.d.ts +24 -0
- package/dist/types/type-ahead/messages.d.ts +5 -0
- package/dist/types/ui/Shortcut/index.d.ts +8 -0
- package/dist/types/ui/Toolbar/ButtonGroup.d.ts +8 -0
- package/dist/types/ui/Toolbar/DropdownTriggerWrapper.d.ts +8 -0
- package/dist/types/ui/Toolbar/DropdownWrapper.d.ts +8 -0
- package/dist/types/ui/Toolbar/ExpandIcon.d.ts +2 -0
- package/dist/types/ui/Toolbar/Separator.d.ts +2 -0
- package/dist/types/ui/index.d.ts +6 -0
- package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +5 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/selection-extension-events.d.ts +11 -0
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/expand.d.ts +4 -0
- package/dist/types-ts4.5/styles/shared/plugins.d.ts +24 -0
- package/dist/types-ts4.5/type-ahead/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/Shortcut/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/Toolbar/ButtonGroup.d.ts +8 -0
- package/dist/types-ts4.5/ui/Toolbar/DropdownTriggerWrapper.d.ts +8 -0
- package/dist/types-ts4.5/ui/Toolbar/DropdownWrapper.d.ts +8 -0
- package/dist/types-ts4.5/ui/Toolbar/ExpandIcon.d.ts +2 -0
- package/dist/types-ts4.5/ui/Toolbar/Separator.d.ts +2 -0
- package/dist/types-ts4.5/ui/index.d.ts +6 -0
- package/doc-utils/package.json +3 -1
- package/editor-analytics/package.json +3 -1
- package/element-browser/package.json +3 -1
- package/emoji/package.json +3 -1
- package/error-boundary/package.json +3 -1
- package/error-reporter/package.json +3 -1
- package/event-dispatcher/package.json +3 -1
- package/expand/package.json +3 -1
- package/extensibility/package.json +3 -1
- package/extensions/package.json +3 -1
- package/floating-toolbar/package.json +3 -1
- package/guideline/package.json +3 -1
- package/hooks/package.json +3 -1
- package/icons/package.json +3 -1
- package/indentation/package.json +3 -1
- package/insert/package.json +3 -1
- package/intl-error-boundary/package.json +3 -1
- package/is-performance-api-available/package.json +3 -1
- package/keymaps/package.json +3 -1
- package/lazy-node-view/package.json +3 -1
- package/legacy-rank-plugins/package.json +3 -1
- package/link/package.json +3 -1
- package/lists/package.json +3 -1
- package/mark/package.json +3 -1
- package/media/package.json +3 -1
- package/media-inline/package.json +3 -1
- package/media-single/package.json +3 -1
- package/median/package.json +3 -1
- package/mention/package.json +3 -1
- package/messages/package.json +3 -1
- package/monitoring/package.json +3 -1
- package/nesting/package.json +3 -1
- package/node-width/package.json +3 -1
- package/normalize-feature-flags/package.json +3 -1
- package/package.json +14 -9
- package/panel/package.json +3 -1
- package/paste/package.json +3 -1
- package/performance/measure-render/package.json +3 -1
- package/performance/measure-tti/package.json +3 -1
- package/performance/navigation/package.json +3 -1
- package/performance-measures/package.json +3 -1
- package/portal/package.json +3 -1
- package/preset/package.json +3 -1
- package/process-raw-value/package.json +3 -1
- package/prosemirror-dom-metadata/package.json +3 -1
- package/provider-factory/package.json +3 -1
- package/provider-helpers/package.json +3 -1
- package/quick-insert/package.json +3 -1
- package/react-node-view/package.json +3 -1
- package/resizer/package.json +3 -1
- package/safe-plugin/package.json +3 -1
- package/selection/package.json +3 -1
- package/selection-based-node-view/package.json +3 -1
- package/styles/package.json +3 -1
- package/table/package.json +3 -1
- package/transforms/package.json +3 -1
- package/type-ahead/package.json +3 -1
- package/types/package.json +3 -1
- package/ui/package.json +3 -1
- package/ui-color/package.json +3 -1
- package/ui-menu/package.json +3 -1
- package/ui-react/package.json +3 -1
- package/use-component-render-tracking/package.json +3 -1
- package/use-plugin-state-effect/package.json +3 -1
- package/use-shared-plugin-state-selector/package.json +3 -1
- package/utils/analytics/package.json +3 -1
- package/utils/package.json +3 -1
- package/validator/package.json +3 -1
- package/whitespace/package.json +3 -1
- package/with-plugin-state/package.json +3 -1
package/dist/cjs/ui/index.js
CHANGED
|
@@ -185,12 +185,48 @@ Object.defineProperty(exports, "ShadowObserver", {
|
|
|
185
185
|
return _shadowObserver.ShadowObserver;
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
|
+
Object.defineProperty(exports, "Shortcut", {
|
|
189
|
+
enumerable: true,
|
|
190
|
+
get: function get() {
|
|
191
|
+
return _Shortcut.Shortcut;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
188
194
|
Object.defineProperty(exports, "SmallerEditIcon", {
|
|
189
195
|
enumerable: true,
|
|
190
196
|
get: function get() {
|
|
191
197
|
return _SmallerEditIcon.SmallerEditIcon;
|
|
192
198
|
}
|
|
193
199
|
});
|
|
200
|
+
Object.defineProperty(exports, "ToolbarButtonGroup", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
get: function get() {
|
|
203
|
+
return _ButtonGroup.ToolbarButtonGroup;
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "ToolbarDropdownTriggerWrapper", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function get() {
|
|
209
|
+
return _DropdownTriggerWrapper.ToolbarDropdownTriggerWrapper;
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
Object.defineProperty(exports, "ToolbarDropdownWrapper", {
|
|
213
|
+
enumerable: true,
|
|
214
|
+
get: function get() {
|
|
215
|
+
return _DropdownWrapper.ToolbarDropdownWrapper;
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "ToolbarExpandIcon", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function get() {
|
|
221
|
+
return _ExpandIcon.ToolbarExpandIcon;
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
Object.defineProperty(exports, "ToolbarSeparator", {
|
|
225
|
+
enumerable: true,
|
|
226
|
+
get: function get() {
|
|
227
|
+
return _Separator2.ToolbarSeparator;
|
|
228
|
+
}
|
|
229
|
+
});
|
|
194
230
|
Object.defineProperty(exports, "UnsupportedBlock", {
|
|
195
231
|
enumerable: true,
|
|
196
232
|
get: function get() {
|
|
@@ -433,7 +469,13 @@ var _styled2 = require("./ResizerLegacy/styled");
|
|
|
433
469
|
var _styles = require("./PanelTextInput/styles");
|
|
434
470
|
var _PanelTextInput = _interopRequireDefault(require("./PanelTextInput"));
|
|
435
471
|
var _announcer = _interopRequireDefault(require("./Announcer/announcer"));
|
|
472
|
+
var _Shortcut = require("./Shortcut");
|
|
436
473
|
var _Toolbar = require("./Toolbar");
|
|
474
|
+
var _ButtonGroup = require("./Toolbar/ButtonGroup");
|
|
475
|
+
var _DropdownTriggerWrapper = require("./Toolbar/DropdownTriggerWrapper");
|
|
476
|
+
var _DropdownWrapper = require("./Toolbar/DropdownWrapper");
|
|
477
|
+
var _ExpandIcon = require("./Toolbar/ExpandIcon");
|
|
478
|
+
var _Separator2 = require("./Toolbar/Separator");
|
|
437
479
|
var _DropList = _interopRequireDefault(require("./DropList"));
|
|
438
480
|
var _MultiBodiedExtension = require("./MultiBodiedExtension");
|
|
439
481
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -284,6 +284,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
284
284
|
ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
|
|
285
285
|
ACTION_SUBJECT["DECORATION"] = "decoration";
|
|
286
286
|
ACTION_SUBJECT["EDITOR_PLUGIN_AI"] = "editorPluginAI";
|
|
287
|
+
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
287
288
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
288
289
|
return ACTION_SUBJECT;
|
|
289
290
|
}({});
|
|
@@ -436,6 +437,9 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
436
437
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
437
438
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
438
439
|
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
440
|
+
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN"] = "editorPluginSelectionExtensionDropdown";
|
|
441
|
+
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM"] = "editorPluginSelectionExtensionItem";
|
|
442
|
+
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
|
|
439
443
|
return ACTION_SUBJECT_ID;
|
|
440
444
|
}({});
|
|
441
445
|
export let FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -174,6 +174,11 @@ function shouldAddExtensionItemForNode(item, node) {
|
|
|
174
174
|
if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
|
|
175
175
|
return false;
|
|
176
176
|
}
|
|
177
|
+
|
|
178
|
+
// in cases where we need custom exclusion depending on the node
|
|
179
|
+
if (item.context.shouldExclude) {
|
|
180
|
+
return item.context.shouldExclude(node);
|
|
181
|
+
}
|
|
177
182
|
const {
|
|
178
183
|
extensionType,
|
|
179
184
|
extensionKey
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "100.1
|
|
4
|
+
const packageVersion = "100.2.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -5,6 +5,10 @@ export const expandIconWrapperStyle = css({
|
|
|
5
5
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
* @deprecated use `import { ToolbarExpandIcon } from '@atlaskit/editor-common/ui';` instead
|
|
11
|
+
*/
|
|
8
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
13
|
export const expandIconContainerStyle = css({
|
|
10
14
|
display: 'flex',
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
|
|
6
|
+
*/
|
|
3
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, -- Ignored via go/DSP-18766
|
|
4
8
|
export const buttonGroupStyleBeforeVisualRefresh = css({
|
|
5
9
|
display: 'inline-flex',
|
|
@@ -17,6 +21,10 @@ export const buttonGroupStyleBeforeVisualRefresh = css({
|
|
|
17
21
|
}
|
|
18
22
|
});
|
|
19
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @private
|
|
26
|
+
* @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
|
|
27
|
+
*/
|
|
20
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
21
29
|
export const buttonGroupStyle = css({
|
|
22
30
|
display: 'inline-flex',
|
|
@@ -39,6 +47,10 @@ export const buttonGroupStyle = css({
|
|
|
39
47
|
}
|
|
40
48
|
});
|
|
41
49
|
|
|
50
|
+
/**
|
|
51
|
+
* @private
|
|
52
|
+
* @deprecated use `import { ToolbarSeparator } from '@atlaskit/editor-common/ui';` instead
|
|
53
|
+
*/
|
|
42
54
|
// If you make change here, change in above file as well.
|
|
43
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
56
|
export const separatorStyles = css({
|
|
@@ -50,6 +62,10 @@ export const separatorStyles = css({
|
|
|
50
62
|
userSelect: 'none'
|
|
51
63
|
});
|
|
52
64
|
|
|
65
|
+
/**
|
|
66
|
+
* @private
|
|
67
|
+
* @deprecated use `import { ToolbarDropdownWrapper } from '@atlaskit/editor-common/ui';` instead
|
|
68
|
+
*/
|
|
53
69
|
// If you make change here, change in above file as well.
|
|
54
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
71
|
export const wrapperStyle = css({
|
|
@@ -74,6 +90,10 @@ export const wrapperStyle = css({
|
|
|
74
90
|
}
|
|
75
91
|
});
|
|
76
92
|
|
|
93
|
+
/**
|
|
94
|
+
* @private
|
|
95
|
+
* @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
|
|
96
|
+
*/
|
|
77
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
78
98
|
export const triggerWrapperStyles = css({
|
|
79
99
|
display: 'flex',
|
|
@@ -86,6 +106,10 @@ export const triggerWrapperStyles = css({
|
|
|
86
106
|
}
|
|
87
107
|
});
|
|
88
108
|
|
|
109
|
+
/**
|
|
110
|
+
* @private
|
|
111
|
+
* @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
|
|
112
|
+
*/
|
|
89
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
90
114
|
export const triggerWrapperStylesWithPadding = css({
|
|
91
115
|
display: 'flex',
|
|
@@ -15,6 +15,11 @@ export const typeAheadListMessages = defineMessages({
|
|
|
15
15
|
defaultMessage: 'Begin typing to search or filter shortcut options',
|
|
16
16
|
description: 'assisitve text for typeahed input field'
|
|
17
17
|
},
|
|
18
|
+
quickInsertInputPlaceholderLabel: {
|
|
19
|
+
id: 'fabric.editor.typeAhead.quickInsertInputPlaceholderLabel',
|
|
20
|
+
defaultMessage: 'Search',
|
|
21
|
+
description: 'placeholder for typeahed input field'
|
|
22
|
+
},
|
|
18
23
|
emojiPopupLabel: {
|
|
19
24
|
id: 'fabric.editor.typeahead.emojiPopupLabel',
|
|
20
25
|
defaultMessage: 'Emoji shortcuts',
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "100.1
|
|
16
|
+
const packageVersion = "100.2.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
6
|
import { Pulse } from '../Pulse/Pulse';
|
|
6
7
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
@@ -67,10 +68,12 @@ export default (({
|
|
|
67
68
|
}, /*#__PURE__*/React.createElement(Pulse, {
|
|
68
69
|
pulse: pulse || (spotlightConfig === null || spotlightConfig === void 0 ? void 0 : spotlightConfig.pulse)
|
|
69
70
|
}, /*#__PURE__*/React.createElement(Button
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
|
|
71
72
|
, {
|
|
72
73
|
className: className,
|
|
73
|
-
ref: buttonElement => setSpotlightReferenceElement(buttonElement)
|
|
74
|
+
ref: buttonElement => setSpotlightReferenceElement(buttonElement)
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
76
|
+
,
|
|
74
77
|
theme: (adgTheme, themeProps) => {
|
|
75
78
|
const {
|
|
76
79
|
buttonStyles,
|
|
@@ -95,7 +98,7 @@ export default (({
|
|
|
95
98
|
role: isRadioButton ? 'radio' : undefined,
|
|
96
99
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
97
100
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
98
|
-
spacing: 'compact',
|
|
101
|
+
spacing: editorExperiment('platform_editor_controls', 'variant1') ? 'default' : 'compact',
|
|
99
102
|
href: href,
|
|
100
103
|
target: target,
|
|
101
104
|
appearance: appearance,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko1sit{border-radius:var(--ds-border-radius,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
|
+
._1wpzesu3{align-self:flex-end}
|
|
4
|
+
._1wyb1qpa{font-size:.729375rem}
|
|
5
|
+
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
6
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
7
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
8
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
9
|
+
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
10
|
+
@media (max-width:0px){._1ggkglyw{display:none}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
const shortcutStyle = null;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
8
|
+
const shortcutStyleUnbounded = null;
|
|
9
|
+
export function Shortcut({
|
|
10
|
+
children
|
|
11
|
+
}) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: ax(["_2rko1sit _1wpzesu3 _ca0q1b66 _n3td1b66 _19bv1b66 _u5f31b66 _syaz1gjq _bfhkm7j4 _1ggkglyw", "_1wyb1qpa"])
|
|
14
|
+
}, children);
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
._1p8dglyw button:not(#local-media-upload-button):not([disabled]):after{border:none}
|
|
3
|
+
._89rs1b66 div[role=group]{gap:var(--ds-space-050,4px)}
|
|
4
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}._11ko1txw>div{display:flex}
|
|
5
|
+
._1e0c116y{display:inline-flex}
|
|
6
|
+
._4cvr1h6o{align-items:center}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* ButtonGroup.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./ButtonGroup.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
const buttonGroupStyle = null;
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
9
|
+
const buttonGroupStyleUnbounded = null;
|
|
10
|
+
const buttonGroupStyleBeforeVisualRefresh = null;
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
13
|
+
const buttonGroupStyleBeforeVisualRefreshUnbounded = null;
|
|
14
|
+
export function ToolbarButtonGroup({
|
|
15
|
+
children
|
|
16
|
+
}) {
|
|
17
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
18
|
+
className: ax([fg('platform-visual-refresh-icons') ? "_zulp1b66 _1e0c116y _4cvr1h6o" : "_1e0c116y _4cvr1h6o", fg('platform-visual-refresh-icons') ? "_11ko1txw _1p8dglyw _89rs1b66" : "_11ko1txw _1p8dglyw"])
|
|
19
|
+
}, children);
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./DropdownTriggerWrapper.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
const triggerWrapperStylesWithPadding = null;
|
|
7
|
+
const triggerWrapperStyles = null;
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
10
|
+
const triggerWrapperStylesUnbounded = null;
|
|
11
|
+
export function ToolbarDropdownTriggerWrapper({
|
|
12
|
+
children
|
|
13
|
+
}) {
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: ax([fg('platform-visual-refresh-icons') ? "_1e0c1txw _u5f3v77o" : "_1e0c1txw", "_1fvdglyw"])
|
|
16
|
+
}, children);
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./DropdownWrapper.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
const wrapperStyle = null;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
8
|
+
const wrapperStylesUnbounded = null;
|
|
9
|
+
export function ToolbarDropdownWrapper({
|
|
10
|
+
children
|
|
11
|
+
}) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13
|
+
className: ax(["_1e0c1txw _4cvr1h6o _18u0idpf _1ul91wug", "_p7r11txw _1xdi1txw _1ylx1txw _1fvdglyw"])
|
|
14
|
+
}, children);
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* ExpandIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./ExpandIcon.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
6
|
+
const expandIconContainerStyle = null;
|
|
7
|
+
export function ToolbarExpandIcon() {
|
|
8
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
9
|
+
className: ax(["_1e0c1txw _4cvr1h6o"])
|
|
10
|
+
}, /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
11
|
+
label: "",
|
|
12
|
+
color: "currentColor",
|
|
13
|
+
LEGACY_margin: "0 0 0 -8px"
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
2
|
+
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
3
|
+
._1bsbt94y{width:1px}
|
|
4
|
+
._1e0c1o8l{display:inline-block}
|
|
5
|
+
._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
|
|
6
|
+
._4t3i1tcg{height:24px}
|
|
7
|
+
._bfhk15ej{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
8
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
9
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Separator.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./Separator.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const separatorStyles = null;
|
|
6
|
+
export function ToolbarSeparator() {
|
|
7
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
8
|
+
className: ax(["_1e0c1o8l _1bsbt94y _4t3i1tcg _19pkze3t _otyrze3t _18u0u2gc _2hwxu2gc _uiztglyw _bfhk15ej"])
|
|
9
|
+
});
|
|
10
|
+
}
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -33,6 +33,12 @@ export { wrapperStyle } from './ResizerLegacy/styled';
|
|
|
33
33
|
export { panelTextInput } from './PanelTextInput/styles';
|
|
34
34
|
export { default as PanelTextInput } from './PanelTextInput';
|
|
35
35
|
export { default as Announcer } from './Announcer/announcer';
|
|
36
|
+
export { Shortcut } from './Shortcut';
|
|
36
37
|
export { EDIT_AREA_ID } from './Toolbar';
|
|
38
|
+
export { ToolbarButtonGroup } from './Toolbar/ButtonGroup';
|
|
39
|
+
export { ToolbarDropdownTriggerWrapper } from './Toolbar/DropdownTriggerWrapper';
|
|
40
|
+
export { ToolbarDropdownWrapper } from './Toolbar/DropdownWrapper';
|
|
41
|
+
export { ToolbarExpandIcon } from './Toolbar/ExpandIcon';
|
|
42
|
+
export { ToolbarSeparator } from './Toolbar/Separator';
|
|
37
43
|
export { default as DropList } from './DropList';
|
|
38
44
|
export { sharedMultiBodiedExtensionStyles } from './MultiBodiedExtension';
|
|
@@ -284,6 +284,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
284
284
|
ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
|
|
285
285
|
ACTION_SUBJECT["DECORATION"] = "decoration";
|
|
286
286
|
ACTION_SUBJECT["EDITOR_PLUGIN_AI"] = "editorPluginAI";
|
|
287
|
+
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
287
288
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
288
289
|
return ACTION_SUBJECT;
|
|
289
290
|
}({});
|
|
@@ -436,6 +437,9 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
436
437
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
437
438
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
438
439
|
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
440
|
+
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN"] = "editorPluginSelectionExtensionDropdown";
|
|
441
|
+
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM"] = "editorPluginSelectionExtensionItem";
|
|
442
|
+
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
|
|
439
443
|
return ACTION_SUBJECT_ID;
|
|
440
444
|
}({});
|
|
441
445
|
export var FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -267,6 +267,11 @@ function shouldAddExtensionItemForNode(item, node) {
|
|
|
267
267
|
if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
|
|
268
268
|
return false;
|
|
269
269
|
}
|
|
270
|
+
|
|
271
|
+
// in cases where we need custom exclusion depending on the node
|
|
272
|
+
if (item.context.shouldExclude) {
|
|
273
|
+
return item.context.shouldExclude(node);
|
|
274
|
+
}
|
|
270
275
|
var _item$context = item.context,
|
|
271
276
|
extensionType = _item$context.extensionType,
|
|
272
277
|
extensionKey = _item$context.extensionKey;
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "100.1
|
|
10
|
+
var packageVersion = "100.2.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -5,6 +5,10 @@ export var expandIconWrapperStyle = css({
|
|
|
5
5
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
* @deprecated use `import { ToolbarExpandIcon } from '@atlaskit/editor-common/ui';` instead
|
|
11
|
+
*/
|
|
8
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
13
|
export var expandIconContainerStyle = css({
|
|
10
14
|
display: 'flex',
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
|
|
6
|
+
*/
|
|
3
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, -- Ignored via go/DSP-18766
|
|
4
8
|
export var buttonGroupStyleBeforeVisualRefresh = css({
|
|
5
9
|
display: 'inline-flex',
|
|
@@ -17,6 +21,10 @@ export var buttonGroupStyleBeforeVisualRefresh = css({
|
|
|
17
21
|
}
|
|
18
22
|
});
|
|
19
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @private
|
|
26
|
+
* @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
|
|
27
|
+
*/
|
|
20
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
21
29
|
export var buttonGroupStyle = css({
|
|
22
30
|
display: 'inline-flex',
|
|
@@ -39,6 +47,10 @@ export var buttonGroupStyle = css({
|
|
|
39
47
|
}
|
|
40
48
|
});
|
|
41
49
|
|
|
50
|
+
/**
|
|
51
|
+
* @private
|
|
52
|
+
* @deprecated use `import { ToolbarSeparator } from '@atlaskit/editor-common/ui';` instead
|
|
53
|
+
*/
|
|
42
54
|
// If you make change here, change in above file as well.
|
|
43
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
56
|
export var separatorStyles = css({
|
|
@@ -50,6 +62,10 @@ export var separatorStyles = css({
|
|
|
50
62
|
userSelect: 'none'
|
|
51
63
|
});
|
|
52
64
|
|
|
65
|
+
/**
|
|
66
|
+
* @private
|
|
67
|
+
* @deprecated use `import { ToolbarDropdownWrapper } from '@atlaskit/editor-common/ui';` instead
|
|
68
|
+
*/
|
|
53
69
|
// If you make change here, change in above file as well.
|
|
54
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
71
|
export var wrapperStyle = css({
|
|
@@ -74,6 +90,10 @@ export var wrapperStyle = css({
|
|
|
74
90
|
}
|
|
75
91
|
});
|
|
76
92
|
|
|
93
|
+
/**
|
|
94
|
+
* @private
|
|
95
|
+
* @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
|
|
96
|
+
*/
|
|
77
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
78
98
|
export var triggerWrapperStyles = css({
|
|
79
99
|
display: 'flex',
|
|
@@ -86,6 +106,10 @@ export var triggerWrapperStyles = css({
|
|
|
86
106
|
}
|
|
87
107
|
});
|
|
88
108
|
|
|
109
|
+
/**
|
|
110
|
+
* @private
|
|
111
|
+
* @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
|
|
112
|
+
*/
|
|
89
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
90
114
|
export var triggerWrapperStylesWithPadding = css({
|
|
91
115
|
display: 'flex',
|
|
@@ -15,6 +15,11 @@ export var typeAheadListMessages = defineMessages({
|
|
|
15
15
|
defaultMessage: 'Begin typing to search or filter shortcut options',
|
|
16
16
|
description: 'assisitve text for typeahed input field'
|
|
17
17
|
},
|
|
18
|
+
quickInsertInputPlaceholderLabel: {
|
|
19
|
+
id: 'fabric.editor.typeAhead.quickInsertInputPlaceholderLabel',
|
|
20
|
+
defaultMessage: 'Search',
|
|
21
|
+
description: 'placeholder for typeahed input field'
|
|
22
|
+
},
|
|
18
23
|
emojiPopupLabel: {
|
|
19
24
|
id: 'fabric.editor.typeahead.emojiPopupLabel',
|
|
20
25
|
defaultMessage: 'Emoji shortcuts',
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "100.1
|
|
23
|
+
var packageVersion = "100.2.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -7,6 +7,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
7
7
|
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) { _defineProperty(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; }
|
|
8
8
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
12
|
import { Pulse } from '../Pulse/Pulse';
|
|
12
13
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
@@ -79,12 +80,14 @@ export default (function (_ref) {
|
|
|
79
80
|
}, /*#__PURE__*/React.createElement(Pulse, {
|
|
80
81
|
pulse: pulse || (spotlightConfig === null || spotlightConfig === void 0 ? void 0 : spotlightConfig.pulse)
|
|
81
82
|
}, /*#__PURE__*/React.createElement(Button
|
|
82
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
|
|
83
84
|
, {
|
|
84
85
|
className: className,
|
|
85
86
|
ref: function ref(buttonElement) {
|
|
86
87
|
return setSpotlightReferenceElement(buttonElement);
|
|
87
|
-
}
|
|
88
|
+
}
|
|
89
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
90
|
+
,
|
|
88
91
|
theme: function theme(adgTheme, themeProps) {
|
|
89
92
|
var _adgTheme = adgTheme(themeProps),
|
|
90
93
|
buttonStyles = _adgTheme.buttonStyles,
|
|
@@ -103,7 +106,7 @@ export default (function (_ref) {
|
|
|
103
106
|
role: isRadioButton ? 'radio' : undefined,
|
|
104
107
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
105
108
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
106
|
-
spacing: 'compact',
|
|
109
|
+
spacing: editorExperiment('platform_editor_controls', 'variant1') ? 'default' : 'compact',
|
|
107
110
|
href: href,
|
|
108
111
|
target: target,
|
|
109
112
|
appearance: appearance,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko1sit{border-radius:var(--ds-border-radius,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
|
+
._1wpzesu3{align-self:flex-end}
|
|
4
|
+
._1wybyofp{font-size:var(--_1l2t8t0)}
|
|
5
|
+
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
6
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
7
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
8
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
9
|
+
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
10
|
+
@media (max-width:0px){._1ggkglyw{display:none}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
var shortcutStyle = null;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
8
|
+
var shortcutStyleUnbounded = null;
|
|
9
|
+
export function Shortcut(_ref) {
|
|
10
|
+
var children = _ref.children;
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: ax(["_2rko1sit _1wpzesu3 _ca0q1b66 _n3td1b66 _19bv1b66 _u5f31b66 _syaz1gjq _bfhkm7j4 _1ggkglyw", "_1wybyofp"]),
|
|
13
|
+
style: {
|
|
14
|
+
"--_1l2t8t0": ix("".concat(11.67 / 16, "rem"))
|
|
15
|
+
}
|
|
16
|
+
}, children);
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
._1p8dglyw button:not(#local-media-upload-button):not([disabled]):after{border:none}
|
|
3
|
+
._89rs1b66 div[role=group]{gap:var(--ds-space-050,4px)}
|
|
4
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}._11ko1txw>div{display:flex}
|
|
5
|
+
._1e0c116y{display:inline-flex}
|
|
6
|
+
._4cvr1h6o{align-items:center}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* ButtonGroup.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./ButtonGroup.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
var buttonGroupStyle = null;
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
9
|
+
var buttonGroupStyleUnbounded = null;
|
|
10
|
+
var buttonGroupStyleBeforeVisualRefresh = null;
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
|
|
13
|
+
var buttonGroupStyleBeforeVisualRefreshUnbounded = null;
|
|
14
|
+
export function ToolbarButtonGroup(_ref) {
|
|
15
|
+
var children = _ref.children;
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
17
|
+
className: ax([fg('platform-visual-refresh-icons') ? "_zulp1b66 _1e0c116y _4cvr1h6o" : "_1e0c116y _4cvr1h6o", fg('platform-visual-refresh-icons') ? "_11ko1txw _1p8dglyw _89rs1b66" : "_11ko1txw _1p8dglyw"])
|
|
18
|
+
}, children);
|
|
19
|
+
}
|