@atlaskit/editor-plugin-paste 0.0.1
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 +7 -0
- package/LICENSE.md +13 -0
- package/README.md +9 -0
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/types.js +5 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/types.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +29 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +29 -0
- package/package.json +100 -0
- package/report.api.md +72 -0
- package/tmp/api-report-tmp.d.ts +45 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @atlaskit/editor-plugin-paste
|
|
2
|
+
|
|
3
|
+
## 0.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41862](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41862) [`668cb3bcd3a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/668cb3bcd3a) - [ED-20519] Extract Paste Plugin: Moving the plugin type to a new package
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2023 Atlassian Pty Ltd
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# EditorPluginPaste
|
|
2
|
+
|
|
3
|
+
Paste plugin for @atlaskit/editor-core
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
`import EditorPluginPaste from '@atlaskit/editor-plugin-paste';`
|
|
8
|
+
|
|
9
|
+
Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/editor/editor-plugin-paste).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { PastePlugin, PastePluginOptions, PastePluginState, } from './types';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
2
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
+
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
5
|
+
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
6
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
7
|
+
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
8
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
9
|
+
export interface PastePluginState {
|
|
10
|
+
/** map of pasted macro link positions that will to be mapped through incoming transactions */
|
|
11
|
+
pastedMacroPositions: {
|
|
12
|
+
[key: string]: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type PastePluginOptions = {
|
|
16
|
+
cardOptions?: CardOptions;
|
|
17
|
+
sanitizePrivateContent?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type PastePlugin = NextEditorPlugin<'paste', {
|
|
20
|
+
pluginConfiguration: PastePluginOptions;
|
|
21
|
+
dependencies: [
|
|
22
|
+
FeatureFlagsPlugin,
|
|
23
|
+
OptionalPlugin<ListPlugin>,
|
|
24
|
+
BetterTypeHistoryPlugin,
|
|
25
|
+
OptionalPlugin<CardPlugin>,
|
|
26
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
27
|
+
OptionalPlugin<MediaPlugin>
|
|
28
|
+
];
|
|
29
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { PastePlugin, PastePluginOptions, PastePluginState, } from './types';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
2
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
+
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
5
|
+
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
6
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
7
|
+
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
8
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
9
|
+
export interface PastePluginState {
|
|
10
|
+
/** map of pasted macro link positions that will to be mapped through incoming transactions */
|
|
11
|
+
pastedMacroPositions: {
|
|
12
|
+
[key: string]: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type PastePluginOptions = {
|
|
16
|
+
cardOptions?: CardOptions;
|
|
17
|
+
sanitizePrivateContent?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type PastePlugin = NextEditorPlugin<'paste', {
|
|
20
|
+
pluginConfiguration: PastePluginOptions;
|
|
21
|
+
dependencies: [
|
|
22
|
+
FeatureFlagsPlugin,
|
|
23
|
+
OptionalPlugin<ListPlugin>,
|
|
24
|
+
BetterTypeHistoryPlugin,
|
|
25
|
+
OptionalPlugin<CardPlugin>,
|
|
26
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
27
|
+
OptionalPlugin<MediaPlugin>
|
|
28
|
+
];
|
|
29
|
+
}>;
|
package/package.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"inPublicMirror": false,
|
|
13
|
+
"releaseModel": "continuous"
|
|
14
|
+
},
|
|
15
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
16
|
+
"main": "dist/cjs/index.js",
|
|
17
|
+
"module": "dist/esm/index.js",
|
|
18
|
+
"module:es2019": "dist/es2019/index.js",
|
|
19
|
+
"types": "dist/types/index.d.ts",
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
">=4.5 <4.9": {
|
|
22
|
+
"*": [
|
|
23
|
+
"dist/types-ts4.5/*",
|
|
24
|
+
"dist/types-ts4.5/index.d.ts"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"atlaskit:src": "src/index.ts",
|
|
30
|
+
"af:exports": {
|
|
31
|
+
".": "./src/index.ts"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@atlaskit/editor-common": "^76.11.0",
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^0.2.0",
|
|
36
|
+
"@atlaskit/editor-plugin-better-type-history": "^0.1.0",
|
|
37
|
+
"@atlaskit/editor-plugin-card": "^0.10.0",
|
|
38
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-media": "^0.3.0",
|
|
40
|
+
"@babel/runtime": "^7.0.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": "^16.8.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@af/visual-regression": "*",
|
|
47
|
+
"@atlaskit/ssr": "*",
|
|
48
|
+
"@atlaskit/visual-regression": "*",
|
|
49
|
+
"@atlaskit/webdriver-runner": "*",
|
|
50
|
+
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
51
|
+
"@testing-library/react": "^12.1.5",
|
|
52
|
+
"react-dom": "^16.8.0",
|
|
53
|
+
"typescript": "~4.9.5",
|
|
54
|
+
"wait-for-expect": "^1.2.0"
|
|
55
|
+
},
|
|
56
|
+
"techstack": {
|
|
57
|
+
"@atlassian/frontend": {
|
|
58
|
+
"code-structure": [
|
|
59
|
+
"tangerine-next"
|
|
60
|
+
],
|
|
61
|
+
"import-structure": [
|
|
62
|
+
"atlassian-conventions"
|
|
63
|
+
],
|
|
64
|
+
"circular-dependencies": [
|
|
65
|
+
"file-and-folder-level"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"@repo/internal": {
|
|
69
|
+
"dom-events": "use-bind-event-listener",
|
|
70
|
+
"analytics": [
|
|
71
|
+
"analytics-next"
|
|
72
|
+
],
|
|
73
|
+
"design-tokens": [
|
|
74
|
+
"color"
|
|
75
|
+
],
|
|
76
|
+
"theming": [
|
|
77
|
+
"react-context"
|
|
78
|
+
],
|
|
79
|
+
"ui-components": [
|
|
80
|
+
"lite-mode"
|
|
81
|
+
],
|
|
82
|
+
"deprecation": [
|
|
83
|
+
"no-deprecated-imports"
|
|
84
|
+
],
|
|
85
|
+
"styling": [
|
|
86
|
+
"static",
|
|
87
|
+
"emotion"
|
|
88
|
+
],
|
|
89
|
+
"imports": [
|
|
90
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"techstackIgnore": {
|
|
95
|
+
"stricter": [
|
|
96
|
+
"@atlassian/tangerine/project-structure"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
100
|
+
}
|
package/report.api.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
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 [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
12
|
+
|
|
13
|
+
### Main Entry Types
|
|
14
|
+
|
|
15
|
+
<!--SECTION START: Main Entry Types-->
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
19
|
+
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
20
|
+
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
21
|
+
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
22
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
23
|
+
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
24
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
25
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
26
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
27
|
+
|
|
28
|
+
// @public (undocumented)
|
|
29
|
+
export type PastePlugin = NextEditorPlugin<
|
|
30
|
+
'paste',
|
|
31
|
+
{
|
|
32
|
+
pluginConfiguration: PastePluginOptions;
|
|
33
|
+
dependencies: [
|
|
34
|
+
FeatureFlagsPlugin,
|
|
35
|
+
OptionalPlugin<ListPlugin>,
|
|
36
|
+
BetterTypeHistoryPlugin,
|
|
37
|
+
OptionalPlugin<CardPlugin>,
|
|
38
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
39
|
+
OptionalPlugin<MediaPlugin>,
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
>;
|
|
43
|
+
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export type PastePluginOptions = {
|
|
46
|
+
cardOptions?: CardOptions;
|
|
47
|
+
sanitizePrivateContent?: boolean;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// @public (undocumented)
|
|
51
|
+
export interface PastePluginState {
|
|
52
|
+
pastedMacroPositions: {
|
|
53
|
+
[key: string]: number;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// (No @packageDocumentation comment for this package)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
<!--SECTION END: Main Entry Types-->
|
|
61
|
+
|
|
62
|
+
### Peer Dependencies
|
|
63
|
+
|
|
64
|
+
<!--SECTION START: Peer Dependencies-->
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"react": "^16.8.0"
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
<!--SECTION END: Peer Dependencies-->
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/editor-plugin-paste"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
+
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
9
|
+
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
10
|
+
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
11
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
+
import type { ListPlugin } from '@atlaskit/editor-plugin-list';
|
|
13
|
+
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
14
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
15
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
16
|
+
|
|
17
|
+
// @public (undocumented)
|
|
18
|
+
export type PastePlugin = NextEditorPlugin<'paste', {
|
|
19
|
+
pluginConfiguration: PastePluginOptions;
|
|
20
|
+
dependencies: [
|
|
21
|
+
FeatureFlagsPlugin,
|
|
22
|
+
OptionalPlugin<ListPlugin>,
|
|
23
|
+
BetterTypeHistoryPlugin,
|
|
24
|
+
OptionalPlugin<CardPlugin>,
|
|
25
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
26
|
+
OptionalPlugin<MediaPlugin>
|
|
27
|
+
];
|
|
28
|
+
}>;
|
|
29
|
+
|
|
30
|
+
// @public (undocumented)
|
|
31
|
+
export type PastePluginOptions = {
|
|
32
|
+
cardOptions?: CardOptions;
|
|
33
|
+
sanitizePrivateContent?: boolean;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// @public (undocumented)
|
|
37
|
+
export interface PastePluginState {
|
|
38
|
+
pastedMacroPositions: {
|
|
39
|
+
[key: string]: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// (No @packageDocumentation comment for this package)
|
|
44
|
+
|
|
45
|
+
```
|