@almadar/std 3.6.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-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/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-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/verify-results.json +120 -7
- package/dist/behaviors/functions/index.d.ts +2 -2
- package/dist/behaviors/functions/index.js +11 -11
- package/dist/behaviors/functions/index.js.map +1 -1
- package/dist/behaviors/index.js +11 -11
- 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-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/verify-results.json +120 -7
- package/dist/index.js +11 -11
- 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",
|
|
@@ -8994,7 +8994,7 @@ function stdDetail(params) {
|
|
|
8994
8994
|
openEvent: "VIEW",
|
|
8995
8995
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
8996
8996
|
closeEvent: "CLOSE",
|
|
8997
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
8997
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
8998
8998
|
}));
|
|
8999
8999
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
9000
9000
|
const page = {
|
|
@@ -9137,7 +9137,7 @@ function stdInventory(params) {
|
|
|
9137
9137
|
openEvent: "USE_ITEM",
|
|
9138
9138
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9139
9139
|
closeEvent: "CLOSE",
|
|
9140
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
9140
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
9141
9141
|
saveEvent: "SAVE",
|
|
9142
9142
|
saveEffects: [["persist", "update", entityName, "@payload.data"]],
|
|
9143
9143
|
emitOnSave: "ITEM_USED"
|
|
@@ -9323,7 +9323,7 @@ function stdMessaging(params) {
|
|
|
9323
9323
|
openEvent: "VIEW",
|
|
9324
9324
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9325
9325
|
closeEvent: "CLOSE",
|
|
9326
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
9326
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
9327
9327
|
}));
|
|
9328
9328
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
9329
9329
|
const page = {
|
|
@@ -9447,7 +9447,7 @@ function stdGeospatial(params) {
|
|
|
9447
9447
|
openEvent: "SELECT",
|
|
9448
9448
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9449
9449
|
closeEvent: "CLOSE",
|
|
9450
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
9450
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
9451
9451
|
saveEvent: "CONFIRM_SELECT",
|
|
9452
9452
|
saveEffects: []
|
|
9453
9453
|
}));
|
|
@@ -10409,7 +10409,7 @@ function buildPuzzleFlowTrait(c) {
|
|
|
10409
10409
|
]
|
|
10410
10410
|
};
|
|
10411
10411
|
const playingUI = {
|
|
10412
|
-
type: "game-
|
|
10412
|
+
type: "game-canvas-2d",
|
|
10413
10413
|
width,
|
|
10414
10414
|
height,
|
|
10415
10415
|
fps: 60
|