@syntrologie/adapt-search 2.8.0-canary.642 → 2.8.0-canary.643

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 +1 @@
1
- {"version":3,"file":"FilterStrip.d.ts","sourceRoot":"","sources":["../src/FilterStrip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAKV,kBAAkB,EAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAa,UAAU,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1E,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAMtD,0FAA0F;AAC1F,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,KAAK,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAI5B,qBAAa,kBAAmB,SAAQ,UAAU;;IAChD,MAAM,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;MAQf;IAEM,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACnC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;;IAkB5B,MAAM,CAAC,MAAM,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;;;;;;;;;;;;;;;MAQf;IAEM,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACnC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;;IAkB5B,MAAM,CAAC,MAAM,0BA4GX;IAEF,iBAAiB,IAAI,IAAI;IAUzB,oBAAoB,IAAI,IAAI;IAuB5B,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA0B/C,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAsa5C,MAAM,IAAI,cAAc,GAAG,OAAO,OAAO;CAa1C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,kBAAkB,CAAC;KAC3C;CACF;AAED,gFAAgF;AAChF,wBAAgB,0BAA0B,IAAI,IAAI,CAKjD"}
@@ -8,8 +8,9 @@
8
8
  * slot, instant store matches as tiles, a "See store results" chip, and the
9
9
  * frame (backdrop, close button, full screen on a phone, a centered
10
10
  * two-column stage on a desktop). The tiles sit on the stage, newest search
11
- * first; the conversation is the overlay that rises from the bar, above the
12
- * strip, and collapses away. Tiles, tile actions, the conversation, recall
11
+ * first, and own the screen (`tilesFirst`): the conversation is the overlay
12
+ * one tap above the strip, down on open and once a turn's tiles land, up
13
+ * while the shopper types and for an answer in words alone. Tiles, tile actions, the conversation, recall
13
14
  * chips, the reply, the bar and the live region are all the stage's. Esc is
14
15
  * the frame's: it closes the takeover (the controller's), it does not
15
16
  * collapse the conversation first as the ask-bar's does.
@@ -1 +1 @@
1
- {"version":3,"file":"SearchChatElement.d.ts","sourceRoot":"","sources":["../src/SearchChatElement.ts"],"names":[],"mappings":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AMhD;AAyBD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB;qBACb,WAAW,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,MAAM,IAAI;CA0FnF,CAAC"}
package/dist/cdn.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runtime
3
- } from "./chunk-26LZHGJN.js";
3
+ } from "./chunk-7BSCJSUF.js";
4
4
  import "./chunk-XQZY6PWC.js";
5
5
 
6
6
  // src/cdn.ts
@@ -4657,12 +4657,14 @@ function within(node, el) {
4657
4657
  return false;
4658
4658
  }
4659
4659
  var EMPTY_HANDOFF = JSON.stringify([null, [], []]);
