@atlaskit/editor-plugin-show-diff 13.1.8 → 13.1.10
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 +16 -0
- package/dist/cjs/pm-plugins/calculateDiff/calculateDiffDecorations.js +7 -7
- package/dist/cjs/pm-plugins/enforceCustomStepRegisters.js +2 -2
- package/dist/cjs/pm-plugins/isExtendedEnabled.js +2 -2
- package/dist/cjs/pm-plugins/main.js +2 -2
- package/dist/es2019/pm-plugins/calculateDiff/calculateDiffDecorations.js +1 -1
- package/dist/es2019/pm-plugins/enforceCustomStepRegisters.js +1 -1
- package/dist/es2019/pm-plugins/isExtendedEnabled.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/calculateDiff/calculateDiffDecorations.js +1 -1
- package/dist/esm/pm-plugins/enforceCustomStepRegisters.js +1 -1
- package/dist/esm/pm-plugins/isExtendedEnabled.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/types/pm-plugins/calculateDiff/computeDiffChanges.d.ts +1 -1
- package/dist/types/pm-plugins/calculateDiff/diffBySteps.d.ts +1 -1
- package/dist/types/pm-plugins/calculateDiff/simplifySteps.d.ts +1 -1
- package/dist/types/pm-plugins/decorations/utils/getAttrChangeRanges.d.ts +1 -1
- package/dist/types/pm-plugins/decorations/utils/getMarkChangeRanges.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/showDiffPluginType.d.ts +2 -2
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-show-diff
|
|
2
2
|
|
|
3
|
+
## 13.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.1.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
14
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
15
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
16
|
+
changes.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 13.1.8
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _prosemirrorChangeset = require("prosemirror-changeset");
|
|
|
14
14
|
var _deprecatedPlatformFeatureExperiments = require("@atlaskit/editor-common/deprecated-platform-feature-experiments");
|
|
15
15
|
var _document = require("@atlaskit/editor-common/utils/document");
|
|
16
16
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
17
|
-
var
|
|
17
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
19
|
var _areDocsEqualByBlockStructureAndText = require("../areDocsEqualByBlockStructureAndText");
|
|
20
20
|
var _createAnchorDecorationWidgets = require("../decorations/createAnchorDecorationWidgets");
|
|
@@ -50,7 +50,7 @@ var getChanges = function getChanges(_ref) {
|
|
|
50
50
|
// The `smart` diff type is gated behind `platform_editor_ai_smart_diff`. When the gate is
|
|
51
51
|
// off, `smart` falls through to the default (`inline`) path below so behaviour degrades
|
|
52
52
|
// gracefully (see docs/smart-diff-design.md §3).
|
|
53
|
-
if (diffType === 'smart' && (0,
|
|
53
|
+
if (diffType === 'smart' && (0, _fg.fg)('platform_editor_ai_smart_diff')) {
|
|
54
54
|
var _changes = (0, _prosemirrorChangeset.simplifyChanges)(changeset.changes, tr.doc);
|
|
55
55
|
return (0, _classifySmartChanges.classifySmartChanges)({
|
|
56
56
|
changes: _changes,
|
|
@@ -220,7 +220,7 @@ var calculateDiffDecorationsInner = function calculateDiffDecorationsInner(_ref4
|
|
|
220
220
|
|
|
221
221
|
// Resolve the option against its gate once here, so every downstream inline/block builder
|
|
222
222
|
// receives the same value. When the gate is off the option is a no-op.
|
|
223
|
-
var hideAddedDiffsUnderline = hideAddedDiffsUnderlineParam && (0,
|
|
223
|
+
var hideAddedDiffsUnderline = hideAddedDiffsUnderlineParam && (0, _fg.fg)('platform_editor_ai_smart_diff');
|
|
224
224
|
var tr = state.tr;
|
|
225
225
|
var steppedDoc = originalDoc;
|
|
226
226
|
var attrSteps = [];
|
|
@@ -271,7 +271,7 @@ var calculateDiffDecorationsInner = function calculateDiffDecorationsInner(_ref4
|
|
|
271
271
|
// The attribute-aware encoder is only needed by the smart classifier and is
|
|
272
272
|
// gated with it; other diff types keep the library default so their output is
|
|
273
273
|
// unchanged.
|
|
274
|
-
var tokenEncoder = diffType === 'smart' && (0,
|
|
274
|
+
var tokenEncoder = diffType === 'smart' && (0, _fg.fg)('platform_editor_ai_smart_diff') ? _attrAwareTokenEncoder.attrAwareTokenEncoder : undefined;
|
|
275
275
|
var changeset = _prosemirrorChangeset.ChangeSet.create(originalDoc, undefined, tokenEncoder).addSteps(steppedDoc, stepMaps, tr.doc);
|
|
276
276
|
var changes = getChanges({
|
|
277
277
|
changeset: changeset,
|
|
@@ -300,7 +300,7 @@ var calculateDiffDecorationsInner = function calculateDiffDecorationsInner(_ref4
|
|
|
300
300
|
// Hoisted because it decides BOTH where the deleted widget is anchored and — since the
|
|
301
301
|
// widget pins whichever end of the range it sits at — how the indicator anchors below are
|
|
302
302
|
// allowed to move.
|
|
303
|
-
var isDeletedWidgetBelow = diffType === 'smart' && (0,
|
|
303
|
+
var isDeletedWidgetBelow = diffType === 'smart' && (0, _fg.fg)('platform_editor_ai_smart_diff') && isDeletedContentPlacedBelow({
|
|
304
304
|
change: change,
|
|
305
305
|
deletedDiffPlacement: deletedDiffPlacement,
|
|
306
306
|
inlineDeletedDiffPlacement: inlineDeletedDiffPlacement
|
|
@@ -319,7 +319,7 @@ var calculateDiffDecorationsInner = function calculateDiffDecorationsInner(_ref4
|
|
|
319
319
|
// return no style for paragraph/heading. So for node-level smart changes we instead
|
|
320
320
|
// emit ONE inline decoration per leaf text-bearing block within the range — the text
|
|
321
321
|
// gets highlighted, and structural gaps never do.
|
|
322
|
-
var isSmartNodeLevel = diffType === 'smart' && (0,
|
|
322
|
+
var isSmartNodeLevel = diffType === 'smart' && (0, _fg.fg)('platform_editor_ai_smart_diff') && (0, _helpers.smartChangeLevel)(change) === 'node';
|
|
323
323
|
// For a large inserted table, skip the per-cell inline decorations that
|
|
324
324
|
// freeze the browser on re-render. Only active in the AIFC experience.
|
|
325
325
|
var useCoarseTableDecoration = isSmartNodeLevel && (0, _expValEquals.expValEquals)('platform_editor_ai_new_aifc_editor_experience', 'isBackendReviewMomentEnabled', true) && isLargeInsertedTableRange(tr.doc, change.fromB, change.toB);
|
|
@@ -482,7 +482,7 @@ var calculateDiffDecorationsInner = function calculateDiffDecorationsInner(_ref4
|
|
|
482
482
|
})));
|
|
483
483
|
// If the original node position is known (e.g. a panel type change), also render
|
|
484
484
|
// the old block node as a "deleted" widget so the reviewer sees the before/after.
|
|
485
|
-
var isSmartNodeLevelAttrChange = diffType === 'smart' && (0,
|
|
485
|
+
var isSmartNodeLevelAttrChange = diffType === 'smart' && (0, _fg.fg)('platform_editor_ai_smart_diff') && (0, _expValEquals.expValEquals)('platform_editor_ai_new_aifc_editor_experience', 'isEnabled', true);
|
|
486
486
|
if (isSmartNodeLevelAttrChange && change.fromA !== undefined && change.toA !== undefined) {
|
|
487
487
|
var placeBelow = deletedDiffPlacement === 'bottom';
|
|
488
488
|
decorations.push.apply(decorations, (0, _toConsumableArray2.default)((0, _createNodeChangedDecorationWidget.createNodeChangedDecorationWidget)(_objectSpread(_objectSpread({
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.enforceCustomStepRegisters = void 0;
|
|
8
8
|
var adfCustomSteps = _interopRequireWildcard(require("@atlaskit/adf-schema/steps"));
|
|
9
9
|
var atlaskKitCustomSteps = _interopRequireWildcard(require("@atlaskit/custom-steps"));
|
|
10
|
-
var
|
|
10
|
+
var _transformOverride = require("@atlaskit/editor-prosemirror/transform-override");
|
|
11
11
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
12
|
// It is important to get all steps in that package
|
|
13
13
|
// Ignored via go/ees005
|
|
@@ -28,7 +28,7 @@ var enforceCustomStepRegisters = exports.enforceCustomStepRegisters = function e
|
|
|
28
28
|
try {
|
|
29
29
|
// Re-register if needed; ignore if already registered.
|
|
30
30
|
// @ts-expect-error Step.jsonID expects a step constructor.
|
|
31
|
-
|
|
31
|
+
_transformOverride.Step.jsonID(id, customStep);
|
|
32
32
|
} catch (_unused) {
|
|
33
33
|
// Step already registered.
|
|
34
34
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isExtendedEnabled = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
8
8
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
9
|
/**
|
|
10
10
|
* The "extended" diff pipeline is normally gated by `platform_editor_diff_plugin_extended`.
|
|
@@ -16,5 +16,5 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
16
16
|
* when `smart` is active even if `platform_editor_diff_plugin_extended` is off.
|
|
17
17
|
*/
|
|
18
18
|
var isExtendedEnabled = exports.isExtendedEnabled = function isExtendedEnabled(diffType) {
|
|
19
|
-
return (0, _expValEquals.expValEquals)('platform_editor_diff_plugin_extended', 'isEnabled', true) || diffType === 'smart' && (0,
|
|
19
|
+
return (0, _expValEquals.expValEquals)('platform_editor_diff_plugin_extended', 'isEnabled', true) || diffType === 'smart' && (0, _fg.fg)('platform_editor_ai_smart_diff');
|
|
20
20
|
};
|
|
@@ -10,7 +10,7 @@ var _expand = require("@atlaskit/editor-common/expand");
|
|
|
10
10
|
var _processRawValue = require("@atlaskit/editor-common/process-raw-value");
|
|
11
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
12
12
|
var _state2 = require("@atlaskit/editor-prosemirror/state");
|
|
13
|
-
var
|
|
13
|
+
var _transformOverride = require("@atlaskit/editor-prosemirror/transform-override");
|
|
14
14
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
15
15
|
var _calculateDiffDecorations = require("./calculateDiff/calculateDiffDecorations");
|
|
16
16
|
var _enforceCustomStepRegisters = require("./enforceCustomStepRegisters");
|
|
@@ -174,7 +174,7 @@ var createPlugin = exports.createPlugin = function createPlugin(config, getIntl,
|
|
|
174
174
|
view.dispatch(view.state.tr.setMeta(showDiffPluginKey, {
|
|
175
175
|
action: 'SHOW_DIFF',
|
|
176
176
|
steps: config.steps.map(function (step) {
|
|
177
|
-
return
|
|
177
|
+
return _transformOverride.Step.fromJSON(view.state.schema, step);
|
|
178
178
|
}),
|
|
179
179
|
originalDoc: (0, _processRawValue.processRawValue)(view.state.schema, config.originalDoc)
|
|
180
180
|
}));
|
|
@@ -4,7 +4,7 @@ import { ChangeSet, simplifyChanges } from 'prosemirror-changeset';
|
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/editor-common/deprecated-platform-feature-experiments';
|
|
5
5
|
import { areNodesEqualIgnoreAttrs } from '@atlaskit/editor-common/utils/document';
|
|
6
6
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import { areDocsEqualByBlockStructureAndText } from '../areDocsEqualByBlockStructureAndText';
|
|
10
10
|
import { createDocMarginAnchorWidget } from '../decorations/createAnchorDecorationWidgets';
|
|
@@ -6,7 +6,7 @@ import * as adfCustomSteps from '@atlaskit/adf-schema/steps';
|
|
|
6
6
|
// Ignored via go/ees005
|
|
7
7
|
// eslint-disable-next-line import/no-namespace
|
|
8
8
|
import * as atlaskKitCustomSteps from '@atlaskit/custom-steps';
|
|
9
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
9
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
10
10
|
export const enforceCustomStepRegisters = () => {
|
|
11
11
|
const tryToRegisterStep = obj => {
|
|
12
12
|
for (const customStep of Object.values(obj)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
3
|
/**
|
|
4
4
|
* The "extended" diff pipeline is normally gated by `platform_editor_diff_plugin_extended`.
|
|
@@ -2,7 +2,7 @@ import { toggleExpandRange } from '@atlaskit/editor-common/expand';
|
|
|
2
2
|
import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
5
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
6
6
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import { calculateDiffDecorations } from './calculateDiff/calculateDiffDecorations';
|
|
8
8
|
import { enforceCustomStepRegisters } from './enforceCustomStepRegisters';
|
|
@@ -12,7 +12,7 @@ import { ChangeSet, simplifyChanges } from 'prosemirror-changeset';
|
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/editor-common/deprecated-platform-feature-experiments';
|
|
13
13
|
import { areNodesEqualIgnoreAttrs } from '@atlaskit/editor-common/utils/document';
|
|
14
14
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
import { areDocsEqualByBlockStructureAndText } from '../areDocsEqualByBlockStructureAndText';
|
|
18
18
|
import { createDocMarginAnchorWidget } from '../decorations/createAnchorDecorationWidgets';
|
|
@@ -6,7 +6,7 @@ import * as adfCustomSteps from '@atlaskit/adf-schema/steps';
|
|
|
6
6
|
// Ignored via go/ees005
|
|
7
7
|
// eslint-disable-next-line import/no-namespace
|
|
8
8
|
import * as atlaskKitCustomSteps from '@atlaskit/custom-steps';
|
|
9
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
9
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
10
10
|
export var enforceCustomStepRegisters = function enforceCustomStepRegisters() {
|
|
11
11
|
var tryToRegisterStep = function tryToRegisterStep(obj) {
|
|
12
12
|
for (var _i = 0, _Object$values = Object.values(obj); _i < _Object$values.length; _i++) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
3
|
/**
|
|
4
4
|
* The "extended" diff pipeline is normally gated by `platform_editor_diff_plugin_extended`.
|
|
@@ -5,7 +5,7 @@ import { toggleExpandRange } from '@atlaskit/editor-common/expand';
|
|
|
5
5
|
import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
9
9
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import { calculateDiffDecorations } from './calculateDiff/calculateDiffDecorations';
|
|
11
11
|
import { enforceCustomStepRegisters } from './enforceCustomStepRegisters';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type Change } from 'prosemirror-changeset';
|
|
17
17
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
18
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
18
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
19
19
|
import type { DiffType, SmartDiffThresholds } from '../../showDiffPluginType';
|
|
20
20
|
export type ComputeDiffChangesParams = {
|
|
21
21
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Change } from 'prosemirror-changeset';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
export declare const diffBySteps: (originalDoc: PMNode, steps: Step[]) => Change[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
2
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
3
|
export declare function simplifySteps(steps: ProseMirrorStep[], originalDoc: PMNode): ProseMirrorStep[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
2
|
+
import type { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
3
|
export type InlineAttrChangeNodeName = 'date' | 'emoji' | 'mention' | 'status';
|
|
4
4
|
type StepRange = {
|
|
5
5
|
/**
|
|
@@ -3,7 +3,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform';
|
|
6
|
+
import { Step as ProseMirrorStep } from '@atlaskit/editor-prosemirror/transform-override';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { DeletedDiffPlacement, DiffDescriptor, DiffParams, DiffType, InlineDeletedDiffPlacement, ShowDiffPlugin, SmartDiffThresholds } from '../showDiffPluginType';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { StepJson } from '@atlaskit/editor-common/collab';
|
|
2
2
|
import type { NextEditorPlugin, EditorCommand, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
4
4
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
6
6
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
-
import type { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
7
|
+
import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
8
8
|
import type { SmartDiffThresholds as SmartDiffThresholdsInternal } from './pm-plugins/calculateDiff/smart/thresholds';
|
|
9
9
|
export type ColorScheme = 'standard' | 'traditional';
|
|
10
10
|
export type DiffType = 'inline' | 'block' | 'step' | 'smart';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-show-diff",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.10",
|
|
4
4
|
"description": "ShowDiff plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
29
29
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
31
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
31
|
+
"@atlaskit/tmp-editor-statsig": "^160.0.0",
|
|
32
32
|
"@atlaskit/tokens": "^16.8.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@compiled/react": "^1.0.2",
|
|
@@ -43,12 +43,17 @@
|
|
|
43
43
|
"@atlaskit/dropdown-menu": "^18.2.0",
|
|
44
44
|
"@atlaskit/editor-core": "^224.4.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^9.6.0",
|
|
46
|
+
"@atlaskit/editor-plugins": "^16.1.0",
|
|
46
47
|
"@atlaskit/form": "^17.1.0",
|
|
47
48
|
"@atlaskit/primitives": "^22.4.0",
|
|
48
49
|
"@atlaskit/section-message": "^10.1.0",
|
|
49
50
|
"@atlaskit/textarea": "^10.1.0",
|
|
51
|
+
"@atlaskit/textfield": "^10.1.0",
|
|
52
|
+
"@atlaskit/util-data-test": "^19.1.0",
|
|
50
53
|
"@atlassian/confluence-presets": "workspace:^",
|
|
51
54
|
"@atlassian/content-reconciliation": "^0.1.3506",
|
|
55
|
+
"@atlassian/editor-ai-injected-editors": "^28.0.0",
|
|
56
|
+
"@atlassian/editor-plugin-ai": "^69.2.0",
|
|
52
57
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
53
58
|
"react": "^19.2.0",
|
|
54
59
|
"react-intl": "^7.0.0"
|