@magicx-eng/ai-autocomplete-vanilla 0.38.3 → 0.39.0
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 +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ const ac = new AIAutocomplete(container, {
|
|
|
80
80
|
maskCompletedText: false, // when true, omits completed params' text from API requests (PII masking)
|
|
81
81
|
commitOnWordEnd: false, // true = a word still being typed never becomes a chip until a space, Enter, or Tab ends it (exact matches and server identified params). Picking an option is unchanged.
|
|
82
82
|
additionalContext: { tier: "gold" }, // optional user context, to personalize suggestions and options
|
|
83
|
+
language: "es", // BCP 47 tag sent with every suggestion request. Default: navigator.language, else "en-US"
|
|
83
84
|
|
|
84
85
|
// Appearance
|
|
85
86
|
mode: "auto", // "light" | "dark" | "auto"
|
package/dist/index.d.mts
CHANGED
|
@@ -931,6 +931,11 @@ interface CoreOptions {
|
|
|
931
931
|
* parameters and options to them.
|
|
932
932
|
*/
|
|
933
933
|
additionalContext?: Record<string, unknown>;
|
|
934
|
+
/**
|
|
935
|
+
* BCP 47 language tag (e.g. `"es"`), sent with every suggestion request.
|
|
936
|
+
* Default: the browser language (`navigator.language`), else `"en-US"`.
|
|
937
|
+
*/
|
|
938
|
+
language?: string;
|
|
934
939
|
/**
|
|
935
940
|
* Stable id for this visitor, kept by the host across page loads (e.g. a
|
|
936
941
|
* first-party cookie). Rides on funnel telemetry so searches can be joined
|
package/dist/index.d.ts
CHANGED
|
@@ -931,6 +931,11 @@ interface CoreOptions {
|
|
|
931
931
|
* parameters and options to them.
|
|
932
932
|
*/
|
|
933
933
|
additionalContext?: Record<string, unknown>;
|
|
934
|
+
/**
|
|
935
|
+
* BCP 47 language tag (e.g. `"es"`), sent with every suggestion request.
|
|
936
|
+
* Default: the browser language (`navigator.language`), else `"en-US"`.
|
|
937
|
+
*/
|
|
938
|
+
language?: string;
|
|
934
939
|
/**
|
|
935
940
|
* Stable id for this visitor, kept by the host across page loads (e.g. a
|
|
936
941
|
* first-party cookie). Rides on funnel telemetry so searches can be joined
|