Skip to content

fix(deps): update dependency slate to v0.117.0 #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 8, 2020

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
slate 0.47.9 -> 0.117.0 age adoption passing confidence

Release Notes

ianstormtaylor/slate (slate)

v0.117.0

Compare Source

Minor Changes
  • #​5885 c56a98fd Thanks @​felixfeng33! - - Remove ignoreNonSelectable option from positions,before,after,nodes.
    • Fix move behavior when encounter non-selectable inline voids.
Patch Changes
  • #​5890 9862ae71 Thanks @​joblolin95! - Handle backspace correctly for grapheme clusters in Burmese, Hindi, Khmer, Malayalam, Oriya, Punjabi, Tamil, and Telugu.

v0.116.0

Compare Source

Minor Changes
  • #​5871 fb87646e Thanks @​12joan! - - Implement experimental chunking optimization (disabled by default, see https://docs.slatejs.org/walkthroughs/09-performance).
    • Add useElement and useElementIf hooks to get the current element.
    • BREAKING CHANGE: Decorations are no longer recomputed when a node's parent re-renders, only when the node itself re-renders or when the decorate function is changed.
      • Ensure that decorate is a pure function of the node passed into it. Depending on the node's parent may result in decorations not being recomputed when you expect them to be.
      • If this change impacts you, consider changing your decorate function to work on the node's parent instead.
      • For example, if your decorate function decorates a code-line based on the parent code-block's language, decorate the code-block instead.
      • This is unlikely to result in any performance detriment, since in previous versions of slate-react, the decorations of all siblings were recomputed when one sibling was modified.
    • Increase minimum slate-dom version to 0.116.0.
    • Deprecate the useSlateWithV hook
    • PERF: Use subscribable pattern for useSlate, useSelected and decorations to reduce re-renders.

v0.115.1

Compare Source

Patch Changes

v0.114.0

Compare Source

Patch Changes

v0.113.0

Compare Source

v0.112.0

Compare Source

Minor Changes
  • #​5776 5a1c728c Thanks @​yf-yang! - Add merge optional function to decorations and change related type signatures to DecoratedRange. Now developers can specify how two decoration object with the same key but different value are merged together if they overlap"
Patch Changes

v0.110.2

Compare Source

Patch Changes

v0.103.0

Compare Source

Minor Changes
  • #​5621 d271c4be Thanks @​felixfeng33! - Add a shouldMergeNodesRemovePrevNode editor method to control when Transforms.mergeNodes should remove the previous node rather than carrying out a merge operation.
Patch Changes

v0.102.0

Compare Source

Minor Changes

v0.101.5

Compare Source

Patch Changes

v0.101.4

Compare Source

Patch Changes

v0.101.1

Compare Source

Patch Changes

v0.100.0

Compare Source

Minor Changes

v0.94.1

Compare Source

Patch Changes
  • #​5415 01f0210b Thanks @​zbeyens! - Editor.insertFragment, Editor.insertNode, Editor.insertText now accept options.
    For all insert methods, the default location is now the editor selection if at is not defined, or the end of document if editor.selection is not defined.

v0.94.0

Compare Source

