@ims360/svelte-ivory 0.0.18 → 0.0.20

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.
@@ -8,7 +8,7 @@ export class TableController {
8
8
  results = $derived(treeWalker(this.data, this.expanded));
9
9
  refresh(conf) {
10
10
  let intitalState = {
11
- data: structuredClone(conf.data),
11
+ data: [...(conf.data ?? [])],
12
12
  expanded: this.expanded
13
13
  };
14
14
  for (const plugin of conf.plugins ?? []) {
package/package.json CHANGED
@@ -1,20 +1,14 @@
1
1
  {
2
- "dependencies": {
3
- "@floating-ui/dom": "^1.6.13",
4
- "@lucide/svelte": "^0.503.0",
5
- "@tailwindcss/forms": "^0.5.10",
6
- "@tailwindcss/typography": "^0.5.16",
7
- "dompurify": "^3.2.5",
8
- "marked": "^15.0.11",
9
- "tailwind-merge": "^3.2.0",
10
- "tailwindcss": "^4.0.0"
11
- },
12
2
  "devDependencies": {
13
3
  "@eslint/compat": "^1.2.5",
14
4
  "@eslint/js": "^9.18.0",
5
+ "@floating-ui/dom": "^1.6.13",
6
+ "@lucide/svelte": "^0.503.0",
15
7
  "@sveltejs/adapter-auto": "^4.0.0",
16
8
  "@sveltejs/package": "^2.0.0",
17
9
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
10
+ "@tailwindcss/forms": "^0.5.10",
11
+ "@tailwindcss/typography": "^0.5.16",
18
12
  "@tailwindcss/vite": "^4.1.4",
19
13
  "@testing-library/jest-dom": "^6.6.3",
20
14
  "@testing-library/svelte": "^5.2.4",
@@ -22,17 +16,21 @@
22
16
  "@vitest/browser": "^3.1.1",
23
17
  "@vitest/coverage-v8": "^3.1.1",
24
18
  "@vitest/spy": "^3.1.2",
19
+ "dompurify": "^3.2.5",
25
20
  "eslint": "^9.18.0",
26
21
  "eslint-config-prettier": "^10.0.1",
27
22
  "eslint-plugin-svelte": "^3.0.0",
28
23
  "globals": "^16.0.0",
29
24
  "jsdom": "^26.0.0",
25
+ "marked": "^15.0.11",
30
26
  "playwright": "^1.51.1",
31
27
  "prettier": "^3.4.2",
32
28
  "prettier-plugin-svelte": "^3.3.3",
33
29
  "prettier-plugin-tailwindcss": "^0.6.11",
34
30
  "publint": "^0.3.2",
35
31
  "svelte-check": "^4.0.0",
32
+ "tailwind-merge": "^3.2.0",
33
+ "tailwindcss": "^4.0.0",
36
34
  "typescript": "^5.0.0",
37
35
  "typescript-eslint": "^8.20.0",
38
36
  "vite": "^6.0.0",
@@ -55,14 +53,14 @@
55
53
  "types": "./dist/components/layout/index.d.ts",
56
54
  "svelte": "./dist/components/layout/index.js"
57
55
  },
58
- "./components/toast": {
59
- "types": "./dist/components/toast/index.d.ts",
60
- "svelte": "./dist/components/toast/index.js"
61
- },
62
56
  "./components/table": {
63
57
  "types": "./dist/components/table/index.d.ts",
64
58
  "svelte": "./dist/components/table/index.js"
65
59
  },
60
+ "./components/toast": {
61
+ "types": "./dist/components/toast/index.d.ts",
62
+ "svelte": "./dist/components/toast/index.js"
63
+ },
66
64
  "./utils/actions": {
67
65
  "types": "./dist/utils/actions/index.d.ts",
68
66
  "svelte": "./dist/utils/actions/index.js"
@@ -109,5 +107,5 @@
109
107
  "svelte": "./dist/index.js",
110
108
  "type": "module",
111
109
  "types": "./dist/index.d.ts",
112
- "version": "0.0.18"
110
+ "version": "0.0.20"
113
111
  }
@@ -30,7 +30,7 @@ export class TableController<T extends TableRow<T>> {
30
30
 
31
31
  refresh(conf: TableConfig<T>) {
32
32
  let intitalState: TableState<T> = {
33
- data: structuredClone(conf.data),
33
+ data: [...(conf.data ?? [])],
34
34
  expanded: this.expanded
35
35
  };
36
36