@rr0/ufoathome 0.134.0 → 0.135.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.
- package/dist-embed-interview/rr0-interview.mjs +6 -6
- package/dist-embed-scene/rr0-scene.mjs +266 -266
- package/dist-embed-scene/sightingSchema-DqeNTmuQ.js +1 -0
- package/dist-embed-sighting/{SightingMessages_es-CxoccMw6.js → SightingMessages_es-Cck_4IWk.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_fr-CdqAz1Hz.js → SightingMessages_fr-C3wmZbM0.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_it-CkQVXDPv.js → SightingMessages_it-DCQUpWk8.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +286 -279
- package/dist-embed-sighting/sightingSchema-DqeNTmuQ.js +1 -0
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-DU2U8NdB.js → AdsbLolArchiveProvider-De-_PiBH.js} +1 -1
- package/dist-embed-sighting-editor/BeamSystem-YGYbbAkU.js +1 -0
- package/dist-embed-sighting-editor/{CaseEditorMessages_es-BrH54rIz.js → CaseEditorMessages_es-DUelIN8x.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_fr-DF-qjRtx.js → CaseEditorMessages_fr-BppxXK1E.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_it-Cb_U9B3i.js → CaseEditorMessages_it-BIYStAk9.js} +1 -1
- package/dist-embed-sighting-editor/ContrailSystem-CyYvtUTV.js +1 -0
- package/dist-embed-sighting-editor/{CoverageAssessor-DXVjXoUX.js → CoverageAssessor-DbLjQSsv.js} +1 -1
- package/dist-embed-sighting-editor/GLTFLoader-Clgrcwp4.js +1 -0
- package/dist-embed-sighting-editor/HeadlightSystem-wFRogS2e.js +34 -0
- package/dist-embed-sighting-editor/{HynekAssessor-Bc2SulU3.js → HynekAssessor-C6Lge7G-.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-bUyn6irj.js → InterviewEditorElement-DzxGD2_i.js} +6 -6
- package/dist-embed-sighting-editor/ModelSource-D9Q4lorr.js +1 -0
- package/dist-embed-sighting-editor/{ModelThumbnails-CYHW7hxV.js → ModelThumbnails-DO6uXzoW.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-BzHV3bjz.js → ModelViewer-Ct9JM_Rx.js} +1 -1
- package/dist-embed-sighting-editor/RailwaySystem-CNhqPQHR.js +41 -0
- package/dist-embed-sighting-editor/{RoadMarkings-BWoz2Cuq.js → RoadMarkings-xnEtzMn8.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_es-pgii85sY.js → SightingEditorMessages_es-BFzjoSef.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_fr-BysKDyGf.js → SightingEditorMessages_fr-90Ojknvv.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_it-DOnHDjjj.js → SightingEditorMessages_it-BtQIjKie.js} +2 -2
- package/dist-embed-sighting-editor/{SightingFileEditor-LAzFduCJ.js → SightingFileEditor-B6vMDoEQ.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-Dgxizn7s.js → TraceSystem-CArVw3Pm.js} +2 -2
- package/dist-embed-sighting-editor/WaterSystem-B-MThsCt.js +1 -0
- package/dist-embed-sighting-editor/caseSchema-DixCNMzt.js +1 -0
- package/dist-embed-sighting-editor/interviewJson-DXD8FSBX.js +8 -0
- package/dist-embed-sighting-editor/interviewSchema-D82l9P1r.js +1 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +311 -311
- package/dist-embed-sighting-editor/sightingSchema-DqeNTmuQ.js +1 -0
- package/dist-embed-sighting-editor/{trafficRuntime-STzu7-Xp.js → trafficRuntime-DiOPs8Lf.js} +1 -1
- package/package.json +1 -1
- package/dist-embed-scene/sightingSchema-DfbuP60Y.js +0 -1
- package/dist-embed-sighting/sightingSchema-DfbuP60Y.js +0 -1
- package/dist-embed-sighting-editor/BeamSystem-BnI9L86u.js +0 -1
- package/dist-embed-sighting-editor/ContrailSystem-DugiVtAv.js +0 -1
- package/dist-embed-sighting-editor/GLTFLoader-DLQh4lKb.js +0 -1
- package/dist-embed-sighting-editor/HeadlightSystem-BEWiubrn.js +0 -34
- package/dist-embed-sighting-editor/ModelSource-CnDfgMtY.js +0 -1
- package/dist-embed-sighting-editor/RailwaySystem-CzPTp4PW.js +0 -41
- package/dist-embed-sighting-editor/WaterSystem-Bv5uZSRK.js +0 -1
- package/dist-embed-sighting-editor/caseSchema-ByeWR3Rx.js +0 -1
- package/dist-embed-sighting-editor/interviewJson-CfwBPiuG.js +0 -8
- package/dist-embed-sighting-editor/interviewSchema-7rMvPyAl.js +0 -1
- package/dist-embed-sighting-editor/sightingSchema-DfbuP60Y.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={type:"string",doc:"The schema this file was written against, for an editor to check it with: https://ufoathome.org/schema/1/case.schema.json."},t={type:"number",doc:"The version of the format this file is written in (see FormatVersion): 1 when left out, as RR0 writes it."},i={type:"string",doc:"The case's identifier."},s={type:"string"},n={type:"string",doc:"What a link to this case says of it where it is shared as a card (see the Player's share card): a sentence or two, translatable.",loose:!0},a={type:"string",doc:"A picture standing for the case where it is only linked to — see SightingEvent.image."},r={type:"string",doc:'When it happened, as RR0 writes a time ("1948-07-24 02:45", "1954").'},o={type:"array",fields:{type:{type:"enum",values:["event"]},eventType:{type:"string",doc:"What kind of event it is.",suggest:["sighting","interview","interpretation","article","image","book"]},id:{type:"string",doc:"What a reading names an account by (`interpretationOf`), local to the case: it has to be unique among the case's events and nowhere else, so that a reference can be read in the file that writes it."},url:{type:"string"},time:{type:"string"},place:{type:"string",doc:"Where it happened, as RR0 names a place."},by:{type:"array",doc:"Who did it: who held an interview, who made a reading."},medium:{type:"enum",doc:"An interview's: what it was held through (see InterviewMedium).",values:["letter","other","in-person","phone","video","chat","email"]},title:{type:"string",loose:!0},sighting:{type:"string",doc:"An interpretation's, in the older form: the `id` of the recording it interprets."},interpretationOf:{type:"string",doc:"An interpretation's: the `id`, or the ids, of the sightings this one is a reading of.",loose:!0},interviewOf:{type:"string",doc:"An interview's: the `id`, or the ids, of the sighting events of the witnesses it was held with (see CaseFile.INTERVIEW_EVENT).",loose:!0},summary:{type:"string",doc:"What an event says of itself where its title is not enough: an interview's, what it established.",loose:!0}}},h={$schema:e,version:t,id:i,title:s,summary:n,image:a,time:r,events:o};export{e as $schema,h as default,o as events,i as id,a as image,n as summary,r as time,s as title,t as version};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{F as l}from"./rr0-sighting-editor.mjs";class n{static read(t){return l.check(t,"interview")}static isProofread(t){const a=Object.keys(t.speakers);return a.length>0&&a.every(r=>{const e=t.proofreading?.[r]?.status;return e==="approved"||e==="covered"})}static said(t){return t.parts?t.parts.map(a=>"redacted"in a?"…":n.plain(a.text)).join(" "):t.redacted?void 0:n.plain(t.text??"")}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};static plain(t){return/[<&]/.test(t)?t.replace(/<br\s*\/?>/gi,`
|
|
2
|
+
`).replace(/<\/?[a-z][^>]*>/gi,"").replace(/&#x([0-9a-f]+);/gi,(a,r)=>String.fromCodePoint(parseInt(r,16))).replace(/&#(\d+);/g,(a,r)=>String.fromCodePoint(Number(r))).replace(/&(\w+);/g,(a,r)=>n.ENTITIES[r.toLowerCase()]??a):t}static sightingsOf(t){return[t.interviewOf].flat().filter(a=>typeof a=="string")}static passagesAbout(t,a){const r=n.sightingsOf(t),e=[];return t.segments.forEach((s,c)=>{for(const o of s.refs??[]){if(o.sighting===void 0?!r.includes(a):o.sighting!==a)continue;const i=n.said(s);e.push({index:c,speaker:s.speaker,at:o.at,...i!==void 0?{text:i}:{},...o.range?{range:o.range}:{}})}}),e.sort((s,c)=>s.at-c.at||s.index-c.index)}static clock(t,a=!1){const r=Math.round(t*10),e=Math.floor(r/10),s=i=>String(i).padStart(2,"0"),c=Math.floor(e/3600),o=`${c>0||a?s(Math.floor(e/60)%60):Math.floor(e/60)}:${s(e%60)}`;return`${c>0?`${c}:`:""}${o}${a||r%10!==0?`.${r%10}`:""}`}static speakerName(t,a){const r=t.speakers[a];if(!r)return a;const e=typeof r.title=="string"?r.title:r.title?Object.values(r.title)[0]:void 0;return e||r.by&&n.agentName(r.by)||r.role}static agentName(t){if("people"in t){const[a,...r]=t.people.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ");return[...r,a].join(" ")}return"org"in t?t.org:t.title??""}static stamp(t){const a=Math.round(t*1e3),r=(e,s=2)=>String(e).padStart(s,"0");return`${r(Math.floor(a/36e5))}:${r(Math.floor(a/6e4)%60)}:${r(Math.floor(a/1e3)%60)}.${r(a%1e3,3)}`}static toVtt(t){const a=s=>s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),r=t.segments.filter(s=>s.start!==void 0);return`WEBVTT
|
|
3
|
+
|
|
4
|
+
${r.map((s,c)=>{const o=r[c+1],i=s.end??o?.start??s.start+5,p=o&&o.start<i?Math.max(s.start,o.start):i;return`${n.stamp(s.start)} --> ${n.stamp(p)}
|
|
5
|
+
<v ${a(n.speakerName(t,s.speaker))}>${a(n.said(s)??"[…]")}`}).join(`
|
|
6
|
+
|
|
7
|
+
`)}
|
|
8
|
+
`}}export{n as InterviewFile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={type:"string",doc:"The schema this file was written against, for an editor to check it with: https://ufoathome.org/schema/1/interview.schema.json."},t={type:"number",doc:"The version of the format this file is written in (see FormatVersion): 1, the only one so far."},s={type:"string"},o={type:"string"},i={type:"string",doc:"What the interview is called, in the languages it has.",loose:!0},n={type:"string",doc:"When it was held, as RR0 writes a time."},a={type:"enum",doc:"What it was held through: face to face (`in-person`), by `phone`, in a `video` call, by `chat`, by `email`, by `letter`, or `other`.",values:["letter","other","in-person","phone","video","chat","email"]},r={type:"array",doc:"Who held it."},c={type:"string",doc:"The `id`, or the ids, of the sighting events of the case it was held with.",loose:!0},h={type:"string",doc:"What it established, in the languages it has.",loose:!0},d={type:"object"},p={type:"object",fields:{method:{type:"enum",values:["automatic","manual"]},engine:{type:"string"},note:{type:"string"}}},y={type:"object",doc:"Who approved the transcript, by speaker id."},g={type:"object",doc:"What was taken out to anonymise it, and what stands in its place.",fields:{replaced:{type:"array"},marker:{type:"string"}}},l={type:"array",doc:"The recordings of the interview, if any are kept (see InterviewRecording).",fields:{kind:{type:"enum",values:["video","audio"]},src:{type:"string",doc:"Its address, relative to the transcript's file."},offset:{type:"number",doc:"Seconds of the recording before the transcript's time 0."}}},f={type:"array",fields:{speaker:{type:"string"},start:{type:"number"},end:{type:"number"},text:{type:"string"},redacted:{type:"object",fields:{reason:{type:"string",doc:"Why, in the languages it has: what kind of passage (private life, identifying detail, small talk, recognition error).",loose:!0},words:{type:"number",doc:'How many words were taken out: what a reader can be told of a passage whose text is gone ("passage taken out · 10 words").'}}},parts:{type:"array"},refs:{type:"array",doc:"The moments of the observation this passage tells of.",fields:{sighting:{type:"string",doc:"The `id` of the sighting event of the case; the interview's own `interviewOf` when omitted."},at:{type:"number",doc:"Seconds since the beginning of the observation."},range:{type:"object",doc:"The part of the segment's text it is about, as `[from, to)` character offsets."}}}}},m={$schema:e,version:t,id:s,language:o,title:i,time:n,medium:a,by:r,interviewOf:c,summary:h,speakers:d,transcription:p,proofreading:y,anonymization:g,recordings:l,segments:f};export{e as $schema,g as anonymization,r as by,m as default,s as id,c as interviewOf,o as language,a as medium,y as proofreading,l as recordings,f as segments,d as speakers,h as summary,n as time,i as title,p as transcription,t as version};
|