Skip to content

Latest commit

 

History

History
337 lines (238 loc) · 11.3 KB

CHANGELOG.md

File metadata and controls

337 lines (238 loc) · 11.3 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

  • update: Increase length of prefix and suffix in getLocalHighlightText

[7.2.2] - 2020-02-28

  • fix: only trigger collab plugin on transactions containing steps to avoid double-sending changes.

[7.2.1] - 2020-02-20

  • update: Add from, to values to getLocalHighlightText()

[7.2.0] - 2020-01-15

  • Introduce setEditorSelectionFromClick utility

[7.1.0] - 2020-01-13

  • Set { selectable:false } for most base schema nodes like headers and lists

[7.0.0] - 2019-12-20

  • Add domEvents plugin that captures latestDomEvent and adds it to editorChangeObject
  • Replace importHtml with getDocForHtmlString
  • Add onScrollToSelection prop to Editor so callers can interfere with scrolling

[6.6.2] - 2019-11-25

  • Cache initial call to renderStatic() with React.memo() for performance improvement.

[6.6.1] - 2019-11-19

  • Fix a CSS issue that broke table editing in Firefox
  • Update prosemirror-tables to v0.9.5

[6.6.0] - 2019-11-18

  • Add optional href attribute to citations and footnotes, allowing them to be rendered as links
  • Update (s)css structure so it can be bundled by PubPub's document exporter
  • Replace rowspan with rowSpan for React
  • fix: onChange getShortcutValues index bug

[6.5.0] - 2019-11-11

  • dev: Add onKeyPress handler prop to Editor component

[6.4.0] - 2019-11-11

  • dev: Refactor collaborative plugin. Improves performance and handles a few edge-case bugs.

[6.3.1] - 2019-11-08

  • When renderForPandoc is true, render math script tags using React and dangerouslySetInnerHTML to prevent ReactDOM from adding HTML character entities to the tag content.

[6.3.0] - 2019-11-08

  • Render media captions with div instead of span
  • New renderForPandoc attr for equations
  • Replace colspan with colSpan for React

[6.2.9] - 2019-10-07

  • Add new importDocJson utility for PubPub to consume
  • Add fixedHeader attr to heading schema type

[6.2.8] - 2019-10-01

  • Shim fs require from css dependency in browser environment.

[6.2.7] - 2019-09-18

  • fix: getNotes citation keying bug
  • update: Tweak margin on float figures

[6.2.6] - 2019-09-06

  • fix: Add left/right padding to float figures

[6.2.5] - 2019-09-06

  • fix: Temporarily fix for an issue with React-rendering of editor content with inline styles

[6.2.4] - 2019-09-06

  • fix: Fixed an issue with file embeds crashing the editor under certain circumstances

[6.2.2] - 2019-09-06

  • fix: Paste collab sync bug

[6.2.1] - 2019-09-06

  • fix: Image copy and paste bug

[6.2.0] - 2019-08-22

  • update: add getNotes function
  • update: Move to native prosemirror rendering rather than nodeviews
  • fix: Collaborative lint and readOnly catch

[6.1.5] - 2019-08-22

  • fix: Handle setSelection properly to avoid crashes casued by new prosemirror-state

[6.1.4] - 2019-08-08

  • fix: mostRecentKey calc type error

[6.1.3] - 2019-08-01

  • update: Do not render placeholder if no placeholder prop has been passed in

[6.1.2] - 2019-08-01

  • fix: getShortcutValues position bug
  • fix: Handle mostRecentKey calc for very large step arrays

[6.1.1] - 2019-08-01

  • fix: Remove testing error

[6.1.0] - 2019-07-23

  • feature: Add onError prop that will be called with transaction and firebase errors.
  • dev: Simplify handling of collab meta keys

[6.0.7] - 2019-07-23

  • fix: Use https for git package

[6.0.6] - 2019-07-23

  • fix: Use prosemirror-view hotfix to handle selection bug.

[6.0.5] - 2019-07-22

  • fix: Proper check for prosemirror-table plugin

[6.0.4] - 2019-07-18

  • fix: Draw columns properly in readOnly mode.
  • fix: Add try around discussion restore selection.

