Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@atlaskit/adf-utils

atlassian171.1kApache-2.019.21.2TypeScript support: included

Set of utilities to traverse, modify and create ADF documents.

readme

changelog

@atlaskit/adf-utils

19.21.2

Patch Changes

  • 3d63d4f953f04 - EDITOR-1171 Unifying adf-utils behaviours for blockTaskItem and taskItem
  • 0fdcb6f2f96fd - Sorted type and interface props to improve Atlaskit docs

19.21.1

Patch Changes

19.21.0

Minor Changes

  • 13a1ad07bb39e - [ux] EDITOR-1146 | EDITOR-1176 Introduce blockTaskItem node to Renderer and Editor editor-plugin-tasks-and-decisions which adopts the same code and functionality as the regular taskItem except that it allows block content such as extensions to be inserted. This is to facilitate TinyMCE migration which requires usage of the Legacy Content Extension.

19.20.3

Patch Changes

19.20.2

Patch Changes

19.20.1

Patch Changes

19.20.0

Minor Changes

  • #160422 83606959c73cd - EDITOR-719 Overrides adf validation of nested tables for nested renderers inside bodied extensions and reverts a previous change to transformNestedTablesIncomingDocument which prevented nested tables inside bodied extensions from being transformed by their parent renderer. This was due to a bug with comment positions of nested tables inside bodied extensions which meant their positions were not being calculated correctly due to not being transformed in the parent renderer.

19.19.0

Minor Changes

  • #120472 73c800ab5f2fc - ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0

19.18.1

Patch Changes

19.18.0

Minor Changes

19.17.0

Minor Changes

  • #102696 68e5aef5beb02 - Validate Forge macro paramters to the rules of Confluence parameter processing

19.16.0

Minor Changes

  • #101826 efd5cf5ab0eb2 - ED-26205 Prevent transform of nested tables inside bodied macros for renderer only

19.15.0

Minor Changes

  • #100845 bd4c63b5f9688 - [ED-26055] Export a function from adf-utils used to detect the use of the nested-tables extension, and add calculation of unexpectedly nested tables to editor-common utils

19.14.1

Patch Changes

  • #180854 542a366d77dd5 - ED-25988 Updating nested table transformers to match new backend storage structure

19.14.0

Minor Changes

  • #169499 7d83c833bbcb1 - Remove v16->v17 codemod, and associated jscodeshift/codemod-utils dependencies.

19.13.2

Patch Changes

19.13.1

Patch Changes

  • #166957 32cc3cebd2ed7 - ED-25632 Ensure table nesting transform errors are logged to analytics. This includes an upgrade to core-plugin to allow it to receive an anaylytics callback.

19.13.0

Minor Changes

  • #165049 febce5463e07f - Enable no-re-export rule for a subset of editor packages

    Major

    @atlaskit/collab-provider

    @atlaskit/collab-provider doesn't export following types anymore:

    CollabParticipant,
    CollabEventInitData,
    CollabEventRemoteData,
    CollabEventConnectionData,
    CollabEventConnectingData,
    CollabEventPresenceData,
    ResolvedEditorState,
    CollabConnectedPayload,
    CollabConnectingPayload,
    CollabDisconnectedPayload,
    CollabInitPayload,
    CollabDataPayload,
    CollabTelepointerPayload,
    CollabPresencePayload,
    CollabMetadataPayload,
    CollabLocalStepsPayload,
    CollabCommitStatusEventPayload,
    CollabPermissionEventPayload,
    UserPermitType,
    CollabEvents,
    Metadata,
    StepJson,
    CollabEventTelepointerData,
    CollabSendableSelection,
    CollabEditProvider,
    NewCollabSyncUpErrorAttributes,
    SyncUpErrorFunction,
    CollabEventLocalStepData,

    Import them from @atlaskit/editor-common/collab.

    @atlaskit/editor-common

    @atlaskit/editor-common/provider-factory doesn't export following types anymore:

    CardAdf,
    DatasourceAdf,

    Import them from @atlaskit/smart-card.

19.12.0

