@atlaskit/editor-common 103.23.0 → 103.24.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 +9 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +8 -1
- 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 +8 -1
- 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 +8 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#148473](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148473)
|
|
8
|
+
[`d0e0dc8f37b91`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0e0dc8f37b91) -
|
|
9
|
+
[ux] Adds a condition to hide bodied extension content in live pages view mode if the
|
|
10
|
+
node?.attrs?.parameters?.macroParams?.hidden?.value is "true"
|
|
11
|
+
|
|
3
12
|
## 103.23.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -31,6 +31,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
31
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
32
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
33
|
function ExtensionWithPluginState(props) {
|
|
34
|
+
var _node$attrs;
|
|
34
35
|
var node = props.node,
|
|
35
36
|
handleContentDOMRef = props.handleContentDOMRef,
|
|
36
37
|
children = props.children,
|
|
@@ -62,6 +63,12 @@ function ExtensionWithPluginState(props) {
|
|
|
62
63
|
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
63
64
|
var hasChildren = !!children;
|
|
64
65
|
var removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
66
|
+
|
|
67
|
+
// Some native bodied macros (e.g Content properties) have this param to hide in view mode
|
|
68
|
+
// which we want to also hide in live page view mode too
|
|
69
|
+
var macroParamHiddenValue = node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.macroParams) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.hidden) === null || _node$attrs === void 0 ? void 0 : _node$attrs.value;
|
|
70
|
+
var shouldHideInLivePageViewMode = isLivePageViewMode && macroParamHiddenValue === 'true'; // it is stored as a string
|
|
71
|
+
|
|
65
72
|
var getPos = props.getPos,
|
|
66
73
|
view = props.view;
|
|
67
74
|
var isTopLevelNode = _react.default.useMemo(function () {
|
|
@@ -190,7 +197,7 @@ function ExtensionWithPluginState(props) {
|
|
|
190
197
|
,
|
|
191
198
|
className: newContentClassNames,
|
|
192
199
|
"data-testid": "extension-new-content"
|
|
193
|
-
}, (0, _react2.jsx)("div", {
|
|
200
|
+
}, !shouldHideInLivePageViewMode && (0, _react2.jsx)("div", {
|
|
194
201
|
"data-testid": "extension-content"
|
|
195
202
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
196
203
|
,
|
|
@@ -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 = "103.
|
|
20
|
+
var packageVersion = "103.24.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "103.
|
|
26
|
+
var packageVersion = "103.24.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -18,6 +18,7 @@ import { overlay } from '../styles';
|
|
|
18
18
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
19
19
|
import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyleInheritedCursor } from './styles';
|
|
20
20
|
function ExtensionWithPluginState(props) {
|
|
21
|
+
var _node$attrs, _node$attrs$parameter, _node$attrs$parameter2, _node$attrs$parameter3;
|
|
21
22
|
const {
|
|
22
23
|
node,
|
|
23
24
|
handleContentDOMRef,
|
|
@@ -51,6 +52,12 @@ function ExtensionWithPluginState(props) {
|
|
|
51
52
|
const hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
52
53
|
const hasChildren = !!children;
|
|
53
54
|
const removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
55
|
+
|
|
56
|
+
// Some native bodied macros (e.g Content properties) have this param to hide in view mode
|
|
57
|
+
// which we want to also hide in live page view mode too
|
|
58
|
+
const macroParamHiddenValue = node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : (_node$attrs$parameter = _node$attrs.parameters) === null || _node$attrs$parameter === void 0 ? void 0 : (_node$attrs$parameter2 = _node$attrs$parameter.macroParams) === null || _node$attrs$parameter2 === void 0 ? void 0 : (_node$attrs$parameter3 = _node$attrs$parameter2.hidden) === null || _node$attrs$parameter3 === void 0 ? void 0 : _node$attrs$parameter3.value;
|
|
59
|
+
const shouldHideInLivePageViewMode = isLivePageViewMode && macroParamHiddenValue === 'true'; // it is stored as a string
|
|
60
|
+
|
|
54
61
|
const {
|
|
55
62
|
getPos,
|
|
56
63
|
view
|
|
@@ -184,7 +191,7 @@ function ExtensionWithPluginState(props) {
|
|
|
184
191
|
,
|
|
185
192
|
className: newContentClassNames,
|
|
186
193
|
"data-testid": "extension-new-content"
|
|
187
|
-
}, jsx("div", {
|
|
194
|
+
}, !shouldHideInLivePageViewMode && jsx("div", {
|
|
188
195
|
"data-testid": "extension-content"
|
|
189
196
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
190
197
|
,
|
|
@@ -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 = "103.
|
|
4
|
+
const packageVersion = "103.24.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "103.
|
|
16
|
+
const packageVersion = "103.24.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -23,6 +23,7 @@ import { overlay } from '../styles';
|
|
|
23
23
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
24
24
|
import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyleInheritedCursor } from './styles';
|
|
25
25
|
function ExtensionWithPluginState(props) {
|
|
26
|
+
var _node$attrs;
|
|
26
27
|
var node = props.node,
|
|
27
28
|
handleContentDOMRef = props.handleContentDOMRef,
|
|
28
29
|
children = props.children,
|
|
@@ -54,6 +55,12 @@ function ExtensionWithPluginState(props) {
|
|
|
54
55
|
var hasBody = ['bodiedExtension', 'multiBodiedExtension'].includes(node.type.name);
|
|
55
56
|
var hasChildren = !!children;
|
|
56
57
|
var removeBorder = showMacroInteractionDesignUpdates || !!(hideFrame && !hasBody);
|
|
58
|
+
|
|
59
|
+
// Some native bodied macros (e.g Content properties) have this param to hide in view mode
|
|
60
|
+
// which we want to also hide in live page view mode too
|
|
61
|
+
var macroParamHiddenValue = node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.macroParams) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.hidden) === null || _node$attrs === void 0 ? void 0 : _node$attrs.value;
|
|
62
|
+
var shouldHideInLivePageViewMode = isLivePageViewMode && macroParamHiddenValue === 'true'; // it is stored as a string
|
|
63
|
+
|
|
57
64
|
var getPos = props.getPos,
|
|
58
65
|
view = props.view;
|
|
59
66
|
var isTopLevelNode = React.useMemo(function () {
|
|
@@ -182,7 +189,7 @@ function ExtensionWithPluginState(props) {
|
|
|
182
189
|
,
|
|
183
190
|
className: newContentClassNames,
|
|
184
191
|
"data-testid": "extension-new-content"
|
|
185
|
-
}, jsx("div", {
|
|
192
|
+
}, !shouldHideInLivePageViewMode && jsx("div", {
|
|
186
193
|
"data-testid": "extension-content"
|
|
187
194
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
188
195
|
,
|
|
@@ -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 = "103.
|
|
10
|
+
var packageVersion = "103.24.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "103.
|
|
23
|
+
var packageVersion = "103.24.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
package/package.json
CHANGED