windmill-components 1.501.23 → 1.501.24

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.
@@ -35,7 +35,7 @@ function switchResourceIsFile() {
35
35
  }
36
36
  };
37
37
  }
38
- onSchemaChange?.({ schema });
38
+ onSchemaChange?.({ schema: $state.snapshot(schema) });
39
39
  }
40
40
  let suggestedFileExtensions = $state([
41
41
  'json',
@@ -63,7 +63,7 @@ let suggestedFileExtensions = $state([
63
63
  <AddPropertyV2
64
64
  bind:schema
65
65
  bind:this={addPropertyComponent}
66
- on:change={() => onSchemaChange?.({ schema })}
66
+ on:change={() => onSchemaChange?.({ schema: $state.snapshot(schema) })}
67
67
  on:addNew={(e) => {
68
68
  editableSchemaForm?.openField(e.detail)
69
69
  }}
@@ -81,7 +81,7 @@ let suggestedFileExtensions = $state([
81
81
  onlyMaskPassword
82
82
  bind:this={editableSchemaForm}
83
83
  bind:schema
84
- on:change={() => onSchemaChange?.({ schema })}
84
+ on:change={() => onSchemaChange?.({ schema: $state.snapshot(schema) })}
85
85
  isFlowInput
86
86
  on:edit={(e) => {
87
87
  addPropertyComponent?.openDrawer(e.detail)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.501.23",
3
+ "version": "1.501.24",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",