@haus-storefront-react/vendure-plugin-configs 1.0.4-next.16 → 1.0.4-next.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +0 -156
  2. package/badge.js +1 -1
  3. package/badge.mjs +424 -439
  4. package/campaign.js +1 -1
  5. package/campaign.mjs +106 -50
  6. package/compiler-runtime-oPPev21o.js +10 -0
  7. package/compiler-runtime-qHgugrLy.mjs +296 -0
  8. package/elastic.js +1 -1
  9. package/elastic.mjs +26 -10
  10. package/index-BRlTlK6a.mjs +3768 -0
  11. package/index-BgBC_k8M.js +1 -0
  12. package/index-C0E-40z0.mjs +19 -0
  13. package/index-CgxqXyHf.js +20 -0
  14. package/index.js +1 -1
  15. package/index.mjs +4 -2
  16. package/lib/configs/vendure-badge-plugin.d.ts +2 -10
  17. package/lib/configs/vendure-badge-plugin.types.d.ts +1 -0
  18. package/lib/configs/vendure-campaign-plugin.d.ts +1 -1
  19. package/lib/configs/vendure-elastic-search-plugin.d.ts +1 -1
  20. package/lib/configs/vendure-packagesize-plugin.d.ts +1 -1
  21. package/lib/configs/vendure-product-popularity-plugin.d.ts +1 -1
  22. package/lib/configs/vendure-purchase-order-payment-plugin.d.ts +2 -2
  23. package/lib/plugin-config.d.ts +1 -2
  24. package/lib/types.d.ts +0 -1
  25. package/package.json +5 -25
  26. package/packagesize.js +1 -1
  27. package/packagesize.mjs +59 -15
  28. package/product-popularity.js +1 -1
  29. package/product-popularity.mjs +22 -12
  30. package/purchase-order-payment.js +5 -5
  31. package/purchase-order-payment.mjs +631 -207
  32. package/useSdk-DOrZRSHz.mjs +2634 -0
  33. package/useSdk-YXpk8Wsi.js +21 -0
  34. package/lib/configs/vendure-product-variant-specifications-plugin.d.ts +0 -55
  35. package/lib/configs/vendure-product-variant-specifications-plugin.types.d.ts +0 -8
  36. package/lib/configs/vendure-products-by-sku-plugin.d.ts +0 -11
  37. package/lib/configs/vendure-products-by-sku-plugin.types.d.ts +0 -13
  38. package/lib/configs/vendure-related-products-plugin.d.ts +0 -39
  39. package/lib/configs/vendure-related-products-plugin.types.d.ts +0 -16
  40. package/lib/exports/product-variant-specifications.d.ts +0 -2
  41. package/lib/exports/products-by-sku.d.ts +0 -3
  42. package/lib/exports/related-products.d.ts +0 -3
  43. package/lib/hooks/use-related-products.d.ts +0 -2
  44. package/lib/strategies/quick-order-variant-sku-validation-strategy.d.ts +0 -6
  45. package/plugin-config-DrQQb9Ry.js +0 -1
  46. package/plugin-config-DywohMgp.mjs +0 -903
  47. package/product-variant-specifications.d.ts +0 -2
  48. package/product-variant-specifications.js +0 -1
  49. package/product-variant-specifications.mjs +0 -9
  50. package/products-by-sku.d.ts +0 -2
  51. package/products-by-sku.js +0 -1
  52. package/products-by-sku.mjs +0 -54
  53. package/related-products.d.ts +0 -2
  54. package/related-products.js +0 -1
  55. package/related-products.mjs +0 -35
  56. package/src-ChzQhPCd.js +0 -6
  57. package/src-CsM7SeIh.mjs +0 -455
  58. package/src-Dq29mogl.js +0 -21
  59. package/src-Dud_XHV6.mjs +0 -2718
