@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.
@@ -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-canvas2-d",
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-canvas3-d",
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",
@@ -8867,7 +8867,7 @@ function stdDetail(params) {
8867
8867
  openEvent: "VIEW",
8868
8868
  openPayload: [{ name: "id", type: "string", required: true }],
8869
8869
  closeEvent: "CLOSE",
8870
- openEffects: [["fetch", entityName, "@payload.id"]]
8870
+ openEffects: [["fetch", entityName, { id: "@payload.id" }]]
8871
8871
  }));
8872
8872
  const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
8873
8873
  const page = {
@@ -9010,7 +9010,7 @@ function stdInventory(params) {
9010
9010
  openEvent: "USE_ITEM",
9011
9011
  openPayload: [{ name: "id", type: "string", required: true }],
9012
9012
  closeEvent: "CLOSE",
9013
- openEffects: [["fetch", entityName, "@payload.id"]],
9013
+ openEffects: [["fetch", entityName, { id: "@payload.id" }]],
9014
9014
  saveEvent: "SAVE",
9015
9015
  saveEffects: [["persist", "update", entityName, "@payload.data"]],
9016
9016
  emitOnSave: "ITEM_USED"
@@ -9196,7 +9196,7 @@ function stdMessaging(params) {
9196
9196
  openEvent: "VIEW",
9197
9197
  openPayload: [{ name: "id", type: "string", required: true }],
9198
9198
  closeEvent: "CLOSE",
9199
- openEffects: [["fetch", entityName, "@payload.id"]]
9199
+ openEffects: [["fetch", entityName, { id: "@payload.id" }]]
9200
9200
  }));
9201
9201
  const entity = makeEntity({ name: entityName, fields, persistence: c.persistence, collection: c.collection });
9202
9202
  const page = {
@@ -9320,7 +9320,7 @@ function stdGeospatial(params) {
9320
9320
  openEvent: "SELECT",
9321
9321
  openPayload: [{ name: "id", type: "string", required: true }],
9322
9322
  closeEvent: "CLOSE",
9323
- openEffects: [["fetch", entityName, "@payload.id"]],
9323
+ openEffects: [["fetch", entityName, { id: "@payload.id" }]],
9324
9324
  saveEvent: "CONFIRM_SELECT",
9325
9325
  saveEffects: []
9326
9326
  }));
@@ -10282,7 +10282,7 @@ function buildPuzzleFlowTrait(c) {
10282
10282
  ]
10283
10283
  };
10284
10284
  const playingUI = {
10285
- type: "game-canvas2-d",
10285
+ type: "game-canvas-2d",
10286
10286
  width,
10287
10287
  height,
10288
10288
  fps: 60