@atlaskit/editor-plugin-synced-block 5.2.1 → 5.3.0

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/afm-jira/tsconfig.json +1 -1
  3. package/dist/cjs/editor-commands/index.js +43 -5
  4. package/dist/cjs/editor-commands/utils.js +20 -0
  5. package/dist/cjs/pm-plugins/menu-and-toolbar-experiences.js +267 -0
  6. package/dist/cjs/syncedBlockPlugin.js +21 -12
  7. package/dist/cjs/types/index.js +6 -3
  8. package/dist/cjs/ui/CreateSyncedBlockButton.js +2 -1
  9. package/dist/cjs/ui/CreateSyncedBlockDropdownItem.js +2 -1
  10. package/dist/cjs/ui/SyncBlockRefresher.js +18 -4
  11. package/dist/cjs/ui/SyncedLocationDropdown.js +14 -11
  12. package/dist/cjs/ui/floating-toolbar.js +21 -2
  13. package/dist/es2019/editor-commands/index.js +44 -4
  14. package/dist/es2019/editor-commands/utils.js +14 -0
  15. package/dist/es2019/pm-plugins/menu-and-toolbar-experiences.js +261 -0
  16. package/dist/es2019/syncedBlockPlugin.js +19 -12
  17. package/dist/es2019/types/index.js +5 -2
  18. package/dist/es2019/ui/CreateSyncedBlockButton.js +2 -1
  19. package/dist/es2019/ui/CreateSyncedBlockDropdownItem.js +2 -1
  20. package/dist/es2019/ui/SyncBlockRefresher.js +18 -4
  21. package/dist/es2019/ui/SyncedLocationDropdown.js +14 -11
  22. package/dist/es2019/ui/floating-toolbar.js +20 -3
  23. package/dist/esm/editor-commands/index.js +42 -4
  24. package/dist/esm/editor-commands/utils.js +14 -0
  25. package/dist/esm/pm-plugins/menu-and-toolbar-experiences.js +260 -0
  26. package/dist/esm/syncedBlockPlugin.js +21 -12
  27. package/dist/esm/types/index.js +5 -2
  28. package/dist/esm/ui/CreateSyncedBlockButton.js +2 -1
  29. package/dist/esm/ui/CreateSyncedBlockDropdownItem.js +2 -1
  30. package/dist/esm/ui/SyncBlockRefresher.js +18 -4
  31. package/dist/esm/ui/SyncedLocationDropdown.js +14 -11
  32. package/dist/esm/ui/floating-toolbar.js +22 -3
  33. package/dist/types/editor-commands/index.d.ts +8 -1
  34. package/dist/types/editor-commands/utils.d.ts +2 -0
  35. package/dist/types/pm-plugins/menu-and-toolbar-experiences.d.ts +12 -0
  36. package/dist/types/types/index.d.ts +5 -14
  37. package/dist/types-ts4.5/editor-commands/index.d.ts +8 -1
  38. package/dist/types-ts4.5/editor-commands/utils.d.ts +2 -0
  39. package/dist/types-ts4.5/pm-plugins/menu-and-toolbar-experiences.d.ts +12 -0
  40. package/dist/types-ts4.5/types/index.d.ts +5 -14
  41. package/package.json +3 -3
  42. package/dist/cjs/pm-plugins/experience-tracking/create-reference-experience.js +0 -113
  43. package/dist/cjs/pm-plugins/experience-tracking/create-source-experience.js +0 -169
  44. package/dist/cjs/pm-plugins/experience-tracking/delete-reference-experience.js +0 -175
  45. package/dist/cjs/pm-plugins/experience-tracking/delete-source-experience.js +0 -103
  46. package/dist/cjs/pm-plugins/experience-tracking/get-experience-tracking-plugins.js +0 -61
  47. package/dist/cjs/pm-plugins/experience-tracking/provider-only-experiences.js +0 -128
  48. package/dist/cjs/pm-plugins/utils/experience-tracking-utils.js +0 -85
  49. package/dist/es2019/pm-plugins/experience-tracking/create-reference-experience.js +0 -109
  50. package/dist/es2019/pm-plugins/experience-tracking/create-source-experience.js +0 -166
  51. package/dist/es2019/pm-plugins/experience-tracking/delete-reference-experience.js +0 -181
  52. package/dist/es2019/pm-plugins/experience-tracking/delete-source-experience.js +0 -98
  53. package/dist/es2019/pm-plugins/experience-tracking/get-experience-tracking-plugins.js +0 -46
  54. package/dist/es2019/pm-plugins/experience-tracking/provider-only-experiences.js +0 -127
  55. package/dist/es2019/pm-plugins/utils/experience-tracking-utils.js +0 -65
  56. package/dist/esm/pm-plugins/experience-tracking/create-reference-experience.js +0 -107
  57. package/dist/esm/pm-plugins/experience-tracking/create-source-experience.js +0 -163
  58. package/dist/esm/pm-plugins/experience-tracking/delete-reference-experience.js +0 -169
  59. package/dist/esm/pm-plugins/experience-tracking/delete-source-experience.js +0 -97
  60. package/dist/esm/pm-plugins/experience-tracking/get-experience-tracking-plugins.js +0 -55
  61. package/dist/esm/pm-plugins/experience-tracking/provider-only-experiences.js +0 -122
  62. package/dist/esm/pm-plugins/utils/experience-tracking-utils.js +0 -79
  63. package/dist/types/pm-plugins/experience-tracking/create-reference-experience.d.ts +0 -10
  64. package/dist/types/pm-plugins/experience-tracking/create-source-experience.d.ts +0 -10
  65. package/dist/types/pm-plugins/experience-tracking/delete-reference-experience.d.ts +0 -13
  66. package/dist/types/pm-plugins/experience-tracking/delete-source-experience.d.ts +0 -12
  67. package/dist/types/pm-plugins/experience-tracking/get-experience-tracking-plugins.d.ts +0 -5
  68. package/dist/types/pm-plugins/experience-tracking/provider-only-experiences.d.ts +0 -3
  69. package/dist/types/pm-plugins/utils/experience-tracking-utils.d.ts +0 -9
  70. package/dist/types-ts4.5/pm-plugins/experience-tracking/create-reference-experience.d.ts +0 -10
  71. package/dist/types-ts4.5/pm-plugins/experience-tracking/create-source-experience.d.ts +0 -10
  72. package/dist/types-ts4.5/pm-plugins/experience-tracking/delete-reference-experience.d.ts +0 -13
  73. package/dist/types-ts4.5/pm-plugins/experience-tracking/delete-source-experience.d.ts +0 -12
  74. package/dist/types-ts4.5/pm-plugins/experience-tracking/get-experience-tracking-plugins.d.ts +0 -5
  75. package/dist/types-ts4.5/pm-plugins/experience-tracking/provider-only-experiences.d.ts +0 -3
  76. package/dist/types-ts4.5/pm-plugins/utils/experience-tracking-utils.d.ts +0 -9
