@streamscloud/kit 0.2.41-1778520520573 → 0.2.41-1778527549952

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.
@@ -7,7 +7,7 @@ import { TableColumnsManagerLocalization } from './table-columns-manager-localiz
7
7
  import IconChevronDown from '@fluentui/svg-icons/icons/chevron_down_20_regular.svg?raw';
8
8
  import IconColumnTwo from '@fluentui/svg-icons/icons/text_column_two_20_regular.svg?raw';
9
9
  import { untrack } from 'svelte';
10
- let { model, localStorageKey, trackModelChange, on } = $props();
10
+ let { model, localStorageKey, on } = $props();
11
11
  const localization = new TableColumnsManagerLocalization();
12
12
  const storage = $derived(localStorageKey ? LocalStorageItem.of(localStorageKey) : null);
13
13
  const hideableColumns = $derived(model.columns.filter((c) => c.hideable));
@@ -19,19 +19,6 @@ const items = $derived(hideableColumns.map((col) => ({
19
19
  // Load from localStorage once columns are available
20
20
  let initialized = false;
21
21
  $effect(() => {
22
- if (trackModelChange && storage) {
23
- const saved = storage.get();
24
- if (!saved || !Array.isArray(saved)) {
25
- return;
26
- }
27
- untrack(() => {
28
- if (!hideableColumns.length) {
29
- return;
30
- }
31
- applyConfig(saved);
32
- });
33
- return;
34
- }
35
22
  const columns = hideableColumns;
36
23
  if (!storage || columns.length === 0 || initialized) {
37
24
  return;
@@ -7,7 +7,6 @@ declare function $$render<T extends {
7
7
  model: TableModel<T>;
8
8
  /** localStorage key for persisting column order and visibility */
9
9
  localStorageKey?: string;
10
- trackModelChange?: boolean;
11
10
  on?: {
12
11
  change?: (config: ColumnsConfig) => void;
13
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.2.41-1778520520573",
3
+ "version": "0.2.41-1778527549952",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",