@haus-storefront-react/order-lines 0.0.1 → 0.0.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 +30 -0
- package/{I3HPI4QX-djdwxmN0.mjs → I3HPI4QX-CaE5ND_5.mjs} +1 -1
- package/{browser-ponyfill-CpN79AIW.mjs → browser-ponyfill-CuU2zgC1.mjs} +1 -1
- package/{index-Bkhe0b4T.mjs → index-UPU5iVY5.mjs} +23 -23
- package/index.mjs +1 -1
- package/package.json +6 -6
- package/{production-qucZeWTC.mjs → production-n3SqjhWV.mjs} +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
## 0.0.1 (2025-06-26)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- enhance cart functionality with AddItemToOrder component ([2af5f7a](https://github.com/WeAreHausTech/haus-storefront-components/commit/2af5f7a))
|
|
6
|
+
- add AddItemToOrder component for managing cart items ([0590e25](https://github.com/WeAreHausTech/haus-storefront-components/commit/0590e25))
|
|
7
|
+
- add react-native-web support and update Vite configurations ([5425f8a](https://github.com/WeAreHausTech/haus-storefront-components/commit/5425f8a))
|
|
8
|
+
- implement platform-aware components and utilities ([116a735](https://github.com/WeAreHausTech/haus-storefront-components/commit/116a735))
|
|
9
|
+
- generate project graph and update package.json files ([80da01b](https://github.com/WeAreHausTech/haus-storefront-components/commit/80da01b))
|
|
10
|
+
- integrate React Compiler and update dependencies across the project ([92487fa](https://github.com/WeAreHausTech/haus-storefront-components/commit/92487fa))
|
|
11
|
+
- **quantity-buttons:** integrate AsChildProps for flexible component rendering ([fa11dc6](https://github.com/WeAreHausTech/haus-storefront-components/commit/fa11dc6))
|
|
12
|
+
- **order-lines:** introduce OrderLines component for managing cart items ([7ef3283](https://github.com/WeAreHausTech/haus-storefront-components/commit/7ef3283))
|
|
13
|
+
|
|
14
|
+
### 🩹 Fixes
|
|
15
|
+
|
|
16
|
+
- adjust quantity validation in useOrderLinesProps ([59cbb55](https://github.com/WeAreHausTech/haus-storefront-components/commit/59cbb55))
|
|
17
|
+
|
|
18
|
+
### 🧱 Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated store/hooks to 0.0.1
|
|
21
|
+
- Updated core to 0.0.1
|
|
22
|
+
- Updated common/utils to 0.0.1
|
|
23
|
+
- Updated common/ui to 0.0.1
|
|
24
|
+
- Updated shared/types to 0.0.1
|
|
25
|
+
|
|
26
|
+
### ❤️ Thank You
|
|
27
|
+
|
|
28
|
+
- Johanna Bertils
|
|
29
|
+
- Mathias Saxenstrand
|
|
30
|
+
|
|
1
31
|
## 2.0.10 (2025-06-25)
|
|
2
32
|
|
|
3
33
|
### 🧱 Updated Dependencies
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as be, a as R, o as Mt, b as B, d as M, e as y, P as Lo, S as z, t as _, i as k, f as N, g as T, h as vs, j as rr, u as xe, k as U, s as Gn, m as Hn, l as ut, n as A, p as bs, q as Mn, r as Ke, v as xs, w as Lt, x as _t, y as ws, z as $s, A as bn, F as Cs, B as Rr, C as Rt, $ as Oo, D as Ss, E as ks, G as j, H as zr, I as Es, J as Ms, K as or, L as Ds, M as As, N as Rn, O as Ts, Q as Fs, R as Z, T as Is, U as Ps, V as Ls } from "./production-
|
|
1
|
+
import { c as be, a as R, o as Mt, b as B, d as M, e as y, P as Lo, S as z, t as _, i as k, f as N, g as T, h as vs, j as rr, u as xe, k as U, s as Gn, m as Hn, l as ut, n as A, p as bs, q as Mn, r as Ke, v as xs, w as Lt, x as _t, y as ws, z as $s, A as bn, F as Cs, B as Rr, C as Rt, $ as Oo, D as Ss, E as ks, G as j, H as zr, I as Es, J as Ms, K as or, L as Ds, M as As, N as Rn, O as Ts, Q as Fs, R as Z, T as Is, U as Ps, V as Ls } from "./production-n3SqjhWV.mjs";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -4442,7 +4442,7 @@ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObje
|
|
|
4442
4442
|
typeof Kt != "function" && (Kt = void 0);
|
|
4443
4443
|
if (!Kt && !hr && !xi)
|
|
4444
4444
|
try {
|
|
4445
|
-
import("./browser-ponyfill-
|
|
4445
|
+
import("./browser-ponyfill-CuU2zgC1.mjs").then((o) => o.b).then(function(o) {
|
|
4446
4446
|
Kt = o.default;
|
|
4447
4447
|
}).catch(function() {
|
|
4448
4448
|
});
|
|
@@ -6464,7 +6464,7 @@ ql.interceptors.response.use((o) => {
|
|
|
6464
6464
|
return o;
|
|
6465
6465
|
}, (o) => Promise.reject(o));
|
|
6466
6466
|
const xt = window.__STORE_QUERY_CLIENT__;
|
|
6467
|
-
Bm(() => import("./production-
|
|
6467
|
+
Bm(() => import("./production-n3SqjhWV.mjs").then((o) => o.W).then((o) => ({
|
|
6468
6468
|
default: o.ReactQueryDevtools
|
|
6469
6469
|
})));
|
|
6470
6470
|
var Ot = {}, _i = {}, bi = {}, wi = {}, kc;
|
|
@@ -8125,7 +8125,25 @@ Wm((o, n) => {
|
|
|
8125
8125
|
return r[32] !== v || r[33] !== A || r[34] !== C || r[35] !== x || r[36] !== S ? (F = /* @__PURE__ */ ce.jsx("button", { ref: A, className: C, disabled: x, ...v, children: S }), r[32] = v, r[33] = A, r[34] = C, r[35] = x, r[36] = S, r[37] = F) : F = r[37], F;
|
|
8126
8126
|
}
|
|
8127
8127
|
});
|
|
8128
|
-
const Ql = "Price", [Wy, T_] = Ss(Ql), [x_, P_] = Wy(Ql), jy = () => {
|
|
8128
|
+
const Ql = "Price", [Wy, T_] = Ss(Ql), [x_, P_] = Wy(Ql), jy = (o) => {
|
|
8129
|
+
const n = ye.c(8);
|
|
8130
|
+
let r;
|
|
8131
|
+
n[0] !== o ? (r = o === void 0 ? {} : o, n[0] = o, n[1] = r) : r = n[1];
|
|
8132
|
+
const s = r, u = qn();
|
|
8133
|
+
let c;
|
|
8134
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (c = [mt.ACTIVE_ORDER], n[2] = c) : c = n[2];
|
|
8135
|
+
let l;
|
|
8136
|
+
n[3] !== u ? (l = () => u.activeOrder(), n[3] = u, n[4] = l) : l = n[4];
|
|
8137
|
+
let d;
|
|
8138
|
+
return n[5] !== s || n[6] !== l ? (d = {
|
|
8139
|
+
queryKey: c,
|
|
8140
|
+
queryFn: l,
|
|
8141
|
+
refetchOnWindowFocus: !0,
|
|
8142
|
+
refetchOnMount: !0,
|
|
8143
|
+
staleTime: 0,
|
|
8144
|
+
...s
|
|
8145
|
+
}, n[5] = s, n[6] = l, n[7] = d) : d = n[7], Ny(d);
|
|
8146
|
+
}, $y = () => {
|
|
8129
8147
|
const o = qn(), n = kl(), r = pr(dr, "cart:error"), s = pr(dr, "cart:updated"), u = pr(dr, "cart:updating"), c = fc(null), l = fc(null), d = jm(() => {
|
|
8130
8148
|
const v = Ye.debounce(async (_, E) => {
|
|
8131
8149
|
u({
|
|
@@ -8250,24 +8268,6 @@ const Ql = "Price", [Wy, T_] = Ss(Ql), [x_, P_] = Wy(Ql), jy = () => {
|
|
|
8250
8268
|
isLoading: m.isPending,
|
|
8251
8269
|
data: n.getQueryData([mt.ACTIVE_ORDER])?.lines
|
|
8252
8270
|
};
|
|
8253
|
-
}, $y = (o) => {
|
|
8254
|
-
const n = ye.c(8);
|
|
8255
|
-
let r;
|
|
8256
|
-
n[0] !== o ? (r = o === void 0 ? {} : o, n[0] = o, n[1] = r) : r = n[1];
|
|
8257
|
-
const s = r, u = qn();
|
|
8258
|
-
let c;
|
|
8259
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (c = [mt.ACTIVE_ORDER], n[2] = c) : c = n[2];
|
|
8260
|
-
let l;
|
|
8261
|
-
n[3] !== u ? (l = () => u.activeOrder(), n[3] = u, n[4] = l) : l = n[4];
|
|
8262
|
-
let d;
|
|
8263
|
-
return n[5] !== s || n[6] !== l ? (d = {
|
|
8264
|
-
queryKey: c,
|
|
8265
|
-
queryFn: l,
|
|
8266
|
-
refetchOnWindowFocus: !0,
|
|
8267
|
-
refetchOnMount: !0,
|
|
8268
|
-
staleTime: 0,
|
|
8269
|
-
...s
|
|
8270
|
-
}, n[5] = s, n[6] = l, n[7] = d) : d = n[7], Ny(d);
|
|
8271
8271
|
}, Vy = (o, n) => {
|
|
8272
8272
|
const r = ye.c(12);
|
|
8273
8273
|
let s;
|
|
@@ -8354,7 +8354,7 @@ const Gy = (o) => {
|
|
|
8354
8354
|
n[2] !== F ? (B = {
|
|
8355
8355
|
enabled: F
|
|
8356
8356
|
}, n[2] = F, n[3] = B) : B = n[3];
|
|
8357
|
-
const $ =
|
|
8357
|
+
const $ = jy(B), oe = !!s;
|
|
8358
8358
|
let Z;
|
|
8359
8359
|
n[4] !== oe ? (Z = {
|
|
8360
8360
|
enabled: oe
|
|
@@ -8389,7 +8389,7 @@ const Gy = (o) => {
|
|
|
8389
8389
|
adjustOrderLine: Me,
|
|
8390
8390
|
error: Wt,
|
|
8391
8391
|
isLoading: $e
|
|
8392
|
-
} =
|
|
8392
|
+
} = $y();
|
|
8393
8393
|
let Be;
|
|
8394
8394
|
n[13] !== Me || n[14] !== m || n[15] !== A || n[16] !== de ? (Be = async (Re, re) => {
|
|
8395
8395
|
if (de?.find((Je) => Je.id === Re) && !(re < A) && !(m && re > m))
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/order-lines",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@haus-storefront-react/common-ui": "0.0.
|
|
15
|
-
"@haus-storefront-react/common-utils": "0.0.
|
|
16
|
-
"@haus-storefront-react/core": "0.0.
|
|
17
|
-
"@haus-storefront-react/hooks": "0.0.
|
|
18
|
-
"@haus-storefront-react/shared-types": "0.0.
|
|
14
|
+
"@haus-storefront-react/common-ui": "0.0.2",
|
|
15
|
+
"@haus-storefront-react/common-utils": "0.0.2",
|
|
16
|
+
"@haus-storefront-react/core": "0.0.2",
|
|
17
|
+
"@haus-storefront-react/hooks": "0.0.2",
|
|
18
|
+
"@haus-storefront-react/shared-types": "0.0.2"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
2
|
import { useQueryClient as St, onlineManager as At } from "@tanstack/react-query";
|
|
3
|
-
import { j as Et } from "./index-
|
|
3
|
+
import { j as Et } from "./index-UPU5iVY5.mjs";
|
|
4
4
|
var d = {
|
|
5
5
|
context: void 0,
|
|
6
6
|
registry: void 0,
|
|
@@ -1936,7 +1936,7 @@ var kr = (e, t = !1) => {
|
|
|
1936
1936
|
const t = nn(() => {
|
|
1937
1937
|
const n = this, [r] = this.#r, [s] = this.#s, [i] = this.#i, [o] = this.#o, [l] = this.#t;
|
|
1938
1938
|
let a;
|
|
1939
|
-
return this.#l ? a = this.#l : (a = Kt(() => import("./I3HPI4QX-
|
|
1939
|
+
return this.#l ? a = this.#l : (a = Kt(() => import("./I3HPI4QX-CaE5ND_5.mjs")), this.#l = a), Zn(this.#u, this.#n), Bt(a, Ft({
|
|
1940
1940
|
get queryFlavor() {
|
|
1941
1941
|
return n.#c;
|
|
1942
1942
|
},
|