数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 KiB

slate

0.72.8

Patch Changes

0.72.3

Patch Changes

0.72.2

Patch Changes

0.72.0

Patch Changes

  • #4708 2fc7ad92 Thanks @bryanph! - Allow Operation type to be extended

    For example:

    import type { BaseOperation } from 'slate'
    
    type CustomOperation =
     | BaseOperation
     | YourCustomOperation
     | AnotherCustomOperation
    
    declare module 'slate' {
      interface CustomTypes {
        Operation: CustomOperation;
      }
    }
    

0.71.0

Minor Changes

Patch Changes

  • #4671 e3afda94 Thanks @unageek! - Fixed the issue where the cursor jumps more than one character unexpectedly

0.70.0

Minor Changes

  • #4565 5818aca5 Thanks @oliger! - Fix issue with unicode 1.1 smileys followed by a variation selector.

Patch Changes

0.67.1

Patch Changes

0.66.5

Patch Changes

  • #4552 37d60c58 Thanks @clauderic! - Only apply Firefox toSlatePoint() offset fix when the cloned contents end in \n\n instead of just \n.

0.66.2

Patch Changes

0.66.1

Patch Changes

  • #4516 59ca7a8f Thanks @dylans! - another attempt to get the automated changeset workflow working again

0.66.0

Minor Changes

  • #4276 6f47cbbe Thanks @TheSpyder! - Switched from fast-deep-equal to a custom deep equality check. This restores the ability for text nodes with mark values set to undefined to merge with text nodes missing those keys.
  • #4428 b47d3fd1 Thanks @TheSpyder! - Don't set null in set_node's newProperties object when using Transforms.unsetNodes()

Patch Changes

  • #4482 dd752df1 Thanks @Jokcy! - Fix cursor not correct issue after insert multiple nodes with Transform.insertNodes
  • #4458 95c759a1 Thanks @taj-codaio! - Normalization now removes empty text nodes after nonempty nodes with differing styles, but before inline nodes.

0.65.3

Patch Changes

  • #4253 0214b630 Thanks @TheSpyder! - Fix Transforms.wrapNodes crashing when the match function matched only the editor

0.63.0

Minor Changes

  • #4230 796389c7 Thanks @TheSpyder! - Applying invalid insert_node operations will now throw an exception for all invalid paths, not just invalid parent paths.

Patch Changes

  • #4208 feb293aa Thanks @TheSpyder! - Fix Error: Cannot get the start point in the node at path [...] because it has no start text node caused by normalizing a document where some elements have no children
  • #4230 796389c7 Thanks @TheSpyder! - Exceptions in editor.apply() and Editor.withoutNormalizing() will no longer leave the editor in an invalid state
  • #4227 e6413d46 Thanks @ulion! - Fixed a bug that would allow multiple changes to be scheduled at the same time.

0.62.1

Patch Changes

  • #4193 fd70dc0b Thanks @beorn! - Fixed insert and remove text operations to no-op without any text.

0.62.0

Minor Changes

  • c6002024 - Updated Text.equals to deeply compare text node properties. Previously it only did a shallow comparison, but this made it harder to keep track of more complex data structures at the text level.
  • #4154 7283c51f Thanks @ianstormtaylor! - Start using 🦋 Changesets to manage releases. Going forward, whenever a pull request is made that fixes or adds functionality to Slate, it will need to be accompanied by a changset Markdown file describing the change. These files will be automatically used in the release process when bump the versions of Slate and compiling the changelog.
  • c6002024 - Added support for custom selection properties. Previously you could set custom properties on the selection objects but it was not a fully supported feature because there was no way to delete them later. Now custom properties are officially supported and deleting them once set is possible.

Patch Changes

  • c6002024 - Fixed move_node operations to normalize the node in question.
  • c6002024 - Added memoization logic to Node.isNodeList and Editor.isEditor to speed up common code paths.
  • c6002024 - Fixed a bug when merging deeply nested multi-child nodes.
  • c6002024 - Fixed a bug when deleting a hanging range with a trailing void block node.
  • c6002024 - Fixed a bug in Editor.positions which caused it to sometimes skip positions in text nodes that were segmented across inlines or marks.