[6.0.3] - 2019-07-18

  • dev: Add to list of steps to not send.

[6.0.2] - 2019-07-18

  • fix: Index error in citation plugin.

[6.0.1] - 2019-07-16

  • fix: Do not show collaborative cursors if isReadOnly is set.

[6.0.0] - 2019-07-15

  • update: collaborative plugin now fires an onUpdateLatestKey callback with the latest remote key from Firebase.
  • update: BREAKING - collaborationOptions updated to take ref, rather than firebase credentials
  • update: BREAKING - new firebase schema to support merges, branches, and other metadata.

[5.3.7] - 2019-03-22

  • fix: usedHighlights infinite transaction loop bug

[5.3.6] - 2019-03-05

  • update: Add and refactor cursor manipulation utilties

[5.3.5] - 2019-03-01

  • fix: Remove postinstall githook copying because it caused npm install @pubpub/editor to fail

[5.3.4] - 2019-03-01

  • update: Handle undefined editor in getText and getJSON
  • dev: Add pre-push hooks to run lint

[5.3.3] - 2019-02-26

  • fix: Grab node schema defaultOptions from right place

[5.3.2] - 2019-01-06

  • feature: Add moveSelectionToStart and moveSelectionToEnd utility functions

[5.3.1] - 2018-12-31

  • feature: Add marksAtSelection function to utilities

[5.3.0] - 2018-12-28

  • feature: Support audio files
  • fix: Update File component to use bp3 classnames
  • fix: Video pointer event handling in editor
  • fix: Image and Iframe draggable flag

[5.2.3] - 2018-12-27

  • fix: Update blocktype is active to properly set value when at depth 0

[5.2.2] - 2018-12-27

  • dev: Update prosemirror and react dependencies

[5.2.1] - 2018-12-27

  • update: Add paragraph and code block to Block Toggle in menuItems

[5.2.0] - 2018-12-26

  • feature: Add canRun boolean to onChange menuItems object.
  • feature: Add handleSingleClick and handleDoubleClick props to Editor component

[5.1.2] - 2018-11-12

  • update: headerIds more cleanly handles additional whitespace.

[5.1.1] - 2018-11-12

  • update: headerIds module trims after replacing non alphanumeric characters to avoid leading or trailing hyphens.

[5.1.0] - 2018-11-08

  • feature: Highlight quote now takes a generateActionElement function in options that can be used to create an element for scrolling, highlighting, or other highlight actions.
  • update: Breaking HighlightQuote no longer provides scroller or highlight functionality.
  • update: Add download attribute to File component links.
  • fix: Highlight plugin properly checks doc nodeSize.
  • fix: Highlight plugin properly handles textQuote errors.

[5.0.4] - 2018-10-29

  • fix: Parse more variants of strikethrough dom nodes.

[5.0.3] - 2018-10-29

  • fix: importHtml more properly inserts Slice rather than looping through nodes.

[5.0.2] - 2018-10-21

  • fix: Properly referencing new prosemirror-compress-pubpub package.

[5.0.1] - 2018-10-21

  • fix: Use new prosemirror-compress package that solves Safari Object prototype bug.

[5.0.0] - 2018-10-16

  • update: Breaking - rebuilt architecture that simplifies and cleans use of the PubPub editor. The editor is no longer responsible for interfaces to nodeviews and menus. The data necessary to build such menus are passed up in the onChange response.

[4.11.0] - 2018-06-20

  • feature: Add importHtml function to .

[4.10.0] - 2018-06-20

  • update: Prosemirror and react dependencies.

[4.9.1] - 2018-06-08

  • feature: Allow images to link to their src.

[4.9.0] - 2018-05-26

  • fix: Change chapter to section for more general naming.

[4.8.3] - 2018-05-25

  • fix: Apply highlights in batches for better performance.

[4.8.2] - 2018-05-09

  • fix: Trim header Id to remove trailing spaces.

[4.8.1] - 2018-05-04

  • fix: Attempting to fix firebase dependency bug.

[4.8.0] - 2018-05-04

  • feature: Add handlePermalink prop for HighlightQuote.

