@magicx-eng/ai-autocomplete-vanilla 0.66.0 → 0.67.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 +1 -0
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +296 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +296 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,6 +104,7 @@ const ac = new AIAutocomplete(container, {
|
|
|
104
104
|
mode: "auto", // "light" | "dark" | "auto"
|
|
105
105
|
optionsPosition: "below", // "above" | "below"
|
|
106
106
|
animations: true, // press, shimmer, typed placeholder, staggered options, scroll arrow
|
|
107
|
+
optionsStyle: "floating", // "classic" = the old stroke, size and motion
|
|
107
108
|
pillPlacement: "dropdown", // "inline" | "dropdown" | "hidden"
|
|
108
109
|
dropdownTrigger: "auto", // "auto" | "manual" | "hidden"
|
|
109
110
|
closeDropdownOnBlur: true, // false = keep dropdown open even when input loses focus
|
package/dist/index.d.mts
CHANGED
|
@@ -1330,6 +1330,14 @@ interface CoreOptions {
|
|
|
1330
1330
|
mode?: AppearanceMode;
|
|
1331
1331
|
optionsPosition?: "above" | "below";
|
|
1332
1332
|
animations?: boolean;
|
|
1333
|
+
/**
|
|
1334
|
+
* The options box's look and motion. Default `"floating"`: no stroke, sized
|
|
1335
|
+
* to the text, and it dissolves in where it sits and glides between
|
|
1336
|
+
* questions. `"classic"` brings back the earlier stroke, size and motion:
|
|
1337
|
+
* it unfolds out of the input with a stroke, at full size. The new header
|
|
1338
|
+
* layout stays.
|
|
1339
|
+
*/
|
|
1340
|
+
optionsStyle?: "floating" | "classic";
|
|
1333
1341
|
/** When the dropdown appears. "auto" = shows when options available. "manual" = only on pill tap. "hidden" = never. Default: "auto". */
|
|
1334
1342
|
dropdownTrigger?: "auto" | "manual" | "hidden";
|
|
1335
1343
|
/** When true (default), the dropdown closes when the input loses focus. Set to false to keep it open whenever options are available, regardless of focus. */
|
|
@@ -2671,7 +2679,7 @@ declare function optionLabel(option: {
|
|
|
2671
2679
|
* runs between two open renders. All three packages call `settlePanelMorph`
|
|
2672
2680
|
* after every commit of the dropdown, so the motion can't drift apart; it is a
|
|
2673
2681
|
* no-op where Web Animations or layout are missing (jsdom) and under reduced
|
|
2674
|
-
* motion or `
|
|
2682
|
+
* motion, `animations: false` or `optionsStyle: "classic"`.
|
|
2675
2683
|
*/
|
|
2676
2684
|
declare const PANEL_GLIDE_MS = 360;
|
|
2677
2685
|
declare const PANEL_LEAVE_MS = 280;
|
package/dist/index.d.ts
CHANGED
|
@@ -1330,6 +1330,14 @@ interface CoreOptions {
|
|
|
1330
1330
|
mode?: AppearanceMode;
|
|
1331
1331
|
optionsPosition?: "above" | "below";
|
|
1332
1332
|
animations?: boolean;
|
|
1333
|
+
/**
|
|
1334
|
+
* The options box's look and motion. Default `"floating"`: no stroke, sized
|
|
1335
|
+
* to the text, and it dissolves in where it sits and glides between
|
|
1336
|
+
* questions. `"classic"` brings back the earlier stroke, size and motion:
|
|
1337
|
+
* it unfolds out of the input with a stroke, at full size. The new header
|
|
1338
|
+
* layout stays.
|
|
1339
|
+
*/
|
|
1340
|
+
optionsStyle?: "floating" | "classic";
|
|
1333
1341
|
/** When the dropdown appears. "auto" = shows when options available. "manual" = only on pill tap. "hidden" = never. Default: "auto". */
|
|
1334
1342
|
dropdownTrigger?: "auto" | "manual" | "hidden";
|
|
1335
1343
|
/** When true (default), the dropdown closes when the input loses focus. Set to false to keep it open whenever options are available, regardless of focus. */
|
|
@@ -2671,7 +2679,7 @@ declare function optionLabel(option: {
|
|
|
2671
2679
|
* runs between two open renders. All three packages call `settlePanelMorph`
|
|
2672
2680
|
* after every commit of the dropdown, so the motion can't drift apart; it is a
|
|
2673
2681
|
* no-op where Web Animations or layout are missing (jsdom) and under reduced
|
|
2674
|
-
* motion or `
|
|
2682
|
+
* motion, `animations: false` or `optionsStyle: "classic"`.
|
|
2675
2683
|
*/
|
|
2676
2684
|
declare const PANEL_GLIDE_MS = 360;
|
|
2677
2685
|
declare const PANEL_LEAVE_MS = 280;
|