@atlaskit/editor-plugin-synced-block 24.0.4 → 24.0.6
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 +12 -0
- package/dist/cjs/editor-commands/index.js +60 -60
- package/dist/cjs/nodeviews/bodiedSyncedBlock.js +6 -6
- package/dist/cjs/nodeviews/syncedBlock.js +5 -4
- package/dist/cjs/pm-plugins/main.js +21 -21
- package/dist/cjs/pm-plugins/menu-and-toolbar-experiences.js +41 -37
- package/dist/cjs/pm-plugins/utils/selection-decorations.js +1 -1
- package/dist/cjs/pm-plugins/utils/utils.js +7 -7
- package/dist/cjs/syncedBlockPlugin.js +4 -4
- package/dist/cjs/ui/CreateSyncedBlockButton.js +12 -11
- package/dist/cjs/ui/CreateSyncedBlockDropdownItem.js +22 -20
- package/dist/cjs/ui/DeleteConfirmationModal.js +22 -22
- package/dist/cjs/ui/Flag.js +35 -35
- package/dist/cjs/ui/SourceSyncBlockPlaceholder.js +3 -3
- package/dist/cjs/ui/SyncBlockLabel.js +13 -13
- package/dist/cjs/ui/SyncBlockRefresher.js +4 -4
- package/dist/cjs/ui/SyncBlockRendererWrapper.js +7 -5
- package/dist/cjs/ui/SyncBlockSSRReactContextsProvider.js +2 -2
- package/dist/cjs/ui/SyncedLocationDropdown.js +46 -45
- package/dist/cjs/ui/block-menu-components.js +5 -4
- package/dist/cjs/ui/floating-toolbar.js +27 -26
- package/dist/cjs/ui/quick-insert/SyncedBlockQuickInsertMenuItem.js +9 -9
- package/dist/cjs/ui/quick-insert/getSyncedBlockQuickInsertComponents.js +3 -3
- package/dist/cjs/ui/quick-insert.js +9 -9
- package/dist/cjs/ui/toolbar-components.js +16 -14
- package/dist/es2019/editor-commands/index.js +2 -2
- package/dist/es2019/nodeviews/bodiedSyncedBlock.js +3 -3
- package/dist/es2019/nodeviews/syncedBlock.js +3 -2
- package/dist/es2019/pm-plugins/main.js +6 -6
- package/dist/es2019/pm-plugins/menu-and-toolbar-experiences.js +6 -2
- package/dist/es2019/pm-plugins/utils/selection-decorations.js +1 -1
- package/dist/es2019/pm-plugins/utils/utils.js +1 -1
- package/dist/es2019/syncedBlockPlugin.js +2 -2
- package/dist/es2019/ui/CreateSyncedBlockButton.js +6 -5
- package/dist/es2019/ui/CreateSyncedBlockDropdownItem.js +7 -5
- package/dist/es2019/ui/DeleteConfirmationModal.js +3 -3
- package/dist/es2019/ui/Flag.js +4 -4
- package/dist/es2019/ui/SourceSyncBlockPlaceholder.js +2 -2
- package/dist/es2019/ui/SyncBlockLabel.js +2 -2
- package/dist/es2019/ui/SyncBlockRefresher.js +2 -2
- package/dist/es2019/ui/SyncBlockRendererWrapper.js +4 -2
- package/dist/es2019/ui/SyncBlockSSRReactContextsProvider.js +1 -1
- package/dist/es2019/ui/SyncedLocationDropdown.js +7 -6
- package/dist/es2019/ui/block-menu-components.js +2 -1
- package/dist/es2019/ui/floating-toolbar.js +9 -6
- package/dist/es2019/ui/quick-insert/SyncedBlockQuickInsertMenuItem.js +3 -3
- package/dist/es2019/ui/quick-insert/getSyncedBlockQuickInsertComponents.js +1 -1
- package/dist/es2019/ui/quick-insert.js +3 -3
- package/dist/es2019/ui/toolbar-components.js +4 -2
- package/dist/esm/editor-commands/index.js +2 -2
- package/dist/esm/nodeviews/bodiedSyncedBlock.js +3 -3
- package/dist/esm/nodeviews/syncedBlock.js +3 -2
- package/dist/esm/pm-plugins/main.js +6 -6
- package/dist/esm/pm-plugins/menu-and-toolbar-experiences.js +6 -2
- package/dist/esm/pm-plugins/utils/selection-decorations.js +1 -1
- package/dist/esm/pm-plugins/utils/utils.js +1 -1
- package/dist/esm/syncedBlockPlugin.js +2 -2
- package/dist/esm/ui/CreateSyncedBlockButton.js +6 -5
- package/dist/esm/ui/CreateSyncedBlockDropdownItem.js +7 -5
- package/dist/esm/ui/DeleteConfirmationModal.js +3 -3
- package/dist/esm/ui/Flag.js +4 -4
- package/dist/esm/ui/SourceSyncBlockPlaceholder.js +2 -2
- package/dist/esm/ui/SyncBlockLabel.js +2 -2
- package/dist/esm/ui/SyncBlockRefresher.js +2 -2
- package/dist/esm/ui/SyncBlockRendererWrapper.js +4 -2
- package/dist/esm/ui/SyncBlockSSRReactContextsProvider.js +1 -1
- package/dist/esm/ui/SyncedLocationDropdown.js +7 -6
- package/dist/esm/ui/block-menu-components.js +2 -1
- package/dist/esm/ui/floating-toolbar.js +9 -6
- package/dist/esm/ui/quick-insert/SyncedBlockQuickInsertMenuItem.js +3 -3
- package/dist/esm/ui/quick-insert/getSyncedBlockQuickInsertComponents.js +1 -1
- package/dist/esm/ui/quick-insert.js +3 -3
- package/dist/esm/ui/toolbar-components.js +4 -2
- package/dist/types/editor-actions/index.d.ts +1 -1
- package/dist/types/editor-commands/index.d.ts +7 -3
- package/dist/types/nodeviews/bodiedSyncedBlock.d.ts +6 -5
- package/dist/types/nodeviews/lazySyncedBlock.d.ts +1 -1
- package/dist/types/nodeviews/syncedBlock.d.ts +7 -5
- package/dist/types/pm-plugins/main.d.ts +4 -3
- package/dist/types/pm-plugins/menu-and-toolbar-experiences.d.ts +1 -1
- package/dist/types/pm-plugins/utils/handle-bodied-sync-block-creation.d.ts +1 -1
- package/dist/types/pm-plugins/utils/handle-bodied-sync-block-removal.d.ts +2 -2
- package/dist/types/pm-plugins/utils/ignore-dom-event.d.ts +1 -1
- package/dist/types/syncedBlockPluginType.d.ts +21 -18
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/ui/CreateSyncedBlockButton.d.ts +1 -1
- package/dist/types/ui/CreateSyncedBlockDropdownItem.d.ts +1 -1
- package/dist/types/ui/DeleteConfirmationModal.d.ts +2 -2
- package/dist/types/ui/Flag.d.ts +1 -1
- package/dist/types/ui/SyncBlockRefresher.d.ts +2 -2
- package/dist/types/ui/SyncBlockRendererWrapper.d.ts +2 -2
- package/dist/types/ui/SyncedLocationDropdown.d.ts +5 -2
- package/dist/types/ui/block-menu-components.d.ts +2 -2
- package/dist/types/ui/floating-toolbar.d.ts +3 -2
- package/dist/types/ui/getUnpublishedSourceType.d.ts +1 -1
- package/dist/types/ui/quick-insert/SyncedBlockQuickInsertMenuItem.d.ts +2 -2
- package/dist/types/ui/quick-insert/getSyncedBlockQuickInsertComponents.d.ts +2 -2
- package/dist/types/ui/quick-insert.d.ts +3 -3
- package/dist/types/ui/toolbar-components.d.ts +2 -2
- package/docs/0-intro.tsx +1 -1
- package/package.json +2 -2
package/dist/esm/ui/Flag.js
CHANGED
|
@@ -8,10 +8,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
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; }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
|
-
import {
|
|
12
|
-
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
|
-
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
|
|
14
|
-
import {
|
|
11
|
+
import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
|
|
12
|
+
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
13
|
+
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block/constants';
|
|
14
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
15
15
|
import AutoDismissFlag from '@atlaskit/flag/auto-dismiss-flag';
|
|
16
16
|
import AkFlag from '@atlaskit/flag/flag';
|
|
17
17
|
import { FlagGroup } from '@atlaskit/flag/flag-group';
|
|
@@ -10,8 +10,8 @@ import { useMemo } from 'react';
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
11
11
|
import { css, Global, jsx } from '@emotion/react';
|
|
12
12
|
import { useIntl } from 'react-intl';
|
|
13
|
-
import { placeholderTextMessages } from '@atlaskit/editor-common/messages';
|
|
14
|
-
import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
13
|
+
import { placeholderTextMessages } from '@atlaskit/editor-common/messages/placeholder-text';
|
|
14
|
+
import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
15
15
|
var getSourceSyncBlockPlaceholderStyles = function getSourceSyncBlockPlaceholderStyles(placeholderText) {
|
|
16
16
|
return css(_defineProperty({}, ".ProseMirror .".concat(BodiedSyncBlockSharedCssClassName.prefix, ".").concat(BodiedSyncBlockSharedCssClassName.empty, " .").concat(BodiedSyncBlockSharedCssClassName.content, "[contenteditable=\"true\"] > p:only-child"), {
|
|
17
17
|
position: 'relative',
|
|
@@ -4,8 +4,8 @@ import "./SyncBlockLabel.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
8
|
-
import { SyncBlockLabelSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
7
|
+
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
8
|
+
import { SyncBlockLabelSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
9
9
|
import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
|
|
10
10
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
|
|
3
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
4
4
|
// Component that manages synced block data synchronization.
|
|
5
5
|
// Uses provider-based GraphQL subscriptions for updates when online.
|
|
6
6
|
// Falls back to polling at regular intervals when offline.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { bind } from 'bind-event-listener';
|
|
4
|
-
import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
5
|
-
import { SyncBlockError
|
|
4
|
+
import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
5
|
+
import { SyncBlockError } from '@atlaskit/editor-synced-block-provider/common/types';
|
|
6
|
+
import { useFetchSyncBlockData } from '@atlaskit/editor-synced-block-provider/useFetchSyncBlockData';
|
|
7
|
+
import { useFetchSyncBlockTitle } from '@atlaskit/editor-synced-block-provider/useFetchSyncBlockTitle';
|
|
6
8
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
9
|
import { getUnpublishedSourceType } from './getUnpublishedSourceType';
|
|
8
10
|
import { SyncBlockLabel } from './SyncBlockLabel';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RawIntlProvider } from 'react-intl';
|
|
3
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
3
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
4
4
|
/**
|
|
5
5
|
* Wraps syncBlock nodeview children with the editor's actual IntlProvider during
|
|
6
6
|
* SSR streaming (renderToStaticMarkup). This ensures that components using
|
|
@@ -15,12 +15,13 @@ import { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
15
15
|
import { cx } from '@compiled/react';
|
|
16
16
|
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
17
17
|
import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
|
|
18
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { ArrowKeyNavigationType
|
|
23
|
-
import {
|
|
18
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
19
|
+
import Button from '@atlaskit/editor-common/FloatingToolbar/Button';
|
|
20
|
+
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
21
|
+
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block/constants';
|
|
22
|
+
import { ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu/ArrowKeyNavigationProvider/types';
|
|
23
|
+
import { DropdownContainer } from '@atlaskit/editor-common/ui-menu/DropdownContainer';
|
|
24
|
+
import { getPageIdAndTypeFromConfluencePageAri } from '@atlaskit/editor-synced-block-provider/clients/confluence/ari';
|
|
24
25
|
// eslint-disable-next-line import/order -- CI requires icon-lab imports before core icon imports.
|
|
25
26
|
import PageLiveDocIcon from '@atlaskit/icon-lab/core/page-live-doc';
|
|
26
27
|
import BugIcon from '@atlaskit/icon/core/bug';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TRANSFORM_MENU_SECTION,
|
|
2
|
+
import { TRANSFORM_MENU_SECTION, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM } from '@atlaskit/editor-common/block-menu/key';
|
|
3
|
+
import { TRANSFORM_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
|
|
3
4
|
import { CreateOrCopySyncedBlockDropdownItem } from './CreateSyncedBlockDropdownItem';
|
|
4
5
|
export var getBlockMenuComponents = function getBlockMenuComponents(api, enableSourceSyncedBlockCreation) {
|
|
5
6
|
return [{
|
|
@@ -3,13 +3,16 @@ 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 from 'react';
|
|
6
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
6
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
|
+
import Button from '@atlaskit/editor-common/FloatingToolbar/Button';
|
|
8
|
+
import commonMessages from '@atlaskit/editor-common/messages';
|
|
9
|
+
import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages/insert-block';
|
|
10
|
+
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
11
|
+
import { Side } from '@atlaskit/editor-common/selection';
|
|
12
|
+
import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
|
|
10
13
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
11
|
-
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/
|
|
12
|
-
import { SyncBlockError } from '@atlaskit/editor-synced-block-provider';
|
|
14
|
+
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/constants';
|
|
15
|
+
import { SyncBlockError } from '@atlaskit/editor-synced-block-provider/common/types';
|
|
13
16
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
14
17
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
15
18
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import {
|
|
5
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
6
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
7
6
|
import { messages as quickInsertMessages } from '@atlaskit/editor-common/quick-insert/messages';
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
8
8
|
import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
|
|
9
9
|
import { createSyncedBlock } from '../../editor-commands';
|
|
10
10
|
export var SyncedBlockQuickInsertMenuItem = function SyncedBlockQuickInsertMenuItem(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
3
3
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
4
4
|
import { STRUCTURE_SECTION, SYNCED_BLOCK_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
|
|
5
5
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "./quick-insert.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
|
+
import { IconSyncBlock } from '@atlaskit/editor-common/assets';
|
|
7
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
8
8
|
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { createSyncedBlock } from '../editor-commands';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { INSERT_BLOCK_SECTION,
|
|
3
|
-
import {
|
|
2
|
+
import { INSERT_BLOCK_SECTION, SYNCED_BLOCK_BUTTON, SYNCED_BLOCK_GROUP } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
|
+
import { INSERT_BLOCK_SECTION_RANK, SYNCED_BLOCK_SECTION_RANK } from '@atlaskit/editor-common/toolbar/rank';
|
|
4
|
+
import { Show } from '@atlaskit/editor-toolbar/show';
|
|
5
|
+
import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
|
|
4
6
|
import { CreateSyncedBlockButton } from './CreateSyncedBlockButton';
|
|
5
7
|
var SYNCED_BLOCK_PRIMARY_TOOLBAR_GROUP = {
|
|
6
8
|
type: SYNCED_BLOCK_GROUP.type,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
1
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
2
2
|
export declare const flushBodiedSyncBlocks: (syncBlockStore: SyncBlockStoreManager) => Promise<boolean>;
|
|
3
3
|
export declare const flushSyncBlocks: (syncBlockStore: SyncBlockStoreManager) => Promise<boolean>;
|
|
4
4
|
export declare const discardUnpublishedSyncBlocks: (syncBlockStore: SyncBlockStoreManager) => Promise<boolean>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
|
+
import { type INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
|
+
import type { TypeAheadInsert } from '@atlaskit/editor-common/types/type-ahead';
|
|
3
7
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
9
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
6
10
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
7
11
|
type createSyncedBlockProps = {
|
|
8
12
|
fireAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
3
|
-
import type { getPosHandler } from '@atlaskit/editor-common/react-node-view';
|
|
4
|
-
import type {
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
|
+
import type { getPosHandler } from '@atlaskit/editor-common/react-node-view/types';
|
|
4
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types/plugin-factory';
|
|
5
7
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
8
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
8
|
-
import type { SourceSyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
9
|
+
import type { SourceSyncBlockStoreManager, SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
9
10
|
import type { SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
10
11
|
export interface BodiedSyncBlockNodeViewProperties {
|
|
11
12
|
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
1
|
+
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view/types';
|
|
2
2
|
import type { SyncBlockNodeViewProperties } from './syncedBlock';
|
|
3
3
|
export declare const lazySyncBlockView: (props: SyncBlockNodeViewProperties) => NodeViewConstructor;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
5
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
6
|
-
import type { getPosHandler } from '@atlaskit/editor-common/react-node-view';
|
|
7
|
-
import type { ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
8
|
-
import type {
|
|
6
|
+
import type { getPosHandler } from '@atlaskit/editor-common/react-node-view/types';
|
|
7
|
+
import type { ReactComponentProps } from '@atlaskit/editor-common/react-node-view/types';
|
|
8
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
9
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
10
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types/plugin-factory';
|
|
9
11
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
10
12
|
import type { EditorView, Decoration, DecorationSource } from '@atlaskit/editor-prosemirror/view';
|
|
11
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
13
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
12
14
|
import type { SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
13
15
|
export interface SyncBlockNodeViewProps extends ReactComponentProps {
|
|
14
16
|
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type { ExtractInjectionAPI
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types/plugin-factory';
|
|
4
5
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
7
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
8
8
|
import type { DeletionMechanism } from '@atlaskit/editor-synced-block-provider/common/types';
|
|
9
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
9
10
|
import type { SyncedBlockFeedbackContext, SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
10
11
|
import type { ActiveFlag, BodiedSyncBlockDeletionStatus, RetryCreationPosMap } from '../types';
|
|
11
12
|
export declare const syncedBlockPluginKey: PluginKey;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
type ExperienceOptions = {
|
|
4
4
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { CreateSuccessEnrichment } from '@atlaskit/editor-synced-block-provider/errorHandling';
|
|
4
4
|
import type { SyncedBlockPlugin } from '../../syncedBlockPluginType';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
4
3
|
import type { DeletionMechanism, DeletionReason } from '@atlaskit/editor-synced-block-provider/common/types';
|
|
4
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
5
5
|
import type { SyncedBlockPlugin } from '../../syncedBlockPluginType';
|
|
6
6
|
import type { SyncBlockInfo } from '../../types';
|
|
7
7
|
export type TransactionRef = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { SyncedBlockPlugin } from '../../syncedBlockPluginType';
|
|
4
4
|
/**
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type { EditorCommand
|
|
3
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
4
|
+
import type { ExtractInjectionAPI, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
|
+
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types/selection';
|
|
4
6
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
5
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
|
-
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
|
|
7
|
-
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
|
|
8
|
-
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
9
|
-
import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format';
|
|
10
|
-
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
11
|
-
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
12
|
-
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
13
|
-
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
14
|
-
import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
|
|
15
|
-
import type { HistoryPlugin } from '@atlaskit/editor-plugin-history';
|
|
16
|
-
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
17
|
-
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
18
|
-
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry';
|
|
19
|
-
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
7
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
8
|
+
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls/blockControlsPluginType';
|
|
9
|
+
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
|
|
10
|
+
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity/connectivityPluginType';
|
|
11
|
+
import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format/contentFormatPluginType';
|
|
12
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations/decorationsPluginType';
|
|
13
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled/editorDisabledPluginType';
|
|
14
|
+
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode/editorViewmodePluginType';
|
|
15
|
+
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar/floatingToolbarPluginType';
|
|
16
|
+
import type { FocusPlugin } from '@atlaskit/editor-plugin-focus/focusPluginType';
|
|
17
|
+
import type { HistoryPlugin } from '@atlaskit/editor-plugin-history/historyPluginType';
|
|
18
|
+
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection/selection-plugin-type';
|
|
19
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar/toolbar-plugin-type';
|
|
20
|
+
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry/ui-control-registry-plugin-type';
|
|
21
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent/user-intent-plugin-type';
|
|
20
22
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
21
|
-
import type { SyncBlockDataProviderInterface
|
|
23
|
+
import type { SyncBlockDataProviderInterface } from '@atlaskit/editor-synced-block-provider/providers/types';
|
|
24
|
+
import type { UseFetchSyncBlockDataResult } from '@atlaskit/editor-synced-block-provider/useFetchSyncBlockData';
|
|
22
25
|
import type { SyncedBlockSharedState } from './types';
|
|
23
26
|
export type SyncedBlockEditorProps = {
|
|
24
27
|
defaultDocument: JSONDocNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { SyncBlockProduct
|
|
3
|
+
import type { SyncBlockProduct } from '@atlaskit/editor-synced-block-provider/common/types';
|
|
4
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
4
5
|
import type { SyncedBlockFeedbackContext } from '../syncedBlockPluginType';
|
|
5
6
|
export declare enum FLAG_ID {
|
|
6
7
|
CANNOT_DELETE_WHEN_OFFLINE = "cannot-delete-when-offline",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
4
4
|
type CreateSyncedBlockButtonProps = {
|
|
5
5
|
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
4
4
|
export declare const CreateOrCopySyncedBlockDropdownItem: ({ api, enableSourceSyncedBlockCreation, }: {
|
|
5
5
|
api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
4
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
5
5
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
6
6
|
export declare const DeleteConfirmationModal: ({ syncBlockStoreManager, api, editorView, }: {
|
|
7
7
|
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
package/dist/types/ui/Flag.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { MessageDescriptor } from 'react-intl';
|
|
7
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
8
8
|
import type { SyncedBlockPlugin, SyncedBlockPluginOptions } from '../syncedBlockPluginType';
|
|
9
9
|
import { type ActiveFlag } from '../types';
|
|
10
10
|
type Props = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
3
3
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
4
4
|
export declare const SyncBlockRefresher: ({ syncBlockStoreManager, api, }: {
|
|
5
5
|
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import {
|
|
4
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
5
5
|
import type { SyncedBlockPlugin, SyncedBlockRendererProps } from '../syncedBlockPluginType';
|
|
6
6
|
type Props = {
|
|
7
7
|
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { FloatingToolbarCustomRenderContext } from '@atlaskit/editor-common/types/floating-toolbar';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { ReferencesSourceInfo } from '@atlaskit/editor-synced-block-provider/common/types';
|
|
5
|
+
import type { SyncBlockSourceInfo } from '@atlaskit/editor-synced-block-provider/providers/types';
|
|
6
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
4
7
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
5
8
|
interface Props {
|
|
6
9
|
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterBlockMenuComponent } from '@atlaskit/editor-plugin-block-menu';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { RegisterBlockMenuComponent } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
|
|
3
3
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
4
4
|
export declare const getBlockMenuComponents: (api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined, enableSourceSyncedBlockCreation: boolean) => RegisterBlockMenuComponent[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types/floating-toolbar';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
5
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
5
6
|
import type { SyncedBlockFeedbackContext, SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
6
7
|
export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined, syncBlockStore: SyncBlockStoreManager, isLivePage?: boolean, onGiveFeedback?: (context: SyncedBlockFeedbackContext) => void) => FloatingToolbarConfig | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SyncBlockProduct } from '@atlaskit/editor-synced-block-provider';
|
|
1
|
+
import type { SyncBlockProduct } from '@atlaskit/editor-synced-block-provider/common/types';
|
|
2
2
|
export type UnpublishedSourceType = 'blog' | 'jiraWorkItem' | 'page';
|
|
3
3
|
export declare const getUnpublishedSourceType: ({ sourceAri, sourceProduct, }: {
|
|
4
4
|
sourceAri?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type QuickInsertMenuItemProps } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
5
5
|
import type { SyncedBlockPlugin } from '../../syncedBlockPluginType';
|
|
6
6
|
export declare const SyncedBlockQuickInsertMenuItem: ({ api, previewImageUrls, syncBlockStore, }: {
|
|
7
7
|
api: ExtractInjectionAPI<SyncedBlockPlugin> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
3
3
|
import type { RegisterMenuItem } from '@atlaskit/editor-ui-control-model/types';
|
|
4
4
|
import type { SyncedBlockPlugin } from '../../syncedBlockPluginType';
|
|
5
5
|
export declare const getSyncedBlockQuickInsertComponents: ({ api, syncBlockStore, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
1
|
+
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory/quick-insert-provider';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
|
+
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider/syncBlockStoreManager';
|
|
4
4
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
5
5
|
export declare const getQuickInsertConfig: (config: {
|
|
6
6
|
enableSourceCreation?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model/types';
|
|
3
3
|
import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<SyncedBlockPlugin>, enableSourceSyncedBlockCreation?: boolean) => RegisterComponent[];
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
|
|
4
|
-
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
|
|
4
|
+
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils/editor-use-only';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- md template from @atlaskit/docs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.6",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
54
54
|
"@atlaskit/primitives": "^22.5.0",
|
|
55
55
|
"@atlaskit/spinner": "20.4.4",
|
|
56
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
56
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
57
57
|
"@atlaskit/tokens": "20.4.1",
|
|
58
58
|
"@atlaskit/tooltip": "^24.4.0",
|
|
59
59
|
"@atlaskit/visually-hidden": "^4.4.0",
|