Minor Changes

  • #156454 8dfa896f600a2 - [ED-25499] this change adds a transformer for converting nested tables to extensions in outgoing documents

19.11.0

Minor Changes

19.10.1

Patch Changes

19.10.0

Minor Changes

  • #155650 b838f14ee7a04 - ED-25392 Removing validator specs that have been ignored from adf-schema - the following node specs have been removed from the adf-schema validator spec so are no longer consumed by adf-utils: blockquote_without_nested_codeblock_or_media, expand_without_nested_expand, tableCellContent

19.9.2

Patch Changes

19.9.1

Patch Changes

19.9.0

Minor Changes

  • #151190 a3723b1cdede2 - [ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted pasted external images to media groups.

19.8.1

Patch Changes

19.8.0

Minor Changes

19.7.0

Minor Changes

  • #128347 e33566cebd5d1 - [ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow quotes in panels and decisions in lists in stage0 schema, and a validator spec change

19.6.1

Patch Changes

19.6.0

Minor Changes

  • #124209 8aa1792f12ed3 - bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0

19.5.0

Minor Changes

  • #122895 49b8c7658f3b5 - [ED-24173] bump @atlaskit/adf-schema to 40.3.0 and @atlassian/adf-schema-json to 1.18.0

19.4.1

Patch Changes

19.4.0

Minor Changes

19.3.0

Minor Changes

19.2.2

Patch Changes

19.2.1

Patch Changes

  • #101524 4821570088e6 - ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation

19.2.0

Minor Changes

19.1.1

Patch Changes

19.1.0

Minor Changes

  • #98035 27df90210ecb - Updated ADF validators to allow optional localId attribute on paragraph and heading nodes in stage0

19.0.32

Patch Changes

19.0.31

Patch Changes

  • #95605 ab6a0e7bac9c - [ED-23098] Add support for background color mark to ADF utils and editor common validators

19.0.30

Patch Changes

19.0.29

Patch Changes

19.0.28

Patch Changes

19.0.27

Patch Changes

19.0.26

Patch Changes

  • #86724 718a9aa2424d - [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from 35.7.0 to 35.8.0

19.0.25

Patch Changes

19.0.24

Patch Changes

19.0.23

Patch Changes

19.0.22

Patch Changes

  • #79538 d4d91668d3ac - ED-22501 Update validator specs for inline-card based on feature flag

19.0.21

Patch Changes

19.0.20

Patch Changes

19.0.19

Patch Changes

19.0.18

Patch Changes

  • #62165 b44ac0968d79 - [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update

19.0.17

Patch Changes

  • #60808 f509a21be124 - ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE

19.0.16

Patch Changes

19.0.15

Patch Changes

  • #59147 f12e489f23b0 - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).

19.0.14

Patch Changes

19.0.13

Patch Changes

19.0.12

Patch Changes

19.0.11

Patch Changes

19.0.10

Patch Changes

19.0.9

Patch Changes

19.0.8

Patch Changes

19.0.7

Patch Changes

  • #39481 aeb5c9a01e8 - Delete adf-schema from AFE and rely on npm package for adf-schema
  • 4b4dcfe0bba - Delete adf-schema, use published version

19.0.6

Patch Changes

19.0.5

Patch Changes

19.0.4

Patch Changes

19.0.3

Patch Changes

  • #37934 106c54b0ce4 - [ux] ED-15896 - Added support for unsupported nodes in listItem
  • Updated dependencies

19.0.2

Patch Changes

19.0.1

Patch Changes

  • #37639 30d82d3462c - [ED-19175] add missing support for the unsupportedBlock in table related nodes
  • Updated dependencies

19.0.0

Major Changes

  • #35517 68ef7e6146c - [ADF change] added widthType attribute to mediaSingle node, to support fixed width media node.

Patch Changes

  • Updated dependencies

18.4.3

Patch Changes

  • #34936 c630941e8ca - Fix validation spec and modify default card node replacement where rest of the attributes are spread on top of replaced URL

18.4.2

Patch Changes

18.4.1

