@magicx-eng/ai-autocomplete-react 0.65.0 → 0.65.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-react
2
2
 
3
- AI Autocomplete for React: an input and dropdown for search boxes and other
3
+ Intent-1 for React: an input and dropdown for search boxes and other
4
4
  text inputs. As the user types, it suggests the next detail to add and the
5
5
  options for it. Built on `@magicx-eng/ai-autocomplete-vanilla`.
6
6
 
@@ -31,10 +31,10 @@ Next.js App Router, mark the file that renders it `"use client"`.
31
31
 
32
32
  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.
33
33
 
34
- - Docs: https://ai-autocomplete.com/docs/react/getting-started
34
+ - Docs: https://magicx.ai/intent-1/docs/react/getting-started
35
35
  - Install with an AI coding agent: https://ai-autocomplete.com/install/react.md
36
36
  - Product strip and datepicker guides: [REFERENCE.md](https://unpkg.com/@magicx-eng/ai-autocomplete-react/REFERENCE.md), also shipped in the package
37
- - On Shopify? The Shopify app sets this up in a few minutes, no code: https://apps.shopify.com/ai-autocomplete
37
+ - On Shopify? Install [AI Search, by Intent-1](https://apps.shopify.com/ai-autocomplete) to set this up without code.
38
38
 
39
39
  ## Features
40
40
 
package/REFERENCE.md CHANGED
@@ -655,7 +655,7 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
655
655
  | `--aia-dropdown-offset` | `13px` | `13px` | Gap between the input box and the dropdown (the dropdown's margin toward the input). |
656
656
  | `--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. |
657
657
  | `--aia-footer-gap` | `12px` | `12px` | Breathing room above the dropdown footer (badge / keyboard hints), additive to the dropdown's 8px section gap. |
658
- | `--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. |
658
+ | `--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. |
659
659
  | `--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. |
660
660
  | `--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. |
661
661
  | `--aia-scrollbar-thumb` | `rgba(15, 23, 42, 0.22)` | `rgba(255, 255, 255, 0.28)` | That scrollbar's thumb. |
package/dist/index.js CHANGED
@@ -2174,6 +2174,7 @@
2174
2174
  .aia-badge-Fk9vg {
2175
2175
  display: inline-flex;
2176
2176
  align-items: center;
2177
+ white-space: nowrap;
2177
2178
  height: var(--aia-footer-row-height, 23px);
2178
2179
  padding: 2.5px 5.5px;
2179
2180
  border: 0.5px solid var(--aia-footer-badge-border, rgba(189, 189, 189, 0.51));
@@ -2195,7 +2196,7 @@
2195
2196
  justify-content: flex-end;
2196
2197
  }
2197
2198
  }
2198
- `,document.head.appendChild(e)}var Xe={footer:"aia-footer-qQQ7x",row:"aia-row-BgZ6Q",hintGroup:"aia-hintGroup-ZzbPf",brandLink:"aia-brandLink-r4f3R",key:"aia-key-Bz1H-",hint:"aia-hint-GKEOH",brand:"aia-brand-Al-lR",badge:"aia-badge-Fk9vg"};var Ge=require("react/jsx-runtime");function sa({isOptionHighlighted:e=!1,isInputEmpty:a=!1,strings:t=(0,ot.uiStringsFor)()}){let{key:o,hint:i}=(0,ot.getFooterHint)(e,a,t),[s,r]=(0,Lt.useState)(ot.ATTRIBUTION_URL);return(0,Lt.useEffect)(()=>{r((0,ot.buildAttributionUrl)())},[]),(0,Ge.jsx)("footer",{className:Xe.footer,"data-aia-footer":"",children:(0,Ge.jsxs)(Et,{justify:"between",noWrap:!0,className:Xe.row,children:[(0,Ge.jsxs)(Et,{gap:"5px",className:Xe.hintGroup,children:[(0,Ge.jsx)("kbd",{className:Xe.key,children:o}),(0,Ge.jsx)("span",{className:Xe.hint,children:i})]}),(0,Ge.jsxs)("a",{className:Xe.brandLink,href:s,target:"_blank",rel:"noopener noreferrer",children:[(0,Ge.jsx)("span",{className:Xe.brand,children:"AI"}),(0,Ge.jsx)("span",{className:Xe.badge,children:"Autocomplete"})]})]})})}var pe=require("react");if(typeof document<"u"&&!document.getElementById("ac-style-2feec02e")){let e=document.createElement("style");e.id="ac-style-2feec02e",e.textContent=`/* Location search \u2014 React copy of the vanilla rules in styles.css (and of the
2199
+ `,document.head.appendChild(e)}var Xe={footer:"aia-footer-qQQ7x",row:"aia-row-BgZ6Q",hintGroup:"aia-hintGroup-ZzbPf",brandLink:"aia-brandLink-r4f3R",key:"aia-key-Bz1H-",hint:"aia-hint-GKEOH",brand:"aia-brand-Al-lR",badge:"aia-badge-Fk9vg"};var Ge=require("react/jsx-runtime");function sa({isOptionHighlighted:e=!1,isInputEmpty:a=!1,strings:t=(0,ot.uiStringsFor)()}){let{key:o,hint:i}=(0,ot.getFooterHint)(e,a,t),[s,r]=(0,Lt.useState)(ot.ATTRIBUTION_URL);return(0,Lt.useEffect)(()=>{r((0,ot.buildAttributionUrl)())},[]),(0,Ge.jsx)("footer",{className:Xe.footer,"data-aia-footer":"",children:(0,Ge.jsxs)(Et,{justify:"between",noWrap:!0,className:Xe.row,children:[(0,Ge.jsxs)(Et,{gap:"5px",className:Xe.hintGroup,children:[(0,Ge.jsx)("kbd",{className:Xe.key,children:o}),(0,Ge.jsx)("span",{className:Xe.hint,children:i})]}),(0,Ge.jsx)("a",{className:Xe.brandLink,href:s,target:"_blank",rel:"noopener noreferrer",children:(0,Ge.jsx)("span",{className:Xe.badge,children:(0,Ge.jsx)("span",{className:Xe.brand,children:"Powered by Intent-1"})})})]})})}var pe=require("react");if(typeof document<"u"&&!document.getElementById("ac-style-2feec02e")){let e=document.createElement("style");e.id="ac-style-2feec02e",e.textContent=`/* Location search \u2014 React copy of the vanilla rules in styles.css (and of the
2199
2200
  Angular copy). The three are kept identical by
2200
2201
  packages/vanilla/tests/render/locationFieldParity.test.ts. */
2201
2202
  .aia-location-6-fsr {