package/campaign.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-ChzQhPCd.js`);var t=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`campaign`,enableFeatures:{ordinaryPrice:({variant:t,orderLine:n,searchResult:r,product:i})=>{if(n){let t=n.productVariant;return t?.ordinaryPrice?e.t(t?.ordinaryPrice)*n.quantity:n.discountedLinePriceWithTax}return t?e.t(t.ordinaryPrice||0):r?e.t(r.ordinaryPrice||0):i?e.n(i.variants):0}},queryUpdates:{}});t.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]},{variants:[`ordinaryPrice`]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]},{variants:[`ordinaryPrice`]}]}]},activeOrder:{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]},orderByCode:{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]}]}});var n=(t,n)=>{let r=e.t(t),i=e.t(n);return e.t(t)===0?!1:i!==r};exports.VendureCampaignPlugin=t,exports.isCampaign=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CgxqXyHf.js"),e=require("./index-BgBC_k8M.js"),d=new c.VendurePluginConfig({name:"campaign",enableFeatures:{ordinaryPrice:({variant:i,orderLine:r,searchResult:n,product:a})=>{if(r){const t=r.productVariant;return t?.ordinaryPrice?e.getPrice(t?.ordinaryPrice)*r.quantity:r.discountedLinePriceWithTax}return i?e.getPrice(i.ordinaryPrice||0):n?e.getPrice(n.ordinaryPrice||0):a?e.getProductPriceFromVariants(a.variants):0}},queryUpdates:{}});d.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]}]},activeOrder:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},orderByCode:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]}});const o=(i,r)=>{const n=e.getPrice(i),a=e.getPrice(r);return e.getPrice(i)===0?!1:a!==n};exports.VendureCampaignPlugin=d;exports.isCampaign=o;
package/campaign.mjs CHANGED
@@ -1,53 +1,109 @@
1
- import { n as e, t } from "./src-CsM7SeIh.mjs";
2
- import { t as n } from "./plugin-config-DywohMgp.mjs";
3
- //#region src/lib/configs/vendure-campaign-plugin.ts
4
- var r = new n({
5
- name: "campaign",
6
- enableFeatures: { ordinaryPrice: ({ variant: n, orderLine: r, searchResult: i, product: a }) => {
7
- if (r) {
8
- let e = r.productVariant;
9
- return e?.ordinaryPrice ? t(e?.ordinaryPrice) * r.quantity : r.discountedLinePriceWithTax;
10
- }
11
- return n ? t(n.ordinaryPrice || 0) : i ? t(i.ordinaryPrice || 0) : a ? e(a.variants) : 0;
12
- } },
13
- queryUpdates: {}
1
+ import { V as d } from "./index-BRlTlK6a.mjs";
2
+ import { g as e, a as o } from "./index-C0E-40z0.mjs";
3
+ const s = new d({
4
+ name: "campaign",
5
+ enableFeatures: {
6
+ ordinaryPrice: ({
7
+ variant: i,
8
+ orderLine: r,
9
+ searchResult: a,
10
+ product: n
11
+ }) => {
12
+ if (r) {
13
+ const t = r.productVariant;
14
+ return t?.ordinaryPrice ? e(t?.ordinaryPrice) * r.quantity : r.discountedLinePriceWithTax;
15
+ }
16
+ return i ? e(i.ordinaryPrice || 0) : a ? e(a.ordinaryPrice || 0) : n ? o(n.variants) : 0;
17
+ }
18
+ },
19
+ queryUpdates: {}
14
20
  });
15
- r.setQueryUpdates({
16
- search: { fields: [{ items: [{ ordinaryPrice: [{
17
- operation: "PriceRange",
18
- fields: ["min, max"],
19
- fragment: !0
20
- }, {
21
- operation: "SinglePrice",
22
- fields: ["value"],
23
- fragment: !0
24
- }] }] }] },
25
- product: { fields: [{ ordinaryPrice: [{
26
- operation: "PriceRange",
27
- fields: ["min, max"],
28
- fragment: !0
29
- }, {
30
- operation: "SinglePrice",
31
- fields: ["value"],
32
- fragment: !0
33
- }] }, { variants: ["ordinaryPrice"] }] },
34
- briefProducts: { fields: [{ items: [{ ordinaryPrice: [{
35
- operation: "PriceRange",
36
- fields: ["min, max"],
37
- fragment: !0
38
- }, {
39
- operation: "SinglePrice",
40
- fields: ["value"],
41
- fragment: !0
42
- }] }, { variants: ["ordinaryPrice"] }] }] },
43
- activeOrder: { fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] },
44
- orderByCode: { fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] },
45
- adjustOrderLine: { fields: [{ fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] }] },
46
- addItemToOrder: { fields: [{ fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] }] }
21
+ s.setQueryUpdates({
22
+ search: {
23
+ fields: [{
24
+ items: [{
25
+ ordinaryPrice: [{
26
+ operation: "PriceRange",
27
+ fields: ["min, max"],
28
+ fragment: !0
29
+ }, {
30
+ operation: "SinglePrice",
31
+ fields: ["value"],
32
+ fragment: !0
33
+ }]
34
+ }]
35
+ }]
36
+ },
37
+ product: {
38
+ fields: [{
39
+ ordinaryPrice: [{
40
+ operation: "PriceRange",
41
+ fields: ["min, max"],
42
+ fragment: !0
43
+ }, {
44
+ operation: "SinglePrice",
45
+ fields: ["value"],
46
+ fragment: !0
47
+ }]
48
+ }, {
49
+ variants: ["ordinaryPrice"]
50
+ }]
51
+ },
52
+ briefProducts: {
53
+ fields: [{
54
+ items: [{
55
+ ordinaryPrice: [{
56
+ operation: "PriceRange",
57
+ fields: ["min, max"],
58
+ fragment: !0
59
+ }, {
60
+ operation: "SinglePrice",
61
+ fields: ["value"],
62
+ fragment: !0
63
+ }]
64
+ }, {
65
+ variants: ["ordinaryPrice"]
66
+ }]
67
+ }]
68
+ },
69
+ activeOrder: {
70
+ fields: [{
71
+ lines: [{
72
+ productVariant: ["ordinaryPrice"]
73
+ }]
74
+ }]
75
+ },
76
+ orderByCode: {
77
+ fields: [{
78
+ lines: [{
79
+ productVariant: ["ordinaryPrice"]
80
+ }]
81
+ }]
82
+ },
83
+ adjustOrderLine: {
84
+ fields: [{
85
+ fields: [{
86
+ lines: [{
87
+ productVariant: ["ordinaryPrice"]
88
+ }]
89
+ }]
90
+ }]
91
+ },
92
+ addItemToOrder: {
93
+ fields: [{
94
+ fields: [{
95
+ lines: [{
96
+ productVariant: ["ordinaryPrice"]
97
+ }]
98
+ }]
99
+ }]
100
+ }
47
101
  });
48
- var i = (e, n) => {
49
- let r = t(e), i = t(n);
50
- return t(e) === 0 ? !1 : i !== r;
102
+ const f = (i, r) => {
103
+ const a = e(i), n = e(r);
104
+ return e(i) === 0 ? !1 : n !== a;
105
+ };
106
+ export {
107
+ s as VendureCampaignPlugin,
108
+ f as isCampaign
51
109
  };
52
- //#endregion
53
- export { r as VendureCampaignPlugin, i as isCampaign };
@@ -0,0 +1,10 @@
1
+ "use strict";const g=require("react");var v={exports:{}},d={};var L;function ue(){if(L)return d;L=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(f,u,s){var m=null;if(s!==void 0&&(m=""+s),u.key!==void 0&&(m=""+u.key),"key"in u){s={};for(var _ in u)_!=="key"&&(s[_]=u[_])}else s=u;return u=s.ref,{$$typeof:a,type:f,key:m,ref:u!==void 0?u:null,props:s}}return d.Fragment=i,d.jsx=l,d.jsxs=l,d}var R={};var q;function se(){return q||(q=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case X:return"Profiler";case z:return"StrictMode";case K:return"Suspense";case ee:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case J:return"Portal";case Z:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case Q:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case h:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function i(e){return""+e}function l(e){try{i(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),i(e)}}function f(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===h)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function u(){var e=O.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function m(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function _(e,r){function t(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function G(){var e=a(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function H(e,r,t,n,E,S){var o=t.ref;return e={$$typeof:C,type:e,key:r,props:t,_owner:n},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:G}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function P(e,r,t,n,E,S){var o=r.children;if(o!==void 0)if(n)if(oe(o)){for(n=0;n<o.length;n++)y(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(o);if(j.call(r,"key")){o=a(e);var c=Object.keys(r).filter(function(ae){return ae!=="key"});n=0<c.length?"{key: someKey, "+c.join(": ..., ")+": ...}":"{key: someKey}",$[o+n]||(c=0<c.length?"{"+c.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,n,o,c,o),$[o+n]=!0)}if(o=null,t!==void 0&&(l(t),o=""+t),m(r)&&(l(r.key),o=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return o&&_(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),H(e,o,t,u(),E,S)}function y(e){w(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===h&&(e._payload.status==="fulfilled"?w(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function w(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}var p=g,C=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ne=Symbol.for("react.client.reference"),O=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,oe=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(e){return e()}};var Y,I={},D=p.react_stack_bottom_frame.bind(p,s)(),U=k(f(s)),$={};R.Fragment=T,R.jsx=function(e,r,t){var n=1e4>O.recentlyCreatedOwnerStacks++;return P(e,r,t,!1,n?Error("react-stack-top-frame"):D,n?k(f(e)):U)},R.jsxs=function(e,r,t){var n=1e4>O.recentlyCreatedOwnerStacks++;return P(e,r,t,!0,n?Error("react-stack-top-frame"):D,n?k(f(e)):U)}})()),R}var F;function ie(){return F||(F=1,process.env.NODE_ENV==="production"?v.exports=ue():v.exports=se()),v.exports}var le=ie(),b={exports:{}},N={};var M;function ce(){if(M)return N;M=1;var a=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return N.c=function(i){return a.H.useMemoCache(i)},N}var x={};var W;function fe(){return W||(W=1,process.env.NODE_ENV!=="production"&&(function(){var a=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;x.c=function(i){var l=a.H;return l===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
7
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
8
+ 2. You might be breaking the Rules of Hooks
9
+ 3. You might have more than one copy of React in the same app
10
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),l.useMemoCache(i)}})()),x}var V;function me(){return V||(V=1,process.env.NODE_ENV==="production"?b.exports=ce():b.exports=fe()),b.exports}var _e=me();exports.compilerRuntimeExports=_e;exports.jsxRuntimeExports=le;
@@ -0,0 +1,296 @@
1
+ import g from "react";
2
+ var v = { exports: {} }, d = {};
3
+ var $;
4
+ function ue() {
5
+ if ($) return d;
6
+ $ = 1;
7
+ var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
8
+ function l(f, u, s) {
9
+ var m = null;
10
+ if (s !== void 0 && (m = "" + s), u.key !== void 0 && (m = "" + u.key), "key" in u) {
11
+ s = {};
12
+ for (var _ in u)
13
+ _ !== "key" && (s[_] = u[_]);
14
+ } else s = u;
15
+ return u = s.ref, {
16
+ $$typeof: a,
17
+ type: f,
18
+ key: m,
19
+ ref: u !== void 0 ? u : null,
20
+ props: s
21
+ };
22
+ }
23
+ return d.Fragment = i, d.jsx = l, d.jsxs = l, d;
24
+ }
25
+ var R = {};
26
+ var F;
27
+ function se() {
28
+ return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ function a(e) {
30
+ if (e == null) return null;
31
+ if (typeof e == "function")
32
+ return e.$$typeof === ne ? null : e.displayName || e.name || null;
33
+ if (typeof e == "string") return e;
34
+ switch (e) {
35
+ case T:
36
+ return "Fragment";
37
+ case X:
38
+ return "Profiler";
39
+ case z:
40
+ return "StrictMode";
41
+ case K:
42
+ return "Suspense";
43
+ case ee:
44
+ return "SuspenseList";
45
+ case te:
46
+ return "Activity";
47
+ }
48
+ if (typeof e == "object")
49
+ switch (typeof e.tag == "number" && console.error(
50
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
+ ), e.$$typeof) {
52
+ case J:
53
+ return "Portal";
54
+ case Z:
55
+ return e.displayName || "Context";
56
+ case B:
57
+ return (e._context.displayName || "Context") + ".Consumer";
58
+ case Q:
59
+ var r = e.render;
60
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
+ case re:
62
+ return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
63
+ case h:
64
+ r = e._payload, e = e._init;
65
+ try {
66
+ return a(e(r));
67
+ } catch {
68
+ }
69
+ }
70
+ return null;
71
+ }
72
+ function i(e) {
73
+ return "" + e;
74
+ }
75
+ function l(e) {
76
+ try {
77
+ i(e);
78
+ var r = !1;
79
+ } catch {
80
+ r = !0;
81
+ }
82
+ if (r) {
83
+ r = console;
84
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
+ return t.call(
86
+ r,
87
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
+ n
89
+ ), i(e);
90
+ }
91
+ }
92
+ function f(e) {
93
+ if (e === T) return "<>";
94
+ if (typeof e == "object" && e !== null && e.$$typeof === h)
95
+ return "<...>";
96
+ try {
97
+ var r = a(e);
98
+ return r ? "<" + r + ">" : "<...>";
99
+ } catch {
100
+ return "<...>";
101
+ }
102
+ }
103
+ function u() {
104
+ var e = O.A;
105
+ return e === null ? null : e.getOwner();
106
+ }
107
+ function s() {
108
+ return Error("react-stack-top-frame");
109
+ }
110
+ function m(e) {
111
+ if (j.call(e, "key")) {
112
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
113
+ if (r && r.isReactWarning) return !1;
114
+ }
115
+ return e.key !== void 0;
116
+ }
117
+ function _(e, r) {
118
+ function t() {
119
+ Y || (Y = !0, console.error(
120
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
121
+ r
122
+ ));
123
+ }
124
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
125
+ get: t,
126
+ configurable: !0
127
+ });
128
+ }
129
+ function G() {
130
+ var e = a(this.type);
131
+ return I[e] || (I[e] = !0, console.error(
132
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
133
+ )), e = this.props.ref, e !== void 0 ? e : null;
134
+ }
135
+ function H(e, r, t, n, E, S) {
136
+ var o = t.ref;
137
+ return e = {
138
+ $$typeof: C,
139
+ type: e,
140
+ key: r,
141
+ props: t,
142
+ _owner: n
143
+ }, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
144
+ enumerable: !1,
145
+ get: G
146
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
147
+ configurable: !1,
148
+ enumerable: !1,
149
+ writable: !0,
150
+ value: 0
151
+ }), Object.defineProperty(e, "_debugInfo", {
152
+ configurable: !1,
153
+ enumerable: !1,
154
+ writable: !0,
155
+ value: null
156
+ }), Object.defineProperty(e, "_debugStack", {
157
+ configurable: !1,
158
+ enumerable: !1,
159
+ writable: !0,
160
+ value: E
161
+ }), Object.defineProperty(e, "_debugTask", {
162
+ configurable: !1,
163
+ enumerable: !1,
164
+ writable: !0,
165
+ value: S
166
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
167
+ }
168
+ function P(e, r, t, n, E, S) {
169
+ var o = r.children;
170
+ if (o !== void 0)
171
+ if (n)
172
+ if (oe(o)) {
173
+ for (n = 0; n < o.length; n++)
174
+ y(o[n]);
175
+ Object.freeze && Object.freeze(o);
176
+ } else
177
+ console.error(
178
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
+ );
180
+ else y(o);
181
+ if (j.call(r, "key")) {
182
+ o = a(e);
183
+ var c = Object.keys(r).filter(function(ae) {
184
+ return ae !== "key";
185
+ });
186
+ n = 0 < c.length ? "{key: someKey, " + c.join(": ..., ") + ": ...}" : "{key: someKey}", L[o + n] || (c = 0 < c.length ? "{" + c.join(": ..., ") + ": ...}" : "{}", console.error(
187
+ `A props object containing a "key" prop is being spread into JSX:
188
+ let props = %s;
189
+ <%s {...props} />
190
+ React keys must be passed directly to JSX without using spread:
191
+ let props = %s;
192
+ <%s key={someKey} {...props} />`,
193
+ n,
194
+ o,
195
+ c,
196
+ o
197
+ ), L[o + n] = !0);
198
+ }
199
+ if (o = null, t !== void 0 && (l(t), o = "" + t), m(r) && (l(r.key), o = "" + r.key), "key" in r) {
200
+ t = {};
201
+ for (var A in r)
202
+ A !== "key" && (t[A] = r[A]);
203
+ } else t = r;
204
+ return o && _(
205
+ t,
206
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
+ ), H(
208
+ e,
209
+ o,
210
+ t,
211
+ u(),
212
+ E,
213
+ S
214
+ );
215
+ }
216
+ function y(e) {
217
+ w(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === h && (e._payload.status === "fulfilled" ? w(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
+ }
219
+ function w(e) {
220
+ return typeof e == "object" && e !== null && e.$$typeof === C;
221
+ }
222
+ var p = g, C = /* @__PURE__ */ Symbol.for("react.transitional.element"), J = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), z = /* @__PURE__ */ Symbol.for("react.strict_mode"), X = /* @__PURE__ */ Symbol.for("react.profiler"), B = /* @__PURE__ */ Symbol.for("react.consumer"), Z = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), ee = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), te = /* @__PURE__ */ Symbol.for("react.activity"), ne = /* @__PURE__ */ Symbol.for("react.client.reference"), O = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, oe = Array.isArray, k = console.createTask ? console.createTask : function() {
223
+ return null;
224
+ };
225
+ p = {
226
+ react_stack_bottom_frame: function(e) {
227
+ return e();
228
+ }
229
+ };
230
+ var Y, I = {}, D = p.react_stack_bottom_frame.bind(
231
+ p,
232
+ s
233
+ )(), U = k(f(s)), L = {};
234
+ R.Fragment = T, R.jsx = function(e, r, t) {
235
+ var n = 1e4 > O.recentlyCreatedOwnerStacks++;
236
+ return P(
237
+ e,
238
+ r,
239
+ t,
240
+ !1,
241
+ n ? Error("react-stack-top-frame") : D,
242
+ n ? k(f(e)) : U
243
+ );
244
+ }, R.jsxs = function(e, r, t) {
245
+ var n = 1e4 > O.recentlyCreatedOwnerStacks++;
246
+ return P(
247
+ e,
248
+ r,
249
+ t,
250
+ !0,
251
+ n ? Error("react-stack-top-frame") : D,
252
+ n ? k(f(e)) : U
253
+ );
254
+ };
255
+ })()), R;
256
+ }
257
+ var M;
258
+ function ie() {
259
+ return M || (M = 1, process.env.NODE_ENV === "production" ? v.exports = ue() : v.exports = se()), v.exports;
260
+ }
261
+ var _e = ie(), b = { exports: {} }, N = {};
262
+ var q;
263
+ function le() {
264
+ if (q) return N;
265
+ q = 1;
266
+ var a = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
267
+ return N.c = function(i) {
268
+ return a.H.useMemoCache(i);
269
+ }, N;
270
+ }
271
+ var x = {};
272
+ var W;
273
+ function ce() {
274
+ return W || (W = 1, process.env.NODE_ENV !== "production" && (function() {
275
+ var a = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
276
+ x.c = function(i) {
277
+ var l = a.H;
278
+ return l === null && console.error(
279
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
280
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
281
+ 2. You might be breaking the Rules of Hooks
282
+ 3. You might have more than one copy of React in the same app
283
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
284
+ ), l.useMemoCache(i);
285
+ };
286
+ })()), x;
287
+ }
288
+ var V;
289
+ function fe() {
290
+ return V || (V = 1, process.env.NODE_ENV === "production" ? b.exports = le() : b.exports = ce()), b.exports;
291
+ }
292
+ var de = fe();
293
+ export {
294
+ de as c,
295
+ _e as j
296
+ };
package/elastic.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`vendure-elastic-search`,queryUpdates:{search:{fields:[{prices:[{range:[`min`,`max`]},{rangeWithTax:[`min`,`max`]}]}]},searchField:{fields:[{prices:[{range:[`min`,`max`]},{rangeWithTax:[`min`,`max`]}]}]}}});exports.VendureElasticSearchPlugin=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CgxqXyHf.js"),i=new e.VendurePluginConfig({name:"vendure-elastic-search",queryUpdates:{search:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]},searchField:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]}}});exports.VendureElasticSearchPlugin=i;
package/elastic.mjs CHANGED
@@ -1,11 +1,27 @@
1
- import { t as e } from "./plugin-config-DywohMgp.mjs";
2
- //#region src/lib/configs/vendure-elastic-search-plugin.ts
3
- var t = new e({
4
- name: "vendure-elastic-search",
5
- queryUpdates: {
6
- search: { fields: [{ prices: [{ range: ["min", "max"] }, { rangeWithTax: ["min", "max"] }] }] },
7
- searchField: { fields: [{ prices: [{ range: ["min", "max"] }, { rangeWithTax: ["min", "max"] }] }] }
8
- }
1
+ import { V as e } from "./index-BRlTlK6a.mjs";
2
+ const i = new e({
3
+ name: "vendure-elastic-search",
4
+ queryUpdates: {
5
+ search: {
6
+ fields: [{
7
+ prices: [{
8
+ range: ["min", "max"]
9
+ }, {
10
+ rangeWithTax: ["min", "max"]
11
+ }]
12
+ }]
13
+ },
14
+ searchField: {
15
+ fields: [{
16
+ prices: [{
17
+ range: ["min", "max"]
18
+ }, {
19
+ rangeWithTax: ["min", "max"]
20
+ }]
21
+ }]
22
+ }
23
+ }
9
24
  });
10
- //#endregion
11
- export { t as VendureElasticSearchPlugin };
25
+ export {
26
+ i as VendureElasticSearchPlugin
27
+ };