Patch Changes

  • #35085 6de13a329d4 - Move width and layout out from datasource into attr root (context blockCard node)
  • Updated dependencies

18.4.0

Minor Changes

  • #34998 55d241a3794 - Improve ADF validation by making deeper and stricter array checks as well as ability to have deep attribute structures.

18.3.0

Minor Changes

Patch Changes

  • Updated dependencies

18.2.3

Patch Changes

  • #34192 94561f309f3 - New stage-0 change: custom "width" attribute on Tables nodes
  • Updated dependencies

18.2.2

Patch Changes

18.2.1

Patch Changes

18.2.0

Minor Changes

Patch Changes

  • Updated dependencies

18.1.2

Patch Changes

  • #33004 ac684305b74 - [ED-17495] Avoid adding two unsupportedNodeAttribute marks as duplicate marks are invalid ADF

18.1.1

Patch Changes

  • #32424 2e01c9c74b5 - DUMMY remove before merging to master; dupe adf-schema via adf-utils
  • Updated dependencies

18.1.0

Minor Changes

Patch Changes

  • Updated dependencies

18.0.4

Patch Changes

  • #31299 6b52583b688 - ED-15974 Currently nodes are validated against single spec. When a node has multiple specs, like mediaSingle, the first spec is used to validate the node. Therefore, the validation fails with an error INVALID_CONTENT_LENGTH when the correct spec is not selected for validation.

    This fix is to re-arrange the specs so that the less restrictive spec is at the top.

18.0.3

Patch Changes

  • #29470 eab04c03dbc - ED-15641 Update transfromIndentationMarks() to remove heading indention from tableHeaders.
  • Updated dependencies

18.0.2

Patch Changes

  • #28932 15e6a59ab9b - Dummy changeset to trigger product integrator to use latest adf-utils from develop.

18.0.1

Patch Changes

  • #28374 070984d00ea - Dummy changeset to trigger product integrator to use latest adf-utils from develop
  • Updated dependencies

18.0.0

Major Changes

  • #28090 5d317ed8aa3 - [ux] ED-15882: Implement custom starting numbers for orderedList nodes in adf-schema, editor, renderer, transformers behind restartNumberedLists feature flag. Users will be able to set a custom starting number when typing to create a numbered list in the Editor and this will be persisted across Renderer and other format transformations.

    Note: restartNumberedLists will be off by default. To enable it, consumers will need to set <Editor featureFlags={{ restartNumberedLists: true }}> or <Renderer featureFlags={{ restartNumberedLists: true }}>

Patch Changes

  • Updated dependencies

17.1.5

Patch Changes

  • #26712 17014a9004c - [ux] ED-15632 preprocess invalid media adf to avoid empty mediaSingle node and duplicated captions and media inside mediaSingle.The document will be transformed for this cases and validation error not thrown.When mediaSingle with empty content is encountered - it will be removed.When mediaSingle with duplicated captions or media nodes is encountered - duplicate captions or media nodes will be removed, prioritising removal of nodes with empty content first.

17.1.4

Patch Changes

17.1.3

Patch Changes

  • Updated dependencies

17.1.2

Patch Changes

17.1.1

Patch Changes

  • #23381 fecd5f5c96c - ED-15067 Added paragraph_with_indentation to block content to allow indented paragraphs inside of layout columns. Prior to this change, it was possible to add indentation but it resulted in an unsupported mark.
  • Updated dependencies

17.1.0

Minor Changes

  • #22875 4d8c675bd2a - EDM-3779 Hotfix: Extend Media Inline ADF Schema to have type attribute

Patch Changes

  • Updated dependencies

17.0.0

