Skip to content

Commit

Permalink
Merge branch 'main' into fix/move-y-prosemirror-to-peer-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch authored Feb 21, 2023
2 parents 1960229 + 10f9069 commit 2f8c814
Show file tree
Hide file tree
Showing 129 changed files with 967 additions and 463 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
node-version: [16]

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node-version }}

- name: Load cached dependencies
uses: actions/cache@v3.0.11
uses: actions/cache@v3.2.5
id: cache
with:
path: |
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
run: npm run lint

- name: Send Slack notifications
uses: act10ns/slack@v1
uses: act10ns/slack@v2
if: failure()
with:
status: ${{ job.status }}
Expand All @@ -78,10 +78,10 @@ jobs:
node-version: [16]

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -95,7 +95,7 @@ jobs:

- name: Run tests with Cypress
id: cypress
uses: cypress-io/github-action@v5.0.8
uses: cypress-io/github-action@v5.0.9
with:
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
start: npm run start
Expand All @@ -105,23 +105,23 @@ jobs:
quiet: true

- name: Export screenshots (on failure only)
uses: actions/upload-artifact@v3.1.0
uses: actions/upload-artifact@v3.1.2
if: failure()
with:
name: cypress-screenshots
path: tests/cypress/screenshots
retention-days: 7

- name: Export screen recordings (on failure only)
uses: actions/upload-artifact@v3.1.0
uses: actions/upload-artifact@v3.1.2
if: failure()
with:
name: cypress-videos
path: tests/cypress/videos
retention-days: 7

- name: Send Slack notifications
uses: act10ns/slack@v1
uses: act10ns/slack@v2
if: failure()
with:
status: ${{ job.status }}
Expand All @@ -141,15 +141,15 @@ jobs:
node-version: [16]

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node-version }}

- name: Load cached dependencies
uses: actions/cache@v3.0.11
uses: actions/cache@v3.2.5
id: cache
with:
path: |
Expand All @@ -167,7 +167,7 @@ jobs:
run: npm run build:ci

- name: Send Slack notifications
uses: act10ns/slack@v1
uses: act10ns/slack@v2
if: failure()
with:
status: ${{ job.status }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
docsearch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.3.0

- name: Run DocSearch Scraper
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.5.1
- uses: actions/checkout@v3.3.0
- uses: actions/setup-node@v3.6.0
with:
node-version: 16
registry-url: https://registry.npmjs.org/
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dist
.env
.env.*
.npmrc
.eslintcache

# Log files
npm-debug.log*
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.0.0-beta.218](https://github.com/ueberdosis/tiptap/compare/v2.0.0-beta.217...v2.0.0-beta.218) (2023-02-18)


### Bug Fixes

* **extension-link:** Click handler opens selected link instead of clicked link ([#3732](https://github.com/ueberdosis/tiptap/issues/3732)) ([6997bca](https://github.com/ueberdosis/tiptap/commit/6997bcad6b60f78122c605656500c63c96ea2faa))
* Prevent drag event from being ignored ([#3677](https://github.com/ueberdosis/tiptap/issues/3677)) ([2b6e4e3](https://github.com/ueberdosis/tiptap/commit/2b6e4e369130466387ab1136e10ad64f6e37df5b))
* **typography:** dont create fractions in the middle of a string ([#3762](https://github.com/ueberdosis/tiptap/issues/3762)) ([7ad54ea](https://github.com/ueberdosis/tiptap/commit/7ad54ea86a265c07bc94606cfd4724a00befaf3f))





# [2.0.0-beta.217](https://github.com/ueberdosis/tiptap/compare/v2.0.0-beta.216...v2.0.0-beta.217) (2023-02-09)


Expand Down
8 changes: 8 additions & 0 deletions demos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.0.0-beta.218](https://github.com/ueberdosis/tiptap/compare/v2.0.0-beta.217...v2.0.0-beta.218) (2023-02-18)

**Note:** Version bump only for package tiptap-demos





# [2.0.0-beta.217](https://github.com/ueberdosis/tiptap/compare/v2.0.0-beta.216...v2.0.0-beta.217) (2023-02-09)

**Note:** Version bump only for package tiptap-demos
Expand Down
16 changes: 8 additions & 8 deletions demos/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiptap-demos",
"version": "2.0.0-beta.217",
"version": "2.0.0-beta.218",
"private": true,
"scripts": {
"start": "vite --host",
Expand Down
5 changes: 2 additions & 3 deletions demos/src/Experiments/Tailwind/JS/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!-- load tailwind -->
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/typography/dist/typography.min.css" />
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>

<!-- provide element -->
<div class="element"></div>
Expand All @@ -17,7 +16,7 @@
],
editorProps: {
attributes: {
class: 'prose prose-sm sm:prose lg:prose-lg xl:prose-2xl m-5 focus:outline-none',
class: 'prose dark:prose-invert prose-sm sm:prose lg:prose-lg xl:prose-2xl m-5 focus:outline-none',
},
},
content: `
Expand Down
18 changes: 18 additions & 0 deletions docs/api/marks/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,24 @@ Link.configure({
})
```

#### Removing and overriding existing html attributes

You can add `rel: null` to HTMLAttributes to remove the default `rel="noopener noreferrer nofollow"`. You can also override the default by using `rel: "your-value"`.

This can also be used to change the `target` from the default value of `_blank`.

```js
Link.configure({
HTMLAttributes: {
// Change rel to different value
// Allow search engines to follow links(remove nofollow)
rel: 'noopener noreferrer',
// Remove target entirely so links open in current tab
target: null,
},
})
```

### validate
A function that validates every autolinked link. If it exists, it will be called with the link href as argument. If it returns `false`, the link will be removed.

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
},
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"version": "2.0.0-beta.217"
"version": "2.0.0-beta.218"
}
Loading

0 comments on commit 2f8c814

Please sign in to comment.