@almadar/std 3.5.0 → 3.6.0
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/behaviors/exports/molecules/std-cart.orb +2 -9
- package/behaviors/exports/validation-report.json +1 -0
- package/dist/behaviors/exports/molecules/std-cart.orb +2 -9
- package/dist/behaviors/exports/validation-report.json +1 -0
- package/dist/behaviors/functions/index.js +1 -9
- package/dist/behaviors/functions/index.js.map +1 -1
- package/dist/behaviors/index.js +1 -9
- package/dist/behaviors/index.js.map +1 -1
- package/dist/exports/molecules/std-cart.orb +2 -9
- package/dist/exports/validation-report.json +1 -0
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -559,14 +559,7 @@
|
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
"key": "CONFIRM_REMOVE",
|
|
562
|
-
"name": "Confirm"
|
|
563
|
-
"payload": [
|
|
564
|
-
{
|
|
565
|
-
"name": "id",
|
|
566
|
-
"type": "string",
|
|
567
|
-
"required": true
|
|
568
|
-
}
|
|
569
|
-
]
|
|
562
|
+
"name": "Confirm"
|
|
570
563
|
},
|
|
571
564
|
{
|
|
572
565
|
"key": "CANCEL",
|
|
@@ -673,7 +666,7 @@
|
|
|
673
666
|
"persist",
|
|
674
667
|
"delete",
|
|
675
668
|
"CartItem",
|
|
676
|
-
"@
|
|
669
|
+
"@entity.pendingId"
|
|
677
670
|
],
|
|
678
671
|
[
|
|
679
672
|
"render-ui",
|
package/dist/index.js
CHANGED
|
@@ -12492,16 +12492,8 @@ function stdCart(params) {
|
|
|
12492
12492
|
headerIcon: "trash-2",
|
|
12493
12493
|
requestEvent: "REQUEST_REMOVE",
|
|
12494
12494
|
confirmEvent: "CONFIRM_REMOVE",
|
|
12495
|
-
confirmEffects: [["persist", "delete", entityName, "@
|
|
12495
|
+
confirmEffects: [["persist", "delete", entityName, "@entity.pendingId"]]
|
|
12496
12496
|
}));
|
|
12497
|
-
const removeSm = removeTrait.stateMachine;
|
|
12498
|
-
if (removeSm && "events" in removeSm) {
|
|
12499
|
-
const events = removeSm.events;
|
|
12500
|
-
const confirmEvt = events.find((e) => e.key === "CONFIRM_REMOVE");
|
|
12501
|
-
if (confirmEvt && !confirmEvt.payload) {
|
|
12502
|
-
confirmEvt.payload = [{ name: "id", type: "string", required: true }];
|
|
12503
|
-
}
|
|
12504
|
-
}
|
|
12505
12497
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
12506
12498
|
const page = {
|
|
12507
12499
|
name: c.pageName,
|