@atlaskit/editor-common 107.30.1 → 107.31.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 +20 -0
- package/afm-cc/tsconfig.json +1 -1
- package/dist/cjs/block-menu/index.js +99 -1
- package/dist/cjs/block-menu/key.js +51 -0
- package/dist/cjs/block-menu/rank.js +11 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +6 -4
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +4 -0
- package/dist/cjs/extensibility/extensionNodeView.js +1 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/block-menu/index.js +3 -1
- package/dist/es2019/block-menu/key.js +45 -0
- package/dist/es2019/block-menu/rank.js +18 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +7 -5
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +6 -0
- package/dist/es2019/extensibility/extensionNodeView.js +1 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/block-menu/index.js +3 -1
- package/dist/esm/block-menu/key.js +45 -0
- package/dist/esm/block-menu/rank.js +4 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +7 -5
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +6 -0
- package/dist/esm/extensibility/extensionNodeView.js +1 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/block-menu/index.d.ts +2 -0
- package/dist/types/block-menu/key.d.ts +45 -0
- package/dist/types/block-menu/rank.d.ts +18 -0
- package/dist/types/card/link-toolbar-button-group-options.d.ts +4 -4
- package/dist/types/card/ui/assets/card.d.ts +2 -2
- package/dist/types/card/ui/assets/embed.d.ts +2 -2
- package/dist/types/card/ui/assets/inline.d.ts +2 -2
- package/dist/types/card/ui/assets/url.d.ts +2 -2
- package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +5 -1
- package/dist/types-ts4.5/block-menu/index.d.ts +2 -0
- package/dist/types-ts4.5/block-menu/key.d.ts +45 -0
- package/dist/types-ts4.5/block-menu/rank.d.ts +18 -0
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +4 -4
- package/dist/types-ts4.5/card/ui/assets/card.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/assets/embed.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/assets/inline.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/assets/url.d.ts +2 -2
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +5 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.31.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6dd96d8ae168d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6dd96d8ae168d) -
|
|
8
|
+
[ux] ED-28581 ED-28581: Updated renderer logic to better support nest menu items register from
|
|
9
|
+
outside block menu
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 107.31.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`c29118e6ca79d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c29118e6ca79d) -
|
|
17
|
+
ED-28986 create initial version of synced blocks
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 107.30.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -3,10 +3,108 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "FORMAT_BULLETED_LIST_MENU_ITEM", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _key.FORMAT_BULLETED_LIST_MENU_ITEM;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "FORMAT_CODE_BLOCK_MENU_ITEM", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _key.FORMAT_CODE_BLOCK_MENU_ITEM;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "FORMAT_EXPAND_MENU_ITEM", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _key.FORMAT_EXPAND_MENU_ITEM;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "FORMAT_HEADING_1_MENU_ITEM", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _key.FORMAT_HEADING_1_MENU_ITEM;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "FORMAT_HEADING_2_MENU_ITEM", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _key.FORMAT_HEADING_2_MENU_ITEM;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "FORMAT_HEADING_3_MENU_ITEM", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _key.FORMAT_HEADING_3_MENU_ITEM;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "FORMAT_HEADING_4_MENU_ITEM", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _key.FORMAT_HEADING_4_MENU_ITEM;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "FORMAT_HEADING_5_MENU_ITEM", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _key.FORMAT_HEADING_5_MENU_ITEM;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "FORMAT_HEADING_6_MENU_ITEM", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _key.FORMAT_HEADING_6_MENU_ITEM;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "FORMAT_LAYOUT_MENU_ITEM", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _key.FORMAT_LAYOUT_MENU_ITEM;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "FORMAT_NESTED_MENU_RANK", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _rank.FORMAT_NESTED_MENU_RANK;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "FORMAT_NUMBERED_LIST_MENU_ITEM", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _key.FORMAT_NUMBERED_LIST_MENU_ITEM;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "FORMAT_PANEL_MENU_ITEM", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _key.FORMAT_PANEL_MENU_ITEM;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "FORMAT_PARAGRAPH_MENU_ITEM", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _key.FORMAT_PARAGRAPH_MENU_ITEM;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "FORMAT_QUOTE_MENU_ITEM", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _key.FORMAT_QUOTE_MENU_ITEM;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "FORMAT_TASK_LIST_MENU_ITEM", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _key.FORMAT_TASK_LIST_MENU_ITEM;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
6
102
|
Object.defineProperty(exports, "messages", {
|
|
7
103
|
enumerable: true,
|
|
8
104
|
get: function get() {
|
|
9
105
|
return _messages.messages;
|
|
10
106
|
}
|
|
11
107
|
});
|
|
12
|
-
var _messages = require("./messages");
|
|
108
|
+
var _messages = require("./messages");
|
|
109
|
+
var _key = require("./key");
|
|
110
|
+
var _rank = require("./rank");
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FORMAT_TASK_LIST_MENU_ITEM = exports.FORMAT_QUOTE_MENU_ITEM = exports.FORMAT_PARAGRAPH_MENU_ITEM = exports.FORMAT_PANEL_MENU_ITEM = exports.FORMAT_NUMBERED_LIST_MENU_ITEM = exports.FORMAT_LAYOUT_MENU_ITEM = exports.FORMAT_HEADING_6_MENU_ITEM = exports.FORMAT_HEADING_5_MENU_ITEM = exports.FORMAT_HEADING_4_MENU_ITEM = exports.FORMAT_HEADING_3_MENU_ITEM = exports.FORMAT_HEADING_2_MENU_ITEM = exports.FORMAT_HEADING_1_MENU_ITEM = exports.FORMAT_EXPAND_MENU_ITEM = exports.FORMAT_CODE_BLOCK_MENU_ITEM = exports.FORMAT_BULLETED_LIST_MENU_ITEM = void 0;
|
|
7
|
+
var FORMAT_HEADING_1_MENU_ITEM = exports.FORMAT_HEADING_1_MENU_ITEM = {
|
|
8
|
+
key: 'block-menu-format-heading-1'
|
|
9
|
+
};
|
|
10
|
+
var FORMAT_HEADING_2_MENU_ITEM = exports.FORMAT_HEADING_2_MENU_ITEM = {
|
|
11
|
+
key: 'block-menu-format-heading-2'
|
|
12
|
+
};
|
|
13
|
+
var FORMAT_HEADING_3_MENU_ITEM = exports.FORMAT_HEADING_3_MENU_ITEM = {
|
|
14
|
+
key: 'block-menu-format-heading-3'
|
|
15
|
+
};
|
|
16
|
+
var FORMAT_HEADING_4_MENU_ITEM = exports.FORMAT_HEADING_4_MENU_ITEM = {
|
|
17
|
+
key: 'block-menu-format-heading-4'
|
|
18
|
+
};
|
|
19
|
+
var FORMAT_HEADING_5_MENU_ITEM = exports.FORMAT_HEADING_5_MENU_ITEM = {
|
|
20
|
+
key: 'block-menu-format-heading-5'
|
|
21
|
+
};
|
|
22
|
+
var FORMAT_HEADING_6_MENU_ITEM = exports.FORMAT_HEADING_6_MENU_ITEM = {
|
|
23
|
+
key: 'block-menu-format-heading-6'
|
|
24
|
+
};
|
|
25
|
+
var FORMAT_PARAGRAPH_MENU_ITEM = exports.FORMAT_PARAGRAPH_MENU_ITEM = {
|
|
26
|
+
key: 'block-menu-format-paragraph'
|
|
27
|
+
};
|
|
28
|
+
var FORMAT_QUOTE_MENU_ITEM = exports.FORMAT_QUOTE_MENU_ITEM = {
|
|
29
|
+
key: 'block-menu-format-quote'
|
|
30
|
+
};
|
|
31
|
+
var FORMAT_EXPAND_MENU_ITEM = exports.FORMAT_EXPAND_MENU_ITEM = {
|
|
32
|
+
key: 'block-menu-format-expand'
|
|
33
|
+
};
|
|
34
|
+
var FORMAT_LAYOUT_MENU_ITEM = exports.FORMAT_LAYOUT_MENU_ITEM = {
|
|
35
|
+
key: 'block-menu-format-layout'
|
|
36
|
+
};
|
|
37
|
+
var FORMAT_PANEL_MENU_ITEM = exports.FORMAT_PANEL_MENU_ITEM = {
|
|
38
|
+
key: 'block-menu-format-panel'
|
|
39
|
+
};
|
|
40
|
+
var FORMAT_CODE_BLOCK_MENU_ITEM = exports.FORMAT_CODE_BLOCK_MENU_ITEM = {
|
|
41
|
+
key: 'block-menu-format-code-block'
|
|
42
|
+
};
|
|
43
|
+
var FORMAT_BULLETED_LIST_MENU_ITEM = exports.FORMAT_BULLETED_LIST_MENU_ITEM = {
|
|
44
|
+
key: 'block-menu-format-bulleted-list'
|
|
45
|
+
};
|
|
46
|
+
var FORMAT_NUMBERED_LIST_MENU_ITEM = exports.FORMAT_NUMBERED_LIST_MENU_ITEM = {
|
|
47
|
+
key: 'block-menu-format-numbered-list'
|
|
48
|
+
};
|
|
49
|
+
var FORMAT_TASK_LIST_MENU_ITEM = exports.FORMAT_TASK_LIST_MENU_ITEM = {
|
|
50
|
+
key: 'block-menu-format-task-list'
|
|
51
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.FORMAT_NESTED_MENU_RANK = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _key = require("./key");
|
|
10
|
+
var _FORMAT_NESTED_MENU_R;
|
|
11
|
+
var FORMAT_NESTED_MENU_RANK = exports.FORMAT_NESTED_MENU_RANK = (_FORMAT_NESTED_MENU_R = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_FORMAT_NESTED_MENU_R, _key.FORMAT_HEADING_2_MENU_ITEM.key, 50), _key.FORMAT_HEADING_3_MENU_ITEM.key, 100), _key.FORMAT_PARAGRAPH_MENU_ITEM.key, 150), _key.FORMAT_QUOTE_MENU_ITEM.key, 200), _key.FORMAT_EXPAND_MENU_ITEM.key, 250), _key.FORMAT_LAYOUT_MENU_ITEM.key, 300), _key.FORMAT_PANEL_MENU_ITEM.key, 350), _key.FORMAT_CODE_BLOCK_MENU_ITEM.key, 400), _key.FORMAT_BULLETED_LIST_MENU_ITEM.key, 450), _key.FORMAT_NUMBERED_LIST_MENU_ITEM.key, 500), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_FORMAT_NESTED_MENU_R, _key.FORMAT_TASK_LIST_MENU_ITEM.key, 550), _key.FORMAT_HEADING_1_MENU_ITEM.key, 600), _key.FORMAT_HEADING_4_MENU_ITEM.key, 650), _key.FORMAT_HEADING_5_MENU_ITEM.key, 700), _key.FORMAT_HEADING_6_MENU_ITEM.key, 750));
|
|
@@ -32,7 +32,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
32
32
|
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; }
|
|
33
33
|
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; }
|
|
34
34
|
function ExtensionWithPluginState(props) {
|
|
35
|
-
var _node$attrs;
|
|
35
|
+
var _node$attrs, _node$attrs2;
|
|
36
36
|
var node = props.node,
|
|
37
37
|
handleContentDOMRef = props.handleContentDOMRef,
|
|
38
38
|
children = props.children,
|
|
@@ -59,13 +59,14 @@ function ExtensionWithPluginState(props) {
|
|
|
59
59
|
return extensionNode.type.name === 'extension' && ((_extensionNode$attrs = extensionNode.attrs) === null || _extensionNode$attrs === void 0 ? void 0 : _extensionNode$attrs.extensionType) === 'com.atlassian.confluence.migration' && ((_extensionNode$attrs2 = extensionNode.attrs) === null || _extensionNode$attrs2 === void 0 ? void 0 : _extensionNode$attrs2.extensionKey) === 'legacy-content';
|
|
60
60
|
};
|
|
61
61
|
var showLegacyContentHeader = (0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro_visual_update') && isLegacyContentMacroExtension(node);
|
|
62
|
+
var isSyncedBlockExtension = node.type.name === 'extension' && ((_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.extensionKey) === null || _node$attrs === void 0 ? void 0 : _node$attrs.startsWith('synced-block'));
|
|
62
63
|
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
63
64
|
var hasChildren = !!children;
|
|
64
|
-
var removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
65
|
+
var removeBorder = (0, _platformFeatureFlags.fg)('platform_synced_block_demo') ? showMacroInteractionDesignUpdates || !!hideFrame || isSyncedBlockExtension : showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
65
66
|
|
|
66
67
|
// Some native bodied macros (e.g Content properties) have this param to hide in view mode
|
|
67
68
|
// which we want to also hide in live page view mode too
|
|
68
|
-
var macroParamHiddenValue = node === null || node === void 0 || (_node$
|
|
69
|
+
var macroParamHiddenValue = node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 || (_node$attrs2 = _node$attrs2.parameters) === null || _node$attrs2 === void 0 || (_node$attrs2 = _node$attrs2.macroParams) === null || _node$attrs2 === void 0 || (_node$attrs2 = _node$attrs2.hidden) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.value;
|
|
69
70
|
var shouldHideInLivePageViewMode = isLivePageViewMode && macroParamHiddenValue === 'true'; // it is stored as a string
|
|
70
71
|
|
|
71
72
|
var getPos = props.getPos,
|
|
@@ -133,6 +134,7 @@ function ExtensionWithPluginState(props) {
|
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
136
|
var extensionContentStyles = (0, _expValEquals.expValEquals)('platform_editor_extension_styles', 'isEnabled', true) ? _styles2.extensionContent : _styles2.content;
|
|
137
|
+
var shouldHideExtensionLozenge = (0, _platformFeatureFlags.fg)('platform_synced_block_demo') ? isSyncedBlockExtension : false;
|
|
136
138
|
return (0, _react2.jsx)(_react.Fragment, null, showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
|
|
137
139
|
isNodeSelected: isNodeSelected,
|
|
138
140
|
isNodeHovered: isNodeHovered,
|
|
@@ -142,7 +144,7 @@ function ExtensionWithPluginState(props) {
|
|
|
142
144
|
onMouseLeave: function onMouseLeave() {
|
|
143
145
|
return handleMouseEvent(false);
|
|
144
146
|
}
|
|
145
|
-
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && (0, _react2.jsx)(_Lozenge.default, {
|
|
147
|
+
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && !shouldHideExtensionLozenge && (0, _react2.jsx)(_Lozenge.default, {
|
|
146
148
|
isNodeSelected: isNodeSelected,
|
|
147
149
|
isNodeHovered: isNodeHovered,
|
|
148
150
|
isNodeNested: isNodeNested,
|
|
@@ -9,6 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _fileEditorFile = _interopRequireDefault(require("@atlaskit/icon/core/migration/file--editor-file"));
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _styles = require("../styles");
|
|
13
14
|
var _EditToggle = require("./EditToggle");
|
|
14
15
|
var _ExtensionLabel = require("./ExtensionLabel");
|
|
@@ -39,6 +40,9 @@ var LozengeComponent = exports.LozengeComponent = function LozengeComponent(_ref
|
|
|
39
40
|
setShowBodiedExtensionRendererView = _ref.setShowBodiedExtensionRendererView,
|
|
40
41
|
pluginInjectionApi = _ref.pluginInjectionApi;
|
|
41
42
|
var capitalizedTitle = capitalizeFirstLetter(title);
|
|
43
|
+
if (title.startsWith('synced-block:') && (0, _platformFeatureFlags.fg)('platform_synced_block_demo')) {
|
|
44
|
+
return null; // Synced blocks do not use the lozenge component
|
|
45
|
+
}
|
|
42
46
|
if (showMacroInteractionDesignUpdates) {
|
|
43
47
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_ExtensionLabel.ExtensionLabel, {
|
|
44
48
|
text: capitalizedTitle,
|
|
@@ -131,8 +131,6 @@ function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory,
|
|
|
131
131
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
132
132
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
133
133
|
rendererExtensionHandlers: rendererExtensionHandlers
|
|
134
|
-
}
|
|
135
|
-
// @portal-render-immediately
|
|
136
|
-
true).init();
|
|
134
|
+
}).init();
|
|
137
135
|
};
|
|
138
136
|
}
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "107.
|
|
19
|
+
var packageVersion = "107.31.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -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 = "107.
|
|
27
|
+
var packageVersion = "107.31.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { messages } from './messages';
|
|
2
|
+
export { messages } from './messages';
|
|
3
|
+
export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM } from './key';
|
|
4
|
+
export { FORMAT_NESTED_MENU_RANK } from './rank';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const FORMAT_HEADING_1_MENU_ITEM = {
|
|
2
|
+
key: 'block-menu-format-heading-1'
|
|
3
|
+
};
|
|
4
|
+
export const FORMAT_HEADING_2_MENU_ITEM = {
|
|
5
|
+
key: 'block-menu-format-heading-2'
|
|
6
|
+
};
|
|
7
|
+
export const FORMAT_HEADING_3_MENU_ITEM = {
|
|
8
|
+
key: 'block-menu-format-heading-3'
|
|
9
|
+
};
|
|
10
|
+
export const FORMAT_HEADING_4_MENU_ITEM = {
|
|
11
|
+
key: 'block-menu-format-heading-4'
|
|
12
|
+
};
|
|
13
|
+
export const FORMAT_HEADING_5_MENU_ITEM = {
|
|
14
|
+
key: 'block-menu-format-heading-5'
|
|
15
|
+
};
|
|
16
|
+
export const FORMAT_HEADING_6_MENU_ITEM = {
|
|
17
|
+
key: 'block-menu-format-heading-6'
|
|
18
|
+
};
|
|
19
|
+
export const FORMAT_PARAGRAPH_MENU_ITEM = {
|
|
20
|
+
key: 'block-menu-format-paragraph'
|
|
21
|
+
};
|
|
22
|
+
export const FORMAT_QUOTE_MENU_ITEM = {
|
|
23
|
+
key: 'block-menu-format-quote'
|
|
24
|
+
};
|
|
25
|
+
export const FORMAT_EXPAND_MENU_ITEM = {
|
|
26
|
+
key: 'block-menu-format-expand'
|
|
27
|
+
};
|
|
28
|
+
export const FORMAT_LAYOUT_MENU_ITEM = {
|
|
29
|
+
key: 'block-menu-format-layout'
|
|
30
|
+
};
|
|
31
|
+
export const FORMAT_PANEL_MENU_ITEM = {
|
|
32
|
+
key: 'block-menu-format-panel'
|
|
33
|
+
};
|
|
34
|
+
export const FORMAT_CODE_BLOCK_MENU_ITEM = {
|
|
35
|
+
key: 'block-menu-format-code-block'
|
|
36
|
+
};
|
|
37
|
+
export const FORMAT_BULLETED_LIST_MENU_ITEM = {
|
|
38
|
+
key: 'block-menu-format-bulleted-list'
|
|
39
|
+
};
|
|
40
|
+
export const FORMAT_NUMBERED_LIST_MENU_ITEM = {
|
|
41
|
+
key: 'block-menu-format-numbered-list'
|
|
42
|
+
};
|
|
43
|
+
export const FORMAT_TASK_LIST_MENU_ITEM = {
|
|
44
|
+
key: 'block-menu-format-task-list'
|
|
45
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM } from './key';
|
|
2
|
+
export const FORMAT_NESTED_MENU_RANK = {
|
|
3
|
+
[FORMAT_HEADING_2_MENU_ITEM.key]: 50,
|
|
4
|
+
[FORMAT_HEADING_3_MENU_ITEM.key]: 100,
|
|
5
|
+
[FORMAT_PARAGRAPH_MENU_ITEM.key]: 150,
|
|
6
|
+
[FORMAT_QUOTE_MENU_ITEM.key]: 200,
|
|
7
|
+
[FORMAT_EXPAND_MENU_ITEM.key]: 250,
|
|
8
|
+
[FORMAT_LAYOUT_MENU_ITEM.key]: 300,
|
|
9
|
+
[FORMAT_PANEL_MENU_ITEM.key]: 350,
|
|
10
|
+
[FORMAT_CODE_BLOCK_MENU_ITEM.key]: 400,
|
|
11
|
+
[FORMAT_BULLETED_LIST_MENU_ITEM.key]: 450,
|
|
12
|
+
[FORMAT_NUMBERED_LIST_MENU_ITEM.key]: 500,
|
|
13
|
+
[FORMAT_TASK_LIST_MENU_ITEM.key]: 550,
|
|
14
|
+
[FORMAT_HEADING_1_MENU_ITEM.key]: 600,
|
|
15
|
+
[FORMAT_HEADING_4_MENU_ITEM.key]: 650,
|
|
16
|
+
[FORMAT_HEADING_5_MENU_ITEM.key]: 700,
|
|
17
|
+
[FORMAT_HEADING_6_MENU_ITEM.key]: 750
|
|
18
|
+
};
|
|
@@ -18,9 +18,9 @@ import { LegacyContentHeader } from '../LegacyContentHeader';
|
|
|
18
18
|
import ExtensionLozenge from '../Lozenge';
|
|
19
19
|
import { overlay } from '../styles';
|
|
20
20
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
21
|
-
import { content,
|
|
21
|
+
import { content, contentWrapper, extensionContent, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyleInheritedCursor } from './styles';
|
|
22
22
|
function ExtensionWithPluginState(props) {
|
|
23
|
-
var _node$attrs, _node$attrs$
|
|
23
|
+
var _node$attrs, _node$attrs$extension, _node$attrs2, _node$attrs2$paramete, _node$attrs2$paramete2, _node$attrs2$paramete3;
|
|
24
24
|
const {
|
|
25
25
|
node,
|
|
26
26
|
handleContentDOMRef,
|
|
@@ -50,13 +50,14 @@ function ExtensionWithPluginState(props) {
|
|
|
50
50
|
return extensionNode.type.name === 'extension' && ((_extensionNode$attrs = extensionNode.attrs) === null || _extensionNode$attrs === void 0 ? void 0 : _extensionNode$attrs.extensionType) === 'com.atlassian.confluence.migration' && ((_extensionNode$attrs2 = extensionNode.attrs) === null || _extensionNode$attrs2 === void 0 ? void 0 : _extensionNode$attrs2.extensionKey) === 'legacy-content';
|
|
51
51
|
};
|
|
52
52
|
const showLegacyContentHeader = fg('platform_editor_legacy_content_macro_visual_update') && isLegacyContentMacroExtension(node);
|
|
53
|
+
const isSyncedBlockExtension = node.type.name === 'extension' && ((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : (_node$attrs$extension = _node$attrs.extensionKey) === null || _node$attrs$extension === void 0 ? void 0 : _node$attrs$extension.startsWith('synced-block'));
|
|
53
54
|
const hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
54
55
|
const hasChildren = !!children;
|
|
55
|
-
const removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
56
|
+
const removeBorder = fg('platform_synced_block_demo') ? showMacroInteractionDesignUpdates || !!hideFrame || isSyncedBlockExtension : showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
56
57
|
|
|
57
58
|
// Some native bodied macros (e.g Content properties) have this param to hide in view mode
|
|
58
59
|
// which we want to also hide in live page view mode too
|
|
59
|
-
const macroParamHiddenValue = node === null || node === void 0 ? void 0 : (_node$
|
|
60
|
+
const macroParamHiddenValue = node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : (_node$attrs2$paramete = _node$attrs2.parameters) === null || _node$attrs2$paramete === void 0 ? void 0 : (_node$attrs2$paramete2 = _node$attrs2$paramete.macroParams) === null || _node$attrs2$paramete2 === void 0 ? void 0 : (_node$attrs2$paramete3 = _node$attrs2$paramete2.hidden) === null || _node$attrs2$paramete3 === void 0 ? void 0 : _node$attrs2$paramete3.value;
|
|
60
61
|
const shouldHideInLivePageViewMode = isLivePageViewMode && macroParamHiddenValue === 'true'; // it is stored as a string
|
|
61
62
|
|
|
62
63
|
const {
|
|
@@ -133,12 +134,13 @@ function ExtensionWithPluginState(props) {
|
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
136
|
const extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
137
|
+
const shouldHideExtensionLozenge = fg('platform_synced_block_demo') ? isSyncedBlockExtension : false;
|
|
136
138
|
return jsx(Fragment, null, showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
137
139
|
isNodeSelected: isNodeSelected,
|
|
138
140
|
isNodeHovered: isNodeHovered,
|
|
139
141
|
onMouseEnter: () => handleMouseEvent(true),
|
|
140
142
|
onMouseLeave: () => handleMouseEvent(false)
|
|
141
|
-
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
143
|
+
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && !shouldHideExtensionLozenge && jsx(ExtensionLozenge, {
|
|
142
144
|
isNodeSelected: isNodeSelected,
|
|
143
145
|
isNodeHovered: isNodeHovered,
|
|
144
146
|
isNodeNested: isNodeNested,
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
import { Fragment } from 'react';
|
|
7
|
+
|
|
6
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { jsx } from '@emotion/react';
|
|
8
10
|
import EditorFileIcon from '@atlaskit/icon/core/migration/file--editor-file';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
12
|
import { placeholderFallback, placeholderFallbackParams } from '../styles';
|
|
10
13
|
import { EditToggle } from './EditToggle';
|
|
11
14
|
import { ExtensionLabel } from './ExtensionLabel';
|
|
@@ -32,6 +35,9 @@ export const LozengeComponent = ({
|
|
|
32
35
|
pluginInjectionApi
|
|
33
36
|
}) => {
|
|
34
37
|
const capitalizedTitle = capitalizeFirstLetter(title);
|
|
38
|
+
if (title.startsWith('synced-block:') && fg('platform_synced_block_demo')) {
|
|
39
|
+
return null; // Synced blocks do not use the lozenge component
|
|
40
|
+
}
|
|
35
41
|
if (showMacroInteractionDesignUpdates) {
|
|
36
42
|
return jsx(Fragment, null, jsx(ExtensionLabel, {
|
|
37
43
|
text: capitalizedTitle,
|
|
@@ -98,8 +98,6 @@ export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, pr
|
|
|
98
98
|
showLivePagesBodiedMacrosRendererView,
|
|
99
99
|
showUpdatedLivePages1PBodiedExtensionUI,
|
|
100
100
|
rendererExtensionHandlers
|
|
101
|
-
}
|
|
102
|
-
// @portal-render-immediately
|
|
103
|
-
true).init();
|
|
101
|
+
}).init();
|
|
104
102
|
};
|
|
105
103
|
}
|
|
@@ -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 = "107.
|
|
4
|
+
const packageVersion = "107.31.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "107.
|
|
17
|
+
const packageVersion = "107.31.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { messages } from './messages';
|
|
2
|
+
export { messages } from './messages';
|
|
3
|
+
export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM } from './key';
|
|
4
|
+
export { FORMAT_NESTED_MENU_RANK } from './rank';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export var FORMAT_HEADING_1_MENU_ITEM = {
|
|
2
|
+
key: 'block-menu-format-heading-1'
|
|
3
|
+
};
|
|
4
|
+
export var FORMAT_HEADING_2_MENU_ITEM = {
|
|
5
|
+
key: 'block-menu-format-heading-2'
|
|
6
|
+
};
|
|
7
|
+
export var FORMAT_HEADING_3_MENU_ITEM = {
|
|
8
|
+
key: 'block-menu-format-heading-3'
|
|
9
|
+
};
|
|
10
|
+
export var FORMAT_HEADING_4_MENU_ITEM = {
|
|
11
|
+
key: 'block-menu-format-heading-4'
|
|
12
|
+
};
|
|
13
|
+
export var FORMAT_HEADING_5_MENU_ITEM = {
|
|
14
|
+
key: 'block-menu-format-heading-5'
|
|
15
|
+
};
|
|
16
|
+
export var FORMAT_HEADING_6_MENU_ITEM = {
|
|
17
|
+
key: 'block-menu-format-heading-6'
|
|
18
|
+
};
|
|
19
|
+
export var FORMAT_PARAGRAPH_MENU_ITEM = {
|
|
20
|
+
key: 'block-menu-format-paragraph'
|
|
21
|
+
};
|
|
22
|
+
export var FORMAT_QUOTE_MENU_ITEM = {
|
|
23
|
+
key: 'block-menu-format-quote'
|
|
24
|
+
};
|
|
25
|
+
export var FORMAT_EXPAND_MENU_ITEM = {
|
|
26
|
+
key: 'block-menu-format-expand'
|
|
27
|
+
};
|
|
28
|
+
export var FORMAT_LAYOUT_MENU_ITEM = {
|
|
29
|
+
key: 'block-menu-format-layout'
|
|
30
|
+
};
|
|
31
|
+
export var FORMAT_PANEL_MENU_ITEM = {
|
|
32
|
+
key: 'block-menu-format-panel'
|
|
33
|
+
};
|
|
34
|
+
export var FORMAT_CODE_BLOCK_MENU_ITEM = {
|
|
35
|
+
key: 'block-menu-format-code-block'
|
|
36
|
+
};
|
|
37
|
+
export var FORMAT_BULLETED_LIST_MENU_ITEM = {
|
|
38
|
+
key: 'block-menu-format-bulleted-list'
|
|
39
|
+
};
|
|
40
|
+
export var FORMAT_NUMBERED_LIST_MENU_ITEM = {
|
|
41
|
+
key: 'block-menu-format-numbered-list'
|
|
42
|
+
};
|
|
43
|
+
export var FORMAT_TASK_LIST_MENU_ITEM = {
|
|
44
|
+
key: 'block-menu-format-task-list'
|
|
45
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
var _FORMAT_NESTED_MENU_R;
|
|
3
|
+
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM } from './key';
|
|
4
|
+
export var FORMAT_NESTED_MENU_RANK = (_FORMAT_NESTED_MENU_R = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_FORMAT_NESTED_MENU_R, FORMAT_HEADING_2_MENU_ITEM.key, 50), FORMAT_HEADING_3_MENU_ITEM.key, 100), FORMAT_PARAGRAPH_MENU_ITEM.key, 150), FORMAT_QUOTE_MENU_ITEM.key, 200), FORMAT_EXPAND_MENU_ITEM.key, 250), FORMAT_LAYOUT_MENU_ITEM.key, 300), FORMAT_PANEL_MENU_ITEM.key, 350), FORMAT_CODE_BLOCK_MENU_ITEM.key, 400), FORMAT_BULLETED_LIST_MENU_ITEM.key, 450), FORMAT_NUMBERED_LIST_MENU_ITEM.key, 500), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_FORMAT_NESTED_MENU_R, FORMAT_TASK_LIST_MENU_ITEM.key, 550), FORMAT_HEADING_1_MENU_ITEM.key, 600), FORMAT_HEADING_4_MENU_ITEM.key, 650), FORMAT_HEADING_5_MENU_ITEM.key, 700), FORMAT_HEADING_6_MENU_ITEM.key, 750));
|
|
@@ -23,9 +23,9 @@ import { LegacyContentHeader } from '../LegacyContentHeader';
|
|
|
23
23
|
import ExtensionLozenge from '../Lozenge';
|
|
24
24
|
import { overlay } from '../styles';
|
|
25
25
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
26
|
-
import { content,
|
|
26
|
+
import { content, contentWrapper, extensionContent, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyleInheritedCursor } from './styles';
|
|
27
27
|
function ExtensionWithPluginState(props) {
|
|
28
|
-
var _node$attrs;
|
|
28
|
+
var _node$attrs, _node$attrs2;
|
|
29
29
|
var node = props.node,
|
|
30
30
|
handleContentDOMRef = props.handleContentDOMRef,
|
|
31
31
|
children = props.children,
|
|
@@ -52,13 +52,14 @@ function ExtensionWithPluginState(props) {
|
|
|
52
52
|
return extensionNode.type.name === 'extension' && ((_extensionNode$attrs = extensionNode.attrs) === null || _extensionNode$attrs === void 0 ? void 0 : _extensionNode$attrs.extensionType) === 'com.atlassian.confluence.migration' && ((_extensionNode$attrs2 = extensionNode.attrs) === null || _extensionNode$attrs2 === void 0 ? void 0 : _extensionNode$attrs2.extensionKey) === 'legacy-content';
|
|
53
53
|
};
|
|
54
54
|
var showLegacyContentHeader = fg('platform_editor_legacy_content_macro_visual_update') && isLegacyContentMacroExtension(node);
|
|
55
|
+
var isSyncedBlockExtension = node.type.name === 'extension' && ((_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.extensionKey) === null || _node$attrs === void 0 ? void 0 : _node$attrs.startsWith('synced-block'));
|
|
55
56
|
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
56
57
|
var hasChildren = !!children;
|
|
57
|
-
var removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
58
|
+
var removeBorder = fg('platform_synced_block_demo') ? showMacroInteractionDesignUpdates || !!hideFrame || isSyncedBlockExtension : showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
58
59
|
|
|
59
60
|
// Some native bodied macros (e.g Content properties) have this param to hide in view mode
|
|
60
61
|
// which we want to also hide in live page view mode too
|
|
61
|
-
var macroParamHiddenValue = node === null || node === void 0 || (_node$
|
|
62
|
+
var macroParamHiddenValue = node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 || (_node$attrs2 = _node$attrs2.parameters) === null || _node$attrs2 === void 0 || (_node$attrs2 = _node$attrs2.macroParams) === null || _node$attrs2 === void 0 || (_node$attrs2 = _node$attrs2.hidden) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.value;
|
|
62
63
|
var shouldHideInLivePageViewMode = isLivePageViewMode && macroParamHiddenValue === 'true'; // it is stored as a string
|
|
63
64
|
|
|
64
65
|
var getPos = props.getPos,
|
|
@@ -126,6 +127,7 @@ function ExtensionWithPluginState(props) {
|
|
|
126
127
|
}
|
|
127
128
|
};
|
|
128
129
|
var extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
130
|
+
var shouldHideExtensionLozenge = fg('platform_synced_block_demo') ? isSyncedBlockExtension : false;
|
|
129
131
|
return jsx(Fragment, null, showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
130
132
|
isNodeSelected: isNodeSelected,
|
|
131
133
|
isNodeHovered: isNodeHovered,
|
|
@@ -135,7 +137,7 @@ function ExtensionWithPluginState(props) {
|
|
|
135
137
|
onMouseLeave: function onMouseLeave() {
|
|
136
138
|
return handleMouseEvent(false);
|
|
137
139
|
}
|
|
138
|
-
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
140
|
+
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && !shouldHideExtensionLozenge && jsx(ExtensionLozenge, {
|
|
139
141
|
isNodeSelected: isNodeSelected,
|
|
140
142
|
isNodeHovered: isNodeHovered,
|
|
141
143
|
isNodeNested: isNodeNested,
|
|
@@ -5,10 +5,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
* @jsxRuntime classic
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
|
+
|
|
8
9
|
import { Fragment } from 'react';
|
|
10
|
+
|
|
9
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
12
|
import { jsx } from '@emotion/react';
|
|
11
13
|
import EditorFileIcon from '@atlaskit/icon/core/migration/file--editor-file';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
15
|
import { placeholderFallback, placeholderFallbackParams } from '../styles';
|
|
13
16
|
import { EditToggle } from './EditToggle';
|
|
14
17
|
import { ExtensionLabel } from './ExtensionLabel';
|
|
@@ -34,6 +37,9 @@ export var LozengeComponent = function LozengeComponent(_ref) {
|
|
|
34
37
|
setShowBodiedExtensionRendererView = _ref.setShowBodiedExtensionRendererView,
|
|
35
38
|
pluginInjectionApi = _ref.pluginInjectionApi;
|
|
36
39
|
var capitalizedTitle = capitalizeFirstLetter(title);
|
|
40
|
+
if (title.startsWith('synced-block:') && fg('platform_synced_block_demo')) {
|
|
41
|
+
return null; // Synced blocks do not use the lozenge component
|
|
42
|
+
}
|
|
37
43
|
if (showMacroInteractionDesignUpdates) {
|
|
38
44
|
return jsx(Fragment, null, jsx(ExtensionLabel, {
|
|
39
45
|
text: capitalizedTitle,
|
|
@@ -123,8 +123,6 @@ export default function ExtensionNodeView(portalProviderAPI, eventDispatcher, pr
|
|
|
123
123
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
124
124
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
125
125
|
rendererExtensionHandlers: rendererExtensionHandlers
|
|
126
|
-
}
|
|
127
|
-
// @portal-render-immediately
|
|
128
|
-
true).init();
|
|
126
|
+
}).init();
|
|
129
127
|
};
|
|
130
128
|
}
|
|
@@ -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 = "107.
|
|
10
|
+
var packageVersion = "107.31.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "107.
|
|
24
|
+
var packageVersion = "107.31.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export { messages } from './messages';
|
|
2
|
+
export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, } from './key';
|
|
3
|
+
export { FORMAT_NESTED_MENU_RANK } from './rank';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const FORMAT_HEADING_1_MENU_ITEM: {
|
|
2
|
+
key: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const FORMAT_HEADING_2_MENU_ITEM: {
|
|
5
|
+
key: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const FORMAT_HEADING_3_MENU_ITEM: {
|
|
8
|
+
key: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FORMAT_HEADING_4_MENU_ITEM: {
|
|
11
|
+
key: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const FORMAT_HEADING_5_MENU_ITEM: {
|
|
14
|
+
key: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const FORMAT_HEADING_6_MENU_ITEM: {
|
|
17
|
+
key: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const FORMAT_PARAGRAPH_MENU_ITEM: {
|
|
20
|
+
key: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const FORMAT_QUOTE_MENU_ITEM: {
|
|
23
|
+
key: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const FORMAT_EXPAND_MENU_ITEM: {
|
|
26
|
+
key: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const FORMAT_LAYOUT_MENU_ITEM: {
|
|
29
|
+
key: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const FORMAT_PANEL_MENU_ITEM: {
|
|
32
|
+
key: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const FORMAT_CODE_BLOCK_MENU_ITEM: {
|
|
35
|
+
key: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const FORMAT_BULLETED_LIST_MENU_ITEM: {
|
|
38
|
+
key: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const FORMAT_NUMBERED_LIST_MENU_ITEM: {
|
|
41
|
+
key: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const FORMAT_TASK_LIST_MENU_ITEM: {
|
|
44
|
+
key: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM } from './key';
|
|
2
|
+
export declare const FORMAT_NESTED_MENU_RANK: {
|
|
3
|
+
[FORMAT_HEADING_2_MENU_ITEM.key]: number;
|
|
4
|
+
[FORMAT_HEADING_3_MENU_ITEM.key]: number;
|
|
5
|
+
[FORMAT_PARAGRAPH_MENU_ITEM.key]: number;
|
|
6
|
+
[FORMAT_QUOTE_MENU_ITEM.key]: number;
|
|
7
|
+
[FORMAT_EXPAND_MENU_ITEM.key]: number;
|
|
8
|
+
[FORMAT_LAYOUT_MENU_ITEM.key]: number;
|
|
9
|
+
[FORMAT_PANEL_MENU_ITEM.key]: number;
|
|
10
|
+
[FORMAT_CODE_BLOCK_MENU_ITEM.key]: number;
|
|
11
|
+
[FORMAT_BULLETED_LIST_MENU_ITEM.key]: number;
|
|
12
|
+
[FORMAT_NUMBERED_LIST_MENU_ITEM.key]: number;
|
|
13
|
+
[FORMAT_TASK_LIST_MENU_ITEM.key]: number;
|
|
14
|
+
[FORMAT_HEADING_1_MENU_ITEM.key]: number;
|
|
15
|
+
[FORMAT_HEADING_4_MENU_ITEM.key]: number;
|
|
16
|
+
[FORMAT_HEADING_5_MENU_ITEM.key]: number;
|
|
17
|
+
[FORMAT_HEADING_6_MENU_ITEM.key]: number;
|
|
18
|
+
};
|
|
@@ -13,7 +13,7 @@ export declare const appearancePropsMap: {
|
|
|
13
13
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
16
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
inline: {
|
|
19
19
|
title: {
|
|
@@ -25,7 +25,7 @@ export declare const appearancePropsMap: {
|
|
|
25
25
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
28
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
29
29
|
};
|
|
30
30
|
block: {
|
|
31
31
|
title: {
|
|
@@ -37,7 +37,7 @@ export declare const appearancePropsMap: {
|
|
|
37
37
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
|
40
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
40
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
41
41
|
};
|
|
42
42
|
embed: {
|
|
43
43
|
title: {
|
|
@@ -49,7 +49,7 @@ export declare const appearancePropsMap: {
|
|
|
49
49
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
50
50
|
displayName: string;
|
|
51
51
|
};
|
|
52
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
52
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
export declare const getButtonGroupOption: (intl: IntlShape, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconCard: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconCard: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconEmbed: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconEmbed: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconInline: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconInline: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconUrl: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconUrl: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
1
5
|
import type { CSSProperties } from 'react';
|
|
2
6
|
import { jsx } from '@emotion/react';
|
|
3
7
|
import { type ExtensionsPluginInjectionAPI } from '../../types';
|
|
@@ -22,5 +26,5 @@ type LozengeComponentProps = {
|
|
|
22
26
|
showUpdatedLivePages1PBodiedExtensionUI?: boolean;
|
|
23
27
|
title: string;
|
|
24
28
|
};
|
|
25
|
-
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, isNodeNested, setIsNodeHovered, isBodiedMacro, showLivePagesBodiedMacrosRendererView, showUpdatedLivePages1PBodiedExtensionUI, showBodiedExtensionRendererView, setShowBodiedExtensionRendererView, pluginInjectionApi, }: LozengeComponentProps) => jsx.JSX.Element;
|
|
29
|
+
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, isNodeNested, setIsNodeHovered, isBodiedMacro, showLivePagesBodiedMacrosRendererView, showUpdatedLivePages1PBodiedExtensionUI, showBodiedExtensionRendererView, setShowBodiedExtensionRendererView, pluginInjectionApi, }: LozengeComponentProps) => jsx.JSX.Element | null;
|
|
26
30
|
export {};
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export { messages } from './messages';
|
|
2
|
+
export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, } from './key';
|
|
3
|
+
export { FORMAT_NESTED_MENU_RANK } from './rank';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const FORMAT_HEADING_1_MENU_ITEM: {
|
|
2
|
+
key: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const FORMAT_HEADING_2_MENU_ITEM: {
|
|
5
|
+
key: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const FORMAT_HEADING_3_MENU_ITEM: {
|
|
8
|
+
key: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FORMAT_HEADING_4_MENU_ITEM: {
|
|
11
|
+
key: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const FORMAT_HEADING_5_MENU_ITEM: {
|
|
14
|
+
key: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const FORMAT_HEADING_6_MENU_ITEM: {
|
|
17
|
+
key: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const FORMAT_PARAGRAPH_MENU_ITEM: {
|
|
20
|
+
key: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const FORMAT_QUOTE_MENU_ITEM: {
|
|
23
|
+
key: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const FORMAT_EXPAND_MENU_ITEM: {
|
|
26
|
+
key: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const FORMAT_LAYOUT_MENU_ITEM: {
|
|
29
|
+
key: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const FORMAT_PANEL_MENU_ITEM: {
|
|
32
|
+
key: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const FORMAT_CODE_BLOCK_MENU_ITEM: {
|
|
35
|
+
key: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const FORMAT_BULLETED_LIST_MENU_ITEM: {
|
|
38
|
+
key: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const FORMAT_NUMBERED_LIST_MENU_ITEM: {
|
|
41
|
+
key: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const FORMAT_TASK_LIST_MENU_ITEM: {
|
|
44
|
+
key: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM } from './key';
|
|
2
|
+
export declare const FORMAT_NESTED_MENU_RANK: {
|
|
3
|
+
[FORMAT_HEADING_2_MENU_ITEM.key]: number;
|
|
4
|
+
[FORMAT_HEADING_3_MENU_ITEM.key]: number;
|
|
5
|
+
[FORMAT_PARAGRAPH_MENU_ITEM.key]: number;
|
|
6
|
+
[FORMAT_QUOTE_MENU_ITEM.key]: number;
|
|
7
|
+
[FORMAT_EXPAND_MENU_ITEM.key]: number;
|
|
8
|
+
[FORMAT_LAYOUT_MENU_ITEM.key]: number;
|
|
9
|
+
[FORMAT_PANEL_MENU_ITEM.key]: number;
|
|
10
|
+
[FORMAT_CODE_BLOCK_MENU_ITEM.key]: number;
|
|
11
|
+
[FORMAT_BULLETED_LIST_MENU_ITEM.key]: number;
|
|
12
|
+
[FORMAT_NUMBERED_LIST_MENU_ITEM.key]: number;
|
|
13
|
+
[FORMAT_TASK_LIST_MENU_ITEM.key]: number;
|
|
14
|
+
[FORMAT_HEADING_1_MENU_ITEM.key]: number;
|
|
15
|
+
[FORMAT_HEADING_4_MENU_ITEM.key]: number;
|
|
16
|
+
[FORMAT_HEADING_5_MENU_ITEM.key]: number;
|
|
17
|
+
[FORMAT_HEADING_6_MENU_ITEM.key]: number;
|
|
18
|
+
};
|
|
@@ -13,7 +13,7 @@ export declare const appearancePropsMap: {
|
|
|
13
13
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
16
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
inline: {
|
|
19
19
|
title: {
|
|
@@ -25,7 +25,7 @@ export declare const appearancePropsMap: {
|
|
|
25
25
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
28
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
29
29
|
};
|
|
30
30
|
block: {
|
|
31
31
|
title: {
|
|
@@ -37,7 +37,7 @@ export declare const appearancePropsMap: {
|
|
|
37
37
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
|
40
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
40
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
41
41
|
};
|
|
42
42
|
embed: {
|
|
43
43
|
title: {
|
|
@@ -49,7 +49,7 @@ export declare const appearancePropsMap: {
|
|
|
49
49
|
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
50
50
|
displayName: string;
|
|
51
51
|
};
|
|
52
|
-
iconFallback: (props: import("@atlaskit/icon").
|
|
52
|
+
iconFallback: (props: import("@atlaskit/icon").IconProps) => import("react").JSX.Element;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
export declare const getButtonGroupOption: (intl: IntlShape, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconCard: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconCard: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconEmbed: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconEmbed: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconInline: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconInline: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const IconUrl: (props:
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
|
+
export declare const IconUrl: (props: IconProps) => React.JSX.Element;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
1
5
|
import type { CSSProperties } from 'react';
|
|
2
6
|
import { jsx } from '@emotion/react';
|
|
3
7
|
import { type ExtensionsPluginInjectionAPI } from '../../types';
|
|
@@ -22,5 +26,5 @@ type LozengeComponentProps = {
|
|
|
22
26
|
showUpdatedLivePages1PBodiedExtensionUI?: boolean;
|
|
23
27
|
title: string;
|
|
24
28
|
};
|
|
25
|
-
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, isNodeNested, setIsNodeHovered, isBodiedMacro, showLivePagesBodiedMacrosRendererView, showUpdatedLivePages1PBodiedExtensionUI, showBodiedExtensionRendererView, setShowBodiedExtensionRendererView, pluginInjectionApi, }: LozengeComponentProps) => jsx.JSX.Element;
|
|
29
|
+
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, isNodeNested, setIsNodeHovered, isBodiedMacro, showLivePagesBodiedMacrosRendererView, showUpdatedLivePages1PBodiedExtensionUI, showBodiedExtensionRendererView, setShowBodiedExtensionRendererView, pluginInjectionApi, }: LozengeComponentProps) => jsx.JSX.Element | null;
|
|
26
30
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.
|
|
3
|
+
"version": "107.31.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"@atlaskit/editor-toolbar": "^0.3.0",
|
|
147
147
|
"@atlaskit/editor-toolbar-model": "^0.1.0",
|
|
148
148
|
"@atlaskit/emoji": "^69.5.0",
|
|
149
|
-
"@atlaskit/icon": "^28.
|
|
149
|
+
"@atlaskit/icon": "^28.1.0",
|
|
150
150
|
"@atlaskit/icon-object": "^7.2.0",
|
|
151
151
|
"@atlaskit/link": "^3.2.0",
|
|
152
152
|
"@atlaskit/link-datasource": "^4.20.0",
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
"@atlaskit/popper": "^7.1.0",
|
|
168
168
|
"@atlaskit/primitives": "^14.11.0",
|
|
169
169
|
"@atlaskit/profilecard": "^24.7.0",
|
|
170
|
-
"@atlaskit/react-ufo": "^4.
|
|
171
|
-
"@atlaskit/section-message": "^8.
|
|
170
|
+
"@atlaskit/react-ufo": "^4.5.0",
|
|
171
|
+
"@atlaskit/section-message": "^8.6.0",
|
|
172
172
|
"@atlaskit/smart-card": "^40.13.0",
|
|
173
173
|
"@atlaskit/smart-user-picker": "^8.2.0",
|
|
174
174
|
"@atlaskit/spinner": "^19.0.0",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"@atlaskit/task-decision": "^19.2.0",
|
|
177
177
|
"@atlaskit/textfield": "^8.0.0",
|
|
178
178
|
"@atlaskit/theme": "^19.0.0",
|
|
179
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
179
|
+
"@atlaskit/tmp-editor-statsig": "^11.8.0",
|
|
180
180
|
"@atlaskit/tokens": "^6.0.0",
|
|
181
181
|
"@atlaskit/tooltip": "^20.4.0",
|
|
182
182
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -357,6 +357,9 @@
|
|
|
357
357
|
"platform_fix_preferences_url_in_isolated_cloud": {
|
|
358
358
|
"type": "boolean"
|
|
359
359
|
},
|
|
360
|
+
"platform_synced_block_demo": {
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
},
|
|
360
363
|
"p2m-drop-down-motion": {
|
|
361
364
|
"type": "boolean"
|
|
362
365
|
}
|