@doist/typist 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/typist-editor.d.ts +1 -1
  3. package/dist/components/typist-editor.d.ts.map +1 -1
  4. package/dist/components/typist-editor.helper.d.ts +2 -2
  5. package/dist/components/typist-editor.helper.d.ts.map +1 -1
  6. package/dist/components/typist-editor.helper.js +1 -1
  7. package/dist/extensions/core/extra-editor-commands/commands/extend-word-range.js +1 -1
  8. package/dist/extensions/core/extra-editor-commands/commands/insert-markdown-content.d.ts +1 -1
  9. package/dist/extensions/core/extra-editor-commands/commands/insert-markdown-content.d.ts.map +1 -1
  10. package/dist/extensions/core/view-event-handlers.d.ts +1 -1
  11. package/dist/extensions/core/view-event-handlers.d.ts.map +1 -1
  12. package/dist/extensions/core/view-event-handlers.js +1 -1
  13. package/dist/extensions/plain-text/paste-multiline-text.js +2 -2
  14. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-lists.d.ts +1 -1
  15. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-lists.d.ts.map +1 -1
  16. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-lists.js +1 -1
  17. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-select-wrap.d.ts +1 -1
  18. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-select-wrap.d.ts.map +1 -1
  19. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-select-wrap.js +1 -1
  20. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-url-pasting.d.ts +1 -1
  21. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-url-pasting.d.ts.map +1 -1
  22. package/dist/extensions/plain-text/smart-markdown-typing/plugins/smart-url-pasting.js +1 -1
  23. package/dist/extensions/rich-text/paste-emojis.js +1 -1
  24. package/dist/extensions/rich-text/paste-markdown.js +2 -2
  25. package/dist/extensions/rich-text/rich-text-image.js +1 -1
  26. package/dist/extensions/shared/paste-html-table-as-string.js +1 -1
  27. package/dist/extensions/shared/paste-singleline-text.js +1 -1
  28. package/dist/factories/create-suggestion-extension.js +1 -1
  29. package/dist/helpers/schema.d.ts +1 -1
  30. package/dist/helpers/schema.d.ts.map +1 -1
  31. package/dist/helpers/serializer.d.ts +1 -1
  32. package/dist/helpers/serializer.d.ts.map +1 -1
  33. package/dist/serializers/html/html.d.ts +1 -1
  34. package/dist/serializers/html/html.d.ts.map +1 -1
  35. package/dist/serializers/html/plugins/rehype-image.d.ts +1 -1
  36. package/dist/serializers/html/plugins/rehype-image.d.ts.map +1 -1
  37. package/dist/serializers/html/plugins/rehype-suggestions.d.ts +1 -1
  38. package/dist/serializers/html/plugins/rehype-suggestions.d.ts.map +1 -1
  39. package/dist/serializers/html/plugins/remark-disable-constructs.d.ts +1 -1
  40. package/dist/serializers/html/plugins/remark-disable-constructs.d.ts.map +1 -1
  41. package/dist/serializers/markdown/markdown.d.ts +1 -1
  42. package/dist/serializers/markdown/markdown.d.ts.map +1 -1
  43. package/dist/serializers/markdown/plugins/image.d.ts +1 -1
  44. package/dist/serializers/markdown/plugins/image.d.ts.map +1 -1
  45. package/dist/serializers/markdown/plugins/list-item.d.ts +1 -1
  46. package/dist/serializers/markdown/plugins/list-item.d.ts.map +1 -1
  47. package/dist/serializers/markdown/plugins/paragraph.d.ts +1 -1
  48. package/dist/serializers/markdown/plugins/paragraph.d.ts.map +1 -1
  49. package/dist/serializers/markdown/plugins/strikethrough.d.ts +1 -1
  50. package/dist/serializers/markdown/plugins/strikethrough.d.ts.map +1 -1
  51. package/dist/serializers/markdown/plugins/suggestion.d.ts +1 -1
  52. package/dist/serializers/markdown/plugins/suggestion.d.ts.map +1 -1
  53. package/dist/serializers/markdown/plugins/task-item.d.ts +1 -1
  54. package/dist/serializers/markdown/plugins/task-item.d.ts.map +1 -1
  55. package/package.json +48 -48
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [2.0.3](https://github.com/Doist/typist/compare/v2.0.2...v2.0.3) (2023-09-25)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **deps:** update tiptap packages to v2.1.10 ([#447](https://github.com/Doist/typist/issues/447)) ([9ed0371](https://github.com/Doist/typist/commit/9ed037104495be1dd4886f4c4263a886be94a995))
6
+
7
+ ## [2.0.2](https://github.com/Doist/typist/compare/v2.0.1...v2.0.2) (2023-09-14)
8
+
9
+ ### Bug Fixes
10
+
11
+ - Update ProseMirror imports to `@tiptap/pm/*` packages ([#443](https://github.com/Doist/typist/issues/443)) ([48e42e8](https://github.com/Doist/typist/commit/48e42e8294bce3b768313047ab8f5268ee900abb))
12
+
1
13
  ## [2.0.1](https://github.com/Doist/typist/compare/v2.0.0...v2.0.1) (2023-09-14)
2
14
 
3
15
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
1
  import { ViewEventHandlersOptions } from '../extensions/core/view-event-handlers';
2
2
  import { getAllNodesAttributesByType } from './typist-editor.helper';
3
3
  import type { Editor as CoreEditor, EditorEvents, Extensions } from '@tiptap/core';
4
- import type { Selection } from 'prosemirror-state';
4
+ import type { Selection } from '@tiptap/pm/state';
5
5
  /**
6
6
  * The forwarded ref that describes the helper methods that the `TypistEditor` parent component
7
7
  * will have access to.
@@ -1 +1 @@
1
- {"version":3,"file":"typist-editor.d.ts","sourceRoot":"","sources":["../../src/components/typist-editor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAqB,wBAAwB,EAAE,MAAM,wCAAwC,CAAA;AAMpG,OAAO,EAAE,2BAA2B,EAA2B,MAAM,wBAAwB,CAAA;AAE7F,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAClF,OAAO,KAAK,EAAU,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE1D;;;GAGG;AACH,KAAK,eAAe,GAAG;IACnB;;OAEG;IACH,SAAS,EAAE,M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AC,CAAA;IAE3D;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAA;IAE7C;;OAEG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC,WAAW,CAAC,CAAA;CACpD,CAAA;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,+GAgNhB,CAAA;AAEF,OAAO,EAAE,YAAY,EAAE,CAAA;AAEvB,YAAY,EACR,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,WAAW,GACd,CAAA"}
@@ -1,5 +1,5 @@
1
- import { Selection } from 'prosemirror-state';
2
- import type { Node as ProseMirrorNode } from 'prosemirror-model';
1
+ import { Selection } from '@tiptap/pm/state';
2
+ import type { Node as ProseMirrorNode } from '@tiptap/pm/model';
3
3
  /**
4
4
  * Given a ProseMirror document, and a selection, resolves that selection within the bounds of the
5
5
  * document size. This works similarly to the official `autoFocus` implementation.
@@ -1 +1 @@
1
- {"version":3,"file":"typist-editor.helper.d.ts","sourceRoot":"","sources":["../../src/components/typist-editor.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAiB,MAAM,mBAAmB,CAAA;AAE5D,OAAO,KAAK,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEhE;;;GAGG;AACH,iBAAS,uBAAuB,CAAC,GAAG,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,GAAG,SAAS,CAStF;AAED;;GAEG;AACH,KAAK,cAAc,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,iBAAS,2BAA2B,CAChC,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,MAAM,GACjB,KAAK,CAAC,cAAc,CAAC,CAUvB;AAED,OAAO,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,CAAA;AAE/D,YAAY,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"typist-editor.helper.d.ts","sourceRoot":"","sources":["../../src/components/typist-editor.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAiB,MAAM,kBAAkB,CAAA;AAG3D,OAAO,KAAK,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAE/D;;;GAGG;AACH,iBAAS,uBAAuB,CAAC,GAAG,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,GAAG,SAAS,CAStF;AAED;;GAEG;AACH,KAAK,cAAc,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,iBAAS,2BAA2B,CAChC,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,MAAM,GACjB,KAAK,CAAC,cAAc,CAAC,CAUvB;AAED,OAAO,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,CAAA;AAE/D,YAAY,EAAE,cAAc,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
+ import { Selection, TextSelection } from '@tiptap/pm/state';
1
2
  import { clamp } from 'lodash-es';
2
- import { Selection, TextSelection } from 'prosemirror-state';
3
3
  /**
4
4
  * Given a ProseMirror document, and a selection, resolves that selection within the bounds of the
5
5
  * document size. This works similarly to the official `autoFocus` implementation.
@@ -1,6 +1,6 @@
1
1
  import { isActive, isTextSelection } from '@tiptap/core';
2
+ import { TextSelection } from '@tiptap/pm/state';
2
3
  import { clamp } from 'lodash-es';
3
- import { TextSelection } from 'prosemirror-state';
4
4
  /**
5
5
  * Extends the text selection to the current word.
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { RawCommands } from '@tiptap/core';
2
- import type { ParseOptions } from 'prosemirror-model';
2
+ import type { ParseOptions } from '@tiptap/pm/model';
3
3
  /**
4
4
  * Augment the official `@tiptap/core` module with extra commands so that the compiler knows about
5
5
  * them. For this to work externally, a wildcard export needs to be added to the root `index.ts`.
@@ -1 +1 @@
1
- {"version":3,"file":"insert-markdown-content.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/core/extra-editor-commands/commands/insert-markdown-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;GAGG;AACH,OAAO,QAAQ,cAAc,CAAC;IAC1B,UAAU,QAAQ,CAAC,UAAU;QACzB,qBAAqB,EAAE;YACnB;;;;;;;eAOG;YACH,qBAAqB,EAAE,CACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;gBACN,YAAY,CAAC,EAAE,YAAY,CAAA;gBAC3B,eAAe,CAAC,EAAE,OAAO,CAAA;aAC5B,KACA,UAAU,CAAA;SAClB,CAAA;KACJ;CACJ;AAED;;;;;GAKG;AACH,iBAAS,qBAAqB,CAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IACN,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC5B,GACF,UAAU,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC,CAQlD;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
1
+ {"version":3,"file":"insert-markdown-content.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/core/extra-editor-commands/commands/insert-markdown-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD;;;GAGG;AACH,OAAO,QAAQ,cAAc,CAAC;IAC1B,UAAU,QAAQ,CAAC,UAAU;QACzB,qBAAqB,EAAE;YACnB;;;;;;;eAOG;YACH,qBAAqB,EAAE,CACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;gBACN,YAAY,CAAC,EAAE,YAAY,CAAA;gBAC3B,eAAe,CAAC,EAAE,OAAO,CAAA;aAC5B,KACA,UAAU,CAAA;SAClB,CAAA;KACJ;CACJ;AAED;;;;;GAKG;AACH,iBAAS,qBAAqB,CAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IACN,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC5B,GACF,UAAU,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC,CAQlD;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Extension } from '@tiptap/core';
2
- import type { EditorView } from 'prosemirror-view';
2
+ import type { EditorView } from '@tiptap/pm/view';
3
3
  /**
4
4
  * The options available to customize the `ViewEventHandlers` extension.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"view-event-handlers.d.ts","sourceRoot":"","sources":["../../../src/extensions/core/view-event-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAKxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;;;GAKG;AACH,KAAK,wBAAwB,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAA;IAE9E;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,GAAG,IAAI,CAAA;CACzE,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,iBAAiB,0CAoBrB,CAAA;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAE5B,YAAY,EAAE,wBAAwB,EAAE,CAAA"}
1
+ {"version":3,"file":"view-event-handlers.d.ts","sourceRoot":"","sources":["../../../src/extensions/core/view-event-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAKxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;;;;GAKG;AACH,KAAK,wBAAwB,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAA;IAE9E;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,GAAG,IAAI,CAAA;CACzE,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,iBAAiB,0CAoBrB,CAAA;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAE5B,YAAY,EAAE,wBAAwB,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Extension } from '@tiptap/core';
2
- import { Plugin, PluginKey } from 'prosemirror-state';
2
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
3
3
  import { VIEW_EVENT_HANDLERS_PRIORITY } from '../../constants/extension-priorities';
4
4
  /**
5
5
  * The `ViewEventHandlers` extension allows handling of various ProseMirror view events.
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-console */
2
2
  import { Extension } from '@tiptap/core';
3
- import { Fragment, Slice } from 'prosemirror-model';
4
- import { Plugin, PluginKey } from 'prosemirror-state';
3
+ import { Fragment, Slice } from '@tiptap/pm/model';
4
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
5
5
  import { ClipboardDataType } from '../../constants/common';
6
6
  import { REGEX_LINE_BREAKS } from '../../constants/regular-expressions';
7
7
  /**
@@ -1,4 +1,4 @@
1
- import { Plugin } from 'prosemirror-state';
1
+ import { Plugin } from '@tiptap/pm/state';
2
2
  /**
3
3
  * This plugin provides a more plesant typing experience for both standard and task lists, adding
4
4
  * the list marker automatically when pressing the `Enter` key, and it also supports list items
@@ -1 +1 @@
1
- {"version":3,"file":"smart-lists.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/plain-text/smart-markdown-typing/plugins/smart-lists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,mBAAmB,CAAA;AAsBrD;;;;GAIG;AACH,QAAA,MAAM,UAAU,aAsFd,CAAA;AAEF,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"smart-lists.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/plain-text/smart-markdown-typing/plugins/smart-lists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,kBAAkB,CAAA;AAsBpD;;;;GAIG;AACH,QAAA,MAAM,UAAU,aAsFd,CAAA;AAEF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Plugin, PluginKey } from 'prosemirror-state';
1
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
2
2
  import { isMultilineDocument } from '../../../../helpers/schema';
3
3
  /**
4
4
  * A list of the allowed keys that might trigger smart typing.
@@ -1,4 +1,4 @@
1
- import { Plugin } from 'prosemirror-state';
1
+ import { Plugin } from '@tiptap/pm/state';
2
2
  /**
3
3
  * This plugin wraps a selection with matching symbols based on the typed character, wrapping the
4
4
  * selection with the corresponding opening and closing bracket symbols when appropriate. This
@@ -1 +1 @@
1
- {"version":3,"file":"smart-select-wrap.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/plain-text/smart-markdown-typing/plugins/smart-select-wrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA4B,MAAM,mBAAmB,CAAA;AAsBpE;;;;GAIG;AACH,QAAA,MAAM,eAAe,aA+BnB,CAAA;AAEF,OAAO,EAAE,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"smart-select-wrap.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/plain-text/smart-markdown-typing/plugins/smart-select-wrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA4B,MAAM,kBAAkB,CAAA;AAsBnE;;;;GAIG;AACH,QAAA,MAAM,eAAe,aA+BnB,CAAA;AAEF,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Plugin, PluginKey, TextSelection } from 'prosemirror-state';
1
+ import { Plugin, PluginKey, TextSelection } from '@tiptap/pm/state';
2
2
  /**
3
3
  * An object holding the acceptable wrapping symbols. The key represents the trigger character, and
4
4
  * the character to be added before the selection, while the value represents the character to be
@@ -1,4 +1,4 @@
1
- import { Plugin } from 'prosemirror-state';
1
+ import { Plugin } from '@tiptap/pm/state';
2
2
  /**
3
3
  * This plugin replaces a selection with the pasted URL using proper link syntax; unless the
4
4
  * selection is itself a URL, which in that case the selection will just be replaced by the pasted
@@ -1 +1 @@
1
- {"version":3,"file":"smart-url-pasting.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/plain-text/smart-markdown-typing/plugins/smart-url-pasting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA4B,MAAM,mBAAmB,CAAA;AAcpE;;;;GAIG;AACH,QAAA,MAAM,eAAe,aAsCnB,CAAA;AAEF,OAAO,EAAE,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"smart-url-pasting.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/plain-text/smart-markdown-typing/plugins/smart-url-pasting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA4B,MAAM,kBAAkB,CAAA;AAcnE;;;;GAIG;AACH,QAAA,MAAM,eAAe,aAsCnB,CAAA;AAEF,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Plugin, PluginKey, TextSelection } from 'prosemirror-state';
1
+ import { Plugin, PluginKey, TextSelection } from '@tiptap/pm/state';
2
2
  import { ClipboardDataType } from '../../../../constants/common';
3
3
  /**
4
4
  * The perfect URL validation regex for Web URLs.
@@ -1,6 +1,6 @@
1
1
  import { Extension } from '@tiptap/core';
2
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
2
3
  import emojiRegex from 'emoji-regex';
3
- import { Plugin, PluginKey } from 'prosemirror-state';
4
4
  // Regular expression to match all emoji symbols and sequences (including textual representations)
5
5
  const baseEmojiRegExp = emojiRegex();
6
6
  // Regular expression to match `<img>` tags with emoji unicode characters in the `alt` attribute
@@ -1,7 +1,7 @@
1
1
  import { Extension } from '@tiptap/core';
2
+ import { Fragment, Slice } from '@tiptap/pm/model';
3
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
2
4
  import * as linkify from 'linkifyjs';
3
- import { Fragment, Slice } from 'prosemirror-model';
4
- import { Plugin, PluginKey } from 'prosemirror-state';
5
5
  import { ClipboardDataType } from '../../constants/common';
6
6
  import { PASTE_MARKDOWN_EXTENSION_PRIORITY } from '../../constants/extension-priorities';
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { Image } from '@tiptap/extension-image';
2
+ import { Plugin, PluginKey, Selection } from '@tiptap/pm/state';
2
3
  import { ReactNodeViewRenderer } from '@tiptap/react';
3
- import { Plugin, PluginKey, Selection } from 'prosemirror-state';
4
4
  /**
5
5
  * Custom extension that extends the built-in `Image` extension to add support for image pasting,
6
6
  * and also adds the ability to pass aditional metadata about an image attachment upload.
@@ -1,5 +1,5 @@
1
1
  import { Extension } from '@tiptap/core';
2
- import { Plugin, PluginKey } from 'prosemirror-state';
2
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
3
3
  import { PASTE_HTML_TABLE_AS_STRING_EXTENSION_PRIORITY } from '../../constants/extension-priorities';
4
4
  import { parseHtmlToElement } from '../../helpers/dom';
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { Extension } from '@tiptap/core';
2
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
2
3
  import { escape } from 'lodash-es';
3
- import { Plugin, PluginKey } from 'prosemirror-state';
4
4
  import { REGEX_LINE_BREAKS } from '../../constants/regular-expressions';
5
5
  import { parseHtmlToElement } from '../../helpers/dom';
6
6
  import { isPlainTextDocument } from '../../helpers/schema';
@@ -1,7 +1,7 @@
1
1
  import { mergeAttributes, Node } from '@tiptap/core';
2
+ import { PluginKey } from '@tiptap/pm/state';
2
3
  import { Suggestion as TiptapSuggestion } from '@tiptap/suggestion';
3
4
  import { camelCase, kebabCase } from 'lodash-es';
4
- import { PluginKey } from 'prosemirror-state';
5
5
  import { SUGGESTION_EXTENSION_PRIORITY } from '../constants/extension-priorities';
6
6
  import { canInsertNodeAt } from '../utilities/can-insert-node-at';
7
7
  import { canInsertSuggestion } from '../utilities/can-insert-suggestion';
@@ -1,4 +1,4 @@
1
- import type { Schema } from 'prosemirror-model';
1
+ import type { Schema } from '@tiptap/pm/model';
2
2
  /**
3
3
  * Check if the document schema accepts multiple lines of input.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/helpers/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,MAAM,UAEtC;AAED,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/helpers/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,MAAM,UAEtC;AAED,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ParseRule, Schema } from 'prosemirror-model';
1
+ import type { ParseRule, Schema } from '@tiptap/pm/model';
2
2
  /**
3
3
  * Builds a partial regular expression that includes valid URL schemas used by all the available
4
4
  * suggestion nodes from the given editor schema.
@@ -1 +1 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/helpers/serializer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1D;;;;;;;;GAQG;AACH,iBAAS,iCAAiC,CAAC,MAAM,EAAE,MAAM,iBAYxD;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,CAC9B,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE,GAClC,CAAC,MAAM,qBAAqB,CAAC,EAAE,CAQjC;AAED,OAAO,EAAE,iCAAiC,EAAE,yBAAyB,EAAE,CAAA"}
1
+ {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/helpers/serializer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEzD;;;;;;;;GAQG;AACH,iBAAS,iCAAiC,CAAC,MAAM,EAAE,MAAM,iBAYxD;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,CAC9B,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE,GAClC,CAAC,MAAM,qBAAqB,CAAC,EAAE,CAQjC;AAED,OAAO,EAAE,iCAAiC,EAAE,yBAAyB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Schema } from 'prosemirror-model';
1
+ import type { Schema } from '@tiptap/pm/model';
2
2
  /**
3
3
  * The return type for the `createHTMLSerializer` function.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/serializers/html/html.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C;;GAEG;AACH,KAAK,wBAAwB,GAAG;IAC5B;;;;;;OAMG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;CAC1C,CAAA;AA0CD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,wBAAwB,CAiFtE;AAOD;;;;;;GAMG;AACH,iBAAS,yBAAyB,CAAC,MAAM,EAAE,MAAM,4BAQhD;AAED,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,CAAA;AAE1D,YAAY,EAAE,wBAAwB,EAAE,CAAA"}
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/serializers/html/html.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C;;GAEG;AACH,KAAK,wBAAwB,GAAG;IAC5B;;;;;;OAMG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;CAC1C,CAAA;AA0CD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,wBAAwB,CAiFtE;AAOD;;;;;;GAMG;AACH,iBAAS,yBAAyB,CAAC,MAAM,EAAE,MAAM,4BAQhD;AAED,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,CAAA;AAE1D,YAAY,EAAE,wBAAwB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Schema } from 'prosemirror-model';
1
+ import type { Schema } from '@tiptap/pm/model';
2
2
  import type { Transformer } from 'unified';
3
3
  /**
4
4
  * A rehype plugin to remove the wrapping paragraph from images and to remove all inline images if
@@ -1 +1 @@
1
- {"version":3,"file":"rehype-image.d.ts","sourceRoot":"","sources":["../../../../src/serializers/html/plugins/rehype-image.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C;;;;;GAKG;AACH,iBAAS,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CA0BhD;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"rehype-image.d.ts","sourceRoot":"","sources":["../../../../src/serializers/html/plugins/rehype-image.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C;;;;;GAKG;AACH,iBAAS,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CA0BhD;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Schema } from 'prosemirror-model';
1
+ import type { Schema } from '@tiptap/pm/model';
2
2
  import type { Transformer } from 'unified';
3
3
  /**
4
4
  * A rehype plugin to add support for suggestions nodes (e.g., `@username` or `#channel).
@@ -1 +1 @@
1
- {"version":3,"file":"rehype-suggestions.d.ts","sourceRoot":"","sources":["../../../../src/serializers/html/plugins/rehype-suggestions.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CA+BtD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"rehype-suggestions.d.ts","sourceRoot":"","sources":["../../../../src/serializers/html/plugins/rehype-suggestions.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CA+BtD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Schema } from 'prosemirror-model';
1
+ import type { Schema } from '@tiptap/pm/model';
2
2
  import type { Processor } from 'unified';
3
3
  /**
4
4
  * A remark plugin to disable multiple language constructs based on the availability of marks and/or
@@ -1 +1 @@
1
- {"version":3,"file":"remark-disable-constructs.d.ts","sourceRoot":"","sources":["../../../../src/serializers/html/plugins/remark-disable-constructs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,iBAAS,uBAAuB,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,QAqD/D;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
1
+ {"version":3,"file":"remark-disable-constructs.d.ts","sourceRoot":"","sources":["../../../../src/serializers/html/plugins/remark-disable-constructs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,iBAAS,uBAAuB,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,QAqD/D;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Schema } from 'prosemirror-model';
1
+ import type { Schema } from '@tiptap/pm/model';
2
2
  /**
3
3
  * The return type for the `createMarkdownSerializer` function.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/serializers/markdown/markdown.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C;;GAEG;AACH,KAAK,4BAA4B,GAAG;IAChC;;;;;;OAMG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC,CAAA;AASD;;GAEG;AACH,QAAA,MAAM,kBAAkB,MAAM,CAAA;AA8C9B;;;;;;;;;;;;GAYG;AACH,iBAAS,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,4BAA4B,CAiG9E;AAOD;;;;;;GAMG;AACH,iBAAS,6BAA6B,CAAC,MAAM,EAAE,MAAM,gCAQpD;AAED,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,CAAA;AAEtF,YAAY,EAAE,4BAA4B,EAAE,CAAA"}
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/serializers/markdown/markdown.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C;;GAEG;AACH,KAAK,4BAA4B,GAAG;IAChC;;;;;;OAMG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC,CAAA;AASD;;GAEG;AACH,QAAA,MAAM,kBAAkB,MAAM,CAAA;AA8C9B;;;;;;;;;;;;GAYG;AACH,iBAAS,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,4BAA4B,CAiG9E;AAOD;;;;;;GAMG;AACH,iBAAS,6BAA6B,CAAC,MAAM,EAAE,MAAM,gCAQpD;AAED,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,CAAA;AAEtF,YAAY,EAAE,4BAA4B,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { NodeType } from 'prosemirror-model';
1
+ import type { NodeType } from '@tiptap/pm/model';
2
2
  import type Turndown from 'turndown';
3
3
  /**
4
4
  * A Turndown plugin which adds a custom rule for images. This custom rule is required to disable
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAWpC;;;;;;GAMG;AACH,iBAAS,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAiBlD;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAWpC;;;;;;GAMG;AACH,iBAAS,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAiBlD;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { NodeType } from 'prosemirror-model';
1
+ import type { NodeType } from '@tiptap/pm/model';
2
2
  import type Turndown from 'turndown';
3
3
  /**
4
4
  * A Turndown plugin which adds a custom rule for standard list items (i.e., not task list items),
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/list-item.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAqCrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/list-item.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAqCrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { NodeType } from 'prosemirror-model';
1
+ import type { NodeType } from '@tiptap/pm/model';
2
2
  import type Turndown from 'turndown';
3
3
  /**
4
4
  * A Turndown plugin which adds a custom rule for paragraphs. This custom rule is required to avoid
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;GAMG;AACH,iBAAS,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC,MAAM,CAS5E;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;GAMG;AACH,iBAAS,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC,MAAM,CAS5E;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { MarkType } from 'prosemirror-model';
1
+ import type { MarkType } from '@tiptap/pm/model';
2
2
  import type Turndown from 'turndown';
3
3
  /**
4
4
  * A Turndown plugin which adds a rule for strikethrough text, based on the original plugin. This
@@ -1 +1 @@
1
- {"version":3,"file":"strikethrough.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/strikethrough.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;;GAOG;AACH,iBAAS,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAa1D;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"strikethrough.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/strikethrough.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;;GAOG;AACH,iBAAS,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAa1D;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { NodeType } from 'prosemirror-model';
1
+ import type { NodeType } from '@tiptap/pm/model';
2
2
  import type Turndown from 'turndown';
3
3
  /**
4
4
  * A Turndown plugin which adds a custom rule for suggestion nodes created by the suggestion
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/suggestion.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;GAKG;AACH,iBAAS,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAgBvD;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/suggestion.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;GAKG;AACH,iBAAS,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAgBvD;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { NodeType } from 'prosemirror-model';
1
+ import type { NodeType } from '@tiptap/pm/model';
2
2
  import type Turndown from 'turndown';
3
3
  /**
4
4
  * A Turndown plugin which adds a rule for task list items (i.e., `* [ ] Task`), based on the
@@ -1 +1 @@
1
- {"version":3,"file":"task-item.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/task-item.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAkCrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"task-item.d.ts","sourceRoot":"","sources":["../../../../src/serializers/markdown/plugins/task-item.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AAEpC;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAkCrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@doist/typist",
3
3
  "description": "The mighty Tiptap-based rich-text editor React component that powers Doist products.",
4
- "version": "2.0.1",
4
+ "version": "2.0.3",
5
5
  "license": "MIT",
6
6
  "homepage": "https://typist.doist.dev/",
7
7
  "repository": "https://github.com/Doist/typist",
@@ -46,71 +46,71 @@
46
46
  "validate:pre-push": "run-s test"
47
47
  },
48
48
  "dependencies": {
49
- "@tiptap/core": "2.1.8",
50
- "@tiptap/extension-blockquote": "2.1.8",
51
- "@tiptap/extension-bold": "2.1.8",
52
- "@tiptap/extension-bullet-list": "2.1.8",
53
- "@tiptap/extension-character-count": "2.1.8",
54
- "@tiptap/extension-code": "2.1.8",
55
- "@tiptap/extension-code-block": "2.1.8",
56
- "@tiptap/extension-document": "2.1.8",
57
- "@tiptap/extension-dropcursor": "2.1.8",
58
- "@tiptap/extension-gapcursor": "2.1.8",
59
- "@tiptap/extension-hard-break": "2.1.8",
60
- "@tiptap/extension-heading": "2.1.8",
61
- "@tiptap/extension-history": "2.1.8",
62
- "@tiptap/extension-horizontal-rule": "2.1.8",
63
- "@tiptap/extension-image": "2.1.8",
64
- "@tiptap/extension-italic": "2.1.8",
65
- "@tiptap/extension-link": "2.1.8",
66
- "@tiptap/extension-list-item": "2.1.8",
67
- "@tiptap/extension-list-keymap": "2.1.8",
68
- "@tiptap/extension-ordered-list": "2.1.8",
69
- "@tiptap/extension-paragraph": "2.1.8",
70
- "@tiptap/extension-placeholder": "2.1.8",
71
- "@tiptap/extension-strike": "2.1.8",
72
- "@tiptap/extension-task-item": "2.1.8",
73
- "@tiptap/extension-task-list": "2.1.8",
74
- "@tiptap/extension-text": "2.1.8",
75
- "@tiptap/extension-typography": "2.1.8",
76
- "@tiptap/pm": "2.1.8",
77
- "@tiptap/react": "2.1.8",
78
- "@tiptap/suggestion": "2.1.8",
49
+ "@tiptap/core": "2.1.10",
50
+ "@tiptap/extension-blockquote": "2.1.10",
51
+ "@tiptap/extension-bold": "2.1.10",
52
+ "@tiptap/extension-bullet-list": "2.1.10",
53
+ "@tiptap/extension-character-count": "2.1.10",
54
+ "@tiptap/extension-code": "2.1.10",
55
+ "@tiptap/extension-code-block": "2.1.10",
56
+ "@tiptap/extension-document": "2.1.10",
57
+ "@tiptap/extension-dropcursor": "2.1.10",
58
+ "@tiptap/extension-gapcursor": "2.1.10",
59
+ "@tiptap/extension-hard-break": "2.1.10",
60
+ "@tiptap/extension-heading": "2.1.10",
61
+ "@tiptap/extension-history": "2.1.10",
62
+ "@tiptap/extension-horizontal-rule": "2.1.10",
63
+ "@tiptap/extension-image": "2.1.10",
64
+ "@tiptap/extension-italic": "2.1.10",
65
+ "@tiptap/extension-link": "2.1.10",
66
+ "@tiptap/extension-list-item": "2.1.10",
67
+ "@tiptap/extension-list-keymap": "2.1.10",
68
+ "@tiptap/extension-ordered-list": "2.1.10",
69
+ "@tiptap/extension-paragraph": "2.1.10",
70
+ "@tiptap/extension-placeholder": "2.1.10",
71
+ "@tiptap/extension-strike": "2.1.10",
72
+ "@tiptap/extension-task-item": "2.1.10",
73
+ "@tiptap/extension-task-list": "2.1.10",
74
+ "@tiptap/extension-text": "2.1.10",
75
+ "@tiptap/extension-typography": "2.1.10",
76
+ "@tiptap/pm": "2.1.10",
77
+ "@tiptap/react": "2.1.10",
78
+ "@tiptap/suggestion": "2.1.10",
79
79
  "prosemirror-codemark": "0.4.2"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@doist/eslint-config": "11.0.0",
83
83
  "@doist/prettier-config": "4.0.0",
84
- "@doist/reactist": "21.2.2",
84
+ "@doist/reactist": "21.3.0",
85
85
  "@mdx-js/react": "2.3.0",
86
86
  "@semantic-release/changelog": "6.0.3",
87
87
  "@semantic-release/exec": "6.0.3",
88
88
  "@semantic-release/git": "10.0.1",
89
- "@storybook/addon-a11y": "7.4.0",
90
- "@storybook/addon-essentials": "7.4.0",
91
- "@storybook/addons": "7.4.0",
89
+ "@storybook/addon-a11y": "7.4.5",
90
+ "@storybook/addon-essentials": "7.4.5",
91
+ "@storybook/addons": "7.4.5",
92
92
  "@storybook/csf": "0.1.1",
93
93
  "@storybook/mdx2-csf": "1.1.0",
94
- "@storybook/react": "7.4.0",
95
- "@storybook/react-vite": "7.4.0",
96
- "@testing-library/dom": "9.3.1",
94
+ "@storybook/react": "7.4.5",
95
+ "@storybook/react-vite": "7.4.5",
96
+ "@testing-library/dom": "9.3.3",
97
97
  "@testing-library/jest-dom": "6.1.3",
98
98
  "@testing-library/react": "14.0.0",
99
99
  "@types/lodash-es": "4.17.9",
100
- "@types/react": "18.2.21",
100
+ "@types/react": "18.2.22",
101
101
  "@types/react-dom": "18.2.7",
102
102
  "@types/react-syntax-highlighter": "15.5.7",
103
- "@types/turndown": "5.0.1",
104
- "@vitejs/plugin-react": "4.0.4",
103
+ "@types/turndown": "5.0.2",
104
+ "@vitejs/plugin-react": "4.1.0",
105
105
  "boring-avatars": "1.10.1",
106
106
  "classnames": "2.3.2",
107
- "conventional-changelog-conventionalcommits": "6.1.0",
107
+ "conventional-changelog-conventionalcommits": "7.0.2",
108
108
  "emoji-regex": "10.2.1",
109
- "eslint": "8.49.0",
109
+ "eslint": "8.50.0",
110
110
  "eslint-formatter-codeframe": "7.32.1",
111
- "eslint-import-resolver-typescript": "3.6.0",
111
+ "eslint-import-resolver-typescript": "3.6.1",
112
112
  "eslint-plugin-simple-import-sort": "10.0.0",
113
- "eslint-plugin-storybook": "0.6.13",
113
+ "eslint-plugin-storybook": "0.6.14",
114
114
  "eslint-plugin-unicorn": "48.0.1",
115
115
  "eslint-plugin-vitest": "0.3.1",
116
116
  "eslint-plugin-vitest-globals": "1.4.0",
@@ -128,13 +128,13 @@
128
128
  "react-markdown": "8.0.7",
129
129
  "react-syntax-highlighter": "15.5.0",
130
130
  "rimraf": "5.0.1",
131
- "semantic-release": "21.1.1",
132
- "storybook": "7.4.0",
131
+ "semantic-release": "22.0.0",
132
+ "storybook": "7.4.5",
133
133
  "storybook-css-modules": "1.0.8",
134
134
  "type-fest": "4.3.1",
135
135
  "typescript": "5.2.2",
136
136
  "typescript-plugin-css-modules": "5.0.1",
137
- "vitest": "0.34.4"
137
+ "vitest": "0.34.5"
138
138
  },
139
139
  "peerDependencies": {
140
140
  "@react-hookz/web": "^14.2.3 || >=15.x",