Commit 1c72e1b
SD-2526 - feat: implement 2 extra types of bullet lists (square, circle) (#2857)
* feat: implement 2 extra types of bullet lists (square, circle)
* refactor: code reuse
* refactor: simplified code removing font override
* chore: small code tweaks
* test: add coverage for bullet style picker (SD-2526)
unit:
- numbering-transforms.test.ts (new): generateNewListDefinition with bulletStyle, lvlText override, rFonts strip, ordered-list ignore
- list-numbering-helpers.test.js: markerTextToBulletStyle truth table + null cases
- toggleList.test.js: style-aware predicate, swap-mints-numId path, no-arg fallback
- create-headless-toolbar.test.ts: bullet-list direct command forwards style argument
- toolbar-registry.test.ts: bullet-list state exposes raw markerText for each style
behavior (playwright):
- bullet-style-picker.spec.ts: AC1, AC2, AC3, AC5 picker UX + active-style reflection
- bullet-style-undo-redo.spec.ts: AC9 undo of initial create
- bullet-style-word-fixtures.spec.ts: round-trip from real Word disc/circle/square docs (fixtures generated via Word COM)
* test(lists): verify bullet style export round-trips to DOCX
Adds a behavior test that picks bullet styles via the toolbar dropdown,
then exports and inspects numbering.xml to confirm the per-list w:lvlText
markers match the chosen disc/square styles.
* fix: footer tcs in replacement generating one per character (#2965)
* fix: footer tcs in replacement generating one per character
* feat: added split button for button styles
* fix: generate new nsid when list style is changed
* fix: changing list style changes current identation
* fix: list item de-indentation
* fix: lockfile
* chore: removed console log
---------
Co-authored-by: Gabriel Chittolina <gabrielchittolina1@gmail.com>
Co-authored-by: Caio Pizzol <caio@superdoc.dev>
Co-authored-by: Luccas Correa <luccas@harbourshare.com>
Co-authored-by: Nick Bernal <117235294+harbournick@users.noreply.github.com>1 parent ccd7bb9 commit 1c72e1b
30 files changed
Lines changed: 1234 additions & 67 deletions
File tree
- packages/super-editor/src
- editors/v1
- components/toolbar
- core
- commands
- helpers
- parts/adapters
- document-api-adapters/helpers
- extensions
- paragraph
- types
- headless-toolbar
- helpers
- tests/behavior
- fixtures/data/bullet-styles
- tests/lists
Lines changed: 136 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
126 | 141 | | |
127 | 142 | | |
128 | 143 | | |
| |||
359 | 374 | | |
360 | 375 | | |
361 | 376 | | |
| 377 | + | |
362 | 378 | | |
363 | 379 | | |
364 | 380 | | |
| |||
0 commit comments