@usereactify/search 5.0.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 (143) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/package.json +1 -1
  3. package/dist/package.json +0 -65
  4. package/dist/src/components/context/ReactifySearchBase.d.ts +0 -42
  5. package/dist/src/components/context/ReactifySearchBase.js +0 -140
  6. package/dist/src/components/context/index.d.ts +0 -1
  7. package/dist/src/components/context/index.js +0 -13
  8. package/dist/src/components/example/ExampleFilterList.d.ts +0 -4
  9. package/dist/src/components/example/ExampleFilterList.js +0 -19
  10. package/dist/src/components/example/ExampleFilterRange.d.ts +0 -4
  11. package/dist/src/components/example/ExampleFilterRange.js +0 -21
  12. package/dist/src/components/example/ExampleFilterSlider.d.ts +0 -4
  13. package/dist/src/components/example/ExampleFilterSlider.js +0 -20
  14. package/dist/src/components/example/ExampleFilterStack.d.ts +0 -4
  15. package/dist/src/components/example/ExampleFilterStack.js +0 -12
  16. package/dist/src/components/example/ExampleResultCardCallout.d.ts +0 -4
  17. package/dist/src/components/example/ExampleResultCardCallout.js +0 -21
  18. package/dist/src/components/example/ExampleResultCardProduct.d.ts +0 -4
  19. package/dist/src/components/example/ExampleResultCardProduct.js +0 -18
  20. package/dist/src/components/example/ExampleResultPaginationLoadMore.d.ts +0 -4
  21. package/dist/src/components/example/ExampleResultPaginationLoadMore.js +0 -11
  22. package/dist/src/components/example/ExampleResultPaginationNextPrev.d.ts +0 -4
  23. package/dist/src/components/example/ExampleResultPaginationNextPrev.js +0 -13
  24. package/dist/src/components/example/ExampleResultPaginationNumbered.d.ts +0 -4
  25. package/dist/src/components/example/ExampleResultPaginationNumbered.js +0 -26
  26. package/dist/src/components/example/ExampleSortby.d.ts +0 -4
  27. package/dist/src/components/example/ExampleSortby.js +0 -12
  28. package/dist/src/components/example/index.d.ts +0 -10
  29. package/dist/src/components/example/index.js +0 -22
  30. package/dist/src/components/filter/Filter.d.ts +0 -20
  31. package/dist/src/components/filter/Filter.js +0 -89
  32. package/dist/src/components/filter/FilterStack.d.ts +0 -7
  33. package/dist/src/components/filter/FilterStack.js +0 -16
  34. package/dist/src/components/filter/index.d.ts +0 -2
  35. package/dist/src/components/filter/index.js +0 -14
  36. package/dist/src/components/index.d.ts +0 -8
  37. package/dist/src/components/index.js +0 -20
  38. package/dist/src/components/result/ResultCardCallout.d.ts +0 -12
  39. package/dist/src/components/result/ResultCardCallout.js +0 -46
  40. package/dist/src/components/result/ResultCardProduct.d.ts +0 -13
  41. package/dist/src/components/result/ResultCardProduct.js +0 -63
  42. package/dist/src/components/result/ResultPaginationLoadMore.d.ts +0 -7
  43. package/dist/src/components/result/ResultPaginationLoadMore.js +0 -16
  44. package/dist/src/components/result/ResultPaginationNextPrev.d.ts +0 -7
  45. package/dist/src/components/result/ResultPaginationNextPrev.js +0 -16
  46. package/dist/src/components/result/ResultPaginationNumbered.d.ts +0 -7
  47. package/dist/src/components/result/ResultPaginationNumbered.js +0 -19
  48. package/dist/src/components/result/ResultStack.d.ts +0 -40
  49. package/dist/src/components/result/ResultStack.js +0 -107
  50. package/dist/src/components/result/ResultStateProvider.d.ts +0 -6
  51. package/dist/src/components/result/ResultStateProvider.js +0 -10
  52. package/dist/src/components/result/index.d.ts +0 -7
  53. package/dist/src/components/result/index.js +0 -19
  54. package/dist/src/components/search/SearchInput.d.ts +0 -8
  55. package/dist/src/components/search/SearchInput.js +0 -17
  56. package/dist/src/components/search/index.d.ts +0 -1
  57. package/dist/src/components/search/index.js +0 -13
  58. package/dist/src/components/sensor/SensorCollection.d.ts +0 -2
  59. package/dist/src/components/sensor/SensorCollection.js +0 -44
  60. package/dist/src/components/sensor/SensorInventoryAvailable.d.ts +0 -2
  61. package/dist/src/components/sensor/SensorInventoryAvailable.js +0 -52
  62. package/dist/src/components/sensor/SensorPublished.d.ts +0 -2
  63. package/dist/src/components/sensor/SensorPublished.js +0 -16
  64. package/dist/src/components/sensor/SensorSearch.d.ts +0 -2
  65. package/dist/src/components/sensor/SensorSearch.js +0 -82
  66. package/dist/src/components/sensor/SensorSort.d.ts +0 -2
  67. package/dist/src/components/sensor/SensorSort.js +0 -204
  68. package/dist/src/components/sensor/SensorSortScore.d.ts +0 -2
  69. package/dist/src/components/sensor/SensorSortScore.js +0 -12
  70. package/dist/src/components/sensor/SensorStack.d.ts +0 -3
  71. package/dist/src/components/sensor/SensorStack.js +0 -31
  72. package/dist/src/components/sensor/index.d.ts +0 -8
  73. package/dist/src/components/sensor/index.js +0 -29
  74. package/dist/src/components/sortby/Sortby.d.ts +0 -7
  75. package/dist/src/components/sortby/Sortby.js +0 -16
  76. package/dist/src/components/sortby/index.d.ts +0 -1
  77. package/dist/src/components/sortby/index.js +0 -13
  78. package/dist/src/components/utility/UtilityAuthenticatedReactiveBase.d.ts +0 -2
  79. package/dist/src/components/utility/UtilityAuthenticatedReactiveBase.js +0 -14
  80. package/dist/src/components/utility/index.d.ts +0 -1
  81. package/dist/src/components/utility/index.js +0 -13
  82. package/dist/src/hooks/index.d.ts +0 -14
  83. package/dist/src/hooks/index.js +0 -26
  84. package/dist/src/hooks/reactivesearch/index.d.ts +0 -8
  85. package/dist/src/hooks/reactivesearch/index.js +0 -20
  86. package/dist/src/hooks/reactivesearch/useReactiveBaseProps.d.ts +0 -7
  87. package/dist/src/hooks/reactivesearch/useReactiveBaseProps.js +0 -43
  88. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.d.ts +0 -26
  89. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.js +0 -70
  90. package/dist/src/hooks/reactivesearch/useReactiveFilterListProps.d.ts +0 -73
  91. package/dist/src/hooks/reactivesearch/useReactiveFilterListProps.js +0 -21
  92. package/dist/src/hooks/reactivesearch/useReactiveFilterRangeProps.d.ts +0 -70
  93. package/dist/src/hooks/reactivesearch/useReactiveFilterRangeProps.js +0 -21
  94. package/dist/src/hooks/reactivesearch/useReactiveFilterSharedProps.d.ts +0 -67
  95. package/dist/src/hooks/reactivesearch/useReactiveFilterSharedProps.js +0 -105
  96. package/dist/src/hooks/reactivesearch/useReactiveFilterSliderProps.d.ts +0 -68
  97. package/dist/src/hooks/reactivesearch/useReactiveFilterSliderProps.js +0 -21
  98. package/dist/src/hooks/reactivesearch/useReactiveReactProp.d.ts +0 -3
  99. package/dist/src/hooks/reactivesearch/useReactiveReactProp.js +0 -25
  100. package/dist/src/hooks/reactivesearch/useReactiveResultStackProps.d.ts +0 -17
  101. package/dist/src/hooks/reactivesearch/useReactiveResultStackProps.js +0 -31
  102. package/dist/src/hooks/useAnalytics.d.ts +0 -95
  103. package/dist/src/hooks/useAnalytics.js +0 -110
  104. package/dist/src/hooks/useConfig.d.ts +0 -4
  105. package/dist/src/hooks/useConfig.js +0 -81
  106. package/dist/src/hooks/useCuration.d.ts +0 -2
  107. package/dist/src/hooks/useCuration.js +0 -52
  108. package/dist/src/hooks/useFilterCollapsedState.d.ts +0 -8
  109. package/dist/src/hooks/useFilterCollapsedState.js +0 -27
  110. package/dist/src/hooks/useFilterListProps.d.ts +0 -12
  111. package/dist/src/hooks/useFilterListProps.js +0 -35
  112. package/dist/src/hooks/useFilterStack.d.ts +0 -2
  113. package/dist/src/hooks/useFilterStack.js +0 -46
  114. package/dist/src/hooks/useFilters.d.ts +0 -4
  115. package/dist/src/hooks/useFilters.js +0 -22
  116. package/dist/src/hooks/usePagination.d.ts +0 -14
  117. package/dist/src/hooks/usePagination.js +0 -97
  118. package/dist/src/hooks/usePaginationLoadMore.d.ts +0 -14
  119. package/dist/src/hooks/usePaginationLoadMore.js +0 -35
  120. package/dist/src/hooks/useProductPrice.d.ts +0 -10
  121. package/dist/src/hooks/useProductPrice.js +0 -63
  122. package/dist/src/hooks/useReactifySearchContext.d.ts +0 -78
  123. package/dist/src/hooks/useReactifySearchContext.js +0 -10
  124. package/dist/src/hooks/useSearch.d.ts +0 -8
  125. package/dist/src/hooks/useSearch.js +0 -36
  126. package/dist/src/hooks/useSortby.d.ts +0 -6
  127. package/dist/src/hooks/useSortby.js +0 -41
  128. package/dist/src/index.d.ts +0 -3
  129. package/dist/src/index.js +0 -18
  130. package/dist/src/types/config.d.ts +0 -26
  131. package/dist/src/types/config.js +0 -2
  132. package/dist/src/types/elastic.d.ts +0 -209
  133. package/dist/src/types/elastic.js +0 -18
  134. package/dist/src/types/firestore.d.ts +0 -280
  135. package/dist/src/types/firestore.js +0 -18
  136. package/dist/src/types/graphql.d.ts +0 -26545
  137. package/dist/src/types/graphql.js +0 -4687
  138. package/dist/src/types/index.d.ts +0 -3
  139. package/dist/src/types/index.js +0 -15
  140. package/dist/src/types/reactivesearch.d.ts +0 -73
  141. package/dist/src/types/reactivesearch.js +0 -2
  142. package/dist/src/types/shopify.d.ts +0 -21
  143. package/dist/src/types/shopify.js +0 -27
@@ -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 = {}));