@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.
Files changed (68) hide show
  1. package/README.md +7 -8
  2. package/THEMING.md +1 -1
  3. package/dist/core/codec/blocks.d.ts +23 -6
  4. package/dist/core/codec/blocks.js +163 -38
  5. package/dist/core/codec/code.js +3 -8
  6. package/dist/core/codec/decode.d.ts +2 -1
  7. package/dist/core/codec/decode.js +19 -11
  8. package/dist/core/codec/field.d.ts +6 -3
  9. package/dist/core/codec/field.js +12 -4
  10. package/dist/core/codec/index.d.ts +2 -0
  11. package/dist/core/codec/index.js +4 -0
  12. package/dist/core/codec/inputrules.js +40 -10
  13. package/dist/core/codec/islands.d.ts +4 -1
  14. package/dist/core/codec/islands.js +43 -16
  15. package/dist/core/codec/keymap.js +19 -1
  16. package/dist/core/codec/line-paste.d.ts +7 -0
  17. package/dist/core/codec/line-paste.js +36 -0
  18. package/dist/core/codec/list-move.d.ts +6 -0
  19. package/dist/core/codec/list-move.js +30 -0
  20. package/dist/core/codec/list-paste.d.ts +2 -0
  21. package/dist/core/codec/list-paste.js +142 -0
  22. package/dist/core/codec/list-toggle.d.ts +4 -0
  23. package/dist/core/codec/list-toggle.js +170 -0
  24. package/dist/core/codec/lists.d.ts +22 -15
  25. package/dist/core/codec/lists.js +404 -97
  26. package/dist/core/codec/markdown-paste.d.ts +13 -3
  27. package/dist/core/codec/markdown-paste.js +70 -6
  28. package/dist/core/codec/nesting.d.ts +5 -1
  29. package/dist/core/codec/nesting.js +1 -1
  30. package/dist/core/codec/prose.css +36 -20
  31. package/dist/core/codec/slash.d.ts +2 -1
  32. package/dist/core/codec/slash.js +0 -0
  33. package/dist/core/codec/touching.d.ts +12 -0
  34. package/dist/core/codec/touching.js +33 -0
  35. package/dist/core/codec/undo.d.ts +5 -0
  36. package/dist/core/codec/undo.js +21 -0
  37. package/dist/index.js +1 -1
  38. package/dist/preview/Preview.svelte +88 -13
  39. package/dist/preview/Preview.svelte.d.ts +2 -2
  40. package/dist/preview/bridge.js +8 -2
  41. package/dist/preview/controller.d.ts +8 -4
  42. package/dist/preview/controller.js +10 -2
  43. package/dist/preview/index.js +1 -1
  44. package/dist/preview/paint.d.ts +6 -2
  45. package/dist/preview/paint.js +67 -56
  46. package/dist/preview/strings.d.ts +2 -0
  47. package/dist/preview/strings.js +4 -2
  48. package/dist/preview/viewport.d.ts +10 -0
  49. package/dist/preview/viewport.js +271 -0
  50. package/dist/preview/zoom.d.ts +41 -0
  51. package/dist/preview/zoom.js +52 -0
  52. package/dist/visual/ArrayField.svelte +24 -4
  53. package/dist/visual/Card.svelte +5 -4
  54. package/dist/visual/DateField.svelte +26 -13
  55. package/dist/visual/Field.svelte +2 -2
  56. package/dist/visual/FormatPopover.svelte +41 -2
  57. package/dist/visual/ObjectField.svelte +4 -7
  58. package/dist/visual/ObjectField.svelte.d.ts +2 -2
  59. package/dist/visual/ProseValue.svelte +35 -3
  60. package/dist/visual/ProseValue.svelte.d.ts +7 -0
  61. package/dist/visual/VisualEditorInner.svelte +5 -11
  62. package/dist/visual/icons/nodes.d.ts +26 -0
  63. package/dist/visual/icons/nodes.js +16 -0
  64. package/dist/visual/strings.d.ts +6 -4
  65. package/dist/visual/strings.js +9 -3
  66. package/dist/visual/structure.d.ts +22 -10
  67. package/dist/visual/structure.js +35 -11
  68. 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`), an island takes cell traversal once added. Outside all
11
- * of them every link returns false and the key is not swallowed: Tab keeps its
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
- * `Enter` is a chain in precedence order: the escape-above gesture, then
16
- * `splitListItem` (`splitTaskItem`, which leaves a task item's new half an open task),
17
- * then `liftListItem`. The middle link carries two behaviors of
18
- * its own: it splits a non-empty item, and on an empty item it either splits the
19
- * wrapping item (a nested empty item, so Enter lifts exactly one level) or bails
20
- * so the third link lifts a top-level empty item out to a paragraph. `Backspace` lifts
21
- * an item at its start, and joins a block onto the list it stands after. `Delete` is
22
- * that same chain at the seam below rather than a second table of cases beside it, so
23
- * the two keys cannot come to differ over a seam this link reaches. An empty line is
24
- * not one: the block link takes it ahead of this chain (`blocks.ts`), the caret's own
25
- * line being a nearer fact than the boundary under it.
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>;