@@ -1,122 +0,0 @@
1
- import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
2
- import { Experience, ExperienceCheckTimeout } from '@atlaskit/editor-common/experiences';
3
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import { EXPERIENCE_ABORT_REASON } from '../../types';
6
- var pluginKey = new PluginKey('providerOnlySyncBlockExperiences');
7
- export var getProviderOnlyExperiencesPlugin = function getProviderOnlyExperiencesPlugin(_ref) {
8
- var refs = _ref.refs,
9
- dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
10
- syncBlockStore = _ref.syncBlockStore;
11
- var saveSourceExperience = getSaveSourceExperience({
12
- refs: refs,
13
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
14
- });
15
- syncBlockStore.sourceManager.setSaveExperience(saveSourceExperience);
16
- var saveReferenceExperience = getSaveReferenceExperience({
17
- refs: refs,
18
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
19
- });
20
- var fetchExperience = getFetchExperience({
21
- refs: refs,
22
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
23
- });
24
- var fetchSourceInfoExperience = getFetchSourceInfoExperience({
25
- refs: refs,
26
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
27
- });
28
- syncBlockStore.referenceManager.setExperiences(fetchExperience, fetchSourceInfoExperience, saveReferenceExperience);
29
- return new SafePlugin({
30
- key: pluginKey,
31
- view: function view() {
32
- return {
33
- destroy: function destroy() {
34
- saveSourceExperience.abort({
35
- reason: EXPERIENCE_ABORT_REASON.EDITOR_DESTROYED
36
- });
37
- saveReferenceExperience.abort({
38
- reason: EXPERIENCE_ABORT_REASON.EDITOR_DESTROYED
39
- });
40
- fetchExperience.abort({
41
- reason: EXPERIENCE_ABORT_REASON.EDITOR_DESTROYED
42
- });
43
- fetchSourceInfoExperience.abort({
44
- reason: EXPERIENCE_ABORT_REASON.EDITOR_DESTROYED
45
- });
46
- }
47
- };
48
- }
49
- });
50
- };
51
-
52
- /**
53
- * This experience tracks when a source sync block is saved to the BE.
54
- *
55
- * Start: When the flush source sync block function is called.
56
- * Success: When the sync block save is successful within 1500ms of start.
57
- * Failure: When 1500ms passes without the sync block being successfully saved
58
- */
59
- var getSaveSourceExperience = function getSaveSourceExperience(_ref2) {
60
- var dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent;
61
- return new Experience(ACTION_SUBJECT.SYNCED_BLOCK, {
62
- actionSubjectId: ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE,
63
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
64
- checks: [new ExperienceCheckTimeout({
65
- durationMs: 1500
66
- })]
67
- });
68
- };
69
-
70
- /**
71
- * This experience tracks when a reference sync block is saved to the BE.
72
- *
73
- * Start: When the flush sync block function is called.
74
- * Success: When the sync block save is successful within 1500ms of start.
75
- * Failure: When 1500ms passes without the sync block being successfully saved
76
- */
77
- var getSaveReferenceExperience = function getSaveReferenceExperience(_ref3) {
78
- var dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent;
79
- return new Experience(ACTION_SUBJECT.SYNCED_BLOCK, {
80
- actionSubjectId: ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_UPDATE,
81
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
82
- checks: [new ExperienceCheckTimeout({
83
- durationMs: 1500
84
- })]
85
- });
86
- };
87
-
88
- /**
89
- * This experience tracks when a reference sync block data is fetched from the BE.
90
- *
91
- * Start: When the fetchNodesData function is called.
92
- * Success: When the fetching the data is successful within 1500ms of start.
93
- * Failure: When 1500ms passes without the data being successfully fetched, or the fetch fails
94
- */
95
- var getFetchExperience = function getFetchExperience(_ref4) {
96
- var dispatchAnalyticsEvent = _ref4.dispatchAnalyticsEvent;
97
- return new Experience(ACTION_SUBJECT.SYNCED_BLOCK, {
98
- actionSubjectId: ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH,
99
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
100
- checks: [new ExperienceCheckTimeout({
101
- durationMs: 1500
102
- })]
103
- });
104
- };
105
-
106
- /**
107
- * This experience tracks when a reference sync block source info data (title, url) is fetched from the BE.
108
- *
109
- * Start: When the fetchSourceInfo function is called.
110
- * Success: When the fetching the data is successful within 2500ms of start.
111
- * Failure: When 2500ms passes without the data being successfully fetched, or the fetch fails
112
- */
113
- var getFetchSourceInfoExperience = function getFetchSourceInfoExperience(_ref5) {
114
- var dispatchAnalyticsEvent = _ref5.dispatchAnalyticsEvent;
115
- return new Experience(ACTION_SUBJECT.SYNCED_BLOCK, {
116
- actionSubjectId: ACTION_SUBJECT_ID.SYNCED_BLOCK_GET_SOURCE_INFO,
117
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
118
- checks: [new ExperienceCheckTimeout({
119
- durationMs: 2500
120
- })]
121
- });
122
- };
@@ -1,79 +0,0 @@
1
- import { pmHistoryPluginKey } from '@atlaskit/editor-common/utils';
2
- import { findChildren } from '@atlaskit/editor-prosemirror/utils';
3
- var targetEl;
4
- export var getTarget = function getTarget(containerElement) {
5
- if (!targetEl) {
6
- var element = containerElement === null || containerElement === void 0 ? void 0 : containerElement.querySelector('.ProseMirror');
7
- if (!element || !(element instanceof HTMLElement)) {
8
- return null;
9
- }
10
- targetEl = element;
11
- }
12
- return targetEl;
13
- };
14
- export var wasSyncBlockDeletedOrAddedByHistory = function wasSyncBlockDeletedOrAddedByHistory(tr, oldState, newState) {
15
- var historyMeta = tr.getMeta(pmHistoryPluginKey);
16
- if (!Boolean(historyMeta)) {
17
- return {};
18
- }
19
- var syncBlock = newState.schema.nodes.syncBlock;
20
- var oldSyncBlockNodes = findChildren(oldState.doc, function (node) {
21
- return node.type === syncBlock;
22
- });
23
- var newSyncBlockNodes = findChildren(newState.doc, function (node) {
24
- return node.type === syncBlock;
25
- });
26
- var oldSyncBlockIds = new Set(oldSyncBlockNodes.map(function (nodeWithPos) {
27
- return nodeWithPos.node.attrs.localId;
28
- }).filter(function (localId) {
29
- return Boolean(localId);
30
- }));
31
- var newSyncBlockIds = new Set(newSyncBlockNodes.map(function (nodeWithPos) {
32
- return nodeWithPos.node.attrs.localId;
33
- }).filter(function (localId) {
34
- return Boolean(localId);
35
- }));
36
- var hasDeletedSyncBlock = Array.from(oldSyncBlockIds).some(function (localId) {
37
- return !newSyncBlockIds.has(localId);
38
- });
39
- var hasAddedSyncBlock = Array.from(newSyncBlockIds).some(function (localId) {
40
- return !oldSyncBlockIds.has(localId);
41
- });
42
- return {
43
- hasDeletedSyncBlock: hasDeletedSyncBlock,
44
- hasAddedSyncBlock: hasAddedSyncBlock,
45
- isUndo: historyMeta.redo === false
46
- };
47
- };
48
- var getResourceIds = function getResourceIds(nodes, resourceIds, query) {
49
- nodes.forEach(function (node) {
50
- if (!(node instanceof HTMLElement)) {
51
- return;
52
- }
53
- var syncBlockElements = node.querySelectorAll(query);
54
- syncBlockElements.forEach(function (element) {
55
- var resourceId = element.getAttribute('resourceid');
56
- if (resourceId) {
57
- resourceIds.push(resourceId);
58
- }
59
- });
60
- });
61
- };
62
- export var getAddedResourceIds = function getAddedResourceIds(mutations, query) {
63
- var resourceIds = [];
64
- mutations.forEach(function (mutation) {
65
- if (mutation.type === 'childList') {
66
- getResourceIds(mutation.addedNodes, resourceIds, query);
67
- }
68
- });
69
- return resourceIds;
70
- };
71
- export var getRemovedResourceIds = function getRemovedResourceIds(mutations, query) {
72
- var resourceIds = [];
73
- mutations.forEach(function (mutation) {
74
- if (mutation.type === 'childList') {
75
- getResourceIds(mutation.removedNodes, resourceIds, query);
76
- }
77
- });
78
- return resourceIds;
79
- };
@@ -1,10 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { type ExperienceOptions } from '../../types';
3
- /**
4
- * This experience tracks when a reference sync block is inserted.
5
- *
6
- * Start: When user pastes a sync block from editor and createSyncedBlock is called
7
- * Success: When the sync block is added to the DOM within 500ms of start
8
- * Failure: When 500ms passes without the reference sync block being added to the DOM
9
- */
10
- export declare const getCreateReferenceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: ExperienceOptions) => SafePlugin<any>;
@@ -1,10 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { type ProviderExperienceOptions } from '../../types';
3
- /**
4
- * This experience tracks when a source sync block is inserted.
5
- *
6
- * Start: When user inserts a sync block via block menu, quick insert or pinned toolbar
7
- * Success: When the sync block is added to the DOM within 3000ms of start
8
- * Failure: When 3000ms passes without the source sync block being added to the DOM
9
- */
10
- export declare const getCreateSourceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore, }: ProviderExperienceOptions) => SafePlugin<any>;
@@ -1,13 +0,0 @@
1
- import { Experience } from '@atlaskit/editor-common/experiences';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { type ExperienceOptions, type ProviderExperienceOptions } from '../../types';
4
- /**
5
- * This experience tracks when a reference sync block is deleted.
6
- *
7
- * Start: When user deletes ref sync block from toolbar, presses delete when cursor is in front of ref sync block,
8
- * presses any key with a ref sync block selected, cuts with a ref sync block selected, triggers undo/redo that deletes a ref sync block
9
- * Success: When the sync block is removed from the DOM within 2000ms of start
10
- * Failure: When 2000ms passes without the reference sync block being removed from the DOM
11
- */
12
- export declare const getDeleteReferenceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore, }: ProviderExperienceOptions) => SafePlugin<any>;
13
- export declare const getDeleteReferenceExperience: ({ refs, dispatchAnalyticsEvent }: ExperienceOptions) => Experience;
@@ -1,12 +0,0 @@
1
- import { Experience } from '@atlaskit/editor-common/experiences';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { type ExperienceOptions, type ProviderExperienceOptions } from '../../types';
4
- /**
5
- * This experience tracks when a source sync block is deleted.
6
- *
7
- * Start: When user clicks the delete button in the delete modal
8
- * Success: When the sync block is removed from the DOM within 2000ms of start
9
- * Failure: When 2000ms passes without the source sync block being removed from the DOM
10
- */
11
- export declare const getDeleteSourceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore, }: ProviderExperienceOptions) => SafePlugin<any>;
12
- export declare const getDeleteSourceExperience: ({ refs, dispatchAnalyticsEvent }: ExperienceOptions) => Experience;
@@ -1,5 +0,0 @@
1
- import type { ProviderExperienceOptions } from "../../types";
2
- export declare const getExperienceTrackingPlugins: ({ refs, dispatchAnalyticsEvent, syncBlockStore }: ProviderExperienceOptions) => {
3
- name: string;
4
- plugin: () => import("@atlaskit/editor-common/safe-plugin").SafePlugin<any>;
5
- }[];
@@ -1,3 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { type ProviderExperienceOptions } from '../../types';
3
- export declare const getProviderOnlyExperiencesPlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore }: ProviderExperienceOptions) => SafePlugin<any>;
@@ -1,9 +0,0 @@
1
- import type { EditorState, Transaction } from "@atlaskit/editor-prosemirror/state";
2
- export declare const getTarget: (containerElement: HTMLElement | undefined) => HTMLElement | null;
3
- export declare const wasSyncBlockDeletedOrAddedByHistory: (tr: Transaction, oldState: EditorState, newState: EditorState) => {
4
- hasAddedSyncBlock?: boolean;
5
- hasDeletedSyncBlock?: boolean;
6
- isUndo?: boolean;
7
- };
8
- export declare const getAddedResourceIds: (mutations: MutationRecord[], query: string) => string[];
9
- export declare const getRemovedResourceIds: (mutations: MutationRecord[], query: string) => string[];
@@ -1,10 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { type ExperienceOptions } from '../../types';
3
- /**
4
- * This experience tracks when a reference sync block is inserted.
5
- *
6
- * Start: When user pastes a sync block from editor and createSyncedBlock is called
7
- * Success: When the sync block is added to the DOM within 500ms of start
8
- * Failure: When 500ms passes without the reference sync block being added to the DOM
9
- */
10
- export declare const getCreateReferenceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: ExperienceOptions) => SafePlugin<any>;
@@ -1,10 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { type ProviderExperienceOptions } from '../../types';
3
- /**
4
- * This experience tracks when a source sync block is inserted.
5
- *
6
- * Start: When user inserts a sync block via block menu, quick insert or pinned toolbar
7
- * Success: When the sync block is added to the DOM within 3000ms of start
8
- * Failure: When 3000ms passes without the source sync block being added to the DOM
9
- */
10
- export declare const getCreateSourceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore, }: ProviderExperienceOptions) => SafePlugin<any>;
@@ -1,13 +0,0 @@
1
- import { Experience } from '@atlaskit/editor-common/experiences';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { type ExperienceOptions, type ProviderExperienceOptions } from '../../types';
4
- /**
5
- * This experience tracks when a reference sync block is deleted.
6
- *
7
- * Start: When user deletes ref sync block from toolbar, presses delete when cursor is in front of ref sync block,
8
- * presses any key with a ref sync block selected, cuts with a ref sync block selected, triggers undo/redo that deletes a ref sync block
9
- * Success: When the sync block is removed from the DOM within 2000ms of start
10
- * Failure: When 2000ms passes without the reference sync block being removed from the DOM
11
- */
12
- export declare const getDeleteReferenceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore, }: ProviderExperienceOptions) => SafePlugin<any>;
13
- export declare const getDeleteReferenceExperience: ({ refs, dispatchAnalyticsEvent }: ExperienceOptions) => Experience;
@@ -1,12 +0,0 @@
1
- import { Experience } from '@atlaskit/editor-common/experiences';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { type ExperienceOptions, type ProviderExperienceOptions } from '../../types';
4
- /**
5
- * This experience tracks when a source sync block is deleted.
6
- *
7
- * Start: When user clicks the delete button in the delete modal
8
- * Success: When the sync block is removed from the DOM within 2000ms of start
9
- * Failure: When 2000ms passes without the source sync block being removed from the DOM
10
- */
11
- export declare const getDeleteSourceExperiencePlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore, }: ProviderExperienceOptions) => SafePlugin<any>;
12
- export declare const getDeleteSourceExperience: ({ refs, dispatchAnalyticsEvent }: ExperienceOptions) => Experience;
@@ -1,5 +0,0 @@
1
- import type { ProviderExperienceOptions } from "../../types";
2
- export declare const getExperienceTrackingPlugins: ({ refs, dispatchAnalyticsEvent, syncBlockStore }: ProviderExperienceOptions) => {
3
- name: string;
4
- plugin: () => import("@atlaskit/editor-common/safe-plugin").SafePlugin<any>;
5
- }[];
@@ -1,3 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { type ProviderExperienceOptions } from '../../types';
3
- export declare const getProviderOnlyExperiencesPlugin: ({ refs, dispatchAnalyticsEvent, syncBlockStore }: ProviderExperienceOptions) => SafePlugin<any>;
@@ -1,9 +0,0 @@
1
- import type { EditorState, Transaction } from "@atlaskit/editor-prosemirror/state";
2
- export declare const getTarget: (containerElement: HTMLElement | undefined) => HTMLElement | null;
3
- export declare const wasSyncBlockDeletedOrAddedByHistory: (tr: Transaction, oldState: EditorState, newState: EditorState) => {
4
- hasAddedSyncBlock?: boolean;
5
- hasDeletedSyncBlock?: boolean;
6
- isUndo?: boolean;
7
- };
8
- export declare const getAddedResourceIds: (mutations: MutationRecord[], query: string) => string[];
9
- export declare const getRemovedResourceIds: (mutations: MutationRecord[], query: string) => string[];