@atlaskit/adf-utils
19.21.2
Patch Changes
3d63d4f953f04
- EDITOR-1171 Unifying adf-utils behaviours for blockTaskItem and taskItem0fdcb6f2f96fd
- Sorted type and interface props to improve Atlaskit docs
19.21.1
Patch Changes
57b19274b9fdd
- EDITOR-1373 Bump adf-schema version
19.21.0
Minor Changes
13a1ad07bb39e
- [ux] EDITOR-1146 | EDITOR-1176 IntroduceblockTaskItem
node to Renderer and Editoreditor-plugin-tasks-and-decisions
which adopts the same code and functionality as the regulartaskItem
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
- #195649
231bb33e06dfe
- EDITOR-1131 Bump adf-schema version to 50.2.0
19.20.2
Patch Changes
- #191913
6d1e56695e91d
- EDITOR-1131 Bump adf-schema package to 50.0.0
19.20.1
Patch Changes
- #187144
a16147d8fbdfe
- Bump @atlaskit/adf-schema to v49.0.5
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
- #112186
9462d8ca2405a
- Bump adf-schema to 47.2.1
19.18.0
Minor Changes
- #109060
4660ec858a305
- UpdateReact
from v16 to v18
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
- #165765
3f441f30e6507
- Bump adf-schema to 46.0.0
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 packagesMajor
@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
- #161679
27c4a6d9b2fb1
- ED-25498 Add nested table incoming transform for adf-utils
19.10.1
Patch Changes
- #159176
8f1d77592a9dc
- Bump adf-schema to 44.2.0
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 theadf-schema
validator spec so are no longer consumed byadf-utils
:blockquote_without_nested_codeblock_or_media
,expand_without_nested_expand
,tableCellContent
19.9.2
Patch Changes
- #154186
5c316170d29dd
- Bump @atlaskit/adf-schema to 42.3.1
19.9.1
Patch Changes
- #152510
dcf9edde7ac7b
- bump adf-schema to 42.0.1
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
- #134213
93bd7032842ec
- [ux] [ED-24636] Bump ADF Schema package
19.8.0
Minor Changes
- #129049
57be9a9345656
- [ED-24281] Node nesting v2 - Update validator
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
- #124673
baa5f86d19b52
- EDF-939 Export and use empty check from adf-utils
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
- #114548
8b2d47bffb50e
- bump adf-schema version
19.4.0
Minor Changes
- #115247
251d23ff9e6c8
- upgrade adf-schema version to 38.0.0
19.3.0
Minor Changes
- #114156
bc6a63af2d1d0
- Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
19.2.2
Patch Changes
- #102478
3378951608b0
- [ED-23332] Update adf-schema package to 36.10.1
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
- #99579
f222af5687e9
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
19.1.1
Patch Changes
- #97599
32c3130b08fe
- [ED-22282] Bump adf-schema to 36.1.0
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
- #96237
0401e7b5a88e
- [ED-23102] Bump ADF schema to version 35.12.2
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
- #94901
da964fcdc828
- [ED-23097] Bump ADF schema to version 35.12.1
19.0.29
Patch Changes
- #93689
5ba5d2b4a9ac
- Updating adf-schema version to 35.10.0
19.0.28
Patch Changes
- #92426
32c76c7c225c
- Bump adf-schema to 35.9.2 to support table alignment options
19.0.27
Patch Changes
- #91106
b6ffa30186b9
- Bump ADF-schema package to version 35.0.0
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
- #81777
c6d7a5378751
- Bump adf-schema to 35.7.0
19.0.24
Patch Changes
- #83116
8d4e99057fe0
- Upgrade Typescript from4.9.5
to5.4.2
19.0.23
Patch Changes
- #80679
104eb9443b7e
- ED-22553 Updating adf-schema version to 35.6.0
19.0.22
Patch Changes
- #79538
d4d91668d3ac
- ED-22501 Update validator specs for inline-card based on feature flag
19.0.21
Patch Changes
- #78224
6b4c9dd4ad34
- ED-22219: adf-schema updated to 35.5.2
19.0.20
Patch Changes
- #70152
53ed3673df28
- Updating adf-schema version to 35.5.1
19.0.19
Patch Changes
- #65031
a00094111b5a
- ED-21609 Update adf-schema to 35.3.0
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
- #58246
a381b2599716
- ED-21371 Update adf-schema to 35.1.0
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
- #58763
0fdbd64522bf
- update ADF schema
19.0.13
Patch Changes
- #56790
ff577a7969d4
- ED-21266: Updated @atlaskit/adf-schema to 34.0.1
19.0.12
Patch Changes
- #43417
3f3c17f0273
- ED-20971 Upgrade adf-schema package to ^34.0.0
19.0.11
Patch Changes
- #43379
482c025520d
- ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
19.0.10
Patch Changes
- #39749
e6b69f455c3
- Connect yarn changeset to packages, upgrade adf-schema
19.0.9
Patch Changes
- #40343
f040aac6bd1
- ADFEXP-524: unskip consistency.ts in adf-utils
19.0.8
Patch Changes
- #40119
02417310e08
- Fix broken generate:spec in adf-utils
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
- #39532
818087ca71e
- ADFEXP-542: fix validate test
19.0.5
Patch Changes
- #38976
33cb07de05f
- change adf-schema to fixed versioning
19.0.4
Patch Changes
- #38162
fd6bb9c9184
- Delete version.json
19.0.3
Patch Changes
- #37934
106c54b0ce4
- [ux] ED-15896 - Added support for unsupported nodes in listItem - Updated dependencies
19.0.2
Patch Changes
- #38316
9064e2d0f28
- [ux] HOT-104783 Reverting https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37639 - Updated dependencies
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
- #35185
bf7e8e4968b
- ED-15895 add unsupportedinline support to caption
18.4.1
Patch Changes
- #35085
6de13a329d4
- Movewidth
andlayout
out fromdatasource
intoattr
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
- #34887
f3d2c08d61b
- Adds new datasource attribute to existing blockCard node
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
- #33793
9d00501a414
- Ensure legacy types are published for TS 4.5-4.8
18.2.1
Patch Changes
- #33649
41fae2c6f68
- Upgrade Typescript from4.5.5
to4.9.5
18.2.0
Minor Changes
- #33258
56507598609
- Skip minor dependency bump
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
- #31891
bf04c417bfd
- Add "border" mark to stage0 ADF schema
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 errorINVALID_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
- #24874
8cc2f888c83
- Upgrade Typescript from4.3.5
to4.5.5
17.1.3
Patch Changes
- Updated dependencies
17.1.2
Patch Changes
- #24492
8d4228767b0
- Upgrade Typescript from4.2.4
to4.3.5
.
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
- #20650
cb2392f6d33
- Upgrade to TypeScript 4.2.4
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 change61 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 change61 for further details.
Minor Changes
19d72473dfb
- - Allowtable
nodes to havefragment
marks- Promote
fragment
mark to "full" ADF schema
- Promote
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
- #14319
cf853e39278
- Add single column support for layouts
Patch Changes
- Updated dependencies
14.2.0
Minor Changes
- #13864
ad67f6684f1
- Add MediaInline to ADF Stage0 schema
Patch Changes
- Updated dependencies
14.1.1
Patch Changes
- Updated dependencies
14.1.0
Minor Changes
- #11649
9fef23ee77c
- ED-12477 Add unsupported node capability to Media Group fc04f067e14
- Fix DataConsumer mark builder type
Patch Changes
- Updated dependencies
14.0.0
Major Changes
- #11379
7e6fe5abae9
- revert heading with indentation in table cell content
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
- #10569
1fbe305bf7d
- ED-12273 Unsupported content support for Layout
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 functionBREAKING 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
- #9083
6d748ea5140
- New stage-0 data consumer mark in ADF schema
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
- #7762
586040bf70b
- Ensure that all children are validated in new error path
11.7.1
Patch Changes
- #7721
7374ce442af
- Scrub content in array attributes
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
- #7170
f523768cdc
- Fix validator and schema for Image Captions
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
- #6571
9b1c48edd1
- Revert ED-10820 to resolve broken validator
Patch Changes
4e64133fdc
- Remove empty captions on the editor saving- Updated dependencies
11.2.2
Patch Changes
- #6437
e6f6e57465
- NO-ISSUE: replace unicode glyphs including emojis
11.2.1
Patch Changes
- #5857
d3265f19be
- Transpile packages using babel rather than tsc
11.2.0
Minor Changes
- #6393
24af67e112
- NO-ISSUE: allow consumers to specify per-type node replacements
11.1.2
Patch Changes
- #6340
b0203bf159
- NO-ISSUE: retain numeric characters
11.1.1
Patch Changes
- #6308
b7e3b9c8f2
- retain non-word characters and case when scrubbing
11.1.0
Minor Changes
- #5877
988bc9cfc9
- ED-10676: ADF scrub util
11.0.0
Major Changes
- #5860
f2fbde158a
- getEmptyADF() returns correct DocNode type
Minor Changes
a929e563b9
- Text color mark changed to be case insensitiveeba787da28
- 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 addtypescript
todevDependencies
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.0Since 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
- #4393
76165ad82f
- Bump required because of conflicts on wadmal release
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 valueabce19a6d1
- Remove hard coded branching for Tuples RemoveforceContentValidation
9d278c2387
- NONE: ADF traverse Visitor and VisitorCollection is now exported
Patch Changes
9fe56e9d64
- Revert TaskList and ItemList type0cd9a41d67
- ED-9843 Refactor spec based validator- Updated dependencies
10.1.0
Minor Changes
- #3428
b7c4fc3b08
- Preseve unsupported mark from getting lost
Patch Changes
- Updated dependencies
10.0.0
Major Changes
- #3335
87f4720f27
- Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11. For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
Patch Changes
- Updated dependencies
9.4.0
Minor Changes
- #2443
0ae829a4ea
- EDM-648: Adds resizing and alignment to embed cards
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
- Updated dependencies 92d04b5c28:
9.1.0
Minor Changes
[minor]5d430f7d37:
ED-8517 Add localId support to Extension node
BREAKING CHANGE
ExtensionContent
has been removed.
Patch Changes
[patch]04e54bf405:
EDM-500: Allow blockCard inside Panel- Updated dependencies 04e54bf405:
Updated dependencies 9f43b9f0ca:
- Updated dependencies 168b5f90e5:
- Updated dependencies 5d430f7d37:
9.0.0
Major Changes
[major]715572f9e5:
Remove indentation from table cell and layout paragraphs
Patch Changes
- Updated dependencies bc29fbc030:
- Updated dependencies 1386afaecc:
- Updated dependencies 584279e2ae:
- Updated dependencies f83b67a761:
- Updated dependencies 6b4fe5d0e0:
- Updated dependencies 8c9e4f1ec6:
- Updated dependencies 715572f9e5:
8.0.2
Patch Changes
[patch]04a627ee6c:
ED-8974 Remove file option from adf-utils package.json
8.0.1
Patch Changes
[patch]b3cf2b8a05:
Fix expand not allowing marks issue- Updated dependencies b3cf2b8a05:
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
withmain
andmodule
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
[patch]7602615cd4:
ED-8785 Improve stage-0 & type reference support in JSON Schema Generator- [patch]96ee7441fe:
ED-8751 Remove 'export *' and add lint rule to prevent circular deps on adf-utils- Updated dependencies 7602615cd4:
Updated dependencies 66dcced7a0:
- Updated dependencies c171660346:
- Updated dependencies 27fde59914:
- Updated dependencies b18fc8a1b6:
- Updated dependencies 7baff84f38:
- Updated dependencies eea5e9bd8c:
- Updated dependencies a5d0019a5e:
7.4.3
Patch Changes
[patch]8183f7c8da:
Remove Karma tests - based on AFP-960- Updated dependencies e8a31c2714:
Updated dependencies 8183f7c8da:
7.4.2
Patch Changes
[patch]6548261c9a:
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies 6548261c9a:
7.4.1
Patch Changes
[patch]b01fc0ceef:
ED-8151 Alt text is promoted to full schema. Feature flag and MediaOptions property UNSAFE_allowAltTextOnImages was renamed to allowAltTextOnImages.- Updated dependencies b01fc0ceef:
Updated dependencies d085ab4419:
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
- Updated dependencies 3e87f5596a:
- Updated dependencies d2b8166208:
- Updated dependencies 26dbe7be6d:
7.3.2
Patch Changes
[patch]761dcd6d19:
ED-7675: promote nested taskLists from stage-0 schema to full- Updated dependencies 761dcd6d19:
Updated dependencies faccb537d0:
7.3.1
Patch Changes
[patch]24865cfaff:
Relax text color mark validation to allow upper case characters
Updated dependencies 24865cfaff:
7.3.0
Minor Changes
[minor]f1a06fc2fd:
ED-7876 Add expand and nestedExpand to stage-0 schema
Adds two new nodes
expand
andnestedExpand
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 propUNSAFE_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 adiv > div
one. That is, both thetaskList
andtaskItem
are wrapped indiv
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
- Media: Removed deprecated "context" property from media components in favor of "mediaClientConfig". This affects all public media UI components.
- Tasks & Decisions: Removed containerAri for task-decisions components.
- Renderer: Adapts to task-decision changes.
- Editor Mobile Bridge: Adapts to task-decision changes.
- Util Data Test: Adapts to task-decision changes.
Affected Editor Components:
tables, media, mobile, emoji, tasks & decisions, analytics
Editor
- Support nested actions in stage-0 schema; Change DOM representation of actions
- Updated i18n translations
- Improved analytics & crash reporting (via a new error boundary)
- Improvements to heading anchor links.
- Copy/Paste improvements
- Fixes for the selection state of Smart links.
- Improvements for table resizing & column creation.
Mobile
- GASv3 Analytics Events are now relayed from the web to the native context, ready for dispatching.
- Hybrid Renderer Recycler view now handles invalid ADF nodes gracefully.
Media
- Improved analytics
- Added shouldOpenMediaViewer property to renderer
- Implemented analytics for file copy
- New
media-viewed
event dispatched when media is interacted with via the media card or viewer. - Support for
alt
text attribute on media image elements.
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
[minor]65ada7f318:
FABDODGEM-12 Editor Cashmere Release
Affected editor components:
tables, media, mobile, text color, emoji, copy/paste, analytics
Performance
- Async import for code blocks and task items on renderer
Table
- Add support to sort tables that contains smart links
- Scale table when changing to full width mode
Text color
- Update text color toolbar with right color when text is inside a list, panel, etc.
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
- Add analytics events and error reporting [NEW BIG FEATURE]
- https://product-fabric.atlassian.net/browse/MS-2275
- https://product-fabric.atlassian.net/browse/MS-2329
- https://product-fabric.atlassian.net/browse/MS-2330
- https://product-fabric.atlassian.net/browse/MS-2331
- https://product-fabric.atlassian.net/browse/MS-2332
- https://product-fabric.atlassian.net/browse/MS-2390
- Fixed issue where we can’t insert same file from MediaPicker twice
- Disable upload of external files to 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
[major]80adfefba2:
Remove applicationCard node and action mark
Updated dependencies 1194ad5eb3:
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
[patch]ecca4d1dbb:
Upgraded Typescript to 3.3.x
6.1.3
- Updated dependencies 6164bc2629:
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:
6.1.0
[minor]79f0ef0601:
- Use strict tsconfig to compile editor packages
6.0.5
- Updated dependencies 7c17b35107:
6.0.4
[patch]0a4ccaafae:
- Bump tslib
[patch]0ac39bd2dd:
- Bump tslib to 1.9
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
- Updated dependencies 76299208e6:
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
- ED-6154 Adds
5.5.0
[minor]a5b5a5098e:
- Adds index to visitor
5.4.2
[patch]76ed7f0:
- Update Specs
5.4.1
[patch]57cffcb:
- Need tslib
5.4.0
[minor]1205725:
- Move schema to its own package
5.3.4
- Updated dependencies 80f765b:
5.3.3
[patch]34df084:
- Fix layout schema and enable breakout layouts in renderer
5.3.2
- Updated dependencies 58b84fa:
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
- Updated dependencies 7e8b4b9:
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
- Updated dependencies 2c21466:
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
[patch][6201223](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6201223" d):
- Add examples.
4.0.1
- [patch] Fix floating number validation ea027b8
4.0.0
- [major] Wrap invalid node with unsupported node fb60e39
3.0.1
- [patch] Updated dependencies b1ce691
3.0.0
- [major] New validator API db2d466
2.2.6
- [patch] Updated dependencies 2afa60d
2.2.5
2.2.4
- [patch] make attris in ADFNode optioanla as not every node have this value df13878
2.2.3
- [patch] Updated dependencies 927ae63
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
- [patch] Updated dependencies 6e1d642
2.1.4
2.1.3
- [patch] Updated dependencies 7545979
2.1.2
- [patch] Updated dependencies b12f7e6
2.1.1
2.1.0
2.0.5
2.0.4
- [none] Updated dependencies 597e0bd
- [none] Updated dependencies 61df453
- [none] Updated dependencies 812a39c
- [none] Updated dependencies c8eb097
- [patch] Updated dependencies d02746f
2.0.3
- [patch] Updated dependencies acd86a1
2.0.2
- [patch] Include type files to release 02cae82
2.0.1
- [patch] Fix types for top level imports 61cd06b