@almadar/std 3.5.0 → 3.6.1
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/atoms/std-game-canvas2d.orb +3 -3
- package/behaviors/exports/atoms/std-game-canvas3d.orb +5 -5
- package/behaviors/exports/molecules/std-cart.orb +2 -9
- package/behaviors/exports/molecules/std-puzzle-game.orb +4 -4
- package/behaviors/exports/organisms/std-arcade-game.orb +3 -3
- package/behaviors/exports/organisms/std-puzzle-app.orb +4 -4
- package/behaviors/exports/validation-report.json +1 -0
- package/behaviors/exports/verify-results.json +120 -7
- package/dist/behaviors/exports/atoms/std-game-canvas2d.orb +3 -3
- package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +5 -5
- package/dist/behaviors/exports/molecules/std-cart.orb +2 -9
- package/dist/behaviors/exports/molecules/std-puzzle-game.orb +4 -4
- package/dist/behaviors/exports/organisms/std-arcade-game.orb +3 -3
- package/dist/behaviors/exports/organisms/std-puzzle-app.orb +4 -4
- package/dist/behaviors/exports/validation-report.json +1 -0
- package/dist/behaviors/exports/verify-results.json +120 -7
- package/dist/behaviors/functions/index.d.ts +2 -2
- package/dist/behaviors/functions/index.js +12 -20
- package/dist/behaviors/functions/index.js.map +1 -1
- package/dist/behaviors/index.js +12 -20
- package/dist/behaviors/index.js.map +1 -1
- package/dist/exports/atoms/std-game-canvas2d.orb +3 -3
- package/dist/exports/atoms/std-game-canvas3d.orb +5 -5
- package/dist/exports/molecules/std-cart.orb +2 -9
- package/dist/exports/molecules/std-puzzle-game.orb +4 -4
- package/dist/exports/organisms/std-arcade-game.orb +3 -3
- package/dist/exports/organisms/std-puzzle-app.orb +4 -4
- package/dist/exports/validation-report.json +1 -0
- package/dist/exports/verify-results.json +120 -7
- package/dist/index.js +12 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/behaviors/index.js
CHANGED
|
@@ -660,7 +660,7 @@ function buildTrait3(c) {
|
|
|
660
660
|
event: c.requestEvent,
|
|
661
661
|
effects: [
|
|
662
662
|
["set", "@entity.pendingId", "@payload.id"],
|
|
663
|
-
["fetch", entityName, "@payload.id"],
|
|
663
|
+
["fetch", entityName, { id: "@payload.id" }],
|
|
664
664
|
["render-ui", "modal", confirmModalView]
|
|
665
665
|
]
|
|
666
666
|
},
|
|
@@ -8256,7 +8256,7 @@ function buildEntity48(c) {
|
|
|
8256
8256
|
function buildTrait49(c) {
|
|
8257
8257
|
const { width, height, fps } = c;
|
|
8258
8258
|
const canvasConfig = {
|
|
8259
|
-
type: "game-
|
|
8259
|
+
type: "game-canvas-2d",
|
|
8260
8260
|
width,
|
|
8261
8261
|
height,
|
|
8262
8262
|
fps
|
|
@@ -8376,7 +8376,7 @@ function buildEntity49(c) {
|
|
|
8376
8376
|
function buildTrait50(c) {
|
|
8377
8377
|
const { entityName, orientation, cameraMode, showGrid, shadows, backgroundColor } = c;
|
|
8378
8378
|
const canvasView = {
|
|
8379
|
-
type: "game-
|
|
8379
|
+
type: "game-canvas-3d",
|
|
8380
8380
|
tiles: ["object/get", ["array/first", `@${entityName}`], "tiles"],
|
|
8381
8381
|
units: ["object/get", ["array/first", `@${entityName}`], "units"],
|
|
8382
8382
|
features: ["object/get", ["array/first", `@${entityName}`], "features"],
|
|
@@ -8581,7 +8581,7 @@ function stdList(params) {
|
|
|
8581
8581
|
openEvent: "EDIT",
|
|
8582
8582
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
8583
8583
|
closeEvent: "CLOSE",
|
|
8584
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
8584
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
8585
8585
|
saveEvent: "SAVE",
|
|
8586
8586
|
saveEffects: [["persist", "update", entityName, "@payload.data"]],
|
|
8587
8587
|
emitOnSave: UPDATED
|
|
@@ -8597,7 +8597,7 @@ function stdList(params) {
|
|
|
8597
8597
|
openEvent: "VIEW",
|
|
8598
8598
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
8599
8599
|
closeEvent: "CLOSE",
|
|
8600
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
8600
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
8601
8601
|
}));
|
|
8602
8602
|
const sm = browseTrait.stateMachine;
|
|
8603
8603
|
sm.states.push({ name: "deleting" });
|
|
@@ -8613,7 +8613,7 @@ function stdList(params) {
|
|
|
8613
8613
|
sm.transitions.push(
|
|
8614
8614
|
// DELETE: browsing → deleting (fetch entity by ID, show confirmation modal)
|
|
8615
8615
|
{ from: "browsing", to: "deleting", event: "DELETE", effects: [
|
|
8616
|
-
["fetch", entityName, "@payload.id"],
|
|
8616
|
+
["fetch", entityName, { id: "@payload.id" }],
|
|
8617
8617
|
["render-ui", "modal", {
|
|
8618
8618
|
type: "stack",
|
|
8619
8619
|
direction: "vertical",
|
|
@@ -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,
|
|
@@ -9002,7 +8994,7 @@ function stdDetail(params) {
|
|
|
9002
8994
|
openEvent: "VIEW",
|
|
9003
8995
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9004
8996
|
closeEvent: "CLOSE",
|
|
9005
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
8997
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
9006
8998
|
}));
|
|
9007
8999
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
9008
9000
|
const page = {
|
|
@@ -9145,7 +9137,7 @@ function stdInventory(params) {
|
|
|
9145
9137
|
openEvent: "USE_ITEM",
|
|
9146
9138
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9147
9139
|
closeEvent: "CLOSE",
|
|
9148
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
9140
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
9149
9141
|
saveEvent: "SAVE",
|
|
9150
9142
|
saveEffects: [["persist", "update", entityName, "@payload.data"]],
|
|
9151
9143
|
emitOnSave: "ITEM_USED"
|
|
@@ -9331,7 +9323,7 @@ function stdMessaging(params) {
|
|
|
9331
9323
|
openEvent: "VIEW",
|
|
9332
9324
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9333
9325
|
closeEvent: "CLOSE",
|
|
9334
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
9326
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
9335
9327
|
}));
|
|
9336
9328
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
9337
9329
|
const page = {
|
|
@@ -9455,7 +9447,7 @@ function stdGeospatial(params) {
|
|
|
9455
9447
|
openEvent: "SELECT",
|
|
9456
9448
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9457
9449
|
closeEvent: "CLOSE",
|
|
9458
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
9450
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
9459
9451
|
saveEvent: "CONFIRM_SELECT",
|
|
9460
9452
|
saveEffects: []
|
|
9461
9453
|
}));
|
|
@@ -10417,7 +10409,7 @@ function buildPuzzleFlowTrait(c) {
|
|
|
10417
10409
|
]
|
|
10418
10410
|
};
|
|
10419
10411
|
const playingUI = {
|
|
10420
|
-
type: "game-
|
|
10412
|
+
type: "game-canvas-2d",
|
|
10421
10413
|
width,
|
|
10422
10414
|
height,
|
|
10423
10415
|
fps: 60
|