@atlaskit/editor-common 110.36.2 → 110.36.4
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 +16 -0
- package/dist/cjs/analytics/types/enums.js +6 -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/analytics/types/enums.js +6 -0
- 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/analytics/types/enums.js +6 -0
- 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/dist/types/analytics/index.d.ts +1 -0
- package/dist/types/analytics/types/enums.d.ts +7 -1
- package/dist/types/analytics/types/sync-block-events.d.ts +9 -2
- package/dist/types-ts4.5/analytics/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +7 -1
- package/dist/types-ts4.5/analytics/types/sync-block-events.d.ts +9 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.36.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0cc1855e9071d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0cc1855e9071d) -
|
|
8
|
+
EDITOR-1921 add analytics for sync block provider failures
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 110.36.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`41a91a916c125`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41a91a916c125) -
|
|
16
|
+
EDITOR-2846 Change platform_synced_block to use editorExperiment and add Jira experiment
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 110.36.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -525,6 +525,12 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
525
525
|
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
|
|
526
526
|
ACTION_SUBJECT_ID["TRANSFORM"] = "transform";
|
|
527
527
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_SOURCE_URL"] = "syncedBlockSourceUrl";
|
|
528
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_UPDATE_CACHE"] = "syncedBlockUpdateCache";
|
|
529
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_UPDATE"] = "syncedBlockUpdate";
|
|
530
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_CREATE"] = "syncedBlockCreate";
|
|
531
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
532
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
533
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
528
534
|
return ACTION_SUBJECT_ID;
|
|
529
535
|
}({});
|
|
530
536
|
var FLOATING_CONTROLS_TITLE = exports.FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -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 = "
|
|
22
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
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,
|
|
@@ -519,6 +519,12 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
519
519
|
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
|
|
520
520
|
ACTION_SUBJECT_ID["TRANSFORM"] = "transform";
|
|
521
521
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_SOURCE_URL"] = "syncedBlockSourceUrl";
|
|
522
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_UPDATE_CACHE"] = "syncedBlockUpdateCache";
|
|
523
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_UPDATE"] = "syncedBlockUpdate";
|
|
524
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_CREATE"] = "syncedBlockCreate";
|
|
525
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
526
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
527
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
522
528
|
return ACTION_SUBJECT_ID;
|
|
523
529
|
}({});
|
|
524
530
|
export let FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -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 = "
|
|
7
|
+
const packageVersion = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
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,
|
|
@@ -519,6 +519,12 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
519
519
|
ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
|
|
520
520
|
ACTION_SUBJECT_ID["TRANSFORM"] = "transform";
|
|
521
521
|
ACTION_SUBJECT_ID["SYNCED_BLOCK_SOURCE_URL"] = "syncedBlockSourceUrl";
|
|
522
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_UPDATE_CACHE"] = "syncedBlockUpdateCache";
|
|
523
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_UPDATE"] = "syncedBlockUpdate";
|
|
524
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_CREATE"] = "syncedBlockCreate";
|
|
525
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
526
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
527
|
+
ACTION_SUBJECT_ID["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
522
528
|
return ACTION_SUBJECT_ID;
|
|
523
529
|
}({});
|
|
524
530
|
export var FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -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 = "
|
|
13
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
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,
|
|
@@ -53,3 +53,4 @@ export { type TelepointerClickPayload } from './types/telepointer-events';
|
|
|
53
53
|
export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
|
|
54
54
|
export type { BlockMenuEventPayload } from './types/block-menu-events';
|
|
55
55
|
export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
|
|
56
|
+
export type { RendererSyncBlockEventPayload, SyncBlockEventPayload } from './types/sync-block-events';
|
|
@@ -510,7 +510,13 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
510
510
|
EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM = "editorPluginSelectionExtensionItem",
|
|
511
511
|
EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT = "editorPluginSelectionExtensionComponent",
|
|
512
512
|
TRANSFORM = "transform",
|
|
513
|
-
SYNCED_BLOCK_SOURCE_URL = "syncedBlockSourceUrl"
|
|
513
|
+
SYNCED_BLOCK_SOURCE_URL = "syncedBlockSourceUrl",
|
|
514
|
+
SYNCED_BLOCK_UPDATE_CACHE = "syncedBlockUpdateCache",
|
|
515
|
+
SYNCED_BLOCK_UPDATE = "syncedBlockUpdate",
|
|
516
|
+
SYNCED_BLOCK_CREATE = "syncedBlockCreate",
|
|
517
|
+
SYNCED_BLOCK_DELETE = "syncedBlockDelete",
|
|
518
|
+
SYNCED_BLOCK_GET_SOURCE_INFO = "syncedBlockGetSourceInfo",
|
|
519
|
+
SYNCED_BLOCK_FETCH = "syncedBlockFetch"
|
|
514
520
|
}
|
|
515
521
|
export declare enum FLOATING_CONTROLS_TITLE {
|
|
516
522
|
CODE_BLOCK = "codeBlockFloatingControls",
|
|
@@ -3,6 +3,13 @@ import type { OperationalAEP } from './utils';
|
|
|
3
3
|
type SyncedBlockErrorAttributes = {
|
|
4
4
|
error: string;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
6
|
+
export type SyncedBlockSourceURLErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_SOURCE_URL, SyncedBlockErrorAttributes>;
|
|
7
|
+
export type SyncedBlockUpdateCacheErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE_CACHE, SyncedBlockErrorAttributes>;
|
|
8
|
+
export type SyncedBlockUpdateErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE, SyncedBlockErrorAttributes>;
|
|
9
|
+
export type SyncedBlockCreateErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_CREATE, SyncedBlockErrorAttributes>;
|
|
10
|
+
export type SyncedBlockDeleteErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_DELETE, SyncedBlockErrorAttributes>;
|
|
11
|
+
export type SyncedBlockGetSourceInfoErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_GET_SOURCE_INFO, SyncedBlockErrorAttributes>;
|
|
12
|
+
export type SyncedBlockFetchErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, SyncedBlockErrorAttributes>;
|
|
13
|
+
export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockCreateErrorAEP | SyncedBlockDeleteErrorAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP;
|
|
14
|
+
export type RendererSyncBlockEventPayload = SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP;
|
|
8
15
|
export {};
|
|
@@ -53,3 +53,4 @@ export { type TelepointerClickPayload } from './types/telepointer-events';
|
|
|
53
53
|
export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
|
|
54
54
|
export type { BlockMenuEventPayload } from './types/block-menu-events';
|
|
55
55
|
export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
|
|
56
|
+
export type { RendererSyncBlockEventPayload, SyncBlockEventPayload } from './types/sync-block-events';
|
|
@@ -510,7 +510,13 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
510
510
|
EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM = "editorPluginSelectionExtensionItem",
|
|
511
511
|
EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT = "editorPluginSelectionExtensionComponent",
|
|
512
512
|
TRANSFORM = "transform",
|
|
513
|
-
SYNCED_BLOCK_SOURCE_URL = "syncedBlockSourceUrl"
|
|
513
|
+
SYNCED_BLOCK_SOURCE_URL = "syncedBlockSourceUrl",
|
|
514
|
+
SYNCED_BLOCK_UPDATE_CACHE = "syncedBlockUpdateCache",
|
|
515
|
+
SYNCED_BLOCK_UPDATE = "syncedBlockUpdate",
|
|
516
|
+
SYNCED_BLOCK_CREATE = "syncedBlockCreate",
|
|
517
|
+
SYNCED_BLOCK_DELETE = "syncedBlockDelete",
|
|
518
|
+
SYNCED_BLOCK_GET_SOURCE_INFO = "syncedBlockGetSourceInfo",
|
|
519
|
+
SYNCED_BLOCK_FETCH = "syncedBlockFetch"
|
|
514
520
|
}
|
|
515
521
|
export declare enum FLOATING_CONTROLS_TITLE {
|
|
516
522
|
CODE_BLOCK = "codeBlockFloatingControls",
|
|
@@ -3,6 +3,13 @@ import type { OperationalAEP } from './utils';
|
|
|
3
3
|
type SyncedBlockErrorAttributes = {
|
|
4
4
|
error: string;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
6
|
+
export type SyncedBlockSourceURLErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_SOURCE_URL, SyncedBlockErrorAttributes>;
|
|
7
|
+
export type SyncedBlockUpdateCacheErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE_CACHE, SyncedBlockErrorAttributes>;
|
|
8
|
+
export type SyncedBlockUpdateErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE, SyncedBlockErrorAttributes>;
|
|
9
|
+
export type SyncedBlockCreateErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_CREATE, SyncedBlockErrorAttributes>;
|
|
10
|
+
export type SyncedBlockDeleteErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_DELETE, SyncedBlockErrorAttributes>;
|
|
11
|
+
export type SyncedBlockGetSourceInfoErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_GET_SOURCE_INFO, SyncedBlockErrorAttributes>;
|
|
12
|
+
export type SyncedBlockFetchErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, SyncedBlockErrorAttributes>;
|
|
13
|
+
export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockCreateErrorAEP | SyncedBlockDeleteErrorAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP;
|
|
14
|
+
export type RendererSyncBlockEventPayload = SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP;
|
|
8
15
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.36.
|
|
3
|
+
"version": "110.36.4",
|
|
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/"
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"@atlaskit/link": "^3.2.0",
|
|
56
56
|
"@atlaskit/link-datasource": "^4.30.0",
|
|
57
57
|
"@atlaskit/link-picker": "^4.0.0",
|
|
58
|
-
"@atlaskit/media-card": "^79.
|
|
58
|
+
"@atlaskit/media-card": "^79.9.0",
|
|
59
59
|
"@atlaskit/media-client": "^35.6.0",
|
|
60
60
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
61
61
|
"@atlaskit/media-common": "^12.3.0",
|
|
62
|
-
"@atlaskit/media-file-preview": "^0.
|
|
62
|
+
"@atlaskit/media-file-preview": "^0.15.0",
|
|
63
63
|
"@atlaskit/media-picker": "^70.1.0",
|
|
64
64
|
"@atlaskit/media-ui": "^28.7.0",
|
|
65
65
|
"@atlaskit/media-viewer": "^52.4.0",
|