@coco-vexel/coco-office 0.0.0-stage → 1.0.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 (76) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +120 -2
  3. package/THIRD_PARTY_NOTICES.md +1188 -0
  4. package/dist/excel-worker-browser.cjs +6544 -0
  5. package/dist/excel-worker-browser.cjs.map +1 -0
  6. package/dist/excel-worker-browser.d.cts +2 -0
  7. package/dist/excel-worker-browser.d.ts +2 -0
  8. package/dist/excel-worker-browser.js +6523 -0
  9. package/dist/excel-worker-browser.js.map +1 -0
  10. package/dist/excel-worker.cjs +6547 -0
  11. package/dist/excel-worker.cjs.map +1 -0
  12. package/dist/excel-worker.d.cts +2 -0
  13. package/dist/excel-worker.d.ts +2 -0
  14. package/dist/excel-worker.js +6526 -0
  15. package/dist/excel-worker.js.map +1 -0
  16. package/dist/excel.cjs +12523 -0
  17. package/dist/excel.cjs.map +1 -0
  18. package/dist/excel.d.cts +2252 -0
  19. package/dist/excel.d.ts +2252 -0
  20. package/dist/excel.js +12368 -0
  21. package/dist/excel.js.map +1 -0
  22. package/dist/index.cjs +19 -0
  23. package/dist/index.cjs.map +1 -0
  24. package/dist/index.d.cts +2 -0
  25. package/dist/index.d.ts +2 -0
  26. package/dist/index.js +1 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/kernel-worker-browser.cjs +12304 -0
  29. package/dist/kernel-worker-browser.cjs.map +1 -0
  30. package/dist/kernel-worker-browser.d.cts +2 -0
  31. package/dist/kernel-worker-browser.d.ts +2 -0
  32. package/dist/kernel-worker-browser.js +12283 -0
  33. package/dist/kernel-worker-browser.js.map +1 -0
  34. package/dist/kernel-worker.cjs +12309 -0
  35. package/dist/kernel-worker.cjs.map +1 -0
  36. package/dist/kernel-worker.d.cts +2 -0
  37. package/dist/kernel-worker.d.ts +2 -0
  38. package/dist/kernel-worker.js +12288 -0
  39. package/dist/kernel-worker.js.map +1 -0
  40. package/dist/pack.cjs +459 -0
  41. package/dist/pack.cjs.map +1 -0
  42. package/dist/pack.d.cts +119 -0
  43. package/dist/pack.d.ts +119 -0
  44. package/dist/pack.js +408 -0
  45. package/dist/pack.js.map +1 -0
  46. package/dist/ppt.cjs +7427 -0
  47. package/dist/ppt.cjs.map +1 -0
  48. package/dist/ppt.d.cts +1432 -0
  49. package/dist/ppt.d.ts +1432 -0
  50. package/dist/ppt.js +7355 -0
  51. package/dist/ppt.js.map +1 -0
  52. package/dist/shared.cjs +105 -0
  53. package/dist/shared.cjs.map +1 -0
  54. package/dist/shared.d.cts +31 -0
  55. package/dist/shared.d.ts +31 -0
  56. package/dist/shared.js +81 -0
  57. package/dist/shared.js.map +1 -0
  58. package/dist/types-BVkkdcfh.d.cts +54 -0
  59. package/dist/types-BVkkdcfh.d.ts +54 -0
  60. package/dist/types-C2vQfM-b.d.cts +102 -0
  61. package/dist/types-C2vQfM-b.d.ts +102 -0
  62. package/dist/view-DAkeR0RW.d.ts +1199 -0
  63. package/dist/view-DX2YAG5A.d.cts +1199 -0
  64. package/dist/word-view.cjs +1824 -0
  65. package/dist/word-view.cjs.map +1 -0
  66. package/dist/word-view.d.cts +2 -0
  67. package/dist/word-view.d.ts +2 -0
  68. package/dist/word-view.js +1791 -0
  69. package/dist/word-view.js.map +1 -0
  70. package/dist/word.cjs +14106 -0
  71. package/dist/word.cjs.map +1 -0
  72. package/dist/word.d.cts +3042 -0
  73. package/dist/word.d.ts +3042 -0
  74. package/dist/word.js +14011 -0
  75. package/dist/word.js.map +1 -0
  76. package/package.json +103 -3
