@rr0/ufoathome 0.41.1 → 0.42.0

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.
@@ -84,7 +84,7 @@ canvas {
84
84
  border: var(--ufo-canvas-border, 1px solid #333);
85
85
  box-sizing: border-box;
86
86
  }
87
- /* Hover feedback for the editor (<rr0-ufo-recorder>): what the pointer is over is drawn INSIDE
87
+ /* Hover feedback for the editor (<rr0-sighting-editor>): what the pointer is over is drawn INSIDE
88
88
  the canvas, so only script can hit-test it — but the appearance stays here, in CSS. The
89
89
  component only ever states what is under the pointer (data-cursor="move", "resize-ns", ...);
90
90
  which actual cursor that means is this stylesheet's business alone. Plain <rr0-ufo> playback
@@ -152,7 +152,7 @@ canvas[data-cursor="rotate"] {
152
152
  }
153
153
  /* A compound class selector (0,2,0) so this reliably beats the plain .toolbar rule above (0,1,0)
154
154
  regardless of declaration order — set via UfoElement's showToolbar setter by a composing
155
- element (see UfoRecorderElement) that drives its own external playback controls instead, since
155
+ element (see SightingEditorElement) that drives its own external playback controls instead, since
156
156
  this overlay's flex:1 seek bar would otherwise intercept nearly the full width of the canvas's
157
157
  bottom edge, blocking shape drag/resize there. */
158
158
  .toolbar.hidden {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rr0/ufoathome",
3
3
  "type": "module",
4
- "version": "0.41.1",
4
+ "version": "0.42.0",
5
5
  "description": "UFO@home — record and replay a UFO sighting's shape, movement and appearance",
6
6
  "author": "Jérôme Beau <rr0@rr0.org> (https://rr0.org)",
7
7
  "license": "MIT",
@@ -15,30 +15,30 @@
15
15
  },
16
16
  "exports": {
17
17
  "./ufo": "./dist-embed-ufo/rr0-ufo.mjs",
18
- "./recorder": "./dist-embed/rr0-ufo-recorder.mjs",
19
18
  "./scene": "./dist-embed-scene/rr0-scene.mjs",
20
19
  "./sighting": "./dist-embed-sighting/rr0-sighting.mjs",
21
- "./eyewitness": "./dist-embed-sighting/rr0-sighting.mjs"
20
+ "./editor": "./dist-embed-sighting-editor/rr0-sighting-editor.mjs",
21
+ "./eyewitness": "./dist-embed-sighting/rr0-sighting.mjs",
22
+ "./recorder": "./dist-embed-sighting-editor/rr0-sighting-editor.mjs"
22
23
  },
23
24
  "files": [
24
- "dist-embed",
25
25
  "dist-embed-ufo",
26
26
  "dist-embed-scene",
27
- "dist-embed-sighting"
27
+ "dist-embed-sighting",
28
+ "dist-embed-sighting-editor"
28
29
  ],
29
30
  "scripts": {
30
31
  "dev": "vite",
31
32
  "build": "tsc --noEmit && vite build",
32
- "build:embed": "tsc --noEmit && vite build --config vite.embed.config.ts",
33
33
  "build:embed-ufo": "tsc --noEmit && vite build --config vite.embed-ufo.config.ts",
34
34
  "build:embed-scene": "tsc --noEmit && vite build --config vite.embed-scene.config.ts",
35
35
  "build:embed-sighting": "tsc --noEmit && vite build --config vite.embed-sighting.config.ts",
36
- "build:all": "npm run build && npm run build:embed && npm run build:embed-ufo && npm run build:embed-scene && npm run build:embed-sighting",
37
- "build:site": "npm run build:schema && npm run build:embed && npm run build:embed-ufo && npm run build:embed-scene && npm run build:embed-sighting && vite build --config vite.site.config.ts && tsx site/build.ts",
36
+ "build:all": "npm run build && npm run build:embed-sighting-editor && npm run build:embed-ufo && npm run build:embed-scene && npm run build:embed-sighting",
37
+ "build:site": "npm run build:schema && npm run build:embed-sighting-editor && npm run build:embed-ufo && npm run build:embed-scene && npm run build:embed-sighting && vite build --config vite.site.config.ts && tsx site/build.ts",
38
38
  "site": "tsx site/build.ts",
39
39
  "site:watch": "node --watch-path=./site --watch-path=./public/demo-data --import tsx site/build.ts",
40
40
  "site:serve": "vite preview --outDir dist-site --port 5181 --strictPort",
41
- "prepublishOnly": "npm run build:embed && npm run build:embed-ufo && npm run build:embed-scene && npm run build:embed-sighting && npm test",
41
+ "prepublishOnly": "npm run build:embed-sighting-editor && npm run build:embed-ufo && npm run build:embed-scene && npm run build:embed-sighting && npm test",
42
42
  "preview": "vite preview",
43
43
  "test": "vitest run",
44
44
  "test:watch": "vitest",
@@ -46,7 +46,8 @@
46
46
  "build:comets": "tsx scripts/build-comet-catalog.ts",
47
47
  "build:satellites": "tsx scripts/build-satellite-catalog.ts",
48
48
  "build:schema": "tsx scripts/build-sighting-schema.ts",
49
- "pretest": "npm run build:schema"
49
+ "pretest": "npm run build:schema",
50
+ "build:embed-sighting-editor": "tsc --noEmit && vite build --config vite.embed-sighting-editor.config.ts"
50
51
  },
51
52
  "dependencies": {
52
53
  "@rr0/data": "^0.3.41",