Skip to content

Commit 858f014

Browse files
committed
merge main
1 parent cf4b733 commit 858f014

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4351
-1809
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules/
44
!.vscode/extensions.json
55
!.vscode/launch.json
66
!.vscode/settings.json
7+
!.vscode/tasks.json
78
stats.json
89
dist/
9-
test-results/
10+
test-results/

.prettierrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [{
4+
"name": "Launch Chrome",
5+
"type": "chrome",
6+
"request": "launch",
7+
"url": "http://localhost:8080",
8+
"preLaunchTask": "start",
9+
"pathMapping": {
10+
"webpack:///": "${workspaceFolder}/"
11+
}
12+
}]
13+
}

.vscode/settings.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
2-
"files.exclude": {
3-
".husky": true,
4-
".vscode": true,
5-
"dist": true,
6-
"node_modules": true
7-
},
82
"editor.formatOnSave": true,
93
"editor.defaultFormatter": "esbenp.prettier-vscode",
104
"eslint.lintTask.enable": true,

.vscode/tasks.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [{
4+
"label": "start",
5+
"type": "npm",
6+
"script": "start",
7+
"problemMatcher": [],
8+
"isBackground": true,
9+
}]
10+
}

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [0.7.0](https://github.com/StackExchange/Stacks-Editor/compare/v0.6.1...v0.7.0) (2022-07-28)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* **tag-link:** TagLinkOptions.allowNonAscii and TagLinkOptions.allowMetaTags have been removed in
11+
favor of the consumer handling all validation using the new TagLinkOptions.validate option
12+
TagLinkOptions.renderer has been renamed to TagLinkOptions.render
13+
14+
### Features
15+
16+
* **commands:** change all shortcut labels to use capital letters ([#204](https://github.com/StackExchange/Stacks-Editor/issues/204)) ([0bc5c65](https://github.com/StackExchange/Stacks-Editor/commit/0bc5c65a51b5626889de24366fe5e3725f511e69)), closes [#166](https://github.com/StackExchange/Stacks-Editor/issues/166)
17+
* **commonmark-editor:** move commonmark syntax highlighting to a new Lezer based system ([#176](https://github.com/StackExchange/Stacks-Editor/issues/176)) ([693a402](https://github.com/StackExchange/Stacks-Editor/commit/693a4024df413e75d36e4975c5db5d8ab3b9551b)), closes [#21](https://github.com/StackExchange/Stacks-Editor/issues/21)
18+
* **link-editor:** open link on Mod-Click ([#130](https://github.com/StackExchange/Stacks-Editor/issues/130)) ([ea8da4b](https://github.com/StackExchange/Stacks-Editor/commit/ea8da4b109c93094079109e4b052d42f1621a560)), closes [#62](https://github.com/StackExchange/Stacks-Editor/issues/62)
19+
* **markdown-serializer:** prefer sorting numeric link references in number order ([20f338a](https://github.com/StackExchange/Stacks-Editor/commit/20f338abea66dcaedc1157adb2cb91b223869bb5)), closes [#163](https://github.com/StackExchange/Stacks-Editor/issues/163)
20+
* **markdown-serializer:** serialize code_block nodes to use fences by default ([f658969](https://github.com/StackExchange/Stacks-Editor/commit/f6589698ebc934edc8bf3ebcdbfac94e6d179e29)), closes [#168](https://github.com/StackExchange/Stacks-Editor/issues/168)
21+
* **menu:** tweak active/selected button styling ([303e494](https://github.com/StackExchange/Stacks-Editor/commit/303e494ed5dc8de406f456f49884bb945066d084))
22+
* **stacks-editor:** change the mode toggle to a radio powered button group instead of a checkbox ([2df7f00](https://github.com/StackExchange/Stacks-Editor/commit/2df7f00ea404297bed7976b4f9501a0bc9376854))
23+
* **tag-link:** add all-purpose TagLinkOptions.validate function ([6ae6936](https://github.com/StackExchange/Stacks-Editor/commit/6ae693694c08be9afbad7f0668e0043ec747cef2))
24+
25+
26+
### Bug Fixes
27+
28+
* **code-paste-handler:** fix "global is not defined" error when compiling with Vite ([b7aaf5c](https://github.com/StackExchange/Stacks-Editor/commit/b7aaf5c85e7c4ae75aed58b2aecc8bc7c263da05)), closes [#159](https://github.com/StackExchange/Stacks-Editor/issues/159)
29+
* **image-upload:** dropped/pasted images now properly load into the image uploader ([0bf0bdf](https://github.com/StackExchange/Stacks-Editor/commit/0bf0bdf1d4925f59a28a54b46527151aefb26cd8)), closes [#167](https://github.com/StackExchange/Stacks-Editor/issues/167)
30+
* **image-upload:** improve image-upload pane layout on small viewport widths ([c47728a](https://github.com/StackExchange/Stacks-Editor/commit/c47728aaf514d89f3c92d29137b451f58c2c1d9b)), closes [#202](https://github.com/StackExchange/Stacks-Editor/issues/202)
31+
* **markdown-serializer:** fix incorrect newline serialization of html_inline and html_block ([664e034](https://github.com/StackExchange/Stacks-Editor/commit/664e034dc39a3ec40fb95e31ba07c925ecbce9cf)), closes [#152](https://github.com/StackExchange/Stacks-Editor/issues/152)
32+
* **menu:** fix crashes when a menu entry is null ([87063b9](https://github.com/StackExchange/Stacks-Editor/commit/87063b920f3f092f61ccdfbc98a76f7a2c839331))
33+
* **rich-text-editor:** allow any block node inside list items ([#157](https://github.com/StackExchange/Stacks-Editor/issues/157)) ([f59b72f](https://github.com/StackExchange/Stacks-Editor/commit/f59b72f763d0880ff3c644e80caf98b8e14dfe8d)), closes [#63](https://github.com/StackExchange/Stacks-Editor/issues/63)
34+
535
### [0.6.1](https://github.com/StackExchange/Stacks-Editor/compare/v0.6.0...v0.6.1) (2022-07-05)
636

737

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ new StacksEditor(
6464

6565
1. Install dependencies with `npm i`
6666
2. Build and start using `npm start`
67-
3. Your browser will show the example page automatically
67+
3. Point your browser to the address listed in the output - typically <http://localhost:8080/>
6868

6969
## Run Tests
7070

.eslintrc.js renamed to config/.eslintrc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
parser: "@typescript-eslint/parser",
44
parserOptions: {
55
tsconfigRootDir: __dirname,
6-
project: ["./config/tsconfig.eslint.json"],
6+
project: ["./tsconfig.eslint.json"],
77
},
88
plugins: ["@typescript-eslint", "jest"],
99
extends: [
@@ -17,8 +17,6 @@ module.exports = {
1717
"no-console": "error",
1818
"no-alert": "error",
1919
"no-process-env": "error",
20-
// TODO this one is a pain to fix w/ ProseMirror's Class<T extends Schema = any> types
21-
"@typescript-eslint/no-unsafe-argument": "off",
2220
},
2321
overrides: [
2422
{

config/.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
tabWidth: 4,
3+
semi: true,
4+
singleQuote: false,
5+
quoteProps: "consistent",
6+
trailingComma: "es5",
7+
printWidth: 80,
8+
};

config/jest-unit.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @type {import("jest").Config} */
12
module.exports = {
23
preset: "ts-jest",
34
testEnvironment: "jsdom",
@@ -6,4 +7,10 @@ module.exports = {
67
},
78
rootDir: "../",
89
testPathIgnorePatterns: ["/node_modules/", String.raw`\.e2e\.test`],
10+
setupFilesAfterEnv: ["<rootDir>/test/matchers.ts"],
11+
globals: {
12+
"ts-jest": {
13+
tsconfig: "./test/tsconfig.json",
14+
},
15+
},
916
};

0 commit comments

Comments
 (0)