Major Changes

  • #21570 844b8278b4d - ED-14608: Migrate adf-utils to modern child entry points, remove default entry point, add codemods to enforce migration.

    As we will no longer support the default entry point, imports such as the example below:

    import { breakout, scrubAdf, map } from '@atlaskit/adf-utils';

    would need to become:

    import { breakout } from '@atlaskit/adf-utils/builders';
    import { scrubADF } from '@atlaskit/adf-utils/scrub';
    import { map } from '@atlaskit/adf-utils/traverse';

    The new (and only) @atlaskit/adf-utils entry points supported now are listed below:

    @atlaskit/adf-utils/builders for:

    • breakout, code, em, link, link, strike, strong, strong, subsup, text-color, underline, underline, alignment, indentation, data-consumer fragment, blockquote, bodied-extension, block-card, bullet-list, bullet-list, code-block, date, decision-item, decision-list, doc, emoji, extension, expand, nested-expand, hard-break, hard-break, heading, inline-extension, inline-card, layout-column, layout-section, list-item, list-item, media-group, media-single, media, mention, ordered-list, ordered-list, panel, paragraph, paragraph, placeholder, rule, rule, status, table-cell, table-cell, table-header, table-header, table-row, table-row, table, task-item, task-list, text, embed-card,

    @atlaskit/adf-utils/empty-adf for:

    • getEmptyADF

    @atlaskit/adf-utils/scrub for:

    • scrubAdf

    @atlaskit/adf-utils/transforms for:

    • transformMediaLinkMarks, transformTextLinkCodeMarks, transformDedupeMarks, transformNodesMissingContent, transformIndentationMarks

    @atlaskit/adf-utils/traverse for:

    • traverse, map, reduce, filter

    @atlaskit/adf-utils/validator for:

    • validateAttrs, validator

    @atlaskit/adf-utils/types for:

    • ADFEntityMark, ADFEntity, Visitor, VisitorCollection, EntityParent

    @atlaskit/adf-utils/validatorTypes for:

    • MarkValidationResult, Output, NodeValidationResult, ValidatorContent, AttributesSpec, ValidatorSpec, ValidationErrorMap, RequiredContentLength, Content, ValidationErrorType, ValidationError, ErrorCallback, ValidationMode, ValidationOptions, SpecValidatorResult, Err, ErrorCallbackOptions, Validate

    Since there are significant changes (including the breaking change of dropping the default entry point to @atlaskit/adf-utils), we will be providing a codemod to help consumers upgrade their usage of adf-utils

    Once you've upgraded @atlaskit/adf-utils, use the Atlaskit codemod CLI.

    npx @atlaskit/codemod-cli /path/to/target/directory

    See documentation on DAC for general codemod guidance.

Patch Changes

  • 8300a668772 - [ux] ED-14488: Extend ADF sanitising coverage to prevent Prosemirror failing validation checks on adf that can be repaired
  • Updated dependencies

16.0.2

Patch Changes

16.0.1

Patch Changes

  • Updated dependencies

16.0.0

Major Changes

  • #18526 304351e4b1e - CETI-241 - Added additional panel ADF attributes (panelIconId, panelIconText) to uniquely identify custom panel emojis. The change has been categorised as major since it is a change to the full-schema ADF. However, the custom panel feature is behind a feature flag, has not yet been released to production, and is only currently planned for release to Confluence. See ADF change

    61 for further details.

Patch Changes

  • #16752 2f5133aedd7 - ED-13881 Update existing imports from @atlaskit/adf-schema to use declarative entry points
  • 3b49ff824ec - ED-14043 update prosemirror schema to only allow link mark on children of paragraph and mediaSingle
  • Updated dependencies

15.0.0

Major Changes

  • 5af69bfe9be - CETI-241 - Added additional panel ADF attributes (panelIconId, panelIconText) to uniquely identify custom panel emojis. The change has been categorised as major since it is a change to the full-schema ADF. However, the custom panel feature is behind a feature flag, has not yet been released to production, and is only currently planned for release to Confluence. See ADF change

    61 for further details.

Minor Changes

  • 19d72473dfb - - Allow table nodes to have fragment marks
    • Promote fragment mark to "full" ADF schema

Patch Changes

  • Updated dependencies

14.4.1

Patch Changes

  • #18233 60a8ae28c1f - [ux] HOT-97965: Strip code marks from text nodes when code and link marks both exist

14.4.0

Minor Changes

  • #15998 83154234335 - ED-13522 Add safe URL check to ADF validator (smart cards now show as unsupported content if the check fails)
  • 8bbb96540ea - Add "fragment" mark to stage0 ADF schema

