@magicx-eng/ai-autocomplete-angular 0.60.0 → 0.60.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.
@@ -1,4 +1,4 @@
1
- import { WEEKDAY_LABELS as WEEKDAY_LABELS$1, cellIso as cellIso$1, monthLabel as monthLabel$1, cellDay as cellDay$1, isoDate as isoDate$1, isDimmedDay, dateCellMarks as dateCellMarks$1, visibleDateRange as visibleDateRange$1, SMART_SUGGESTION_SPARKLE_SVG, isSmartSuggestion, isTraditionalAutocompleteSuggestion, uiStringsFor, productInitial, productImageSources as productImageSources$1, productPhotoFill, attachProductRowWheel, optionsGridTemplateColumns, highlightParts, optionLabel as optionLabel$1, optionImageSources as optionImageSources$1, formatOptionCount as formatOptionCount$1, sanitizeOptionIconSvg as sanitizeOptionIconSvg$1, isMultiSelectToggleTap, planOptionsGrid, optionsShowLeadingVisuals as optionsShowLeadingVisuals$1, sameOptionRows, isOptionsGridMobileViewport, needsOptionsGridMeasurement, releasePanelHug, measureOptionsGrid, optionEnterDelayMs, TIME_WHEEL_COLUMNS, formatTime as formatTime$1, timeWheelRows, timeWheelIndex, TIME_WHEEL_ROW_HEIGHT, withTimeWheelIndex, timeWheelIndexFromScroll, buildAttributionUrl, containScroll, findMultiSelectDone, fitMultiSelectDone, syncPanelHug, queryLive, attachScrollArrow, destroyPanelMorph, settlePanelMorph, attachViewportFit, hasSkippablePill, isCalendarFormat, labelTraditionalAutocomplete, getFooterHint, dateFloorFor, AIAutocomplete, withoutTraditionalAutocomplete, dateSelectionFor, editingSuggestion, identifiedParamLabel, attachChipRemove, renderEditableContent, startingHintOptions, cancelStartingHint, chipIdFromTap, keepCaretOnChip, getCursorOffset, extractPlainText, plainTextLength, setCursorOffset, HANDOFF_NOT_HANDLED, ModeController, watchEditorHeight, buildSubmitResult as buildSubmitResult$1, withSkippedParams as withSkippedParams$1, formatDate as formatDate$1, parseDate as parseDate$1, parseLooseDate as parseLooseDate$1, DATE_RANGE_META_END as DATE_RANGE_META_END$1, DATE_RANGE_META_START as DATE_RANGE_META_START$1, formatDateRange as formatDateRange$1, parseLooseDateRange as parseLooseDateRange$1, selectedRangeFor as selectedRangeFor$1, parseTime as parseTime$1, TIME_META_KEY as TIME_META_KEY$1, formatPlace as formatPlace$1, LOCATION_META_KEY as LOCATION_META_KEY$1, DEFAULT_OPTION_COUNT_UNIT as DEFAULT_OPTION_COUNT_UNIT$1, optionCountLabel as optionCountLabel$1, optionHasImage as optionHasImage$1, optionImageSrc as optionImageSrc$1, PRODUCT_PATH_PREFIX as PRODUCT_PATH_PREFIX$1, productFromMatchedItem as productFromMatchedItem$1, productsFromCustomFields as productsFromCustomFields$1 } from '@magicx-eng/ai-autocomplete-vanilla';
1
+ import { WEEKDAY_LABELS as WEEKDAY_LABELS$1, cellIso as cellIso$1, monthLabel as monthLabel$1, cellDay as cellDay$1, isoDate as isoDate$1, isDimmedDay, dateCellMarks as dateCellMarks$1, visibleDateRange as visibleDateRange$1, SMART_SUGGESTION_SPARKLE_SVG, isSmartSuggestion, isTraditionalAutocompleteSuggestion, uiStringsFor, productInitial, productImageSources as productImageSources$1, productPhotoFill, attachProductRowWheel, optionsGridTemplateColumns, highlightParts, optionLabel as optionLabel$1, optionImageSources as optionImageSources$1, formatOptionCount as formatOptionCount$1, sanitizeOptionIconSvg as sanitizeOptionIconSvg$1, isMultiSelectToggleTap, planOptionsGrid, optionsShowLeadingVisuals as optionsShowLeadingVisuals$1, sameOptionRows, isOptionsGridMobileViewport, needsOptionsGridMeasurement, releasePanelHug, measureOptionsGrid, optionEnterDelayMs, TIME_WHEEL_COLUMNS, formatTime as formatTime$1, timeWheelRows, timeWheelIndex, TIME_WHEEL_ROW_HEIGHT, withTimeWheelIndex, timeWheelIndexFromScroll, buildAttributionUrl, containScroll, findMultiSelectDone, fitMultiSelectDone, syncPanelHug, queryLive, attachScrollArrow, destroyPanelMorph, settlePanelMorph, attachViewportFit, hasSkippablePill, isCalendarFormat, labelTraditionalAutocomplete, getFooterHint, dateFloorFor, AIAutocomplete, withoutTraditionalAutocomplete, dateSelectionFor, editingSuggestion, identifiedParamLabel, dropdownPillsFor, attachChipRemove, renderEditableContent, startingHintOptions, cancelStartingHint, chipIdFromTap, keepCaretOnChip, getCursorOffset, extractPlainText, plainTextLength, setCursorOffset, HANDOFF_NOT_HANDLED, ModeController, watchEditorHeight, buildSubmitResult as buildSubmitResult$1, withSkippedParams as withSkippedParams$1, formatDate as formatDate$1, parseDate as parseDate$1, parseLooseDate as parseLooseDate$1, DATE_RANGE_META_END as DATE_RANGE_META_END$1, DATE_RANGE_META_START as DATE_RANGE_META_START$1, formatDateRange as formatDateRange$1, parseLooseDateRange as parseLooseDateRange$1, selectedRangeFor as selectedRangeFor$1, parseTime as parseTime$1, TIME_META_KEY as TIME_META_KEY$1, formatPlace as formatPlace$1, LOCATION_META_KEY as LOCATION_META_KEY$1, DEFAULT_OPTION_COUNT_UNIT as DEFAULT_OPTION_COUNT_UNIT$1, optionCountLabel as optionCountLabel$1, optionHasImage as optionHasImage$1, optionImageSrc as optionImageSrc$1, PRODUCT_PATH_PREFIX as PRODUCT_PATH_PREFIX$1, productFromMatchedItem as productFromMatchedItem$1, productsFromCustomFields as productsFromCustomFields$1 } from '@magicx-eng/ai-autocomplete-vanilla';
2
2
  import * as i1 from '@angular/common';
3
3
  import { CommonModule, isPlatformBrowser } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
@@ -2687,7 +2687,7 @@ function computeDropdown(s, optionsPosition, hasProductAddToCart) {
2687
2687
  }
2688
2688
  : null;
2689
2689
  const dropdownActivePill = s.dropdownSuggestion ?? dropdownPill ?? activeSuggestion;
2690
- const dropdownPills = dropdownPill ? [dropdownPill] : s.actionableSuggestions;
2690
+ const dropdownPills = dropdownPillsFor(s.dropdownSuggestion, dropdownPill, s.actionableSuggestions);
2691
2691
  return {
2692
2692
  suggestions: dropdownActivePill ? [{ ...dropdownActivePill, options: s.dropdownOptions }] : [],
2693
2693
  activeIndex: s.activeDropdownIndex,