@usereactify/search 5.0.0-beta.6 → 5.0.0-beta.9

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 (90) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/package.json +1 -1
  3. package/dist/src/components/Example/ExampleFilterList.d.ts +1 -1
  4. package/dist/src/components/Example/ExampleFilterList.js +9 -8
  5. package/dist/src/components/Example/ExampleFilterList.js.map +1 -1
  6. package/dist/src/components/Example/ExampleFilterRange.d.ts +1 -1
  7. package/dist/src/components/Example/ExampleFilterRange.js +3 -3
  8. package/dist/src/components/Example/ExampleFilterRange.js.map +1 -1
  9. package/dist/src/components/Example/ExampleFilterSlider.d.ts +1 -1
  10. package/dist/src/components/Example/ExampleFilterSlider.js +2 -2
  11. package/dist/src/components/Example/ExampleFilterSlider.js.map +1 -1
  12. package/dist/src/components/Example/ExampleFilterStack.d.ts +1 -1
  13. package/dist/src/components/Example/ExampleFilterStack.js.map +1 -1
  14. package/dist/src/components/Example/ExampleResultCardCallout.d.ts +1 -1
  15. package/dist/src/components/Example/ExampleResultCardCallout.js +4 -4
  16. package/dist/src/components/Example/ExampleResultCardCallout.js.map +1 -1
  17. package/dist/src/components/Example/ExampleResultCardProduct.d.ts +1 -1
  18. package/dist/src/components/Example/ExampleResultCardProduct.js +7 -7
  19. package/dist/src/components/Example/ExampleResultCardProduct.js.map +1 -1
  20. package/dist/src/components/Example/ExampleResultPaginationLoadMore.d.ts +1 -1
  21. package/dist/src/components/Example/ExampleResultPaginationLoadMore.js +1 -1
  22. package/dist/src/components/Example/ExampleResultPaginationLoadMore.js.map +1 -1
  23. package/dist/src/components/Example/ExampleResultPaginationNextPrev.d.ts +1 -1
  24. package/dist/src/components/Example/ExampleResultPaginationNextPrev.js +3 -3
  25. package/dist/src/components/Example/ExampleResultPaginationNextPrev.js.map +1 -1
  26. package/dist/src/components/Example/ExampleResultPaginationNumbered.d.ts +1 -1
  27. package/dist/src/components/Example/ExampleResultPaginationNumbered.js +6 -6
  28. package/dist/src/components/Example/ExampleResultPaginationNumbered.js.map +1 -1
  29. package/dist/src/components/Example/ExampleSortby.d.ts +1 -1
  30. package/dist/src/components/Example/ExampleSortby.js +1 -1
  31. package/dist/src/components/Example/ExampleSortby.js.map +1 -1
  32. package/dist/src/components/ReactifySearchBase/ReactifySearchBase.js +7 -20
  33. package/dist/src/components/ReactifySearchBase/ReactifySearchBase.js.map +1 -1
  34. package/dist/src/components/Result/ResultCardCallout.js +3 -5
  35. package/dist/src/components/Result/ResultCardCallout.js.map +1 -1
  36. package/dist/src/components/Result/ResultCardProduct.js +4 -18
  37. package/dist/src/components/Result/ResultCardProduct.js.map +1 -1
  38. package/dist/src/components/Result/ResultStack.js +6 -6
  39. package/dist/src/components/Result/ResultStack.js.map +1 -1
  40. package/dist/src/components/Result/ResultStateProvider.d.ts +1 -1
  41. package/dist/src/components/Result/ResultStateProvider.js +4 -1
  42. package/dist/src/components/Result/ResultStateProvider.js.map +1 -1
  43. package/dist/src/components/Sensor/SensorInventoryAvailable.js +1 -1
  44. package/dist/src/components/Sensor/SensorInventoryAvailable.js.map +1 -1
  45. package/dist/src/components/Sensor/SensorSort.js +1 -19
  46. package/dist/src/components/Sensor/SensorSort.js.map +1 -1
  47. package/dist/src/components/Utility/UtilityAuthenticatedReactiveBase.js +3 -3
  48. package/dist/src/components/Utility/UtilityAuthenticatedReactiveBase.js.map +1 -1
  49. package/dist/src/hooks/index.d.ts +1 -0
  50. package/dist/src/hooks/index.js +1 -0
  51. package/dist/src/hooks/index.js.map +1 -1
  52. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.d.ts +1 -1
  53. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.js +0 -1
  54. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.js.map +1 -1
  55. package/dist/src/hooks/reactivesearch/useReactiveResultStackProps.js +1 -1
  56. package/dist/src/hooks/reactivesearch/useReactiveResultStackProps.js.map +1 -1
  57. package/dist/src/hooks/useAnalytics.js +2 -0
  58. package/dist/src/hooks/useAnalytics.js.map +1 -1
  59. package/dist/src/hooks/useConfig.js +9 -8
  60. package/dist/src/hooks/useConfig.js.map +1 -1
  61. package/dist/src/hooks/useCuration.js +16 -3
  62. package/dist/src/hooks/useCuration.js.map +1 -1
  63. package/dist/src/hooks/useDebugger.d.ts +1 -0
  64. package/dist/src/hooks/useDebugger.js +15 -0
  65. package/dist/src/hooks/useDebugger.js.map +1 -0
  66. package/dist/src/hooks/useFilterStack.d.ts +3 -1
  67. package/dist/src/hooks/useFilterStack.js +6 -1
  68. package/dist/src/hooks/useFilterStack.js.map +1 -1
  69. package/dist/src/hooks/useFilters.js +7 -3
  70. package/dist/src/hooks/useFilters.js.map +1 -1
  71. package/dist/src/hooks/usePagination.d.ts +1 -1
  72. package/dist/src/hooks/usePagination.js +11 -0
  73. package/dist/src/hooks/usePagination.js.map +1 -1
  74. package/dist/src/hooks/usePaginationLoadMore.d.ts +1 -1
  75. package/dist/src/hooks/usePaginationLoadMore.js +7 -7
  76. package/dist/src/hooks/usePaginationLoadMore.js.map +1 -1
  77. package/dist/src/hooks/useSearch.d.ts +1 -1
  78. package/dist/src/hooks/useSearch.js +19 -6
  79. package/dist/src/hooks/useSearch.js.map +1 -1
  80. package/dist/src/hooks/useSortby.js +21 -5
  81. package/dist/src/hooks/useSortby.js.map +1 -1
  82. package/dist/src/index.js +45 -3
  83. package/dist/src/index.js.map +1 -1
  84. package/dist/src/utility/debug.d.ts +10 -0
  85. package/dist/src/utility/debug.js +39 -0
  86. package/dist/src/utility/debug.js.map +1 -0
  87. package/dist/src/utility/index.d.ts +1 -0
  88. package/dist/src/utility/index.js +14 -0
  89. package/dist/src/utility/index.js.map +1 -0
  90. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.debug = void 0;
