@envive-ai/react-widgets 0.1.2 → 0.1.3
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/SearchResults/SearchResults.cjs +86 -0
- package/dist/SearchResults/SearchResults.js +84 -0
- package/dist/SearchResults/SearchResultsWidget.cjs +34 -0
- package/dist/SearchResults/SearchResultsWidget.js +33 -0
- package/dist/SearchResults/index.cjs +2 -122
- package/dist/SearchResults/index.d.cts +2 -0
- package/dist/SearchResults/index.d.ts +2 -0
- package/dist/SearchResults/index.js +1 -119
- package/dist/SearchResults/withSearchResults.cjs +18 -0
- package/dist/SearchResults/withSearchResults.js +17 -0
- package/dist/SearchZeroState/SearchIcon.cjs +48 -0
- package/dist/SearchZeroState/SearchIcon.js +45 -0
- package/dist/SearchZeroState/SearchOverlay.cjs +42 -0
- package/dist/SearchZeroState/SearchOverlay.js +39 -0
- package/dist/SearchZeroState/SearchZeroState.cjs +173 -0
- package/dist/SearchZeroState/SearchZeroState.d.cts +7 -0
- package/dist/SearchZeroState/SearchZeroState.d.ts +7 -0
- package/dist/SearchZeroState/SearchZeroState.js +171 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.cjs +23 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.d.cts +15 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.d.ts +15 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.js +22 -0
- package/dist/SearchZeroState/components/RecommendedProducts.cjs +74 -0
- package/dist/SearchZeroState/components/RecommendedProducts.js +72 -0
- package/dist/SearchZeroState/index.cjs +4 -3070
- package/dist/SearchZeroState/index.d.cts +4 -0
- package/dist/SearchZeroState/index.d.ts +4 -0
- package/dist/SearchZeroState/index.js +2 -3065
- package/dist/SearchZeroState/overlay/overlayHostLocator.cjs +21 -0
- package/dist/SearchZeroState/overlay/overlayHostLocator.js +20 -0
- package/dist/SearchZeroState/types.d.cts +10 -0
- package/dist/SearchZeroState/types.d.ts +10 -0
- package/dist/SearchZeroState/zeroStateSearchVariants.cjs +21 -0
- package/dist/SearchZeroState/zeroStateSearchVariants.js +20 -0
- package/dist/SuggestionBar/SuggestionBar.cjs +74 -0
- package/dist/SuggestionBar/{index-DZU9kbWS.d.cts → SuggestionBar.d.cts} +4 -9
- package/dist/SuggestionBar/{index-DyXd4-b7.d.ts → SuggestionBar.d.ts} +6 -11
- package/dist/{SuggestionBar-BHAXhgcd.js → SuggestionBar/SuggestionBar.js} +7 -59
- package/dist/SuggestionBar/index.cjs +3 -3
- package/dist/SuggestionBar/index.d.cts +3 -0
- package/dist/SuggestionBar/index.d.ts +3 -0
- package/dist/SuggestionBar/index.js +2 -2
- package/dist/SuggestionBar/types.cjs +10 -0
- package/dist/SuggestionBar/types.d.cts +7 -0
- package/dist/SuggestionBar/types.d.ts +7 -0
- package/dist/SuggestionBar/types.js +9 -0
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +76 -0
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.cts +6 -0
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +6 -0
- package/dist/{SuggestionButtonContainer-s2e9YGW_.js → SuggestionButtonContainer/SuggestionButtonContainer.js} +6 -98
- package/dist/SuggestionButtonContainer/index.cjs +1 -1
- package/dist/SuggestionButtonContainer/index.d.cts +3 -0
- package/dist/SuggestionButtonContainer/index.d.ts +3 -0
- package/dist/SuggestionButtonContainer/index.js +1 -1
- package/dist/SuggestionButtonContainer/{index-B_X537jw.d.cts → types.d.cts} +1 -4
- package/dist/SuggestionButtonContainer/{index-vwelzDzM.d.ts → types.d.ts} +1 -4
- package/dist/{chunk-DSlc6foC.cjs → _virtual/rolldown_runtime.cjs} +2 -12
- package/dist/node_modules/react-icons/lib/iconBase.cjs +121 -0
- package/dist/node_modules/react-icons/lib/iconBase.js +119 -0
- package/dist/node_modules/react-icons/lib/iconContext.cjs +17 -0
- package/dist/node_modules/react-icons/lib/iconContext.js +14 -0
- package/dist/node_modules/react-icons/md/index.cjs +35 -0
- package/dist/node_modules/react-icons/md/index.js +35 -0
- package/dist/{SuggestionBar-CK5aU2bb.cjs → node_modules/react-indiana-drag-scroll/dist/index.cjs} +6 -132
- package/dist/node_modules/uuid/dist/native.js +6 -0
- package/dist/node_modules/uuid/dist/rng.js +13 -0
- package/dist/node_modules/uuid/dist/stringify.js +9 -0
- package/dist/node_modules/uuid/dist/v4.js +27 -0
- package/dist/node_modules/uuid/dist-node/native.cjs +8 -0
- package/dist/node_modules/uuid/dist-node/rng.cjs +16 -0
- package/dist/node_modules/uuid/dist-node/stringify.cjs +10 -0
- package/dist/node_modules/uuid/dist-node/v4.cjs +27 -0
- package/dist/packages/components/dist/components/Accordion/Accordion.cjs +80 -0
- package/dist/packages/components/dist/components/Accordion/Accordion.js +78 -0
- package/dist/packages/components/dist/components/Accordion/index.cjs +1 -0
- package/dist/packages/components/dist/components/Accordion/index.js +1 -0
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.cjs +30 -0
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.js +29 -0
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.cjs +56 -0
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.js +54 -0
- package/dist/packages/components/dist/components/ButtonBase/index.cjs +2 -0
- package/dist/packages/components/dist/components/ButtonBase/index.js +2 -0
- package/dist/packages/components/dist/components/ButtonBase/types.cjs +11 -0
- package/dist/packages/components/dist/components/ButtonBase/types.js +10 -0
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.cjs +45 -0
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.js +42 -0
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.cjs +33 -0
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.js +30 -0
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.cjs +45 -0
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.js +42 -0
- package/dist/packages/components/dist/components/ImageWithFallback/index.cjs +1 -0
- package/dist/packages/components/dist/components/ImageWithFallback/index.js +1 -0
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.cjs +30 -0
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.js +29 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.cjs +26 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.js +24 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.cjs +122 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.js +120 -0
- package/dist/packages/components/dist/components/ModalSheet/index.cjs +1 -0
- package/dist/packages/components/dist/components/ModalSheet/index.js +1 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.cjs +116 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.js +114 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.cjs +38 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.js +36 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCard.cjs +153 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCard.js +149 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.cjs +33 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.js +31 -0
- package/dist/packages/components/dist/components/ProductCard/index.cjs +4 -0
- package/dist/packages/components/dist/components/ProductCard/index.js +4 -0
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.cjs +49 -0
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.js +45 -0
- package/dist/packages/components/dist/components/ProductCard/types.cjs +10 -0
- package/dist/packages/components/dist/components/ProductCard/types.js +9 -0
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.cjs +43 -0
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.js +41 -0
- package/dist/packages/components/dist/components/ProductGrid/index.cjs +2 -0
- package/dist/packages/components/dist/components/ProductGrid/index.js +2 -0
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.cjs +21 -0
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.js +20 -0
- package/dist/packages/components/dist/components/RadioButton/RadioButton.cjs +74 -0
- package/dist/packages/components/dist/components/RadioButton/RadioButton.js +72 -0
- package/dist/packages/components/dist/components/RadioButton/index.cjs +1 -0
- package/dist/packages/components/dist/components/RadioButton/index.js +1 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.cjs +42 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.js +39 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/index.cjs +1 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/index.js +1 -0
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.cjs +53 -0
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.js +51 -0
- package/dist/packages/components/dist/components/RecommendedProducts/index.cjs +3 -0
- package/dist/packages/components/dist/components/RecommendedProducts/index.js +3 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.cjs +72 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.js +69 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/index.cjs +1 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/index.js +1 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.cjs +134 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.js +132 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.cjs +48 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.js +46 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.cjs +42 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.js +40 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.cjs +6 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.js +4 -0
- package/dist/packages/components/dist/components/SearchFilter/index.cjs +5 -0
- package/dist/packages/components/dist/components/SearchFilter/index.js +5 -0
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.cjs +27 -0
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.js +26 -0
- package/dist/packages/components/dist/components/SearchFilter/utils.cjs +11 -0
- package/dist/packages/components/dist/components/SearchFilter/utils.js +9 -0
- package/dist/packages/components/dist/components/SearchInput/SearchInput.cjs +81 -0
- package/dist/packages/components/dist/components/SearchInput/SearchInput.js +78 -0
- package/dist/packages/components/dist/components/SearchInput/index.cjs +2 -0
- package/dist/packages/components/dist/components/SearchInput/index.js +2 -0
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.cjs +15 -0
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.js +15 -0
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.cjs +57 -0
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.js +55 -0
- package/dist/packages/components/dist/components/SearchInputForm/index.cjs +1 -0
- package/dist/packages/components/dist/components/SearchInputForm/index.js +1 -0
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.cjs +52 -0
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.js +50 -0
- package/dist/packages/components/dist/components/SearchResultsContent/index.cjs +1 -0
- package/dist/packages/components/dist/components/SearchResultsContent/index.js +1 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.cjs +24 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.js +23 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.js +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +36 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +35 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.js +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +9 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.js +9 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.cjs +2 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.js +2 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs +34 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +34 -0
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.cjs +56 -0
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.js +54 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.cjs +53 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.js +51 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +52 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +51 -0
- package/dist/packages/components/dist/components/SearchResultsStates/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsStates/index.js +3 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +60 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +57 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.js +3 -0
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.cjs +77 -0
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.js +75 -0
- package/dist/packages/components/dist/components/SparkleAnimation/index.cjs +2 -0
- package/dist/packages/components/dist/components/SparkleAnimation/index.js +2 -0
- package/dist/packages/components/dist/components/SparkleAnimation/types.cjs +12 -0
- package/dist/packages/components/dist/components/SparkleAnimation/types.js +11 -0
- package/dist/packages/components/dist/components/Spinner/Spinner.cjs +40 -0
- package/dist/packages/components/dist/components/Spinner/Spinner.js +38 -0
- package/dist/packages/components/dist/components/Spinner/index.cjs +1 -0
- package/dist/packages/components/dist/components/Spinner/index.js +1 -0
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.cjs +193 -0
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.js +188 -0
- package/dist/packages/components/dist/components/SuggestionButton/index.cjs +1 -0
- package/dist/packages/components/dist/components/SuggestionButton/index.js +1 -0
- package/dist/packages/components/dist/components/TextInput/TextInput.cjs +34 -0
- package/dist/packages/components/dist/components/TextInput/TextInput.js +31 -0
- package/dist/packages/components/dist/components/TextInput/index.cjs +1 -0
- package/dist/packages/components/dist/components/TextInput/index.js +1 -0
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.cjs +63 -0
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.js +61 -0
- package/dist/packages/components/dist/components/ToggleButton/index.cjs +1 -0
- package/dist/packages/components/dist/components/ToggleButton/index.js +1 -0
- package/dist/packages/components/dist/components/Typography/Typography.cjs +53 -0
- package/dist/packages/components/dist/components/Typography/Typography.js +50 -0
- package/dist/packages/components/dist/components/Typography/index.cjs +2 -0
- package/dist/packages/components/dist/components/Typography/index.js +2 -0
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.cjs +99 -0
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.js +96 -0
- package/dist/packages/components/dist/components/Typography/util.cjs +10 -0
- package/dist/packages/components/dist/components/Typography/util.js +10 -0
- package/dist/packages/components/dist/logging/logger.cjs +20 -0
- package/dist/packages/components/dist/logging/logger.js +19 -0
- package/dist/packages/components/dist/models/colorsConfig.cjs +28 -0
- package/dist/packages/components/dist/models/colorsConfig.js +26 -0
- package/dist/packages/components/dist/util/formatPrice.cjs +14 -0
- package/dist/packages/components/dist/util/formatPrice.js +13 -0
- package/dist/packages/components/dist/util/index.cjs +3 -0
- package/dist/packages/components/dist/util/index.js +3 -0
- package/dist/packages/components/dist/util/useScrollDirection.cjs +39 -0
- package/dist/packages/components/dist/util/useScrollDirection.js +38 -0
- package/dist/packages/components/dist/util/useStickyVisibility.cjs +38 -0
- package/dist/packages/components/dist/util/useStickyVisibility.js +37 -0
- package/dist/packages/icons/dist/AiSearchBold.cjs +38 -0
- package/dist/packages/icons/dist/AiSearchBold.js +38 -0
- package/dist/packages/icons/dist/AiSearchThin.cjs +35 -0
- package/dist/packages/icons/dist/AiSearchThin.js +35 -0
- package/dist/packages/icons/dist/ChevronDown.cjs +23 -0
- package/dist/packages/icons/dist/ChevronDown.js +23 -0
- package/dist/packages/icons/dist/FourPointStar.cjs +22 -0
- package/dist/packages/icons/dist/FourPointStar.js +22 -0
- package/dist/packages/icons/dist/IconClose.cjs +26 -0
- package/dist/packages/icons/dist/IconClose.js +26 -0
- package/dist/packages/icons/dist/IconCloseVariant.cjs +22 -0
- package/dist/packages/icons/dist/IconCloseVariant.js +22 -0
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.cjs +39 -0
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.js +39 -0
- package/dist/packages/icons/dist/OutlinedStar.cjs +22 -0
- package/dist/packages/icons/dist/OutlinedStar.js +22 -0
- package/dist/packages/icons/dist/SettingsVariant.cjs +72 -0
- package/dist/packages/icons/dist/SettingsVariant.js +72 -0
- package/dist/packages/icons/dist/Sparkles.cjs +43 -0
- package/dist/packages/icons/dist/Sparkles.js +43 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +27 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +329 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +329 -0
- package/dist/packages/icons/dist/node_modules/react/index.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/index.js +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +13 -0
- package/dist/util/useHorizontalScrollAnimation.cjs +88 -0
- package/dist/util/useHorizontalScrollAnimation.js +87 -0
- package/dist/util/useReducedMotionWithOverride.cjs +15 -0
- package/dist/util/useReducedMotionWithOverride.js +14 -0
- package/package.json +3 -5
- package/src/SearchZeroState/SearchZeroState.tsx +1 -1
- package/src/SuggestionBar/SuggestionBar.tsx +2 -2
- package/dist/SearchZeroState/index-DSFtalZR.d.ts +0 -27
- package/dist/SearchZeroState/index-bEcxYOSF.d.cts +0 -27
- package/dist/SuggestionButtonContainer-Dm38gJiJ.cjs +0 -173
- /package/dist/SearchResults/{index-DCTxvwmv.d.cts → SearchResultsWidget.d.cts} +0 -0
- /package/dist/SearchResults/{index-CYPV3XE0.d.ts → SearchResultsWidget.d.ts} +0 -0
|
@@ -14,7 +14,4 @@ interface SuggestionButtonContainerProps extends TestProps {
|
|
|
14
14
|
buttonBorderRadius?: 'sm' | 'md' | 'lg';
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
|
|
18
|
-
declare const SuggestionButtonContainer: React.FC<SuggestionButtonContainerProps>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { SuggestionButtonContainer, SuggestionButtonContainerProps };
|
|
17
|
+
export { SuggestionButtonContainerProps };
|
|
@@ -14,7 +14,4 @@ interface SuggestionButtonContainerProps extends TestProps {
|
|
|
14
14
|
buttonBorderRadius?: 'sm' | 'md' | 'lg';
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
|
|
18
|
-
declare const SuggestionButtonContainer: React.FC<SuggestionButtonContainerProps>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { SuggestionButtonContainer, SuggestionButtonContainerProps };
|
|
17
|
+
export { SuggestionButtonContainerProps };
|
|
@@ -29,15 +29,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
get: function () {
|
|
35
|
-
return __commonJS;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(exports, '__toESM', {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function () {
|
|
41
|
-
return __toESM;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
32
|
+
exports.__commonJS = __commonJS;
|
|
33
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_iconContext = require('./iconContext.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/react-icons/lib/iconBase.mjs
|
|
7
|
+
var _excluded = [
|
|
8
|
+
"attr",
|
|
9
|
+
"size",
|
|
10
|
+
"title"
|
|
11
|
+
];
|
|
12
|
+
function _objectWithoutProperties(source, excluded) {
|
|
13
|
+
if (source == null) return {};
|
|
14
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
15
|
+
var key, i;
|
|
16
|
+
if (Object.getOwnPropertySymbols) {
|
|
17
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
18
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
19
|
+
key = sourceSymbolKeys[i];
|
|
20
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
21
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
22
|
+
target[key] = source[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return target;
|
|
26
|
+
}
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
28
|
+
if (source == null) return {};
|
|
29
|
+
var target = {};
|
|
30
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
32
|
+
target[key] = source[key];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
}
|
|
36
|
+
function _extends() {
|
|
37
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
38
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
39
|
+
var source = arguments[i];
|
|
40
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
return _extends.apply(this, arguments);
|
|
45
|
+
}
|
|
46
|
+
function ownKeys(e, r) {
|
|
47
|
+
var t = Object.keys(e);
|
|
48
|
+
if (Object.getOwnPropertySymbols) {
|
|
49
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
50
|
+
r && (o = o.filter(function(r$1) {
|
|
51
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
52
|
+
})), t.push.apply(t, o);
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
}
|
|
56
|
+
function _objectSpread(e) {
|
|
57
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
58
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
59
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
60
|
+
_defineProperty(e, r$1, t[r$1]);
|
|
61
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
62
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return e;
|
|
66
|
+
}
|
|
67
|
+
function _defineProperty(obj, key, value) {
|
|
68
|
+
key = _toPropertyKey(key);
|
|
69
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
70
|
+
value,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true
|
|
74
|
+
});
|
|
75
|
+
else obj[key] = value;
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
function _toPropertyKey(t) {
|
|
79
|
+
var i = _toPrimitive(t, "string");
|
|
80
|
+
return "symbol" == typeof i ? i : i + "";
|
|
81
|
+
}
|
|
82
|
+
function _toPrimitive(t, r) {
|
|
83
|
+
if ("object" != typeof t || !t) return t;
|
|
84
|
+
var e = t[Symbol.toPrimitive];
|
|
85
|
+
if (void 0 !== e) {
|
|
86
|
+
var i = e.call(t, r || "default");
|
|
87
|
+
if ("object" != typeof i) return i;
|
|
88
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
89
|
+
}
|
|
90
|
+
return ("string" === r ? String : Number)(t);
|
|
91
|
+
}
|
|
92
|
+
function Tree2Element(tree) {
|
|
93
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ react.default.createElement(node.tag, _objectSpread({ key: i }, node.attr), Tree2Element(node.child)));
|
|
94
|
+
}
|
|
95
|
+
function GenIcon(data) {
|
|
96
|
+
return (props) => /* @__PURE__ */ react.default.createElement(IconBase, _extends({ attr: _objectSpread({}, data.attr) }, props), Tree2Element(data.child));
|
|
97
|
+
}
|
|
98
|
+
function IconBase(props) {
|
|
99
|
+
var elem = (conf) => {
|
|
100
|
+
var { attr, size, title } = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
101
|
+
var computedSize = size || conf.size || "1em";
|
|
102
|
+
var className;
|
|
103
|
+
if (conf.className) className = conf.className;
|
|
104
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
105
|
+
return /* @__PURE__ */ react.default.createElement("svg", _extends({
|
|
106
|
+
stroke: "currentColor",
|
|
107
|
+
fill: "currentColor",
|
|
108
|
+
strokeWidth: "0"
|
|
109
|
+
}, conf.attr, attr, svgProps, {
|
|
110
|
+
className,
|
|
111
|
+
style: _objectSpread(_objectSpread({ color: props.color || conf.color }, conf.style), props.style),
|
|
112
|
+
height: computedSize,
|
|
113
|
+
width: computedSize,
|
|
114
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
115
|
+
}), title && /* @__PURE__ */ react.default.createElement("title", null, title), props.children);
|
|
116
|
+
};
|
|
117
|
+
return require_iconContext.IconContext !== void 0 ? /* @__PURE__ */ react.default.createElement(require_iconContext.IconContext.Consumer, null, (conf) => elem(conf)) : elem(require_iconContext.DefaultContext);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
121
|
+
exports.GenIcon = GenIcon;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { DefaultContext, IconContext } from "./iconContext.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/react-icons/lib/iconBase.mjs
|
|
5
|
+
var _excluded = [
|
|
6
|
+
"attr",
|
|
7
|
+
"size",
|
|
8
|
+
"title"
|
|
9
|
+
];
|
|
10
|
+
function _objectWithoutProperties(source, excluded) {
|
|
11
|
+
if (source == null) return {};
|
|
12
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
13
|
+
var key, i;
|
|
14
|
+
if (Object.getOwnPropertySymbols) {
|
|
15
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
16
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
17
|
+
key = sourceSymbolKeys[i];
|
|
18
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
19
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
20
|
+
target[key] = source[key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return target;
|
|
24
|
+
}
|
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
26
|
+
if (source == null) return {};
|
|
27
|
+
var target = {};
|
|
28
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
29
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
}
|
|
34
|
+
function _extends() {
|
|
35
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
36
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
37
|
+
var source = arguments[i];
|
|
38
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
};
|
|
42
|
+
return _extends.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
function ownKeys(e, r) {
|
|
45
|
+
var t = Object.keys(e);
|
|
46
|
+
if (Object.getOwnPropertySymbols) {
|
|
47
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
48
|
+
r && (o = o.filter(function(r$1) {
|
|
49
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
50
|
+
})), t.push.apply(t, o);
|
|
51
|
+
}
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
function _objectSpread(e) {
|
|
55
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
56
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
57
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
58
|
+
_defineProperty(e, r$1, t[r$1]);
|
|
59
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
60
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return e;
|
|
64
|
+
}
|
|
65
|
+
function _defineProperty(obj, key, value) {
|
|
66
|
+
key = _toPropertyKey(key);
|
|
67
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
68
|
+
value,
|
|
69
|
+
enumerable: true,
|
|
70
|
+
configurable: true,
|
|
71
|
+
writable: true
|
|
72
|
+
});
|
|
73
|
+
else obj[key] = value;
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
function _toPropertyKey(t) {
|
|
77
|
+
var i = _toPrimitive(t, "string");
|
|
78
|
+
return "symbol" == typeof i ? i : i + "";
|
|
79
|
+
}
|
|
80
|
+
function _toPrimitive(t, r) {
|
|
81
|
+
if ("object" != typeof t || !t) return t;
|
|
82
|
+
var e = t[Symbol.toPrimitive];
|
|
83
|
+
if (void 0 !== e) {
|
|
84
|
+
var i = e.call(t, r || "default");
|
|
85
|
+
if ("object" != typeof i) return i;
|
|
86
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
87
|
+
}
|
|
88
|
+
return ("string" === r ? String : Number)(t);
|
|
89
|
+
}
|
|
90
|
+
function Tree2Element(tree) {
|
|
91
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ React.createElement(node.tag, _objectSpread({ key: i }, node.attr), Tree2Element(node.child)));
|
|
92
|
+
}
|
|
93
|
+
function GenIcon(data) {
|
|
94
|
+
return (props) => /* @__PURE__ */ React.createElement(IconBase, _extends({ attr: _objectSpread({}, data.attr) }, props), Tree2Element(data.child));
|
|
95
|
+
}
|
|
96
|
+
function IconBase(props) {
|
|
97
|
+
var elem = (conf) => {
|
|
98
|
+
var { attr, size, title } = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
99
|
+
var computedSize = size || conf.size || "1em";
|
|
100
|
+
var className;
|
|
101
|
+
if (conf.className) className = conf.className;
|
|
102
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
103
|
+
return /* @__PURE__ */ React.createElement("svg", _extends({
|
|
104
|
+
stroke: "currentColor",
|
|
105
|
+
fill: "currentColor",
|
|
106
|
+
strokeWidth: "0"
|
|
107
|
+
}, conf.attr, attr, svgProps, {
|
|
108
|
+
className,
|
|
109
|
+
style: _objectSpread(_objectSpread({ color: props.color || conf.color }, conf.style), props.style),
|
|
110
|
+
height: computedSize,
|
|
111
|
+
width: computedSize,
|
|
112
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
113
|
+
}), title && /* @__PURE__ */ React.createElement("title", null, title), props.children);
|
|
114
|
+
};
|
|
115
|
+
return IconContext !== void 0 ? /* @__PURE__ */ React.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
//#endregion
|
|
119
|
+
export { GenIcon };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/react-icons/lib/iconContext.mjs
|
|
6
|
+
var DefaultContext = {
|
|
7
|
+
color: void 0,
|
|
8
|
+
size: void 0,
|
|
9
|
+
className: void 0,
|
|
10
|
+
style: void 0,
|
|
11
|
+
attr: void 0
|
|
12
|
+
};
|
|
13
|
+
var IconContext = react.default.createContext && /* @__PURE__ */ react.default.createContext(DefaultContext);
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.DefaultContext = DefaultContext;
|
|
17
|
+
exports.IconContext = IconContext;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/react-icons/lib/iconContext.mjs
|
|
4
|
+
var DefaultContext = {
|
|
5
|
+
color: void 0,
|
|
6
|
+
size: void 0,
|
|
7
|
+
className: void 0,
|
|
8
|
+
style: void 0,
|
|
9
|
+
attr: void 0
|
|
10
|
+
};
|
|
11
|
+
var IconContext = React.createContext && /* @__PURE__ */ React.createContext(DefaultContext);
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { DefaultContext, IconContext };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_iconBase = require('../lib/iconBase.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/react-icons/md/index.mjs
|
|
4
|
+
function MdStar(props) {
|
|
5
|
+
return require_iconBase.GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [
|
|
9
|
+
{
|
|
10
|
+
"tag": "path",
|
|
11
|
+
"attr": {
|
|
12
|
+
"fill": "none",
|
|
13
|
+
"d": "M0 0h24v24H0z"
|
|
14
|
+
},
|
|
15
|
+
"child": []
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"tag": "path",
|
|
19
|
+
"attr": {
|
|
20
|
+
"fill": "none",
|
|
21
|
+
"d": "M0 0h24v24H0z"
|
|
22
|
+
},
|
|
23
|
+
"child": []
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"tag": "path",
|
|
27
|
+
"attr": { "d": "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" },
|
|
28
|
+
"child": []
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
})(props);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.MdStar = MdStar;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { GenIcon } from "../lib/iconBase.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/react-icons/md/index.mjs
|
|
4
|
+
function MdStar(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [
|
|
9
|
+
{
|
|
10
|
+
"tag": "path",
|
|
11
|
+
"attr": {
|
|
12
|
+
"fill": "none",
|
|
13
|
+
"d": "M0 0h24v24H0z"
|
|
14
|
+
},
|
|
15
|
+
"child": []
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"tag": "path",
|
|
19
|
+
"attr": {
|
|
20
|
+
"fill": "none",
|
|
21
|
+
"d": "M0 0h24v24H0z"
|
|
22
|
+
},
|
|
23
|
+
"child": []
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"tag": "path",
|
|
27
|
+
"attr": { "d": "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" },
|
|
28
|
+
"child": []
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
})(props);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { MdStar };
|
package/dist/{SuggestionBar-CK5aU2bb.cjs → node_modules/react-indiana-drag-scroll/dist/index.cjs}
RENAMED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let jotai = require("jotai");
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
7
|
-
let node_crypto = require("node:crypto");
|
|
8
|
-
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
9
|
-
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
10
|
-
let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
|
|
11
|
-
let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
12
4
|
|
|
13
5
|
//#region ../../node_modules/react-indiana-drag-scroll/dist/index.js
|
|
14
|
-
var require_dist = /* @__PURE__ */
|
|
6
|
+
var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/react-indiana-drag-scroll/dist/index.js": ((exports) => {
|
|
15
7
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
16
8
|
var e = require("react");
|
|
17
9
|
function t(e$1) {
|
|
@@ -320,127 +312,9 @@ var require_dist = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_module
|
|
|
320
312
|
}) });
|
|
321
313
|
|
|
322
314
|
//#endregion
|
|
323
|
-
|
|
324
|
-
const byteToHex = [];
|
|
325
|
-
for (let i$1 = 0; i$1 < 256; ++i$1) byteToHex.push((i$1 + 256).toString(16).slice(1));
|
|
326
|
-
function unsafeStringify(arr, offset = 0) {
|
|
327
|
-
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
//#endregion
|
|
331
|
-
//#region ../../node_modules/uuid/dist-node/rng.js
|
|
332
|
-
const rnds8Pool = new Uint8Array(256);
|
|
333
|
-
let poolPtr = rnds8Pool.length;
|
|
334
|
-
function rng() {
|
|
335
|
-
if (poolPtr > rnds8Pool.length - 16) {
|
|
336
|
-
(0, node_crypto.randomFillSync)(rnds8Pool);
|
|
337
|
-
poolPtr = 0;
|
|
338
|
-
}
|
|
339
|
-
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
//#endregion
|
|
343
|
-
//#region ../../node_modules/uuid/dist-node/native.js
|
|
344
|
-
var native_default = { randomUUID: node_crypto.randomUUID };
|
|
345
|
-
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region ../../node_modules/uuid/dist-node/v4.js
|
|
348
|
-
function _v4(options, buf, offset) {
|
|
349
|
-
options = options || {};
|
|
350
|
-
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
351
|
-
if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
|
|
352
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
353
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
354
|
-
if (buf) {
|
|
355
|
-
offset = offset || 0;
|
|
356
|
-
if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
357
|
-
for (let i$1 = 0; i$1 < 16; ++i$1) buf[offset + i$1] = rnds[i$1];
|
|
358
|
-
return buf;
|
|
359
|
-
}
|
|
360
|
-
return unsafeStringify(rnds);
|
|
361
|
-
}
|
|
362
|
-
function v4(options, buf, offset) {
|
|
363
|
-
if (native_default.randomUUID && !buf && !options) return native_default.randomUUID();
|
|
364
|
-
return _v4(options, buf, offset);
|
|
365
|
-
}
|
|
366
|
-
var v4_default = v4;
|
|
367
|
-
|
|
368
|
-
//#endregion
|
|
369
|
-
//#region src/SuggestionBar/types.ts
|
|
370
|
-
let SuggestionBarLocationForMetrics = /* @__PURE__ */ function(SuggestionBarLocationForMetrics$1) {
|
|
371
|
-
SuggestionBarLocationForMetrics$1["SUGGESTION_BAR_TOP"] = "top";
|
|
372
|
-
SuggestionBarLocationForMetrics$1["SUGGESTION_BAR_BOTTOM"] = "bottom";
|
|
373
|
-
return SuggestionBarLocationForMetrics$1;
|
|
374
|
-
}({});
|
|
375
|
-
|
|
376
|
-
//#endregion
|
|
377
|
-
//#region src/SuggestionBar/SuggestionBar.tsx
|
|
378
|
-
var import_dist = require_dist();
|
|
379
|
-
function SuggestionBar({ id, locationForMetrics, buttonTexts, buttonVariation, hoverButtonVariation, boldFirstButton = false, twoRowsOnMobile = false, animationSpeed = "none", buttonBorderRadius = "lg", handleReply, dataTestId }) {
|
|
380
|
-
const componentVisibleTriggerRef = (0, react.useRef)(null);
|
|
381
|
-
const containerRef = (0, react.useRef)(null);
|
|
382
|
-
const { ref } = (0, import_dist.useScrollContainer)();
|
|
383
|
-
const isSmallScreen = (0, __envive_ai_react_hooks_hooks_IsSmallScreen.useIsSmallScreen)();
|
|
384
|
-
const logPerfMetric = (0, jotai.useSetAtom)(__envive_ai_react_hooks_atoms_chat.logPerfMetricAtom);
|
|
385
|
-
const isAnimated = animationSpeed !== "none";
|
|
386
|
-
(0, __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent.useTrackComponentVisibleEvent)(__envive_ai_react_hooks_application_models.SpiffyWidgets.SuggestionBar, componentVisibleTriggerRef, { animated: isAnimated });
|
|
387
|
-
const handleClickSuggestion = (0, react.useCallback)((buttonText) => {
|
|
388
|
-
handleReply({
|
|
389
|
-
id: v4_default(),
|
|
390
|
-
role: __envive_ai_react_hooks_application_models.MessageRole.User,
|
|
391
|
-
type: __envive_ai_react_hooks_application_models.MessageType.QueryTyped,
|
|
392
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
393
|
-
metadata: { content: buttonText }
|
|
394
|
-
});
|
|
395
|
-
}, [handleReply]);
|
|
396
|
-
const setRefs = (0, react.useCallback)((el) => {
|
|
397
|
-
if (typeof ref === "function") ref(el);
|
|
398
|
-
containerRef.current = el;
|
|
399
|
-
}, [ref]);
|
|
400
|
-
const handleContainerRef = (0, react.useCallback)((el) => {
|
|
401
|
-
if (el) logPerfMetric(locationForMetrics === SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP ? __envive_ai_react_hooks_atoms_chat.PerfMetricsEvents.TopSuggestionsBarRendered : __envive_ai_react_hooks_atoms_chat.PerfMetricsEvents.BottomSuggestionsBarRendered);
|
|
402
|
-
setRefs(el);
|
|
403
|
-
}, [
|
|
404
|
-
locationForMetrics,
|
|
405
|
-
logPerfMetric,
|
|
406
|
-
setRefs
|
|
407
|
-
]);
|
|
408
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
409
|
-
id,
|
|
410
|
-
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
411
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
412
|
-
className: `spiffy-tw-no-scrollbar spiffy-tw-relative spiffy-tw-w-full spiffy-tw-overflow-y-hidden spiffy-tw-overflow-x-scroll ${twoRowsOnMobile && isSmallScreen ? "spiffy-tw-h-20" : "spiffy-tw-h-9"} `,
|
|
413
|
-
ref: handleContainerRef,
|
|
414
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
415
|
-
className: "spiffy-tw-relative spiffy-tw-inline-block spiffy-tw-whitespace-nowrap",
|
|
416
|
-
ref: componentVisibleTriggerRef,
|
|
417
|
-
"data-testid": dataTestId || __envive_ai_react_hooks_config.SUGGESTION_BAR_TESTID,
|
|
418
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SuggestionButtonContainer.SuggestionButtonContainer, {
|
|
419
|
-
buttonVariation,
|
|
420
|
-
hoverButtonVariation,
|
|
421
|
-
buttonTexts,
|
|
422
|
-
onButtonClick: handleClickSuggestion,
|
|
423
|
-
scrollContainerRef: containerRef,
|
|
424
|
-
boldFirstButton,
|
|
425
|
-
twoRowsOnMobile,
|
|
426
|
-
animationSpeed,
|
|
427
|
-
buttonBorderRadius
|
|
428
|
-
})
|
|
429
|
-
})
|
|
430
|
-
})
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
//#endregion
|
|
435
|
-
Object.defineProperty(exports, 'SuggestionBar', {
|
|
436
|
-
enumerable: true,
|
|
437
|
-
get: function () {
|
|
438
|
-
return SuggestionBar;
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
Object.defineProperty(exports, 'SuggestionBarLocationForMetrics', {
|
|
315
|
+
Object.defineProperty(exports, 'default', {
|
|
442
316
|
enumerable: true,
|
|
443
317
|
get: function () {
|
|
444
|
-
return
|
|
318
|
+
return require_dist();
|
|
445
319
|
}
|
|
446
320
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region ../../node_modules/uuid/dist/rng.js
|
|
2
|
+
let getRandomValues;
|
|
3
|
+
const rnds8 = new Uint8Array(16);
|
|
4
|
+
function rng() {
|
|
5
|
+
if (!getRandomValues) {
|
|
6
|
+
if (typeof crypto === "undefined" || !crypto.getRandomValues) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
7
|
+
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
8
|
+
}
|
|
9
|
+
return getRandomValues(rnds8);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { rng as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../node_modules/uuid/dist/stringify.js
|
|
2
|
+
const byteToHex = [];
|
|
3
|
+
for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
|
|
4
|
+
function unsafeStringify(arr, offset = 0) {
|
|
5
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { unsafeStringify };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { unsafeStringify } from "./stringify.js";
|
|
2
|
+
import rng from "./rng.js";
|
|
3
|
+
import native_default from "./native.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/uuid/dist/v4.js
|
|
6
|
+
function _v4(options, buf, offset) {
|
|
7
|
+
options = options || {};
|
|
8
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
9
|
+
if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
|
|
10
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
11
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
12
|
+
if (buf) {
|
|
13
|
+
offset = offset || 0;
|
|
14
|
+
if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
15
|
+
for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
|
|
16
|
+
return buf;
|
|
17
|
+
}
|
|
18
|
+
return unsafeStringify(rnds);
|
|
19
|
+
}
|
|
20
|
+
function v4(options, buf, offset) {
|
|
21
|
+
if (native_default.randomUUID && !buf && !options) return native_default.randomUUID();
|
|
22
|
+
return _v4(options, buf, offset);
|
|
23
|
+
}
|
|
24
|
+
var v4_default = v4;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { v4_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let node_crypto = require("node:crypto");
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/uuid/dist-node/native.js
|
|
5
|
+
var native_default = { randomUUID: node_crypto.randomUUID };
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.default = native_default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let node_crypto = require("node:crypto");
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/uuid/dist-node/rng.js
|
|
5
|
+
const rnds8Pool = new Uint8Array(256);
|
|
6
|
+
let poolPtr = rnds8Pool.length;
|
|
7
|
+
function rng() {
|
|
8
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
|
9
|
+
(0, node_crypto.randomFillSync)(rnds8Pool);
|
|
10
|
+
poolPtr = 0;
|
|
11
|
+
}
|
|
12
|
+
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.default = rng;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/uuid/dist-node/stringify.js
|
|
3
|
+
const byteToHex = [];
|
|
4
|
+
for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
|
|
5
|
+
function unsafeStringify(arr, offset = 0) {
|
|
6
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.unsafeStringify = unsafeStringify;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_stringify = require('./stringify.cjs');
|
|
2
|
+
const require_rng = require('./rng.cjs');
|
|
3
|
+
const require_native = require('./native.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/uuid/dist-node/v4.js
|
|
6
|
+
function _v4(options, buf, offset) {
|
|
7
|
+
options = options || {};
|
|
8
|
+
const rnds = options.random ?? options.rng?.() ?? require_rng.default();
|
|
9
|
+
if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
|
|
10
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
11
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
12
|
+
if (buf) {
|
|
13
|
+
offset = offset || 0;
|
|
14
|
+
if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
15
|
+
for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
|
|
16
|
+
return buf;
|
|
17
|
+
}
|
|
18
|
+
return require_stringify.unsafeStringify(rnds);
|
|
19
|
+
}
|
|
20
|
+
function v4(options, buf, offset) {
|
|
21
|
+
if (require_native.default.randomUUID && !buf && !options) return require_native.default.randomUUID();
|
|
22
|
+
return _v4(options, buf, offset);
|
|
23
|
+
}
|
|
24
|
+
var v4_default = v4;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = v4_default;
|