package/package.json CHANGED
@@ -1,6 +1,106 @@
1
1
  {
2
2
  "name": "@coco-vexel/coco-office",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "license": "Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/coco-vexel/coco-office.git",
8
+ "directory": "packages/core"
9
+ },
10
+ "homepage": "https://github.com/coco-vexel/coco-office/tree/main/docs/core",
11
+ "bugs": {
12
+ "url": "https://github.com/coco-vexel/coco-office/issues"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "description": "CocoOffice — XML / OOXML 文档操作底座(Word / Excel / PPT)",
18
+ "type": "module",
19
+ "main": "./dist/index.cjs",
20
+ "module": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js",
26
+ "require": "./dist/index.cjs"
27
+ },
28
+ "./pack": {
29
+ "types": "./dist/pack.d.ts",
30
+ "import": "./dist/pack.js",
31
+ "require": "./dist/pack.cjs"
32
+ },
33
+ "./shared": {
34
+ "types": "./dist/shared.d.ts",
35
+ "import": "./dist/shared.js",
36
+ "require": "./dist/shared.cjs"
37
+ },
38
+ "./word": {
39
+ "types": "./dist/word.d.ts",
40
+ "import": "./dist/word.js",
41
+ "require": "./dist/word.cjs"
42
+ },
43
+ "./word-view": {
44
+ "types": "./dist/word-view.d.ts",
45
+ "import": "./dist/word-view.js",
46
+ "require": "./dist/word-view.cjs"
47
+ },
48
+ "./excel": {
49
+ "types": "./dist/excel.d.ts",
50
+ "import": "./dist/excel.js",
51
+ "require": "./dist/excel.cjs"
52
+ },
53
+ "./ppt": {
54
+ "types": "./dist/ppt.d.ts",
55
+ "import": "./dist/ppt.js",
56
+ "require": "./dist/ppt.cjs"
57
+ },
58
+ "./excel-worker": {
59
+ "types": "./dist/excel-worker.d.ts",
60
+ "import": "./dist/excel-worker.js",
61
+ "require": "./dist/excel-worker.cjs"
62
+ },
63
+ "./excel-worker-browser": {
64
+ "types": "./dist/excel-worker-browser.d.ts",
65
+ "import": "./dist/excel-worker-browser.js",
66
+ "require": "./dist/excel-worker-browser.cjs"
67
+ },
68
+ "./kernel-worker": {
69
+ "types": "./dist/kernel-worker.d.ts",
70
+ "import": "./dist/kernel-worker.js",
71
+ "require": "./dist/kernel-worker.cjs"
72
+ },
73
+ "./kernel-worker-browser": {
74
+ "types": "./dist/kernel-worker-browser.d.ts",
75
+ "import": "./dist/kernel-worker-browser.js",
76
+ "require": "./dist/kernel-worker-browser.cjs"
77
+ },
78
+ "./package.json": "./package.json"
79
+ },
80
+ "sideEffects": false,
81
+ "files": [
82
+ "dist",
83
+ "LICENSE",
84
+ "THIRD_PARTY_NOTICES.md"
85
+ ],
86
+ "dependencies": {
87
+ "fontoxpath": "^3.34.0",
88
+ "jszip": "^3.10.1",
89
+ "slimdom": "^4.3.5"
90
+ },
91
+ "devDependencies": {
92
+ "@types/node": "^25.6.0"
93
+ },
94
+ "scripts": {
95
+ "build": "tsup",
96
+ "test:ci": "vitest run src/__tests__/smoke.test.ts src/pack/__tests__ src/excel/__tests__/excel-workbook.test.ts src/excel/__tests__/formula-engine.test.ts src/excel/__tests__/address.test.ts src/excel/__tests__/writeback-planner.test.ts src/ppt/__tests__ src/word/__tests__/context-search.test.ts src/word/__tests__/live-object-real-docx.test.ts --no-file-parallelism --reporter=dot",
97
+ "test:all": "vitest run src --no-file-parallelism",
98
+ "report:ppt-fixtures": "node scripts/ppt-fixture-report.mjs",
99
+ "report:formula-coverage": "node scripts/formula-coverage-report.mjs",
100
+ "report:formula-coverage:check": "node scripts/formula-coverage-report.mjs --check --require-formulas ./test-fixtures/excel",
101
+ "fixture:formula-regression": "node scripts/create-formula-regression-fixture.mjs",
102
+ "test:types:excel": "tsc -p test-fixtures/excel-public-api/tsconfig.json --noEmit",
103
+ "test": "vitest run src/__tests__/smoke.test.ts src/pack/__tests__/flat-opc.test.ts src/word/__tests__/context-search.test.ts src/excel/__tests__/address.test.ts src/ppt/__tests__/public-export.test.ts --reporter=dot",
104
+ "lint": "echo 'lint config pending (#3)' && exit 0"
105
+ }
6
106
  }