@atlaskit/editor-jira-transformer 8.5.2 → 8.6.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 +1613 -1600
- package/docs/0-intro.tsx +7 -7
- package/package.json +74 -76
- package/report.api.md +26 -25
package/docs/0-intro.tsx
CHANGED
|
@@ -20,11 +20,11 @@ This package provides a transformation from ProseMirror Node → wikimarkup and
|
|
|
20
20
|
serializer.parse(html);`}
|
|
21
21
|
|
|
22
22
|
${(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
<Example
|
|
24
|
+
packageName="@atlaskit/editor-jira-transformer"
|
|
25
|
+
Component={require('../examples/1-jira-html-input').default}
|
|
26
|
+
title="Jira HTML Input"
|
|
27
|
+
source={require('!!raw-loader!../examples/1-jira-html-input')}
|
|
28
|
+
/>
|
|
29
|
+
)}
|
|
30
30
|
`;
|
package/package.json
CHANGED
|
@@ -1,77 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-jira-transformer",
|
|
3
|
+
"version": "8.6.0",
|
|
4
|
+
"description": "Editor JIRA transformer's",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"atlaskit:src": "src/index.ts",
|
|
25
|
+
"af:exports": {
|
|
26
|
+
".": "./src/index.ts",
|
|
27
|
+
"./collapse-whitespace": "./src/collapse-whitespace.ts",
|
|
28
|
+
"./emojiHelper": "./src/emojiHelper.ts",
|
|
29
|
+
"./fix-doc": "./src/fix-doc.ts",
|
|
30
|
+
"./parse-html": "./src/parse-html.ts",
|
|
31
|
+
"./schema": "./src/schema.ts",
|
|
32
|
+
"./utils": "./src/utils.ts"
|
|
33
|
+
},
|
|
34
|
+
"atlassian": {
|
|
35
|
+
"team": "Editor: ADF",
|
|
36
|
+
"inPublicMirror": true,
|
|
37
|
+
"releaseModel": "continuous",
|
|
38
|
+
"website": {
|
|
39
|
+
"name": "Editor Jira Transformer"
|
|
40
|
+
},
|
|
41
|
+
"runReact18": false
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
|
45
|
+
"@atlaskit/editor-common": "^82.12.0",
|
|
46
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
47
|
+
"@babel/runtime": "^7.0.0",
|
|
48
|
+
"collapse-whitespace": "^1.1.6"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": "^16.8.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@atlaskit/activity": "^1.0.1",
|
|
55
|
+
"@atlaskit/editor-core": "^193.28.0",
|
|
56
|
+
"@atlaskit/editor-json-transformer": "^8.14.0",
|
|
57
|
+
"@atlaskit/editor-test-helpers": "^18.24.0",
|
|
58
|
+
"@atlaskit/theme": "^12.11.0",
|
|
59
|
+
"@atlaskit/tokens": "1.53.0",
|
|
60
|
+
"@atlaskit/util-data-test": "^17.9.0",
|
|
61
|
+
"@emotion/react": "^11.7.1",
|
|
62
|
+
"typescript": "~5.4.2"
|
|
63
|
+
},
|
|
64
|
+
"techstack": {
|
|
65
|
+
"@repo/internal": {
|
|
66
|
+
"design-tokens": [
|
|
67
|
+
"color"
|
|
68
|
+
],
|
|
69
|
+
"deprecation": "no-deprecated-imports",
|
|
70
|
+
"styling": [
|
|
71
|
+
"emotion"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-jira-transformer"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -21,14 +22,14 @@ import { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
|
|
|
21
22
|
|
|
22
23
|
// @public (undocumented)
|
|
23
24
|
export interface ContextInfo {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
// (undocumented)
|
|
26
|
+
baseUrl: string;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
clientId: string;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
collection: string;
|
|
31
|
+
// (undocumented)
|
|
32
|
+
token: string;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
// @public (undocumented)
|
|
@@ -36,29 +37,29 @@ export type CustomEncoder = (userId: string) => string;
|
|
|
36
37
|
|
|
37
38
|
// @public (undocumented)
|
|
38
39
|
export interface JIRACustomEncoders {
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
// (undocumented)
|
|
41
|
+
mention?: CustomEncoder;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
// @public (undocumented)
|
|
44
45
|
export class JIRATransformer implements Transformer_2<string> {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
constructor(
|
|
47
|
+
schema: Schema,
|
|
48
|
+
customEncoders?: JIRACustomEncoders,
|
|
49
|
+
mediaContextInfo?: MediaContextInfo,
|
|
50
|
+
);
|
|
51
|
+
// (undocumented)
|
|
52
|
+
encode(node: Node_2): string;
|
|
53
|
+
// (undocumented)
|
|
54
|
+
parse(html: string): Node_2;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
// @public (undocumented)
|
|
57
58
|
export interface MediaContextInfo {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
// (undocumented)
|
|
60
|
+
uploadContext?: ContextInfo;
|
|
61
|
+
// (undocumented)
|
|
62
|
+
viewContext?: ContextInfo;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
// (No @packageDocumentation comment for this package)
|
|
@@ -72,7 +73,7 @@ export interface MediaContextInfo {
|
|
|
72
73
|
|
|
73
74
|
```json
|
|
74
75
|
{
|
|
75
|
-
|
|
76
|
+
"react": "^16.8.0"
|
|
76
77
|
}
|
|
77
78
|
```
|
|
78
79
|
|