Minor Changes
  • #​5307 3243c7e3 Thanks @​zbeyens! - New Features:

    • All Editor and Transforms methods now call editor methods. For example: Transforms.insertBreak now calls editor.insertBreak.
    • editor.setNodes now calls setNodes, an exported function that implements the default editor behavior.
    • You can now override editor.setNodes with your own implementation.
    • You can use either Editor.setNodes or editor.setNodes in your code, and both will use your overridden behavior.

    The editor object now has many more methods:

    export interface BaseEditor {
      // Core state.
    
      children: Descendant[]
      selection: Selection
      operations: Operation[]
      marks: EditorMarks | null
    
      // Overrideable core methods.
    
      apply: (operation: Operation) => void
      getDirtyPaths: (operation: Operation) => Path[]
      getFragment: () => Descendant[]
      isElementReadOnly: (element: Element) => boolean
      isSelectable: (element: Element) => boolean
      markableVoid: (element: Element) => boolean
      normalizeNode: (
        entry: NodeEntry,
        options?: { operation?: Operation }
      ) => void
      onChange: (options?: { operation?: Operation }) => void
      shouldNormalize: ({
        iteration,
        dirtyPaths,
        operation,
      }: {
        iteration: number
        initialDirtyPathsLength: number
        dirtyPaths: Path[]
        operation?: Operation
      }) => boolean
    
      // Overrideable core transforms.
    
      addMark: OmitFirstArg<typeof Editor.addMark>
      collapse: OmitFirstArg<typeof Transforms.collapse>
      delete: OmitFirstArg<typeof Transforms.delete>
      deleteBackward: (unit: TextUnit) => void
      deleteForward: (unit: TextUnit) => void
      deleteFragment: OmitFirstArg<typeof Editor.deleteFragment>
      deselect: OmitFirstArg<typeof Transforms.deselect>
      insertBreak: OmitFirstArg<typeof Editor.insertBreak>
      insertFragment: OmitFirstArg<typeof Transforms.insertFragment>
      insertNode: OmitFirstArg<typeof Editor.insertNode>
      insertNodes: OmitFirstArg<typeof Transforms.insertNodes>
      insertSoftBreak: OmitFirstArg<typeof Editor.insertSoftBreak>
      insertText: OmitFirstArg<typeof Transforms.insertText>
      liftNodes: OmitFirstArg<typeof Transforms.liftNodes>
      mergeNodes: OmitFirstArg<typeof Transforms.mergeNodes>
      move: OmitFirstArg<typeof Transforms.move>
      moveNodes: OmitFirstArg<typeof Transforms.moveNodes>
      normalize: OmitFirstArg<typeof Editor.normalize>
      removeMark: OmitFirstArg<typeof Editor.removeMark>
      removeNodes: OmitFirstArg<typeof Transforms.removeNodes>
      select: OmitFirstArg<typeof Transforms.select>
      setNodes: <T extends Node>(
        props: Partial<T>,
        options?: {
          at?: Location
          match?: NodeMatch<T>
          mode?: MaximizeMode
          hanging?: boolean
          split?: boolean
          voids?: boolean
          compare?: PropsCompare
          merge?: PropsMerge
        }
      ) => void
      setNormalizing: OmitFirstArg<typeof Editor.setNormalizing>
      setPoint: OmitFirstArg<typeof Transforms.setPoint>
      setSelection: OmitFirstArg<typeof Transforms.setSelection>
      splitNodes: OmitFirstArg<typeof Transforms.splitNodes>
      unsetNodes: OmitFirstArg<typeof Transforms.unsetNodes>
      unwrapNodes: OmitFirstArg<typeof Transforms.unwrapNodes>
      withoutNormalizing: OmitFirstArg<typeof Editor.withoutNormalizing>
      wrapNodes: OmitFirstArg<typeof Transforms.wrapNodes>
    
      // Overrideable core queries.
    
      above: <T extends Ancestor>(
        options?: EditorAboveOptions<T>
      ) => NodeEntry<T> | undefined
      after: OmitFirstArg<typeof Editor.after>
      before: OmitFirstArg<typeof Editor.before>
      edges: OmitFirstArg<typeof Editor.edges>
      elementReadOnly: OmitFirstArg<typeof Editor.elementReadOnly>
      end: OmitFirstArg<typeof Editor.end>
      first: OmitFirstArg<typeof Editor.first>
      fragment: OmitFirstArg<typeof Editor.fragment>
      getMarks: OmitFirstArg<typeof Editor.marks>
      hasBlocks: OmitFirstArg<typeof Editor.hasBlocks>
      hasInlines: OmitFirstArg<typeof Editor.hasInlines>
      hasPath: OmitFirstArg<typeof Editor.hasPath>
      hasTexts: OmitFirstArg<typeof Editor.hasTexts>
      isBlock: OmitFirstArg<typeof Editor.isBlock>
      isEdge: OmitFirstArg<typeof Editor.isEdge>
      isEmpty: OmitFirstArg<typeof Editor.isEmpty>
      isEnd: OmitFirstArg<typeof Editor.isEnd>
      isInline: OmitFirstArg<typeof Editor.isInline>
      isNormalizing: OmitFirstArg<typeof Editor.isNormalizing>
      isStart: OmitFirstArg<typeof Editor.isStart>
      isVoid: OmitFirstArg<typeof Editor.isVoid>
      last: OmitFirstArg<typeof Editor.last>
      leaf: OmitFirstArg<typeof Editor.leaf>
      levels: <T extends Node>(
        options?: EditorLevelsOptions<T>
      ) => Generator<NodeEntry<T>, void, undefined>
      next: <T extends Descendant>(
        options?: EditorNextOptions<T>
      ) => NodeEntry<T> | undefined
      node: OmitFirstArg<typeof Editor.node>
      nodes: <T extends Node>(
        options?: EditorNodesOptions<T>
      ) => Generator<NodeEntry<T>, void, undefined>
      parent: OmitFirstArg<typeof Editor.parent>
      path: OmitFirstArg<typeof Editor.path>
      pathRef: OmitFirstArg<typeof Editor.pathRef>
      pathRefs: OmitFirstArg<typeof Editor.pathRefs>
      point: OmitFirstArg<typeof Editor.point>
      pointRef: OmitFirstArg<typeof Editor.pointRef>
      pointRefs: OmitFirstArg<typeof Editor.pointRefs>
      positions: OmitFirstArg<typeof Editor.positions>
      previous: <T extends Node>(
        options?: EditorPreviousOptions<T>
      ) => NodeEntry<T> | undefined
      range: OmitFirstArg<typeof Editor.range>
      rangeRef: OmitFirstArg<typeof Editor.rangeRef>
      rangeRefs: OmitFirstArg<typeof Editor.rangeRefs>
      start: OmitFirstArg<typeof Editor.start>
      string: OmitFirstArg<typeof Editor.string>
      unhangRange: OmitFirstArg<typeof Editor.unhangRange>
      void: OmitFirstArg<typeof Editor.void>
    }

    Note:

    • None of these method implementations have changed.
    • getMarks is an exception, as there is already editor.marks that stores the current marks.
    • Transforms.insertText has not been moved to editor yet: there is already an editor.insertText method with extended behavior. This may change in a future release, but this release is trying to avoid any breaking changes.
    • editor.insertText has a new argument (third): options?: TextInsertTextOptions to match Transforms.insertText.

    Bug Fixes:

    • Moving JSDoc's to the interface type to allow IDEs access to the interface methods.