26
+ const debug_1 = __importDefault(require("debug"));
27
+ const Sentry = __importStar(require("@sentry/react"));
28
+ const hooks_1 = require("../hooks");
29
+ exports.debug = {
30
+ namespace: "reactify-search",
31
+ log: (namespace, formatter, ...args) => {
32
+ (0, debug_1.default)(`${exports.debug.namespace}:${namespace}`)(formatter, ...args);
33
+ },
34
+ breadcrumb: (breadcrumb) => {
35
+ Sentry.addBreadcrumb(Object.assign(Object.assign({ level: "debug", type: "query" }, breadcrumb), { category: `${exports.debug.namespace}:${breadcrumb.category}` }));
36
+ },
37
+ hook: hooks_1.useDebugger,
38
+ };
39
+ //# sourceMappingURL=debug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/utility/debug.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,sDAAwC;AAExC,oCAAuC;AAE1B,QAAA,KAAK,GAAG;IACnB,SAAS,EAAE,iBAAiB;IAC5B,GAAG,EAAE,CAAC,SAAiB,EAAE,SAAkB,EAAE,GAAG,IAAgB,EAAE,EAAE;QAClE,IAAA,eAAK,EAAC,GAAG,aAAK,CAAC,SAAS,IAAI,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC;IAC/D,CAAC;IACD,UAAU,EAAE,CACV,UAGC,EACD,EAAE;QACF,MAAM,CAAC,aAAa,+BAClB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,IACV,UAAU,KACb,QAAQ,EAAE,GAAG,aAAK,CAAC,SAAS,IAAI,UAAU,CAAC,QAAQ,EAAE,IACrD,CAAC;IACL,CAAC;IACD,IAAI,EAAE,mBAAW;CAClB,CAAC","sourcesContent":["import Debug from \"debug\";\nimport * as Sentry from \"@sentry/react\";\n\nimport { useDebugger } from \"../hooks\";\n\nexport const debug = {\n namespace: \"reactify-search\",\n log: (namespace: string, formatter?: string, ...args: Array<any>) => {\n Debug(`${debug.namespace}:${namespace}`)(formatter, ...args);\n },\n breadcrumb: (\n breadcrumb: Partial<Sentry.Breadcrumb> & {\n message: string;\n category: \"search\" | \"sort\" | \"pagination\" | \"filter\" | \"curation\";\n }\n ) => {\n Sentry.addBreadcrumb({\n level: \"debug\",\n type: \"query\",\n ...breadcrumb,\n category: `${debug.namespace}:${breadcrumb.category}`,\n });\n },\n hook: useDebugger,\n};\n"]}
@@ -0,0 +1 @@
1
+ export * from "./debug";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./debug"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB","sourcesContent":["export * from \"./debug\";"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "5.0.0-beta.6",
4
+ "version": "5.0.0-beta.9",
5
5
  "license": "MIT",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",