@atlaskit/adf-utils 19.12.0 → 19.13.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 +58 -0
- package/afm-post-office/tsconfig.json +1 -1
- package/dist/cjs/empty-adf.js +3 -0
- package/dist/cjs/validator/rules.js +1 -0
- package/dist/es2019/builders.js +2 -0
- package/dist/es2019/empty-adf.js +3 -0
- package/dist/es2019/scrub.js +3 -0
- package/dist/es2019/transforms.js +3 -0
- package/dist/es2019/traverse.js +3 -0
- package/dist/es2019/validator/rules.js +1 -0
- package/dist/es2019/validator/specs/index.js +1 -0
- package/dist/es2019/validator.js +3 -0
- package/dist/esm/builders.js +2 -0
- package/dist/esm/empty-adf.js +3 -0
- package/dist/esm/scrub.js +3 -0
- package/dist/esm/transforms.js +3 -0
- package/dist/esm/traverse.js +3 -0
- package/dist/esm/validator/rules.js +1 -0
- package/dist/esm/validator/specs/index.js +1 -0
- package/dist/esm/validator.js +3 -0
- package/dist/types/empty-adf.d.ts +1 -1
- package/dist/types-ts4.5/empty-adf.d.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +14 -14
- package/dist/cjs/validator/entry.js +0 -1
- package/dist/es2019/validator/entry.js +0 -0
- package/dist/esm/validator/entry.js +0 -0
- package/dist/types/validator/entry.d.ts +0 -1
- package/dist/types-ts4.5/validator/entry.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @atlaskit/adf-utils
|
|
2
2
|
|
|
3
|
+
## 19.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#165049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165049)
|
|
8
|
+
[`febce5463e07f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/febce5463e07f) -
|
|
9
|
+
Enable no-re-export rule for a subset of editor packages
|
|
10
|
+
|
|
11
|
+
### Major
|
|
12
|
+
|
|
13
|
+
#### @atlaskit/collab-provider
|
|
14
|
+
|
|
15
|
+
@atlaskit/collab-provider doesn't export following types anymore:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
CollabParticipant,
|
|
19
|
+
CollabEventInitData,
|
|
20
|
+
CollabEventRemoteData,
|
|
21
|
+
CollabEventConnectionData,
|
|
22
|
+
CollabEventConnectingData,
|
|
23
|
+
CollabEventPresenceData,
|
|
24
|
+
ResolvedEditorState,
|
|
25
|
+
CollabConnectedPayload,
|
|
26
|
+
CollabConnectingPayload,
|
|
27
|
+
CollabDisconnectedPayload,
|
|
28
|
+
CollabInitPayload,
|
|
29
|
+
CollabDataPayload,
|
|
30
|
+
CollabTelepointerPayload,
|
|
31
|
+
CollabPresencePayload,
|
|
32
|
+
CollabMetadataPayload,
|
|
33
|
+
CollabLocalStepsPayload,
|
|
34
|
+
CollabCommitStatusEventPayload,
|
|
35
|
+
CollabPermissionEventPayload,
|
|
36
|
+
UserPermitType,
|
|
37
|
+
CollabEvents,
|
|
38
|
+
Metadata,
|
|
39
|
+
StepJson,
|
|
40
|
+
CollabEventTelepointerData,
|
|
41
|
+
CollabSendableSelection,
|
|
42
|
+
CollabEditProvider,
|
|
43
|
+
NewCollabSyncUpErrorAttributes,
|
|
44
|
+
SyncUpErrorFunction,
|
|
45
|
+
CollabEventLocalStepData,
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Import them from `@atlaskit/editor-common/collab`.
|
|
49
|
+
|
|
50
|
+
#### @atlaskit/editor-common
|
|
51
|
+
|
|
52
|
+
`@atlaskit/editor-common/provider-factory` doesn't export following types anymore:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
CardAdf,
|
|
56
|
+
DatasourceAdf,
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Import them from `@atlaskit/smart-card`.
|
|
60
|
+
|
|
3
61
|
## 19.12.0
|
|
4
62
|
|
|
5
63
|
### Minor Changes
|
package/dist/cjs/empty-adf.js
CHANGED
|
@@ -11,6 +11,9 @@ Object.defineProperty(exports, "isEmpty", {
|
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
var _helpers = require("./transforms/helpers");
|
|
14
|
+
// Disable no-re-export rule for entry point files
|
|
15
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
16
|
+
|
|
14
17
|
// https://product-fabric.atlassian.net/wiki/spaces/ADF/pages/881362244/ADF+Change+42+Uniform+Empty+ADF+Representation
|
|
15
18
|
var getEmptyADF = exports.getEmptyADF = function getEmptyADF() {
|
|
16
19
|
return {
|
|
@@ -6,5 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.validatorFnMap = void 0;
|
|
7
7
|
var _url = require("@atlaskit/adf-schema/url");
|
|
8
8
|
var validatorFnMap = exports.validatorFnMap = {
|
|
9
|
+
// eslint-disable-next-line @atlaskit/editor/no-re-export
|
|
9
10
|
safeUrl: _url.isSafeUrl
|
|
10
11
|
};
|
package/dist/es2019/builders.js
CHANGED
package/dist/es2019/empty-adf.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
// https://product-fabric.atlassian.net/wiki/spaces/ADF/pages/881362244/ADF+Change+42+Uniform+Empty+ADF+Representation
|
|
2
5
|
export const getEmptyADF = () => ({
|
|
3
6
|
type: 'doc',
|
package/dist/es2019/scrub.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { transformMediaLinkMarks } from './transforms/media-link-transform';
|
|
2
5
|
export { transformTextLinkCodeMarks } from './transforms/text-link-code-transform';
|
|
3
6
|
export { transformDedupeMarks } from './transforms/dedupe-marks-transform';
|
package/dist/es2019/traverse.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
1
2
|
export { alignment, annotation, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
|
|
2
3
|
// Stage-0
|
|
3
4
|
paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline } from '@atlaskit/adf-schema/schema-validator';
|
package/dist/es2019/validator.js
CHANGED
package/dist/esm/builders.js
CHANGED
package/dist/esm/empty-adf.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
// https://product-fabric.atlassian.net/wiki/spaces/ADF/pages/881362244/ADF+Change+42+Uniform+Empty+ADF+Representation
|
|
2
5
|
export var getEmptyADF = function getEmptyADF() {
|
|
3
6
|
return {
|
package/dist/esm/scrub.js
CHANGED
package/dist/esm/transforms.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Disable no-re-export rule for entry point files
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
|
|
1
4
|
export { transformMediaLinkMarks } from './transforms/media-link-transform';
|
|
2
5
|
export { transformTextLinkCodeMarks } from './transforms/text-link-code-transform';
|
|
3
6
|
export { transformDedupeMarks } from './transforms/dedupe-marks-transform';
|
package/dist/esm/traverse.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
1
2
|
export { alignment, annotation, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
|
|
2
3
|
// Stage-0
|
|
3
4
|
paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline } from '@atlaskit/adf-schema/schema-validator';
|
package/dist/esm/validator.js
CHANGED
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
2
|
+
"extends": "../../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": "./"
|
|
5
|
+
},
|
|
6
|
+
"include": [
|
|
7
|
+
"./src/**/*.ts",
|
|
8
|
+
"./src/**/*.tsx",
|
|
9
|
+
"./docs/**/*.ts",
|
|
10
|
+
"./docs/**/*.tsx",
|
|
11
|
+
"./examples/**/*.ts",
|
|
12
|
+
"./examples/**/*.tsx",
|
|
13
|
+
"codemods"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { DocNode } from '@atlaskit/adf-schema';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { DocNode } from '@atlaskit/adf-schema';
|