@atlaskit/editor-common 110.36.2 → 110.36.3
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/element-browser/components/ElementList/ElementList.js +2 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/validator.js +3 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/validator.js +3 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/validator.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.36.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41a91a916c125`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41a91a916c125) -
|
|
8
|
+
EDITOR-2846 Change platform_synced_block to use editorExperiment and add Jira experiment
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 110.36.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -21,6 +21,7 @@ var _menu = require("@atlaskit/menu");
|
|
|
21
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
24
25
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
25
26
|
var _analytics = require("../../../analytics");
|
|
26
27
|
var _quickInsert = require("../../../quick-insert");
|
|
@@ -460,7 +461,7 @@ var ItemContent = /*#__PURE__*/(0, _react.memo)(function (_ref8) {
|
|
|
460
461
|
space: "space.025"
|
|
461
462
|
}, (0, _react2.jsx)("div", {
|
|
462
463
|
css: itemTitleWrapper
|
|
463
|
-
}, (0,
|
|
464
|
+
}, (0, _experiments.editorExperiment)('platform_synced_block', true) ? (0, _react2.jsx)(_compiled.Flex, {
|
|
464
465
|
alignItems: "center",
|
|
465
466
|
gap: "space.050"
|
|
466
467
|
}, (0, _react2.jsx)(_compiled.Text, {
|
|
@@ -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 = "110.36.
|
|
22
|
+
var packageVersion = "110.36.2";
|
|
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 = "110.36.
|
|
27
|
+
var packageVersion = "110.36.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -10,7 +10,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
11
|
var _schemaDefault = require("@atlaskit/adf-schema/schema-default");
|
|
12
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
var
|
|
13
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
16
|
var ADFStages = exports.ADFStages = {
|
|
@@ -853,7 +853,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
853
853
|
}
|
|
854
854
|
case 'syncBlock':
|
|
855
855
|
{
|
|
856
|
-
if (adfStage === 'stage0' && (0,
|
|
856
|
+
if (adfStage === 'stage0' && (0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
857
857
|
return {
|
|
858
858
|
type: type,
|
|
859
859
|
attrs: attrs,
|
|
@@ -865,7 +865,7 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
865
865
|
}
|
|
866
866
|
case 'bodiedSyncBlock':
|
|
867
867
|
{
|
|
868
|
-
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 && (0,
|
|
868
|
+
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 && (0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
869
869
|
return {
|
|
870
870
|
type: type,
|
|
871
871
|
attrs: attrs,
|
|
@@ -17,6 +17,7 @@ import { ButtonItem } from '@atlaskit/menu';
|
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
18
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
21
|
import Tooltip from '@atlaskit/tooltip';
|
|
21
22
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
22
23
|
import { IconFallback } from '../../../quick-insert';
|
|
@@ -452,7 +453,7 @@ const ItemContent = /*#__PURE__*/memo(({
|
|
|
452
453
|
space: "space.025"
|
|
453
454
|
}, jsx("div", {
|
|
454
455
|
css: itemTitleWrapper
|
|
455
|
-
},
|
|
456
|
+
}, editorExperiment('platform_synced_block', true) ? jsx(Flex, {
|
|
456
457
|
alignItems: "center",
|
|
457
458
|
gap: "space.050"
|
|
458
459
|
}, jsx(Text, {
|
|
@@ -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 = "110.36.
|
|
7
|
+
const packageVersion = "110.36.2";
|
|
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 = "110.36.
|
|
17
|
+
const packageVersion = "110.36.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import {
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
5
|
export const ADFStages = {
|
|
6
6
|
FINAL: 'final',
|
|
7
7
|
STAGE_0: 'stage0'
|
|
@@ -844,7 +844,7 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
|
|
|
844
844
|
}
|
|
845
845
|
case 'syncBlock':
|
|
846
846
|
{
|
|
847
|
-
if (adfStage === 'stage0' &&
|
|
847
|
+
if (adfStage === 'stage0' && editorExperiment('platform_synced_block', true)) {
|
|
848
848
|
return {
|
|
849
849
|
type,
|
|
850
850
|
attrs,
|
|
@@ -856,7 +856,7 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
|
|
|
856
856
|
}
|
|
857
857
|
case 'bodiedSyncBlock':
|
|
858
858
|
{
|
|
859
|
-
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 &&
|
|
859
|
+
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 && editorExperiment('platform_synced_block', true)) {
|
|
860
860
|
return {
|
|
861
861
|
type,
|
|
862
862
|
attrs,
|
|
@@ -18,6 +18,7 @@ import { ButtonItem } from '@atlaskit/menu';
|
|
|
18
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
19
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
22
|
import Tooltip from '@atlaskit/tooltip';
|
|
22
23
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
23
24
|
import { IconFallback } from '../../../quick-insert';
|
|
@@ -449,7 +450,7 @@ var ItemContent = /*#__PURE__*/memo(function (_ref8) {
|
|
|
449
450
|
space: "space.025"
|
|
450
451
|
}, jsx("div", {
|
|
451
452
|
css: itemTitleWrapper
|
|
452
|
-
},
|
|
453
|
+
}, editorExperiment('platform_synced_block', true) ? jsx(Flex, {
|
|
453
454
|
alignItems: "center",
|
|
454
455
|
gap: "space.050"
|
|
455
456
|
}, jsx(Text, {
|
|
@@ -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 = "110.36.
|
|
13
|
+
var packageVersion = "110.36.2";
|
|
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 = "110.36.
|
|
24
|
+
var packageVersion = "110.36.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
|
|
6
6
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import {
|
|
8
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
9
|
export var ADFStages = {
|
|
10
10
|
FINAL: 'final',
|
|
11
11
|
STAGE_0: 'stage0'
|
|
@@ -846,7 +846,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
846
846
|
}
|
|
847
847
|
case 'syncBlock':
|
|
848
848
|
{
|
|
849
|
-
if (adfStage === 'stage0' &&
|
|
849
|
+
if (adfStage === 'stage0' && editorExperiment('platform_synced_block', true)) {
|
|
850
850
|
return {
|
|
851
851
|
type: type,
|
|
852
852
|
attrs: attrs,
|
|
@@ -858,7 +858,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
858
858
|
}
|
|
859
859
|
case 'bodiedSyncBlock':
|
|
860
860
|
{
|
|
861
|
-
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 &&
|
|
861
|
+
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 && editorExperiment('platform_synced_block', true)) {
|
|
862
862
|
return {
|
|
863
863
|
type: type,
|
|
864
864
|
attrs: attrs,
|
package/package.json
CHANGED