@fast-simon/dashboard-utilities 1.0.67 → 1.0.68
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,5 +1,5 @@
|
|
|
1
1
|
import { ServerProduct } from "./product";
|
|
2
|
-
import { FastCategory, FastTurbolinks } from "./facets";
|
|
2
|
+
import { Facet, FastCategory, FastTurbolinks } from "./facets";
|
|
3
3
|
import { PopularSearch } from "./results";
|
|
4
4
|
import { SortBy } from "./sortBy";
|
|
5
5
|
export interface AutocompleteResults {
|
|
@@ -42,4 +42,10 @@ export interface AutocompleteReasoningResponse {
|
|
|
42
42
|
totalResults: number;
|
|
43
43
|
uuid: string;
|
|
44
44
|
sortBy?: SortBy;
|
|
45
|
+
within_search_results_for?: string;
|
|
46
|
+
isNoResults?: any;
|
|
47
|
+
pageCount?: number;
|
|
48
|
+
narrow?: [string, string, string][];
|
|
49
|
+
facets?: Facet[];
|
|
50
|
+
page?: number;
|
|
45
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/@types/autocomplete.ts"],"names":[],"mappings":"","sourcesContent":["import {ServerProduct} from \"./product\";\r\nimport {FastCategory, FastTurbolinks} from \"./facets\";\r\nimport {PopularSearch} from \"./results\";\r\nimport {SortBy} from \"./sortBy\";\r\n\r\n\r\n\r\nexport interface AutocompleteResults {\r\n totalResults: number,\r\n categories?: FastCategory[],\r\n products: ServerProduct[]\r\n turbolinks?: FastTurbolinks[]\r\n popularSearches: PopularSearch[]\r\n query: string\r\n}\r\n\r\nexport interface autocompleteProps {\r\n storeID: number\r\n uuid: string\r\n cdn?: number\r\n term: string,\r\n userToken: string,\r\n sessionStart: number,\r\n withAttributes?: boolean\r\n segments?: string[],\r\n hasShopifyMarkets?: boolean,\r\n disable_turbolinks?:boolean\r\n disable_strategies?:boolean\r\n disable_merchandising?:boolean\r\n disable_semantics?:boolean\r\n disable_merchandising_rules?:boolean\r\n disable_antonyms?:boolean\r\n}\r\nexport interface AutocompleteReasoningResponse {\r\n auto_facets?: boolean\r\n isp_quick_view_mode?: number\r\n products: ServerProduct[]\r\n merch: {\r\n prorduct:any,\r\n rules:any,\r\n strategy:any,\r\n visual:any\r\n }\r\n personalized_products:any[]\r\n term:string\r\n totalResults: number\r\n uuid:string\r\n
|
|
1
|
+
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/@types/autocomplete.ts"],"names":[],"mappings":"","sourcesContent":["import {ServerProduct} from \"./product\";\r\nimport {Facet, FastCategory, FastTurbolinks} from \"./facets\";\r\nimport {PopularSearch} from \"./results\";\r\nimport {SortBy} from \"./sortBy\";\r\n\r\n\r\n\r\nexport interface AutocompleteResults {\r\n totalResults: number,\r\n categories?: FastCategory[],\r\n products: ServerProduct[]\r\n turbolinks?: FastTurbolinks[]\r\n popularSearches: PopularSearch[]\r\n query: string\r\n}\r\n\r\nexport interface autocompleteProps {\r\n storeID: number\r\n uuid: string\r\n cdn?: number\r\n term: string,\r\n userToken: string,\r\n sessionStart: number,\r\n withAttributes?: boolean\r\n segments?: string[],\r\n hasShopifyMarkets?: boolean,\r\n disable_turbolinks?:boolean\r\n disable_strategies?:boolean\r\n disable_merchandising?:boolean\r\n disable_semantics?:boolean\r\n disable_merchandising_rules?:boolean\r\n disable_antonyms?:boolean\r\n}\r\nexport interface AutocompleteReasoningResponse {\r\n auto_facets?: boolean\r\n isp_quick_view_mode?: number\r\n products: ServerProduct[]\r\n merch: {\r\n prorduct:any,\r\n rules:any,\r\n strategy:any,\r\n visual:any\r\n }\r\n personalized_products:any[]\r\n term:string\r\n totalResults: number\r\n uuid:string\r\n\r\n //all bellow wont be never field but to keep consistent with all the AIExplainer implementation\r\n sortBy?:SortBy\r\n within_search_results_for?: string,\r\n isNoResults?:any,\r\n pageCount?:number,\r\n narrow?: [string, string, string][],\r\n facets?: Facet[],\r\n page?: number\r\n}"]}
|
|
@@ -262,11 +262,11 @@ export declare function fastStateReducer(state: FastStateProps, action: FastStat
|
|
|
262
262
|
categoryID: string;
|
|
263
263
|
name: string;
|
|
264
264
|
category_name: string;
|
|
265
|
-
facets?: import("../../@types/facets").ServerFacet[] | undefined;
|
|
265
|
+
facets?: import("../../@types/facets").ServerFacet[] | import("../../@types/facets").Facet[] | undefined;
|
|
266
266
|
totalResults: number;
|
|
267
267
|
sortBy?: SortBy | undefined;
|
|
268
|
-
narrow?: Narrow[] | undefined;
|
|
269
|
-
isNoResults?:
|
|
268
|
+
narrow?: Narrow[] | [string, string, string][] | undefined;
|
|
269
|
+
isNoResults?: any;
|
|
270
270
|
page?: number | undefined;
|
|
271
271
|
pageCount?: number | undefined;
|
|
272
272
|
avoidPrefixList?: string[] | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -35,5 +35,6 @@ import MainTheme from "./components/FastSimonApi";
|
|
|
35
35
|
import { FeaturedRanking } from "@fast-simon/utilities/lib/@types/product";
|
|
36
36
|
import { Products } from "./services/products";
|
|
37
37
|
import { getLSVectorSearchDict, getLSVectorSearchOn } from "./utils/getLSVectorSearch";
|
|
38
|
-
|
|
38
|
+
import { AutocompleteReasoningResponse } from "./@types/autocomplete";
|
|
39
|
+
export type { MenuItemName, CustomClasses, SideMenuType, SideMenuItem, ProductLabelType, Banner, EditorProduct, IconProps, ServerProduct, FullTextServerResponseAll, smartCollectionsResults, AutocompleteReasoningResponse, FeaturedRanking };
|
|
39
40
|
export { BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible, useDragToSelect, LandingPage, FullTextSearch, BackOfficeFiltersIcon, BannersIcon, HelpIcon, InStoreFiltersIcon, PromoteIcon, RestoreIcon, RemoveIcon, GeneralIcon, videoFormats, isEditorProduct, useFastState, useFastStateFunctions, FastSimonApi, MainTheme, Products, getFormatProducts, useProductsPerRow, ProductLabel, CustomTagsFilters, SelectCard, getLSVectorSearchOn, getLSVectorSearchDict };
|
package/dist/index.js.map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AU,MAAM,oCAAoC,CAAC;AAC5D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,iBAAiB,EAAC,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAC,iBAAiB,EAAC,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,YAAY,EAAE,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAI7E,OAAO,YAAY,MAAM,wCAAwC,CAAA;AACjE,OAAO,SAAS,MAAM,2BAA2B,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAC,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAoBrF,OAAO,EACH,qBAAqB,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EACnH,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,qBAAqB,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAC3H,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAC,YAAY,EAAE,qBAAqB,EAAC,YAAY,EAAC,SAAS,EAC9H,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAC,qBAAqB,EACzI,CAAC","sourcesContent":["import {CustomClasses, SideMenuType, SideMenuItem, MenuItemName} from \"./@types/sideMenu\"\r\nimport {ProductLabelType} from \"./@types/productLabel\"\r\nimport {videoFormats, Banner} from \"./@types/banner\"\r\nimport {EditorProduct, isEditorProduct} from \"./@types/editorProduct\"\r\nimport {IconProps} from \"./@types/iconProps\"\r\n\r\nimport {BackOfficeFiltersIcon} from \"./icons/BackOfficeFiltersIcon\"\r\nimport {BannersIcon} from \"./icons/BannersIcon\"\r\nimport {HelpIcon} from \"./icons/HelpIcon\"\r\nimport {InStoreFiltersIcon} from \"./icons/InStoreFiltersIcon\"\r\nimport {PromoteIcon} from \"./icons/PromoteIcon\"\r\nimport {RemoveIcon} from \"./icons/RemoveIcon\"\r\nimport {RestoreIcon} from \"./icons/RestoreIcon\"\r\nimport {GeneralIcon} from \"./icons/GeneralIcon\"\r\nimport BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu'\r\nimport InStoreFiltersMenu from './components/InStoreFiltersMenu'\r\nimport DndContextWrapper from './components/DragAndDrop/DndContextWrapper'\r\nimport Droppable from './components/DragAndDrop/Droppable'\r\nimport ProductLabel from './components/ProductLabel/ProductLabel'\r\nimport {SortableItem} from './components/DragAndDrop/SortableItem'\r\nimport ProductGrid from \"./components/productGrid/ProductGrid\";\r\nimport SelectCard from \"./components/SelectCard/SelectCard\";\r\nimport RenderIfVisible from \"./components/RenderIfVisible\";\r\nimport {useDragToSelect} from \"./utils/useDragToSelect\";\r\nimport {CustomTagsFilters} from \"./utils/customTagsFilters\";\r\nimport {useProductsPerRow} from \"./utils/useProductsPerRow\";\r\nimport { LandingPage } from \"./services/landingPage\";\r\nimport { FullTextSearch } from \"./services/search\";\r\nimport { getFormatProducts } from \"./services/getFormatProducts\";\r\nimport {useFastState, useFastStateFunctions} from \"./components/FastSimonApi\"\r\nimport { ServerProduct } from \"./@types/product\"\r\nimport { FullTextServerResponseAll } from \"./@types/results\"\r\nimport { smartCollectionsResults } from \"./@types/categories\"\r\nimport FastSimonApi from \"./components/FastSimonApi/FastSimonApi\"\r\nimport MainTheme from \"./components/FastSimonApi\"\r\nimport { FeaturedRanking } from \"@fast-simon/utilities/lib/@types/product\"\r\nimport { Products } from \"./services/products\"\r\nimport {getLSVectorSearchDict, getLSVectorSearchOn } from \"./utils/getLSVectorSearch\"\r\nimport { AutocompleteReasoningResponse } from \"./@types/autocomplete\"\r\n// export * from './components';\r\n\r\nexport type {\r\n MenuItemName,\r\n CustomClasses,\r\n SideMenuType,\r\n SideMenuItem,\r\n ProductLabelType,\r\n Banner,\r\n EditorProduct,\r\n IconProps,\r\n ServerProduct,\r\n FullTextServerResponseAll,\r\n smartCollectionsResults,\r\n AutocompleteReasoningResponse,\r\n FeaturedRanking\r\n};\r\n\r\nexport {\r\n BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible,\r\n useDragToSelect, LandingPage, FullTextSearch, BackOfficeFiltersIcon, BannersIcon, HelpIcon, InStoreFiltersIcon, PromoteIcon,\r\n RestoreIcon, RemoveIcon, GeneralIcon, videoFormats, isEditorProduct,useFastState, useFastStateFunctions,FastSimonApi,MainTheme,\r\n Products, getFormatProducts, useProductsPerRow, ProductLabel, CustomTagsFilters, SelectCard ,getLSVectorSearchOn,getLSVectorSearchDict\r\n};"]}
|