@atlaskit/editor-synced-block-provider 4.2.1 → 4.2.2
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 +7 -0
- package/dist/types/clients/block-service/ari.d.ts +1 -1
- package/dist/types/hooks/useFetchSyncBlockData.d.ts +1 -1
- package/dist/types/hooks/useFetchSyncBlockTitle.d.ts +1 -1
- package/dist/types/hooks/useHandleContentChanges.d.ts +1 -1
- package/dist/types/providers/block-service/blockServiceAPI.d.ts +3 -2
- package/dist/types/providers/syncBlockProvider.d.ts +3 -2
- package/dist/types/store-manager/referenceSyncBlockStoreManager.d.ts +4 -4
- package/dist/types/store-manager/sourceSyncBlockStoreManager.d.ts +2 -2
- package/dist/types/store-manager/syncBlockBatchFetcher.d.ts +1 -1
- package/dist/types/store-manager/syncBlockProviderFactoryManager.d.ts +3 -2
- package/dist/types/store-manager/syncBlockStoreManager.d.ts +1 -1
- package/dist/types/store-manager/syncBlockSubscriptionManager.d.ts +2 -2
- package/dist/types/utils/errorHandling.d.ts +2 -1
- package/dist/types/utils/experienceTracking.d.ts +1 -1
- package/dist/types-ts4.5/clients/block-service/ari.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useFetchSyncBlockData.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useFetchSyncBlockTitle.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useHandleContentChanges.d.ts +1 -1
- package/dist/types-ts4.5/providers/block-service/blockServiceAPI.d.ts +3 -2
- package/dist/types-ts4.5/providers/syncBlockProvider.d.ts +3 -2
- package/dist/types-ts4.5/store-manager/referenceSyncBlockStoreManager.d.ts +4 -4
- package/dist/types-ts4.5/store-manager/sourceSyncBlockStoreManager.d.ts +2 -2
- package/dist/types-ts4.5/store-manager/syncBlockBatchFetcher.d.ts +1 -1
- package/dist/types-ts4.5/store-manager/syncBlockProviderFactoryManager.d.ts +3 -2
- package/dist/types-ts4.5/store-manager/syncBlockStoreManager.d.ts +1 -1
- package/dist/types-ts4.5/store-manager/syncBlockSubscriptionManager.d.ts +2 -2
- package/dist/types-ts4.5/utils/errorHandling.d.ts +2 -1
- package/dist/types-ts4.5/utils/experienceTracking.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-provider
|
|
2
2
|
|
|
3
|
+
## 4.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5221db0d676ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5221db0d676ef) -
|
|
8
|
+
Mechanical type-import autofix for tables, collab, and synchrony packages.
|
|
9
|
+
|
|
3
10
|
## 4.2.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SyncBlockProduct } from '../../common/types';
|
|
2
2
|
/**
|
|
3
3
|
* Generates the block ARI from the source page ARI and the source block's resource ID.
|
|
4
4
|
* @param cloudId - the cloudId of the block. E.G the cloudId of the confluence page, or the cloudId of the Jira instance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { ProviderFactory, MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { SyncBlockInstance } from '../providers/types';
|
|
4
4
|
import type { SyncBlockStoreManager } from '../store-manager/syncBlockStoreManager';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SyncBlockStoreManager } from '../store-manager/syncBlockStoreManager';
|
|
3
3
|
export declare const useFetchSyncBlockTitle: (manager: SyncBlockStoreManager, syncBlockNode: PMNode) => string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SyncBlockStoreManager } from '../store-manager/syncBlockStoreManager';
|
|
3
3
|
export declare const useHandleContentChanges: (manager: SyncBlockStoreManager, syncBlockNode: PMNode) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SyncBlockError
|
|
1
|
+
import type { BlockContentResponse } from '../../clients/block-service/blockService';
|
|
2
|
+
import { SyncBlockError } from '../../common/types';
|
|
3
|
+
import type { ReferenceSyncBlockData, ResourceId, SyncBlockAttrs, SyncBlockData, SyncBlockProduct } from '../../common/types';
|
|
3
4
|
import type { ADFFetchProvider, ADFWriteProvider, BatchFetchConfig, BlockNodeIdentifiers, DeleteSyncBlockResult, SyncBlockInstance, UpdateReferenceSyncBlockResult, WriteSyncBlockResult } from '../types';
|
|
4
5
|
/**
|
|
5
6
|
* Extracts the ResourceId from a block ARI by returning the full path after synced-block/.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JSONNode } from '@atlaskit/editor-json-transformer/types';
|
|
2
|
-
import {
|
|
3
|
-
import { SyncBlockDataProviderInterface
|
|
2
|
+
import type { BlockInstanceId, DeletionReason, ReferenceSyncBlockData, ResourceId, SyncBlockAttrs, SyncBlockData, SyncBlockNode, SyncBlockProduct } from '../common/types';
|
|
3
|
+
import { SyncBlockDataProviderInterface } from './types';
|
|
4
|
+
import type { ADFFetchProvider, ADFWriteProvider, BlockSubscriptionErrorCallback, BlockUpdateCallback, DeleteSyncBlockResult, SyncBlockInstance, SyncBlockParentInfo, SyncBlockSourceInfo, SyncedBlockRendererProviderOptions, Unsubscribe, UpdateReferenceSyncBlockResult, WriteSyncBlockResult } from './types';
|
|
4
5
|
export declare class SyncedBlockProvider extends SyncBlockDataProviderInterface {
|
|
5
6
|
name: string;
|
|
6
7
|
private fetchProvider;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Experience } from '@atlaskit/editor-common/experiences';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { ProviderFactory, MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { ResourceId, SyncBlockNode, SyncBlockPrefetchData } from '../common/types';
|
|
6
6
|
import type { SyncBlockInstance, SubscriptionCallback, SyncBlockDataProviderInterface, TitleSubscriptionCallback, SyncBlockSourceInfo } from '../providers/types';
|
|
7
7
|
export declare class ReferenceSyncBlockStoreManager {
|
|
8
8
|
private dataProvider?;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import {
|
|
3
|
+
import type { ResourceId, SyncBlockAttrs, BlockInstanceId, DeletionReason, ReferenceSyncBlockData } from '../common/types';
|
|
4
4
|
import type { SyncBlockDataProviderInterface, SyncBlockSourceInfo } from '../providers/types';
|
|
5
5
|
export type ConfirmationCallback = (syncBlockIds: SyncBlockAttrs[], deleteReason: DeletionReason | undefined) => Promise<boolean>;
|
|
6
6
|
type OnDelete = () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { ResourceId, BlockInstanceId, SyncBlockNode } from '../common/types';
|
|
3
3
|
import type { SubscriptionCallback } from '../providers/types';
|
|
4
4
|
export interface SyncBlockBatchFetcherDeps {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProviderFactory
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
4
|
import type { ResourceId } from '../common/types';
|
|
4
5
|
import type { SyncBlockInstance, SyncBlockDataProviderInterface } from '../providers/types';
|
|
5
6
|
export interface SyncBlockProviderFactoryManagerDeps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
2
|
+
import type { BlockInstanceId, ReferencesSourceInfo, ResourceId } from '../common/types';
|
|
3
3
|
import type { SyncBlockDataProviderInterface } from '../providers/types';
|
|
4
4
|
import { ReferenceSyncBlockStoreManager } from './referenceSyncBlockStoreManager';
|
|
5
5
|
import { SourceSyncBlockStoreManager } from './sourceSyncBlockStoreManager';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { ResourceId, BlockInstanceId } from '../common/types';
|
|
4
4
|
import type { SyncBlockInstance, SubscriptionCallback, SyncBlockDataProviderInterface, SyncBlockSourceInfo, TitleSubscriptionCallback } from '../providers/types';
|
|
5
5
|
export interface SyncBlockSubscriptionManagerDeps {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { RendererSyncBlockEventPayload, OperationalAEP, SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
export declare const stringifyError: (error: unknown) => string | undefined;
|
|
3
4
|
export declare const getErrorPayload: <T extends ACTION_SUBJECT_ID>(actionSubjectId: T, error: string, resourceId?: string) => OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, T, {
|
|
4
5
|
error: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DispatchAnalyticsEvent, SyncBlockEventPayload, RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { Experience } from '@atlaskit/editor-common/experiences';
|
|
3
3
|
export declare const createExperienceDispatcher: (fireAnalyticsEvent?: ((payload: SyncBlockEventPayload) => void) | ((payload: RendererSyncBlockEventPayload) => void)) => DispatchAnalyticsEvent;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SyncBlockProduct } from '../../common/types';
|
|
2
2
|
/**
|
|
3
3
|
* Generates the block ARI from the source page ARI and the source block's resource ID.
|
|
4
4
|
* @param cloudId - the cloudId of the block. E.G the cloudId of the confluence page, or the cloudId of the Jira instance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { ProviderFactory, MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { SyncBlockInstance } from '../providers/types';
|
|
4
4
|
import type { SyncBlockStoreManager } from '../store-manager/syncBlockStoreManager';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SyncBlockStoreManager } from '../store-manager/syncBlockStoreManager';
|
|
3
3
|
export declare const useFetchSyncBlockTitle: (manager: SyncBlockStoreManager, syncBlockNode: PMNode) => string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SyncBlockStoreManager } from '../store-manager/syncBlockStoreManager';
|
|
3
3
|
export declare const useHandleContentChanges: (manager: SyncBlockStoreManager, syncBlockNode: PMNode) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SyncBlockError
|
|
1
|
+
import type { BlockContentResponse } from '../../clients/block-service/blockService';
|
|
2
|
+
import { SyncBlockError } from '../../common/types';
|
|
3
|
+
import type { ReferenceSyncBlockData, ResourceId, SyncBlockAttrs, SyncBlockData, SyncBlockProduct } from '../../common/types';
|
|
3
4
|
import type { ADFFetchProvider, ADFWriteProvider, BatchFetchConfig, BlockNodeIdentifiers, DeleteSyncBlockResult, SyncBlockInstance, UpdateReferenceSyncBlockResult, WriteSyncBlockResult } from '../types';
|
|
4
5
|
/**
|
|
5
6
|
* Extracts the ResourceId from a block ARI by returning the full path after synced-block/.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JSONNode } from '@atlaskit/editor-json-transformer/types';
|
|
2
|
-
import {
|
|
3
|
-
import { SyncBlockDataProviderInterface
|
|
2
|
+
import type { BlockInstanceId, DeletionReason, ReferenceSyncBlockData, ResourceId, SyncBlockAttrs, SyncBlockData, SyncBlockNode, SyncBlockProduct } from '../common/types';
|
|
3
|
+
import { SyncBlockDataProviderInterface } from './types';
|
|
4
|
+
import type { ADFFetchProvider, ADFWriteProvider, BlockSubscriptionErrorCallback, BlockUpdateCallback, DeleteSyncBlockResult, SyncBlockInstance, SyncBlockParentInfo, SyncBlockSourceInfo, SyncedBlockRendererProviderOptions, Unsubscribe, UpdateReferenceSyncBlockResult, WriteSyncBlockResult } from './types';
|
|
4
5
|
export declare class SyncedBlockProvider extends SyncBlockDataProviderInterface {
|
|
5
6
|
name: string;
|
|
6
7
|
private fetchProvider;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Experience } from '@atlaskit/editor-common/experiences';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { ProviderFactory, MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { ResourceId, SyncBlockNode, SyncBlockPrefetchData } from '../common/types';
|
|
6
6
|
import type { SyncBlockInstance, SubscriptionCallback, SyncBlockDataProviderInterface, TitleSubscriptionCallback, SyncBlockSourceInfo } from '../providers/types';
|
|
7
7
|
export declare class ReferenceSyncBlockStoreManager {
|
|
8
8
|
private dataProvider?;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import {
|
|
3
|
+
import type { ResourceId, SyncBlockAttrs, BlockInstanceId, DeletionReason, ReferenceSyncBlockData } from '../common/types';
|
|
4
4
|
import type { SyncBlockDataProviderInterface, SyncBlockSourceInfo } from '../providers/types';
|
|
5
5
|
export type ConfirmationCallback = (syncBlockIds: SyncBlockAttrs[], deleteReason: DeletionReason | undefined) => Promise<boolean>;
|
|
6
6
|
type OnDelete = () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { ResourceId, BlockInstanceId, SyncBlockNode } from '../common/types';
|
|
3
3
|
import type { SubscriptionCallback } from '../providers/types';
|
|
4
4
|
export interface SyncBlockBatchFetcherDeps {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProviderFactory
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
4
|
import type { ResourceId } from '../common/types';
|
|
4
5
|
import type { SyncBlockInstance, SyncBlockDataProviderInterface } from '../providers/types';
|
|
5
6
|
export interface SyncBlockProviderFactoryManagerDeps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
2
|
+
import type { BlockInstanceId, ReferencesSourceInfo, ResourceId } from '../common/types';
|
|
3
3
|
import type { SyncBlockDataProviderInterface } from '../providers/types';
|
|
4
4
|
import { ReferenceSyncBlockStoreManager } from './referenceSyncBlockStoreManager';
|
|
5
5
|
import { SourceSyncBlockStoreManager } from './sourceSyncBlockStoreManager';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { ResourceId, BlockInstanceId } from '../common/types';
|
|
4
4
|
import type { SyncBlockInstance, SubscriptionCallback, SyncBlockDataProviderInterface, SyncBlockSourceInfo, TitleSubscriptionCallback } from '../providers/types';
|
|
5
5
|
export interface SyncBlockSubscriptionManagerDeps {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { RendererSyncBlockEventPayload, OperationalAEP, SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
export declare const stringifyError: (error: unknown) => string | undefined;
|
|
3
4
|
export declare const getErrorPayload: <T extends ACTION_SUBJECT_ID>(actionSubjectId: T, error: string, resourceId?: string) => OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, T, {
|
|
4
5
|
error: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DispatchAnalyticsEvent, SyncBlockEventPayload, RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { Experience } from '@atlaskit/editor-common/experiences';
|
|
3
3
|
export declare const createExperienceDispatcher: (fireAnalyticsEvent?: ((payload: SyncBlockEventPayload) => void) | ((payload: RendererSyncBlockEventPayload) => void)) => DispatchAnalyticsEvent;
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
30
30
|
"@atlaskit/node-data-provider": "^9.0.0",
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
32
|
-
"@atlaskit/tmp-editor-statsig": "^46.
|
|
32
|
+
"@atlaskit/tmp-editor-statsig": "^46.2.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@compiled/react": "^0.20.0",
|
|
35
35
|
"graphql-ws": "^5.14.2",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"uuid": "^3.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@atlaskit/editor-common": "^112.
|
|
41
|
+
"@atlaskit/editor-common": "^112.10.0",
|
|
42
42
|
"react": "^18.2.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"name": "@atlaskit/editor-synced-block-provider",
|
|
84
|
-
"version": "4.2.
|
|
84
|
+
"version": "4.2.2",
|
|
85
85
|
"description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
|
|
86
86
|
"author": "Atlassian Pty Ltd",
|
|
87
87
|
"license": "Apache-2.0",
|