@atlaskit/editor-common 111.11.9 → 111.11.10
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 +8 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +2 -2
- package/dist/cjs/utils/rich-media-utils.js +1 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +2 -2
- package/dist/es2019/utils/rich-media-utils.js +1 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
- package/dist/esm/utils/rich-media-utils.js +1 -2
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.11.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7ba3979b92b42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ba3979b92b42) -
|
|
8
|
+
Remove platform_synced_block_dogfooding feature gate
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 111.11.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "111.11.9";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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 = "
|
|
27
|
+
var packageVersion = "111.11.9";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -107,7 +107,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
107
107
|
className: className,
|
|
108
108
|
ref: function ref(buttonElement) {
|
|
109
109
|
setSpotlightReferenceElement(buttonElement);
|
|
110
|
-
if (forwardedRef && (0, _experiments.editorExperiment)('platform_synced_block', true)
|
|
110
|
+
if (forwardedRef && (0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
111
111
|
if (typeof forwardedRef === 'function') {
|
|
112
112
|
forwardedRef(buttonElement);
|
|
113
113
|
} else if ((0, _typeof2.default)(forwardedRef) === 'object') {
|
|
@@ -163,5 +163,5 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
163
163
|
}, spotlightConfig.spotlightCardOptions)));
|
|
164
164
|
};
|
|
165
165
|
var _default = exports.default = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
166
|
-
return (0, _experiments.editorExperiment)('platform_synced_block', true)
|
|
166
|
+
return (0, _experiments.editorExperiment)('platform_synced_block', true);
|
|
167
167
|
}, /*#__PURE__*/(0, _react.forwardRef)(FloatingToolbarButton), FloatingToolbarButton);
|
|
@@ -10,7 +10,6 @@ exports.shouldAddDefaultWrappedWidth = exports.nonWrappedLayouts = exports.isRic
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
12
12
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
14
|
var _grid = require("../ui/MediaSingle/grid");
|
|
16
15
|
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; }
|
|
@@ -30,7 +29,7 @@ var isRichMediaInsideOfBlockNode = exports.isRichMediaInsideOfBlockNode = functi
|
|
|
30
29
|
nestedExpand = _view$state$schema$no.nestedExpand,
|
|
31
30
|
layoutColumn = _view$state$schema$no.layoutColumn,
|
|
32
31
|
bodiedSyncBlock = _view$state$schema$no.bodiedSyncBlock;
|
|
33
|
-
if ((0, _experiments.editorExperiment)('platform_synced_block', true)
|
|
32
|
+
if ((0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
34
33
|
return !!(0, _utils.findParentNodeOfTypeClosestToPos)($pos, [expand, nestedExpand, layoutColumn, bodiedSyncBlock]);
|
|
35
34
|
}
|
|
36
35
|
return !!(0, _utils.findParentNodeOfTypeClosestToPos)($pos, [expand, nestedExpand, layoutColumn]);
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "111.11.9";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// 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 = "
|
|
17
|
+
const packageVersion = "111.11.9";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -85,7 +85,7 @@ const FloatingToolbarButton = ({
|
|
|
85
85
|
className: className,
|
|
86
86
|
ref: buttonElement => {
|
|
87
87
|
setSpotlightReferenceElement(buttonElement);
|
|
88
|
-
if (forwardedRef && editorExperiment('platform_synced_block', true)
|
|
88
|
+
if (forwardedRef && editorExperiment('platform_synced_block', true)) {
|
|
89
89
|
if (typeof forwardedRef === 'function') {
|
|
90
90
|
forwardedRef(buttonElement);
|
|
91
91
|
} else if (typeof forwardedRef === 'object') {
|
|
@@ -147,4 +147,4 @@ const FloatingToolbarButton = ({
|
|
|
147
147
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
148
148
|
}, spotlightConfig.spotlightCardOptions)));
|
|
149
149
|
};
|
|
150
|
-
export default componentWithCondition(() => editorExperiment('platform_synced_block', true)
|
|
150
|
+
export default componentWithCondition(() => editorExperiment('platform_synced_block', true), /*#__PURE__*/forwardRef(FloatingToolbarButton), FloatingToolbarButton);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
import { calcPxFromColumns, wrappedLayouts } from '../ui/MediaSingle/grid';
|
|
6
5
|
export const shouldAddDefaultWrappedWidth = (layout, width, lineLength) => {
|
|
@@ -19,7 +18,7 @@ export const isRichMediaInsideOfBlockNode = (view, pos) => {
|
|
|
19
18
|
layoutColumn,
|
|
20
19
|
bodiedSyncBlock
|
|
21
20
|
} = view.state.schema.nodes;
|
|
22
|
-
if (editorExperiment('platform_synced_block', true)
|
|
21
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
23
22
|
return !!findParentNodeOfTypeClosestToPos($pos, [expand, nestedExpand, layoutColumn, bodiedSyncBlock]);
|
|
24
23
|
}
|
|
25
24
|
return !!findParentNodeOfTypeClosestToPos($pos, [expand, nestedExpand, layoutColumn]);
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "111.11.9";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// 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 = "
|
|
24
|
+
var packageVersion = "111.11.9";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -98,7 +98,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
98
98
|
className: className,
|
|
99
99
|
ref: function ref(buttonElement) {
|
|
100
100
|
setSpotlightReferenceElement(buttonElement);
|
|
101
|
-
if (forwardedRef && editorExperiment('platform_synced_block', true)
|
|
101
|
+
if (forwardedRef && editorExperiment('platform_synced_block', true)) {
|
|
102
102
|
if (typeof forwardedRef === 'function') {
|
|
103
103
|
forwardedRef(buttonElement);
|
|
104
104
|
} else if (_typeof(forwardedRef) === 'object') {
|
|
@@ -154,5 +154,5 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
154
154
|
}, spotlightConfig.spotlightCardOptions)));
|
|
155
155
|
};
|
|
156
156
|
export default componentWithCondition(function () {
|
|
157
|
-
return editorExperiment('platform_synced_block', true)
|
|
157
|
+
return editorExperiment('platform_synced_block', true);
|
|
158
158
|
}, /*#__PURE__*/forwardRef(FloatingToolbarButton), FloatingToolbarButton);
|
|
@@ -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 { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { calcPxFromColumns, wrappedLayouts } from '../ui/MediaSingle/grid';
|
|
9
8
|
export var shouldAddDefaultWrappedWidth = function shouldAddDefaultWrappedWidth(layout, width, lineLength) {
|
|
@@ -21,7 +20,7 @@ export var isRichMediaInsideOfBlockNode = function isRichMediaInsideOfBlockNode(
|
|
|
21
20
|
nestedExpand = _view$state$schema$no.nestedExpand,
|
|
22
21
|
layoutColumn = _view$state$schema$no.layoutColumn,
|
|
23
22
|
bodiedSyncBlock = _view$state$schema$no.bodiedSyncBlock;
|
|
24
|
-
if (editorExperiment('platform_synced_block', true)
|
|
23
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
25
24
|
return !!findParentNodeOfTypeClosestToPos($pos, [expand, nestedExpand, layoutColumn, bodiedSyncBlock]);
|
|
26
25
|
}
|
|
27
26
|
return !!findParentNodeOfTypeClosestToPos($pos, [expand, nestedExpand, layoutColumn]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.11.
|
|
3
|
+
"version": "111.11.10",
|
|
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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^22.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^22.1.0",
|
|
85
85
|
"@atlaskit/tokens": "^11.0.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -250,9 +250,6 @@
|
|
|
250
250
|
"platform_editor_transform_invalid_media_width": {
|
|
251
251
|
"type": "boolean"
|
|
252
252
|
},
|
|
253
|
-
"platform_synced_block_dogfooding": {
|
|
254
|
-
"type": "boolean"
|
|
255
|
-
},
|
|
256
253
|
"platform_editor_sentry_breadcrumbs": {
|
|
257
254
|
"type": "boolean"
|
|
258
255
|
},
|