@doist/typist 1.0.0 → 1.0.1

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.0.1](https://github.com/Doist/typist/compare/v1.0.0...v1.0.1) (2022-11-08)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Add support for query params in `RichTextLink` extension ([#4](https://github.com/Doist/typist/issues/4)) ([9fac158](https://github.com/Doist/typist/commit/9fac158365f1dcdac0cad8bcf76ec59f276710a8))
6
+
1
7
  ## 1.0.0 (2022-11-04)
2
8
 
3
9
  ### Features
package/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  <div align="center">
2
2
  <h1>
3
- <img src="https://github.com/Doist/typist/blob/main/.github/assets/logo-light.png?raw=true#gh-light-mode-only" />
4
- <img src="https://github.com/Doist/typist/blob/main/.github/assets/logo-dark.png?raw=true#gh-dark-mode-only" />
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcSet="https://github.com/Doist/typist/blob/main/.github/assets/logo-dark.png?raw=true" />
5
+ <img src="https://github.com/Doist/typist/blob/main/.github/assets/logo-light.png?raw=true" />
6
+ </picture>
5
7
  </h1>
6
8
  </div>
7
9
 
8
- Typist is the mighty [Tiptap](https://tiptap.dev/)-based rich-text editor that powers Doist products, which can also be used for displaying content in a read-only fashion. Typist also supports a plain-text mode, and comes with HTML/Markdown serializers.
10
+ Typist is the mighty [Tiptap](https://tiptap.dev/)-based rich-text editor React component that powers Doist products, which can also be used for displaying content in a read-only fashion. Typist also supports a plain-text mode, and comes with HTML/Markdown serializers.
9
11
 
10
12
  > **Note**
11
13
  >
@@ -13,10 +15,10 @@ Typist is the mighty [Tiptap](https://tiptap.dev/)-based rich-text editor that p
13
15
 
14
16
  <div align="center">
15
17
 
16
- ![GitHub: CI Validation](https://github.com/Doist/typist/actions/workflows/check-ci-validation.yml/badge.svg?branch=main)
17
- ![npm Version](https://img.shields.io/npm/v/@doist/typist)
18
- ![npm Bundle Size (minified)](https://img.shields.io/bundlephobia/min/@doist/typist)
19
- ![npm Downloads (monthly)](https://img.shields.io/npm/dm/@doist/typist?color=blue)
18
+ [![GitHub: CI Validation](https://github.com/Doist/typist/actions/workflows/check-ci-validation.yml/badge.svg?branch=main)](https://github.com/Doist/typist/actions/workflows/check-ci-validation.yml?query=branch%3Amain)
19
+ [![npm Version](https://img.shields.io/npm/v/@doist/typist)](https://www.npmjs.com/package/@doist/typist)
20
+ [![npm Bundle Size (minified)](https://img.shields.io/bundlephobia/min/@doist/typist)](https://bundlephobia.com/package/@doist/typist)
21
+ [![npm Downloads (monthly)](https://img.shields.io/npm/dm/@doist/typist?color=blue)](https://npmtrends.com/@doist/typist)
20
22
 
21
23
  [![semantic-release: Conventional Commits](https://img.shields.io/badge/semantic--release-Conventional%20Commits-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
22
24
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
@@ -6,14 +6,14 @@ import { Link } from '@tiptap/extension-link';
6
6
  *
7
7
  * @see https://stephenweiss.dev/regex-markdown-link
8
8
  */
9
- const inputRegex = /(?:^|\s)\[([^\]]*)?\]\(([A-Za-z0-9:/. -]+)(?:["“](.+)["”])?\)$/;
9
+ const inputRegex = /(?:^|\s)\[([^\]]*)?\]\(([A-Za-z0-9:/.-?]+)(?: ["“](.+)["”])?\)$/;
10
10
  /**
11
11
  * The paste regex for Markdown links with title support, and multiple quotation marks (required
12
12
  * in case the `Typography` extension is being included).
13
13
  *
14
14
  * @see https://stephenweiss.dev/regex-markdown-link
15
15
  */
16
- const pasteRegex = /(?:^|\s)\[([^\]]*)?\]\(([A-Za-z0-9:/. -]+)(?:["“](.+)["”])?\)/g;
16
+ const pasteRegex = /(?:^|\s)\[([^\]]*)?\]\(([A-Za-z0-9:/.-?]+)(?: ["“](.+)["”])?\)/g;
17
17
  /**
18
18
  * Input rule built specifically for the `Link` extension, which ignores the auto-linked URL in
19
19
  * parentheses (e.g., `(https://doist.dev)`).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@doist/typist",
3
- "description": "The mighty Tiptap-based rich-text editor that powers Doist products.",
4
- "version": "1.0.0",
3
+ "description": "The mighty Tiptap-based rich-text editor React component that powers Doist products.",
4
+ "version": "1.0.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://typist.doist.dev/",
7
7
  "repository": "https://github.com/Doist/typist",
@@ -14,8 +14,7 @@
14
14
  "npm": "^7.0.0 || ^8.0.0 || ^9.0.0"
15
15
  },
16
16
  "publishConfig": {
17
- "access": "public",
18
- "registry": "https://registry.npmjs.org/"
17
+ "access": "public"
19
18
  },
20
19
  "files": [
21
20
  "CHANGELOG.md",
@@ -102,6 +101,7 @@
102
101
  "@types/marked": "4.0.7",
103
102
  "@types/react": "18.0.24",
104
103
  "@types/react-dom": "18.0.8",
104
+ "@types/react-syntax-highlighter": "15.5.5",
105
105
  "@types/turndown": "5.0.1",
106
106
  "boring-avatars": "1.7.0",
107
107
  "classnames": "2.3.2",
@@ -123,6 +123,10 @@
123
123
  "npm-run-all": "4.1.5",
124
124
  "prettier": "2.7.1",
125
125
  "react-icons": "4.6.0",
126
+ "react-markdown": "8.0.3",
127
+ "react-syntax-highlighter": "15.5.0",
128
+ "rehype-raw": "6.1.1",
129
+ "remark-gfm": "3.0.1",
126
130
  "rimraf": "3.0.2",
127
131
  "semantic-release": "19.0.5",
128
132
  "storybook-css-modules": "1.0.8",