Patch Changes

  • Updated dependencies

14.3.0

Minor Changes

Patch Changes

  • Updated dependencies

14.2.0

Minor Changes

Patch Changes

  • Updated dependencies

14.1.1

Patch Changes

  • Updated dependencies

14.1.0

Minor Changes

Patch Changes

  • Updated dependencies

14.0.0

Major Changes

Patch Changes

  • Updated dependencies

13.0.0

Major Changes

  • #11113 9d3472d1a17 - ED-12889: Remove heading with indentation from table cell content

Minor Changes

  • ee1c658ca80 - ED-12270 Add unsupported content support for decision lists and task lists

Patch Changes

  • Updated dependencies

12.3.0

Minor Changes

Patch Changes

  • Updated dependencies

12.2.0

Minor Changes

  • #10230 8c84c29006b - Improve data-consumer mark being nested, aAdd basic doc tests for data consumer
  • 621f12ec284 - Update adf util specs to support unsupported content changes

Patch Changes

  • Updated dependencies

12.1.0

Minor Changes

  • #9756 357edf7b4a1 - ED-12266 Extend code block to support UnsupportedInline content.

Patch Changes

  • Updated dependencies

12.0.0

Major Changes

  • #9510 accd87f8116 - ED-10216 Remove sanitizeNode helper function

    BREAKING CHANGE:

    // Before
    import { sanitizeNode } from '@atlaskit/adf-utils';
    import { sanitizeNode } from '@atlaskit/adf-utils/sanitize';
    
    // After
    import { sanitizeNode } from '@atlaskit/editor-json-transformer/sanitize';

Minor Changes

  • 330c1fce7f9 - ED-12264 Add unsupported content capability to panel and blockquote

Patch Changes

  • Updated dependencies

11.9.0

Minor Changes

Patch Changes

  • Updated dependencies

11.8.1

Patch Changes

  • #8644 ffbe78153cf - New stage0 ADF change: localId attribute on Table nodes
  • Updated dependencies

11.8.0

Minor Changes

11.7.1

Patch Changes

11.7.0

Minor Changes

  • #7425 70f47afdee - Added unsupportedBlock support for mediaSingle as a child
  • 549740c01d - Exported the validator errors map Convert nodes that are after an invalid length to be unsupported

Patch Changes

  • Updated dependencies

11.6.0

Minor Changes

Patch Changes

  • Updated dependencies

11.5.0

Minor Changes

  • #6838 9697099745 - NO-ISSUE: replace media and smart links with valid nodes

11.4.0

Minor Changes

  • #6833 4d9d11c246 - Fixes nodes with multiple validation specs to return node with most suitable spec.

11.3.0

Minor Changes

Patch Changes

  • 4e64133fdc - Remove empty captions on the editor saving
  • Updated dependencies

11.2.2

Patch Changes

11.2.1

Patch Changes

11.2.0

Minor Changes

  • #6393 24af67e112 - NO-ISSUE: allow consumers to specify per-type node replacements

11.1.2

Patch Changes

11.1.1

Patch Changes

11.1.0

Minor Changes

11.0.0

Major Changes

Minor Changes

  • a929e563b9 - Text color mark changed to be case insensitive
  • eba787da28 - Allow link marks on media

Patch Changes

  • Updated dependencies

10.5.0

Minor Changes

  • #5516 a41378f853 - Refactor & fix few cases of unsupported node attributes:

    • Preseve attributes on nodes which do not support any attributes
    • Add unsupportedNodeAttribute to bulletList, layoutSection etc.

Patch Changes

  • be142eec6e - Refactor attributes validation and add unsupportedNodeAttribute mark in layoutsection
  • Updated dependencies

10.4.1

Patch Changes

  • #5497 5f58283e1f - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started Also add typescript to devDependencies to denote version that the package was built with.

10.4.0

Minor Changes

  • #4749 6e237a6753 - Add optional caption to mediaSingle in adf schema for stage 0

Patch Changes

  • 26ff0e5e9a - ED-10353 Added adf schema changes to support emoji panels
  • Updated dependencies

