@usereactify/search 4.4.0-beta.0 → 5.0.0-beta.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.
Files changed (104) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/package.json +8 -10
  3. package/dist/filter/Filter.d.ts +0 -12
  4. package/dist/filter/Filter.js +0 -71
  5. package/dist/filter/FilterList.d.ts +0 -4
  6. package/dist/filter/FilterList.js +0 -15
  7. package/dist/filter/FilterStack.d.ts +0 -11
  8. package/dist/filter/FilterStack.js +0 -25
  9. package/dist/filter/index.d.ts +0 -3
  10. package/dist/filter/index.js +0 -15
  11. package/dist/hooks/index.d.ts +0 -14
  12. package/dist/hooks/index.js +0 -26
  13. package/dist/hooks/reactivesearch/index.d.ts +0 -5
  14. package/dist/hooks/reactivesearch/index.js +0 -17
  15. package/dist/hooks/reactivesearch/useReactiveBaseProps.d.ts +0 -7
  16. package/dist/hooks/reactivesearch/useReactiveBaseProps.js +0 -43
  17. package/dist/hooks/reactivesearch/useReactiveDataSearchProps.d.ts +0 -28
  18. package/dist/hooks/reactivesearch/useReactiveDataSearchProps.js +0 -71
  19. package/dist/hooks/reactivesearch/useReactiveFilterListProps.d.ts +0 -68
  20. package/dist/hooks/reactivesearch/useReactiveFilterListProps.js +0 -106
  21. package/dist/hooks/reactivesearch/useReactiveReactProp.d.ts +0 -3
  22. package/dist/hooks/reactivesearch/useReactiveReactProp.js +0 -25
  23. package/dist/hooks/reactivesearch/useReactiveResultListProps.d.ts +0 -19
  24. package/dist/hooks/reactivesearch/useReactiveResultListProps.js +0 -32
  25. package/dist/hooks/useAnalytics.d.ts +0 -95
  26. package/dist/hooks/useAnalytics.js +0 -110
  27. package/dist/hooks/useCollection.d.ts +0 -1
  28. package/dist/hooks/useCollection.js +0 -6
  29. package/dist/hooks/useConfig.d.ts +0 -1
  30. package/dist/hooks/useConfig.js +0 -6
  31. package/dist/hooks/useCuration.d.ts +0 -1
  32. package/dist/hooks/useCuration.js +0 -6
  33. package/dist/hooks/useFilterCollapsedState.d.ts +0 -8
  34. package/dist/hooks/useFilterCollapsedState.js +0 -27
  35. package/dist/hooks/useFilterListProps.d.ts +0 -22
  36. package/dist/hooks/useFilterListProps.js +0 -35
  37. package/dist/hooks/useFilterStack.d.ts +0 -1
  38. package/dist/hooks/useFilterStack.js +0 -6
  39. package/dist/hooks/useFilters.d.ts +0 -1
  40. package/dist/hooks/useFilters.js +0 -17
  41. package/dist/hooks/useLiveConfig.d.ts +0 -4
  42. package/dist/hooks/useLiveConfig.js +0 -74
  43. package/dist/hooks/usePages.d.ts +0 -10
  44. package/dist/hooks/usePages.js +0 -97
  45. package/dist/hooks/useProductPrice.d.ts +0 -12
  46. package/dist/hooks/useProductPrice.js +0 -61
  47. package/dist/hooks/useSearch.d.ts +0 -8
  48. package/dist/hooks/useSearch.js +0 -16
  49. package/dist/hooks/useSort.d.ts +0 -5
  50. package/dist/hooks/useSort.js +0 -24
  51. package/dist/index.d.ts +0 -9
  52. package/dist/index.js +0 -24
  53. package/dist/provider.d.ts +0 -78
  54. package/dist/provider.js +0 -287
  55. package/dist/result/ResultCard.d.ts +0 -14
  56. package/dist/result/ResultCard.js +0 -66
  57. package/dist/result/ResultCardCallout.d.ts +0 -13
  58. package/dist/result/ResultCardCallout.js +0 -53
  59. package/dist/result/ResultList.d.ts +0 -34
  60. package/dist/result/ResultList.js +0 -93
  61. package/dist/result/ResultLoadMoreButton.d.ts +0 -10
  62. package/dist/result/ResultLoadMoreButton.js +0 -61
  63. package/dist/result/ResultPagination.d.ts +0 -10
  64. package/dist/result/ResultPagination.js +0 -60
  65. package/dist/result/ResultPaginationNextPrev.d.ts +0 -8
  66. package/dist/result/ResultPaginationNextPrev.js +0 -30
  67. package/dist/result/ResultStateProvider.d.ts +0 -7
  68. package/dist/result/ResultStateProvider.js +0 -10
  69. package/dist/result/index.d.ts +0 -6
  70. package/dist/result/index.js +0 -18
  71. package/dist/search/SearchInput.d.ts +0 -9
  72. package/dist/search/SearchInput.js +0 -17
  73. package/dist/search/index.d.ts +0 -1
  74. package/dist/search/index.js +0 -13
  75. package/dist/sensor/SensorCollection.d.ts +0 -2
  76. package/dist/sensor/SensorCollection.js +0 -41
  77. package/dist/sensor/SensorInventoryAvailable.d.ts +0 -2
  78. package/dist/sensor/SensorInventoryAvailable.js +0 -52
  79. package/dist/sensor/SensorPublished.d.ts +0 -2
  80. package/dist/sensor/SensorPublished.js +0 -16
  81. package/dist/sensor/SensorSearch.d.ts +0 -2
  82. package/dist/sensor/SensorSearch.js +0 -82
  83. package/dist/sensor/SensorSort.d.ts +0 -2
  84. package/dist/sensor/SensorSort.js +0 -205
  85. package/dist/sensor/SensorSortScore.d.ts +0 -2
  86. package/dist/sensor/SensorSortScore.js +0 -12
  87. package/dist/sensor/SensorStack.d.ts +0 -2
  88. package/dist/sensor/SensorStack.js +0 -31
  89. package/dist/sensor/index.d.ts +0 -8
  90. package/dist/sensor/index.js +0 -29
  91. package/dist/types/config.d.ts +0 -25
  92. package/dist/types/config.js +0 -2
  93. package/dist/types/elastic.d.ts +0 -209
  94. package/dist/types/elastic.js +0 -18
  95. package/dist/types/firestore.d.ts +0 -280
  96. package/dist/types/firestore.js +0 -18
  97. package/dist/types/graphql.d.ts +0 -26545
  98. package/dist/types/graphql.js +0 -4687
  99. package/dist/types/reactivesearch.d.ts +0 -73
  100. package/dist/types/reactivesearch.js +0 -2
  101. package/dist/types/shopify.d.ts +0 -21
  102. package/dist/types/shopify.js +0 -27
  103. package/dist/utility/UtilityAuthenticatedReactiveBase.d.ts +0 -2
  104. package/dist/utility/UtilityAuthenticatedReactiveBase.js +0 -14
