@budibase/bbui 2.13.52 → 2.14.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/bbui",
3
3
  "description": "A UI solution used in the different Budibase projects.",
4
- "version": "2.13.52",
4
+ "version": "2.14.0",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -36,8 +36,8 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
39
- "@budibase/shared-core": "2.13.52",
40
- "@budibase/string-templates": "2.13.52",
39
+ "@budibase/shared-core": "2.14.0",
40
+ "@budibase/string-templates": "2.14.0",
41
41
  "@spectrum-css/accordion": "3.0.24",
42
42
  "@spectrum-css/actionbutton": "1.0.1",
43
43
  "@spectrum-css/actiongroup": "1.0.1",
@@ -104,5 +104,5 @@
104
104
  }
105
105
  }
106
106
  },
107
- "gitHead": "7afc8a9d0ca42fdb13b6146f7bb93ecf18023d15"
107
+ "gitHead": "099b1b7ffa7a54a523f212f79adac1d03e805daa"
108
108
  }
@@ -19,7 +19,7 @@
19
19
  // Ensure the value is updated if the value prop changes outside the editor's
20
20
  // control
21
21
  $: checkValue(value)
22
- $: mde?.codemirror.on("change", debouncedUpdate)
22
+ $: mde?.codemirror.on("blur", update)
23
23
  $: if (readonly || disabled) {
24
24
  mde?.togglePreview()
25
25
  }
@@ -30,21 +30,10 @@
30
30
  }
31
31
  }
32
32
 
33
- const debounce = (fn, interval) => {
34
- let timeout
35
- return () => {
36
- clearTimeout(timeout)
37
- timeout = setTimeout(fn, interval)
38
- }
39
- }
40
-
41
33
  const update = () => {
42
34
  latestValue = mde.value()
43
35
  dispatch("change", latestValue)
44
36
  }
45
-
46
- // Debounce the update function to avoid spamming it constantly
47
- const debouncedUpdate = debounce(update, 250)
48
37
  </script>
49
38
 
50
39
  {#key height}