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

Package detail

@atlaskit/editor-tables

atlassian112.2kApache-2.02.9.8TypeScript support: included

A package that contains common classes and utility functions for editor tables

readme

changelog

@atlaskit/editor-tables

2.9.8

Patch Changes

  • Updated dependencies

2.9.7

Patch Changes

  • Updated dependencies

2.9.6

Patch Changes

  • Updated dependencies

2.9.5

Patch Changes

  • Updated dependencies

2.9.4

Patch Changes

2.9.3

Patch Changes

  • #148184 cf70e8acad123 - EDITOR-321 Cleaned up feature gate platform_editor_cell_selection_with_nested_tables

2.9.2

Patch Changes

  • Updated dependencies

2.9.1

Patch Changes

  • #117917 feeb187f3871c - Fix selections between cells across tables, and cells to content outside tables
  • Updated dependencies

2.9.0

Minor Changes

2.8.6

Patch Changes

  • #109121 6d2a8d349742b - [ux] [ED-25650] This PR is aligning keyboard behaviour for nested tables and parent tables by fixing a bug where pressing Tab sometimes incorrectly selects the drag handle and gets stuck.

2.8.5

Patch Changes

  • #109026 05e5c3f595ae0 - [ux] [ED-26076] Fixed bug where selecting from parent cell to nested table cell caused a cell selection instead of a partial text selection.

2.8.4

Patch Changes

  • Updated dependencies

2.8.3

Patch Changes

  • #101371 3cce4a292ef1e - Add fix for move column logic when moving a column before a column with merged rows behind FG platform_editor_table_fix_move_column

2.8.2

Patch Changes

2.8.1

Patch Changes

2.8.0

Minor Changes

  • #124190 9ab9c4ca2b9df - Clean-up platform.editor.refactor-highlight-toolbar_mo0pj feature flag
  • #124209 8aa1792f12ed3 - bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0

2.7.5

Patch Changes

  • 3b20c735bc9ee - [ux] Insert full-width table in comment editor when table resizing is enabled.

2.7.4

Patch Changes

  • #102210 fe0d7aa7668a - Set layout attribute for tables to align-left when inserted in full width editor

2.7.3

Patch Changes

  • #94829 815fda434fe7 - [ED-22849] Align add column and row behaviour behind platform_editor_table_duplicate_cell_colouring flag so that adding a column will copy cell background from the left and adding a row will copy background colour from row above

2.7.2

Patch Changes

2.7.1

Patch Changes

2.7.0

Minor Changes

2.6.3

Patch Changes

2.6.2

Patch Changes

  • #88717 d92770eae702 - Adding internal eslint opt outs for a new rule @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop.

2.6.1

Patch Changes

2.6.0

Minor Changes

  • #83612 25b32cbfbb7e - [ux] Added new clone row/column behaviour to tables drag N drop. When the user holds the alt modifier during the operation the row/column will be duplicated rather then moved.

2.5.8

Patch Changes

2.5.7

Patch Changes

  • #77796 eab996d08513 - Add new statsig experiement for preserve table width, add support for passing through width to create table. Allow tables to be inserted at full width

2.5.6

Patch Changes

2.5.5

Patch Changes

  • #72037 e59f0b7a9115 - [ux] add flexiable to make merged cells detection allow to detect edge merged cells

2.5.4

Patch Changes

2.5.3

Patch Changes

  • #70718 e5d2832002bb - Patched a bug in the table paste logic which was throwing an error during the selection phase of the paste event when the pasted data contained a table row ending with a merged cell. The error from the selection is causing the table data to be injected as plain text inline.

2.5.2

Patch Changes

2.5.1

Patch Changes

  • #69625 67d7971c6ddf - [ux] Tables DnD now supports dragging multiple rows/columns in a single drag using multi-select

2.5.0

Minor Changes

  • #69232 93c8f231aa82 - Optimized the table move column logic to perform individual insert/deletes per row

