@a3s-lab/office 0.26.0 → 0.28.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 +89 -2
- package/dist/0~4595.js +16 -2
- package/dist/0~5093.js +563 -201
- package/dist/0~6090.js +77 -77
- package/dist/{0~2805.js → 0~7043.js} +305 -2
- package/dist/0~document-editor.js +2633 -976
- package/dist/0~spreadsheet-editor.js +1324 -378
- package/dist/0~work-docx-export.js +737 -17
- package/dist/0~work-docx-import.js +173 -98
- package/dist/0~work-office-diagnostics.js +250 -5
- package/dist/{164.js → 1544.js} +1083 -785
- package/dist/4104.js +145 -29
- package/dist/5184.js +13 -0
- package/dist/6282.js +1898 -345
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/features/work/editors/document-command-catalog.d.ts +102 -0
- package/dist/internal/features/work/editors/document-font-dialog-model.d.ts +111 -0
- package/dist/internal/features/work/editors/document-font-dialog-script-font-model.d.ts +18 -0
- package/dist/internal/features/work/editors/document-font-dialog.d.ts +9 -0
- package/dist/internal/features/work/editors/document-home-ribbon.d.ts +2 -1
- package/dist/internal/features/work/editors/document-page-chrome-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/document-page-chrome-ribbon.d.ts +2 -1
- package/dist/internal/features/work/editors/document-strike-ribbon.d.ts +7 -0
- package/dist/internal/features/work/editors/document-text-case-ribbon.d.ts +4 -0
- package/dist/internal/features/work/editors/document-toolbar.d.ts +3 -1
- package/dist/internal/features/work/editors/document-underline-ribbon.d.ts +9 -0
- package/dist/internal/features/work/editors/document-wps-shortcuts.d.ts +1 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-fill-format.d.ts +11 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-format.d.ts +2 -1
- package/dist/internal/features/work/editors/spreadsheet-format-cells-dialog-model.d.ts +13 -2
- package/dist/internal/features/work/editors/spreadsheet-format-cells-fill-panel.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-format-cells-fill-preview.d.ts +6 -0
- package/dist/internal/features/work/editors/spreadsheet-format-painter.d.ts +1 -1
- package/dist/internal/features/work/editors/work-office-chrome.d.ts +9 -1
- package/dist/internal/features/work/work-document-character-formatting.d.ts +16 -1
- package/dist/internal/features/work/work-document-character-position.d.ts +9 -0
- package/dist/internal/features/work/work-document-character-scale.d.ts +8 -0
- package/dist/internal/features/work/work-document-character-spacing.d.ts +8 -0
- package/dist/internal/features/work/work-document-emphasis.d.ts +7 -0
- package/dist/internal/features/work/work-document-equations.d.ts +2 -1
- package/dist/internal/features/work/work-document-format-changes.d.ts +20 -2
- package/dist/internal/features/work/work-document-hidden-text.d.ts +5 -0
- package/dist/internal/features/work/work-document-kerning.d.ts +10 -0
- package/dist/internal/features/work/work-document-legacy-text-effects.d.ts +27 -0
- package/dist/internal/features/work/work-document-script-font-extension.d.ts +2 -0
- package/dist/internal/features/work/work-document-script-fonts.d.ts +51 -0
- package/dist/internal/features/work/work-document-strike.d.ts +21 -0
- package/dist/internal/features/work/work-document-text-case.d.ts +10 -0
- package/dist/internal/features/work/work-document-underline.d.ts +37 -0
- package/dist/internal/features/work/work-document-word-line-metrics.d.ts +16 -0
- package/dist/internal/features/work/work-docx-character-position.d.ts +2 -0
- package/dist/internal/features/work/work-docx-character-scale.d.ts +2 -0
- package/dist/internal/features/work/work-docx-character-spacing.d.ts +4 -0
- package/dist/internal/features/work/work-docx-emphasis-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-emphasis.d.ts +14 -0
- package/dist/internal/features/work/work-docx-hidden-text-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-hidden-text-export.d.ts +17 -0
- package/dist/internal/features/work/work-docx-hidden-text.d.ts +11 -0
- package/dist/internal/features/work/work-docx-kerning-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-kerning.d.ts +14 -0
- package/dist/internal/features/work/work-docx-legacy-text-effects-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-legacy-text-effects-export.d.ts +18 -0
- package/dist/internal/features/work/work-docx-legacy-text-effects.d.ts +12 -0
- package/dist/internal/features/work/work-docx-run-fonts-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-run-fonts-export.d.ts +14 -0
- package/dist/internal/features/work/work-docx-run-fonts.d.ts +13 -0
- package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +27 -2
- package/dist/internal/features/work/work-docx-run-property-order.d.ts +2 -0
- package/dist/internal/features/work/work-docx-run-script-font-import.d.ts +9 -0
- package/dist/internal/features/work/work-docx-strike.d.ts +8 -0
- package/dist/internal/features/work/work-docx-theme-reference.d.ts +1 -1
- package/dist/internal/features/work/work-docx-twips.d.ts +6 -0
- package/dist/internal/features/work/work-docx-underline.d.ts +3 -0
- package/dist/internal/features/work/work-spreadsheet-gradient-fill-canvas.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-native-fill-canvas.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-pattern-fill-canvas.d.ts +8 -0
- package/dist/internal/features/work/work-xlsx-cell-style-origin.d.ts +2 -1
- package/dist/internal/features/work/work-xlsx-cell-style-writer.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-cell-styles.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-gradient-fill.d.ts +31 -0
- package/dist/internal/features/work/work-xlsx-native-fill.d.ts +17 -0
- package/dist/internal/features/work/work-xlsx-pattern-fill.d.ts +21 -0
- package/dist/office-kernel.wasm +0 -0
- package/dist/styles.css +809 -78
- package/docs/latest/en/browser-editor-architecture.md +24 -0
- package/package.json +35 -1
|
@@ -675,6 +675,30 @@ explicit hard breaks so gradual typing and multiline paste cannot overflow a
|
|
|
675
675
|
physical sheet as one atomic block. The Worker/WASM kernel chooses page
|
|
676
676
|
breaks, keeps a minimum number of line fragments on either side of a break,
|
|
677
677
|
and returns mapped decorations.
|
|
678
|
+
|
|
679
|
+
Native hidden text is resolved before layout eligibility is chosen. The
|
|
680
|
+
canonical TipTap mark keeps inherited, hidden, and explicit-visible states;
|
|
681
|
+
DOM paint hides `data-office-hidden-text="true"` by default, while the
|
|
682
|
+
editing-only View mode reveals it with a dotted underline. Preview and detached
|
|
683
|
+
PDF snapshots never inherit that view class. A paragraph containing hidden text
|
|
684
|
+
uses browser-authoritative measurement because its invisible run must not
|
|
685
|
+
contribute Worker/WASM advances. This is an explicit per-paragraph fallback,
|
|
686
|
+
not a second document tree or a second pagination model.
|
|
687
|
+
|
|
688
|
+
Native outline, shadow, emboss, and imprint are resolved through four nullable
|
|
689
|
+
TextStyle properties before DOM serialization and DOCX export. Outline and
|
|
690
|
+
shadow may coexist; emboss and imprint are each exclusive with the other
|
|
691
|
+
enabled effects. Import rejects duplicate, misplaced, namespace-spoofed,
|
|
692
|
+
text-bearing, child-bearing, extra-attribute, unknown, and conflicting property
|
|
693
|
+
sets before they reach paint. Export uses the canonical WordprocessingML run
|
|
694
|
+
property order and collision-safe nested `w:rStyle` markers. Legacy effects are
|
|
695
|
+
the inner marker and hidden text is the outer marker; hidden text is patched
|
|
696
|
+
first and effects second, while only markers that reach a real generated text
|
|
697
|
+
run are committed. This retains an original character style without orphaning
|
|
698
|
+
an empty nested container. The four effects change paint but not advances, so
|
|
699
|
+
eligible paragraphs remain on Worker/WASM layout and the browser/PDF CSS
|
|
700
|
+
projection stays an explicitly bounded approximation.
|
|
701
|
+
|
|
678
702
|
Tables, images, code blocks, and other complex content use explicit
|
|
679
703
|
format-specific measurement. Top-level tables are row flows; eligible rows can
|
|
680
704
|
additionally expose synchronized direct-cell block fragments. Ordered and bullet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a3s-lab/office",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Open-source collaborative browser editors for documents, Markdown, spreadsheets, presentations, and PDFs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"office",
|
|
@@ -87,6 +87,15 @@
|
|
|
87
87
|
"playground:preview": "rsbuild preview --config playground/rsbuild.config.ts --host 127.0.0.1 --port 4175 --strict-port",
|
|
88
88
|
"playground:typecheck": "tsc --noEmit -p playground/tsconfig.json",
|
|
89
89
|
"playground:visual": "playwright test --config playwright.config.ts",
|
|
90
|
+
"playground:visual:document-emphasis": "playwright test visual-tests/document-emphasis.functional.spec.ts --config playwright.config.ts",
|
|
91
|
+
"playground:visual:document-hidden-text": "playwright test visual-tests/document-hidden-text.functional.spec.ts --config playwright.config.ts",
|
|
92
|
+
"playground:visual:document-legacy-text-effects": "playwright test visual-tests/document-legacy-text-effects.functional.spec.ts --config playwright.config.ts",
|
|
93
|
+
"playground:visual:document-kerning": "playwright test visual-tests/document-kerning.functional.spec.ts --config playwright.config.ts",
|
|
94
|
+
"playground:visual:document-character-scale": "playwright test visual-tests/document-character-scale.functional.spec.ts --config playwright.config.ts",
|
|
95
|
+
"playground:visual:document-character-position": "playwright test visual-tests/document-character-position.functional.spec.ts --config playwright.config.ts",
|
|
96
|
+
"playground:visual:document-character-spacing": "playwright test visual-tests/document-character-spacing.functional.spec.ts --config playwright.config.ts",
|
|
97
|
+
"playground:visual:document-script-fonts": "playwright test visual-tests/document-script-fonts.functional.spec.ts --config playwright.config.ts",
|
|
98
|
+
"playground:visual:document-strike": "playwright test visual-tests/document-strike.functional.spec.ts --config playwright.config.ts",
|
|
90
99
|
"playground:visual:spreadsheet-data-validation": "playwright test visual-tests/spreadsheet-data-validation.functional.spec.ts --config playwright.config.ts",
|
|
91
100
|
"playground:visual:spreadsheet-date-time": "playwright test visual-tests/spreadsheet-date-time.functional.spec.ts --config playwright.config.ts",
|
|
92
101
|
"playground:visual:spreadsheet-copy-from-above": "playwright test visual-tests/spreadsheet-copy-from-above.functional.spec.ts --config playwright.config.ts",
|
|
@@ -94,6 +103,8 @@
|
|
|
94
103
|
"playground:visual:spreadsheet-diagonal-borders": "playwright test visual-tests/spreadsheet-diagonal-borders.functional.spec.ts --config playwright.config.ts",
|
|
95
104
|
"playground:visual:spreadsheet-font-colors-shortcuts": "playwright test visual-tests/spreadsheet-font-colors-shortcuts.functional.spec.ts --config playwright.config.ts",
|
|
96
105
|
"playground:visual:spreadsheet-hyperlink": "playwright test visual-tests/spreadsheet-hyperlink.functional.spec.ts --config playwright.config.ts",
|
|
106
|
+
"playground:visual:spreadsheet-gradient-fill": "playwright test visual-tests/spreadsheet-gradient-fill.functional.spec.ts --config playwright.config.ts",
|
|
107
|
+
"playground:visual:spreadsheet-pattern-fill": "playwright test visual-tests/spreadsheet-pattern-fill.functional.spec.ts --config playwright.config.ts",
|
|
97
108
|
"playground:visual:spreadsheet-ribbon": "playwright test visual-tests/spreadsheet-ribbon.functional.spec.ts --config playwright.config.ts",
|
|
98
109
|
"playground:visual:spreadsheet-rich-text": "playwright test visual-tests/spreadsheet-rich-text.functional.spec.ts --config playwright.config.ts",
|
|
99
110
|
"playground:visual:spreadsheet-underline": "playwright test visual-tests/spreadsheet-underline.functional.spec.ts --config playwright.config.ts",
|
|
@@ -158,6 +169,10 @@
|
|
|
158
169
|
"test:e2e:spreadsheet-auto-sum:check": "a3s-test check tests/e2e/spreadsheet-auto-sum.acl --json",
|
|
159
170
|
"test:e2e:spreadsheet-paste-special": "a3s-test run tests/e2e/spreadsheet-paste-special.acl --json",
|
|
160
171
|
"test:e2e:spreadsheet-paste-special:check": "a3s-test check tests/e2e/spreadsheet-paste-special.acl --json",
|
|
172
|
+
"test:e2e:spreadsheet-pattern-fill": "A3S_TEST_SUITE=tests/e2e/spreadsheet-pattern-fill.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
173
|
+
"test:e2e:spreadsheet-pattern-fill:check": "a3s-test check tests/e2e/spreadsheet-pattern-fill.acl --json",
|
|
174
|
+
"test:e2e:spreadsheet-gradient-fill": "A3S_TEST_SUITE=tests/e2e/spreadsheet-gradient-fill.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
175
|
+
"test:e2e:spreadsheet-gradient-fill:check": "a3s-test check tests/e2e/spreadsheet-gradient-fill.acl --json",
|
|
161
176
|
"test:e2e:spreadsheet-go-to": "a3s-test run tests/e2e/spreadsheet-go-to.acl --json",
|
|
162
177
|
"test:e2e:spreadsheet-go-to:check": "a3s-test check tests/e2e/spreadsheet-go-to.acl --json",
|
|
163
178
|
"test:e2e:spreadsheet-data-validation": "a3s-test run tests/e2e/spreadsheet-data-validation.acl --json",
|
|
@@ -180,6 +195,24 @@
|
|
|
180
195
|
"test:e2e:spreadsheet-large:check": "a3s-test check tests/e2e/spreadsheet-large-controlled-editing.acl --json",
|
|
181
196
|
"test:e2e:writer-shortcuts": "a3s-test run tests/e2e/word-wps-shortcuts.acl --json",
|
|
182
197
|
"test:e2e:writer-shortcuts:check": "a3s-test check tests/e2e/word-wps-shortcuts.acl --json",
|
|
198
|
+
"test:e2e:writer-emphasis": "A3S_TEST_SUITE=tests/e2e/word-emphasis.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
199
|
+
"test:e2e:writer-emphasis:check": "a3s-test check tests/e2e/word-emphasis.acl --json",
|
|
200
|
+
"test:e2e:writer-hidden-text": "A3S_TEST_SUITE=tests/e2e/word-hidden-text.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
201
|
+
"test:e2e:writer-hidden-text:check": "a3s-test check tests/e2e/word-hidden-text.acl --json",
|
|
202
|
+
"test:e2e:writer-legacy-text-effects": "A3S_TEST_SUITE=tests/e2e/word-legacy-text-effects.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
203
|
+
"test:e2e:writer-legacy-text-effects:check": "a3s-test check tests/e2e/word-legacy-text-effects.acl --json",
|
|
204
|
+
"test:e2e:writer-kerning": "A3S_TEST_SUITE=tests/e2e/word-kerning.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
205
|
+
"test:e2e:writer-kerning:check": "a3s-test check tests/e2e/word-kerning.acl --json",
|
|
206
|
+
"test:e2e:writer-character-scale": "A3S_TEST_SUITE=tests/e2e/word-character-scale.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
207
|
+
"test:e2e:writer-character-scale:check": "a3s-test check tests/e2e/word-character-scale.acl --json",
|
|
208
|
+
"test:e2e:writer-character-position": "A3S_TEST_SUITE=tests/e2e/word-character-position.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
209
|
+
"test:e2e:writer-character-position:check": "a3s-test check tests/e2e/word-character-position.acl --json",
|
|
210
|
+
"test:e2e:writer-character-spacing": "A3S_TEST_SUITE=tests/e2e/word-character-spacing.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
211
|
+
"test:e2e:writer-character-spacing:check": "a3s-test check tests/e2e/word-character-spacing.acl --json",
|
|
212
|
+
"test:e2e:writer-script-fonts": "A3S_TEST_SUITE=tests/e2e/word-script-fonts.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
213
|
+
"test:e2e:writer-script-fonts:check": "a3s-test check tests/e2e/word-script-fonts.acl --json",
|
|
214
|
+
"test:e2e:writer-strike": "A3S_TEST_SUITE=tests/e2e/word-strike-styles.acl bash scripts/run-a3s-test-web-gate.sh",
|
|
215
|
+
"test:e2e:writer-strike:check": "a3s-test check tests/e2e/word-strike-styles.acl --json",
|
|
183
216
|
"test:e2e:writer-layout": "a3s-test run tests/e2e/word-insert-page-layout.acl --json",
|
|
184
217
|
"test:e2e:writer-layout:check": "a3s-test check tests/e2e/word-insert-page-layout.acl --json",
|
|
185
218
|
"test:e2e:writer-review-view": "a3s-test run tests/e2e/word-review-view.acl --json",
|
|
@@ -214,6 +247,7 @@
|
|
|
214
247
|
"@tiptap/extension-image": "3.28.0",
|
|
215
248
|
"@tiptap/extension-list": "3.28.0",
|
|
216
249
|
"@tiptap/extension-placeholder": "3.28.0",
|
|
250
|
+
"@tiptap/extension-strike": "3.28.0",
|
|
217
251
|
"@tiptap/extension-subscript": "3.28.0",
|
|
218
252
|
"@tiptap/extension-superscript": "3.28.0",
|
|
219
253
|
"@tiptap/extension-table": "3.28.0",
|