@haus-storefront-react/vendure-plugin-configs 0.0.31 → 0.0.32-2
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/CHANGELOG.md +16 -0
- package/badge.js +20 -20
- package/badge.mjs +1208 -1115
- package/campaign.js +1 -1
- package/campaign.mjs +1 -1
- package/index-Bko_DGaw.mjs +349 -0
- package/index-BtCqYPso.js +42 -0
- package/package.json +4 -4
- package/index-DlwdCtNm.mjs +0 -446
- package/index-dZ1ztwCK.js +0 -42
package/campaign.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CATkY-bf.js"),e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CATkY-bf.js"),e=require("./index-BtCqYPso.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
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import "./index-Wcc0o6jA.mjs";
|
|
2
|
+
import P from "react";
|
|
3
|
+
var b = { exports: {} }, E = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var L;
|
|
14
|
+
function se() {
|
|
15
|
+
if (L) return E;
|
|
16
|
+
L = 1;
|
|
17
|
+
var t = Symbol.for("react.transitional.element"), u = Symbol.for("react.fragment");
|
|
18
|
+
function s(f, i, c) {
|
|
19
|
+
var _ = null;
|
|
20
|
+
if (c !== void 0 && (_ = "" + c), i.key !== void 0 && (_ = "" + i.key), "key" in i) {
|
|
21
|
+
c = {};
|
|
22
|
+
for (var R in i)
|
|
23
|
+
R !== "key" && (c[R] = i[R]);
|
|
24
|
+
} else c = i;
|
|
25
|
+
return i = c.ref, {
|
|
26
|
+
$$typeof: t,
|
|
27
|
+
type: f,
|
|
28
|
+
key: _,
|
|
29
|
+
ref: i !== void 0 ? i : null,
|
|
30
|
+
props: c
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return E.Fragment = u, E.jsx = s, E.jsxs = s, E;
|
|
34
|
+
}
|
|
35
|
+
var p = {};
|
|
36
|
+
/**
|
|
37
|
+
* @license React
|
|
38
|
+
* react-jsx-runtime.development.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/
|
|
45
|
+
var q;
|
|
46
|
+
function ie() {
|
|
47
|
+
return q || (q = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function t(e) {
|
|
49
|
+
if (e == null) return null;
|
|
50
|
+
if (typeof e == "function")
|
|
51
|
+
return e.$$typeof === oe ? null : e.displayName || e.name || null;
|
|
52
|
+
if (typeof e == "string") return e;
|
|
53
|
+
switch (e) {
|
|
54
|
+
case h:
|
|
55
|
+
return "Fragment";
|
|
56
|
+
case B:
|
|
57
|
+
return "Profiler";
|
|
58
|
+
case V:
|
|
59
|
+
return "StrictMode";
|
|
60
|
+
case ee:
|
|
61
|
+
return "Suspense";
|
|
62
|
+
case re:
|
|
63
|
+
return "SuspenseList";
|
|
64
|
+
case ne:
|
|
65
|
+
return "Activity";
|
|
66
|
+
}
|
|
67
|
+
if (typeof e == "object")
|
|
68
|
+
switch (typeof e.tag == "number" && console.error(
|
|
69
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
+
), e.$$typeof) {
|
|
71
|
+
case X:
|
|
72
|
+
return "Portal";
|
|
73
|
+
case Q:
|
|
74
|
+
return (e.displayName || "Context") + ".Provider";
|
|
75
|
+
case Z:
|
|
76
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case K:
|
|
78
|
+
var r = e.render;
|
|
79
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
80
|
+
case te:
|
|
81
|
+
return r = e.displayName || null, r !== null ? r : t(e.type) || "Memo";
|
|
82
|
+
case y:
|
|
83
|
+
r = e._payload, e = e._init;
|
|
84
|
+
try {
|
|
85
|
+
return t(e(r));
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
function u(e) {
|
|
92
|
+
return "" + e;
|
|
93
|
+
}
|
|
94
|
+
function s(e) {
|
|
95
|
+
try {
|
|
96
|
+
u(e);
|
|
97
|
+
var r = !1;
|
|
98
|
+
} catch {
|
|
99
|
+
r = !0;
|
|
100
|
+
}
|
|
101
|
+
if (r) {
|
|
102
|
+
r = console;
|
|
103
|
+
var n = r.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
104
|
+
return n.call(
|
|
105
|
+
r,
|
|
106
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
+
o
|
|
108
|
+
), u(e);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function f(e) {
|
|
112
|
+
if (e === h) return "<>";
|
|
113
|
+
if (typeof e == "object" && e !== null && e.$$typeof === y)
|
|
114
|
+
return "<...>";
|
|
115
|
+
try {
|
|
116
|
+
var r = t(e);
|
|
117
|
+
return r ? "<" + r + ">" : "<...>";
|
|
118
|
+
} catch {
|
|
119
|
+
return "<...>";
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function i() {
|
|
123
|
+
var e = O.A;
|
|
124
|
+
return e === null ? null : e.getOwner();
|
|
125
|
+
}
|
|
126
|
+
function c() {
|
|
127
|
+
return Error("react-stack-top-frame");
|
|
128
|
+
}
|
|
129
|
+
function _(e) {
|
|
130
|
+
if (Y.call(e, "key")) {
|
|
131
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
132
|
+
if (r && r.isReactWarning) return !1;
|
|
133
|
+
}
|
|
134
|
+
return e.key !== void 0;
|
|
135
|
+
}
|
|
136
|
+
function R(e, r) {
|
|
137
|
+
function n() {
|
|
138
|
+
I || (I = !0, console.error(
|
|
139
|
+
"%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)",
|
|
140
|
+
r
|
|
141
|
+
));
|
|
142
|
+
}
|
|
143
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
144
|
+
get: n,
|
|
145
|
+
configurable: !0
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function J() {
|
|
149
|
+
var e = t(this.type);
|
|
150
|
+
return D[e] || (D[e] = !0, console.error(
|
|
151
|
+
"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."
|
|
152
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
153
|
+
}
|
|
154
|
+
function z(e, r, n, o, m, l, S, A) {
|
|
155
|
+
return n = l.ref, e = {
|
|
156
|
+
$$typeof: j,
|
|
157
|
+
type: e,
|
|
158
|
+
key: r,
|
|
159
|
+
props: l,
|
|
160
|
+
_owner: m
|
|
161
|
+
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: J
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
165
|
+
configurable: !1,
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
170
|
+
configurable: !1,
|
|
171
|
+
enumerable: !1,
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
175
|
+
configurable: !1,
|
|
176
|
+
enumerable: !1,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: S
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: A
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function w(e, r, n, o, m, l, S, A) {
|
|
187
|
+
var a = r.children;
|
|
188
|
+
if (a !== void 0)
|
|
189
|
+
if (o)
|
|
190
|
+
if (ae(a)) {
|
|
191
|
+
for (o = 0; o < a.length; o++)
|
|
192
|
+
C(a[o]);
|
|
193
|
+
Object.freeze && Object.freeze(a);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else C(a);
|
|
199
|
+
if (Y.call(r, "key")) {
|
|
200
|
+
a = t(e);
|
|
201
|
+
var d = Object.keys(r).filter(function(ue) {
|
|
202
|
+
return ue !== "key";
|
|
203
|
+
});
|
|
204
|
+
o = 0 < d.length ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}", F[a + o] || (d = 0 < d.length ? "{" + d.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
o,
|
|
212
|
+
a,
|
|
213
|
+
d,
|
|
214
|
+
a
|
|
215
|
+
), F[a + o] = !0);
|
|
216
|
+
}
|
|
217
|
+
if (a = null, n !== void 0 && (s(n), a = "" + n), _(r) && (s(r.key), a = "" + r.key), "key" in r) {
|
|
218
|
+
n = {};
|
|
219
|
+
for (var N in r)
|
|
220
|
+
N !== "key" && (n[N] = r[N]);
|
|
221
|
+
} else n = r;
|
|
222
|
+
return a && R(
|
|
223
|
+
n,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), z(
|
|
226
|
+
e,
|
|
227
|
+
a,
|
|
228
|
+
l,
|
|
229
|
+
m,
|
|
230
|
+
i(),
|
|
231
|
+
n,
|
|
232
|
+
S,
|
|
233
|
+
A
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
function C(e) {
|
|
237
|
+
typeof e == "object" && e !== null && e.$$typeof === j && e._store && (e._store.validated = 1);
|
|
238
|
+
}
|
|
239
|
+
var v = P, j = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), Z = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), oe = Symbol.for("react.client.reference"), O = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, ae = Array.isArray, k = console.createTask ? console.createTask : function() {
|
|
240
|
+
return null;
|
|
241
|
+
};
|
|
242
|
+
v = {
|
|
243
|
+
react_stack_bottom_frame: function(e) {
|
|
244
|
+
return e();
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
var I, D = {}, M = v.react_stack_bottom_frame.bind(
|
|
248
|
+
v,
|
|
249
|
+
c
|
|
250
|
+
)(), U = k(f(c)), F = {};
|
|
251
|
+
p.Fragment = h, p.jsx = function(e, r, n, o, m) {
|
|
252
|
+
var l = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return w(
|
|
254
|
+
e,
|
|
255
|
+
r,
|
|
256
|
+
n,
|
|
257
|
+
!1,
|
|
258
|
+
o,
|
|
259
|
+
m,
|
|
260
|
+
l ? Error("react-stack-top-frame") : M,
|
|
261
|
+
l ? k(f(e)) : U
|
|
262
|
+
);
|
|
263
|
+
}, p.jsxs = function(e, r, n, o, m) {
|
|
264
|
+
var l = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return w(
|
|
266
|
+
e,
|
|
267
|
+
r,
|
|
268
|
+
n,
|
|
269
|
+
!0,
|
|
270
|
+
o,
|
|
271
|
+
m,
|
|
272
|
+
l ? Error("react-stack-top-frame") : M,
|
|
273
|
+
l ? k(f(e)) : U
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
}()), p;
|
|
277
|
+
}
|
|
278
|
+
var W;
|
|
279
|
+
function ce() {
|
|
280
|
+
return W || (W = 1, process.env.NODE_ENV === "production" ? b.exports = se() : b.exports = ie()), b.exports;
|
|
281
|
+
}
|
|
282
|
+
var Ee = ce(), T = { exports: {} }, x = {};
|
|
283
|
+
/**
|
|
284
|
+
* @license React
|
|
285
|
+
* react-compiler-runtime.production.js
|
|
286
|
+
*
|
|
287
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the MIT license found in the
|
|
290
|
+
* LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/
|
|
292
|
+
var $;
|
|
293
|
+
function le() {
|
|
294
|
+
if ($) return x;
|
|
295
|
+
$ = 1;
|
|
296
|
+
var t = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
297
|
+
return x.c = function(u) {
|
|
298
|
+
return t.H.useMemoCache(u);
|
|
299
|
+
}, x;
|
|
300
|
+
}
|
|
301
|
+
var g = {};
|
|
302
|
+
/**
|
|
303
|
+
* @license React
|
|
304
|
+
* react-compiler-runtime.development.js
|
|
305
|
+
*
|
|
306
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the MIT license found in the
|
|
309
|
+
* LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/
|
|
311
|
+
var G;
|
|
312
|
+
function fe() {
|
|
313
|
+
return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
|
|
314
|
+
var t = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
315
|
+
g.c = function(u) {
|
|
316
|
+
var s = t.H;
|
|
317
|
+
return s === null && console.error(
|
|
318
|
+
`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:
|
|
319
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
320
|
+
2. You might be breaking the Rules of Hooks
|
|
321
|
+
3. You might have more than one copy of React in the same app
|
|
322
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
323
|
+
), s.useMemoCache(u);
|
|
324
|
+
};
|
|
325
|
+
}()), g;
|
|
326
|
+
}
|
|
327
|
+
var H;
|
|
328
|
+
function me() {
|
|
329
|
+
return H || (H = 1, process.env.NODE_ENV === "production" ? T.exports = le() : T.exports = fe()), T.exports;
|
|
330
|
+
}
|
|
331
|
+
var pe = me();
|
|
332
|
+
const de = (t) => t == null ? 0 : typeof t == "number" ? t : "value" in t ? t.value : "min" in t ? t.min : 0, ve = (t) => {
|
|
333
|
+
const u = t.map((i) => de(i.price)), s = Math.min(...u), f = Math.max(...u);
|
|
334
|
+
return s === void 0 || f === void 0 ? {
|
|
335
|
+
value: 0
|
|
336
|
+
} : s === f ? {
|
|
337
|
+
value: s
|
|
338
|
+
} : {
|
|
339
|
+
min: s,
|
|
340
|
+
max: f
|
|
341
|
+
};
|
|
342
|
+
}, be = (t, u) => typeof t == "function" ? t(u) : t;
|
|
343
|
+
export {
|
|
344
|
+
ve as a,
|
|
345
|
+
pe as c,
|
|
346
|
+
de as g,
|
|
347
|
+
Ee as j,
|
|
348
|
+
be as r
|
|
349
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";require("./index-CATkY-bf.js");const g=require("react");var b={exports:{}},E={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var q;function se(){if(q)return E;q=1;var t=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(f,s,c){var R=null;if(c!==void 0&&(R=""+c),s.key!==void 0&&(R=""+s.key),"key"in s){c={};for(var _ in s)_!=="key"&&(c[_]=s[_])}else c=s;return s=c.ref,{$$typeof:t,type:f,key:R,ref:s!==void 0?s:null,props:c}}return E.Fragment=u,E.jsx=i,E.jsxs=i,E}var p={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var L;function ce(){return L||(L=1,process.env.NODE_ENV!=="production"&&function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h:return"Fragment";case Z:return"Profiler";case B:return"StrictMode";case re:return"Suspense";case te:return"SuspenseList";case oe: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 X:return"Portal";case K:return(e.displayName||"Context")+".Provider";case Q:return(e._context.displayName||"Context")+".Consumer";case ee:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return r=e.displayName||null,r!==null?r:t(e.type)||"Memo";case y:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function u(e){return""+e}function i(e){try{u(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,o=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),u(e)}}function f(e){if(e===h)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===y)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=O.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function R(e){if(Y.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 n(){I||(I=!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))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function z(){var e=t(this.type);return D[e]||(D[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 V(e,r,n,o,m,l,S,A){return n=l.ref,e={$$typeof:j,type:e,key:r,props:l,_owner:m},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:z}):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:S}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function C(e,r,n,o,m,l,S,A){var a=r.children;if(a!==void 0)if(o)if(ue(a)){for(o=0;o<a.length;o++)w(a[o]);Object.freeze&&Object.freeze(a)}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 w(a);if(Y.call(r,"key")){a=t(e);var d=Object.keys(r).filter(function(ie){return ie!=="key"});o=0<d.length?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}",U[a+o]||(d=0<d.length?"{"+d.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,o,a,d,a),U[a+o]=!0)}if(a=null,n!==void 0&&(i(n),a=""+n),R(r)&&(i(r.key),a=""+r.key),"key"in r){n={};for(var N in r)N!=="key"&&(n[N]=r[N])}else n=r;return a&&_(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),V(e,a,l,m,s(),n,S,A)}function w(e){typeof e=="object"&&e!==null&&e.$$typeof===j&&e._store&&(e._store.validated=1)}var v=g,j=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),O=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,ue=Array.isArray,k=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var I,D={},F=v.react_stack_bottom_frame.bind(v,c)(),M=k(f(c)),U={};p.Fragment=h,p.jsx=function(e,r,n,o,m){var l=1e4>O.recentlyCreatedOwnerStacks++;return C(e,r,n,!1,o,m,l?Error("react-stack-top-frame"):F,l?k(f(e)):M)},p.jsxs=function(e,r,n,o,m){var l=1e4>O.recentlyCreatedOwnerStacks++;return C(e,r,n,!0,o,m,l?Error("react-stack-top-frame"):F,l?k(f(e)):M)}}()),p}var $;function le(){return $||($=1,process.env.NODE_ENV==="production"?b.exports=se():b.exports=ce()),b.exports}var fe=le(),T={exports:{}},x={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react-compiler-runtime.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var W;function me(){if(W)return x;W=1;var t=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return x.c=function(u){return t.H.useMemoCache(u)},x}var P={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* react-compiler-runtime.development.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var G;function de(){return G||(G=1,process.env.NODE_ENV!=="production"&&function(){var t=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;P.c=function(u){var i=t.H;return i===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:
|
|
39
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
40
|
+
2. You might be breaking the Rules of Hooks
|
|
41
|
+
3. You might have more than one copy of React in the same app
|
|
42
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),i.useMemoCache(u)}}()),P}var H;function Re(){return H||(H=1,process.env.NODE_ENV==="production"?T.exports=me():T.exports=de()),T.exports}var _e=Re();const J=t=>t==null?0:typeof t=="number"?t:"value"in t?t.value:"min"in t?t.min:0,Ee=t=>{const u=t.map(s=>J(s.price)),i=Math.min(...u),f=Math.max(...u);return i===void 0||f===void 0?{value:0}:i===f?{value:i}:{min:i,max:f}},pe=(t,u)=>typeof t=="function"?t(u):t;exports.compilerRuntimeExports=_e;exports.getPrice=J;exports.getProductPriceFromVariants=Ee;exports.jsxRuntimeExports=fe;exports.renderChildren=pe;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/vendure-plugin-configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32-2",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@haus-storefront-react/common-utils": "0.0.
|
|
45
|
-
"@haus-storefront-react/core": "0.0.
|
|
46
|
-
"@haus-storefront-react/shared-types": "0.0.
|
|
44
|
+
"@haus-storefront-react/common-utils": "0.0.32-2",
|
|
45
|
+
"@haus-storefront-react/core": "0.0.32-2",
|
|
46
|
+
"@haus-storefront-react/shared-types": "0.0.32-2"
|
|
47
47
|
}
|
|
48
48
|
}
|