2.4.0

Minor Changes

  • #67400 191436e36f93 - Optimised the table move row logic to perform insert/delete steps rather than an entire table replacement

2.3.18

Patch Changes

  • #60278 bc2785a02329 - Selection of multiple rows / column should remain when clicking the drag handle

2.3.17

Patch Changes

  • #59009 f7e9d874ff37 - Fix table expand selection when platform.editor.table-shift-click-selection-backward FF is enabled

2.3.16

Patch Changes

  • #58433 4d8e164d7760 - fix shift + click to expand column / row selection bug when platform.editor.table.drag-and-drop is enabled

2.3.15

Patch Changes

2.3.14

Patch Changes

2.3.13

Patch Changes

2.3.12

Patch Changes

  • #41991 28a7171e7e3 - [ux] add shift click select backward feature to expand selection

2.3.11

Patch Changes

2.3.10

Patch Changes

2.3.9

Patch Changes

  • #39381 35242fb367a - Add custom-table-width feature flag and add width to table node when inserted

2.3.8

Patch Changes

  • Updated dependencies

2.3.7

Patch Changes

  • #37785 4e6f1bf8511 - [ED-19233] Import prosemirror libraries from internal facade package

2.3.6

Patch Changes

2.3.5

Patch Changes

2.3.4

Patch Changes

  • #35533 fa1f53e0ae7 - [ED-18167] Remove dependency of editor-tables on adf schema library to avoid a circular dependency

2.3.3

Patch Changes

2.3.2

Patch Changes

  • #33771 a142ba1aa28 - [ED17172] Bump prosemirror-model to 1.16.0 and prosemirror-view to 1.23.7 and removed work-arounds for fixed issues

2.3.1

Patch Changes

2.3.0

Minor Changes

2.2.6

Patch Changes

  • #33004 0ffb55018c9 - Revert "[ED-17172] Bumped prosemirror-view from 1.23.2 to 1.23.7 and removed work-around for fixed issues"

2.2.5

Patch Changes

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

2.2.4

Patch Changes

  • #28932 4080eb013ef - [ux] Fix bug where pasting inside a table did not respect the table's headers. Pasted cells are formatted based on the table they are being pasted into.
  • 4f6a895f1d5 - Set selectable property for selectable nodes
  • 4f6a895f1d5 - Fix arrow shift selection coming from outside of the table

2.2.3

Patch Changes

  • #28090 dbef481f7df - [ux] ED-15724: fix the merged row(2nd row or later) cannot been recongnized as row selection and cannot be deleted.

2.2.2

Patch Changes

  • #26712 47f1f76cb80 - Add selectTableClosestToPos function
  • 755d7bf5c2a - [ux] ED-12527 Prevents editor-tables handleMouseDown() from creating a cell selection when right clicking in a table cell.

2.2.1

Patch Changes

  • #27511 403e0d2d291 - ED-16246 fix prevent @types/prosemirror-commands @types/prosemirror-keymap updating to incompatible version.

2.2.0

Minor Changes

2.1.6

Patch Changes

  • #24607 95f007063cf - Decoupling paste plugin and table plugin, copied replaceSelectedTable and getSelectedTableInfo utils to editor-tables utils package and analytics dependency shifted to paste plugin.

2.1.5

Patch Changes

  • #23381 e6f25536fe3 - [ux][ed-15168] Fixes a bug where a width-less column was created when pasting table cells into a table that had columns with set widths.

2.1.4

