bunnyquery 1.10.1 → 1.10.2

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/bunnyquery.css CHANGED
@@ -1520,6 +1520,26 @@
1520
1520
  text-decoration: none;
1521
1521
  cursor: default;
1522
1522
  }
1523
+ /* An assistant bubble's chips are emitted by renderInlineLinkHtml INSIDE the
1524
+ v-html `.bq-md` block, where `.bq-md a` below (underline at rest, none on
1525
+ hover -- the prose-link convention) is (0,1,1) and outranks .bq-link-button
1526
+ at (0,1,0). So those chips rendered the exact inverse of the rule above:
1527
+ underlined at rest, underline gone under the pointer, while the same chip on
1528
+ a user bubble (outside .bq-md) behaved. Restate the chip rule at a
1529
+ specificity that wins inside .bq-md, the dead chip included. */
1530
+ .bq-md a.bq-link-button { text-decoration: none; }
1531
+ .bq-md a.bq-link-button:hover { text-decoration: underline; }
1532
+ .bq-md a.bq-link-button.is-unavailable:hover { text-decoration: none; }
1533
+ /* The ↗ / ✕ glyph is never underlined, at rest or on hover. Underlines propagate
1534
+ into every in-flow inline descendant and a descendant cannot cancel them, so
1535
+ `text-decoration: none` on the glyph alone does nothing; an atomic inline
1536
+ (inline-block) is exempt, and the spacing is a margin so no decorated space
1537
+ character carries the line up to the glyph. */
1538
+ .bq-link-glyph {
1539
+ display: inline-block;
1540
+ text-decoration: none;
1541
+ margin-right: 0.3em;
1542
+ }
1523
1543
 
1524
1544
  /* ---- inline image previews ----------------------------------------------*/
