@simple-table/svelte 4.1.1 → 4.1.2

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  [![GitHub stars](https://img.shields.io/github/stars/petera2c/simple-table.svg)](https://github.com/petera2c/simple-table)
6
6
  [![License](https://img.shields.io/npm/l/@simple-table/svelte.svg)](LICENSE)
7
7
 
8
- **Simple Table** is the Svelte data grid and Svelte table component for fast UIs: Svelte 4+, reactive components, idiomatic templates, and full Svelte component support for cell renderers, headers, and footers. It is a **lightweight**, **high-performance** data grid with a **simple API**, **completely free features** for qualifying use, and strong TypeScript typings for data-heavy Svelte apps.
8
+ **Simple Table** is the Svelte data grid and Svelte table component for fast UIs: Svelte 5+, reactive components, idiomatic templates, and full Svelte component support for cell renderers, headers, and footers. It is a **lightweight**, **high-performance** data grid with a **simple API**, **completely free features** for qualifying use, and strong TypeScript typings for data-heavy Svelte apps.
9
9
 
10
10
  <div align="center">
11
11
  <img src="https://github.com/petera2c/simple-table-marketing/blob/main/src/assets/infrastructure-light.png?raw=true" alt="Simple Table Infrastructure Dashboard" width="800" />
@@ -30,13 +30,13 @@ Simple Table is available for the most popular frameworks:
30
30
  npm install @simple-table/svelte
31
31
  ```
32
32
 
33
- **Peer dependencies:** `svelte >=4.0.0` (Svelte 5 with runes is fully supported, plus SvelteKit)
33
+ **Peer dependencies:** `svelte >=5.0.0` (runes + SvelteKit supported)
34
34
 
35
35
  **[Follow our Quick Start Guide](https://www.simple-table.com/docs/quick-start)** for step-by-step instructions and live examples.
36
36
 
37
37
  ## Building with Svelte
38
38
 
39
- - Works with Svelte 4 and Svelte 5 (runes); SvelteKit is fully supported
39
+ - Works with Svelte 5 (runes); SvelteKit is fully supported
40
40
  - Use Svelte components for cell renderers, header renderers, footer renderers, and more
41
41
  - Access the imperative `TableAPI` via `bind:this` for sorting, filtering, pagination, export, and more
42
42
  - Types and APIs are exported from this package
@@ -0,0 +1,22 @@
1
+ import type { Component } from "svelte";
2
+ import type { TableAPI } from "simple-table-core";
3
+ import type { SimpleTableSvelteProps, SvelteDefaultRowData } from "./types";
4
+
5
+ /** Instance exports available via `bind:this` on `<SimpleTable>`. */
6
+ export type SimpleTableExports<
7
+ TData extends SvelteDefaultRowData = SvelteDefaultRowData,
8
+ > = {
9
+ getAPI: () => TableAPI<TData> | null;
10
+ };
11
+
12
+ /**
13
+ * Declaration for the precompiled SimpleTable Svelte component.
14
+ * Copied into dist/types so published `index.d.ts` can resolve
15
+ * `export … from "./SimpleTable.svelte"`.
16
+ */
17
+ declare const SimpleTable: Component<
18
+ SimpleTableSvelteProps,
19
+ SimpleTableExports
20
+ >;
21
+
22
+ export default SimpleTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-table/svelte",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -29,10 +29,10 @@
29
29
  "styles.css.d.ts"
30
30
  ],
31
31
  "peerDependencies": {
32
- "svelte": ">=4.0.0"
32
+ "svelte": ">=5.0.0"
33
33
  },
34
34
  "dependencies": {
35
- "simple-table-core": "4.1.1"
35
+ "simple-table-core": "4.1.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@rollup/plugin-alias": "4.0.0",
@@ -96,7 +96,8 @@
96
96
  "build": "rollup -c",
97
97
  "preview": "rollup -c -w",
98
98
  "typecheck": "tsc -p tsconfig.json --noEmit",
99
- "test": "vitest run",
99
+ "test": "vitest run --exclude src/__tests__/consumerTypes.test.ts",
100
+ "test:consumer": "vitest run src/__tests__/consumerTypes.test.ts",
100
101
  "version:patch": "npm version patch && git push && git push --tags",
101
102
  "version:minor": "npm version minor && git push && git push --tags",
102
103
  "version:major": "npm version major && git push && git push --tags"