Compare commits
3 commits
728ddcfe31
...
10eef5e4a8
Author | SHA1 | Date | |
---|---|---|---|
10eef5e4a8 | |||
f5e5e8dc4a | |||
bb92880688 |
5 changed files with 53 additions and 28 deletions
|
@ -26,11 +26,12 @@
|
||||||
"prosemirror-state": "~1.4.2",
|
"prosemirror-state": "~1.4.2",
|
||||||
"prosemirror-transform": "~1.7.1",
|
"prosemirror-transform": "~1.7.1",
|
||||||
"prosemirror-view": "~1.29.2",
|
"prosemirror-view": "~1.29.2",
|
||||||
|
"prosemirror-history": "^1.3.0",
|
||||||
"svelte": "^3.58.0",
|
"svelte": "^3.58.0",
|
||||||
"svelte-check": "^2.10.3",
|
"svelte-check": "^2.10.3",
|
||||||
"tslib": "^2.5.0",
|
"tslib": "^2.5.0",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.5",
|
||||||
"vite": "^4.2.1"
|
"vite": "^4.2.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap-icons": "^1.10.4",
|
"bootstrap-icons": "^1.10.4",
|
||||||
|
|
|
@ -10,6 +10,9 @@ dependencies:
|
||||||
navaid:
|
navaid:
|
||||||
specifier: ^1.2.0
|
specifier: ^1.2.0
|
||||||
version: 1.2.0
|
version: 1.2.0
|
||||||
|
prosemirror-history:
|
||||||
|
specifier: ^1.3.0
|
||||||
|
version: 1.3.0
|
||||||
regexparam:
|
regexparam:
|
||||||
specifier: ^2.0.1
|
specifier: ^2.0.1
|
||||||
version: 2.0.1
|
version: 2.0.1
|
||||||
|
@ -32,16 +35,16 @@ dependencies:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@poppanator/sveltekit-svg':
|
'@poppanator/sveltekit-svg':
|
||||||
specifier: ^2.1.2
|
specifier: ^2.1.2
|
||||||
version: 2.1.2(svelte@3.58.0)(vite@4.2.1)
|
version: 2.1.2(svelte@3.58.0)(vite@4.2.2)
|
||||||
'@sveltejs/vite-plugin-svelte':
|
'@sveltejs/vite-plugin-svelte':
|
||||||
specifier: ^2.0.4
|
specifier: ^2.0.4
|
||||||
version: 2.0.4(svelte@3.58.0)(vite@4.2.1)
|
version: 2.0.4(svelte@3.58.0)(vite@4.2.2)
|
||||||
'@tsconfig/svelte':
|
'@tsconfig/svelte':
|
||||||
specifier: ^3.0.0
|
specifier: ^3.0.0
|
||||||
version: 3.0.0
|
version: 3.0.0
|
||||||
'@vitejs/plugin-basic-ssl':
|
'@vitejs/plugin-basic-ssl':
|
||||||
specifier: ^1.0.1
|
specifier: ^1.0.1
|
||||||
version: 1.0.1(vite@4.2.1)
|
version: 1.0.1(vite@4.2.2)
|
||||||
prosemirror-commands:
|
prosemirror-commands:
|
||||||
specifier: ~1.3.1
|
specifier: ~1.3.1
|
||||||
version: 1.3.1
|
version: 1.3.1
|
||||||
|
@ -88,8 +91,8 @@ devDependencies:
|
||||||
specifier: ^4.9.5
|
specifier: ^4.9.5
|
||||||
version: 4.9.5
|
version: 4.9.5
|
||||||
vite:
|
vite:
|
||||||
specifier: ^4.2.1
|
specifier: ^4.2.2
|
||||||
version: 4.2.1
|
version: 4.2.2
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
|
@ -332,7 +335,7 @@ packages:
|
||||||
fastq: 1.15.0
|
fastq: 1.15.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@poppanator/sveltekit-svg@2.1.2(svelte@3.58.0)(vite@4.2.1):
|
/@poppanator/sveltekit-svg@2.1.2(svelte@3.58.0)(vite@4.2.2):
|
||||||
resolution: {integrity: sha512-d3s+Irf4vIrn1yHj6PffSRZT8Wo/Unt4QdGxZmLZWLT9eG6tHznJjQRAau1DEphjTeRohYHQSk6mM/KyMmQhEQ==}
|
resolution: {integrity: sha512-d3s+Irf4vIrn1yHj6PffSRZT8Wo/Unt4QdGxZmLZWLT9eG6tHznJjQRAau1DEphjTeRohYHQSk6mM/KyMmQhEQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
svelte: 3.x
|
svelte: 3.x
|
||||||
|
@ -340,10 +343,10 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
svelte: 3.58.0
|
svelte: 3.58.0
|
||||||
svgo: 2.8.0
|
svgo: 2.8.0
|
||||||
vite: 4.2.1
|
vite: 4.2.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@sveltejs/vite-plugin-svelte@2.0.4(svelte@3.58.0)(vite@4.2.1):
|
/@sveltejs/vite-plugin-svelte@2.0.4(svelte@3.58.0)(vite@4.2.2):
|
||||||
resolution: {integrity: sha512-pjqhW00KwK2uzDGEr+yJBwut+D+4XfJO/+bHHdHzPRXn9+1Jeq5JcFHyrUiYaXgHtyhX0RsllCTm4ssAx4ZY7Q==}
|
resolution: {integrity: sha512-pjqhW00KwK2uzDGEr+yJBwut+D+4XfJO/+bHHdHzPRXn9+1Jeq5JcFHyrUiYaXgHtyhX0RsllCTm4ssAx4ZY7Q==}
|
||||||
engines: {node: ^14.18.0 || >= 16}
|
engines: {node: ^14.18.0 || >= 16}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -356,8 +359,8 @@ packages:
|
||||||
magic-string: 0.30.0
|
magic-string: 0.30.0
|
||||||
svelte: 3.58.0
|
svelte: 3.58.0
|
||||||
svelte-hmr: 0.15.1(svelte@3.58.0)
|
svelte-hmr: 0.15.1(svelte@3.58.0)
|
||||||
vite: 4.2.1
|
vite: 4.2.2
|
||||||
vitefu: 0.2.4(vite@4.2.1)
|
vitefu: 0.2.4(vite@4.2.2)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -382,13 +385,13 @@ packages:
|
||||||
sass: 1.62.0
|
sass: 1.62.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@vitejs/plugin-basic-ssl@1.0.1(vite@4.2.1):
|
/@vitejs/plugin-basic-ssl@1.0.1(vite@4.2.2):
|
||||||
resolution: {integrity: sha512-pcub+YbFtFhaGRTo1832FQHQSHvMrlb43974e2eS8EKleR3p1cDdkJFPci1UhwkEf1J9Bz+wKBSzqpKp7nNj2A==}
|
resolution: {integrity: sha512-pcub+YbFtFhaGRTo1832FQHQSHvMrlb43974e2eS8EKleR3p1cDdkJFPci1UhwkEf1J9Bz+wKBSzqpKp7nNj2A==}
|
||||||
engines: {node: '>=14.6.0'}
|
engines: {node: '>=14.6.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vite: ^3.0.0 || ^4.0.0
|
vite: ^3.0.0 || ^4.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
vite: 4.2.1
|
vite: 4.2.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/anymatch@3.1.3:
|
/anymatch@3.1.3:
|
||||||
|
@ -928,6 +931,14 @@ packages:
|
||||||
prosemirror-view: 1.29.2
|
prosemirror-view: 1.29.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/prosemirror-history@1.3.0:
|
||||||
|
resolution: {integrity: sha512-qo/9Wn4B/Bq89/YD+eNWFbAytu6dmIM85EhID+fz9Jcl9+DfGEo8TTSrRhP15+fFEoaPqpHSxlvSzSEbmlxlUA==}
|
||||||
|
dependencies:
|
||||||
|
prosemirror-state: 1.4.2
|
||||||
|
prosemirror-transform: 1.7.1
|
||||||
|
rope-sequence: 1.3.3
|
||||||
|
dev: false
|
||||||
|
|
||||||
/prosemirror-keymap@1.2.1:
|
/prosemirror-keymap@1.2.1:
|
||||||
resolution: {integrity: sha512-kVK6WGC+83LZwuSJnuCb9PsADQnFZllt94qPP3Rx/vLcOUV65+IbBeH2nS5cFggPyEVJhGkGrgYFRrG250WhHQ==}
|
resolution: {integrity: sha512-kVK6WGC+83LZwuSJnuCb9PsADQnFZllt94qPP3Rx/vLcOUV65+IbBeH2nS5cFggPyEVJhGkGrgYFRrG250WhHQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1047,14 +1058,18 @@ packages:
|
||||||
glob: 7.2.3
|
glob: 7.2.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/rollup@3.20.4:
|
/rollup@3.20.6:
|
||||||
resolution: {integrity: sha512-n7J4tuctZXUErM9Uc916httwqmTc63zzCr2+TLCiSCpfO/Xuk3g/marGN1IlRJZi+QF3XMYx75PxXRfZDVgaRw==}
|
resolution: {integrity: sha512-2yEB3nQXp/tBQDN0hJScJQheXdvU2wFhh6ld7K/aiZ1vYcak6N/BKjY1QrU6BvO2JWYS8bEs14FRaxXosxy2zw==}
|
||||||
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
|
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents: 2.3.2
|
fsevents: 2.3.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/rope-sequence@1.3.3:
|
||||||
|
resolution: {integrity: sha512-85aZYCxweiD5J8yTEbw+E6A27zSnLPNDL0WfPdw3YYodq7WjnTKo0q4dtyQ2gz23iPT8Q9CUyJtAaUNcTxRf5Q==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/run-parallel@1.2.0:
|
/run-parallel@1.2.0:
|
||||||
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
|
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1285,8 +1300,8 @@ packages:
|
||||||
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
|
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/vite@4.2.1:
|
/vite@4.2.2:
|
||||||
resolution: {integrity: sha512-7MKhqdy0ISo4wnvwtqZkjke6XN4taqQ2TBaTccLIpOKv7Vp2h4Y+NpmWCnGDeSvvn45KxvWgGyb0MkHvY1vgbg==}
|
resolution: {integrity: sha512-PcNtT5HeDxb3QaSqFYkEum8f5sCVe0R3WK20qxgIvNBZPXU/Obxs/+ubBMeE7nLWeCo2LDzv+8hRYSlcaSehig==}
|
||||||
engines: {node: ^14.18.0 || >=16.0.0}
|
engines: {node: ^14.18.0 || >=16.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -1313,12 +1328,12 @@ packages:
|
||||||
esbuild: 0.17.17
|
esbuild: 0.17.17
|
||||||
postcss: 8.4.22
|
postcss: 8.4.22
|
||||||
resolve: 1.22.2
|
resolve: 1.22.2
|
||||||
rollup: 3.20.4
|
rollup: 3.20.6
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents: 2.3.2
|
fsevents: 2.3.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/vitefu@0.2.4(vite@4.2.1):
|
/vitefu@0.2.4(vite@4.2.2):
|
||||||
resolution: {integrity: sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==}
|
resolution: {integrity: sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vite: ^3.0.0 || ^4.0.0
|
vite: ^3.0.0 || ^4.0.0
|
||||||
|
@ -1326,7 +1341,7 @@ packages:
|
||||||
vite:
|
vite:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
vite: 4.2.1
|
vite: 4.2.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/w3c-keyname@2.2.6:
|
/w3c-keyname@2.2.6:
|
||||||
|
|
|
@ -46,3 +46,7 @@ a {
|
||||||
--accent-fg: #94a3b8;
|
--accent-fg: #94a3b8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 0.5em 1em;
|
||||||
|
}
|
||||||
|
|
|
@ -21,3 +21,16 @@
|
||||||
<ListItem {view} {state} kind={ListKind.Ordered} />
|
<ListItem {view} {state} kind={ListKind.Ordered} />
|
||||||
<BlockQuoteItem {view} {state} />
|
<BlockQuoteItem {view} {state} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.menubar {
|
||||||
|
position: sticky;
|
||||||
|
top: 0px;
|
||||||
|
z-index: 69;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
background: var(--background, white);
|
||||||
|
border-bottom: 1px solid var(--accent-bg);
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -9,14 +9,6 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor .menubar {
|
|
||||||
position: sticky;
|
|
||||||
top: 0px;
|
|
||||||
z-index: 69;
|
|
||||||
background: var(--background, white);
|
|
||||||
border-bottom: 1px solid var(--accent-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor .menubar button {
|
.editor .menubar button {
|
||||||
appearance: none;
|
appearance: none;
|
||||||
background: none;
|
background: none;
|
||||||
|
|
Loading…
Reference in a new issue