Patch Changes

v0.93.0

Compare Source

Minor Changes
  • #​5374 b52e08b0 Thanks @​12joan! - - Add isSelectable to editor (default true). A non-selectable element is skipped over when navigating using arrow keys.

    • Add ignoreNonSelectable to Editor.nodes, Editor.positions, Editor.after and Editor.before (default false)
    • Transforms.move ignores non-selectable elements
  • #​5374 b52e08b0 Thanks @​12joan! - - Add isElementReadOnly to editor. A read-only element behaves much like a void with regard to selection and deletion, but renders its children the same as any other non-void node.

v0.91.4

Compare Source

Patch Changes

v0.91.3

Compare Source

Patch Changes

v0.91.1

Compare Source

Patch Changes

v0.90.0

Compare Source

Patch Changes

v0.88.1

Compare Source

Patch Changes

v0.87.0

Compare Source

Minor Changes

v0.86.0

Compare Source

Patch Changes

v0.85.0

Compare Source

Patch Changes

v0.84.0

Compare Source

Minor Changes

v0.82.1

Compare Source

Patch Changes

v0.82.0

Compare Source

Minor Changes
  • #​5041 9bc0b613 Thanks @​bryanph! - - Introduces a useSlateSelection hook that triggers whenever the selection changes.

    • This also changes the implementation of SlateContext to use an incrementing value instead of an array replace to trigger updates
    • Introduces a useSlateWithV hook that includes the version counter which can be used to prevent re-renders
  • #​4988 fbab6331 Thanks @​BitPhinix! - Android input handling rewrite, replace composition insert prefixes with decoration based mark placeholders

v0.81.3

Compare Source

v0.81.1

Compare Source

