@atlaskit/editor-synced-block-provider 4.3.1 → 4.3.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.
@@ -1,4 +1,5 @@
1
1
  import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
2
+ import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode';
2
3
  import type { BlockInstanceId, ReferencesSourceInfo, ResourceId } from '../common/types';
3
4
  import type { SyncBlockDataProviderInterface } from '../providers/types';
4
5
  import { ReferenceSyncBlockStoreManager } from './referenceSyncBlockStoreManager';
@@ -10,11 +11,12 @@ export declare class SyncBlockStoreManager {
10
11
  private fireAnalyticsEvent?;
11
12
  private fetchReferencesExperience;
12
13
  private fetchSourceInfoExperience;
13
- constructor(dataProvider?: SyncBlockDataProviderInterface);
14
+ constructor(dataProvider?: SyncBlockDataProviderInterface, viewMode?: ViewMode);
14
15
  fetchReferencesSourceInfo(resourceId: ResourceId, blockInstanceId: BlockInstanceId, isSourceSyncBlock: boolean): Promise<ReferencesSourceInfo>;
15
16
  setFireAnalyticsEvent(fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void): void;
16
17
  get referenceManager(): ReferenceSyncBlockStoreManager;
17
18
  get sourceManager(): SourceSyncBlockStoreManager;
18
19
  destroy(): void;
20
+ private getUnregisteredReferences;
19
21
  }
20
22
  export declare const useMemoizedSyncBlockStoreManager: (dataProvider?: SyncBlockDataProviderInterface, fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void) => SyncBlockStoreManager;
@@ -1,10 +1,12 @@
1
1
  import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
2
2
  import type { Experience } from '@atlaskit/editor-common/experiences';
3
3
  import type { ProviderFactory, MediaProvider } from '@atlaskit/editor-common/provider-factory';
4
+ import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode';
4
5
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
6
  import type { BlockInstanceId, ResourceId, SyncBlockNode, SyncBlockPrefetchData } from '../common/types';
6
7
  import type { SyncBlockInstance, SubscriptionCallback, SyncBlockDataProviderInterface, TitleSubscriptionCallback, SyncBlockSourceInfo } from '../providers/types';
7
8
  export declare class ReferenceSyncBlockStoreManager {
9
+ private viewMode?;
8
10
  private dataProvider?;
9
11
  private isCacheDirty;
10
12
  private fireAnalyticsEvent?;
@@ -22,7 +24,7 @@ export declare class ReferenceSyncBlockStoreManager {
22
24
  private _subscriptionManager;
23
25
  private _providerFactoryManager;
24
26
  private _batchFetcher;
25
- constructor(dataProvider?: SyncBlockDataProviderInterface);
27
+ constructor(dataProvider?: SyncBlockDataProviderInterface, viewMode?: ViewMode);
26
28
  /**
27
29
  * Enables or disables real-time GraphQL subscriptions for block updates.
28
30
  * When enabled, the store manager will subscribe to real-time updates
@@ -1,4 +1,5 @@
1
1
  import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
2
+ import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode';
2
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
4
  import type { ResourceId, SyncBlockAttrs, BlockInstanceId, DeletionReason, ReferenceSyncBlockData } from '../common/types';
4
5
  import type { SyncBlockDataProviderInterface, SyncBlockSourceInfo } from '../providers/types';
@@ -7,6 +8,7 @@ type OnDelete = () => void;
7
8
  type OnCompletion = (success: boolean) => void;
8
9
  type DestroyCallback = () => void;
9
10
  export declare class SourceSyncBlockStoreManager {
11
+ private viewMode?;
10
12
  private dataProvider?;
11
13
  private fireAnalyticsEvent?;
12
14
  private syncBlockCache;
@@ -19,7 +21,7 @@ export declare class SourceSyncBlockStoreManager {
19
21
  private saveExperience;
20
22
  private deleteExperience;
21
23
  private fetchSourceInfoExperience;
22
- constructor(dataProvider?: SyncBlockDataProviderInterface);
24
+ constructor(dataProvider?: SyncBlockDataProviderInterface, viewMode?: ViewMode);
23
25
  /**
24
26
  * Register a callback to be invoked after flush() completes.
25
27
  * Used by the pm-plugin to dispatch a transaction so that
@@ -1,4 +1,5 @@
1
1
  import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
2
+ import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode';
2
3
  import type { BlockInstanceId, ReferencesSourceInfo, ResourceId } from '../common/types';
3
4
  import type { SyncBlockDataProviderInterface } from '../providers/types';
4
5
  import { ReferenceSyncBlockStoreManager } from './referenceSyncBlockStoreManager';
@@ -10,11 +11,12 @@ export declare class SyncBlockStoreManager {
10
11
  private fireAnalyticsEvent?;
11
12
  private fetchReferencesExperience;
12
13
  private fetchSourceInfoExperience;
13
- constructor(dataProvider?: SyncBlockDataProviderInterface);
14
+ constructor(dataProvider?: SyncBlockDataProviderInterface, viewMode?: ViewMode);
14
15
  fetchReferencesSourceInfo(resourceId: ResourceId, blockInstanceId: BlockInstanceId, isSourceSyncBlock: boolean): Promise<ReferencesSourceInfo>;
15
16
  setFireAnalyticsEvent(fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void): void;
16
17
  get referenceManager(): ReferenceSyncBlockStoreManager;
17
18
  get sourceManager(): SourceSyncBlockStoreManager;
18
19
  destroy(): void;
20
+ private getUnregisteredReferences;
19
21
  }
20
22
  export declare const useMemoizedSyncBlockStoreManager: (dataProvider?: SyncBlockDataProviderInterface, fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void) => SyncBlockStoreManager;
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": "^54.0.0",
32
+ "@atlaskit/tmp-editor-statsig": "^54.1.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "@compiled/react": "^0.20.0",
35
35
  "graphql-ws": "^5.14.2",
@@ -81,7 +81,7 @@
81
81
  }
82
82
  },
83
83
  "name": "@atlaskit/editor-synced-block-provider",
84
- "version": "4.3.1",
84
+ "version": "4.3.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",