@@ -1,280 +0,0 @@
1
- declare type Timestamp = string;
2
- import { ShopifyProduct } from "./shopify";
3
- import { ElasticDataType } from "./elastic";
4
- export interface Log {
5
- id: string;
6
- keywords: string[];
7
- message: string;
8
- platform: "reactify" | "shopify" | "elastic";
9
- percentCompleted: number;
10
- action?: {
11
- type: "retry";
12
- label: string;
13
- task: Task["taskId"];
14
- };
15
- step: "download" | "transform" | "merge" | "upload" | "cleanup" | "complete" | "sync";
16
- title: string;
17
- type: "bulk";
18
- data?: string;
19
- progress: "new" | "error" | "complete" | "partiallyComplete";
20
- status: "success" | "info" | "warning" | "critical";
21
- createdAt: Timestamp;
22
- updatedAt?: Timestamp;
23
- finishedAt?: Timestamp;
24
- }
25
- export interface Task {
26
- logId: string;
27
- taskId: "download" | "transform" | "merge" | "upload" | "cleanup" | "refreshDefinedFields" | "install";
28
- firstRun: boolean;
29
- createdAt: Timestamp;
30
- updatedAt?: Timestamp;
31
- }
32
- export interface TaskDownload extends Task {
33
- taskId: "download";
34
- type: "collection" | "product";
35
- productUrl?: string;
36
- collectionUrl?: string;
37
- }
38
- export interface TaskTransform extends Task {
39
- taskId: "transform";
40
- productUrl: string;
41
- collectionUrl: string;
42
- }
43
- export interface TaskMerge extends Task {
44
- taskId: "merge";
45
- productCount: number;
46
- collectionCount: number;
47
- startAfterId?: string;
48
- }
49
- export interface TaskUpload extends Task {
50
- taskId: "upload";
51
- productCount: number;
52
- collectionCount: number;
53
- startAfterId?: string;
54
- }
55
- export interface TaskCleanup extends Task {
56
- taskId: "cleanup";
57
- }
58
- export interface TaskRefreshDefinedFields extends Task {
59
- taskId: "refreshDefinedFields";
60
- }
61
- export interface TaskInstall extends Task {
62
- taskId: "install";
63
- }
64
- export interface Lock {
65
- logId: string;
66
- taskType: "sync";
67
- createdAt: Timestamp;
68
- }
69
- export interface SettingsInstance {
70
- index: string;
71
- cloudId: string;
72
- endpoint: string;
73
- password: string;
74
- username: string;
75
- syncFrequency: string;
76
- syncThreshold: number;
77
- provider: "elastic" | "aws";
78
- storefrontAccessToken: string;
79
- customMappings: string;
80
- }
81
- export interface SettingsProduct {
82
- tagChild?: string;
83
- tagKeys?: string[];
84
- tagParent?: string;
85
- syncObjects: string[];
86
- tagExclude?: string[];
87
- tagSeparator?: string;
88
- metafieldWhitelist?: string[];
89
- }
90
- export interface SettingsCurations {
91
- moreInfo?: boolean;
92
- pageSize?: number;
93
- gridColumns?: number;
94
- }
95
- export interface Field {
96
- id: string;
97
- field: string;
98
- enabled: boolean;
99
- importance: number;
100
- searchType: "always_search" | "search_page" | "instant_search";
101
- }
102
- export interface DefinedField {
103
- label: string;
104
- value: string;
105
- type: ElasticDataType;
106
- }
107
- export interface Sort {
108
- id: string;
109
- name: string;
110
- handle: string;
111
- field: string;
112
- position: number;
113
- enabled: boolean;
114
- direction: "desc" | "asc";
115
- visibility: "all" | "search" | "collection";
116
- }
117
- export interface Filter {
118
- id: string;
119
- name: string;
120
- handle: string;
121
- enabled: boolean;
122
- pageSize: number;
123
- keywords: string[];
124
- defaultSort: string;
125
- collections: string[];
126
- type: "search" | "collection";
127
- paginationType: "pagination" | "load_more" | "next_prev" | "infinite_scroll";
128
- inventoryVisibility: "show_all" | "hide_products" | "hide_variants" | "hide_all";
129
- }
130
- export interface FilterOption {
131
- displaySize: string;
132
- displaySliderInterval: string;
133
- displaySliderStep: string;
134
- displayType: "multi" | "single" | "range" | "slider";
135
- displayView: "list" | "check" | "swatch" | "box";
136
- enabled: boolean;
137
- field: string;
138
- id: string;
139
- name: string;
140
- handle: string;
141
- position: number;
142
- settingsCollapsedDesktop: boolean;
143
- settingsCollapsedMobile: boolean;
144
- settingsShowFilter: boolean;
145
- settingsShowMore: boolean;
146
- settingsShowSearch: boolean;
147
- settingsUppercase: boolean;
148
- settingsHideUnavailable: boolean;
149
- valuesExclude: Array<string>;
150
- valuesManual: Array<string>;
151
- valuesShow: "all" | "manual";
152
- }
153
- export interface Redirect {
154
- id: string;
155
- url: string;
156
- query: string;
157
- enabled: boolean;
158
- keywords: string[];
159
- }
160
- export interface Curation {
161
- id: string;
162
- title: string;
163
- status: CurationStatus;
164
- published: boolean;
165
- keywords: string[];
166
- searchTerm?: string;
167
- longRunningTask?: boolean;
168
- collectionHandle?: string;
169
- type: "collection" | "search";
170
- boosting?: {
171
- groupings?: BoostGrouping[];
172
- sortings?: BoostSorting[];
173
- };
174
- sort?: CurationSort;
175
- }
176
- export interface CurationSort {
177
- sortTag?: string;
178
- sortOption: string;
179
- sortDirection: "asc" | "desc";
180
- sortVariantOption?: "option1" | "option2" | "option3";
181
- }
182
- export declare enum CurationStatus {
183
- Draft = "draft",
184
- Publishing = "publishing",
185
- Published = "published",
186
- Unpublishing = "unpublishing",
187
- Resetting = "resetting",
188
- Pinning = "pinning",
189
- Sorting = "sorting"
190
- }
191
- export interface CurationHiding {
192
- productId: number;
193
- productHandle: string;
194
- }
195
- export interface BoostGrouping {
196
- key: string;
197
- value: string;
198
- field: string;
199
- position: number;
200
- operation: string;
201
- }
202
- export interface BoostSorting {
203
- key: string;
204
- field: string;
205
- query?: string;
206
- position: number;
207
- direction: "asc" | "desc";
208
- }
209
- export declare type Pin = PinProduct | PinCallout;
210
- export declare enum PinType {
211
- Product = "product",
212
- Callout = "callout"
213
- }
214
- export interface PinProduct {
215
- key: string;
216
- type: PinType.Product;
217
- position: number;
218
- productId: number;
219
- productHandle: string;
220
- }
221
- export interface PinCallout {
222
- key: string;
223
- type: PinType.Callout;
224
- position: number;
225
- calloutId: string;
226
- }
227
- export interface Callout {
228
- id: string;
229
- link: string;
230
- title: string;
231
- content: string;
232
- enabled: boolean;
233
- textColor: string;
234
- keywords: string[];
235
- mobileImage: string;
236
- mobileVideo: string;
237
- desktopVideo: string;
238
- desktopImage: string;
239
- backgroundColor: string;
240
- visibility: "desktop" | "mobile" | "all";
241
- displayColumns: string;
242
- displayRows: string;
243
- selectedDates?: {
244
- end: Timestamp;
245
- start: Timestamp;
246
- };
247
- }
248
- export interface Synonym {
249
- id: string;
250
- name: string;
251
- enabled: boolean;
252
- keywords: string[];
253
- synonyms: string[];
254
- type: "group" | "oneway";
255
- }
256
- export interface MergedValue {
257
- id: string;
258
- name: string;
259
- field: string;
260
- keywords: string[];
261
- values: string[];
262
- }
263
- export interface Collection {
264
- title: string;
265
- handle: string;
266
- shopifyId: string;
267
- productIds: string[];
268
- storefrontId: string;
269
- legacyResourceId: number;
270
- }
271
- export declare type Product = Omit<ShopifyProduct, "variants" | "images" | "media" | "metafields"> & {
272
- variants: (Omit<ShopifyProduct["variants"]["edges"][0]["node"], "presentmentPrices"> & {
273
- images?: ShopifyProduct["images"]["edges"][0]["node"][];
274
- presentmentPrices: ShopifyProduct["variants"]["edges"][0]["node"]["presentmentPrices"]["edges"][0]["node"][];
275
- })[];
276
- images: ShopifyProduct["images"]["edges"][0]["node"][];
277
- media: ShopifyProduct["media"]["edges"][0]["node"][];
278
- metafields: ShopifyProduct["metafields"]["edges"][0]["node"][];
279
- };
280
- export {};
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PinType = exports.CurationStatus = void 0;
4
- var CurationStatus;
5
- (function (CurationStatus) {
6
- CurationStatus["Draft"] = "draft";
7
- CurationStatus["Publishing"] = "publishing";
8
- CurationStatus["Published"] = "published";
9
- CurationStatus["Unpublishing"] = "unpublishing";
10
- CurationStatus["Resetting"] = "resetting";
11
- CurationStatus["Pinning"] = "pinning";
12
- CurationStatus["Sorting"] = "sorting";
13
- })(CurationStatus = exports.CurationStatus || (exports.CurationStatus = {}));
14
- var PinType;
15
- (function (PinType) {
16
- PinType["Product"] = "product";
17
- PinType["Callout"] = "callout";
18
- })(PinType = exports.PinType || (exports.PinType = {}));