@sheetwrite/svelte 0.7.0 → 0.7.1
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 +10 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,6 +32,12 @@ import "@sheetwrite/svelte/styles.css";
|
|
|
32
32
|
|
|
33
33
|
WASM initializes on client mount. Use `fallback` while loading, `onInitializationError` for failures, and `wasmSource` for an explicit source.
|
|
34
34
|
|
|
35
|
+
## New in 0.7.0
|
|
36
|
+
|
|
37
|
+
- Install add-ons once with `initSheetwrite({ addons: [...] })` from `@sheetwrite/core` before the component mounts. The `addons` prop gives one grid its own add-on settings, such as `addons={{ queries: { fetchSource } }}`. See [Add-on registration](https://www.sheetwrite.dev/docs/start/upgrade-to-0-7-0/#add-on-registration).
|
|
38
|
+
- Enable the Keyboard shortcuts panel with `config={{ keyboardSettings: true }}`, and store the user's keys from `onKeyBindingsChange`. The compact ribbon is `config={{ ribbon: { mode: "compact" } }}`.
|
|
39
|
+
- Sort moves the cells; `grid.setViewSort` is the display-only sort. Columns without a `type` use the new `general` type. See the [0.7.0 release notes](https://www.sheetwrite.dev/docs/releases/0.7.0/) and the [upgrade guide](https://www.sheetwrite.dev/docs/start/upgrade-to-0-7-0/).
|
|
40
|
+
|
|
35
41
|
## New in 0.6.0
|
|
36
42
|
|
|
37
43
|
- Enable the opt-in ribbon with `config={{ ribbon: true }}`. It loads only when requested. See [Toolbar and ribbon](https://www.sheetwrite.dev/docs/features/grid/toolbar-and-ribbon/).
|
|
@@ -55,9 +61,9 @@ The bindable `grid` is published before
|
|
|
55
61
|
`onReady({ grid, generation, reason })` and clears during replacement or
|
|
56
62
|
unmount. Reset-bound inputs are `workbook`, `data`, `datasource`,
|
|
57
63
|
`datasourceStorage`, `presentation`, `editors`, `protectionResolver`,
|
|
58
|
-
`mutationPolicy`, `transactionResourceLimits`, `
|
|
59
|
-
`renderers`; `theme`, `readOnly`, `config`,
|
|
60
|
-
live.
|
|
64
|
+
`mutationPolicy`, `transactionResourceLimits`, `hyperlinkActivation`, `addons`,
|
|
65
|
+
`renderer`, `workerUrl`, and `renderers`; `theme`, `readOnly`, `config`,
|
|
66
|
+
`overscan`, and `minColumns` update live.
|
|
61
67
|
|
|
62
68
|
Readiness observes the latest committed live options, including changes while
|
|
63
69
|
WASM initialization is pending. A throwing ready callback retires the new Grid;
|
|
@@ -65,7 +71,7 @@ consumer errors are not initialization failures. Omitted `renderer` and
|
|
|
65
71
|
`"canvas"` are equivalent. Changing an explicit `wasmSource` after readiness
|
|
66
72
|
preserves the Grid and retains the loader's first-source warning.
|
|
67
73
|
|
|
68
|
-
Grid callbacks are `onGridChange`, `onViewportChange`, `onSelectionChange`, `onEditBegin`, `onEditCommit`, `onSearch`, `onCommandStateChange`, `onActiveSheetChange`, `onMutationRejected`, `onRendererFallback`, `onDatasourceError`, and `
|
|
74
|
+
Grid callbacks are `onGridChange`, `onRowDelta`, `onViewportChange`, `onSelectionChange`, `onEditBegin`, `onEditCommit`, `onSearch`, `onCommandStateChange`, `onActiveSheetChange`, `onMutationRejected`, `onRendererFallback`, `onDatasourceError`, `onExportError`, and `onKeyBindingsChange`.
|
|
69
75
|
|
|
70
76
|
For vanilla/preload control, use `initSheetwrite()` and `createGrid()` from `@sheetwrite/core`. See [installation](https://www.sheetwrite.dev/docs/start/installation/), [Svelte tutorial](https://www.sheetwrite.dev/docs/tutorials/excel-in-svelte/), and [collaboration](https://www.sheetwrite.dev/docs/features/collaboration/).
|
|
71
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetwrite/svelte",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Svelte adapter for Sheetwrite.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"svelte": ">=5"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@sheetwrite/core": "0.7.
|
|
62
|
+
"@sheetwrite/core": "0.7.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"svelte-check": "4.7.3",
|