Patch Changes
  • #​5015 9ae37287 Thanks @​tithanayut! - Fix deleteBackward behavior for Thai script where deleting N character(s) backward should delete
    N code point(s) instead of an entire grapheme cluster

v0.81.0

Compare Source

Minor Changes

v0.80.0

Compare Source

Patch Changes

v0.78.0

Compare Source

Minor Changes

v0.77.2

Compare Source

Patch Changes

v0.77.0

Compare Source

Patch Changes

v0.76.1

Compare Source

Patch Changes

v0.76.0

Compare Source

Minor Changes
  • #​4873 20acca4b Thanks @​bryanph! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now.

    If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead.

Patch Changes
  • #​4901 5ef346fe Thanks @​bryanph! - Fixes a bug where nodes remounted on split_node and merge_node

  • #​4885 07669dca Thanks @​ryanmitts! - toSlatePoint should not consider a selection within a void node if the void node isn't in the editor itself.

    Prior to this fix, a nested Slate editor inside a void node in a parent editor would not allow you to start typing text in a blank editor state correctly. After the first character insertion, the selection would jump back to the start of the nested editor.

  • #​4910 2a8d86f1 Thanks @​jasonphillips! - Fix decorations applied across nested elements

v0.75.0

Compare Source

Patch Changes

v0.73.1

Compare Source

Patch Changes

v0.73.0

Compare Source

Patch Changes

v0.72.8

Compare Source

Patch Changes

v0.72.3

Compare Source

Patch Changes

v0.72.0

Compare Source

Minor Changes
Patch Changes

v0.71.0

Compare Source

Minor Changes
  • #​4682 e5380655 Thanks @​matthewkeil! - Support SSR for autoCorrect, spellCheck and autoCapitalize.
    Fixes prop mismatch between server and client.
    Removes the need to add

v0.70.0

Minor Changes
Patch Changes

v0.66.5

Compare Source

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

v0.66.2

Compare Source

Patch Changes

v0.66.1

Compare Source

Patch Changes

v0.66.0

Compare Source

Minor Changes
Patch Changes

v0.65.3

Compare Source

Patch Changes

v0.63.0

Compare Source

Patch Changes

v0.62.1

Patch Changes

v0.61.3

Compare Source

v0.61.0

Compare Source

v0.60.17

Compare Source

v0.60.11

Compare Source

v0.60.9

Compare Source

v0.60.8

Compare Source

v0.60.4

Compare Source

v0.60.3

Compare Source

v0.60.2

Compare Source

v0.60.1

Compare Source

v0.60.0

Compare Source

v0.59.0

Compare Source

v0.58.4

Compare Source

v0.58.3

Compare Source

v0.58.1

Compare Source

v0.58.0

Compare Source

v0.57.3

Compare Source

v0.57.2

Compare Source

v0.57.1

Compare Source

v0.57.0

Compare Source

