@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
package/dist/behaviors/index.js
CHANGED
|
@@ -8854,16 +8854,8 @@ function stdCart(params) {
|
|
|
8854
8854
|
headerIcon: "trash-2",
|
|
8855
8855
|
requestEvent: "REQUEST_REMOVE",
|
|
8856
8856
|
confirmEvent: "CONFIRM_REMOVE",
|
|
8857
|
-
confirmEffects: [["persist", "delete", entityName, "@
|
|
8857
|
+
confirmEffects: [["persist", "delete", entityName, "@entity.pendingId"]]
|
|
8858
8858
|
}));
|
|
8859
|
-
const removeSm = removeTrait.stateMachine;
|
|
8860
|
-
if (removeSm && "events" in removeSm) {
|
|
8861
|
-
const events = removeSm.events;
|
|
8862
|
-
const confirmEvt = events.find((e) => e.key === "CONFIRM_REMOVE");
|
|
8863
|
-
if (confirmEvt && !confirmEvt.payload) {
|
|
8864
|
-
confirmEvt.payload = [{ name: "id", type: "string", required: true }];
|
|
8865
|
-
}
|
|
8866
|
-
}
|
|
8867
8859
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
8868
8860
|
const page = {
|
|
8869
8861
|
name: c.pageName,
|