@fileverse-dev/dsheet 3.0.2 → 4.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 (53) hide show
  1. package/README.md +1 -0
  2. package/dist/{constants-Q8nzbvQO.js → constants-Cdz6oSCq.js} +3 -5
  3. package/dist/constants.js +1 -1
  4. package/dist/editor/components/editor-workbook-sync.d.ts +1 -1
  5. package/dist/editor/constants/shared-constants.d.ts +0 -2
  6. package/dist/editor/contexts/editor-context.d.ts +4 -0
  7. package/dist/editor/dsheet-editor.d.ts +1 -1
  8. package/dist/editor/hooks/use-celldata-compaction.d.ts +23 -0
  9. package/dist/editor/hooks/use-editor-sync.d.ts +2 -0
  10. package/dist/editor/hooks/use-xlsx-import-impl.d.ts +2 -1
  11. package/dist/editor/hooks/use-xlsx-import.d.ts +2 -1
  12. package/dist/editor/types.d.ts +8 -0
  13. package/dist/editor/utils/apply-comment-markers.d.ts +22 -0
  14. package/dist/editor/utils/compact-committed-celldata.d.ts +28 -0
  15. package/dist/editor/utils/config-ydoc-update.d.ts +20 -0
  16. package/dist/editor/utils/update-ydoc.d.ts +13 -3
  17. package/dist/executeStringFunction-BQvE7aeV.js +32649 -0
  18. package/dist/formula.js +1 -1
  19. package/dist/{index-Dql-IRPC.js → index-DXAPKKPH.js} +21803 -24474
  20. package/dist/index.es.js +37 -37
  21. package/dist/persistence-utils-DsM_MOB1.js +89 -0
  22. package/dist/persistence-utils.d.ts +17 -0
  23. package/dist/persistence.d.ts +12 -0
  24. package/dist/persistence.js +118 -0
  25. package/dist/sheet-engine/core/api/cell.d.ts +0 -20
  26. package/dist/sheet-engine/core/api/common.d.ts +2 -1
  27. package/dist/sheet-engine/core/api/index.d.ts +1 -0
  28. package/dist/sheet-engine/core/api/sheet-flowdata-lifecycle.d.ts +17 -0
  29. package/dist/sheet-engine/core/api/sheet.d.ts +5 -0
  30. package/dist/sheet-engine/core/index.d.ts +1 -1
  31. package/dist/sheet-engine/core/modules/formula-worker-bridge.d.ts +1 -0
  32. package/dist/sheet-engine/core/modules/image-clipboard.d.ts +8 -0
  33. package/dist/sheet-engine/core/modules/image.d.ts +12 -1
  34. package/dist/sheet-engine/core/modules/index.d.ts +1 -1
  35. package/dist/sheet-engine/core/modules/sheet-metadata-hooks.d.ts +4 -0
  36. package/dist/sheet-engine/core/modules/sheet.d.ts +17 -1
  37. package/dist/sheet-engine/core/paste/paste-border-utils.d.ts +23 -0
  38. package/dist/sheet-engine/core/settings.d.ts +1 -1
  39. package/dist/sheet-engine/core/types.d.ts +5 -0
  40. package/dist/sheet-engine/core/utils/active-draft-context.d.ts +4 -0
  41. package/dist/sheet-engine/core/utils/border-config-utils.d.ts +16 -0
  42. package/dist/sheet-engine/core/utils/cell-persist-utils.d.ts +10 -0
  43. package/dist/sheet-engine/core/utils/merge-hydrate.d.ts +15 -0
  44. package/dist/sheet-engine/core/utils/mirror-cell-format-ranges.d.ts +17 -0
  45. package/dist/sheet-engine/core/utils/range-format.d.ts +76 -0
  46. package/dist/sheet-engine/core/utils/ydoc-celldata-changes.d.ts +46 -0
  47. package/dist/sheet-engine/react/components/Workbook/api.d.ts +8 -1
  48. package/dist/sheet-engine/react/components/Workbook/index.d.ts +5 -1
  49. package/dist/use-xlsx-import-impl-Co5o4fzr.js +1572 -0
  50. package/dist/{xlsx-export-impl-DfQuhamE.js → xlsx-export-impl-DPocoovL.js} +1210 -1198
  51. package/package.json +17 -7
  52. package/dist/executeStringFunction-C5hEkx9z.js +0 -27694
  53. package/dist/use-xlsx-import-impl-BsL90Hs0.js +0 -1537
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "3.0.2",
5
+ "version": "4.0.0",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -21,6 +21,11 @@
21
21
  "types": "./dist/formula.d.ts",
22
22
  "default": "./dist/formula.js"
23
23
  },
24
+ "./persistence": {
25
+ "import": "./dist/persistence.js",
26
+ "types": "./dist/persistence.d.ts",
27
+ "default": "./dist/persistence.js"
28
+ },
24
29
  "./styles": "./dist/style.css",
25
30
  "./types": "./dist/editor/types.d.ts"
26
31
  },
@@ -37,7 +42,8 @@
37
42
  "build:dist": "vite build",
38
43
  "dev:link": "npm run build:dist && cp -r dist/* ../dsheets.new/node_modules/@fileverse-dev/dsheet/dist/ && echo '✓ Copied to dsheets.new'",
39
44
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
40
- "preview": "vite preview"
45
+ "preview": "vite preview",
46
+ "test:unit": "vitest run"
41
47
  },
42
48
  "lint-staged": {
43
49
  "**/*.{js,jsx,ts,tsx}": [
@@ -76,13 +82,15 @@
76
82
  "tailwindcss-animate": "^1.0.7",
77
83
  "tiny-emitter": "^2.1.0",
78
84
  "uuid": "^8.3.2",
85
+ "viem": "^2.35.0",
79
86
  "vite-plugin-dts": "^3.6.3",
80
87
  "xlsx": "^0.18.5",
81
88
  "xlsx-js-style": "^1.2.0",
82
89
  "y-indexeddb": "^9.0.12",
83
- "y-protocols": "^1.0.6",
84
- "yjs": "^13.6.15",
85
- "viem": "^2.35.0"
90
+ "y-protocols": "^1.0.6"
91
+ },
92
+ "peerDependencies": {
93
+ "yjs": ">=13.6.30 <14"
86
94
  },
87
95
  "devDependencies": {
88
96
  "@types/lodash": "^4.17.23",
@@ -110,6 +118,8 @@
110
118
  "sass": "^1.77.2",
111
119
  "tailwindcss": "^3.4.3",
112
120
  "typescript": "^5.2.2",
113
- "vite": "^5.0.0"
121
+ "vite": "^5.0.0",
122
+ "vitest": "^3.2.4",
123
+ "yjs": "13.6.30"
114
124
  }
115
- }
125
+ }