@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 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
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__adf-utils/app",
6
+ "outDir": "../../../../../post-office/tsDist/@atlaskit__adf-utils/app",
7
7
  "rootDir": "../",
8
8
  "composite": true
9
9
  },
@@ -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
  };
@@ -1,3 +1,5 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
1
3
  // Marks Builders
2
4
 
3
5
  export { breakout } from './builders/marks/breakout';
@@ -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',
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { default as scrubAdf } from './scrub/scrub-adf';
@@ -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';
@@ -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 { traverse } from './traverse/traverse';
2
5
  export { map } from './traverse/map';
3
6
  export { reduce } from './traverse/reduce';
@@ -1,4 +1,5 @@
1
1
  import { isSafeUrl } from '@atlaskit/adf-schema/url';
2
2
  export const validatorFnMap = {
3
+ // eslint-disable-next-line @atlaskit/editor/no-re-export
3
4
  safeUrl: isSafeUrl
4
5
  };
@@ -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';
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { validateAttrs, validator } from './validator/validator';
@@ -1,3 +1,5 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
1
3
  // Marks Builders
2
4
 
3
5
  export { breakout } from './builders/marks/breakout';
@@ -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
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { default as scrubAdf } from './scrub/scrub-adf';
@@ -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';
@@ -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 { traverse } from './traverse/traverse';
2
5
  export { map } from './traverse/map';
3
6
  export { reduce } from './traverse/reduce';
@@ -1,4 +1,5 @@
1
1
  import { isSafeUrl } from '@atlaskit/adf-schema/url';
2
2
  export var validatorFnMap = {
3
+ // eslint-disable-next-line @atlaskit/editor/no-re-export
3
4
  safeUrl: isSafeUrl
4
5
  };
@@ -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';
@@ -1 +1,4 @@
1
+ // Disable no-re-export rule for entry point files
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
3
+
1
4
  export { validateAttrs, validator } from './validator/validator';
@@ -1,3 +1,3 @@
1
- import { type DocNode } from './validator/entry';
1
+ import { type DocNode } from '@atlaskit/adf-schema';
2
2
  export declare const getEmptyADF: () => DocNode;
3
3
  export { isEmpty } from './transforms/helpers';
@@ -1,3 +1,3 @@
1
- import { type DocNode } from './validator/entry';
1
+ import { type DocNode } from '@atlaskit/adf-schema';
2
2
  export declare const getEmptyADF: () => DocNode;
3
3
  export { isEmpty } from './transforms/helpers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "19.12.0",
3
+ "version": "19.13.0",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/tsconfig.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
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
- }
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';