@envive-ai/react-widgets 0.1.2-arthur-2 → 0.1.2-arthur-3
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.
- package/dist/SearchZeroState/{index-DSFtalZR.d.ts → index-19CiYvee.d.cts} +1 -1
- package/dist/SearchZeroState/{index-bEcxYOSF.d.cts → index-6EaGWYP4.d.ts} +1 -1
- package/dist/SearchZeroState/index.cjs +74 -126
- package/dist/SearchZeroState/index.js +74 -126
- package/package.json +2 -2
- package/src/SearchZeroState/SearchZeroState.tsx +1 -1
- /package/dist/SearchResults/{index-CYPV3XE0.d.ts → index-D52sX_I2.d.cts} +0 -0
- /package/dist/SearchResults/{index-DCTxvwmv.d.cts → index-D8nrHueo.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React$1 from "react";
|
|
2
1
|
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
2
|
import { SearchEntryPointWidgetConfig, SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
3
|
+
import React$1 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/SearchZeroState/types.d.ts
|
|
6
6
|
interface SearchZeroStateProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import React$1 from "react";
|
|
1
2
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
3
|
import { SearchEntryPointWidgetConfig, SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
3
|
-
import React$1 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/SearchZeroState/types.d.ts
|
|
6
6
|
interface SearchZeroStateProps {
|
|
@@ -20,20 +20,30 @@ let react_dom = require("react-dom");
|
|
|
20
20
|
let __envive_ai_react_hooks_contexts_types = require("@envive-ai/react-hooks/contexts/types");
|
|
21
21
|
let __envive_ai_react_toolkit_ProductGrid = require("@envive-ai/react-toolkit/ProductGrid");
|
|
22
22
|
|
|
23
|
-
//#region
|
|
23
|
+
//#region node_modules/@envive-ai/react-icons/dist/jsx-runtime-WKqb-nOR.js
|
|
24
|
+
var __create = Object.create;
|
|
25
|
+
var __defProp = Object.defineProperty;
|
|
26
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
24
27
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
28
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
29
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
25
30
|
var __commonJS = (cb, mod) => function() {
|
|
26
31
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
32
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
var __copyProps = (to, from, except, desc) => {
|
|
34
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n$2 = keys.length, key; i < n$2; i++) {
|
|
35
|
+
key = keys[i];
|
|
36
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
37
|
+
get: ((k$1) => from[k$1]).bind(null, key),
|
|
38
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return to;
|
|
42
|
+
};
|
|
43
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
44
|
+
value: mod,
|
|
45
|
+
enumerable: true
|
|
46
|
+
}) : target, mod));
|
|
37
47
|
var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react.production.min.js": ((exports$1) => {
|
|
38
48
|
var l$1 = Symbol.for("react.element"), n$1 = Symbol.for("react.portal"), p$1 = Symbol.for("react.fragment"), q$1 = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
|
|
39
49
|
function A(a) {
|
|
@@ -347,15 +357,6 @@ var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
347
357
|
};
|
|
348
358
|
exports$1.version = "18.3.1";
|
|
349
359
|
}) });
|
|
350
|
-
/**
|
|
351
|
-
* @license React
|
|
352
|
-
* react.development.js
|
|
353
|
-
*
|
|
354
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
355
|
-
*
|
|
356
|
-
* This source code is licensed under the MIT license found in the
|
|
357
|
-
* LICENSE file in the root directory of this source tree.
|
|
358
|
-
*/
|
|
359
360
|
var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react.development.js": ((exports$1, module$1) => {
|
|
360
361
|
if (process.env.NODE_ENV !== "production") (function() {
|
|
361
362
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(/* @__PURE__ */ new Error());
|
|
@@ -1871,17 +1872,8 @@ var require_react = /* @__PURE__ */ __commonJS({ "../../node_modules/react/index
|
|
|
1871
1872
|
if (process.env.NODE_ENV === "production") module$1.exports = require_react_production_min();
|
|
1872
1873
|
else module$1.exports = require_react_development();
|
|
1873
1874
|
}) });
|
|
1874
|
-
/**
|
|
1875
|
-
* @license React
|
|
1876
|
-
* react-jsx-runtime.production.min.js
|
|
1877
|
-
*
|
|
1878
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1879
|
-
*
|
|
1880
|
-
* This source code is licensed under the MIT license found in the
|
|
1881
|
-
* LICENSE file in the root directory of this source tree.
|
|
1882
|
-
*/
|
|
1883
1875
|
var require_react_jsx_runtime_production_min = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.production.min.js": ((exports$1) => {
|
|
1884
|
-
var f = require_react(), k = Symbol.for("react.element"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = {
|
|
1876
|
+
var f = require_react(), k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = {
|
|
1885
1877
|
key: !0,
|
|
1886
1878
|
ref: !0,
|
|
1887
1879
|
__self: !0,
|
|
@@ -1903,18 +1895,10 @@ var require_react_jsx_runtime_production_min = /* @__PURE__ */ __commonJS({ "../
|
|
|
1903
1895
|
_owner: n.current
|
|
1904
1896
|
};
|
|
1905
1897
|
}
|
|
1898
|
+
exports$1.Fragment = l;
|
|
1906
1899
|
exports$1.jsx = q;
|
|
1907
1900
|
exports$1.jsxs = q;
|
|
1908
1901
|
}) });
|
|
1909
|
-
/**
|
|
1910
|
-
* @license React
|
|
1911
|
-
* react-jsx-runtime.development.js
|
|
1912
|
-
*
|
|
1913
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1914
|
-
*
|
|
1915
|
-
* This source code is licensed under the MIT license found in the
|
|
1916
|
-
* LICENSE file in the root directory of this source tree.
|
|
1917
|
-
*/
|
|
1918
1902
|
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.development.js": ((exports$1) => {
|
|
1919
1903
|
if (process.env.NODE_ENV !== "production") (function() {
|
|
1920
1904
|
var React$3 = require_react();
|
|
@@ -2599,58 +2583,39 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/react
|
|
|
2599
2583
|
}) });
|
|
2600
2584
|
|
|
2601
2585
|
//#endregion
|
|
2602
|
-
//#region
|
|
2603
|
-
|
|
2604
|
-
|
|
2586
|
+
//#region node_modules/@envive-ai/react-icons/dist/Sparkles.js
|
|
2587
|
+
require_react();
|
|
2588
|
+
var import_jsx_runtime$3 = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2589
|
+
const SvgSparkles = (props) => /* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("svg", {
|
|
2590
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2605
2591
|
width: 24,
|
|
2606
2592
|
height: 24,
|
|
2607
|
-
viewBox: "0 0 24 24",
|
|
2608
2593
|
fill: "currentColor",
|
|
2609
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2610
2594
|
...props,
|
|
2611
|
-
children:
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
strokeLinejoin: "round"
|
|
2619
|
-
}),
|
|
2620
|
-
/* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("path", {
|
|
2621
|
-
d: "M19.6402 14.3135L20.2844 15.9884C20.3891 16.2608 20.4415 16.397 20.523 16.5115C20.5952 16.6131 20.6839 16.7018 20.7854 16.774C20.8999 16.8554 21.0361 16.9078 21.3085 17.0126L22.9835 17.6568L21.3085 18.301C21.0361 18.4057 20.8999 18.4581 20.7854 18.5396C20.6839 18.6118 20.5952 18.7005 20.523 18.802C20.4415 18.9166 20.3891 19.0527 20.2844 19.3251L19.6402 21.0001L18.996 19.3251C18.8912 19.0527 18.8388 18.9166 18.7574 18.802C18.6852 18.7005 18.5965 18.6118 18.4949 18.5396C18.3804 18.4581 18.2442 18.4057 17.9718 18.301L16.2969 17.6568L17.9718 17.0126C18.2442 16.9078 18.3804 16.8554 18.4949 16.774C18.5965 16.7018 18.6852 16.6131 18.7574 16.5115C18.8388 16.397 18.8912 16.2608 18.996 15.9884L19.6402 14.3135Z",
|
|
2622
|
-
fill: "currentColor",
|
|
2623
|
-
stroke: "currentColor",
|
|
2624
|
-
strokeWidth: 1.11443,
|
|
2625
|
-
strokeLinecap: "round",
|
|
2626
|
-
strokeLinejoin: "round"
|
|
2627
|
-
}),
|
|
2628
|
-
/* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("path", {
|
|
2629
|
-
d: "M17.0913 3L17.7355 4.67494C17.8403 4.94732 17.8927 5.0835 17.9741 5.19806C18.0463 5.29959 18.135 5.38829 18.2366 5.46049C18.3511 5.54194 18.4873 5.59432 18.7597 5.69908L20.4346 6.34329L18.7597 6.9875C18.4873 7.09226 18.3511 7.14464 18.2366 7.22609C18.135 7.29829 18.0463 7.38699 17.9741 7.48852C17.8927 7.60308 17.8403 7.73927 17.7355 8.01165L17.0913 9.68658L16.4471 8.01165C16.3424 7.73927 16.29 7.60308 16.2085 7.48852C16.1363 7.38699 16.0476 7.29829 15.9461 7.22609C15.8315 7.14464 15.6954 7.09226 15.423 6.9875L13.748 6.34329L15.423 5.69908C15.6954 5.59432 15.8315 5.54194 15.9461 5.46049C16.0476 5.38829 16.1363 5.29959 16.2085 5.19806C16.29 5.0835 16.3424 4.94731 16.4471 4.67494L17.0913 3Z",
|
|
2630
|
-
fill: "currentColor",
|
|
2631
|
-
stroke: "currentColor",
|
|
2632
|
-
strokeWidth: 1.11443,
|
|
2633
|
-
strokeLinecap: "round",
|
|
2634
|
-
strokeLinejoin: "round"
|
|
2635
|
-
})
|
|
2636
|
-
]
|
|
2595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("path", {
|
|
2596
|
+
stroke: "currentColor",
|
|
2597
|
+
strokeLinecap: "round",
|
|
2598
|
+
strokeLinejoin: "round",
|
|
2599
|
+
strokeWidth: 1.114,
|
|
2600
|
+
d: "m8.187 5.996 1.288 3.35c.21.545.314.817.477 1.046q.219.306.525.525c.23.163.502.268 1.046.477l3.35 1.289-3.35 1.288c-.544.21-.817.314-1.046.477q-.306.219-.525.525c-.163.23-.267.502-.477 1.046l-1.288 3.35-1.289-3.35c-.21-.544-.314-.817-.477-1.046a2.2 2.2 0 0 0-.525-.525c-.229-.163-.501-.267-1.046-.477L1.5 12.683l3.35-1.289c.545-.21.817-.314 1.046-.477.203-.144.38-.322.525-.525.163-.229.268-.501.477-1.046zM19.64 14.314l.644 1.674c.105.273.158.409.239.524q.108.153.262.262c.115.081.251.134.523.239l1.675.644-1.675.644c-.272.105-.408.157-.523.239q-.153.108-.262.262c-.081.115-.134.25-.239.523L19.64 21l-.644-1.675c-.105-.272-.157-.408-.239-.523a1.1 1.1 0 0 0-.262-.262c-.115-.082-.25-.134-.523-.239l-1.675-.644 1.675-.644c.272-.105.408-.158.523-.239q.153-.108.262-.262c.082-.115.134-.251.239-.524zM17.091 3l.644 1.675c.105.272.158.409.24.523q.108.154.262.262c.114.082.25.134.523.24l1.675.643-1.675.644c-.273.105-.409.158-.523.24q-.153.108-.263.262c-.081.114-.134.25-.239.523l-.644 1.675-.644-1.675c-.105-.273-.157-.409-.238-.523a1.1 1.1 0 0 0-.263-.263c-.114-.081-.25-.134-.523-.239l-1.675-.644 1.675-.644c.272-.105.409-.157.523-.239q.153-.109.263-.262c.081-.115.133-.25.238-.523z"
|
|
2601
|
+
})
|
|
2637
2602
|
});
|
|
2638
2603
|
var Sparkles_default = SvgSparkles;
|
|
2639
2604
|
|
|
2640
2605
|
//#endregion
|
|
2641
|
-
//#region
|
|
2642
|
-
|
|
2606
|
+
//#region node_modules/@envive-ai/react-icons/dist/IconCloseVariant.js
|
|
2607
|
+
require_react();
|
|
2608
|
+
var import_jsx_runtime$2 = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2643
2609
|
const SvgIconCloseVariant = (props) => /* @__PURE__ */ (0, import_jsx_runtime$2.jsx)("svg", {
|
|
2644
|
-
viewBox: "0 0 24 24",
|
|
2645
2610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2611
|
+
viewBox: "0 0 24 24",
|
|
2646
2612
|
...props,
|
|
2647
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime$2.
|
|
2648
|
-
className: "
|
|
2649
|
-
children:
|
|
2650
|
-
d: "m18.98,2.56l-6.76,6.76l-6.76,-6.76l-2.65,2.65l6.76,6.76l-6.76,6.76l2.65,2.65l6.76,-6.76l6.76,6.76l2.65,-2.65l-6.76,-6.76l6.76,-6.76l-2.65,-2.65z",
|
|
2613
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime$2.jsx)("g", {
|
|
2614
|
+
className: "icon-close-variant_svg__layer",
|
|
2615
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime$2.jsx)("path", {
|
|
2651
2616
|
fill: "currentColor",
|
|
2652
|
-
|
|
2653
|
-
})
|
|
2617
|
+
d: "m18.98 2.56-6.76 6.76-6.76-6.76-2.65 2.65 6.76 6.76-6.76 6.76 2.65 2.65 6.76-6.76 6.76 6.76 2.65-2.65-6.76-6.76 6.76-6.76z"
|
|
2618
|
+
})
|
|
2654
2619
|
})
|
|
2655
2620
|
});
|
|
2656
2621
|
var IconCloseVariant_default = SvgIconCloseVariant;
|
|
@@ -2722,67 +2687,50 @@ const searchZeroStateVariantClasses = {
|
|
|
2722
2687
|
};
|
|
2723
2688
|
|
|
2724
2689
|
//#endregion
|
|
2725
|
-
//#region
|
|
2726
|
-
|
|
2690
|
+
//#region node_modules/@envive-ai/react-icons/dist/AiSearchBold.js
|
|
2691
|
+
require_react();
|
|
2692
|
+
var import_jsx_runtime$1 = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2727
2693
|
const SvgAiSearchBold = (props) => /* @__PURE__ */ (0, import_jsx_runtime$1.jsxs)("svg", {
|
|
2694
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2728
2695
|
width: 32,
|
|
2729
2696
|
height: 32,
|
|
2730
|
-
viewBox: "0 0 32 32",
|
|
2731
2697
|
fill: "none",
|
|
2732
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2733
2698
|
...props,
|
|
2734
|
-
children: [
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
strokeLinecap: "round"
|
|
2747
|
-
}),
|
|
2748
|
-
/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
2749
|
-
d: "M19.312 21.2498L24.1245 26.4999",
|
|
2750
|
-
stroke: "#111111",
|
|
2751
|
-
strokeWidth: 2,
|
|
2752
|
-
strokeLinecap: "round"
|
|
2753
|
-
})
|
|
2754
|
-
]
|
|
2699
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
2700
|
+
fill: "#AB1212",
|
|
2701
|
+
stroke: "#AB1212",
|
|
2702
|
+
strokeLinecap: "round",
|
|
2703
|
+
strokeLinejoin: "round",
|
|
2704
|
+
d: "m25.345 3.271 1.103 2.87c.18.466.27.7.409.896q.186.263.45.45c.196.139.429.229.896.408L31.072 9l-2.87 1.103c-.466.18-.7.27-.896.41a1.9 1.9 0 0 0-.45.449c-.139.196-.229.43-.408.896l-1.104 2.869-1.103-2.87c-.18-.466-.27-.7-.409-.895a1.9 1.9 0 0 0-.45-.45c-.196-.14-.429-.23-.896-.409L19.618 9l2.87-1.104c.466-.18.7-.269.896-.409a1.9 1.9 0 0 0 .45-.45c.139-.195.228-.429.408-.895z"
|
|
2705
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
2706
|
+
stroke: "#111",
|
|
2707
|
+
strokeLinecap: "round",
|
|
2708
|
+
strokeWidth: 2,
|
|
2709
|
+
d: "M18.807 5.469A9.402 9.402 0 1 0 13.4 22.72c4.463.11 8.277-2.907 9.34-7.055M19.312 21.25l4.813 5.25"
|
|
2710
|
+
})]
|
|
2755
2711
|
});
|
|
2756
2712
|
var AiSearchBold_default = SvgAiSearchBold;
|
|
2757
2713
|
|
|
2758
2714
|
//#endregion
|
|
2759
|
-
//#region
|
|
2760
|
-
|
|
2715
|
+
//#region node_modules/@envive-ai/react-icons/dist/AiSearchThin.js
|
|
2716
|
+
require_react();
|
|
2717
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2761
2718
|
const SvgAiSearchThin = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
2719
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2762
2720
|
width: 26,
|
|
2763
2721
|
height: 23,
|
|
2764
|
-
viewBox: "0 0 26 23",
|
|
2765
2722
|
fill: "none",
|
|
2766
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2767
2723
|
...props,
|
|
2768
|
-
children: [
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
strokeLinecap: "round"
|
|
2779
|
-
}),
|
|
2780
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
2781
|
-
d: "M15.5439 17.7734L19.1358 21.7072",
|
|
2782
|
-
stroke: "currentColor",
|
|
2783
|
-
strokeLinecap: "round"
|
|
2784
|
-
})
|
|
2785
|
-
]
|
|
2724
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
2725
|
+
stroke: "currentColor",
|
|
2726
|
+
strokeLinecap: "round",
|
|
2727
|
+
strokeLinejoin: "round",
|
|
2728
|
+
d: "M19.106 1.148 20 3.47c.145.377.218.566.33.725.1.14.224.263.364.363.16.113.348.186.726.331l2.32.893-2.32.893c-.378.145-.567.217-.726.33q-.212.151-.363.364c-.113.159-.186.348-.33.725l-.894 2.321-.893-2.32c-.145-.378-.217-.567-.33-.726-.1-.14-.223-.264-.364-.364-.159-.113-.347-.185-.725-.33l-2.321-.893 2.321-.893c.378-.145.566-.218.725-.33.14-.1.264-.224.364-.364.113-.16.185-.348.33-.725z"
|
|
2729
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
2730
|
+
stroke: "currentColor",
|
|
2731
|
+
strokeLinecap: "round",
|
|
2732
|
+
d: "M13.108 2.928a7.607 7.607 0 1 0 3.182 8.25M15.544 17.773l3.592 3.934"
|
|
2733
|
+
})]
|
|
2786
2734
|
});
|
|
2787
2735
|
var AiSearchThin_default = SvgAiSearchThin;
|
|
2788
2736
|
|
|
@@ -2891,7 +2839,7 @@ const SearchZeroState = ({ widgetConfig, initialIsOpen, entryPointRef }) => {
|
|
|
2891
2839
|
const { variant: suggestionButtonVariant, hoverVariant: suggestionButtonHoverVariant, borderRadius: suggestionButtonBorderRadius } = suggestionButtonConfig;
|
|
2892
2840
|
const [isOpen, setIsOpen] = (0, react.useState)(!!initialIsOpen);
|
|
2893
2841
|
const searchInputRef = (0, react.useRef)(null);
|
|
2894
|
-
const searchInput = (0, __envive_ai_react_hooks_hooks_Search.useSearch)();
|
|
2842
|
+
const searchInput = (0, __envive_ai_react_hooks_hooks_Search.useSearch)({ allowRedirect: true });
|
|
2895
2843
|
const { track } = (0, __envive_ai_react_hooks_hooks_AmplitudeOperations.useAmplitudeTracking)();
|
|
2896
2844
|
const { recommendedProductsHeading, searchOverlayHeading, productCardConfig, merchantShortName, recommendedProducts, searchText, autocompleteResults, focusedIndex, focusedOptionId, shouldShowAutocomplete, onSearchInputChange, onSearchInputFocus, onSearchInputBlur, onKeyDown, onAutocompleteSelect, onSubmitSearch, resetSearch } = searchInput;
|
|
2897
2845
|
const { overlayBackgroundClasses, sparklesIconColor } = searchZeroStateVariantClasses[searchZeroStateVariant && searchZeroStateVariantClasses[searchZeroStateVariant] ? searchZeroStateVariant : "backgroundTertiary"];
|
|
@@ -17,20 +17,30 @@ import { createPortal } from "react-dom";
|
|
|
17
17
|
import { ColorNames, colorVar } from "@envive-ai/react-hooks/contexts/types";
|
|
18
18
|
import { ProductGrid } from "@envive-ai/react-toolkit/ProductGrid";
|
|
19
19
|
|
|
20
|
-
//#region
|
|
20
|
+
//#region node_modules/@envive-ai/react-icons/dist/jsx-runtime-WKqb-nOR.js
|
|
21
|
+
var __create = Object.create;
|
|
22
|
+
var __defProp = Object.defineProperty;
|
|
23
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
21
24
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
25
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
26
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
22
27
|
var __commonJS = (cb, mod) => function() {
|
|
23
28
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
24
29
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
var __copyProps = (to, from, except, desc) => {
|
|
31
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n$2 = keys.length, key; i < n$2; i++) {
|
|
32
|
+
key = keys[i];
|
|
33
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
34
|
+
get: ((k$1) => from[k$1]).bind(null, key),
|
|
35
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return to;
|
|
39
|
+
};
|
|
40
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
41
|
+
value: mod,
|
|
42
|
+
enumerable: true
|
|
43
|
+
}) : target, mod));
|
|
34
44
|
var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react.production.min.js": ((exports) => {
|
|
35
45
|
var l$1 = Symbol.for("react.element"), n$1 = Symbol.for("react.portal"), p$1 = Symbol.for("react.fragment"), q$1 = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
|
|
36
46
|
function A(a) {
|
|
@@ -344,15 +354,6 @@ var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
344
354
|
};
|
|
345
355
|
exports.version = "18.3.1";
|
|
346
356
|
}) });
|
|
347
|
-
/**
|
|
348
|
-
* @license React
|
|
349
|
-
* react.development.js
|
|
350
|
-
*
|
|
351
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
352
|
-
*
|
|
353
|
-
* This source code is licensed under the MIT license found in the
|
|
354
|
-
* LICENSE file in the root directory of this source tree.
|
|
355
|
-
*/
|
|
356
357
|
var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react.development.js": ((exports, module) => {
|
|
357
358
|
if (process.env.NODE_ENV !== "production") (function() {
|
|
358
359
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(/* @__PURE__ */ new Error());
|
|
@@ -1868,17 +1869,8 @@ var require_react = /* @__PURE__ */ __commonJS({ "../../node_modules/react/index
|
|
|
1868
1869
|
if (process.env.NODE_ENV === "production") module.exports = require_react_production_min();
|
|
1869
1870
|
else module.exports = require_react_development();
|
|
1870
1871
|
}) });
|
|
1871
|
-
/**
|
|
1872
|
-
* @license React
|
|
1873
|
-
* react-jsx-runtime.production.min.js
|
|
1874
|
-
*
|
|
1875
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1876
|
-
*
|
|
1877
|
-
* This source code is licensed under the MIT license found in the
|
|
1878
|
-
* LICENSE file in the root directory of this source tree.
|
|
1879
|
-
*/
|
|
1880
1872
|
var require_react_jsx_runtime_production_min = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.production.min.js": ((exports) => {
|
|
1881
|
-
var f = require_react(), k = Symbol.for("react.element"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = {
|
|
1873
|
+
var f = require_react(), k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = {
|
|
1882
1874
|
key: !0,
|
|
1883
1875
|
ref: !0,
|
|
1884
1876
|
__self: !0,
|
|
@@ -1900,18 +1892,10 @@ var require_react_jsx_runtime_production_min = /* @__PURE__ */ __commonJS({ "../
|
|
|
1900
1892
|
_owner: n.current
|
|
1901
1893
|
};
|
|
1902
1894
|
}
|
|
1895
|
+
exports.Fragment = l;
|
|
1903
1896
|
exports.jsx = q;
|
|
1904
1897
|
exports.jsxs = q;
|
|
1905
1898
|
}) });
|
|
1906
|
-
/**
|
|
1907
|
-
* @license React
|
|
1908
|
-
* react-jsx-runtime.development.js
|
|
1909
|
-
*
|
|
1910
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1911
|
-
*
|
|
1912
|
-
* This source code is licensed under the MIT license found in the
|
|
1913
|
-
* LICENSE file in the root directory of this source tree.
|
|
1914
|
-
*/
|
|
1915
1899
|
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJS({ "../../node_modules/react/cjs/react-jsx-runtime.development.js": ((exports) => {
|
|
1916
1900
|
if (process.env.NODE_ENV !== "production") (function() {
|
|
1917
1901
|
var React$1 = require_react();
|
|
@@ -2596,58 +2580,39 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/react
|
|
|
2596
2580
|
}) });
|
|
2597
2581
|
|
|
2598
2582
|
//#endregion
|
|
2599
|
-
//#region
|
|
2600
|
-
|
|
2601
|
-
|
|
2583
|
+
//#region node_modules/@envive-ai/react-icons/dist/Sparkles.js
|
|
2584
|
+
require_react();
|
|
2585
|
+
var import_jsx_runtime$3 = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2586
|
+
const SvgSparkles = (props) => /* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("svg", {
|
|
2587
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2602
2588
|
width: 24,
|
|
2603
2589
|
height: 24,
|
|
2604
|
-
viewBox: "0 0 24 24",
|
|
2605
2590
|
fill: "currentColor",
|
|
2606
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2607
2591
|
...props,
|
|
2608
|
-
children:
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
strokeLinejoin: "round"
|
|
2616
|
-
}),
|
|
2617
|
-
/* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("path", {
|
|
2618
|
-
d: "M19.6402 14.3135L20.2844 15.9884C20.3891 16.2608 20.4415 16.397 20.523 16.5115C20.5952 16.6131 20.6839 16.7018 20.7854 16.774C20.8999 16.8554 21.0361 16.9078 21.3085 17.0126L22.9835 17.6568L21.3085 18.301C21.0361 18.4057 20.8999 18.4581 20.7854 18.5396C20.6839 18.6118 20.5952 18.7005 20.523 18.802C20.4415 18.9166 20.3891 19.0527 20.2844 19.3251L19.6402 21.0001L18.996 19.3251C18.8912 19.0527 18.8388 18.9166 18.7574 18.802C18.6852 18.7005 18.5965 18.6118 18.4949 18.5396C18.3804 18.4581 18.2442 18.4057 17.9718 18.301L16.2969 17.6568L17.9718 17.0126C18.2442 16.9078 18.3804 16.8554 18.4949 16.774C18.5965 16.7018 18.6852 16.6131 18.7574 16.5115C18.8388 16.397 18.8912 16.2608 18.996 15.9884L19.6402 14.3135Z",
|
|
2619
|
-
fill: "currentColor",
|
|
2620
|
-
stroke: "currentColor",
|
|
2621
|
-
strokeWidth: 1.11443,
|
|
2622
|
-
strokeLinecap: "round",
|
|
2623
|
-
strokeLinejoin: "round"
|
|
2624
|
-
}),
|
|
2625
|
-
/* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("path", {
|
|
2626
|
-
d: "M17.0913 3L17.7355 4.67494C17.8403 4.94732 17.8927 5.0835 17.9741 5.19806C18.0463 5.29959 18.135 5.38829 18.2366 5.46049C18.3511 5.54194 18.4873 5.59432 18.7597 5.69908L20.4346 6.34329L18.7597 6.9875C18.4873 7.09226 18.3511 7.14464 18.2366 7.22609C18.135 7.29829 18.0463 7.38699 17.9741 7.48852C17.8927 7.60308 17.8403 7.73927 17.7355 8.01165L17.0913 9.68658L16.4471 8.01165C16.3424 7.73927 16.29 7.60308 16.2085 7.48852C16.1363 7.38699 16.0476 7.29829 15.9461 7.22609C15.8315 7.14464 15.6954 7.09226 15.423 6.9875L13.748 6.34329L15.423 5.69908C15.6954 5.59432 15.8315 5.54194 15.9461 5.46049C16.0476 5.38829 16.1363 5.29959 16.2085 5.19806C16.29 5.0835 16.3424 4.94731 16.4471 4.67494L17.0913 3Z",
|
|
2627
|
-
fill: "currentColor",
|
|
2628
|
-
stroke: "currentColor",
|
|
2629
|
-
strokeWidth: 1.11443,
|
|
2630
|
-
strokeLinecap: "round",
|
|
2631
|
-
strokeLinejoin: "round"
|
|
2632
|
-
})
|
|
2633
|
-
]
|
|
2592
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime$3.jsx)("path", {
|
|
2593
|
+
stroke: "currentColor",
|
|
2594
|
+
strokeLinecap: "round",
|
|
2595
|
+
strokeLinejoin: "round",
|
|
2596
|
+
strokeWidth: 1.114,
|
|
2597
|
+
d: "m8.187 5.996 1.288 3.35c.21.545.314.817.477 1.046q.219.306.525.525c.23.163.502.268 1.046.477l3.35 1.289-3.35 1.288c-.544.21-.817.314-1.046.477q-.306.219-.525.525c-.163.23-.267.502-.477 1.046l-1.288 3.35-1.289-3.35c-.21-.544-.314-.817-.477-1.046a2.2 2.2 0 0 0-.525-.525c-.229-.163-.501-.267-1.046-.477L1.5 12.683l3.35-1.289c.545-.21.817-.314 1.046-.477.203-.144.38-.322.525-.525.163-.229.268-.501.477-1.046zM19.64 14.314l.644 1.674c.105.273.158.409.239.524q.108.153.262.262c.115.081.251.134.523.239l1.675.644-1.675.644c-.272.105-.408.157-.523.239q-.153.108-.262.262c-.081.115-.134.25-.239.523L19.64 21l-.644-1.675c-.105-.272-.157-.408-.239-.523a1.1 1.1 0 0 0-.262-.262c-.115-.082-.25-.134-.523-.239l-1.675-.644 1.675-.644c.272-.105.408-.158.523-.239q.153-.108.262-.262c.082-.115.134-.251.239-.524zM17.091 3l.644 1.675c.105.272.158.409.24.523q.108.154.262.262c.114.082.25.134.523.24l1.675.643-1.675.644c-.273.105-.409.158-.523.24q-.153.108-.263.262c-.081.114-.134.25-.239.523l-.644 1.675-.644-1.675c-.105-.273-.157-.409-.238-.523a1.1 1.1 0 0 0-.263-.263c-.114-.081-.25-.134-.523-.239l-1.675-.644 1.675-.644c.272-.105.409-.157.523-.239q.153-.109.263-.262c.081-.115.133-.25.238-.523z"
|
|
2598
|
+
})
|
|
2634
2599
|
});
|
|
2635
2600
|
var Sparkles_default = SvgSparkles;
|
|
2636
2601
|
|
|
2637
2602
|
//#endregion
|
|
2638
|
-
//#region
|
|
2639
|
-
|
|
2603
|
+
//#region node_modules/@envive-ai/react-icons/dist/IconCloseVariant.js
|
|
2604
|
+
require_react();
|
|
2605
|
+
var import_jsx_runtime$2 = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2640
2606
|
const SvgIconCloseVariant = (props) => /* @__PURE__ */ (0, import_jsx_runtime$2.jsx)("svg", {
|
|
2641
|
-
viewBox: "0 0 24 24",
|
|
2642
2607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2608
|
+
viewBox: "0 0 24 24",
|
|
2643
2609
|
...props,
|
|
2644
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime$2.
|
|
2645
|
-
className: "
|
|
2646
|
-
children:
|
|
2647
|
-
d: "m18.98,2.56l-6.76,6.76l-6.76,-6.76l-2.65,2.65l6.76,6.76l-6.76,6.76l2.65,2.65l6.76,-6.76l6.76,6.76l2.65,-2.65l-6.76,-6.76l6.76,-6.76l-2.65,-2.65z",
|
|
2610
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime$2.jsx)("g", {
|
|
2611
|
+
className: "icon-close-variant_svg__layer",
|
|
2612
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime$2.jsx)("path", {
|
|
2648
2613
|
fill: "currentColor",
|
|
2649
|
-
|
|
2650
|
-
})
|
|
2614
|
+
d: "m18.98 2.56-6.76 6.76-6.76-6.76-2.65 2.65 6.76 6.76-6.76 6.76 2.65 2.65 6.76-6.76 6.76 6.76 2.65-2.65-6.76-6.76 6.76-6.76z"
|
|
2615
|
+
})
|
|
2651
2616
|
})
|
|
2652
2617
|
});
|
|
2653
2618
|
var IconCloseVariant_default = SvgIconCloseVariant;
|
|
@@ -2719,67 +2684,50 @@ const searchZeroStateVariantClasses = {
|
|
|
2719
2684
|
};
|
|
2720
2685
|
|
|
2721
2686
|
//#endregion
|
|
2722
|
-
//#region
|
|
2723
|
-
|
|
2687
|
+
//#region node_modules/@envive-ai/react-icons/dist/AiSearchBold.js
|
|
2688
|
+
require_react();
|
|
2689
|
+
var import_jsx_runtime$1 = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2724
2690
|
const SvgAiSearchBold = (props) => /* @__PURE__ */ (0, import_jsx_runtime$1.jsxs)("svg", {
|
|
2691
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2725
2692
|
width: 32,
|
|
2726
2693
|
height: 32,
|
|
2727
|
-
viewBox: "0 0 32 32",
|
|
2728
2694
|
fill: "none",
|
|
2729
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2730
2695
|
...props,
|
|
2731
|
-
children: [
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
strokeLinecap: "round"
|
|
2744
|
-
}),
|
|
2745
|
-
/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
2746
|
-
d: "M19.312 21.2498L24.1245 26.4999",
|
|
2747
|
-
stroke: "#111111",
|
|
2748
|
-
strokeWidth: 2,
|
|
2749
|
-
strokeLinecap: "round"
|
|
2750
|
-
})
|
|
2751
|
-
]
|
|
2696
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
2697
|
+
fill: "#AB1212",
|
|
2698
|
+
stroke: "#AB1212",
|
|
2699
|
+
strokeLinecap: "round",
|
|
2700
|
+
strokeLinejoin: "round",
|
|
2701
|
+
d: "m25.345 3.271 1.103 2.87c.18.466.27.7.409.896q.186.263.45.45c.196.139.429.229.896.408L31.072 9l-2.87 1.103c-.466.18-.7.27-.896.41a1.9 1.9 0 0 0-.45.449c-.139.196-.229.43-.408.896l-1.104 2.869-1.103-2.87c-.18-.466-.27-.7-.409-.895a1.9 1.9 0 0 0-.45-.45c-.196-.14-.429-.23-.896-.409L19.618 9l2.87-1.104c.466-.18.7-.269.896-.409a1.9 1.9 0 0 0 .45-.45c.139-.195.228-.429.408-.895z"
|
|
2702
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
2703
|
+
stroke: "#111",
|
|
2704
|
+
strokeLinecap: "round",
|
|
2705
|
+
strokeWidth: 2,
|
|
2706
|
+
d: "M18.807 5.469A9.402 9.402 0 1 0 13.4 22.72c4.463.11 8.277-2.907 9.34-7.055M19.312 21.25l4.813 5.25"
|
|
2707
|
+
})]
|
|
2752
2708
|
});
|
|
2753
2709
|
var AiSearchBold_default = SvgAiSearchBold;
|
|
2754
2710
|
|
|
2755
2711
|
//#endregion
|
|
2756
|
-
//#region
|
|
2757
|
-
|
|
2712
|
+
//#region node_modules/@envive-ai/react-icons/dist/AiSearchThin.js
|
|
2713
|
+
require_react();
|
|
2714
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
2758
2715
|
const SvgAiSearchThin = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
2716
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2759
2717
|
width: 26,
|
|
2760
2718
|
height: 23,
|
|
2761
|
-
viewBox: "0 0 26 23",
|
|
2762
2719
|
fill: "none",
|
|
2763
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2764
2720
|
...props,
|
|
2765
|
-
children: [
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
strokeLinecap: "round"
|
|
2776
|
-
}),
|
|
2777
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
2778
|
-
d: "M15.5439 17.7734L19.1358 21.7072",
|
|
2779
|
-
stroke: "currentColor",
|
|
2780
|
-
strokeLinecap: "round"
|
|
2781
|
-
})
|
|
2782
|
-
]
|
|
2721
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
2722
|
+
stroke: "currentColor",
|
|
2723
|
+
strokeLinecap: "round",
|
|
2724
|
+
strokeLinejoin: "round",
|
|
2725
|
+
d: "M19.106 1.148 20 3.47c.145.377.218.566.33.725.1.14.224.263.364.363.16.113.348.186.726.331l2.32.893-2.32.893c-.378.145-.567.217-.726.33q-.212.151-.363.364c-.113.159-.186.348-.33.725l-.894 2.321-.893-2.32c-.145-.378-.217-.567-.33-.726-.1-.14-.223-.264-.364-.364-.159-.113-.347-.185-.725-.33l-2.321-.893 2.321-.893c.378-.145.566-.218.725-.33.14-.1.264-.224.364-.364.113-.16.185-.348.33-.725z"
|
|
2726
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
2727
|
+
stroke: "currentColor",
|
|
2728
|
+
strokeLinecap: "round",
|
|
2729
|
+
d: "M13.108 2.928a7.607 7.607 0 1 0 3.182 8.25M15.544 17.773l3.592 3.934"
|
|
2730
|
+
})]
|
|
2783
2731
|
});
|
|
2784
2732
|
var AiSearchThin_default = SvgAiSearchThin;
|
|
2785
2733
|
|
|
@@ -2888,7 +2836,7 @@ const SearchZeroState = ({ widgetConfig, initialIsOpen, entryPointRef }) => {
|
|
|
2888
2836
|
const { variant: suggestionButtonVariant, hoverVariant: suggestionButtonHoverVariant, borderRadius: suggestionButtonBorderRadius } = suggestionButtonConfig;
|
|
2889
2837
|
const [isOpen, setIsOpen] = useState(!!initialIsOpen);
|
|
2890
2838
|
const searchInputRef = useRef(null);
|
|
2891
|
-
const searchInput = useSearch();
|
|
2839
|
+
const searchInput = useSearch({ allowRedirect: true });
|
|
2892
2840
|
const { track } = useAmplitudeTracking();
|
|
2893
2841
|
const { recommendedProductsHeading, searchOverlayHeading, productCardConfig, merchantShortName, recommendedProducts, searchText, autocompleteResults, focusedIndex, focusedOptionId, shouldShowAutocomplete, onSearchInputChange, onSearchInputFocus, onSearchInputBlur, onKeyDown, onAutocompleteSelect, onSubmitSearch, resetSearch } = searchInput;
|
|
2894
2842
|
const { overlayBackgroundClasses, sparklesIconColor } = searchZeroStateVariantClasses[searchZeroStateVariant && searchZeroStateVariantClasses[searchZeroStateVariant] ? searchZeroStateVariant : "backgroundTertiary"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envive-ai/react-widgets",
|
|
3
|
-
"version": "0.1.2-arthur-
|
|
3
|
+
"version": "0.1.2-arthur-3",
|
|
4
4
|
"description": "React widget library for Envive services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"get-merchants": "tsx ./.storybook/getMerchants.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@envive-ai/react-hooks": "0.2.8",
|
|
35
|
+
"@envive-ai/react-hooks": "0.2.8-arthur-2",
|
|
36
36
|
"@envive-ai/react-toolkit": "0.2.13-arthur-1",
|
|
37
37
|
"@tailwindcss/typography": "^0.5.15",
|
|
38
38
|
"classnames": "^2.5.1",
|
|
@@ -53,7 +53,7 @@ export const SearchZeroState: React.FC<SearchZeroStateProps> = ({
|
|
|
53
53
|
const [isOpen, setIsOpen] = useState(!!initialIsOpen);
|
|
54
54
|
const searchInputRef = useRef<HTMLInputElement>(null);
|
|
55
55
|
|
|
56
|
-
const searchInput = useSearch();
|
|
56
|
+
const searchInput = useSearch({ allowRedirect: true });
|
|
57
57
|
|
|
58
58
|
const { track } = useAmplitudeTracking();
|
|
59
59
|
|
|
File without changes
|
|
File without changes
|