[4.7.0] - 2018-05-04

  • feature: Add chapter support in highlights.

[4.6.1] - 2018-04-19

  • fix: Clean up spans produced when rendering staticMarkup.

[4.6.0] - 2018-04-19

  • feature: Add renderStaticMarkup prop on so that you can server-render clean markup.

[4.5.2] - 2018-03-30

  • fix: Don't catch getJSONs error - let is pass up the promise chain.

[4.5.1] - 2018-03-24

  • feature: Add getText function.

[4.5.0] - 2018-03-23

  • feature: Add getCollabJSONs function to which builds the JSONS at a array of paths.

[4.4.7] - 2018-03-11

  • fix: Bug fix for Editors with no children components

[4.4.6] - 2018-03-11

  • fix: Only trigger onChange on Editor component if the doc changes - rather than on every transaction.

[4.4.5] - 2018-02-26

  • fix: Highlight version bug fix.

[4.4.4] - 2018-02-24

  • fix: Handle transaction disconnect error with .catch

[4.4.3] - 2018-02-24

  • fix: Better handling of resending pending changes when a transaction fails to commit.

[4.4.2] - 2018-02-23

  • fix: Fix dom anchor selection

[4.4.1] - 2018-02-23

  • fix: Fix handling of chrome-bug-workaround in options-wrapper

[4.4.0] - 2018-02-23

  • feature: support for collaborative firebase authentication added.

[4.3.0] - 2018-02-23

  • fix: Collaborative editor rewritten to be much more stable.
  • fix: Load collaborative doc all at once if there is a checkpoint, rather than by piece.
  • feature: collaborative docs now show loading bars until remote doc is loaded.
  • feature: cursors are now inline rather than circles on the side

[4.2.12] - 2018-02-07

  • CSS scope header bug fix

[4.2.11] - 2018-02-07

  • Aligning headerLinks to top of header

[4.2.10] - 2018-02-07

  • Add support for showHeaderLinks
  • Make headers 'defining'

[4.2.9] - 2018-02-07

  • Headers are now assigned ids equal to their content

[4.2.8] - 2018-02-05

  • Latex middle alignment fix

[4.2.7] - 2018-02-03

  • Footnote CSS alignment fix for Firefox.

[4.2.6] - 2018-01-25

  • Change permalink copy button text.

[4.2.5] - 2018-01-16

  • Formatting menu no longer maxes out at top = 0. Fixes overlap on first line.
  • HighlightMenu button overlap fix.
  • HighlightMenu button uses CopyToClipboard and direct NewDiscussion buttons.

[4.2.4] - 2018-01-16

  • Bug fix for database healing

[4.2.3] - 2018-01-03

  • Quick bug fix for Citation List SSR. Needs more work for proper SSR rendering

[4.2.2] - 2018-01-03

  • Bug fix for server render of empty paragraphs.
  • Fix static render functions to never insert div inside p. It ruins SSR

[4.2.1] - 2018-01-01

  • Add support for editorId prop on . Important for SSR and client HTML matching.

[4.2.0] - 2018-01-01

  • Add support for Server-Side Rendering. Documents will render first as React Tree, and then in the Browser be replaced by the ProseMirror instance of the document. Requires all schema types to have a toStatic() function which returns a React component.

[4.1.4] - 2017-12-21

  • Add class attribute to paragraph in baseSchema

[4.1.3] - 2017-12-21

  • Add target attribute to link in baseSchema

[4.1.2] - 2017-12-08

  • Fix whitespace issues for citations and citation lists
  • Fix latex text-align issue

[4.1.1] - 2017-12-03

  • Fixed bug where highlights passed to HighlightMenu wouldn't render until componentWillReceiveProps was triggered. That is - they wouldn't render on first load even if they were available.

[4.1.0] - 2017-11-10

  • Added optional prop onStatusChange to the <Collaborative />. onStatusChange is a function that will be called when the collaboration status is changed. Possible values are 'connected', 'saving', 'saved', and 'disconnected'.

[4.0.0] - 2017-11-10

  • Moving the editor out of beta versioning.
  • Addons documented
  • README updated to include details on writing new Addons