@simon-says-build/ssb-overlay 0.9.3 → 0.9.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simon-says-build/ssb-overlay",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "SSB inside a native app SimonSays controls: the SSB button for the people who change the app (screenshot, mark, ask for a change), and Help for everyone who uses it.",
5
5
  "repository": {
6
6
  "type": "git",
package/src/SsbHost.js CHANGED
@@ -146,7 +146,6 @@ function Host({ config, getToken, sessionKey, route, capture, storage, pushToken
146
146
  const [shot, setShot] = useState(null); // the screen as it was when the button was tapped
147
147
  const [frozen, setFrozen] = useState(null); // while drawing: { pic, hosts } — the screen held still under the pencil
148
148
  const [items, setItems] = useState([]); // what is drawn: strokes and boxes, in screen points (core.js)
149
- const [openShot, setOpenShot] = useState(null); // the message whose full screen is showing (its preview otherwise)
150
149
  const [live, setLive] = useState(null); // the item under the finger
151
150
  const liveRef = useRef(null);
152
151
  const [tool, setTool] = useState('pencil'); // pencil | box
@@ -566,6 +565,7 @@ function Panel({ gate, chat, work, elsewhere, onDemo, screen, insets, draft, set
566
565
  const sheet = useRef(null);
567
566
  const scroll = useRef(null);
568
567
  const [at, setAt] = useState(COMPACT);
568
+ const [openShot, setOpenShot] = useState(null); // the message whose full screen is showing (its preview otherwise)
569
569
  const [footH, setFootH] = useState(120);
570
570
  const [open, setOpen] = useState(null); // the draft whose detail is shown
571
571
  const { flying, waiting, sent } = workView({ inFlight: work, chat });
package/src/core.js CHANGED
@@ -5,7 +5,7 @@
5
5
  export const DEFAULT_API = 'https://simonsays.build';
6
6
  // What this overlay is, said when it registers for pushes (clientInfo below).
7
7
  // Kept equal to package.json by test/core.test.mjs.
8
- export const OVERLAY_VERSION = '0.9.3';
8
+ export const OVERLAY_VERSION = '0.9.4';
9
9
  export const HOST = 5;
10
10
  export const TEXT = 6;
11
11
  const PIN_SLOP = 12; // a drag shorter than this is a tap: a pin, not a box