@atlaskit/editor-common 94.3.1 → 94.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/cjs/analytics/types/enums.js +3 -0
- package/dist/cjs/analytics/types/node-events.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/media/messages/caption.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/index.js +6 -0
- package/dist/cjs/styles/shared/embedCard.js +45 -18
- package/dist/cjs/styles/shared/headings.js +2 -2
- package/dist/cjs/styles/shared/media-single.js +49 -2
- package/dist/cjs/styles/shared/paragraph.js +2 -2
- package/dist/cjs/ui/DropList/index.js +15 -10
- package/dist/cjs/ui/Emoji/index.js +17 -9
- package/dist/cjs/ui-menu/Dropdown/index.js +13 -7
- package/dist/cjs/ui-menu/DropdownMenu/index.js +11 -3
- package/dist/cjs/ui-react/index.js +10 -1
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +24 -13
- package/dist/es2019/analytics/types/enums.js +3 -0
- package/dist/es2019/analytics/types/node-events.js +2 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/es2019/media/messages/caption.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/embedCard.js +26 -1
- package/dist/es2019/styles/shared/headings.js +2 -2
- package/dist/es2019/styles/shared/media-single.js +68 -1
- package/dist/es2019/styles/shared/paragraph.js +2 -2
- package/dist/es2019/ui/DropList/index.js +7 -2
- package/dist/es2019/ui/Emoji/index.js +10 -8
- package/dist/es2019/ui-menu/Dropdown/index.js +6 -5
- package/dist/es2019/ui-menu/DropdownMenu/index.js +12 -4
- package/dist/es2019/ui-react/index.js +1 -1
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +23 -14
- package/dist/esm/analytics/types/enums.js +3 -0
- package/dist/esm/analytics/types/node-events.js +2 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/esm/media/messages/caption.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/embedCard.js +45 -18
- package/dist/esm/styles/shared/headings.js +2 -2
- package/dist/esm/styles/shared/media-single.js +49 -2
- package/dist/esm/styles/shared/paragraph.js +2 -2
- package/dist/esm/ui/DropList/index.js +15 -10
- package/dist/esm/ui/Emoji/index.js +14 -8
- package/dist/esm/ui-menu/Dropdown/index.js +14 -8
- package/dist/esm/ui-menu/DropdownMenu/index.js +12 -4
- package/dist/esm/ui-react/index.js +1 -1
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +23 -14
- package/dist/types/analytics/types/enums.d.ts +5 -2
- package/dist/types/analytics/types/index.d.ts +1 -1
- package/dist/types/analytics/types/media-events.d.ts +6 -2
- package/dist/types/analytics/types/node-events.d.ts +6 -4
- package/dist/types/media/messages/caption.d.ts +5 -0
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/embedCard.d.ts +1 -1
- package/dist/types/styles/shared/media-single.d.ts +2 -1
- package/dist/types/ui/DropList/index.d.ts +6 -2
- package/dist/types/ui/Emoji/index.d.ts +3 -3
- package/dist/types/ui/index.d.ts +1 -1
- package/dist/types/ui-react/index.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +5 -2
- package/dist/types-ts4.5/analytics/types/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +6 -2
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +6 -4
- package/dist/types-ts4.5/media/messages/caption.d.ts +5 -0
- package/dist/types-ts4.5/styles/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/embedCard.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/media-single.d.ts +2 -1
- package/dist/types-ts4.5/ui/DropList/index.d.ts +6 -2
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -0
- package/package.json +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 94.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#156303](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156303)
|
|
8
|
+
[`dd9e4eaa8e65b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dd9e4eaa8e65b) -
|
|
9
|
+
[ux] ED-25493 Support caption onboarding, comment notification visual refresh and live view double
|
|
10
|
+
click support
|
|
11
|
+
- [#155668](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155668)
|
|
12
|
+
[`f948f63ced742`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f948f63ced742) -
|
|
13
|
+
We are testing replacing findDOMNode with an explicit ref behind a feature flag. If this fix is
|
|
14
|
+
successful it will be available in a later release.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#156904](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156904)
|
|
19
|
+
[`be03c594d7304`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be03c594d7304) -
|
|
20
|
+
add missing margin top back to h5
|
|
21
|
+
- [#157011](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157011)
|
|
22
|
+
[`4ff0cc01def2d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4ff0cc01def2d) -
|
|
23
|
+
ED-25301: prevent excessive emoji re-renders
|
|
24
|
+
- [#157011](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157011)
|
|
25
|
+
[`dcdfd1e83ce5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dcdfd1e83ce5a) -
|
|
26
|
+
change ugc typography experiment to a gate
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 94.4.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- [#156360](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156360)
|
|
34
|
+
[`482dbb03dbf68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/482dbb03dbf68) -
|
|
35
|
+
[ux] Update mediaSingle and embedCard to set wrap layout z-index under FG
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- [#156974](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156974)
|
|
40
|
+
[`e23605a60e753`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e23605a60e753) -
|
|
41
|
+
Add four and five column support for layout sections
|
|
42
|
+
- Updated dependencies
|
|
43
|
+
|
|
3
44
|
## 94.3.1
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
|
@@ -41,6 +41,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
41
41
|
ACTION["DISMISSED"] = "dismissed";
|
|
42
42
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
43
43
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
44
|
+
ACTION["DOUBLE_CLICKED"] = "doubleClicked";
|
|
44
45
|
ACTION["DRAGGED"] = "dragged";
|
|
45
46
|
ACTION["EDITED"] = "edited";
|
|
46
47
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
@@ -186,6 +187,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
186
187
|
INPUT_METHOD["TABLE_CONTEXT_MENU"] = "tableContextMenu";
|
|
187
188
|
INPUT_METHOD["MOUSE"] = "mouse";
|
|
188
189
|
INPUT_METHOD["BROWSER"] = "browser";
|
|
190
|
+
INPUT_METHOD["DOUBLE_CLICK"] = "doubleClick";
|
|
189
191
|
return INPUT_METHOD;
|
|
190
192
|
}({});
|
|
191
193
|
var INSERT_MEDIA_VIA = exports.INSERT_MEDIA_VIA = /*#__PURE__*/function (INSERT_MEDIA_VIA) {
|
|
@@ -263,6 +265,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
263
265
|
ACTION_SUBJECT["CONTEXT_MENU"] = "contextMenu";
|
|
264
266
|
ACTION_SUBJECT["INLINE_DIALOG"] = "inlineDialog";
|
|
265
267
|
ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
|
|
268
|
+
ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
|
|
266
269
|
return ACTION_SUBJECT;
|
|
267
270
|
}({});
|
|
268
271
|
var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -11,6 +11,8 @@ var LAYOUT_TYPE = exports.LAYOUT_TYPE = /*#__PURE__*/function (LAYOUT_TYPE) {
|
|
|
11
11
|
LAYOUT_TYPE["LEFT_SIDEBAR"] = "twoColumnsLeftSidebar";
|
|
12
12
|
LAYOUT_TYPE["RIGHT_SIDEBAR"] = "twoColumnsRightSidebar";
|
|
13
13
|
LAYOUT_TYPE["THREE_WITH_SIDEBARS"] = "threeColumnsWithSidebars ";
|
|
14
|
+
LAYOUT_TYPE["FOUR_COLS_EQUAL"] = "fourColumnsEqual";
|
|
15
|
+
LAYOUT_TYPE["FIVE_COLS_EQUAL"] = "fiveColumnsEqual";
|
|
14
16
|
return LAYOUT_TYPE;
|
|
15
17
|
}({});
|
|
16
18
|
var SMART_LINK_TYPE = exports.SMART_LINK_TYPE = /*#__PURE__*/function (SMART_LINK_TYPE) {
|
|
@@ -19,8 +19,8 @@ var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-
|
|
|
19
19
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
20
20
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
21
21
|
var _menu = require("@atlaskit/menu");
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _primitives = require("@atlaskit/primitives");
|
|
23
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
24
24
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
25
25
|
var _analytics = require("../../../analytics");
|
|
26
26
|
var _quickInsert = require("../../../quick-insert");
|
|
@@ -301,7 +301,7 @@ var ItemContent = /*#__PURE__*/(0, _react.memo)(function (_ref7) {
|
|
|
301
301
|
var title = _ref7.title,
|
|
302
302
|
description = _ref7.description,
|
|
303
303
|
keyshortcut = _ref7.keyshortcut;
|
|
304
|
-
if ((0,
|
|
304
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc')) {
|
|
305
305
|
return (
|
|
306
306
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
307
307
|
(0, _react2.jsx)("div", {
|
|
@@ -10,5 +10,10 @@ var captionMessages = exports.captionMessages = (0, _reactIntlNext.defineMessage
|
|
|
10
10
|
id: 'fabric.editor.captionPlaceholder',
|
|
11
11
|
defaultMessage: 'Add a caption',
|
|
12
12
|
description: 'Placeholder description for an empty (new) caption in the editor'
|
|
13
|
+
},
|
|
14
|
+
placeholderWithDoubleClickPrompt: {
|
|
15
|
+
id: 'fabric.editor.captionPlaceholderWithDoubleClickPrompt',
|
|
16
|
+
defaultMessage: 'Add a caption - double-click to preview',
|
|
17
|
+
description: 'Placeholder description to prompt users to add a caption and double click media to preview'
|
|
13
18
|
}
|
|
14
19
|
});
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "94.
|
|
20
|
+
var packageVersion = "94.5.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -273,6 +273,12 @@ Object.defineProperty(exports, "mediaSingleSharedStyle", {
|
|
|
273
273
|
return _mediaSingle.mediaSingleSharedStyle;
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
+
Object.defineProperty(exports, "mediaSingleSharedStyleNew", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _mediaSingle.mediaSingleSharedStyleNew;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
276
282
|
Object.defineProperty(exports, "paragraphSharedStyles", {
|
|
277
283
|
enumerable: true,
|
|
278
284
|
get: function get() {
|
|
@@ -5,30 +5,57 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.embedSpacingStyles = exports.embedCardStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
9
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
|
|
10
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
-
var embedCardStyles = exports.embedCardStyles = (
|
|
12
|
-
|
|
13
|
-
'.ProseMirror': {
|
|
13
|
+
var embedCardStyles = exports.embedCardStyles = function embedCardStyles() {
|
|
14
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_element_dnd_nested_fix_patch_3') ? (0, _react.css)({
|
|
14
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
'.ProseMirror': {
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
19
|
+
maxWidth: '100%',
|
|
20
|
+
position: 'relative',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
22
|
+
zIndex: _editorSharedStyles.akEditorWrappedNodeZIndex
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
26
|
+
float: 'left'
|
|
27
|
+
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
30
|
+
float: 'right'
|
|
31
|
+
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
34
|
+
clear: 'both'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}) : (0, _react.css)({
|
|
26
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
'.ProseMirror': {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
|
+
".embedCardView-content-wrap[layout^='wrap-']": {
|
|
42
|
+
maxWidth: '100%'
|
|
43
|
+
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
45
|
+
".embedCardView-content-wrap[layout='wrap-left']": {
|
|
46
|
+
float: 'left'
|
|
47
|
+
},
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
|
+
".embedCardView-content-wrap[layout='wrap-right']": {
|
|
50
|
+
float: 'right'
|
|
51
|
+
},
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
|
+
".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
|
|
54
|
+
clear: 'both'
|
|
55
|
+
}
|
|
29
56
|
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
57
|
+
});
|
|
58
|
+
};
|
|
32
59
|
|
|
33
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
61
|
var embedSpacingStyles = exports.embedSpacingStyles = (0, _react.css)({
|
|
@@ -8,7 +8,6 @@ exports.headingsSharedStyles = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
11
|
var _getEditorUgcToken = _interopRequireDefault(require("../../ugc-tokens/get-editor-ugc-token"));
|
|
13
12
|
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; }
|
|
14
13
|
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; } /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */ /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-values */ /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */ /* eslint-disable @atlaskit/design-system/use-tokens-space */ /* eslint-disable @atlaskit/design-system/use-tokens-typography */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -49,7 +48,7 @@ var headingWithAlignmentStyles = function headingWithAlignmentStyles() {
|
|
|
49
48
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
50
49
|
// text sizing prototype: http://proto/fabricrender/
|
|
51
50
|
var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles(typographyTheme) {
|
|
52
|
-
var isADSTokenMigrationEnabled = (0,
|
|
51
|
+
var isADSTokenMigrationEnabled = (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc');
|
|
53
52
|
if (isADSTokenMigrationEnabled) {
|
|
54
53
|
return (0, _react.css)(_objectSpread({
|
|
55
54
|
'& h1': {
|
|
@@ -73,6 +72,7 @@ var headingsSharedStyles = exports.headingsSharedStyles = function headingsShare
|
|
|
73
72
|
},
|
|
74
73
|
'& h5': {
|
|
75
74
|
font: (0, _getEditorUgcToken.default)('editor.font.heading.h5', typographyTheme),
|
|
75
|
+
marginTop: '1.667em',
|
|
76
76
|
textTransform: 'none'
|
|
77
77
|
},
|
|
78
78
|
'& h6': {
|
|
@@ -4,10 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.richMediaClassName = exports.mediaSingleSharedStyle = void 0;
|
|
7
|
+
exports.richMediaClassName = exports.mediaSingleSharedStyleNew = exports.mediaSingleSharedStyle = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var
|
|
10
|
+
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
+
var _css, _css2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
var richMediaClassName = exports.richMediaClassName = 'rich-media-item';
|
|
12
13
|
var wrappedMediaBreakoutPoint = 410;
|
|
13
14
|
var mediaSingleSharedStyle = exports.mediaSingleSharedStyle = (0, _react.css)((_css = {}, (0, _defineProperty2.default)(_css, "li .".concat(richMediaClassName), {
|
|
@@ -52,5 +53,51 @@ var mediaSingleSharedStyle = exports.mediaSingleSharedStyle = (0, _react.css)((_
|
|
|
52
53
|
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
53
54
|
}
|
|
54
55
|
}), _css));
|
|
56
|
+
var mediaSingleSharedStyleNew = exports.mediaSingleSharedStyleNew = (0, _react.css)((_css2 = {}, (0, _defineProperty2.default)(_css2, "li .".concat(richMediaClassName), {
|
|
57
|
+
margin: 0
|
|
58
|
+
}), (0, _defineProperty2.default)(_css2, '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
|
|
59
|
+
content: "''",
|
|
60
|
+
display: 'block',
|
|
61
|
+
height: 0
|
|
62
|
+
}), (0, _defineProperty2.default)(_css2, '&.ua-firefox', {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
64
|
+
'.mediaSingleView-content-wrap': {
|
|
65
|
+
userSelect: 'none'
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
|
+
'.captionView-content-wrap': {
|
|
69
|
+
userSelect: 'text'
|
|
70
|
+
}
|
|
71
|
+
}), (0, _defineProperty2.default)(_css2, ".mediaSingleView-content-wrap[layout^='wrap-']", {
|
|
72
|
+
position: 'relative',
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
74
|
+
zIndex: _editorSharedStyles.akEditorWrappedNodeZIndex
|
|
75
|
+
}), (0, _defineProperty2.default)(_css2, ".mediaSingleView-content-wrap[layout='center']", {
|
|
76
|
+
clear: 'both'
|
|
77
|
+
}), (0, _defineProperty2.default)(_css2, "table .".concat(richMediaClassName), {
|
|
78
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
79
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
80
|
+
clear: 'both',
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
82
|
+
'&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
|
|
83
|
+
clear: 'none',
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
85
|
+
'&:first-child': {
|
|
86
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}), (0, _defineProperty2.default)(_css2, ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
|
|
90
|
+
clear: 'both'
|
|
91
|
+
}), (0, _defineProperty2.default)(_css2, ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
|
|
92
|
+
marginRight: 0,
|
|
93
|
+
marginLeft: 0
|
|
94
|
+
}), (0, _defineProperty2.default)(_css2, "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
96
|
+
"div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
|
|
97
|
+
float: 'none',
|
|
98
|
+
overflow: 'auto',
|
|
99
|
+
margin: "var(--ds-space-150, 12px)".concat(" 0")
|
|
100
|
+
}
|
|
101
|
+
}), _css2));
|
|
55
102
|
|
|
56
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.paragraphSharedStyles = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
10
|
-
var
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
11
|
var _getEditorUgcToken = _interopRequireDefault(require("../../ugc-tokens/get-editor-ugc-token"));
|
|
12
12
|
/* eslint-disable @atlaskit/ui-styling-standard/no-exported-styles */
|
|
13
13
|
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
@@ -17,7 +17,7 @@ var _getEditorUgcToken = _interopRequireDefault(require("../../ugc-tokens/get-ed
|
|
|
17
17
|
|
|
18
18
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
19
19
|
var paragraphSharedStyles = exports.paragraphSharedStyles = function paragraphSharedStyles(typographyTheme) {
|
|
20
|
-
return (0,
|
|
20
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _react.css)({
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
22
|
'& p': {
|
|
23
23
|
font: (0, _getEditorUgcToken.default)('editor.font.body', typographyTheme),
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "94.
|
|
27
|
+
var packageVersion = "94.5.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -132,6 +132,10 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
132
132
|
ref.focus();
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDroplistRef", function (ref) {
|
|
136
|
+
var _this$props$onDroplis, _this$props;
|
|
137
|
+
(_this$props$onDroplis = (_this$props = _this.props).onDroplistRef) === null || _this$props$onDroplis === void 0 || _this$props$onDroplis.call(_this$props, ref);
|
|
138
|
+
});
|
|
135
139
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleTriggerRef", function (ref) {
|
|
136
140
|
_this.triggerRef = ref;
|
|
137
141
|
});
|
|
@@ -140,14 +144,14 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
140
144
|
(0, _createClass2.default)(DropList, [{
|
|
141
145
|
key: "render",
|
|
142
146
|
value: function render() {
|
|
143
|
-
var _this$
|
|
144
|
-
children = _this$
|
|
145
|
-
isOpen = _this$
|
|
146
|
-
position = _this$
|
|
147
|
-
trigger = _this$
|
|
148
|
-
onPositioned = _this$
|
|
149
|
-
testId = _this$
|
|
150
|
-
id = _this$
|
|
147
|
+
var _this$props2 = this.props,
|
|
148
|
+
children = _this$props2.children,
|
|
149
|
+
isOpen = _this$props2.isOpen,
|
|
150
|
+
position = _this$props2.position,
|
|
151
|
+
trigger = _this$props2.trigger,
|
|
152
|
+
onPositioned = _this$props2.onPositioned,
|
|
153
|
+
testId = _this$props2.testId,
|
|
154
|
+
id = _this$props2.id;
|
|
151
155
|
var layerContent = isOpen ? (0, _react2.jsx)("div", {
|
|
152
156
|
css: this.menuWrapper,
|
|
153
157
|
"data-role": "droplistContent",
|
|
@@ -157,7 +161,8 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
157
161
|
role: "presentation"
|
|
158
162
|
}, children) : null;
|
|
159
163
|
return (0, _react2.jsx)("div", {
|
|
160
|
-
css: this.wrapperStyles
|
|
164
|
+
css: this.wrapperStyles,
|
|
165
|
+
ref: this.handleDroplistRef
|
|
161
166
|
}, (0, _react2.jsx)(_Layer.default, {
|
|
162
167
|
content: layerContent,
|
|
163
168
|
offset: dropOffset,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _element = require("@atlaskit/emoji/element");
|
|
10
|
+
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); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
12
|
var EmojiNodeFunctional = function EmojiNodeFunctional(props) {
|
|
11
13
|
var _resourceConfig$optim;
|
|
12
14
|
var allowTextFallback = props.allowTextFallback,
|
|
@@ -17,6 +19,16 @@ var EmojiNodeFunctional = function EmojiNodeFunctional(props) {
|
|
|
17
19
|
showTooltip = props.showTooltip,
|
|
18
20
|
resourceConfig = props.resourceConfig,
|
|
19
21
|
emojiProvider = props.emojiProvider;
|
|
22
|
+
var emojiId = (0, _react.useMemo)(function () {
|
|
23
|
+
return {
|
|
24
|
+
shortName: shortName,
|
|
25
|
+
id: id,
|
|
26
|
+
fallback: fallback
|
|
27
|
+
};
|
|
28
|
+
}, [shortName, id, fallback]);
|
|
29
|
+
var emojiProviderResolver = (0, _react.useMemo)(function () {
|
|
30
|
+
return Promise.resolve(emojiProvider);
|
|
31
|
+
}, [emojiProvider]);
|
|
20
32
|
if (allowTextFallback && !emojiProvider) {
|
|
21
33
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
22
34
|
"data-emoji-id": id,
|
|
@@ -28,12 +40,8 @@ var EmojiNodeFunctional = function EmojiNodeFunctional(props) {
|
|
|
28
40
|
return null;
|
|
29
41
|
}
|
|
30
42
|
return /*#__PURE__*/_react.default.createElement(_element.ResourcedEmoji, {
|
|
31
|
-
emojiId:
|
|
32
|
-
|
|
33
|
-
fallback: fallback,
|
|
34
|
-
shortName: shortName
|
|
35
|
-
},
|
|
36
|
-
emojiProvider: Promise.resolve(emojiProvider),
|
|
43
|
+
emojiId: emojiId,
|
|
44
|
+
emojiProvider: emojiProviderResolver,
|
|
37
45
|
showTooltip: showTooltip,
|
|
38
46
|
fitToHeight: fitToHeight,
|
|
39
47
|
optimistic: true,
|
|
@@ -48,4 +56,4 @@ var EmojiNodeFunctional = function EmojiNodeFunctional(props) {
|
|
|
48
56
|
var EmojiNode = function EmojiNode(props) {
|
|
49
57
|
return /*#__PURE__*/_react.default.createElement(EmojiNodeFunctional, props);
|
|
50
58
|
};
|
|
51
|
-
var _default = exports.default = EmojiNode;
|
|
59
|
+
var _default = exports.default = /*#__PURE__*/_react.default.memo(EmojiNode);
|
|
@@ -36,10 +36,13 @@ var Dropdown = exports.Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
36
36
|
var _this;
|
|
37
37
|
(0, _classCallCheck2.default)(this, Dropdown);
|
|
38
38
|
_this = _super.call(this, props);
|
|
39
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleRef", function (
|
|
40
|
-
|
|
41
|
-
target
|
|
42
|
-
|
|
39
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleRef", function (setOutsideClickTargetRef) {
|
|
40
|
+
return function (target) {
|
|
41
|
+
setOutsideClickTargetRef(target);
|
|
42
|
+
_this.setState({
|
|
43
|
+
target: target || undefined
|
|
44
|
+
});
|
|
45
|
+
};
|
|
43
46
|
});
|
|
44
47
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updatePopupPlacement", function (placement) {
|
|
45
48
|
_this.setState({
|
|
@@ -111,12 +114,15 @@ var Dropdown = exports.Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
111
114
|
}, {
|
|
112
115
|
key: "render",
|
|
113
116
|
value: function render() {
|
|
117
|
+
var _this2 = this;
|
|
114
118
|
var _this$props2 = this.props,
|
|
115
119
|
trigger = _this$props2.trigger,
|
|
116
120
|
isOpen = _this$props2.isOpen;
|
|
117
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
118
|
-
|
|
119
|
-
|
|
121
|
+
return /*#__PURE__*/_react.default.createElement(_uiReact.OutsideClickTargetRefContext.Consumer, null, function (setOutsideClickTargetRef) {
|
|
122
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
+
ref: _this2.handleRef(setOutsideClickTargetRef)
|
|
124
|
+
}, trigger), isOpen ? _this2.renderDropdown() : null);
|
|
125
|
+
});
|
|
120
126
|
}
|
|
121
127
|
}]);
|
|
122
128
|
return Dropdown;
|
|
@@ -10,7 +10,6 @@ exports.default = exports.DropdownMenuWithKeyboardNavigation = void 0;
|
|
|
10
10
|
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
13
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
16
15
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
@@ -18,6 +17,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
18
17
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
19
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
20
19
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
20
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
21
21
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
22
22
|
var _react = _interopRequireWildcard(require("react"));
|
|
23
23
|
var _react2 = require("@emotion/react");
|
|
@@ -68,7 +68,13 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
|
|
|
68
68
|
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #172B4D)", "var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))", !submenuActive && "\n\t\t\t\t\t> span:active[aria-disabled='false'] {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))", ";\n\t\t\t\t\t}"), "var(--ds-text-disabled, #091E424F)", focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
var
|
|
71
|
+
var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
|
|
72
|
+
var setOutsideClickTargetRef = _react.default.useContext(_uiReact.OutsideClickTargetRefContext);
|
|
73
|
+
return (0, _react2.jsx)(_DropList.default, (0, _extends2.default)({
|
|
74
|
+
onDroplistRef: setOutsideClickTargetRef
|
|
75
|
+
}, props));
|
|
76
|
+
};
|
|
77
|
+
var DropListWithOutsideListeners = (0, _uiReact.withReactEditorViewOuterListeners)(DropListWithOutsideClickTargetRef);
|
|
72
78
|
|
|
73
79
|
/**
|
|
74
80
|
* Wrapper around @atlaskit/droplist which uses Popup and Portal to render
|
|
@@ -315,7 +321,9 @@ function DropdownMenuItem(_ref) {
|
|
|
315
321
|
// From time to time we don't want to have any tabIndex on item wrapper
|
|
316
322
|
// especially when we pass any interactive element as a item.content
|
|
317
323
|
var tabIndex = item.wrapperTabIndex === null ? undefined : item.wrapperTabIndex || -1;
|
|
318
|
-
var dropListItem =
|
|
324
|
+
var dropListItem =
|
|
325
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
326
|
+
(0, _react2.jsx)("div", {
|
|
319
327
|
css: function css() {
|
|
320
328
|
return buttonStyles(item.isActive, submenuActive);
|
|
321
329
|
},
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
8
|
+
Object.defineProperty(exports, "OutsideClickTargetRefContext", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _withReactEditorViewOuterListeners.OutsideClickTargetRefContext;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
7
14
|
Object.defineProperty(exports, "ReactEditorViewContext", {
|
|
8
15
|
enumerable: true,
|
|
9
16
|
get: function get() {
|
|
@@ -17,4 +24,6 @@ Object.defineProperty(exports, "withReactEditorViewOuterListeners", {
|
|
|
17
24
|
}
|
|
18
25
|
});
|
|
19
26
|
var _ReactEditorViewContext = _interopRequireDefault(require("./ReactEditorViewContext"));
|
|
20
|
-
var _withReactEditorViewOuterListeners =
|
|
27
|
+
var _withReactEditorViewOuterListeners = _interopRequireWildcard(require("./with-react-editor-view-outer-listeners"));
|
|
28
|
+
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); }
|
|
29
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|