@quillmark/svelte 0.23.0 → 0.25.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/README.md +7 -8
- package/THEMING.md +1 -1
- package/dist/core/codec/blocks.d.ts +23 -6
- package/dist/core/codec/blocks.js +163 -38
- package/dist/core/codec/code.js +3 -8
- package/dist/core/codec/decode.d.ts +2 -1
- package/dist/core/codec/decode.js +19 -11
- package/dist/core/codec/field.d.ts +6 -3
- package/dist/core/codec/field.js +12 -4
- package/dist/core/codec/index.d.ts +2 -0
- package/dist/core/codec/index.js +4 -0
- package/dist/core/codec/inputrules.js +40 -10
- package/dist/core/codec/islands.d.ts +4 -1
- package/dist/core/codec/islands.js +43 -16
- package/dist/core/codec/keymap.js +19 -1
- package/dist/core/codec/line-paste.d.ts +7 -0
- package/dist/core/codec/line-paste.js +36 -0
- package/dist/core/codec/list-move.d.ts +6 -0
- package/dist/core/codec/list-move.js +30 -0
- package/dist/core/codec/list-paste.d.ts +2 -0
- package/dist/core/codec/list-paste.js +142 -0
- package/dist/core/codec/list-toggle.d.ts +4 -0
- package/dist/core/codec/list-toggle.js +170 -0
- package/dist/core/codec/lists.d.ts +22 -15
- package/dist/core/codec/lists.js +404 -97
- package/dist/core/codec/markdown-paste.d.ts +13 -3
- package/dist/core/codec/markdown-paste.js +70 -6
- package/dist/core/codec/nesting.d.ts +5 -1
- package/dist/core/codec/nesting.js +1 -1
- package/dist/core/codec/prose.css +36 -20
- package/dist/core/codec/slash.d.ts +2 -1
- package/dist/core/codec/slash.js +0 -0
- package/dist/core/codec/touching.d.ts +12 -0
- package/dist/core/codec/touching.js +33 -0
- package/dist/core/codec/undo.d.ts +5 -0
- package/dist/core/codec/undo.js +21 -0
- package/dist/index.js +1 -1
- package/dist/preview/Preview.svelte +88 -13
- package/dist/preview/Preview.svelte.d.ts +2 -2
- package/dist/preview/bridge.js +8 -2
- package/dist/preview/controller.d.ts +8 -4
- package/dist/preview/controller.js +10 -2
- package/dist/preview/index.js +1 -1
- package/dist/preview/paint.d.ts +6 -2
- package/dist/preview/paint.js +67 -56
- package/dist/preview/strings.d.ts +2 -0
- package/dist/preview/strings.js +4 -2
- package/dist/preview/viewport.d.ts +10 -0
- package/dist/preview/viewport.js +271 -0
- package/dist/preview/zoom.d.ts +41 -0
- package/dist/preview/zoom.js +52 -0
- package/dist/visual/ArrayField.svelte +24 -4
- package/dist/visual/Card.svelte +5 -4
- package/dist/visual/DateField.svelte +26 -13
- package/dist/visual/Field.svelte +2 -2
- package/dist/visual/FormatPopover.svelte +41 -2
- package/dist/visual/ObjectField.svelte +4 -7
- package/dist/visual/ObjectField.svelte.d.ts +2 -2
- package/dist/visual/ProseValue.svelte +35 -3
- package/dist/visual/ProseValue.svelte.d.ts +7 -0
- package/dist/visual/VisualEditorInner.svelte +5 -11
- package/dist/visual/icons/nodes.d.ts +26 -0
- package/dist/visual/icons/nodes.js +16 -0
- package/dist/visual/strings.d.ts +6 -4
- package/dist/visual/strings.js +9 -3
- package/dist/visual/structure.d.ts +22 -10
- package/dist/visual/structure.js +35 -11
- package/package.json +2 -2
|
@@ -7,21 +7,28 @@ import type { Command } from 'prosemirror-state';
|
|
|
7
7
|
* `Tab` / `Shift-Tab` hold the list link of the body's Tab chain. Surfaces that own
|
|
8
8
|
* Tab more locally under the same rule (`prose/canon/VISUAL_EDITOR.md` §Chrome)
|
|
9
9
|
* prepend a link ahead of these in `keymap.ts`: a `code_block` takes literal
|
|
10
|
-
* indentation (`code.ts`)
|
|
11
|
-
*
|
|
12
|
-
* default meaning, which is the body's only keyboard exit and the open seam for a
|
|
13
|
-
* shell structural keymap (VISUAL_EDITOR §Settled and open).
|
|
10
|
+
* indentation (`code.ts`). Where every link declines, the body holds the key
|
|
11
|
+
* (`keymap.ts`).
|
|
14
12
|
*
|
|
15
|
-
* `
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
13
|
+
* `Mod-Shift-7` / `Mod-Shift-8` are the list toggle (`list-toggle.ts`), numbering or
|
|
14
|
+
* bulleting the selection's lines or taking their markers off.
|
|
15
|
+
*
|
|
16
|
+
* `Tab` sinks an unnumbered line alone into a sub-list, any other line its whole item,
|
|
17
|
+
* and a block right after a list into the list's last item.
|
|
18
|
+
*
|
|
19
|
+
* `Enter` is a chain in precedence order: the empty line above an unnumbered one, the
|
|
20
|
+
* marker off an empty middle item and back on an empty continuation line, then `splitListItem`
|
|
21
|
+
* (`splitTaskItem`, which leaves a task item's new half an open task), then
|
|
22
|
+
* `liftListItem`. The split link carries two behaviors of its own: it splits a
|
|
23
|
+
* non-empty item, and on an empty last item it either splits the wrapping item (a
|
|
24
|
+
* nested one, so Enter lifts exactly one level) or bails so the last link lifts a
|
|
25
|
+
* top-level one out to a paragraph. `Backspace` takes an item's marker off at its
|
|
26
|
+
* start, a top-level continuation line out to full width, and joins a block onto the
|
|
27
|
+
* list it stands after, and both keys over a selection spanning blocks join the lists
|
|
28
|
+
* the delete leaves touching. `Delete` is the marker off at the seam below with the two lines
|
|
29
|
+
* joined, never the line out: a forward delete edits the line after the caret, not its
|
|
30
|
+
* indent. An empty line is neither key's here:
|
|
31
|
+
* the block link takes it ahead of this chain (`blocks.ts`), the caret's own line
|
|
32
|
+
* being a nearer fact than the boundary under it.
|
|
26
33
|
*/
|
|
27
34
|
export declare function listKeymap(schema: Schema): Record<string, Command>;
|