@magicx-eng/ai-autocomplete-vanilla 0.81.1 → 0.81.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MagicX Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -22,7 +22,7 @@ interface SuggestionOption {
22
22
  * separate matchable value from its display `text` (e.g. a hierarchical
23
23
  * option's `text` is its last path segment, "Probiotics", while `value` is
24
24
  * the full path `text` was shortened from). Sent to the server on tap
25
- * instead of `text` (see `toWireParam`), so grounding still matches the
25
+ * instead of `text` (see `toWireParam`), so the server still matches the
26
26
  * full, collision-safe value while the row shows a short label. Falls
27
27
  * back to `text` when absent.
28
28
  */
@@ -119,11 +119,11 @@ interface Suggestion {
119
119
  required: boolean;
120
120
  options?: SuggestionOption[];
121
121
  type?: SuggestionType;
122
- /** The server sets this on LLM-written suggestions: true when options complete the typed word, false when they follow the typed text. */
122
+ /** Set on some suggestions: true when options complete the typed word, false when they follow the typed text. */
123
123
  completes_word?: boolean;
124
124
  /**
125
125
  * Asks for the Smart Suggestion look (sparkle and shimmer) on an ordinary
126
- * question, such as one the server curated for a question query. It changes
126
+ * question, such as one suggested for a question-style query. It changes
127
127
  * nothing about how the options are answered.
128
128
  */
129
129
  smart_suggestion?: boolean;
@@ -155,7 +155,7 @@ interface InputItem {
155
155
  text: string;
156
156
  /** "need_confirmation" = a value the user may still be typing. It shows no pill and joins the result only on submit. */
157
157
  state: "completed" | "in_progress" | "need_confirmation";
158
- /** Absent or "selected" = echo of client params; "identified" = LLM-inferred. */
158
+ /** Absent or "selected" = echo of client params; "identified" = recognized by the server in the user's own words. */
159
159
  source?: "selected" | "identified";
160
160
  /**
161
161
  * The value type of the parameter this span was identified as. A span whose
@@ -171,7 +171,7 @@ interface InputItem {
171
171
  /** The last day of an identified date range, `YYYY-MM-DD`. Absent while the range has no end. */
172
172
  iso_date_end?: string;
173
173
  }
174
- /** Wire shape for an LLM-identified param echoed back to the server. */
174
+ /** Wire shape for a server-identified param echoed back to the server. */
175
175
  interface IdentifiedParam {
176
176
  parameter: string;
177
177
  text: string;
@@ -236,7 +236,7 @@ interface AutocompleteResponse {
236
236
  suggestions: Suggestion[];
237
237
  is_ready?: boolean;
238
238
  /**
239
- * What catalog grounding did for this request. Absent whenever no
239
+ * The catalog report for this request. Absent whenever no
240
240
  * catalog was read — see {@link CustomFieldsReport}.
241
241
  */
242
242
  custom_fields?: CustomFieldsReport;
@@ -362,8 +362,8 @@ interface MatchedItems {
362
362
  matched: MatchedItem[];
363
363
  }
364
364
  /**
365
- * What catalog grounding did for a request, as opposed to what it decided to
366
- * ask next.
365
+ * What the catalog lookup did for a request, as opposed to the suggestions
366
+ * the response carries.
367
367
  *
368
368
  * Absent from a response whenever no catalog was read: a product with no
369
369
  * catalog, a starting-state response, or a request whose suggestions offer no
@@ -486,7 +486,7 @@ interface SkippedParamState {
486
486
  suggestionPlaceholder: string;
487
487
  }
488
488
  /**
489
- * Client-side state for an LLM-identified param. Tentative — replaced
489
+ * Client-side state for a server-identified param. Tentative — replaced
490
490
  * wholesale from each response (latest wins) and dropped when its text no
491
491
  * longer matches. Never placeholder-substituted in raw_query.
492
492
  */
@@ -700,7 +700,7 @@ interface AutocompleteResult {
700
700
  /** Whether the server considers the query complete enough to act on. */
701
701
  is_ready: boolean;
702
702
  /**
703
- * What catalog grounding did for the latest applied response — the filters
703
+ * The catalog report for the latest applied response — the filters
704
704
  * it applied and dropped, and the items they left standing. Present only
705
705
  * when that response carried the block; see {@link CustomFieldsReport}.
706
706
  */
@@ -1012,7 +1012,7 @@ interface CoreInputState {
1012
1012
  } | null;
1013
1013
  completedParams: CompletedParamState[];
1014
1014
  /**
1015
- * LLM-identified params from the latest response. Revisable: replaced
1015
+ * Server-identified params from the latest response. Revisable: replaced
1016
1016
  * wholesale per response, dropped when their text is edited away. Never
1017
1017
  * override or overlap completed params.
1018
1018
  */
@@ -1067,7 +1067,7 @@ interface CoreInputState {
1067
1067
  */
1068
1068
  locationAutocomplete: boolean;
1069
1069
  /**
1070
- * The catalog grounding report the latest applied response carried, or null
1070
+ * The catalog report the latest applied response carried, or null
1071
1071
  * when it carried none. Replaced wholesale per response, so it always
1072
1072
  * describes the suggestions on screen: which of the query's constraints the
1073
1073
  * catalog applied, which it had to drop, and how many items (and which) the
@@ -2804,8 +2804,7 @@ declare function dropdownPillsFor(dropdownSuggestion: Suggestion | null, reEditP
2804
2804
  *
2805
2805
  * When a new set of options lands, each row fades in while rising into place,
2806
2806
  * and the rows start one after another from the input's side outward — the
2807
- * row nearest the input first. The reference (the RB2B support box's
2808
- * suggestion bubbles, 2026-08-19), retimed to the text-box motion spec
2807
+ * row nearest the input first, timed to the text-box motion spec
2809
2808
  * (2026-11): opacity 0→1 and a 7 px rise together over 340 ms on
2810
2809
  * cubic-bezier(.2,.8,.2,1), consecutive rows 40 ms apart.
2811
2810
  *
@@ -3336,8 +3335,8 @@ declare function optionsShowLeadingVisuals(options: readonly SuggestionOption[],
3336
3335
 
3337
3336
  /**
3338
3337
  * Reduces an option's `icon_svg` markup to plain vector drawing before it is
3339
- * inserted into the dropdown. The icons come from the server's own curated
3340
- * set, but markup landing in a consumer's page is a trust boundary, so every
3338
+ * inserted into the dropdown. The icons come from the server, but
3339
+ * markup landing in a consumer's page is a trust boundary, so every
3341
3340
  * icon is parsed and filtered through an allowlist rather than inserted raw:
3342
3341
  * only the elements in `ALLOWED_ELEMENTS` survive, stripped of any attribute
3343
3342
  * that could run script or fetch a resource. The root is marked
@@ -3371,8 +3370,7 @@ declare function releasePanelHug(dropdown: HTMLElement): void;
3371
3370
  declare function syncPanelHug(dropdown: HTMLElement): void;
3372
3371
 
3373
3372
  /**
3374
- * Open-panel motion, copied from the playground's Real-time One tab
3375
- * (`src/genui/morph.ts` + `AutoHeight`, 2026-11):
3373
+ * Open-panel motion:
3376
3374
  *
3377
3375
  * - When the panel's height changes while it stays open, it glides there over
3378
3376
  * 360ms on cubic-bezier(.32,.72,0,1) instead of jumping.
@@ -3450,7 +3448,7 @@ declare function destroyPanelMorph(dropdown: HTMLElement): void;
3450
3448
  * Types the starting-state placeholder into the input one character at a
3451
3449
  * time instead of popping it in whole.
3452
3450
  *
3453
- * The reference (the RB2B support box, 2026-08-19): ~33 ms per character, no
3451
+ * The timing: ~33 ms per character, no
3454
3452
  * caret, a brief hold on word boundaries; when the phrase changes the old
3455
3453
  * one fades out (~120 ms), the field sits empty for a beat (~50 ms), then the
3456
3454
  * new phrase types in from nothing. Characters appear at full opacity — the
@@ -3476,9 +3474,9 @@ declare const PLACEHOLDER_SWAP_GAP_MS = 50;
3476
3474
  declare const PLACEHOLDER_LEAVING_ATTR = "data-aia-placeholder-leaving";
3477
3475
 
3478
3476
  /**
3479
- * The empty box's hint (Brad 2026-11-18): the placeholder's lead-in ("Find")
3480
- * followed by the first three starting options, one at a time ("Find a table"
3481
- * → "Find a date spot" → "Find trending restaurants"). The option's noun
3477
+ * The empty box's hint: the placeholder's lead-in ("Find")
3478
+ * followed by the first three starting options, one at a time ("Find a jacket"
3479
+ * → "Find a gift idea" → "Find trending sneakers"). The option's noun
3482
3480
  * carries its icon. The change is a word swap: words both lines share stay
3483
3481
  * where they are (sliding if they must move); only the words that change
3484
3482
  * dissolve, blur(2px) + fade, 280 ms out and 320 ms in.
@@ -3669,21 +3667,21 @@ declare function attachScrollArrow({ dropdown, grid, button, }: ScrollArrowArgs)
3669
3667
  *
3670
3668
  * A Shopify catalog's `image_url` is the original upload, drawn here in a
3671
3669
  * 40px option square or a 116px product card. PNG product photos are the
3672
- * heavy ones: an 830×1080 PNG is 1–2 MB, and picking "Lehengas" on
3673
- * gayathrisarees.com loaded 16.5 MB of them. WebP uploads are lighter but
3674
- * still far more than a tile needs: opening the search on solene.shop loaded
3670
+ * heavy ones: an 830×1080 PNG is 1–2 MB, and picking one category on a
3671
+ * test store loaded 16.5 MB of them. WebP uploads are lighter but
3672
+ * still far more than a tile needs: opening the search on another store loaded
3675
3673
  * 992 KB of them for six category tiles, 48 KB at `width=120`. Shopify
3676
3674
  * resizes on request (`?width=`) and caches every resize at its edge. JPEG
3677
3675
  * uploads are left as they are (tens to a few hundred KB).
3678
3676
  *
3679
3677
  * `format=pjpg` is set too, because some PNG uploads carry megabytes of Adobe
3680
- * XMP metadata that Shopify copies into every resize: one Gayathri Sarees
3678
+ * XMP metadata that Shopify copies into every resize: one product
3681
3679
  * photo came back 1.6 MB at `width=200` as PNG and 4.1 MB as AVIF, while
3682
3680
  * `width=200&format=pjpg` (a progressive JPEG, metadata dropped) was 28 KB.
3683
3681
  * Shopify keeps a PNG that has an alpha channel as WebP/AVIF instead, so a
3684
3682
  * transparent cut-out is never flattened. A WebP upload gets `width` alone:
3685
3683
  * it has no such bloat, and Shopify's own pick (AVIF or WebP) is smaller than
3686
- * a JPEG (48 KB against 68 KB for Solene's twelve).
3684
+ * a JPEG (48 KB against 68 KB for twelve tiles).
3687
3685
  *
3688
3686
  * Only Shopify-hosted PNG and WebP files are touched —
3689
3687
  * `cdn.shopify.com/s/files/…` and a store's own `/cdn/shop/…`. Any other URL
@@ -3760,7 +3758,7 @@ declare function productImageSrc(url: string | null | undefined): string | undef
3760
3758
  * scrolled, a shorter question. The two layouts are not interchangeable even
3761
3759
  * when the space is there: fitting lifts the options grid's row cap, so a
3762
3760
  * long option list is drawn in full and pushes the product strip below the
3763
- * fold (2026-11-04, a dashboard preview zoomed out to 50% kept its fitted
3761
+ * fold (2026-11-04, a page zoomed out to 50% kept its fitted
3764
3762
  * panel and the strip was out of sight). Measuring the normal layout means
3765
3763
  * dropping the attribute for one synchronous read — nothing paints in
3766
3764
  * between — and restoring the stack's scroll if the panel stays fitted. That
@@ -3877,9 +3875,8 @@ declare function getFooterHint(optionHighlighted: boolean, isInputEmpty: boolean
3877
3875
  declare function toWireIdentifiedParams(params: IdentifiedParamState[]): IdentifiedParam[];
3878
3876
 
3879
3877
  /**
3880
- * Where the product strip links a server-matched item to. The server ships a
3881
- * bare `handle` on purpose: the only shop domain it holds is the internal one,
3882
- * and an absolute link built from it would send a shopper off the storefront
3878
+ * Where the product strip links a server-matched item to. The server sends a
3879
+ * bare `handle`, not an absolute URL, so the link stays on the storefront
3883
3880
  * the widget is running on. A relative path resolves against the page the
3884
3881
  * widget is on, which for a storefront embed is the shop itself.
3885
3882
  */
@@ -4030,7 +4027,7 @@ interface SubmitResultExtras {
4030
4027
  /** Server's "query is complete" verdict (`state.isReady`). Default: false. */
4031
4028
  isReady?: boolean;
4032
4029
  /**
4033
- * The catalog grounding report the latest response carried
4030
+ * The catalog report the latest response carried
4034
4031
  * (`state.customFields`). Default: none, and the result then has no
4035
4032
  * `custom_fields` key at all — mirroring the wire, where the block is absent
4036
4033
  * rather than null when no catalog was read.
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ interface SuggestionOption {
22
22
  * separate matchable value from its display `text` (e.g. a hierarchical
23
23
  * option's `text` is its last path segment, "Probiotics", while `value` is
24
24
  * the full path `text` was shortened from). Sent to the server on tap
25
- * instead of `text` (see `toWireParam`), so grounding still matches the
25
+ * instead of `text` (see `toWireParam`), so the server still matches the
26
26
  * full, collision-safe value while the row shows a short label. Falls
27
27
  * back to `text` when absent.
28
28
  */
@@ -119,11 +119,11 @@ interface Suggestion {
119
119
  required: boolean;
120
120
  options?: SuggestionOption[];
121
121
  type?: SuggestionType;
122
- /** The server sets this on LLM-written suggestions: true when options complete the typed word, false when they follow the typed text. */
122
+ /** Set on some suggestions: true when options complete the typed word, false when they follow the typed text. */
123
123
  completes_word?: boolean;
124
124
  /**
125
125
  * Asks for the Smart Suggestion look (sparkle and shimmer) on an ordinary
126
- * question, such as one the server curated for a question query. It changes
126
+ * question, such as one suggested for a question-style query. It changes
127
127
  * nothing about how the options are answered.
128
128
  */
129
129
  smart_suggestion?: boolean;
@@ -155,7 +155,7 @@ interface InputItem {
155
155
  text: string;
156
156
  /** "need_confirmation" = a value the user may still be typing. It shows no pill and joins the result only on submit. */
157
157
  state: "completed" | "in_progress" | "need_confirmation";
158
- /** Absent or "selected" = echo of client params; "identified" = LLM-inferred. */
158
+ /** Absent or "selected" = echo of client params; "identified" = recognized by the server in the user's own words. */
159
159
  source?: "selected" | "identified";
160
160
  /**
161
161
  * The value type of the parameter this span was identified as. A span whose
@@ -171,7 +171,7 @@ interface InputItem {
171
171
  /** The last day of an identified date range, `YYYY-MM-DD`. Absent while the range has no end. */
172
172
  iso_date_end?: string;
173
173
  }
174
- /** Wire shape for an LLM-identified param echoed back to the server. */
174
+ /** Wire shape for a server-identified param echoed back to the server. */
175
175
  interface IdentifiedParam {
176
176
  parameter: string;
177
177
  text: string;
@@ -236,7 +236,7 @@ interface AutocompleteResponse {
236
236
  suggestions: Suggestion[];
237
237
  is_ready?: boolean;
238
238
  /**
239
- * What catalog grounding did for this request. Absent whenever no
239
+ * The catalog report for this request. Absent whenever no
240
240
  * catalog was read — see {@link CustomFieldsReport}.
241
241
  */
242
242
  custom_fields?: CustomFieldsReport;
@@ -362,8 +362,8 @@ interface MatchedItems {
362
362
  matched: MatchedItem[];
363
363
  }
364
364
  /**
365
- * What catalog grounding did for a request, as opposed to what it decided to
366
- * ask next.
365
+ * What the catalog lookup did for a request, as opposed to the suggestions
366
+ * the response carries.
367
367
  *
368
368
  * Absent from a response whenever no catalog was read: a product with no
369
369
  * catalog, a starting-state response, or a request whose suggestions offer no
@@ -486,7 +486,7 @@ interface SkippedParamState {
486
486
  suggestionPlaceholder: string;
487
487
  }
488
488
  /**
489
- * Client-side state for an LLM-identified param. Tentative — replaced
489
+ * Client-side state for a server-identified param. Tentative — replaced
490
490
  * wholesale from each response (latest wins) and dropped when its text no
491
491
  * longer matches. Never placeholder-substituted in raw_query.
492
492
  */
@@ -700,7 +700,7 @@ interface AutocompleteResult {
700
700
  /** Whether the server considers the query complete enough to act on. */
701
701
  is_ready: boolean;
702
702
  /**
703
- * What catalog grounding did for the latest applied response — the filters
703
+ * The catalog report for the latest applied response — the filters
704
704
  * it applied and dropped, and the items they left standing. Present only
705
705
  * when that response carried the block; see {@link CustomFieldsReport}.
706
706
  */
@@ -1012,7 +1012,7 @@ interface CoreInputState {
1012
1012
  } | null;
1013
1013
  completedParams: CompletedParamState[];
1014
1014
  /**
1015
- * LLM-identified params from the latest response. Revisable: replaced
1015
+ * Server-identified params from the latest response. Revisable: replaced
1016
1016
  * wholesale per response, dropped when their text is edited away. Never
1017
1017
  * override or overlap completed params.
1018
1018
  */
@@ -1067,7 +1067,7 @@ interface CoreInputState {
1067
1067
  */
1068
1068
  locationAutocomplete: boolean;
1069
1069
  /**
1070
- * The catalog grounding report the latest applied response carried, or null
1070
+ * The catalog report the latest applied response carried, or null
1071
1071
  * when it carried none. Replaced wholesale per response, so it always
1072
1072
  * describes the suggestions on screen: which of the query's constraints the
1073
1073
  * catalog applied, which it had to drop, and how many items (and which) the
@@ -2804,8 +2804,7 @@ declare function dropdownPillsFor(dropdownSuggestion: Suggestion | null, reEditP
2804
2804
  *
2805
2805
  * When a new set of options lands, each row fades in while rising into place,
2806
2806
  * and the rows start one after another from the input's side outward — the
2807
- * row nearest the input first. The reference (the RB2B support box's
2808
- * suggestion bubbles, 2026-08-19), retimed to the text-box motion spec
2807
+ * row nearest the input first, timed to the text-box motion spec
2809
2808
  * (2026-11): opacity 0→1 and a 7 px rise together over 340 ms on
2810
2809
  * cubic-bezier(.2,.8,.2,1), consecutive rows 40 ms apart.
2811
2810
  *
@@ -3336,8 +3335,8 @@ declare function optionsShowLeadingVisuals(options: readonly SuggestionOption[],
3336
3335
 
3337
3336
  /**
3338
3337
  * Reduces an option's `icon_svg` markup to plain vector drawing before it is
3339
- * inserted into the dropdown. The icons come from the server's own curated
3340
- * set, but markup landing in a consumer's page is a trust boundary, so every
3338
+ * inserted into the dropdown. The icons come from the server, but
3339
+ * markup landing in a consumer's page is a trust boundary, so every
3341
3340
  * icon is parsed and filtered through an allowlist rather than inserted raw:
3342
3341
  * only the elements in `ALLOWED_ELEMENTS` survive, stripped of any attribute
3343
3342
  * that could run script or fetch a resource. The root is marked
@@ -3371,8 +3370,7 @@ declare function releasePanelHug(dropdown: HTMLElement): void;
3371
3370
  declare function syncPanelHug(dropdown: HTMLElement): void;
3372
3371
 
3373
3372
  /**
3374
- * Open-panel motion, copied from the playground's Real-time One tab
3375
- * (`src/genui/morph.ts` + `AutoHeight`, 2026-11):
3373
+ * Open-panel motion:
3376
3374
  *
3377
3375
  * - When the panel's height changes while it stays open, it glides there over
3378
3376
  * 360ms on cubic-bezier(.32,.72,0,1) instead of jumping.
@@ -3450,7 +3448,7 @@ declare function destroyPanelMorph(dropdown: HTMLElement): void;
3450
3448
  * Types the starting-state placeholder into the input one character at a
3451
3449
  * time instead of popping it in whole.
3452
3450
  *
3453
- * The reference (the RB2B support box, 2026-08-19): ~33 ms per character, no
3451
+ * The timing: ~33 ms per character, no
3454
3452
  * caret, a brief hold on word boundaries; when the phrase changes the old
3455
3453
  * one fades out (~120 ms), the field sits empty for a beat (~50 ms), then the
3456
3454
  * new phrase types in from nothing. Characters appear at full opacity — the
@@ -3476,9 +3474,9 @@ declare const PLACEHOLDER_SWAP_GAP_MS = 50;
3476
3474
  declare const PLACEHOLDER_LEAVING_ATTR = "data-aia-placeholder-leaving";
3477
3475
 
3478
3476
  /**
3479
- * The empty box's hint (Brad 2026-11-18): the placeholder's lead-in ("Find")
3480
- * followed by the first three starting options, one at a time ("Find a table"
3481
- * → "Find a date spot" → "Find trending restaurants"). The option's noun
3477
+ * The empty box's hint: the placeholder's lead-in ("Find")
3478
+ * followed by the first three starting options, one at a time ("Find a jacket"
3479
+ * → "Find a gift idea" → "Find trending sneakers"). The option's noun
3482
3480
  * carries its icon. The change is a word swap: words both lines share stay
3483
3481
  * where they are (sliding if they must move); only the words that change
3484
3482
  * dissolve, blur(2px) + fade, 280 ms out and 320 ms in.
@@ -3669,21 +3667,21 @@ declare function attachScrollArrow({ dropdown, grid, button, }: ScrollArrowArgs)
3669
3667
  *
3670
3668
  * A Shopify catalog's `image_url` is the original upload, drawn here in a
3671
3669
  * 40px option square or a 116px product card. PNG product photos are the
3672
- * heavy ones: an 830×1080 PNG is 1–2 MB, and picking "Lehengas" on
3673
- * gayathrisarees.com loaded 16.5 MB of them. WebP uploads are lighter but
3674
- * still far more than a tile needs: opening the search on solene.shop loaded
3670
+ * heavy ones: an 830×1080 PNG is 1–2 MB, and picking one category on a
3671
+ * test store loaded 16.5 MB of them. WebP uploads are lighter but
3672
+ * still far more than a tile needs: opening the search on another store loaded
3675
3673
  * 992 KB of them for six category tiles, 48 KB at `width=120`. Shopify
3676
3674
  * resizes on request (`?width=`) and caches every resize at its edge. JPEG
3677
3675
  * uploads are left as they are (tens to a few hundred KB).
3678
3676
  *
3679
3677
  * `format=pjpg` is set too, because some PNG uploads carry megabytes of Adobe
3680
- * XMP metadata that Shopify copies into every resize: one Gayathri Sarees
3678
+ * XMP metadata that Shopify copies into every resize: one product
3681
3679
  * photo came back 1.6 MB at `width=200` as PNG and 4.1 MB as AVIF, while
3682
3680
  * `width=200&format=pjpg` (a progressive JPEG, metadata dropped) was 28 KB.
3683
3681
  * Shopify keeps a PNG that has an alpha channel as WebP/AVIF instead, so a
3684
3682
  * transparent cut-out is never flattened. A WebP upload gets `width` alone:
3685
3683
  * it has no such bloat, and Shopify's own pick (AVIF or WebP) is smaller than
3686
- * a JPEG (48 KB against 68 KB for Solene's twelve).
3684
+ * a JPEG (48 KB against 68 KB for twelve tiles).
3687
3685
  *
3688
3686
  * Only Shopify-hosted PNG and WebP files are touched —
3689
3687
  * `cdn.shopify.com/s/files/…` and a store's own `/cdn/shop/…`. Any other URL
@@ -3760,7 +3758,7 @@ declare function productImageSrc(url: string | null | undefined): string | undef
3760
3758
  * scrolled, a shorter question. The two layouts are not interchangeable even
3761
3759
  * when the space is there: fitting lifts the options grid's row cap, so a
3762
3760
  * long option list is drawn in full and pushes the product strip below the
3763
- * fold (2026-11-04, a dashboard preview zoomed out to 50% kept its fitted
3761
+ * fold (2026-11-04, a page zoomed out to 50% kept its fitted
3764
3762
  * panel and the strip was out of sight). Measuring the normal layout means
3765
3763
  * dropping the attribute for one synchronous read — nothing paints in
3766
3764
  * between — and restoring the stack's scroll if the panel stays fitted. That
@@ -3877,9 +3875,8 @@ declare function getFooterHint(optionHighlighted: boolean, isInputEmpty: boolean
3877
3875
  declare function toWireIdentifiedParams(params: IdentifiedParamState[]): IdentifiedParam[];
3878
3876
 
3879
3877
  /**
3880
- * Where the product strip links a server-matched item to. The server ships a
3881
- * bare `handle` on purpose: the only shop domain it holds is the internal one,
3882
- * and an absolute link built from it would send a shopper off the storefront
3878
+ * Where the product strip links a server-matched item to. The server sends a
3879
+ * bare `handle`, not an absolute URL, so the link stays on the storefront
3883
3880
  * the widget is running on. A relative path resolves against the page the
3884
3881
  * widget is on, which for a storefront embed is the shop itself.
3885
3882
  */
@@ -4030,7 +4027,7 @@ interface SubmitResultExtras {
4030
4027
  /** Server's "query is complete" verdict (`state.isReady`). Default: false. */
4031
4028
  isReady?: boolean;
4032
4029
  /**
4033
- * The catalog grounding report the latest response carried
4030
+ * The catalog report the latest response carried
4034
4031
  * (`state.customFields`). Default: none, and the result then has no
4035
4032
  * `custom_fields` key at all — mirroring the wire, where the block is absent
4036
4033
  * rather than null when no catalog was read.