@atlaskit/editor-jira-transformer 8.2.2 → 8.2.3

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,11 @@
1
1
  # @atlaskit/editor-jira-transformer
2
2
 
3
+ ## 8.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 8.2.2
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-jira-transformer",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-jira-transformer",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-jira-transformer",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-jira-transformer",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "description": "Editor JIRA transformer's",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,13 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.0 <4.5": {
17
- "*": [
18
- "dist/types-ts4.0/*"
19
- ]
20
- }
21
- },
22
15
  "sideEffects": false,
23
16
  "atlaskit:src": "src/index.ts",
24
17
  "atlassian": {
@@ -32,7 +25,7 @@
32
25
  },
33
26
  "dependencies": {
34
27
  "@atlaskit/adf-schema": "^24.0.0",
35
- "@atlaskit/editor-common": "^70.0.0",
28
+ "@atlaskit/editor-common": "^71.0.0",
36
29
  "@babel/runtime": "^7.0.0",
37
30
  "collapse-whitespace": "^1.1.6",
38
31
  "prosemirror-model": "1.14.3"
@@ -43,11 +36,11 @@
43
36
  "devDependencies": {
44
37
  "@atlaskit/activity": "^1.0.1",
45
38
  "@atlaskit/docs": "*",
46
- "@atlaskit/editor-core": "^173.0.0",
39
+ "@atlaskit/editor-core": "^176.0.0",
47
40
  "@atlaskit/editor-json-transformer": "^8.8.0",
48
41
  "@atlaskit/editor-test-helpers": "^17.2.0",
49
42
  "@atlaskit/theme": "^12.2.0",
50
- "@atlaskit/util-data-test": "^17.5.0",
43
+ "@atlaskit/util-data-test": "^17.6.0",
51
44
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
52
45
  "@emotion/react": "^11.7.1",
53
46
  "@types/prosemirror-model": "^1.11.0",
@@ -56,7 +49,11 @@
56
49
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
57
50
  "techstack": {
58
51
  "@repo/internal": {
59
- "theming": "tokens"
52
+ "theming": "tokens",
53
+ "deprecation": "no-deprecated-imports",
54
+ "styling": [
55
+ "emotion"
56
+ ]
60
57
  }
61
58
  }
62
59
  }
package/report.api.md CHANGED
@@ -1,68 +1,66 @@
1
- ## API Report File for "@atlaskit/editor-jira-transformer".
1
+ <!-- API Report Version: 2.2 -->
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ ## API Report File for "@atlaskit/editor-jira-transformer"
4
4
 
5
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
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
+
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
6
15
 
7
16
  ```ts
8
17
  import { Node as Node_2 } from 'prosemirror-model';
9
18
  import { Schema } from 'prosemirror-model';
10
19
  import { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
11
20
 
12
- export declare interface ContextInfo {
13
- clientId: string;
21
+ // @public (undocumented)
22
+ export interface ContextInfo {
23
+ // (undocumented)
14
24
  baseUrl: string;
15
- token: string;
25
+ // (undocumented)
26
+ clientId: string;
27
+ // (undocumented)
16
28
  collection: string;
29
+ // (undocumented)
30
+ token: string;
17
31
  }
18
32
 
19
- export declare type CustomEncoder = (userId: string) => string;
33
+ // @public (undocumented)
34
+ export type CustomEncoder = (userId: string) => string;
20
35
 
21
- export declare interface JIRACustomEncoders {
36
+ // @public (undocumented)
37
+ export interface JIRACustomEncoders {
38
+ // (undocumented)
22
39
  mention?: CustomEncoder;
23
40
  }
24
41
 
25
- export declare class JIRATransformer implements Transformer_2<string> {
26
- private schema;
27
- private customEncoders;
28
- private mediaContextInfo?;
29
- private doc;
42
+ // @public (undocumented)
43
+ export class JIRATransformer implements Transformer_2<string> {
30
44
  constructor(
31
45
  schema: Schema,
32
46
  customEncoders?: JIRACustomEncoders,
33
47
  mediaContextInfo?: MediaContextInfo,
34
48
  );
49
+ // (undocumented)
35
50
  encode(node: Node_2): string;
51
+ // (undocumented)
36
52
  parse(html: string): Node_2;
37
- private getContent;
38
- private encodeNode;
39
- private makeDocument;
40
- private encodeFragment;
41
- private encodeHeading;
42
- private encodeParagraph;
43
- private encodeText;
44
- private encodeHardBreak;
45
- private encodeHorizontalRule;
46
- private encodeBulletList;
47
- private encodeOrderedList;
48
- private encodeListItem;
49
- private encodeMention;
50
- private encodeEmoji;
51
- private encodeCodeBlock;
52
- private encodeBlockQuote;
53
- private encodeMediaGroup;
54
- private encodeMediaSingle;
55
- private addDataToNode;
56
- private buildURLWithContextInfo;
57
- private isImageMimeType;
58
- private encodeMedia;
59
- private encodeTable;
60
53
  }
61
54
 
62
- export declare interface MediaContextInfo {
63
- viewContext?: ContextInfo;
55
+ // @public (undocumented)
56
+ export interface MediaContextInfo {
57
+ // (undocumented)
64
58
  uploadContext?: ContextInfo;
59
+ // (undocumented)
60
+ viewContext?: ContextInfo;
65
61
  }
66
62
 
67
- export {};
63
+ // (No @packageDocumentation comment for this package)
68
64
  ```
65
+
66
+ <!--SECTION END: Main Entry Types-->
@@ -1,6 +0,0 @@
1
- declare module 'collapse-whitespace';
2
- export interface ICollapseWhitespace {
3
- (node: Node, blockTest?: (node: Node) => boolean): void;
4
- }
5
- declare const collapseWhitespace: ICollapseWhitespace;
6
- export default collapseWhitespace;
@@ -1 +0,0 @@
1
- export declare function mapImageToEmoji(imageElement: HTMLImageElement): string | null;
@@ -1 +0,0 @@
1
- export default function (doc: Document): Document;
@@ -1,48 +0,0 @@
1
- import { Node as PMNode, Schema } from 'prosemirror-model';
2
- import { Transformer } from '@atlaskit/editor-common/types';
3
- export declare type CustomEncoder = (userId: string) => string;
4
- export interface JIRACustomEncoders {
5
- mention?: CustomEncoder;
6
- }
7
- export interface ContextInfo {
8
- clientId: string;
9
- baseUrl: string;
10
- token: string;
11
- collection: string;
12
- }
13
- export interface MediaContextInfo {
14
- viewContext?: ContextInfo;
15
- uploadContext?: ContextInfo;
16
- }
17
- export declare class JIRATransformer implements Transformer<string> {
18
- private schema;
19
- private customEncoders;
20
- private mediaContextInfo?;
21
- private doc;
22
- constructor(schema: Schema, customEncoders?: JIRACustomEncoders, mediaContextInfo?: MediaContextInfo);
23
- encode(node: PMNode): string;
24
- parse(html: string): PMNode;
25
- private getContent;
26
- private encodeNode;
27
- private makeDocument;
28
- private encodeFragment;
29
- private encodeHeading;
30
- private encodeParagraph;
31
- private encodeText;
32
- private encodeHardBreak;
33
- private encodeHorizontalRule;
34
- private encodeBulletList;
35
- private encodeOrderedList;
36
- private encodeListItem;
37
- private encodeMention;
38
- private encodeEmoji;
39
- private encodeCodeBlock;
40
- private encodeBlockQuote;
41
- private encodeMediaGroup;
42
- private encodeMediaSingle;
43
- private addDataToNode;
44
- private buildURLWithContextInfo;
45
- private isImageMimeType;
46
- private encodeMedia;
47
- private encodeTable;
48
- }
@@ -1 +0,0 @@
1
- export default function (fragment: string): Document;
@@ -1 +0,0 @@
1
- export { isSchemaWithLists, isSchemaWithMentions, isSchemaWithLinks, isSchemaWithAdvancedTextFormattingMarks, isSchemaWithSubSupMark, isSchemaWithCodeBlock, isSchemaWithBlockQuotes, isSchemaWithMedia, isSchemaWithTextColor, isSchemaWithTables, } from '@atlaskit/adf-schema/schema-jira';
@@ -1,12 +0,0 @@
1
- import { Fragment, Mark, Node as PMNode, Schema, NodeType } from 'prosemirror-model';
2
- /**
3
- * Ensure that each node in the fragment is a block, wrapping
4
- * in a block node if necessary.
5
- */
6
- export declare function ensureBlocks(fragment: Fragment, schema: Schema, nodeType?: NodeType): Fragment;
7
- /**
8
- * This function will convert all content to inline nodes
9
- */
10
- export declare const ensureInline: (schema: Schema, content: Fragment, supportedMarks: Mark[]) => Fragment<any>;
11
- export declare function convert(content: Fragment, node: Node, schema: Schema): Fragment | PMNode | null | undefined;
12
- export declare function bfsOrder(root: Node): Node[];