@atlaskit/renderer 137.2.5 → 137.2.7
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 +19 -0
- package/dist/cjs/actions/index.js +2 -2
- package/dist/cjs/react/marks/alignment.js +2 -2
- package/dist/cjs/react/marks/annotation.js +2 -2
- package/dist/cjs/react/marks/backgroundColor.js +2 -2
- package/dist/cjs/react/marks/link.js +2 -2
- package/dist/cjs/react/marks/textColor.js +2 -2
- package/dist/cjs/react/nodes/bulletList.js +2 -2
- package/dist/cjs/react/nodes/fallback.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn.js +2 -2
- package/dist/cjs/react/nodes/media/index.js +4 -4
- package/dist/cjs/react/nodes/orderedList.js +2 -2
- package/dist/cjs/react/nodes/panel-compiled.js +2 -2
- package/dist/cjs/react/nodes/panel-emotion.js +2 -2
- package/dist/cjs/react/nodes/panel.js +9 -9
- package/dist/cjs/react/nodes/tableCell.js +2 -2
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +5 -5
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +3 -2
- package/dist/cjs/ui/Renderer/index.js +5 -5
- package/dist/cjs/ui/annotations/contexts/AnnotationManagerContext.js +8 -8
- package/dist/cjs/ui/annotations/element/index.js +2 -2
- package/dist/cjs/ui/annotations/element/mark.js +8 -8
- package/dist/cjs/ui/annotations/hooks/use-events.js +3 -3
- package/dist/cjs/ui/annotations/hover/mounter.js +3 -3
- package/dist/cjs/ui/annotations/index.js +2 -2
- package/dist/cjs/ui/annotations/selection/mounter.js +4 -4
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/react/marks/alignment.js +1 -1
- package/dist/es2019/react/marks/annotation.js +1 -1
- package/dist/es2019/react/marks/backgroundColor.js +1 -1
- package/dist/es2019/react/marks/link.js +2 -2
- package/dist/es2019/react/marks/textColor.js +1 -1
- package/dist/es2019/react/nodes/bulletList.js +1 -1
- package/dist/es2019/react/nodes/fallback.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn.js +2 -2
- package/dist/es2019/react/nodes/media/index.js +1 -1
- package/dist/es2019/react/nodes/orderedList.js +1 -1
- package/dist/es2019/react/nodes/panel-compiled.js +1 -1
- package/dist/es2019/react/nodes/panel-emotion.js +1 -1
- package/dist/es2019/react/nodes/panel.js +3 -3
- package/dist/es2019/react/nodes/tableCell.js +1 -1
- package/dist/es2019/react/utils/EditorMediaClientProvider.js +5 -5
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +2 -1
- package/dist/es2019/ui/Renderer/index.js +5 -5
- package/dist/es2019/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
- package/dist/es2019/ui/annotations/element/index.js +1 -1
- package/dist/es2019/ui/annotations/element/mark.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
- package/dist/es2019/ui/annotations/hover/mounter.js +1 -1
- package/dist/es2019/ui/annotations/index.js +1 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/react/marks/alignment.js +1 -1
- package/dist/esm/react/marks/annotation.js +1 -1
- package/dist/esm/react/marks/backgroundColor.js +1 -1
- package/dist/esm/react/marks/link.js +2 -2
- package/dist/esm/react/marks/textColor.js +1 -1
- package/dist/esm/react/nodes/bulletList.js +1 -1
- package/dist/esm/react/nodes/fallback.js +1 -1
- package/dist/esm/react/nodes/layoutColumn.js +2 -2
- package/dist/esm/react/nodes/media/index.js +1 -1
- package/dist/esm/react/nodes/orderedList.js +1 -1
- package/dist/esm/react/nodes/panel-compiled.js +1 -1
- package/dist/esm/react/nodes/panel-emotion.js +1 -1
- package/dist/esm/react/nodes/panel.js +3 -3
- package/dist/esm/react/nodes/tableCell.js +1 -1
- package/dist/esm/react/utils/EditorMediaClientProvider.js +5 -5
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +2 -1
- package/dist/esm/ui/Renderer/index.js +5 -5
- package/dist/esm/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
- package/dist/esm/ui/annotations/element/index.js +1 -1
- package/dist/esm/ui/annotations/element/mark.js +1 -1
- package/dist/esm/ui/annotations/hooks/use-events.js +1 -1
- package/dist/esm/ui/annotations/hover/mounter.js +1 -1
- package/dist/esm/ui/annotations/index.js +1 -1
- package/dist/esm/ui/annotations/selection/mounter.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/react/marks/alignment.d.ts +1 -1
- package/dist/types/react/marks/backgroundColor.d.ts +1 -1
- package/dist/types/react/marks/border.d.ts +1 -1
- package/dist/types/react/marks/breakout.d.ts +1 -1
- package/dist/types/react/marks/data-consumer.d.ts +1 -1
- package/dist/types/react/marks/fontSize.d.ts +1 -1
- package/dist/types/react/marks/fragment.d.ts +1 -1
- package/dist/types/react/marks/indentation.d.ts +1 -1
- package/dist/types/react/marks/link.d.ts +1 -1
- package/dist/types/react/marks/subsup.d.ts +1 -1
- package/dist/types/react/marks/textColor.d.ts +1 -1
- package/dist/types/react/nodes/blockCard.d.ts +1 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +1 -1
- package/dist/types/react/nodes/embedCard.d.ts +1 -1
- package/dist/types/react/nodes/emoji.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +1 -1
- package/dist/types/react/nodes/extensionFrame.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +2 -1
- package/dist/types/react/nodes/layoutColumn-compiled.d.ts +1 -1
- package/dist/types/react/nodes/layoutColumn-emotion.d.ts +1 -1
- package/dist/types/react/nodes/layoutColumn.d.ts +1 -1
- package/dist/types/react/nodes/media/index.d.ts +4 -1
- package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -1
- package/dist/types/react/nodes/mention.d.ts +1 -1
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +1 -1
- package/dist/types/react/nodes/panel-compiled.d.ts +1 -1
- package/dist/types/react/nodes/panel-emotion.d.ts +1 -1
- package/dist/types/react/nodes/panel.d.ts +1 -1
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table/types.d.ts +1 -1
- package/dist/types/react/nodes/tableCell.d.ts +1 -1
- package/dist/types/react/types.d.ts +1 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +1 -1
- package/dist/types/ui/MediaCard.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +2 -2
- package/dist/types/ui/annotations/element/index.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +2 -2
- package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -2
- package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
- package/dist/types/ui/hooks/useScrollToBlock.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +5 -6
- package/package.json +5 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
3
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
import { LayoutSectionCompiled } from './layoutColumn-compiled';
|
|
5
5
|
import { LayoutSectionEmotion } from './layoutColumn-emotion';
|
|
6
6
|
var LayoutSectionMigration = componentWithCondition(function () {
|
|
7
|
-
return
|
|
7
|
+
return isExperimentEnabled('platform_editor_renderer_static_css');
|
|
8
8
|
}, LayoutSectionCompiled, LayoutSectionEmotion);
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -26,7 +26,7 @@ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
|
26
26
|
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
27
27
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
28
28
|
import { MediaCard } from '../../../ui/MediaCard';
|
|
29
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
29
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
30
30
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
31
31
|
import { getEventHandler } from '../../../utils';
|
|
32
32
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { orderedListSelector } from '@atlaskit/adf-schema';
|
|
3
|
+
import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
|
|
4
4
|
import { getOrderedListInlineStyles } from '@atlaskit/editor-common/styles';
|
|
5
5
|
import { getItemCounterDigitsSize, resolveOrder } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { getListIndentLevel } from '../utils/lists';
|
|
@@ -14,7 +14,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
14
14
|
* Cleanup: delete this file once the experiment has shipped.
|
|
15
15
|
*/
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
17
|
+
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
18
18
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
19
19
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -15,7 +15,7 @@ import React from 'react';
|
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration; `jsx` is used as the JSX pragma (see @jsx jsx above) so must be a value import
|
|
17
17
|
import { css, jsx } from '@emotion/react';
|
|
18
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
18
|
+
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
19
19
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
20
20
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
2
|
+
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
3
3
|
import { PanelInfoIcon, PanelSuccessIcon, PanelNoteIcon, PanelWarningIcon, PanelErrorIcon } from '@atlaskit/editor-common/icons';
|
|
4
4
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
5
5
|
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
6
6
|
import TipIcon from '@atlaskit/icon/core/lightbulb';
|
|
7
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
8
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import EmojiItem from './emoji';
|
|
10
10
|
import { PanelStyledCompiled } from './panel-compiled';
|
|
11
11
|
import { PanelStyledEmotion } from './panel-emotion';
|
|
@@ -19,7 +19,7 @@ var panelIcons = {
|
|
|
19
19
|
custom: EmojiIcon
|
|
20
20
|
};
|
|
21
21
|
var PanelStyledMigration = componentWithCondition(function () {
|
|
22
|
-
return
|
|
22
|
+
return isExperimentEnabled('platform_editor_renderer_static_css');
|
|
23
23
|
}, PanelStyledCompiled, PanelStyledEmotion);
|
|
24
24
|
var Panel = function Panel(props) {
|
|
25
25
|
var allowCustomPanels = props.allowCustomPanels,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { tableBackgroundColorNameByHex } from '@atlaskit/adf-schema/tableNodes';
|
|
4
|
-
import { getDarkModeLCHColor } from '@atlaskit/adf-schema/lch-color
|
|
4
|
+
import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
|
|
5
5
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
6
6
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
7
7
|
import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
|
|
@@ -3,8 +3,8 @@ import React, { useContext, useEffect, useLayoutEffect, useMemo, useState } from
|
|
|
3
3
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
4
4
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
5
5
|
import { useProviderFactory, useProviderLayout } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
var getMediaClientConfigForRenderer = function getMediaClientConfigForRenderer(provider) {
|
|
9
9
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
10
10
|
return provider.viewAndUploadMediaClientConfig && fg('platform_media_video_captions') ? provider.viewAndUploadMediaClientConfig : provider.viewMediaClientConfig;
|
|
@@ -13,7 +13,7 @@ export var EditorMediaClientProvider = function EditorMediaClientProvider(_ref)
|
|
|
13
13
|
var children = _ref.children,
|
|
14
14
|
ssr = _ref.ssr;
|
|
15
15
|
var _useState = useState(function () {
|
|
16
|
-
return
|
|
16
|
+
return isExperimentEnabled('platform_editor_media_reliability_enhancements') ? ssr === null || ssr === void 0 ? void 0 : ssr.config : undefined;
|
|
17
17
|
}),
|
|
18
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19
19
|
mediaClientConfig = _useState2[0],
|
|
@@ -35,7 +35,7 @@ export var EditorMediaClientProvider = function EditorMediaClientProvider(_ref)
|
|
|
35
35
|
*
|
|
36
36
|
* hasProvider() is synchronous and correct from render 1, closing that window.
|
|
37
37
|
*/
|
|
38
|
-
var shouldSkipContext =
|
|
38
|
+
var shouldSkipContext = isExperimentEnabled('platform_editor_media_reliability_enhancements') ? Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) || providerFactory.hasProvider('mediaProvider') || mediaProvider) : Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) || mediaProvider);
|
|
39
39
|
var contextMediaClient = useContext(MediaClientContext);
|
|
40
40
|
|
|
41
41
|
// MediaClientProvider currently requires a mediaClientConfig
|
|
@@ -61,7 +61,7 @@ export var EditorMediaClientProvider = function EditorMediaClientProvider(_ref)
|
|
|
61
61
|
// The two hooks below are mutually exclusive — only one runs per render — so there is no
|
|
62
62
|
// actual chaining of state updates at runtime. The lint rule cannot statically prove this.
|
|
63
63
|
useEffect(function () {
|
|
64
|
-
if (!
|
|
64
|
+
if (!isExperimentEnabled('platform_editor_media_reliability_enhancements')) {
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
@@ -87,7 +87,7 @@ export var EditorMediaClientProvider = function EditorMediaClientProvider(_ref)
|
|
|
87
87
|
// Legacy path (experiment off): keep useLayoutEffect to preserve existing behaviour.
|
|
88
88
|
// remove this when clean up platform_editor_media_reliability_enhancements
|
|
89
89
|
useLayoutEffect(function () {
|
|
90
|
-
if (
|
|
90
|
+
if (isExperimentEnabled('platform_editor_media_reliability_enhancements')) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
@@ -20,7 +20,8 @@ import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSma
|
|
|
20
20
|
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
21
21
|
import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
|
|
22
22
|
import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
23
|
-
import { bulletListSelector
|
|
23
|
+
import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
|
|
24
|
+
import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
|
|
24
25
|
import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
|
|
25
26
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
26
27
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
65
65
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
66
66
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
67
67
|
var packageName = "@atlaskit/renderer";
|
|
68
|
-
var packageVersion = "137.2.
|
|
68
|
+
var packageVersion = "137.2.6";
|
|
69
69
|
var setAsQueryContainerStyles = css({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size'
|
|
@@ -342,13 +342,13 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
342
342
|
var heightWidthAnalyticsRicID;
|
|
343
343
|
var heightWidthAnalyticsRafID;
|
|
344
344
|
var handleAnalytics = function handleAnalytics() {
|
|
345
|
-
if (
|
|
345
|
+
if (Math.random() < RENDER_EVENT_SAMPLE_RATE) {
|
|
346
346
|
_fireAnalyticsEvent({
|
|
347
347
|
action: ACTION.STARTED,
|
|
348
348
|
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
349
349
|
attributes: {
|
|
350
350
|
platform: PLATFORM.WEB,
|
|
351
|
-
sampleRate:
|
|
351
|
+
sampleRate: RENDER_EVENT_SAMPLE_RATE
|
|
352
352
|
},
|
|
353
353
|
eventType: EVENT_TYPE.UI
|
|
354
354
|
});
|
|
@@ -390,11 +390,11 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
390
390
|
nodes: nodes,
|
|
391
391
|
nestedRendererType: nestedRendererType,
|
|
392
392
|
severity: severity,
|
|
393
|
-
sampleRate:
|
|
393
|
+
sampleRate: RENDER_EVENT_SAMPLE_RATE
|
|
394
394
|
},
|
|
395
395
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
396
396
|
};
|
|
397
|
-
if (
|
|
397
|
+
if (Math.random() < RENDER_EVENT_SAMPLE_RATE) {
|
|
398
398
|
_fireAnalyticsEvent(event);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
import React, { createContext, useContext, useEffect, useMemo, useReducer, useRef } from 'react';
|
|
6
|
-
import { AnnotationMarkStates, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
6
|
+
import { AnnotationMarkStates, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
7
7
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { RendererContext } from '../../../ui/RendererActionsContext';
|
|
9
9
|
var initState = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo, useCallback, useContext } from 'react';
|
|
2
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
2
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
3
3
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { MarkComponent } from './mark';
|
|
5
5
|
import { useInlineCommentsFilter } from '../hooks/use-inline-comments-filter';
|
|
@@ -10,7 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
import { useMemo, useCallback } from 'react';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
13
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import { useIntl } from 'react-intl';
|
|
16
16
|
import { inlineCommentMessages } from '../../../messages';
|
|
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
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; }
|
|
5
5
|
import { useLayoutEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
7
|
-
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
7
|
+
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
8
8
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
10
10
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useContext } from 'react';
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
-
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
|
+
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
4
4
|
import { updateWindowSelectionAroundDraft } from '../draft/dom';
|
|
5
5
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
2
|
+
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
3
3
|
import { AnnotationView } from './view';
|
|
4
4
|
import { AnnotationsContextWrapper } from './wrapper';
|
|
5
5
|
import { ProvidersContext, InlineCommentsStateContext } from './context';
|
|
@@ -4,7 +4,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
6
|
import uuid from 'uuid/v4';
|
|
7
|
-
import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
7
|
+
import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
8
8
|
import { updateWindowSelectionAroundDraft } from '../draft/dom';
|
|
9
9
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
10
10
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
1
|
+
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
2
2
|
import type { AnnotationActionResult, AnnotationByMatches, SelectionContext } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
4
4
|
import type { Mark, Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { AlignmentAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { AlignmentAttributes } from '@atlaskit/adf-schema/alignment';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function Alignment(props: MarkProps<AlignmentAttributes>): jsx.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TextColorAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { TextColorAttributes } from '@atlaskit/adf-schema/text-color';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function BackgroundColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
6
|
+
import type { BorderMarkAttributes } from '@atlaskit/adf-schema/border';
|
|
7
7
|
import type { MarkProps } from '../types';
|
|
8
8
|
export default function Border(props: MarkProps<BorderMarkAttributes>): jsx.JSX.Element;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
6
|
+
import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema/breakout';
|
|
7
7
|
import type { MarkProps } from '../types';
|
|
8
8
|
/**
|
|
9
9
|
* React component that renders a breakout mark with dynamic width based on editor layout (wide or full-width).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DataConsumerAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { DataConsumerAttributes } from '@atlaskit/adf-schema/data-consumer';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema/font-size';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function FontSize(props: MarkProps<FontSizeMarkAttrs>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FragmentAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { FragmentAttributes } from '@atlaskit/adf-schema/fragment';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function FragmentMark(props: MarkProps<FragmentAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IndentationMarkAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { IndentationMarkAttributes } from '@atlaskit/adf-schema/indentation';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function Indentation(props: MarkProps<IndentationMarkAttributes>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { LinkAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { LinkAttributes } from '@atlaskit/adf-schema/link';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
interface LinkProps extends LinkAttributes {
|
|
5
5
|
isMediaLink?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { SubSupAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { SubSupAttributes } from '@atlaskit/adf-schema/subsup';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function SubSup(props: MarkProps<SubSupAttributes>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TextColorAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { TextColorAttributes } from '@atlaskit/adf-schema/text-color';
|
|
3
3
|
import type { MarkProps } from '../types';
|
|
4
4
|
export default function TextColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { jsx } from '@emotion/react';
|
|
|
6
6
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
8
8
|
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
9
|
-
import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/
|
|
9
|
+
import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/block-card';
|
|
10
10
|
export default function BlockCard(props: {
|
|
11
11
|
data?: object;
|
|
12
12
|
datasource?: DatasourceAttributeProperties;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { RendererContext, ExtensionViewportSize } from '../types';
|
|
4
4
|
import type { Serializer } from '../../serializer';
|
|
5
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
5
|
+
import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
|
|
6
6
|
import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
|
|
7
7
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
8
8
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
@@ -6,7 +6,7 @@ import { jsx } from '@emotion/react';
|
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
8
8
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
9
|
-
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
9
|
+
import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
10
10
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
11
11
|
type EmbedCardInternalProps = {
|
|
12
12
|
data?: object;
|
|
@@ -3,7 +3,7 @@ import type { FC, NamedExoticComponent } from 'react';
|
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { EmojiId, EmojiProviderLookupOrder } from '@atlaskit/emoji/types';
|
|
5
5
|
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
6
|
-
import type { EmojiAttributes } from '@atlaskit/adf-schema';
|
|
6
|
+
import type { EmojiAttributes } from '@atlaskit/adf-schema/emoji';
|
|
7
7
|
export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes {
|
|
8
8
|
allowTextFallback?: boolean;
|
|
9
9
|
emojiProviderLookupOrder?: EmojiProviderLookupOrder;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
7
|
import type { RendererContext, ExtensionViewportSize } from '../types';
|
|
8
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
8
|
+
import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
|
|
9
9
|
import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
|
|
10
10
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
11
11
|
import type { OverflowShadowProps, OverflowShadowState } from '@atlaskit/editor-common/ui';
|
|
@@ -6,7 +6,7 @@ import { jsx } from '@emotion/react';
|
|
|
6
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
7
|
import type { RendererContext } from '../types';
|
|
8
8
|
import type { Serializer } from '../../serializer';
|
|
9
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
9
|
+
import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
|
|
10
10
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
11
11
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
12
12
|
type Props = React.PropsWithChildren<{
|
|
@@ -25,7 +25,8 @@ import { TableCell } from './tableCell';
|
|
|
25
25
|
import TableRow from './tableRow';
|
|
26
26
|
import UnknownBlock from './unknownBlock';
|
|
27
27
|
import type { NodeComponentsProps, RendererAppearance } from '../../ui/Renderer/types';
|
|
28
|
-
import type { RichMediaLayout
|
|
28
|
+
import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
29
|
+
import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/block-card';
|
|
29
30
|
import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
|
|
30
31
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
31
32
|
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import type { Valign } from '@atlaskit/adf-schema/
|
|
12
|
+
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
13
13
|
export declare const LayoutSectionCompiled: (props: React.PropsWithChildren<{
|
|
14
14
|
valign?: Valign;
|
|
15
15
|
width?: number;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import type { Valign } from '@atlaskit/adf-schema/
|
|
12
|
+
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
13
13
|
export declare const LayoutSectionEmotion: (props: React.PropsWithChildren<{
|
|
14
14
|
valign?: Valign;
|
|
15
15
|
width?: number;
|
|
@@ -8,7 +8,10 @@ import { jsx } from '@emotion/react';
|
|
|
8
8
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
9
9
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import type { MediaCardProps } from '../../../ui/MediaCard';
|
|
11
|
-
import type { LinkDefinition
|
|
11
|
+
import type { LinkDefinition } from '@atlaskit/adf-schema/link';
|
|
12
|
+
import type { BorderMarkDefinition } from '@atlaskit/adf-schema/border';
|
|
13
|
+
import type { AnnotationMarkDefinition } from '@atlaskit/adf-schema/annotation';
|
|
14
|
+
import type { DataConsumerDefinition } from '@atlaskit/adf-schema/data-consumer';
|
|
12
15
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
13
16
|
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
14
17
|
export type MediaProps = MediaCardProps & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
4
4
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
5
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { EventHandlers, MediaSingleWidthType } from '@atlaskit/editor-common/ui';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MentionUserType } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { UserType as MentionUserType } from '@atlaskit/adf-schema/mention';
|
|
3
3
|
import { type MentionNodeDataProvider } from '@atlaskit/editor-common/mention';
|
|
4
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { RendererContext } from '../types';
|
|
9
9
|
import type { Serializer } from '../../serializer';
|
|
10
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
10
|
+
import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
|
|
11
11
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
12
12
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
13
13
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
12
|
+
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
13
13
|
interface PanelStyledProps {
|
|
14
14
|
backgroundColor?: string;
|
|
15
15
|
'data-panel-type': PanelType;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
13
|
+
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
14
14
|
interface PanelStyledProps {
|
|
15
15
|
backgroundColor?: string;
|
|
16
16
|
'data-panel-type': PanelType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
2
|
+
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
export interface Props {
|
|
5
5
|
allowCustomPanels?: boolean;
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
9
|
-
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
9
|
+
import type { Layout as TableLayout } from '@atlaskit/adf-schema/tableNodes';
|
|
10
10
|
import type { RendererAppearance } from '../../../ui/Renderer/types';
|
|
11
11
|
export type StickyMode = 'none' | 'stick' | 'pin-bottom';
|
|
12
12
|
export declare const tableStickyPadding = 8;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { Layout as TableLayout } from '@atlaskit/adf-schema/tableNodes';
|
|
3
3
|
import type { RendererAppearance } from '../../../ui/Renderer/types';
|
|
4
4
|
export type SharedTableProps = {
|
|
5
5
|
allowFixedColumnWidthOption?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type CellAttributes } from '@atlaskit/adf-schema/tableNodes';
|
|
3
3
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { AnalyticsEventPayload } from '../../analytics/events';
|
|
5
5
|
export type TableCellEdgeProps = {
|
|
@@ -6,7 +6,7 @@ import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
|
6
6
|
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
7
7
|
import type { Serializer } from '../serializer';
|
|
8
8
|
import type { RendererAppearance, HeadingAnchorLinksProps, RendererContentMode, NestedRendererType } from '../ui/Renderer/types';
|
|
9
|
-
import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
9
|
+
import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
10
10
|
export interface RendererContext {
|
|
11
11
|
adDoc?: any;
|
|
12
12
|
containerAri?: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import type { RendererContext } from '../react/types';
|
|
8
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
8
|
+
import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
|
|
9
9
|
import type { ExtensionHandlers, ExtensionParams, MultiBodiedExtensionActions, Parameters } from '@atlaskit/editor-common/extensions';
|
|
10
10
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
11
11
|
import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -3,7 +3,7 @@ import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
|
3
3
|
import type { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
4
4
|
import type { MediaClientConfig } from '@atlaskit/media-core/auth';
|
|
5
5
|
import type { ImageResizeMode, Identifier, FileState, MediaClient } from '@atlaskit/media-client';
|
|
6
|
-
import type { MediaType } from '@atlaskit/adf-schema';
|
|
6
|
+
import type { MediaType } from '@atlaskit/adf-schema/media';
|
|
7
7
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
8
8
|
import type { ImageLoaderProps, ImageStatus } from '@atlaskit/editor-common/utils';
|
|
9
9
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Context } from 'react';
|
|
2
2
|
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
4
4
|
export declare const ProvidersContext: Context<AnnotationProviders | null | undefined>;
|
|
5
5
|
export declare const InlineCommentsStateContext: Context<Record<string, AnnotationMarkStates | null>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
4
|
-
import type { AnnotationId } from '@atlaskit/adf-schema';
|
|
3
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
4
|
+
import type { AnnotationId } from '@atlaskit/adf-schema/annotation';
|
|
5
5
|
import type { AnnotationManager, ActionResult } from '@atlaskit/editor-common/annotation';
|
|
6
6
|
import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
|
|
7
7
|
interface AnnotationState {
|