@atlaskit/editor-plugin-paste 17.0.8 → 17.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 17.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 17.0.9
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 17.0.8
4
21
 
5
22
  ### Patch Changes
@@ -31,7 +31,7 @@ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-ex
31
31
  var _fg = require("@atlaskit/platform-feature-flags/fg");
32
32
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
33
33
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
34
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
34
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
35
35
  var _actions = require("../editor-actions/actions");
36
36
  var _commands = require("../editor-commands/commands");
37
37
  var _media = require("../pm-plugins/media");
@@ -615,7 +615,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
615
615
  if (slice.content.childCount && slice.content.lastChild.type === schema.nodes.codeBlock) {
616
616
  slice = new _model.Slice(slice.content, 0, 0);
617
617
  }
618
- if (!(0, _experiments.editorExperiment)('single_column_layouts', true)) {
618
+ if (!(0, _editorExperiment.editorExperiment)('single_column_layouts', true)) {
619
619
  slice = (0, _transforms.transformSingleColumnLayout)(slice, schema);
620
620
  }
621
621
  slice = (0, _transforms.transformSliceToRemoveMacroId)(slice, schema);
@@ -21,7 +21,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
23
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
24
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
24
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
25
25
  import { PastePluginActionTypes } from '../editor-actions/actions';
26
26
  import { splitParagraphs, upgradeTextToLists } from '../editor-commands/commands';
27
27
  import { transformSliceForMedia, transformSliceToCorrectMediaWrapper, transformSliceToMediaSingleWithNewExperience, unwrapNestedMediaElements } from '../pm-plugins/media';
@@ -26,7 +26,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
26
26
  import { fg } from '@atlaskit/platform-feature-flags/fg';
27
27
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
28
28
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
29
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
29
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
30
30
  import { PastePluginActionTypes } from '../editor-actions/actions';
31
31
  import { splitParagraphs, upgradeTextToLists } from '../editor-commands/commands';
32
32
  import { transformSliceForMedia, transformSliceToCorrectMediaWrapper, transformSliceToMediaSingleWithNewExperience, unwrapNestedMediaElements } from '../pm-plugins/media';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "17.0.8",
3
+ "version": "17.1.0",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,38 +20,38 @@
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
22
  "@atlaskit/adf-schema": "^57.2.0",
23
- "@atlaskit/adf-utils": "^20.7.0",
24
- "@atlaskit/code": "^19.1.0",
25
- "@atlaskit/editor-markdown-transformer": "^6.2.0",
26
- "@atlaskit/editor-plugin-analytics": "^16.0.0",
23
+ "@atlaskit/adf-utils": "^20.8.0",
24
+ "@atlaskit/code": "^19.2.0",
25
+ "@atlaskit/editor-markdown-transformer": "^6.3.0",
26
+ "@atlaskit/editor-plugin-analytics": "^16.1.0",
27
27
  "@atlaskit/editor-plugin-annotation": "^16.0.0",
28
- "@atlaskit/editor-plugin-better-type-history": "^16.0.0",
29
- "@atlaskit/editor-plugin-card": "^22.0.0",
30
- "@atlaskit/editor-plugin-expand": "^17.0.0",
31
- "@atlaskit/editor-plugin-extension": "^19.0.0",
32
- "@atlaskit/editor-plugin-feature-flags": "^15.0.0",
33
- "@atlaskit/editor-plugin-list": "^18.0.0",
34
- "@atlaskit/editor-plugin-media": "^18.0.0",
35
- "@atlaskit/editor-plugin-mentions": "^18.1.0",
28
+ "@atlaskit/editor-plugin-better-type-history": "^16.1.0",
29
+ "@atlaskit/editor-plugin-card": "^22.1.0",
30
+ "@atlaskit/editor-plugin-expand": "^17.1.0",
31
+ "@atlaskit/editor-plugin-extension": "^19.1.0",
32
+ "@atlaskit/editor-plugin-feature-flags": "^15.1.0",
33
+ "@atlaskit/editor-plugin-list": "^18.1.0",
34
+ "@atlaskit/editor-plugin-media": "^18.1.0",
35
+ "@atlaskit/editor-plugin-mentions": "^18.2.0",
36
36
  "@atlaskit/editor-prosemirror": "^8.0.0",
37
- "@atlaskit/editor-tables": "^3.0.0",
38
- "@atlaskit/flag": "^18.4.0",
39
- "@atlaskit/icon": "^37.5.0",
37
+ "@atlaskit/editor-tables": "^3.1.0",
38
+ "@atlaskit/flag": "^18.5.0",
39
+ "@atlaskit/icon": "^37.6.0",
40
40
  "@atlaskit/insm": "^3.0.0",
41
- "@atlaskit/linking-common": "^12.0.0",
42
- "@atlaskit/media-client": "^37.5.0",
43
- "@atlaskit/media-common": "^14.5.0",
41
+ "@atlaskit/linking-common": "^12.1.0",
42
+ "@atlaskit/media-client": "^37.6.0",
43
+ "@atlaskit/media-common": "^14.6.0",
44
44
  "@atlaskit/platform-feature-experiments": "^0.3.0",
45
- "@atlaskit/platform-feature-flags": "^2.1.0",
45
+ "@atlaskit/platform-feature-flags": "^2.2.0",
46
46
  "@atlaskit/prosemirror-history": "^1.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
48
- "@atlaskit/tokens": "^16.9.0",
47
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
48
+ "@atlaskit/tokens": "^16.10.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "lodash": "^4.17.21",
51
51
  "uuid": "^3.1.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^120.7.0",
54
+ "@atlaskit/editor-common": "^120.9.0",
55
55
  "react": "^18.2.0 || ^19.2.0",
56
56
  "react-dom": "^18.2.0 || ^19.2.0",
57
57
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
package/report.api.md DELETED
@@ -1,94 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-plugin-paste"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
20
- import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
21
- import type { CardOptions } from '@atlaskit/editor-common/card';
22
- import type { CardPlugin } from '@atlaskit/editor-plugin-card';
23
- import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
24
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
25
- import type { ListPlugin } from '@atlaskit/editor-plugin-list';
26
- import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
27
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
28
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
29
- import type { PasteSource } from '@atlaskit/editor-common/analytics';
30
- import type { Slice } from '@atlaskit/editor-prosemirror/model';
31
-
32
- // @public (undocumented)
33
- export type LastContentPasted = {
34
- isPlainText: boolean;
35
- text?: string;
36
- isShiftPressed: boolean;
37
- pasteStartPos: number;
38
- pasteEndPos: number;
39
- pastedSlice: Slice;
40
- pastedAt: number;
41
- pasteSource: PasteSource;
42
- };
43
-
44
- // @public (undocumented)
45
- export type PastePlugin = NextEditorPlugin<
46
- 'paste',
47
- {
48
- pluginConfiguration: PastePluginOptions;
49
- dependencies: [
50
- OptionalPlugin<FeatureFlagsPlugin>,
51
- OptionalPlugin<ListPlugin>,
52
- BetterTypeHistoryPlugin,
53
- OptionalPlugin<CardPlugin>,
54
- OptionalPlugin<AnalyticsPlugin>,
55
- OptionalPlugin<MediaPlugin>,
56
- OptionalPlugin<ExtensionPlugin>,
57
- ];
58
- sharedState: {
59
- lastContentPasted: LastContentPasted | null;
60
- };
61
- }
62
- >;
63
-
64
- // @public (undocumented)
65
- export type PastePluginOptions = {
66
- cardOptions?: CardOptions;
67
- sanitizePrivateContent?: boolean;
68
- };
69
-
70
- // @public (undocumented)
71
- export interface PastePluginState {
72
- // (undocumented)
73
- lastContentPasted: LastContentPasted | null;
74
- pastedMacroPositions: {
75
- [key: string]: number;
76
- };
77
- }
78
-
79
- // (No @packageDocumentation comment for this package)
80
- ```
81
-
82
- <!--SECTION END: Main Entry Types-->
83
-
84
- ### Peer Dependencies
85
-
86
- <!--SECTION START: Peer Dependencies-->
87
-
88
- ```json
89
- {
90
- "react": "^16.8.0"
91
- }
92
- ```
93
-
94
- <!--SECTION END: Peer Dependencies-->