10.3.0

Minor Changes

  • #4424 aa03ba4b0b - ED-9733 Preserve known mark on node which does not support it.
  • e4114d7053 - ED-9607 - Preserve Unsupported Node attributes

Patch Changes

  • Updated dependencies

10.2.2

Patch Changes

  • #3885 6c525a8229 - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0

    Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.

10.2.1

Patch Changes

10.2.0

Minor Changes

  • #3823 0f5b0a3f5d - CS-2944 Traversing visitor function provides current node's depth inside document tree
  • d55f8066fd - ED-9569 Preserve unsupported mark attribute and value
  • abce19a6d1 - Remove hard coded branching for Tuples Remove forceContentValidation
  • 9d278c2387 - NONE: ADF traverse Visitor and VisitorCollection is now exported

Patch Changes

  • 9fe56e9d64 - Revert TaskList and ItemList type
  • 0cd9a41d67 - ED-9843 Refactor spec based validator
  • Updated dependencies

10.1.0

Minor Changes

Patch Changes

  • Updated dependencies

10.0.0

Major Changes

Patch Changes

  • Updated dependencies

9.4.0

Minor Changes

Patch Changes

  • Updated dependencies

9.3.0

Minor Changes

  • #2137 50c333ab3a - EDM-216: Adds EmbedCards in the Editor under the flag - allowEmbeds in the UNSAFE_cards prop

Patch Changes

  • f7ee96b6c3 - Move sanitizeNode from editor-core to adf-utils so that it can be shared easier
  • Updated dependencies

9.2.0

Minor Changes

  • [minor]1156536403:

    Expose missing status node in exports

Patch Changes

9.1.0

Minor Changes

  • [minor]5d430f7d37:

    ED-8517 Add localId support to Extension node

    BREAKING CHANGE ExtensionContent has been removed.

Patch Changes

9.0.0

Major Changes

  • [major]715572f9e5:

    Remove indentation from table cell and layout paragraphs

Patch Changes

8.0.2

Patch Changes

  • [patch]04a627ee6c:

    ED-8974 Remove file option from adf-utils package.json

8.0.1

Patch Changes

8.0.0

Major Changes

  • [major]4695ac5697:

    ED-8751 Change entry points to current Atlaskit standard

    Old

    import {} from '@atlaskit/adf-utils/validator.es';
    import {} from '@atlaskit/adf-utils/builders.es';
    import {} from '@atlaskit/adf-utils/traverse.es';

    New

    import {} from '@atlaskit/adf-utils/validator';
    import {} from '@atlaskit/adf-utils/builders';
    import {} from '@atlaskit/adf-utils/traverse';

    Now each entry point contain a package.json with main and module properties pointing to the right target. There is no need to consume a particular extension- [major]7baff84f38:

    [ED-8521] Fix ADFSchema to invalidate any Expand Node with marks inside of Block nodes other than the Doc Node

Patch Changes

7.4.3

Patch Changes

7.4.2

Patch Changes

7.4.1

Patch Changes

7.4.0

Minor Changes

  • [minor]9d8752351f:

    ED-7783 Expose function that returns empty ADF document

    New function getEmptyADF() which returns agreed upon format for empty ADF is now exported from @atlaskit/adf-utils

Patch Changes

7.3.2

Patch Changes

7.3.1

Patch Changes

7.3.0

Minor Changes

  • [minor]f1a06fc2fd:

    ED-7876 Add expand and nestedExpand to stage-0 schema

    Adds two new nodes expand and nestedExpand to the stage-0 schema.

  • [minor]ae42b1ba1e:

    Adf schema changes (for stage-0) to support alt text on media nodes. editor-core changes are wrapped under the editor prop UNSAFE_allowAltTextOnImages. There is no alt text implementation yet, so the user won't be able to add alt text to images just yet.

7.2.0