Patch Changes

  • #20033 b29ce16dad8 - [ED-14606] Move bitbucket schema, confluence schema, jira schema, and default schema from @atlaskit/adf-schema to their own entry points. These new entry points are as follows

    @atlaskit/adf-schema/schema-bitbucket for:

    • bitbucketSchema

    @atlaskit/adf-schema/schema-confluence for:

    • confluenceSchema
    • confluenceSchemaWithMediaSingle

    @atlaskit/adf-schema/schema-jira for:

    • default as createJIRASchema
    • isSchemaWithLists
    • isSchemaWithMentions
    • isSchemaWithEmojis
    • isSchemaWithLinks
    • isSchemaWithAdvancedTextFormattingMarks
    • isSchemaWithCodeBlock
    • isSchemaWithBlockQuotes
    • isSchemaWithMedia
    • isSchemaWithSubSupMark
    • isSchemaWithTextColor
    • isSchemaWithTables

    @atlaskit/adf-schema/schema-default for:

    • defaultSchema
    • getSchemaBasedOnStage
    • defaultSchemaConfig

    This change also includes codemods in @atlaskit/adf-schema to update these entry points. It also introduces a new util function "changeImportEntryPoint" to @atlaskit/codemod-utils to handle this scenario.

2.1.3

Patch Changes

  • #19618 cbfbaab61bb - [ux][ed-14300] Remove column width from table cells being pasted into another table as it should take the formatting of the destination table.

2.1.2

Patch Changes

  • #18526 4e6fbaf5898 - ED-14117 Change EditorState.apply type to receive readonly transaction

    Transactions should not be mutated after being dispatched as it can lead to unexpected behaviour. This change patches the relevant types declared in prosemirror-state as a compile-time safeguard.

2.1.1

Patch Changes

2.1.0

Minor Changes

Patch Changes

  • c6feed82071 - ED-11632: Bump prosemirror packages;

    • prosmirror-commands 1.1.4 -> 1.1.11,
    • prosemirror-model 1.11.0 -> 1.14.3,
    • prosemirror-state 1.3.3 -> 1.3.4,
    • prosemirror-transform 1.2.8 -> 1.3.2,
    • prosemirror-view 1.15.4 + 1.18.8 -> 1.20.2.

2.0.1

Patch Changes

2.0.0

Major Changes

1.1.5

Patch Changes

  • #9510 5089bd2544d - ED-11919: generate localId for tables
  • 58b170725be - Renamed @atlaskit/editor-test-helpers/schema-builder to @atlaskit/editor-test-helpers/doc-builder

1.1.4

Patch Changes

  • #9083 d2e70ebaaa9 - NO-ISSUE: updated editor tests to use 'doc: DocBuilder' instead of 'doc: any'
  • fe1c96a3d28 - added DocBuilder type to @atlaskit/editor-test-helpers, replaced duplicate definitions and DocumentType

1.1.3

Patch Changes

1.1.2

Patch Changes

  • #5860 703752d487 - ED-10647 Remove caret from prosemirror-model, prosemirror-keymap, prosemirror-state, prosemirror-transform to lock them down to an explicit version

1.1.1

Patch Changes

  • #5516 e4abda244e - ED-9912: replace prosemirror-tables with editor-tables
  • d39fa49905 - ED-10420: remove utils copied from prosemirror-utils

1.1.0

Minor Changes

Patch Changes

  • 2d4bbe5e2e - [ED-10503] Fix prosemirror-view version at 1.15.4 without carret
  • 9bf037e4e6 - ED-10252: tests for moveColumn
  • b5e04ea3f6 - ED-10052: added the original MIT license to the package's source code
  • 93be5de4de - Move table_moveRow tests from prosemirror-utils to editor-tables
  • aa65a361a1 - Added some util functions
  • Updated dependencies

1.0.2

Patch Changes

  • #4424 e485167c47 - ED-10018: bump prosemirror-tables to fix copy-pasting merged rows
  • 7325aff6d3 - ED-9626: added unit tests for CellSelection and tableEditing plugin to editor-tables
  • Updated dependencies

1.0.1

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.

1.0.0

Major Changes

  • #3428 b00bfbe3f3 - ED-9627 Added new @atlaskit/editor-tables package to include common editor tables related code. Included TableMap class from prosemirror-tables package with it.