dsh-quote-followup 0.2.9 → 0.2.10

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.
Files changed (2) hide show
  1. package/lib/client.js +9 -3
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -37,7 +37,7 @@ window.__ModuleLoader__.load({
37
37
  ];
38
38
  const BUTTON_ID = "dsh-quote-followup-btn";
39
39
  const BUTTON_VERSION_ATTR = "data-dsh-quote-followup-version";
40
- const CLIENT_VERSION = "0.2.9";
40
+ const CLIENT_VERSION = "0.2.10";
41
41
  /** Shared <style> element; versioned like the button so hot-swaps replace it. */
42
42
  const STYLE_ID = "dsh-quote-followup-style";
43
43
  const STYLE_VERSION_ATTR = "data-dsh-quote-followup-style-version";
@@ -297,8 +297,14 @@ window.__ModuleLoader__.load({
297
297
  const inserted = input.insertReference(quoteInsert(payload, t), {
298
298
  start: at, end: at, draftRev: current.draftRev
299
299
  });
300
- if (inserted)
301
- element.focus();
300
+ if (inserted) {
301
+ // DOM focus can move a Lexical caret to the start. The session
302
+ // facade restores the selection left after the inserted chip.
303
+ if (typeof input.focus === "function")
304
+ input.focus();
305
+ else
306
+ element.focus();
307
+ }
302
308
  return inserted ? true : null;
303
309
  } catch (error) {
304
310
  console.warn("[dsh-quote-followup] scoped reference insertion failed", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-quote-followup",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Quote selected Web conversation text into the DeepSeek Harness composer for targeted follow-up turns.",
5
5
  "keywords": [
6
6
  "dsh",