@atlaskit/editor-plugin-track-changes 10.0.18 → 10.0.20

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-track-changes
2
2
 
3
+ ## 10.0.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.19
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 10.0.18
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-track-changes",
3
- "version": "10.0.18",
3
+ "version": "10.0.20",
4
4
  "description": "ShowDiff plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/button": "^23.11.0",
32
32
  "@atlaskit/editor-plugin-history": "11.0.0",
33
33
  "@atlaskit/editor-plugin-primary-toolbar": "^12.0.0",
34
- "@atlaskit/editor-plugin-show-diff": "9.1.0",
34
+ "@atlaskit/editor-plugin-show-diff": "9.1.2",
35
35
  "@atlaskit/editor-plugin-toolbar": "^8.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^7.3.0",
37
37
  "@atlaskit/editor-toolbar": "^1.10.0",
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/track-changes-plugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/track-changes-plugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/track-changes-plugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/track-changes-plugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/track-changes-plugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/track-changes-plugin-type.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/track-changes-plugin-type.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/track-changes-plugin-type.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/track-changes-plugin-type.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/track-changes-plugin-type.d.ts"
15
8
  }
@@ -1 +0,0 @@
1
- export type { TrackChangesPlugin, TrackChangesPluginOptions } from '../trackChangesPluginType';
@@ -1 +0,0 @@
1
- export { trackChangesPlugin } from '../trackChangesPlugin';
@@ -1,2 +0,0 @@
1
- export { trackChangesPlugin } from './trackChangesPlugin';
2
- export type { TrackChangesPlugin, TrackChangesPluginOptions } from './trackChangesPluginType';
@@ -1,8 +0,0 @@
1
- import type { InvertableStep } from './invertableStep';
2
- /**
3
- * Returns the filtered steps to ensure we don't track an entire document worth of changes
4
- */
5
- export declare function filterSteps(steps: InvertableStep[], allocations: Set<number>): {
6
- allocations: Set<number>;
7
- steps: InvertableStep[];
8
- };
@@ -1,7 +0,0 @@
1
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
2
- export declare class InvertableStep {
3
- readonly step: Step;
4
- readonly inverted: Step;
5
- readonly allocation: number;
6
- constructor(step: Step, inverted: Step, allocation: number);
7
- }
@@ -1,4 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { TrackChangesPlugin } from '../trackChangesPluginType';
4
- export declare function keymapPlugin(api?: ExtractInjectionAPI<TrackChangesPlugin>): SafePlugin;
@@ -1,16 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import type { TrackChangesPlugin } from '../trackChangesPluginType';
6
- import { InvertableStep } from './invertableStep';
7
- export declare const trackChangesPluginKey: PluginKey<TrackChangesPluginState>;
8
- type TrackChangesPluginState = {
9
- allocations: Set<number>;
10
- isShowDiffAvailable: boolean;
11
- shouldChangesBeDisplayed: boolean;
12
- steps: InvertableStep[];
13
- };
14
- export declare const getBaselineFromSteps: (doc: PMNode, steps: InvertableStep[]) => PMNode | undefined;
15
- export declare const createTrackChangesPlugin: (api: ExtractInjectionAPI<TrackChangesPlugin> | undefined) => SafePlugin<TrackChangesPluginState>;
16
- export {};
@@ -1 +0,0 @@
1
- export declare const MAX_STEPS_FROM_BASELINE = 10;
@@ -1,4 +0,0 @@
1
- export declare enum TOGGLE_TRACK_CHANGES_ACTION {
2
- TOGGLE_TRACK_CHANGES = "TOGGLE_TRACK_CHANGES",
3
- RESET_BASELINE = "RESET_BASELINE"
4
- }
@@ -1,2 +0,0 @@
1
- import type { TrackChangesPlugin } from './trackChangesPluginType';
2
- export declare const trackChangesPlugin: TrackChangesPlugin;
@@ -1,59 +0,0 @@
1
- import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { HistoryPlugin } from '@atlaskit/editor-plugin-history';
3
- import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
4
- import type { ShowDiffPlugin } from '@atlaskit/editor-plugin-show-diff';
5
- import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
6
- export interface TrackChangesPluginOptions {
7
- /**
8
- * Custom wrapper component for the track changes button.
9
- */
10
- ButtonWrapper?: React.ComponentType<{
11
- children: React.ReactNode;
12
- }>;
13
- /**
14
- * Whether the track changes button should be shown on the toolbar.
15
- * Defaults to false.
16
- */
17
- showOnToolbar?: boolean;
18
- }
19
- export type TrackChangesPlugin = NextEditorPlugin<'trackChanges', {
20
- commands: {
21
- /**
22
- * Resets the baseline used for tracking changes in the editor.
23
- */
24
- resetBaseline: EditorCommand;
25
- /**
26
- * Toggles the displaying of changes in the editor.
27
- */
28
- toggleChanges: EditorCommand;
29
- };
30
- dependencies: [
31
- /**
32
- * Primary toolbar plugin for registering the track changes button.
33
- */
34
- OptionalPlugin<PrimaryToolbarPlugin>,
35
- /**
36
- * For ensuring the tracked changes align with the history
37
- */
38
- OptionalPlugin<HistoryPlugin>,
39
- /**
40
- * Show diff plugin for showing the changes in a diff view.
41
- */
42
- ShowDiffPlugin,
43
- OptionalPlugin<ToolbarPlugin>
44
- ];
45
- pluginConfiguration?: TrackChangesPluginOptions | undefined;
46
- sharedState: {
47
- /**
48
- * Whether the track changes feature is currently displaying changes.
49
- * Defaults to false.
50
- */
51
- isDisplayingChanges: boolean;
52
- /**
53
- * If there are changes in the document that determine if track changes button
54
- * should be enabled.
55
- * This will only be false initially before any changes in the session.
56
- */
57
- isShowDiffAvailable: boolean;
58
- };
59
- }>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { TrackChangesPlugin } from '../trackChangesPluginType';
4
- type TrackChangesToolbarButtonProps = {
5
- api: ExtractInjectionAPI<TrackChangesPlugin> | undefined;
6
- wrapper?: React.ComponentType<{
7
- children: React.ReactNode;
8
- }>;
9
- };
10
- export declare const TrackChangesToolbarButton: ({ api, wrapper: Wrapper, }: TrackChangesToolbarButtonProps) => React.JSX.Element;
11
- export {};
@@ -1,4 +0,0 @@
1
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
3
- import type { TrackChangesPlugin, TrackChangesPluginOptions } from '../trackChangesPluginType';
4
- export declare const getToolbarComponents: (api?: ExtractInjectionAPI<TrackChangesPlugin>, options?: TrackChangesPluginOptions) => RegisterComponent[];