@magicx-eng/ai-autocomplete-vanilla 0.79.0 → 0.79.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @magicx-eng/ai-autocomplete-vanilla
2
2
 
3
- AI Autocomplete for any web page: an input and dropdown for search boxes and
3
+ Intent-1 for any web page: an input and dropdown for search boxes and
4
4
  other text inputs. As the user types, it suggests the next detail to add and
5
5
  the options for it. It is plain TypeScript with no dependencies, so it works
6
6
  with any stack: plain HTML, Vue, Svelte, React or Angular. React and Angular
@@ -30,10 +30,10 @@ Pass an empty container element, such as a `div`. The widget builds its own inpu
30
30
 
31
31
  To get a key, create your product at https://ai-autocomplete.com/edit/logic (it sets what the box suggests), then create a public key at https://ai-autocomplete.com/account/keys. Public keys start with `pk_v1_` and are safe to ship in the browser.
32
32
 
33
- - Docs: https://ai-autocomplete.com/docs/vanilla/getting-started
33
+ - Docs: https://magicx.ai/intent-1/docs/vanilla/getting-started
34
34
  - Install with an AI coding agent: https://ai-autocomplete.com/install/vanilla.md
35
35
  - Product strip and datepicker guides: [REFERENCE.md](https://unpkg.com/@magicx-eng/ai-autocomplete-vanilla/REFERENCE.md), also shipped in the package
36
- - On Shopify? The Shopify app sets this up in a few minutes, no code: https://apps.shopify.com/ai-autocomplete
36
+ - On Shopify? Install [AI Search, by Intent-1](https://apps.shopify.com/ai-autocomplete) to set this up without code.
37
37
 
38
38
  ## Features
39
39
 
package/REFERENCE.md CHANGED
@@ -660,7 +660,7 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
660
660
  | `--aia-dropdown-offset` | `13px` | `13px` | Gap between the input box and the dropdown (the dropdown's margin toward the input). |
661
661
  | `--aia-content-inset-left` | `16px` | `16px` | Left inset of the SDK's content: the input wrapper's left padding, and the line the dropdown's content (parameter label, option text, product strip) starts on. Set it when you pad the field to clear a leading icon of your own, so the dropdown's content stays aligned under the typed text. Practical minimum is `10px` (the option text's own inset); both surfaces floor it there. |
662
662
  | `--aia-footer-gap` | `12px` | `12px` | Breathing room above the dropdown footer (badge / keyboard hints), additive to the dropdown's 8px section gap. |
663
- | `--aia-footer-chip-bg` | `--aia-surface` at 65% | `--aia-surface` at 65% | Fill behind the footer's keyboard hint and AI-Autocomplete badge. The option list scrolls under the footer, so this keeps both legible over the row passing behind them. `transparent` on the glass surface. |
663
+ | `--aia-footer-chip-bg` | `--aia-surface` at 65% | `--aia-surface` at 65% | Fill behind the footer's keyboard hint and "Powered by Intent-1" badge. The option list scrolls under the footer, so this keeps both legible over the row passing behind them. `transparent` on the glass surface. |
664
664
  | `--aia-dropdown-bg` | — | — | Optional bg color the dropdown's "glass" rim shadow tints toward. Set this to the page background behind the dropdown so the bottom-corner glow blends seamlessly. |
665
665
  | `--aia-scrollbar-track` | `rgba(15, 23, 42, 0.05)` | `rgba(255, 255, 255, 0.08)` | The floating options box's thin scrollbar track, shown while a long list overflows. |
666
666
  | `--aia-scrollbar-thumb` | `rgba(15, 23, 42, 0.22)` | `rgba(255, 255, 255, 0.28)` | That scrollbar's thumb. |
package/dist/index.d.mts CHANGED
@@ -288,6 +288,12 @@ interface ExpressedFilter {
288
288
  parameter: string;
289
289
  value: string;
290
290
  op: FilterOp;
291
+ /**
292
+ * Filters with the same group came from one typed word ("fleece" read as a
293
+ * material and as a category). One of them is enough. Absent on a filter
294
+ * that has no alternatives.
295
+ */
296
+ or_group?: string;
291
297
  }
292
298
  /**
293
299
  * One catalog item the query narrowed down to, in the shape needed to render
@@ -382,6 +388,11 @@ interface CustomFieldsReport {
382
388
  */
383
389
  dropped_filters: ExpressedFilter[];
384
390
  items: MatchedItems;
391
+ /**
392
+ * The text part of the search, the words besides `applied_filters`. Send it
393
+ * as the text query of a site's own results page. It can be empty.
394
+ */
395
+ search_query?: string;
385
396
  }
386
397
  interface CompletedParamState extends CompletedParam {
387
398
  /** Client-only identity for values committed together. */
@@ -3518,8 +3529,8 @@ declare const HANDOFF_NOT_HANDLED: unique symbol;
3518
3529
  */
3519
3530
  declare const SCHEMA_VERSION = "1.0";
3520
3531
 
3521
- /** Base URL for the "AI Autocomplete" branding/attribution link in the dropdown footer. */
3522
- declare const ATTRIBUTION_URL = "https://ai-autocomplete.com";
3532
+ /** Base URL for the Intent-1 attribution link in the dropdown footer. */
3533
+ declare const ATTRIBUTION_URL = "https://magicx.ai/intent-1";
3523
3534
  /**
3524
3535
  * Builds the attribution link URL, appending a `utm_source` query param derived
3525
3536
  * from the current page's hostname. This lets analytics attribute the referral to
package/dist/index.d.ts CHANGED
@@ -288,6 +288,12 @@ interface ExpressedFilter {
288
288
  parameter: string;
289
289
  value: string;
290
290
  op: FilterOp;
291
+ /**
292
+ * Filters with the same group came from one typed word ("fleece" read as a
293
+ * material and as a category). One of them is enough. Absent on a filter
294
+ * that has no alternatives.
295
+ */
296
+ or_group?: string;
291
297
  }
292
298
  /**
293
299
  * One catalog item the query narrowed down to, in the shape needed to render
@@ -382,6 +388,11 @@ interface CustomFieldsReport {
382
388
  */
383
389
  dropped_filters: ExpressedFilter[];
384
390
  items: MatchedItems;
391
+ /**
392
+ * The text part of the search, the words besides `applied_filters`. Send it
393
+ * as the text query of a site's own results page. It can be empty.
394
+ */
395
+ search_query?: string;
385
396
  }
386
397
  interface CompletedParamState extends CompletedParam {
387
398
  /** Client-only identity for values committed together. */
@@ -3518,8 +3529,8 @@ declare const HANDOFF_NOT_HANDLED: unique symbol;
3518
3529
  */
3519
3530
  declare const SCHEMA_VERSION = "1.0";
3520
3531
 
3521
- /** Base URL for the "AI Autocomplete" branding/attribution link in the dropdown footer. */
3522
- declare const ATTRIBUTION_URL = "https://ai-autocomplete.com";
3532
+ /** Base URL for the Intent-1 attribution link in the dropdown footer. */
3533
+ declare const ATTRIBUTION_URL = "https://magicx.ai/intent-1";
3523
3534
  /**
3524
3535
  * Builds the attribution link URL, appending a `utm_source` query param derived
3525
3536
  * from the current page's hostname. This lets analytics attribute the referral to