@magicx-eng/ai-autocomplete-vanilla 0.26.0 → 0.26.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/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -65,6 +65,7 @@ interface AutocompleteRequest {
|
|
|
65
65
|
language: string;
|
|
66
66
|
client_version: string;
|
|
67
67
|
session_id: string;
|
|
68
|
+
source?: "full-sdk" | "headless-sdk";
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
interface AutocompleteResponse {
|
|
@@ -832,9 +833,10 @@ interface CoreOptions {
|
|
|
832
833
|
*/
|
|
833
834
|
styleRoot?: Document | ShadowRoot;
|
|
834
835
|
/**
|
|
835
|
-
* Identifies which SDK surface is in use
|
|
836
|
-
*
|
|
837
|
-
*
|
|
836
|
+
* Identifies which SDK surface is in use — sent as meta.source on both
|
|
837
|
+
* /api/suggest and telemetry events. The hook can't distinguish on its own
|
|
838
|
+
* — the Tier 1 component sets "full-sdk" when wiring it up. Default:
|
|
839
|
+
* "headless-sdk".
|
|
838
840
|
* @internal
|
|
839
841
|
*/
|
|
840
842
|
source?: "full-sdk" | "headless-sdk";
|
|
@@ -1134,6 +1136,7 @@ declare class AIAutocomplete {
|
|
|
1134
1136
|
update(opts: CoreUpdateOptions): void;
|
|
1135
1137
|
selectOption(option: SuggestionOption): void;
|
|
1136
1138
|
private startSelectionAnimationTimer;
|
|
1139
|
+
private resolveSource;
|
|
1137
1140
|
private fireTelemetry;
|
|
1138
1141
|
private setupContainer;
|
|
1139
1142
|
private buildAndRenderFull;
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ interface AutocompleteRequest {
|
|
|
65
65
|
language: string;
|
|
66
66
|
client_version: string;
|
|
67
67
|
session_id: string;
|
|
68
|
+
source?: "full-sdk" | "headless-sdk";
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
interface AutocompleteResponse {
|
|
@@ -832,9 +833,10 @@ interface CoreOptions {
|
|
|
832
833
|
*/
|
|
833
834
|
styleRoot?: Document | ShadowRoot;
|
|
834
835
|
/**
|
|
835
|
-
* Identifies which SDK surface is in use
|
|
836
|
-
*
|
|
837
|
-
*
|
|
836
|
+
* Identifies which SDK surface is in use — sent as meta.source on both
|
|
837
|
+
* /api/suggest and telemetry events. The hook can't distinguish on its own
|
|
838
|
+
* — the Tier 1 component sets "full-sdk" when wiring it up. Default:
|
|
839
|
+
* "headless-sdk".
|
|
838
840
|
* @internal
|
|
839
841
|
*/
|
|
840
842
|
source?: "full-sdk" | "headless-sdk";
|
|
@@ -1134,6 +1136,7 @@ declare class AIAutocomplete {
|
|
|
1134
1136
|
update(opts: CoreUpdateOptions): void;
|
|
1135
1137
|
selectOption(option: SuggestionOption): void;
|
|
1136
1138
|
private startSelectionAnimationTimer;
|
|
1139
|
+
private resolveSource;
|
|
1137
1140
|
private fireTelemetry;
|
|
1138
1141
|
private setupContainer;
|
|
1139
1142
|
private buildAndRenderFull;
|