4660
- var _turns, _warnedOrphans, _firstSeen, _revealedTurnId, _dismissed, _drag, _swallowTileClick, _composerWatch, _watchedRoot, _hasComposerSeen, _provider, _pendingQuestion, _pendingBefore, _resize, _width, _handedOff, _ChatStage_instances, raiseIfWordsOnly_fn, provideRegistry_fn, applyColumns_fn, pendingText_fn, newestId_fn, deriveTurns_fn, watchComposer_fn, syncComposer_fn, revealNewest_fn, handOffSuggestions_fn, visible_fn, cards_fn, chips_fn, region_fn, composer_fn, _onTranscript, _onBarFocusIn, _onBarFocusOut, _collapseChat, _showChat, raiseChat_fn, _onBarPointer, _onBarKey, recall_fn, _onTileDown, _onTileMove, _onTileUp, _onTileCancel, _onTileDragStart, _onTileClickCapture, springBack_fn, afterSettle_fn, dismiss_fn, neighbourOf_fn, focusAfterDismiss_fn, moreLikeThis_fn, chatTile_fn, renderReply_fn, renderChatTile_fn, renderTileCard_fn, renderRecallChips_fn, renderNavChips_fn, renderTiles_fn, navChipsShown_fn, renderStage_fn, renderAnnouncement_fn;
4660
+ var _turns, _openedToRead, _warnedOrphans, _firstSeen, _revealedTurnId, _dismissed, _drag, _swallowTileClick, _composerWatch, _watchedRoot, _hasComposerSeen, _provider, _pendingQuestion, _pendingBefore, _resize, _width, _handedOff, _ChatStage_instances, lowerForTiles_fn, raiseIfWordsOnly_fn, provideRegistry_fn, applyColumns_fn, pendingText_fn, newestId_fn, deriveTurns_fn, watchComposer_fn, syncComposer_fn, revealNewest_fn, handOffSuggestions_fn, visible_fn, cards_fn, chips_fn, region_fn, composer_fn, _onTranscript, _onBarFocusIn, _onBarFocusOut, _collapseChat, _showChat, raiseChat_fn, _onBarPointer, _onBarKey, recall_fn, _onTileDown, _onTileMove, _onTileUp, _onTileCancel, _onTileDragStart, _onTileClickCapture, springBack_fn, afterSettle_fn, dismiss_fn, neighbourOf_fn, focusAfterDismiss_fn, moreLikeThis_fn, chatTile_fn, renderReply_fn, renderChatTile_fn, renderTileCard_fn, renderRecallChips_fn, renderNavChips_fn, renderTiles_fn, navChipsShown_fn, renderStage_fn, renderAnnouncement_fn;
4661
4661
  var _ChatStage = class _ChatStage extends LitElement3 {
4662
4662
  constructor() {
4663
4663
  super();
4664
4664
  __privateAdd(this, _ChatStage_instances);
4665
4665
  __privateAdd(this, _turns, []);
4666
+ /** tilesFirst: the shopper opened the conversation with its chevron to read it; tiles leave it up. */
4667
+ __privateAdd(this, _openedToRead, false);
4666
4668
  __privateAdd(this, _warnedOrphans, /* @__PURE__ */ new Set());
4667
4669
  /**
4668
4670
  * Where each tile turn id was first seen: the id of the last transcript
@@ -4714,6 +4716,7 @@ var _ChatStage = class _ChatStage extends LitElement3 {
4714
4716
  /** The chevron above the bar: the conversation comes back, focus on the chevron that hides it. */
4715
4717
  __privateAdd(this, _showChat, () => {
4716
4718
  __privateMethod(this, _ChatStage_instances, raiseChat_fn).call(this);
4719
+ __privateSet(this, _openedToRead, true);
4717
4720
  void this.updateComplete.then(() => {
4718
4721
  this.renderRoot.querySelector("[data-chat-toggle]")?.focus({ preventScroll: true });
4719
4722
  });
@@ -4825,6 +4828,7 @@ var _ChatStage = class _ChatStage extends LitElement3 {
4825
4828
  this.barInert = false;
4826
4829
  this.answersInert = false;
4827
4830
  this.maxColumns = 2;
4831
+ this.tilesFirst = false;
4828
4832
  this.logTag = "chat-stage";
4829
4833
  this.turnProps = null;
4830
4834
  this._transcript = { messages: [], inFlight: false };
@@ -4880,10 +4884,15 @@ var _ChatStage = class _ChatStage extends LitElement3 {
4880
4884
  if (changed.has("maxColumns"))
4881
4885
  __privateMethod(this, _ChatStage_instances, applyColumns_fn).call(this);
4882
4886
  if (changed.has("shown") && this.shown)
4883
- this._chatUp = true;
4887
+ this._chatUp = !this.tilesFirst;
4888
+ if (!this._chatUp)
4889
+ __privateSet(this, _openedToRead, false);
4884
4890
  const before = changed.get("_transcript");
4885
- if (before?.inFlight && !this._transcript.inFlight)
4891
+ if (before?.inFlight && !this._transcript.inFlight) {
4886
4892
  __privateMethod(this, _ChatStage_instances, raiseIfWordsOnly_fn).call(this);
4893
+ if (this.tilesFirst)
4894
+ __privateMethod(this, _ChatStage_instances, lowerForTiles_fn).call(this);
4895
+ }
4887
4896
  }
4888
4897
  updated(changed) {
4889
4898
  __privateMethod(this, _ChatStage_instances, watchComposer_fn).call(this);
@@ -5038,6 +5047,7 @@ var _ChatStage = class _ChatStage extends LitElement3 {
5038
5047
  }
5039
5048
  };
5040
5049
  _turns = new WeakMap();
5050
+ _openedToRead = new WeakMap();
5041
5051
  _warnedOrphans = new WeakMap();
5042
5052
  _firstSeen = new WeakMap();
5043
5053
  _revealedTurnId = new WeakMap();
@@ -5054,6 +5064,27 @@ _resize = new WeakMap();
5054
5064
  _width = new WeakMap();
5055
5065
  _handedOff = new WeakMap();
5056
5066
  _ChatStage_instances = new WeakSet();
5067
+ /**
5068
+ * tilesFirst: a turn just ended with tiles on the stage, so the conversation
5069
+ * goes down and the tiles are the answer, unless the shopper opened it with
5070
+ * its chevron to read it. A focus inside it moves to the stage rather than
5071
+ * stay on something hidden.
5072
+ */
5073
+ lowerForTiles_fn = function() {
5074
+ if (!this._chatUp || this.layout !== "overlay" || __privateGet(this, _openedToRead))
5075
+ return;
5076
+ const id = newestTurnId(__privateGet(this, _turns), false);
5077
+ const turn = __privateGet(this, _turns).find((t2) => t2.id === id);
5078
+ if (!turn || turn.errorText || __privateMethod(this, _ChatStage_instances, cards_fn).call(this, turn).length === 0)
5079
+ return;
5080
+ const held = this.renderRoot.activeElement?.closest("#ab-chat") ?? null;
5081
+ this._chatUp = false;
5082
+ if (held) {
5083
+ void this.updateComplete.then(() => {
5084
+ this.renderRoot.querySelector('[data-region="stage"]')?.focus({ preventScroll: true });
5085
+ });
5086
+ }
5087
+ };
5057
5088
  /**
5058
5089
  * A turn just ended while the conversation was hidden (a "More like this",
5059
5090
  * a nudge). Its tiles are the answer when it has any; a failure or a
@@ -5535,6 +5566,7 @@ _ChatStage.properties = {
5535
5566
  barInert: { type: Boolean, attribute: false },
5536
5567
  answersInert: { type: Boolean, attribute: false },
5537
5568
  maxColumns: { type: Number, attribute: "max-columns" },
5569
+ tilesFirst: { type: Boolean, attribute: "tiles-first" },
5538
5570
  logTag: { attribute: false },
5539
5571
  turnProps: { attribute: false },
5540
5572
  _transcript: { state: true },
@@ -5582,6 +5614,12 @@ var FILTER_STRIP_TAG = "syntro-filter-strip";
5582
5614
  var PHONE_QUERY = "(max-width: 639px)";
5583
5615
  var PHONE_MAX_PX = 639;
5584
5616
  var hasRange = (r) => r !== null;
5617
+ function priceText(value, range) {
5618
+ const cap = Number(value);
5619
+ const currency = range?.currency;
5620
+ if (!currency || value === "" || !Number.isFinite(cap)) return value;
5621
+ return formatProductPrice({ min: cap, max: cap, currency })?.price ?? value;
5622
+ }
5585
5623
  var _media, _restoreFocus, _focusOnUpdate, _FilterStripElement_instances, isPhone_fn, _onMedia, _onOutside, _focusHost, _focusedBefore, nudgePopover_fn, openPopover_fn, closePopover_fn, returnFocus_fn, openSheet_fn, closeSheet_fn, q_fn, chipOpener_fn, emit_fn, choose_fn, remove_fn, open_reset_fn, applyPrice_fn, onListKey_fn, onKeydown_fn, trap_fn, renderOptions_fn, renderPrice_fn, renderValues_fn, chipText_fn, renderFilter_fn, addableKeys_fn, renderAdd_fn, renderEditor_fn, renderSteps_fn, renderSheet_fn;
5586
5624
  var FilterStripElement = class extends LitElement4 {
5587
5625
  constructor() {
@@ -5738,7 +5776,7 @@ choose_fn = function(edit, label, previous) {
5738
5776
  __privateMethod(this, _FilterStripElement_instances, closePopover_fn).call(this);
5739
5777
  };
5740
5778
  remove_fn = function(f, index) {
5741
- const shown = f.kind === "price" && f.values[0] ? `${f.label} up to ${f.values[0]}` : f.values.length ? f.values.join(", ") : f.label;
5779
+ const shown = f.kind === "price" && f.values[0] ? `${f.label} up to ${priceText(f.values[0], f.range)}` : f.values.length ? f.values.join(", ") : f.label;
5742
5780
  const all = this.filters?.filters ?? [];
5743
5781
  const neighbour = all[index + 1] ?? all[index - 1];
5744
5782
  const holder = neighbour ? Array.from(this.shadowRoot?.querySelectorAll("[data-filter]") ?? []).find(
@@ -5872,7 +5910,8 @@ renderValues_fn = function(f) {
5872
5910
  </div>`;
5873
5911
  };
5874
5912
  chipText_fn = function(f) {
5875
- if (f.kind === "price") return `${f.label}: up to ${f.values[0] ?? ""}`.trimEnd();
5913
+ if (f.kind === "price")
5914
+ return `${f.label}: up to ${priceText(f.values[0] ?? "", f.range)}`.trimEnd();
5876
5915
  return f.values.length ? `${f.label}: ${f.values.join(", ")}` : f.label;
5877
5916
  };
5878
5917
  renderFilter_fn = function(f, index) {
@@ -6352,6 +6391,7 @@ var SearchChatElement = class extends LitElement5 {
6352
6391
  .placeholders=${this.placeholders}
6353
6392
  .suggestionsIn=${"strip"}
6354
6393
  .layout=${"overlay"}
6394
+ .tilesFirst=${true}
6355
6395
  .maxColumns=${2}
6356
6396
  .answersInert=${sheet}
6357
6397
  .barInert=${sheet}
@@ -7579,4 +7619,4 @@ export {
7579
7619
  dompurify/dist/purify.es.mjs:
7580
7620
  (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
7581
7621
  */
7582
- //# sourceMappingURL=chunk-26LZHGJN.js.map
7622
+ //# sourceMappingURL=chunk-7BSCJSUF.js.map