Minor Changes

  • [minor]1a0fe670f9:

    ED-7674: support nested actions in stage-0 schema; change DOM representation of actions

    Nested actions

    This changeset adds support for nesting actions at the schema level, currently only within the stage-0 ADF schema.

    The editor and renderer currently do nothing special to represent these nested actions. As of this release, they appear as as flat list.

    To enable this feature, use the new allowNestedTasks prop.

    DOM representation of actions in renderer + editor

    This release also changes the DOM representation of actions away from a ol > li structure, to a div > div one. That is, both the taskList and taskItem are wrapped in div elements.

    Because taskLists can now be allowed to nest themselves, this would otherwise have created an ol > ol structure, which is invalid.- [minor]ae4f336a3a:

FABDODGEM-13 Editor Damask Release - Internal post

BREAKING CHANGES


Affected Editor Components:

tables, media, mobile, emoji, tasks & decisions, analytics

Editor

Mobile

Media

i18n-tools

Bumped dependencies.

Patch Changes

  • [patch]cc28419139:

    Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.

7.1.1

Patch Changes

  • [patch]a2d0043716:

    Updated version of analytics-next to fix potential incompatibilities with TS 3.6

7.1.0

Minor Changes

Mobile - Implement undo/redo interface on Hybrid Editor - https://product-fabric.atlassian.net/browse/FM-2393

Copy and Paste

- Support copy & paste when missing context-id attr
  - https://product-fabric.atlassian.net/browse/MS-2344
- Right click + copy image fails the second time that is pasted
  - https://product-fabric.atlassian.net/browse/MS-2324
- Copying a never touched image for the first time from editor fails to paste
  - https://product-fabric.atlassian.net/browse/MS-2338
- Implement analytics when a file is copied
  - https://product-fabric.atlassian.net/browse/MS-2036

Media

Notable Bug Fixes

- Implement consistent behaviour for rule and mediaSingle on insertion
  - Feature Flag:
    - allowNewInsertionBehaviour - [default: true]
  - https://product-fabric.atlassian.net/browse/ED-7503
- Fixed bug where we were showing table controls on mobile.
  - https://product-fabric.atlassian.net/browse/ED-7690
- Fixed bug where editor crashes after unmounting react component.
  - https://product-fabric.atlassian.net/browse/ED-7318
- Fixed bug where custom emojis are not been showed on the editor
  - https://product-fabric.atlassian.net/browse/ED-7726
  • [minor]79c69ed5cd:

    ED-7449 Implement sorting inline cards inside tables base on resolved title

7.0.0

Major Changes

6.1.7

Patch Changes

  • [patch]48fcfce0a1:

    Export missing definitions from schema to fix types in utils

6.1.6

Patch Changes

  • [patch]097b696613:

    Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports

6.1.5

Patch Changes

  • [patch]0d7d459f1a:

    Fixes type errors which were incompatible with TS 3.6

6.1.4

Patch Changes

6.1.3

6.1.2

Patch Changes

  • [patch]bbff8a7d87:

    Fixes bug, missing version.json file

6.1.1

Patch Changes

  • [patch]18dfac7332:

    In this PR, we are:

    • Re-introducing dist build folders
    • Adding back cjs
    • Replacing es5 by cjs and es2015 by esm
    • Creating folders at the root for entry-points
    • Removing the generation of the entry-points at the root Please see this ticket or this page for further details

6.1.0

  • [minor]79f0ef0601:

    • Use strict tsconfig to compile editor packages

6.0.5

6.0.4

6.0.3

  • [patch]97e555c168:

    • Revert "[ED-5259 - ED-6200] adds defaultMarks on tableNode (pull request #5259)"

6.0.2

  • [patch]b425ea772b:

    • Revert "ED-5505 add strong as default mark to table header (pull request #5291)"

6.0.1

  • [patch]499f9783d8:

    • [ED-5505] Fix forceContentValidation replacing valid entities to empty array

6.0.0

  • [major]9d5cc39394:

    • Dropped ES5 distributables from the typescript packages

5.8.0

  • [minor]a7af8a8865:

    • [ED-6325] Add forceContentValidation to array specs

5.7.2

5.7.1

  • [patch]60ea09b0cc:

    • ED-6246 Improves types and adds more metadata to errors

