@atlaskit/editor-common 107.30.1 → 107.31.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 +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/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +7 -5
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +6 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +7 -5
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +6 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +5 -1
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +5 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.31.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c29118e6ca79d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c29118e6ca79d) -
|
|
8
|
+
ED-28986 create initial version of synced blocks
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 107.30.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -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,
|
|
@@ -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.30.
|
|
19
|
+
var packageVersion = "107.30.1";
|
|
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.30.
|
|
27
|
+
var packageVersion = "107.30.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -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,
|
|
@@ -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.30.
|
|
4
|
+
const packageVersion = "107.30.1";
|
|
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.30.
|
|
17
|
+
const packageVersion = "107.30.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -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,
|
|
@@ -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.30.
|
|
10
|
+
var packageVersion = "107.30.1";
|
|
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.30.
|
|
24
|
+
var packageVersion = "107.30.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -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,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.0",
|
|
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/"
|
|
@@ -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.7.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
|
}
|