@reventlessdev/online-shop-hybrid-ordering 1.0.0-alpha.235 → 1.0.0-alpha.236

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 CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.0.0-alpha.236 (2026-09-08)
7
+
8
+ ### Features
9
+
10
+ * **spec:** a field declares the value a form opens it on ([1d541fe](https://github.com/ReventlessDev/reventless-core/commit/1d541fe497e1df2ff48b72e26a06a1b8fd3c9e06))
11
+
12
+
6
13
  # 1.0.0-alpha.235 (2026-09-08)
7
14
 
8
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-hybrid-ordering",
3
- "version": "1.0.0-alpha.235",
3
+ "version": "1.0.0-alpha.236",
4
4
  "description": "Online Shop Hybrid example — Ordering plugin (Customer aggregate + Order/CatalogProduct DCB)",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -21,20 +21,20 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "sury": "11.0.0-rc.2",
24
- "@reventlessdev/online-shop-hybrid-catalog-spec": "1.0.0-alpha.128",
25
- "@reventlessdev/online-shop-hybrid-ordering-spec": "1.0.0-alpha.128",
26
- "@reventlessdev/reventless-infra": "3.0.0-alpha.160",
24
+ "@reventlessdev/online-shop-hybrid-catalog-spec": "1.0.0-alpha.129",
25
+ "@reventlessdev/online-shop-hybrid-ordering-spec": "1.0.0-alpha.129",
26
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.207",
27
27
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
28
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.206",
29
- "@reventlessdev/reventless-local": "3.0.0-alpha.248",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.132",
31
- "@reventlessdev/trait-address-geocoding": "1.0.0-alpha.8",
32
- "@reventlessdev/trait-notification": "1.0.0-alpha.8"
28
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.161",
29
+ "@reventlessdev/reventless-local": "3.0.0-alpha.249",
30
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.133",
31
+ "@reventlessdev/trait-address-geocoding": "1.0.0-alpha.9",
32
+ "@reventlessdev/trait-notification": "1.0.0-alpha.9"
33
33
  },
34
34
  "devDependencies": {
35
35
  "rescript": "12.3.0",
36
36
  "sury-ppx": "11.0.0-rc.2",
37
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.78"
37
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.80"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "rescript": "12.3.0"
@@ -47,7 +47,9 @@ type shippingMethod =
47
47
  @schema
48
48
  type lineItem = {
49
49
  @ref("AvailableProducts") productId: string,
50
- quantity: int,
50
+ // A line is for one of the thing unless the shopper says otherwise. Without
51
+ // it a checkout seeded from a picked shelf opens each line blank.
52
+ @default(1) quantity: int,
51
53
  }
52
54
 
53
55
  @schema
@@ -6,6 +6,7 @@ import * as Owner$Reventless from "@reventlessdev/reventless-spec/src/components
6
6
  import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
7
7
  import * as DateRange$Reventless from "@reventlessdev/reventless-spec/src/semantic/DateRange.res.mjs";
8
8
  import * as Reference$Reventless from "@reventlessdev/reventless-spec/src/components/Reference.res.mjs";
9
+ import * as FieldDefault$Reventless from "@reventlessdev/reventless-spec/src/components/FieldDefault.res.mjs";
9
10
  import * as UploadableImage$Reventless from "@reventlessdev/reventless-spec/src/semantic/UploadableImage.res.mjs";
10
11
 
11
12
  let consumedEventSchema = Sury.union([
@@ -49,7 +50,7 @@ let shippingMethodSchema = Sury.union([
49
50
 
50
51
  let lineItemSchema = Sury.$schema(s => ({
51
52
  productId: s.m(Reference$Reventless.to_(undefined, undefined, "AvailableProducts")),
52
- quantity: s.m(Sury.int)
53
+ quantity: s.m(FieldDefault$Reventless.int(Sury.int, 1))
53
54
  }));
54
55
 
55
56
  let commandSchema = Sury.$schema(s => ({