@magicx-eng/ai-autocomplete-vanilla 0.73.3 → 0.74.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/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -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/dist/index.d.mts
CHANGED
|
@@ -203,6 +203,8 @@ interface AutocompleteRequest {
|
|
|
203
203
|
client_option_parameters: string[];
|
|
204
204
|
/** Tells the server this client can show option-value completions of the word being typed. */
|
|
205
205
|
accepts_traditional_autocomplete?: boolean;
|
|
206
|
+
/** Set on a preview sent while an IME composes. The server answers completions only, or nothing. */
|
|
207
|
+
traditional_autocomplete_only?: boolean;
|
|
206
208
|
};
|
|
207
209
|
meta: {
|
|
208
210
|
request_id: string;
|
|
@@ -1863,6 +1865,15 @@ declare class AIAutocomplete {
|
|
|
1863
1865
|
/** Whether cards draw a cart button: an `onProductAddToCart` handler is set. */
|
|
1864
1866
|
hasProductAddToCart(): boolean;
|
|
1865
1867
|
handleTextChange(value: string): void;
|
|
1868
|
+
/**
|
|
1869
|
+
* Preview the editor text while an IME composes a syllable. The editor
|
|
1870
|
+
* calls `handleTextChange` again at compositionend.
|
|
1871
|
+
*
|
|
1872
|
+
* The preview request is debounced like typing. Its answer is shown only
|
|
1873
|
+
* when it carries completions for the word. It does not change the text,
|
|
1874
|
+
* the params, the product strip or any event.
|
|
1875
|
+
*/
|
|
1876
|
+
handleCompositionText(value: string): void;
|
|
1866
1877
|
private applyTextChange;
|
|
1867
1878
|
/** Page the datepicker back one month. No-op unless a date pill is active. */
|
|
1868
1879
|
showPreviousMonth(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -203,6 +203,8 @@ interface AutocompleteRequest {
|
|
|
203
203
|
client_option_parameters: string[];
|
|
204
204
|
/** Tells the server this client can show option-value completions of the word being typed. */
|
|
205
205
|
accepts_traditional_autocomplete?: boolean;
|
|
206
|
+
/** Set on a preview sent while an IME composes. The server answers completions only, or nothing. */
|
|
207
|
+
traditional_autocomplete_only?: boolean;
|
|
206
208
|
};
|
|
207
209
|
meta: {
|
|
208
210
|
request_id: string;
|
|
@@ -1863,6 +1865,15 @@ declare class AIAutocomplete {
|
|
|
1863
1865
|
/** Whether cards draw a cart button: an `onProductAddToCart` handler is set. */
|
|
1864
1866
|
hasProductAddToCart(): boolean;
|
|
1865
1867
|
handleTextChange(value: string): void;
|
|
1868
|
+
/**
|
|
1869
|
+
* Preview the editor text while an IME composes a syllable. The editor
|
|
1870
|
+
* calls `handleTextChange` again at compositionend.
|
|
1871
|
+
*
|
|
1872
|
+
* The preview request is debounced like typing. Its answer is shown only
|
|
1873
|
+
* when it carries completions for the word. It does not change the text,
|
|
1874
|
+
* the params, the product strip or any event.
|
|
1875
|
+
*/
|
|
1876
|
+
handleCompositionText(value: string): void;
|
|
1866
1877
|
private applyTextChange;
|
|
1867
1878
|
/** Page the datepicker back one month. No-op unless a date pill is active. */
|
|
1868
1879
|
showPreviousMonth(): void;
|