@atlaskit/editor-common 94.10.0 → 94.11.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 +21 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +5 -18
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/index.js +6 -0
- package/dist/cjs/styles/shared/column-layout.js +27 -3
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +7 -25
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/index.js +1 -1
- package/dist/es2019/styles/shared/column-layout.js +31 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +5 -18
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/styles/shared/column-layout.js +28 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/column-layout.d.ts +2 -1
- package/dist/types-ts4.5/styles/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/column-layout.d.ts +2 -1
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 94.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#159827](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159827)
|
|
8
|
+
[`8e43150e942f6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e43150e942f6) -
|
|
9
|
+
[ux] Clean up FF for updateParams API change
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 94.11.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#159546](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159546)
|
|
17
|
+
[`e2dc2f10636c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e2dc2f10636c6) -
|
|
18
|
+
[ux] Layout responsiveness in renderer
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 94.10.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -8,7 +8,6 @@ exports.useMultiBodiedExtensionActions = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _analytics = require("../../analytics");
|
|
13
12
|
var _utils = require("./utils");
|
|
14
13
|
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; }
|
|
@@ -117,23 +116,11 @@ var useMultiBodiedExtensionActions = exports.useMultiBodiedExtensionActions = fu
|
|
|
117
116
|
// We are retaining node.attrs to keep the node type and extension key
|
|
118
117
|
// and only updating the parameters coming in from the user
|
|
119
118
|
// parameters will contain only macroParams information
|
|
120
|
-
var updatedParameters
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
126
|
-
macroParams: parameters
|
|
127
|
-
})
|
|
128
|
-
});
|
|
129
|
-
} else {
|
|
130
|
-
var _node$attrs;
|
|
131
|
-
updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
132
|
-
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
133
|
-
macroParams: _objectSpread(_objectSpread({}, (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 ? void 0 : _node$attrs.macroParams), parameters)
|
|
134
|
-
})
|
|
135
|
-
});
|
|
136
|
-
}
|
|
119
|
+
var updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
120
|
+
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
121
|
+
macroParams: parameters
|
|
122
|
+
})
|
|
123
|
+
});
|
|
137
124
|
var tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
|
|
138
125
|
dispatch(tr);
|
|
139
126
|
if (eventDispatcher) {
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "94.
|
|
20
|
+
var packageVersion = "94.11.1";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -183,6 +183,12 @@ Object.defineProperty(exports, "codeMarkSharedStyles", {
|
|
|
183
183
|
return _codeMark.codeMarkSharedStyles;
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
|
+
Object.defineProperty(exports, "columnLayoutResponsiveSharedStyle", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function get() {
|
|
189
|
+
return _columnLayout.columnLayoutResponsiveSharedStyle;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
186
192
|
Object.defineProperty(exports, "columnLayoutSharedStyle", {
|
|
187
193
|
enumerable: true,
|
|
188
194
|
get: function get() {
|
|
@@ -4,12 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.columnLayoutSharedStyle = void 0;
|
|
7
|
+
exports.columnLayoutSharedStyle = exports.columnLayoutResponsiveSharedStyle = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
-
|
|
11
|
+
var _dataLayoutSection2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
12
|
var columnLayoutSharedStyle = exports.columnLayoutSharedStyle = (0, _react.css)({
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
14
|
'[data-layout-section]': (0, _defineProperty2.default)({
|
|
@@ -29,5 +28,30 @@ var columnLayoutSharedStyle = exports.columnLayoutSharedStyle = (0, _react.css)(
|
|
|
29
28
|
flexDirection: 'column'
|
|
30
29
|
})
|
|
31
30
|
});
|
|
31
|
+
var columnLayoutResponsiveSharedStyle = exports.columnLayoutResponsiveSharedStyle = (0, _react.css)({
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
|
+
'.layout-section-container': {
|
|
34
|
+
containerType: 'inline-size',
|
|
35
|
+
containerName: 'layout-area',
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
37
|
+
'[data-layout-section]': (_dataLayoutSection2 = {
|
|
38
|
+
display: 'grid',
|
|
39
|
+
gap: "var(--ds-space-200, 16px)",
|
|
40
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(0, 1fr))"
|
|
41
|
+
}, (0, _defineProperty2.default)(_dataLayoutSection2, "@container layout-area (max-width:".concat(_editorSharedStyles.layoutBreakpointWidth.MEDIUM - 1, "px) and (min-width: ").concat(_editorSharedStyles.layoutBreakpointWidth.SMALL, "px)"), {
|
|
42
|
+
gridTemplateColumns: "repeat(1, 1fr)",
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
44
|
+
'&[data-layout-columns="4"], &[data-layout-columns="5"]': {
|
|
45
|
+
gridTemplateColumns: "repeat(2, 1fr)",
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
47
|
+
'& > :nth-child(5)': {
|
|
48
|
+
gridColumn: 'span 2'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}), (0, _defineProperty2.default)(_dataLayoutSection2, "@container layout-area (width < ".concat(_editorSharedStyles.layoutBreakpointWidth.SMALL, "px)"), {
|
|
52
|
+
gridTemplateColumns: "repeat(1, 1fr)"
|
|
53
|
+
}), _dataLayoutSection2)
|
|
54
|
+
}
|
|
55
|
+
});
|
|
32
56
|
|
|
33
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "94.
|
|
27
|
+
var packageVersion = "94.11.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { ACTION } from '../../analytics';
|
|
5
4
|
import { sendMBEAnalyticsEvent } from './utils';
|
|
6
5
|
export const useMultiBodiedExtensionActions = ({
|
|
@@ -116,30 +115,13 @@ export const useMultiBodiedExtensionActions = ({
|
|
|
116
115
|
// We are retaining node.attrs to keep the node type and extension key
|
|
117
116
|
// and only updating the parameters coming in from the user
|
|
118
117
|
// parameters will contain only macroParams information
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
...node.attrs.parameters,
|
|
127
|
-
macroParams: parameters
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
} else {
|
|
131
|
-
var _node$attrs, _node$attrs$parameter;
|
|
132
|
-
updatedParameters = {
|
|
133
|
-
...node.attrs,
|
|
134
|
-
parameters: {
|
|
135
|
-
...node.attrs.parameters,
|
|
136
|
-
macroParams: {
|
|
137
|
-
...((_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$parameter.macroParams),
|
|
138
|
-
...parameters
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
}
|
|
118
|
+
const updatedParameters = {
|
|
119
|
+
...node.attrs,
|
|
120
|
+
parameters: {
|
|
121
|
+
...node.attrs.parameters,
|
|
122
|
+
macroParams: parameters
|
|
123
|
+
}
|
|
124
|
+
};
|
|
143
125
|
const tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
|
|
144
126
|
dispatch(tr);
|
|
145
127
|
if (eventDispatcher) {
|
|
@@ -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 = "94.
|
|
4
|
+
const packageVersion = "94.11.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -2,7 +2,7 @@ export { textColorStyles } from './shared/text-color';
|
|
|
2
2
|
export { backgroundColorStyles } from './shared/background-color';
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
|
|
5
|
-
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
5
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle } from './shared/column-layout';
|
|
6
6
|
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { gridMediumMaxWidth, layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
const columnLayoutSharedStyle = css({
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
6
|
'[data-layout-section]': {
|
|
@@ -22,6 +22,35 @@ const columnLayoutSharedStyle = css({
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
+
const columnLayoutResponsiveSharedStyle = css({
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
'.layout-section-container': {
|
|
28
|
+
containerType: 'inline-size',
|
|
29
|
+
containerName: 'layout-area',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
31
|
+
'[data-layout-section]': {
|
|
32
|
+
display: 'grid',
|
|
33
|
+
gap: "var(--ds-space-200, 16px)",
|
|
34
|
+
gridTemplateColumns: `repeat(auto-fit, minmax(0, 1fr))`,
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
36
|
+
[`@container layout-area (max-width:${layoutBreakpointWidth.MEDIUM - 1}px) and (min-width: ${layoutBreakpointWidth.SMALL}px)`]: {
|
|
37
|
+
gridTemplateColumns: `repeat(1, 1fr)`,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
39
|
+
'&[data-layout-columns="4"], &[data-layout-columns="5"]': {
|
|
40
|
+
gridTemplateColumns: `repeat(2, 1fr)`,
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
42
|
+
'& > :nth-child(5)': {
|
|
43
|
+
gridColumn: 'span 2'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
48
|
+
[`@container layout-area (width < ${layoutBreakpointWidth.SMALL}px)`]: {
|
|
49
|
+
gridTemplateColumns: `repeat(1, 1fr)`
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
25
54
|
|
|
26
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
|
-
export { columnLayoutSharedStyle };
|
|
56
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle };
|
|
@@ -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 = "94.
|
|
16
|
+
const packageVersion = "94.11.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { ACTION } from '../../analytics';
|
|
8
7
|
import { sendMBEAnalyticsEvent } from './utils';
|
|
9
8
|
export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_ref) {
|
|
@@ -110,23 +109,11 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
|
|
|
110
109
|
// We are retaining node.attrs to keep the node type and extension key
|
|
111
110
|
// and only updating the parameters coming in from the user
|
|
112
111
|
// parameters will contain only macroParams information
|
|
113
|
-
var updatedParameters
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
119
|
-
macroParams: parameters
|
|
120
|
-
})
|
|
121
|
-
});
|
|
122
|
-
} else {
|
|
123
|
-
var _node$attrs;
|
|
124
|
-
updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
125
|
-
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
126
|
-
macroParams: _objectSpread(_objectSpread({}, (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 ? void 0 : _node$attrs.macroParams), parameters)
|
|
127
|
-
})
|
|
128
|
-
});
|
|
129
|
-
}
|
|
112
|
+
var updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
113
|
+
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
114
|
+
macroParams: parameters
|
|
115
|
+
})
|
|
116
|
+
});
|
|
130
117
|
var tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
|
|
131
118
|
dispatch(tr);
|
|
132
119
|
if (eventDispatcher) {
|
|
@@ -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 = "94.
|
|
10
|
+
var packageVersion = "94.11.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { textColorStyles } from './shared/text-color';
|
|
|
2
2
|
export { backgroundColorStyles } from './shared/background-color';
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
|
|
5
|
-
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
5
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle } from './shared/column-layout';
|
|
6
6
|
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
var _dataLayoutSection2;
|
|
2
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
4
|
-
import { gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { gridMediumMaxWidth, layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
|
|
5
6
|
var columnLayoutSharedStyle = css({
|
|
6
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
7
8
|
'[data-layout-section]': _defineProperty({
|
|
@@ -21,6 +22,31 @@ var columnLayoutSharedStyle = css({
|
|
|
21
22
|
flexDirection: 'column'
|
|
22
23
|
})
|
|
23
24
|
});
|
|
25
|
+
var columnLayoutResponsiveSharedStyle = css({
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
'.layout-section-container': {
|
|
28
|
+
containerType: 'inline-size',
|
|
29
|
+
containerName: 'layout-area',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
31
|
+
'[data-layout-section]': (_dataLayoutSection2 = {
|
|
32
|
+
display: 'grid',
|
|
33
|
+
gap: "var(--ds-space-200, 16px)",
|
|
34
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(0, 1fr))"
|
|
35
|
+
}, _defineProperty(_dataLayoutSection2, "@container layout-area (max-width:".concat(layoutBreakpointWidth.MEDIUM - 1, "px) and (min-width: ").concat(layoutBreakpointWidth.SMALL, "px)"), {
|
|
36
|
+
gridTemplateColumns: "repeat(1, 1fr)",
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
38
|
+
'&[data-layout-columns="4"], &[data-layout-columns="5"]': {
|
|
39
|
+
gridTemplateColumns: "repeat(2, 1fr)",
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
41
|
+
'& > :nth-child(5)': {
|
|
42
|
+
gridColumn: 'span 2'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}), _defineProperty(_dataLayoutSection2, "@container layout-area (width < ".concat(layoutBreakpointWidth.SMALL, "px)"), {
|
|
46
|
+
gridTemplateColumns: "repeat(1, 1fr)"
|
|
47
|
+
}), _dataLayoutSection2)
|
|
48
|
+
}
|
|
49
|
+
});
|
|
24
50
|
|
|
25
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
|
-
export { columnLayoutSharedStyle };
|
|
52
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle };
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "94.
|
|
24
|
+
var packageVersion = "94.11.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -2,7 +2,7 @@ export { textColorStyles } from './shared/text-color';
|
|
|
2
2
|
export { backgroundColorStyles } from './shared/background-color';
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
|
|
5
|
-
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
5
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle } from './shared/column-layout';
|
|
6
6
|
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName, } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
declare const columnLayoutSharedStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
-
|
|
2
|
+
declare const columnLayoutResponsiveSharedStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle };
|
|
@@ -2,7 +2,7 @@ export { textColorStyles } from './shared/text-color';
|
|
|
2
2
|
export { backgroundColorStyles } from './shared/background-color';
|
|
3
3
|
export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
|
|
4
4
|
export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
|
|
5
|
-
export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
5
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle } from './shared/column-layout';
|
|
6
6
|
export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName, } from './shared/media-single';
|
|
7
7
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
8
8
|
export { headingsSharedStyles } from './shared/headings';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
declare const columnLayoutSharedStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
-
|
|
2
|
+
declare const columnLayoutResponsiveSharedStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "94.
|
|
3
|
+
"version": "94.11.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/"
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
124
124
|
"@atlaskit/editor-palette": "1.6.3",
|
|
125
125
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
126
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
126
|
+
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
127
127
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
128
128
|
"@atlaskit/emoji": "^67.9.0",
|
|
129
129
|
"@atlaskit/icon": "^22.24.0",
|
|
130
130
|
"@atlaskit/icon-object": "^6.7.0",
|
|
131
|
-
"@atlaskit/link-datasource": "^3.
|
|
131
|
+
"@atlaskit/link-datasource": "^3.8.0",
|
|
132
132
|
"@atlaskit/link-picker": "^1.47.0",
|
|
133
133
|
"@atlaskit/media-card": "^78.10.0",
|
|
134
134
|
"@atlaskit/media-client": "^28.0.0",
|
|
@@ -140,19 +140,19 @@
|
|
|
140
140
|
"@atlaskit/media-viewer": "49.2.5",
|
|
141
141
|
"@atlaskit/mention": "^23.3.0",
|
|
142
142
|
"@atlaskit/menu": "^2.13.0",
|
|
143
|
-
"@atlaskit/onboarding": "^12.
|
|
143
|
+
"@atlaskit/onboarding": "^12.1.0",
|
|
144
144
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
145
145
|
"@atlaskit/popper": "^6.3.0",
|
|
146
146
|
"@atlaskit/primitives": "^13.0.0",
|
|
147
147
|
"@atlaskit/profilecard": "^20.8.0",
|
|
148
148
|
"@atlaskit/section-message": "^6.6.0",
|
|
149
|
-
"@atlaskit/smart-card": "^30.
|
|
149
|
+
"@atlaskit/smart-card": "^30.2.0",
|
|
150
150
|
"@atlaskit/smart-user-picker": "^6.11.0",
|
|
151
151
|
"@atlaskit/spinner": "^16.3.0",
|
|
152
152
|
"@atlaskit/task-decision": "^17.11.0",
|
|
153
153
|
"@atlaskit/textfield": "^6.5.0",
|
|
154
154
|
"@atlaskit/tmp-editor-statsig": "^2.11.0",
|
|
155
|
-
"@atlaskit/tokens": "^2.
|
|
155
|
+
"@atlaskit/tokens": "^2.1.0",
|
|
156
156
|
"@atlaskit/tooltip": "^18.8.0",
|
|
157
157
|
"@atlaskit/width-detector": "^4.3.0",
|
|
158
158
|
"@babel/runtime": "^7.0.0",
|
|
@@ -238,9 +238,6 @@
|
|
|
238
238
|
"editor_inline_comments_on_inline_nodes": {
|
|
239
239
|
"type": "boolean"
|
|
240
240
|
},
|
|
241
|
-
"platform.editor.mbe-update-params-change": {
|
|
242
|
-
"type": "boolean"
|
|
243
|
-
},
|
|
244
241
|
"annotations_align_editor_and_renderer_styles": {
|
|
245
242
|
"type": "boolean"
|
|
246
243
|
},
|