@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
|
@@ -1646,7 +1646,7 @@ declare function stdSimulationCanvas(params: StdSimulationCanvasParams): Orbital
|
|
|
1646
1646
|
/**
|
|
1647
1647
|
* std-game-canvas-2d
|
|
1648
1648
|
*
|
|
1649
|
-
* 2D game canvas atom using the `game-
|
|
1649
|
+
* 2D game canvas atom using the `game-canvas-2d` pattern.
|
|
1650
1650
|
* Provides a render loop with configurable FPS, width, and height.
|
|
1651
1651
|
* Handles init, start, stop, and per-frame tick events.
|
|
1652
1652
|
*
|
|
@@ -1677,7 +1677,7 @@ declare function stdGameCanvas2d(params: StdGameCanvas2dParams): OrbitalDefiniti
|
|
|
1677
1677
|
/**
|
|
1678
1678
|
* std-game-canvas-3d
|
|
1679
1679
|
*
|
|
1680
|
-
* 3D game canvas atom using the `game-
|
|
1680
|
+
* 3D game canvas atom using the `game-canvas-3d` pattern.
|
|
1681
1681
|
* Renders tiles, units, and features in a 3D scene with configurable
|
|
1682
1682
|
* orientation, camera mode, grid, shadows, and background color.
|
|
1683
1683
|
*
|
|
@@ -533,7 +533,7 @@ function buildTrait3(c) {
|
|
|
533
533
|
event: c.requestEvent,
|
|
534
534
|
effects: [
|
|
535
535
|
["set", "@entity.pendingId", "@payload.id"],
|
|
536
|
-
["fetch", entityName, "@payload.id"],
|
|
536
|
+
["fetch", entityName, { id: "@payload.id" }],
|
|
537
537
|
["render-ui", "modal", confirmModalView]
|
|
538
538
|
]
|
|
539
539
|
},
|
|
@@ -8129,7 +8129,7 @@ function buildEntity48(c) {
|
|
|
8129
8129
|
function buildTrait49(c) {
|
|
8130
8130
|
const { width, height, fps } = c;
|
|
8131
8131
|
const canvasConfig = {
|
|
8132
|
-
type: "game-
|
|
8132
|
+
type: "game-canvas-2d",
|
|
8133
8133
|
width,
|
|
8134
8134
|
height,
|
|
8135
8135
|
fps
|
|
@@ -8249,7 +8249,7 @@ function buildEntity49(c) {
|
|
|
8249
8249
|
function buildTrait50(c) {
|
|
8250
8250
|
const { entityName, orientation, cameraMode, showGrid, shadows, backgroundColor } = c;
|
|
8251
8251
|
const canvasView = {
|
|
8252
|
-
type: "game-
|
|
8252
|
+
type: "game-canvas-3d",
|
|
8253
8253
|
tiles: ["object/get", ["array/first", `@${entityName}`], "tiles"],
|
|
8254
8254
|
units: ["object/get", ["array/first", `@${entityName}`], "units"],
|
|
8255
8255
|
features: ["object/get", ["array/first", `@${entityName}`], "features"],
|
|
@@ -8454,7 +8454,7 @@ function stdList(params) {
|
|
|
8454
8454
|
openEvent: "EDIT",
|
|
8455
8455
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
8456
8456
|
closeEvent: "CLOSE",
|
|
8457
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
8457
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
8458
8458
|
saveEvent: "SAVE",
|
|
8459
8459
|
saveEffects: [["persist", "update", entityName, "@payload.data"]],
|
|
8460
8460
|
emitOnSave: UPDATED
|
|
@@ -8470,7 +8470,7 @@ function stdList(params) {
|
|
|
8470
8470
|
openEvent: "VIEW",
|
|
8471
8471
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
8472
8472
|
closeEvent: "CLOSE",
|
|
8473
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
8473
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
8474
8474
|
}));
|
|
8475
8475
|
const sm = browseTrait.stateMachine;
|
|
8476
8476
|
sm.states.push({ name: "deleting" });
|
|
@@ -8486,7 +8486,7 @@ function stdList(params) {
|
|
|
8486
8486
|
sm.transitions.push(
|
|
8487
8487
|
// DELETE: browsing → deleting (fetch entity by ID, show confirmation modal)
|
|
8488
8488
|
{ from: "browsing", to: "deleting", event: "DELETE", effects: [
|
|
8489
|
-
["fetch", entityName, "@payload.id"],
|
|
8489
|
+
["fetch", entityName, { id: "@payload.id" }],
|
|
8490
8490
|
["render-ui", "modal", {
|
|
8491
8491
|
type: "stack",
|
|
8492
8492
|
direction: "vertical",
|
|
@@ -8727,16 +8727,8 @@ function stdCart(params) {
|
|
|
8727
8727
|
headerIcon: "trash-2",
|
|
8728
8728
|
requestEvent: "REQUEST_REMOVE",
|
|
8729
8729
|
confirmEvent: "CONFIRM_REMOVE",
|
|
8730
|
-
confirmEffects: [["persist", "delete", entityName, "@
|
|
8730
|
+
confirmEffects: [["persist", "delete", entityName, "@entity.pendingId"]]
|
|
8731
8731
|
}));
|
|
8732
|
-
const removeSm = removeTrait.stateMachine;
|
|
8733
|
-
if (removeSm && "events" in removeSm) {
|
|
8734
|
-
const events = removeSm.events;
|
|
8735
|
-
const confirmEvt = events.find((e) => e.key === "CONFIRM_REMOVE");
|
|
8736
|
-
if (confirmEvt && !confirmEvt.payload) {
|
|
8737
|
-
confirmEvt.payload = [{ name: "id", type: "string", required: true }];
|
|
8738
|
-
}
|
|
8739
|
-
}
|
|
8740
8732
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
8741
8733
|
const page = {
|
|
8742
8734
|
name: c.pageName,
|
|
@@ -8875,7 +8867,7 @@ function stdDetail(params) {
|
|
|
8875
8867
|
openEvent: "VIEW",
|
|
8876
8868
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
8877
8869
|
closeEvent: "CLOSE",
|
|
8878
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
8870
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
8879
8871
|
}));
|
|
8880
8872
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
8881
8873
|
const page = {
|
|
@@ -9018,7 +9010,7 @@ function stdInventory(params) {
|
|
|
9018
9010
|
openEvent: "USE_ITEM",
|
|
9019
9011
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9020
9012
|
closeEvent: "CLOSE",
|
|
9021
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
9013
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
9022
9014
|
saveEvent: "SAVE",
|
|
9023
9015
|
saveEffects: [["persist", "update", entityName, "@payload.data"]],
|
|
9024
9016
|
emitOnSave: "ITEM_USED"
|
|
@@ -9204,7 +9196,7 @@ function stdMessaging(params) {
|
|
|
9204
9196
|
openEvent: "VIEW",
|
|
9205
9197
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9206
9198
|
closeEvent: "CLOSE",
|
|
9207
|
-
openEffects: [["fetch", entityName, "@payload.id"]]
|
|
9199
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]]
|
|
9208
9200
|
}));
|
|
9209
9201
|
const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
|
|
9210
9202
|
const page = {
|
|
@@ -9328,7 +9320,7 @@ function stdGeospatial(params) {
|
|
|
9328
9320
|
openEvent: "SELECT",
|
|
9329
9321
|
openPayload: [{ name: "id", type: "string", required: true }],
|
|
9330
9322
|
closeEvent: "CLOSE",
|
|
9331
|
-
openEffects: [["fetch", entityName, "@payload.id"]],
|
|
9323
|
+
openEffects: [["fetch", entityName, { id: "@payload.id" }]],
|
|
9332
9324
|
saveEvent: "CONFIRM_SELECT",
|
|
9333
9325
|
saveEffects: []
|
|
9334
9326
|
}));
|
|
@@ -10290,7 +10282,7 @@ function buildPuzzleFlowTrait(c) {
|
|
|
10290
10282
|
]
|
|
10291
10283
|
};
|
|
10292
10284
|
const playingUI = {
|
|
10293
|
-
type: "game-
|
|
10285
|
+
type: "game-canvas-2d",
|
|
10294
10286
|
width,
|
|
10295
10287
|
height,
|
|
10296
10288
|
fps: 60
|