@doist/typist 4.0.5 → 5.0.0

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,15 @@
1
+ ## [5.0.0](https://github.com/Doist/typist/compare/v4.0.5...v5.0.0) (2024-03-20)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ - This option was unused and was not intended for
6
+ consumer use. However, its removal technically constitutes a breaking
7
+ change, so we have marked it accordingly.
8
+
9
+ ### Miscellaneous Chores
10
+
11
+ - Remove unused `onImageNodeDelete` option ([#702](https://github.com/Doist/typist/issues/702)) ([ebd0678](https://github.com/Doist/typist/commit/ebd06784c14d00b748af7ad38bb030afcba41c35))
12
+
1
13
  ## [4.0.5](https://github.com/Doist/typist/compare/v4.0.4...v4.0.5) (2024-03-06)
2
14
 
3
15
  ### Bug Fixes
@@ -48,7 +48,7 @@ type RichTextImageOptions = {
48
48
  */
49
49
  acceptedImageMimeTypes: string[];
50
50
  /**
51
- * Renders the image node inline (e.g., <p><img src="spacer.gif"></p>). By default images are on
51
+ * Renders the image node inline (e.g., <p><img src="doist.jpg"></p>). By default images are on
52
52
  * the same level as paragraphs.
53
53
  */
54
54
  inline: boolean;
@@ -64,10 +64,6 @@ type RichTextImageOptions = {
64
64
  * The event handler that is fired when an image file is pasted.
65
65
  */
66
66
  onImageFilePaste?: (file: File) => void;
67
- /**
68
- * The event handler that should be fired when an image node is deleted.
69
- */
70
- onImageNodeDelete?: (attachmentId: string) => void;
71
67
  };
72
68
  /**
73
69
  * Custom extension that extends the built-in `Image` extension to add support for image pasting,
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text-image.d.ts","sourceRoot":"","sources":["../../../src/extensions/rich-text/rich-text-image.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD;;GAEG;AACH,KAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,QA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AAA;AAED;;;GAGG;AACH,QAAA,MAAM,aAAa,yDAoHjB,CAAA;AAEF,OAAO,EAAE,aAAa,EAAE,CAAA;AAExB,YAAY,EAAE,uBAAuB,EAAE,oBAAoB,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": "4.0.5",
4
+ "version": "5.0.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://typist.doist.dev/",
7
7
  "repository": "https://github.com/Doist/typist",
@@ -86,20 +86,21 @@
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.6.17",
90
- "@storybook/addon-essentials": "7.6.17",
91
- "@storybook/addons": "7.6.17",
89
+ "@storybook/addon-a11y": "8.0.0",
90
+ "@storybook/addon-essentials": "8.0.0",
91
+ "@storybook/blocks": "8.0.0",
92
92
  "@storybook/csf": "0.1.2",
93
+ "@storybook/manager-api": "8.0.0",
93
94
  "@storybook/mdx2-csf": "1.1.0",
94
- "@storybook/react": "7.6.17",
95
- "@storybook/react-vite": "7.6.17",
95
+ "@storybook/react": "8.0.0",
96
+ "@storybook/react-vite": "8.0.0",
96
97
  "@testing-library/dom": "9.3.4",
97
98
  "@testing-library/jest-dom": "6.4.2",
98
99
  "@testing-library/react": "14.2.1",
99
100
  "@types/hast": "3.0.4",
100
101
  "@types/lodash-es": "4.17.12",
101
- "@types/react": "18.2.61",
102
- "@types/react-dom": "18.2.19",
102
+ "@types/react": "18.2.66",
103
+ "@types/react-dom": "18.2.22",
103
104
  "@types/react-syntax-highlighter": "15.5.11",
104
105
  "@types/turndown": "5.0.4",
105
106
  "@types/unist": "3.0.2",
@@ -114,8 +115,8 @@
114
115
  "eslint-plugin-simple-import-sort": "12.0.0",
115
116
  "eslint-plugin-storybook": "0.8.0",
116
117
  "eslint-plugin-unicorn": "51.0.1",
117
- "eslint-plugin-vitest": "0.3.22",
118
- "eslint-plugin-vitest-globals": "1.4.0",
118
+ "eslint-plugin-vitest": "0.3.26",
119
+ "eslint-plugin-vitest-globals": "1.5.0",
119
120
  "github-markdown-css": "5.5.1",
120
121
  "husky": "9.0.11",
121
122
  "ignore-sync": "7.0.1",
@@ -125,6 +126,7 @@
125
126
  "npm-run-all2": "6.1.2",
126
127
  "prettier": "3.2.5",
127
128
  "react": "18.2.0",
129
+ "react-docgen-typescript": "2.2.2",
128
130
  "react-dom": "18.2.0",
129
131
  "react-icons": "5.0.1",
130
132
  "react-markdown": "9.0.1",
@@ -132,14 +134,14 @@
132
134
  "rehype-raw": "7.0.0",
133
135
  "remark-gfm": "4.0.0",
134
136
  "rimraf": "5.0.5",
135
- "semantic-release": "23.0.2",
136
- "storybook": "7.6.17",
137
+ "semantic-release": "23.0.3",
138
+ "storybook": "8.0.0",
137
139
  "storybook-css-modules": "1.0.8",
138
140
  "tippy.js": "6.3.7",
139
- "type-fest": "4.10.3",
140
- "typescript": "5.3.3",
141
+ "type-fest": "4.12.0",
142
+ "typescript": "5.4.2",
141
143
  "typescript-plugin-css-modules": "5.1.0",
142
- "vitest": "1.3.1"
144
+ "vitest": "1.4.0"
143
145
  },
144
146
  "peerDependencies": {
145
147
  "@react-hookz/web": "^14.2.3 || >=15.x",