@magicx-eng/ai-autocomplete-vanilla 0.26.1 → 0.26.2
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 +12 -0
- package/dist/index.d.ts +12 -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
|
@@ -7,6 +7,16 @@ interface CompletedParam {
|
|
|
7
7
|
}
|
|
8
8
|
interface SuggestionOption {
|
|
9
9
|
text: string;
|
|
10
|
+
/**
|
|
11
|
+
* The option's real, matchable value — present when the option has a
|
|
12
|
+
* separate matchable value from its display `text` (e.g. a hierarchical
|
|
13
|
+
* option's `text` is its last path segment, "Probiotics", while `value` is
|
|
14
|
+
* the full path `text` was shortened from). Sent to the server on tap
|
|
15
|
+
* instead of `text` (see `toWireParam`), so grounding still matches the
|
|
16
|
+
* full, collision-safe value while the row shows a short label. Falls
|
|
17
|
+
* back to `text` when absent.
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
10
20
|
/**
|
|
11
21
|
* The icon's name — an identifier such as `"apple"`, exposed on the row as
|
|
12
22
|
* `data-aia-icon` when its `icon_svg` draws. Never rendered as text: a row
|
|
@@ -171,6 +181,8 @@ interface CustomFieldsReport {
|
|
|
171
181
|
interface CompletedParamState extends CompletedParam {
|
|
172
182
|
id: string;
|
|
173
183
|
text: string;
|
|
184
|
+
/** The originating option's `value` (see {@link SuggestionOption.value}), carried over so `toWireParam` can send it instead of the shortened `text`. */
|
|
185
|
+
value?: string;
|
|
174
186
|
/** Source suggestion's `type` — used by re-edit mode to render the dropdown pill. */
|
|
175
187
|
suggestionType: string;
|
|
176
188
|
/** Source suggestion's `text` — used by re-edit mode to render the dropdown pill. */
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,16 @@ interface CompletedParam {
|
|
|
7
7
|
}
|
|
8
8
|
interface SuggestionOption {
|
|
9
9
|
text: string;
|
|
10
|
+
/**
|
|
11
|
+
* The option's real, matchable value — present when the option has a
|
|
12
|
+
* separate matchable value from its display `text` (e.g. a hierarchical
|
|
13
|
+
* option's `text` is its last path segment, "Probiotics", while `value` is
|
|
14
|
+
* the full path `text` was shortened from). Sent to the server on tap
|
|
15
|
+
* instead of `text` (see `toWireParam`), so grounding still matches the
|
|
16
|
+
* full, collision-safe value while the row shows a short label. Falls
|
|
17
|
+
* back to `text` when absent.
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
10
20
|
/**
|
|
11
21
|
* The icon's name — an identifier such as `"apple"`, exposed on the row as
|
|
12
22
|
* `data-aia-icon` when its `icon_svg` draws. Never rendered as text: a row
|
|
@@ -171,6 +181,8 @@ interface CustomFieldsReport {
|
|
|
171
181
|
interface CompletedParamState extends CompletedParam {
|
|
172
182
|
id: string;
|
|
173
183
|
text: string;
|
|
184
|
+
/** The originating option's `value` (see {@link SuggestionOption.value}), carried over so `toWireParam` can send it instead of the shortened `text`. */
|
|
185
|
+
value?: string;
|
|
174
186
|
/** Source suggestion's `type` — used by re-edit mode to render the dropdown pill. */
|
|
175
187
|
suggestionType: string;
|
|
176
188
|
/** Source suggestion's `text` — used by re-edit mode to render the dropdown pill. */
|