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

Package detail

@kalamazoo/adf-utils

atlassian9Apache-2.01.0.2TypeScript support: included

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

readme

changelog

@kalamazoo/adf-utils

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