[v0.56.1](https://redirect.github.com/ianstormtaylor/slate/co


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link

vercel bot commented Aug 8, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/github56/react-jsonschema-form-material-ui/Hs2ysdSCyLVctXMYWMxQcYe1KVur
✅ Preview: https://react-jsonschema-form-material-ui-git-renovate-9a1b49-github56.vercel.app

@renovate renovate bot changed the title fix(deps): update dependency slate to v0.58.4 Update dependency slate to v0.58.4 Aug 8, 2020
@renovate renovate bot changed the title Update dependency slate to v0.58.4 fix(deps): update dependency slate to v0.58.4 Aug 21, 2020
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.58.4 Update dependency slate to v0.58.4 Aug 22, 2020
@renovate renovate bot changed the title Update dependency slate to v0.58.4 fix(deps): update dependency slate to v0.58.4 Aug 22, 2020
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.58.4 Update dependency slate to v0.58.4 Aug 22, 2020
@renovate renovate bot changed the title Update dependency slate to v0.58.4 fix(deps): update dependency slate to v0.58.4 Aug 22, 2020
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.58.4 Update dependency slate to v0.58.4 Aug 22, 2020
@renovate renovate bot changed the title Update dependency slate to v0.58.4 fix(deps): update dependency slate to v0.58.4 Aug 24, 2020
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.58.4 Update dependency slate to v0.58.4 Sep 11, 2020
@renovate renovate bot changed the title Update dependency slate to v0.58.4 fix(deps): update dependency slate to v0.58.4 Sep 21, 2020
@renovate renovate bot force-pushed the renovate/slate-0.x branch from 262dc98 to d112e89 Compare September 25, 2020 03:50
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.58.4 fix(deps): update dependency slate to v0.59.0 Sep 25, 2020
@renovate renovate bot force-pushed the renovate/slate-0.x branch from d112e89 to e6f627b Compare November 8, 2020 18:32
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.59.0 Update dependency slate to v0.59.0 Nov 9, 2020
@renovate renovate bot changed the title Update dependency slate to v0.59.0 fix(deps): update dependency slate to v0.59.0 Nov 24, 2020
@renovate renovate bot force-pushed the renovate/slate-0.x branch from e6f627b to fb55a75 Compare January 25, 2021 02:30
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.59.0 Update dependency slate to v0.59.0 Feb 13, 2021
@renovate renovate bot force-pushed the renovate/slate-0.x branch from fb55a75 to 8d331f9 Compare March 29, 2021 21:36
@renovate renovate bot changed the title Update dependency slate to v0.59.0 Update dependency slate to v0.61.0 Mar 29, 2021
@renovate renovate bot force-pushed the renovate/slate-0.x branch from 8d331f9 to ffa064e Compare March 31, 2021 01:16
@renovate renovate bot changed the title Update dependency slate to v0.61.0 Update dependency slate to v0.61.3 Mar 31, 2021
@renovate renovate bot force-pushed the renovate/slate-0.x branch from ffa064e to 40a6c42 Compare April 1, 2021 08:19
@renovate renovate bot changed the title Update dependency slate to v0.61.3 Update dependency slate to v0.62.0 Apr 1, 2021
@renovate renovate bot force-pushed the renovate/slate-0.x branch from 19d9e45 to f09cd72 Compare April 21, 2024 22:57
@renovate renovate bot changed the title Update dependency slate to v0.102.0 Update dependency slate to v0.103.0 Apr 21, 2024
@renovate renovate bot force-pushed the renovate/slate-0.x branch from f09cd72 to d639a75 Compare July 26, 2024 22:15
@renovate renovate bot changed the title Update dependency slate to v0.103.0 fix(deps): update dependency slate to v0.103.0 Jul 26, 2024
@renovate renovate bot force-pushed the renovate/slate-0.x branch from d639a75 to de24a08 Compare October 17, 2024 09:57
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.103.0 fix(deps): update dependency slate to v0.110.2 Oct 17, 2024
@renovate renovate bot force-pushed the renovate/slate-0.x branch from de24a08 to d42acee Compare November 23, 2024 15:10
@renovate renovate bot force-pushed the renovate/slate-0.x branch from d42acee to 86cceda Compare December 7, 2024 21:33
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.110.2 fix(deps): update dependency slate to v0.112.0 Dec 7, 2024
@renovate renovate bot force-pushed the renovate/slate-0.x branch from 86cceda to 74b3b38 Compare April 29, 2025 17:33
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.112.0 fix(deps): update dependency slate to v0.114.0 Apr 29, 2025
@renovate renovate bot force-pushed the renovate/slate-0.x branch from 74b3b38 to 4ef8eb3 Compare May 26, 2025 12:46
@renovate renovate bot force-pushed the renovate/slate-0.x branch from 4ef8eb3 to 1eeaf21 Compare June 3, 2025 16:26
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.114.0 fix(deps): update dependency slate to v0.115.1 Jun 3, 2025
@renovate renovate bot force-pushed the renovate/slate-0.x branch from 1eeaf21 to fa5759f Compare June 11, 2025 02:46
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.115.1 fix(deps): update dependency slate to v0.116.0 Jun 11, 2025
@renovate renovate bot force-pushed the renovate/slate-0.x branch from fa5759f to df6b343 Compare June 11, 2025 21:57
@renovate renovate bot changed the title fix(deps): update dependency slate to v0.116.0 fix(deps): update dependency slate to v0.117.0 Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant