@univerjs/core 0.1.1 → 0.1.3

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 (44) hide show
  1. package/README.md +22 -2
  2. package/lib/cjs/index.js +8 -6
  3. package/lib/es/index.js +2262 -1685
  4. package/lib/types/common/__tests__/array.spec.d.ts +16 -0
  5. package/lib/types/common/array.d.ts +8 -0
  6. package/lib/types/common/interceptor.d.ts +1 -1
  7. package/lib/types/docs/data-model/__tests__/replacement.spec.d.ts +16 -0
  8. package/lib/types/docs/data-model/replacement.d.ts +17 -0
  9. package/lib/types/docs/data-model/text-x/text-x.d.ts +3 -3
  10. package/lib/types/index.d.ts +14 -1
  11. package/lib/types/services/command/command.service.d.ts +4 -4
  12. package/lib/types/services/context/context.d.ts +1 -0
  13. package/lib/types/services/instance/instance.service.d.ts +1 -1
  14. package/lib/types/services/locale/locale.service.d.ts +4 -2
  15. package/lib/types/services/log/context.d.ts +18 -0
  16. package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +37 -0
  17. package/lib/types/services/snapshot/__tests__/snapshot-transform.spec.d.ts +16 -0
  18. package/lib/types/services/snapshot/snapshot-server.service.d.ts +57 -0
  19. package/lib/types/services/snapshot/snapshot-transform.d.ts +43 -0
  20. package/lib/types/services/snapshot/snapshot-utils.d.ts +34 -0
  21. package/lib/types/services/undoredo/undoredo.service.d.ts +20 -7
  22. package/lib/types/shared/coder.d.ts +17 -0
  23. package/lib/types/shared/color/color-kit.d.ts +3 -1
  24. package/lib/types/shared/compare.d.ts +1 -0
  25. package/lib/types/shared/debounce.d.ts +18 -0
  26. package/lib/types/shared/generate.d.ts +1 -1
  27. package/lib/types/shared/index.d.ts +2 -1
  28. package/lib/types/shared/locale.d.ts +2 -1
  29. package/lib/types/shared/object-matrix.d.ts +3 -0
  30. package/lib/types/shared/rxjs.d.ts +20 -0
  31. package/lib/types/shared/tools.d.ts +1 -1
  32. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +1 -2
  33. package/lib/types/sheets/__tests__/worksheet.spec.d.ts +16 -0
  34. package/lib/types/sheets/row-manager.d.ts +0 -2
  35. package/lib/types/sheets/workbook.d.ts +1 -0
  36. package/lib/types/sheets/worksheet.d.ts +29 -9
  37. package/lib/types/types/interfaces/i-cell-data.d.ts +6 -0
  38. package/lib/types/types/interfaces/i-column-data.d.ts +2 -2
  39. package/lib/types/types/interfaces/i-document-data.d.ts +3 -2
  40. package/lib/types/types/interfaces/i-range.d.ts +5 -0
  41. package/lib/types/types/interfaces/i-row-data.d.ts +2 -2
  42. package/lib/types/types/interfaces/i-selection-data.d.ts +6 -0
  43. package/lib/umd/index.js +8 -6
  44. package/package.json +8 -6
package/README.md CHANGED
@@ -5,12 +5,32 @@
5
5
 
6
6
  ## Introduction
7
7
 
8
- > Core library for Univer.
8
+ `@univerjs/core` as its name shows, is the core package of Univer, and provides foundational capabilities including:
9
+
10
+ * Provision of the Univer type, which serves as the entry point for applications and a mounting point for other plugins, as well as the UniverDoc and UniverSheet types for managing different document types
11
+ * Basic models for each document type
12
+ * Definition or implementation of several fundamental services, such as:
13
+ * Permission control
14
+ * Command system
15
+ * Undo/Redo
16
+ * Configuration system
17
+ * Logging system
18
+ * Context system
19
+ * Lifecycle
20
+ * Local storage
21
+ * Internationalization
22
+ * Resource management
23
+
24
+ For more information about `@univerjs/core`'s API, please refer to the API documentation.
9
25
 
10
26
  ## Usage
11
27
 
12
28
  ### Installation
13
29
 
14
30
  ```shell
15
- npm i @univerjs/core
31
+ # Using npm
32
+ npm install @univerjs/core
33
+
34
+ # Using pnpm
35
+ pnpm add @univerjs/core
16
36
  ```