@sveltia/ui 0.88.2 → 0.88.3

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.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
3
3
  */
4
- export const UI_VERSION: "0.88.2";
4
+ export const UI_VERSION: "0.88.3";
@@ -3,4 +3,4 @@
3
3
  /**
4
4
  * Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
5
5
  */
6
- export const UI_VERSION = '0.88.2';
6
+ export const UI_VERSION = '0.88.3';
@@ -117,6 +117,17 @@
117
117
  }
118
118
  };
119
119
 
120
+ // Kept out of the effect: in SSR output, esrap moves the comments of the dropped effect onto
121
+ // the next node, where this cast comment wraps a shorthand prop in parentheses, which is invalid
122
+ /**
123
+ * Give the list first refusal on the keys it drives. Anything it doesn’t take is left to the
124
+ * field, and the `keyup` listener below picks up wherever the caret ends up.
125
+ * @param {Event} event `keydown` event.
126
+ */
127
+ const onKeyDown = (event) => {
128
+ list?.handleKeyDown(/** @type {KeyboardEvent} */ (event));
129
+ };
130
+
120
131
  $effect(() => {
121
132
  if (!element || !list) {
122
133
  return undefined;
@@ -131,15 +142,6 @@
131
142
  list?.update(findTrigger());
132
143
  };
133
144
 
134
- /**
135
- * Give the list first refusal on the keys it drives. Anything it doesn’t take is left to the
136
- * field, and the `keyup` listener below picks up wherever the caret ends up.
137
- * @param {Event} event `keydown` event.
138
- */
139
- const onKeyDown = (event) => {
140
- list?.handleKeyDown(/** @type {KeyboardEvent} */ (event));
141
- };
142
-
143
145
  /**
144
146
  * Close the list when the field loses the focus.
145
147
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.88.2",
3
+ "version": "0.88.3",
4
4
  "description": "A collection of Svelte components and utilities for building user interfaces.",
5
5
  "repository": {
6
6
  "type": "git",