@doist/typist 1.2.3 → 1.2.4

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.2.4](https://github.com/Doist/typist/compare/v1.2.3...v1.2.4) (2023-04-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **deps:** update tiptap packages to v2.0.1 ([#201](https://github.com/Doist/typist/issues/201)) ([e31cb2f](https://github.com/Doist/typist/commit/e31cb2f6835a7de55340602f0f0f5d7aa86386df))
6
+
1
7
  ## [1.2.3](https://github.com/Doist/typist/compare/v1.2.2...v1.2.3) (2023-04-04)
2
8
 
3
9
  ### Bug Fixes
@@ -0,0 +1,3 @@
1
+ declare const RichTextCode: import("@tiptap/core").Mark<import("@tiptap/extension-code").CodeOptions, any>;
2
+ export { RichTextCode };
3
+ //# sourceMappingURL=rich-text-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-code.d.ts","sourceRoot":"","sources":["../../../src/extensions/rich-text/rich-text-code.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,gFAEhB,CAAA;AAEF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Code } from '@tiptap/extension-code';
2
+ const RichTextCode = Code.extend({
3
+ excludes: '',
4
+ });
5
+ export { RichTextCode };
@@ -2,7 +2,6 @@ import { Extension } from '@tiptap/core';
2
2
  import { Blockquote } from '@tiptap/extension-blockquote';
3
3
  import { Bold } from '@tiptap/extension-bold';
4
4
  import { BulletList } from '@tiptap/extension-bullet-list';
5
- import { Code } from '@tiptap/extension-code';
6
5
  import { CodeBlock } from '@tiptap/extension-code-block';
7
6
  import { Dropcursor } from '@tiptap/extension-dropcursor';
8
7
  import { Gapcursor } from '@tiptap/extension-gapcursor';
@@ -24,6 +23,7 @@ import { BoldAndItalics } from './bold-and-italics';
24
23
  import { CurvenoteCodemark } from './curvenote-codemark';
25
24
  import { PasteEmojis } from './paste-emojis';
26
25
  import { PasteMarkdown } from './paste-markdown';
26
+ import { RichTextCode } from './rich-text-code';
27
27
  import { RichTextDocument } from './rich-text-document';
28
28
  import { RichTextImage } from './rich-text-image';
29
29
  import { RichTextLink } from './rich-text-link';
@@ -48,7 +48,7 @@ const RichTextKit = Extension.create({
48
48
  extensions.push(BulletList.configure(this.options?.bulletList));
49
49
  }
50
50
  if (this.options.code !== false) {
51
- extensions.push(Code.configure(this.options?.code),
51
+ extensions.push(RichTextCode.configure(this.options?.code),
52
52
  // Enhances the Code extension capabilities with additional features
53
53
  CurvenoteCodemark);
54
54
  }
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": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "license": "MIT",
6
6
  "homepage": "https://typist.doist.dev/",
7
7
  "repository": "https://github.com/Doist/typist",
@@ -46,35 +46,35 @@
46
46
  "validate:pre-push": "run-s test"
47
47
  },
48
48
  "dependencies": {
49
- "@tiptap/core": "2.0.0",
50
- "@tiptap/extension-blockquote": "2.0.0",
51
- "@tiptap/extension-bold": "2.0.0",
52
- "@tiptap/extension-bullet-list": "2.0.0",
53
- "@tiptap/extension-character-count": "2.0.0",
54
- "@tiptap/extension-code": "2.0.0",
55
- "@tiptap/extension-code-block": "2.0.0",
56
- "@tiptap/extension-document": "2.0.0",
57
- "@tiptap/extension-dropcursor": "2.0.0",
58
- "@tiptap/extension-gapcursor": "2.0.0",
59
- "@tiptap/extension-hard-break": "2.0.0",
60
- "@tiptap/extension-heading": "2.0.0",
61
- "@tiptap/extension-history": "2.0.0",
62
- "@tiptap/extension-horizontal-rule": "2.0.0",
63
- "@tiptap/extension-image": "2.0.0",
64
- "@tiptap/extension-italic": "2.0.0",
65
- "@tiptap/extension-link": "2.0.0",
66
- "@tiptap/extension-list-item": "2.0.0",
67
- "@tiptap/extension-ordered-list": "2.0.0",
68
- "@tiptap/extension-paragraph": "2.0.0",
69
- "@tiptap/extension-placeholder": "2.0.0",
70
- "@tiptap/extension-strike": "2.0.0",
71
- "@tiptap/extension-task-item": "2.0.0",
72
- "@tiptap/extension-task-list": "2.0.0",
73
- "@tiptap/extension-text": "2.0.0",
74
- "@tiptap/extension-typography": "2.0.0",
75
- "@tiptap/pm": "2.0.0",
76
- "@tiptap/react": "2.0.0",
77
- "@tiptap/suggestion": "2.0.0",
49
+ "@tiptap/core": "2.0.1",
50
+ "@tiptap/extension-blockquote": "2.0.1",
51
+ "@tiptap/extension-bold": "2.0.1",
52
+ "@tiptap/extension-bullet-list": "2.0.1",
53
+ "@tiptap/extension-character-count": "2.0.1",
54
+ "@tiptap/extension-code": "2.0.1",
55
+ "@tiptap/extension-code-block": "2.0.1",
56
+ "@tiptap/extension-document": "2.0.1",
57
+ "@tiptap/extension-dropcursor": "2.0.1",
58
+ "@tiptap/extension-gapcursor": "2.0.1",
59
+ "@tiptap/extension-hard-break": "2.0.1",
60
+ "@tiptap/extension-heading": "2.0.1",
61
+ "@tiptap/extension-history": "2.0.1",
62
+ "@tiptap/extension-horizontal-rule": "2.0.1",
63
+ "@tiptap/extension-image": "2.0.1",
64
+ "@tiptap/extension-italic": "2.0.1",
65
+ "@tiptap/extension-link": "2.0.1",
66
+ "@tiptap/extension-list-item": "2.0.1",
67
+ "@tiptap/extension-ordered-list": "2.0.1",
68
+ "@tiptap/extension-paragraph": "2.0.1",
69
+ "@tiptap/extension-placeholder": "2.0.1",
70
+ "@tiptap/extension-strike": "2.0.1",
71
+ "@tiptap/extension-task-item": "2.0.1",
72
+ "@tiptap/extension-task-list": "2.0.1",
73
+ "@tiptap/extension-text": "2.0.1",
74
+ "@tiptap/extension-typography": "2.0.1",
75
+ "@tiptap/pm": "2.0.1",
76
+ "@tiptap/react": "2.0.1",
77
+ "@tiptap/suggestion": "2.0.1",
78
78
  "prosemirror-codemark": "0.4.2"
79
79
  },
80
80
  "devDependencies": {