1525
1545
  /* The anchor IS the preview: picture on top, the ordinary chip underneath as a
package/bunnyquery.js CHANGED
@@ -1330,7 +1330,8 @@ Index the REMAINING windows - one record per row/item, looking at any page image
1330
1330
  if (refreshing) cls.push("is-refreshing");
1331
1331
  if (unavailable) cls.push("is-unavailable");
1332
1332
  if (preview) cls.push("is-image-preview");
1333
- var labelText = (unavailable ? INLINE_LINK_UNAVAILABLE_GLYPH : INLINE_LINK_GLYPH) + " " + link.label + (unavailable ? INLINE_LINK_UNAVAILABLE_SUFFIX : refreshing ? " (fetching...)" : "");
1333
+ var glyphHtml = '<span class="bq-link-glyph" translate="no">' + (unavailable ? INLINE_LINK_UNAVAILABLE_GLYPH : INLINE_LINK_GLYPH) + "</span>";
1334
+ var labelHtml = glyphHtml + escapeInlineHtml(link.label + (unavailable ? INLINE_LINK_UNAVAILABLE_SUFFIX : refreshing ? " (fetching...)" : ""));
1334
1335
  var attrs = ['class="' + cls.join(" ") + '"'];
1335
1336
  if (unavailable) attrs.push('aria-disabled="true"', 'data-bq-unavailable="1"');
1336
1337
  else attrs.push('href="' + escapeInlineHtml(link.href) + '"', 'target="_blank"', 'rel="noopener noreferrer"');
@@ -1341,8 +1342,8 @@ Index the REMAINING windows - one record per row/item, looking at any page image
1341
1342
  if (link.expiredHref) attrs.push('data-bq-expired-href="' + escapeInlineHtml(link.expiredHref) + '"');
1342
1343
  if (link.remotePath) attrs.push('data-bq-remote-path="' + escapeInlineHtml(link.remotePath) + '"');
1343
1344
  if (link.fullLabel) attrs.push('data-bq-full-label="' + escapeInlineHtml(link.fullLabel) + '"');
1344
- if (!preview) return "<a " + attrs.join(" ") + ">" + escapeInlineHtml(labelText) + "</a>";
1345
- return "<a " + attrs.join(" ") + '><img class="bq-img-preview" alt="' + escapeInlineHtml(full) + '" data-bq-img-path="' + escapeInlineHtml(link.remotePath || "") + '" data-bq-img-type="' + escapeInlineHtml(link.image ? link.image.contentType : "") + '" decoding="async"><span class="bq-loader" data-bq-img-loader="1"></span><span class="bq-img-preview-caption" translate="no">' + escapeInlineHtml(labelText) + "</span></a>";
1345
+ if (!preview) return "<a " + attrs.join(" ") + ">" + labelHtml + "</a>";
1346
+ return "<a " + attrs.join(" ") + '><img class="bq-img-preview" alt="' + escapeInlineHtml(full) + '" data-bq-img-path="' + escapeInlineHtml(link.remotePath || "") + '" data-bq-img-type="' + escapeInlineHtml(link.image ? link.image.contentType : "") + '" decoding="async"><span class="bq-loader" data-bq-img-loader="1"></span><span class="bq-img-preview-caption" translate="no">' + labelHtml + "</span></a>";
1346
1347
  }
1347
1348
 
1348
1349
  // src/engine/image_preview.ts
@@ -8238,7 +8239,7 @@ Index the REMAINING windows - one record per row/item, looking at any page image
8238
8239
  (function() {
8239
8240
  var MCP_PROD = "https://mcp.broadwayinc.computer";
8240
8241
  var MCP_DEV = "https://mcp-dev.broadwayinc.computer";
8241
- var BQ_VERSION = "1.10.1" ;
8242
+ var BQ_VERSION = "1.10.2" ;
8242
8243
  var ATTACHMENT_URL_EXPIRES_SECONDS = 600;
8243
8244
  var GOOGLE_AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth";
8244
8245
  var GOOGLE_TOKEN_URL = "https://oauth2.googleapis.com/token";
@@ -10332,8 +10333,7 @@ Index the REMAINING windows - one record per row/item, looking at any page image
10332
10333
  return href;
10333
10334
  }
10334
10335
  function fileToAnchorHtml(filename, href) {
10335
- var text = "\u2197 " + filename;
10336
- return '<a class="bq-file-download" href="' + escapeHtml(href) + '" download="' + escapeHtml(filename) + '" target="_blank" rel="noopener noreferrer">' + escapeHtml(text) + "</a>";
10336
+ return '<a class="bq-file-download" href="' + escapeHtml(href) + '" download="' + escapeHtml(filename) + '" target="_blank" rel="noopener noreferrer"><span class="bq-link-glyph" translate="no">\u2197</span>' + escapeHtml(filename) + "</a>";
10337
10337
  }
10338
10338
  function linkToAnchorHtml(link, allowImagePreview) {
10339
10339
  return renderInlineLinkHtml(link, {
package/dist/engine.cjs CHANGED
@@ -1398,7 +1398,8 @@ function renderInlineLinkHtml(link, opts) {
1398
1398
  if (refreshing) cls.push("is-refreshing");
1399
1399
  if (unavailable) cls.push("is-unavailable");
1400
1400
  if (preview) cls.push("is-image-preview");
1401
- var labelText = (unavailable ? INLINE_LINK_UNAVAILABLE_GLYPH : INLINE_LINK_GLYPH) + " " + link.label + (unavailable ? INLINE_LINK_UNAVAILABLE_SUFFIX : refreshing ? " (fetching...)" : "");
1401
+ var glyphHtml = '<span class="bq-link-glyph" translate="no">' + (unavailable ? INLINE_LINK_UNAVAILABLE_GLYPH : INLINE_LINK_GLYPH) + "</span>";
1402
+ var labelHtml = glyphHtml + escapeInlineHtml(link.label + (unavailable ? INLINE_LINK_UNAVAILABLE_SUFFIX : refreshing ? " (fetching...)" : ""));
1402
1403
  var attrs = ['class="' + cls.join(" ") + '"'];
1403
1404
  if (unavailable) attrs.push('aria-disabled="true"', 'data-bq-unavailable="1"');
1404
1405
  else attrs.push('href="' + escapeInlineHtml(link.href) + '"', 'target="_blank"', 'rel="noopener noreferrer"');
@@ -1409,8 +1410,8 @@ function renderInlineLinkHtml(link, opts) {
1409
1410
  if (link.expiredHref) attrs.push('data-bq-expired-href="' + escapeInlineHtml(link.expiredHref) + '"');
1410
1411
  if (link.remotePath) attrs.push('data-bq-remote-path="' + escapeInlineHtml(link.remotePath) + '"');
1411
1412
  if (link.fullLabel) attrs.push('data-bq-full-label="' + escapeInlineHtml(link.fullLabel) + '"');
1412
- if (!preview) return "<a " + attrs.join(" ") + ">" + escapeInlineHtml(labelText) + "</a>";
1413
- return "<a " + attrs.join(" ") + '><img class="bq-img-preview" alt="' + escapeInlineHtml(full) + '" data-bq-img-path="' + escapeInlineHtml(link.remotePath || "") + '" data-bq-img-type="' + escapeInlineHtml(link.image ? link.image.contentType : "") + '" decoding="async"><span class="bq-loader" data-bq-img-loader="1"></span><span class="bq-img-preview-caption" translate="no">' + escapeInlineHtml(labelText) + "</span></a>";
1413
+ if (!preview) return "<a " + attrs.join(" ") + ">" + labelHtml + "</a>";
1414
+ return "<a " + attrs.join(" ") + '><img class="bq-img-preview" alt="' + escapeInlineHtml(full) + '" data-bq-img-path="' + escapeInlineHtml(link.remotePath || "") + '" data-bq-img-type="' + escapeInlineHtml(link.image ? link.image.contentType : "") + '" decoding="async"><span class="bq-loader" data-bq-img-loader="1"></span><span class="bq-img-preview-caption" translate="no">' + labelHtml + "</span></a>";
1414
1415
  }
1415
1416
 
1416
1417
  // src/engine/image_preview.ts