@getlupa/client 0.6.0-alpha-1 → 0.6.0-alpha-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.
@@ -1,13 +1,12 @@
1
1
  import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
2
2
  import { FacetStyle, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
3
- import { SdkOptions, TrackingOptions, Environment } from "./types/General";
3
+ import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
4
4
  import { ProductListOptions } from "./types/product-list/ProductListOptions";
5
5
  import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
6
6
  import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
7
7
  import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
8
8
  import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
9
9
  import { BadgeType } from "./types/search-results/BadgeOptions";
10
- import { SortDirection } from "@getlupa/client-sdk/Types";
11
10
  declare const lupaSearch: {
12
11
  searchBox: (options: SearchBoxOptions) => void;
13
12
  searchResults: (options: SearchResultsOptions) => void;
@@ -2,8 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Types = require('@getlupa/client-sdk/Types');
6
-
7
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
6
 
9
7
  function getDefaultExportFromCjs (x) {
@@ -37157,8 +37155,4 @@ var lupaSearch = {
37157
37155
  clearProductList: clearProductList
37158
37156
  };
37159
37157
 
37160
- Object.defineProperty(exports, 'SortDirection', {
37161
- enumerable: true,
37162
- get: function () { return Types.SortDirection; }
37163
- });
37164
37158
  exports["default"] = lupaSearch;
@@ -15,3 +15,4 @@ export declare type TrackingOptions = {
15
15
  analytics?: AnalyticsOptions;
16
16
  };
17
17
  export declare type Environment = SdkEnvironment;
18
+ export declare type SortDirection = "asc" | "desc";
@@ -1,4 +1,4 @@
1
- import { SortDirection } from "@getlupa/client-sdk/Types";
1
+ import { SortDirection } from "../General";
2
2
  export declare type SearchResultsSortOptions = {
3
3
  key: string;
4
4
  label: string;
@@ -1,13 +1,12 @@
1
1
  import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
2
2
  import { FacetStyle, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
3
- import { SdkOptions, TrackingOptions, Environment } from "./types/General";
3
+ import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
4
4
  import { ProductListOptions } from "./types/product-list/ProductListOptions";
5
5
  import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
6
6
  import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
7
7
  import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
8
8
  import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
9
9
  import { BadgeType } from "./types/search-results/BadgeOptions";
10
- import { SortDirection } from "@getlupa/client-sdk/Types";
11
10
  declare const lupaSearch: {
12
11
  searchBox: (options: SearchBoxOptions) => void;
13
12
  searchResults: (options: SearchResultsOptions) => void;
@@ -1,5 +1,3 @@
1
- export { SortDirection } from '@getlupa/client-sdk/Types';
2
-
3
1
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
2
 
5
3
  function getDefaultExportFromCjs (x) {
@@ -15,3 +15,4 @@ export declare type TrackingOptions = {
15
15
  analytics?: AnalyticsOptions;
16
16
  };
17
17
  export declare type Environment = SdkEnvironment;
18
+ export declare type SortDirection = "asc" | "desc";
@@ -1,4 +1,4 @@
1
- import { SortDirection } from "@getlupa/client-sdk/Types";
1
+ import { SortDirection } from "../General";
2
2
  export declare type SearchResultsSortOptions = {
3
3
  key: string;
4
4
  label: string;
@@ -1,13 +1,12 @@
1
1
  import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
2
2
  import { FacetStyle, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
3
- import { SdkOptions, TrackingOptions, Environment } from "./types/General";
3
+ import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
4
4
  import { ProductListOptions } from "./types/product-list/ProductListOptions";
5
5
  import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
6
6
  import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
7
7
  import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
8
8
  import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
9
9
  import { BadgeType } from "./types/search-results/BadgeOptions";
10
- import { SortDirection } from "@getlupa/client-sdk/Types";
11
10
  declare const lupaSearch: {
12
11
  searchBox: (options: SearchBoxOptions) => void;
13
12
  searchResults: (options: SearchResultsOptions) => void;
@@ -15,3 +15,4 @@ export declare type TrackingOptions = {
15
15
  analytics?: AnalyticsOptions;
16
16
  };
17
17
  export declare type Environment = SdkEnvironment;
18
+ export declare type SortDirection = "asc" | "desc";
@@ -1,4 +1,4 @@
1
- import { SortDirection } from "@getlupa/client-sdk/Types";
1
+ import { SortDirection } from "../General";
2
2
  export declare type SearchResultsSortOptions = {
3
3
  key: string;
4
4
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "0.6.0-alpha-1",
3
+ "version": "0.6.0-alpha-2",
4
4
  "main": "dist/cjs/index.min.js",
5
5
  "module": "dist/es/index.min.js",
6
6
  "types": "dist/es/index.d.ts",