@simon-says-build/demo-player 0.14.0 → 0.14.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/core.js +15 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simon-says-build/demo-player",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "SimonSays mobile demo player: walks a preview's viewer through a job's change, inside the app. Renders nothing unless the bundle carries a demo.",
5
5
  "repository": {
6
6
  "type": "git",
package/src/core.js CHANGED
@@ -10,7 +10,7 @@ import { bubbleBox } from './step-place.js';
10
10
  // What this player is, said when the app registers for "Ready to see"
11
11
  // (packages/ssb-overlay sends it; functions/in-app-notify.mjs clientOf). Kept
12
12
  // equal to package.json by test/core.test.mjs.
13
- export const PLAYER_VERSION = '0.14.0';
13
+ export const PLAYER_VERSION = '0.14.1';
14
14
 
15
15
  export const HOST = 5;
16
16
  export const TEXT = 6;
@@ -194,12 +194,24 @@ export function cardBox(place, at, screen, insets, card) {
194
194
  // pinned to the top by default, but with a collapse button"). The card sits
195
195
  // across the top of the screen; only when it would cover the ringed element
196
196
  // (`at`) does it move to the bottom. Pure.
197
+ // THE DEV CLIENT'S BUTTON (2026-11-07): a review plays in a development build,
198
+ // and expo-dev-menu draws its floating tools button (the gear) in a native
199
+ // window above the app at the top-right. Its touch area is far bigger than the
200
+ // icon — on SSB's iPhone simulator nothing below it got touches from x ≈ 305
201
+ // to the edge, down to y ≈ 165 — so a short card pinned at the top had its
202
+ // right-aligned primary button under it: "Take me there" did nothing for the
203
+ // playback check and for a person alike (Connie Ho's review, demo
204
+ // 16D4S5HqugIonvUSdC5u; mapped by hand-tapping a grid on the simulator). A card
205
+ // pinned at the TOP stays left of it; one pinned at the bottom is full width.
206
+ export const DEV_FAB_CLEAR = 88;
207
+
197
208
  export function pinnedBox(at, screen, insets, card) {
198
- const left = 12, width = screen.width - 24;
209
+ const left = 12, full = screen.width - 24;
199
210
  const top = insets.top + 8;
200
211
  const bottom = screen.height - insets.bottom - card.h - 8;
201
212
  const covers = at && at.top < top + card.h + 8 && at.bottom > top;
202
- return { left, width, top: covers ? Math.max(top, bottom) : top };
213
+ const y = covers ? Math.max(top, bottom) : top;
214
+ return { left, width: y === top ? full - DEV_FAB_CLEAR : full, top: y };
203
215
  }
204
216
 
205
217
  // A TAP ON THE RINGED ELEMENT (0.13.1): a `try` step is done when the viewer's