5.7.0

  • [minor]4d8d759bf9:

    • [ED-6255] Migrate ADFNode type to ADFEntity

5.6.3

  • [patch]e83a441140:

    • Revert type change to width/height attributes for media node

5.6.2

  • [patch]09696170ec:

    • Bumps prosemirror-utils to 0.7.6

5.6.1

  • [patch]14fe1381ba:

    • ED-6118: ensure media dimensions are always integers, preventing invalid ADF

5.6.0

  • [minor]be706e55f6:

    • ED-6154 Adds array validation support

5.5.0

5.4.2

5.4.1

5.4.0

  • [minor]1205725:

    • Move schema to its own package

5.3.4

5.3.3

  • [patch]34df084:

    • Fix layout schema and enable breakout layouts in renderer

5.3.2

5.3.1

  • [patch]0a297ba:

    • Packages should not be shown in the navigation, search and overview

5.3.0

  • [minor]a1b03d0:

    • ED-3890 Adds Indentation support on paragraphs and headings

5.2.0

  • [minor]94094fe:

    • Adds support for links around images

5.1.9

5.1.8

  • [patch]416fbb3:

    • ED-3298: codeBlocks inside lists

5.1.7

  • [patch]409e610:

    • Fix schema block marks name inconsistency

5.1.6

  • [patch]df33a8b:

    • Fix block marks validation

5.1.5

  • [patch]d3bb11f:

    • Fixing validator for alignment marks

5.1.4

  • [patch]4e2a3b1:

    • Fixes validating marks with multiple possible branch

5.1.3

  • [patch]a1fb551:

    • Fixed style attribute ADF error for Fabric Status

5.1.2

  • [patch]11d4b85:

    • ED-5606 Adds union attrs support to validator

5.1.1

  • [patch]b19b7bb:

    • ED-5721 Validator now supports optional content

5.1.0

  • [minor]b440439:

    • Add breakout mark to editor, renderer and adf-utils

5.0.1

5.0.0

  • [major]e1db106:

    • New validator API

    Breaking Change

    Old API

    export type ValidationMode = 'strict' | 'loose';
    
    validator(
      nodes?: Array<string>,
      marks?: Array<string>,
      validationMode?: ValidationMode,
    )

    New API

    We introduced a new allowPrivateAttributes option. It allows attributes starting with __ without validation.

    export type ValidationMode = 'strict' | 'loose';
    
    export interface ValidationOptions {
      mode?: ValidationMode;
      allowPrivateAttributes?: boolean;
    }
    
    validator(
      nodes?: Array<string>,
      marks?: Array<string>,
      options?: ValidationOptions,
    )

4.1.0

  • [minor]4f5830f:

    • ED-4200: add page layout support to generator and ADF schema

4.0.4

  • [patch]e8052e1:

    • Add main field to adf-utils package.json

4.0.3

  • [patch]653b6a9:

    • removed optional attributes from adf-builder module for status node
  • [patch]cd5471b:

    • added style attribute for Status node in ADF schema

4.0.2

4.0.1

  • [patch] Fix floating number validation ea027b8

4.0.0

  • [major] Wrap invalid node with unsupported node fb60e39

3.0.1

3.0.0

  • [major] New validator API db2d466

2.2.6

2.2.5

2.2.4

  • [patch] make attris in ADFNode optioanla as not every node have this value df13878

2.2.3

2.2.2

  • [patch] Fix .d.ts file names 3d6c0fd

2.2.1

  • [patch] .es.js files now reference es2015 builds instead of es5 98034c7

2.2.0

  • [minor] FS-2961 Introduce status component and status node in editor 7fe2b0a

2.1.5

2.1.4

2.1.3

2.1.2

2.1.1

2.1.0

2.0.5

  • [patch] Fix es5 exports of some of the newer modules 3f0cd7d
  • [none] Updated dependencies 3f0cd7d

2.0.4

2.0.3

2.0.2

  • [patch] Include type files to release 02cae82

2.0.1

  • [patch] Fix types for top level imports 61cd06b

2.0.0

1.0.1

1.0.0