@serene-pub/core-catalog 0.6.0-pr-7 → 0.6.0-pr-9
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/README.md +1 -1
- package/components/genres/story/authors-note/AuthorsNote.svelte +2 -1
- package/components/genres/story/authors-note/AuthorsNoteWidget.svelte +177 -58
- package/components/shared/WidgetBoundary.svelte +37 -0
- package/components/shared/actions/Actions.svelte +2 -1
- package/components/shared/actions/ActionsWidget.svelte +31 -38
- package/components/shared/album/Album.svelte +2 -1
- package/components/shared/album/AlbumWidget.svelte +1 -7
- package/components/shared/annex/Annex.svelte +2 -1
- package/components/shared/annex/AnnexWidget.svelte +1 -1
- package/components/shared/attendance/Attendance.svelte +2 -1
- package/components/shared/attendance/AttendanceWidget.svelte +5 -8
- package/components/shared/backdrop/Backdrop.svelte +2 -1
- package/components/shared/backdrop/BackdropWidget.svelte +28 -22
- package/components/shared/chronicle/Chronicle.svelte +2 -1
- package/components/shared/chronicle/ChronicleWidget.svelte +211 -99
- package/components/shared/composer/Composer.svelte +25 -0
- package/components/shared/composer/ComposerWidget.svelte +146 -0
- package/components/shared/composer/composer.ts +10 -0
- package/components/shared/composer/settings.ts +59 -0
- package/components/shared/composer/target.ts +79 -0
- package/components/shared/dialogue-box/DialogueBoxMount.svelte +25 -0
- package/components/shared/dialogue-box/DialogueBoxWidget.svelte +207 -0
- package/components/shared/dialogue-box/dialogue-box.ts +10 -0
- package/components/shared/dialogue-box/settings.ts +25 -0
- package/components/shared/lore-entries/LoreEntries.svelte +2 -1
- package/components/shared/lore-entries/LoreEntriesWidget.svelte +44 -41
- package/components/shared/messages/MessageBlocksView.svelte +1 -1
- package/components/shared/messages/MessageControls.svelte +23 -5
- package/components/shared/messages/Messages.svelte +2 -1
- package/components/shared/messages/MessagesWidget.svelte +82 -191
- package/components/shared/messages/NextCharacterBlock.svelte +35 -20
- package/components/shared/messages/SceneDivider.svelte +40 -14
- package/components/shared/messages/SessionComposer.svelte +178 -123
- package/components/shared/messages/SessionContainer.svelte +89 -38
- package/components/shared/messages/SessionMessage.svelte +157 -54
- package/components/shared/messages/SpokenLine.svelte +57 -16
- package/components/shared/messages/StateProposalList.svelte +30 -20
- package/components/shared/messages/TurnLine.svelte +258 -66
- package/components/shared/messages/conversation.svelte.ts +83 -5
- package/components/shared/messages/readingPace.ts +101 -0
- package/components/shared/messages/rowFacts.ts +44 -0
- package/components/shared/messages/sceneMarks.ts +54 -0
- package/components/shared/messages/spokenLine.ts +63 -14
- package/components/shared/places/Places.svelte +2 -1
- package/components/shared/places/PlacesWidget.svelte +42 -33
- package/components/shared/routine-log/RoutineLog.svelte +2 -1
- package/components/shared/routine-log/RoutineLogWidget.svelte +0 -4
- package/components/shared/routine-log/routineLog.ts +5 -21
- package/components/shared/scene-portraits/ScenePortraits.svelte +2 -1
- package/components/shared/scene-portraits/ScenePortraitsWidget.svelte +54 -32
- package/components/shared/session-runs/SessionRuns.svelte +26 -0
- package/components/shared/session-runs/SessionRunsWidget.svelte +270 -0
- package/components/shared/session-runs/session-runs.ts +11 -0
- package/components/shared/state/PieceCard.svelte +36 -25
- package/components/shared/state/SlotControl.svelte +18 -5
- package/components/shared/stats/Stats.svelte +2 -1
- package/components/shared/stats/StatsWidget.svelte +104 -72
- package/components/shared/turn-line/TurnLineMount.svelte +25 -0
- package/components/shared/turn-line/TurnLineWidget.svelte +25 -0
- package/components/shared/turn-line/settings.ts +31 -0
- package/components/shared/turn-line/turn-line.ts +10 -0
- package/components/shared/turn-order/TurnOrder.svelte +2 -1
- package/components/shared/turn-order/TurnOrderWidget.svelte +1 -6
- package/dist/components/actions.js +71 -88
- package/dist/components/actions.source.json +1 -1
- package/dist/components/album.js +39 -44
- package/dist/components/album.source.json +1 -1
- package/dist/components/annex.js +17 -8
- package/dist/components/annex.source.json +1 -1
- package/dist/components/attendance.js +39 -48
- package/dist/components/attendance.source.json +1 -1
- package/dist/components/authors-note.js +329 -162
- package/dist/components/authors-note.source.json +1 -1
- package/dist/components/backdrop.js +52 -55
- package/dist/components/backdrop.source.json +1 -1
- package/dist/components/chronicle.js +798 -559
- package/dist/components/chronicle.source.json +1 -1
- package/dist/components/composer.js +1639 -0
- package/dist/components/composer.source.json +1 -0
- package/dist/components/core-ui.json +1 -1
- package/dist/components/dialogue-box.js +373 -0
- package/dist/components/dialogue-box.source.json +1 -0
- package/dist/components/lore-entries.js +134 -122
- package/dist/components/lore-entries.source.json +1 -1
- package/dist/components/messages.js +1517 -8930
- package/dist/components/messages.source.json +1 -1
- package/dist/components/places.js +267 -244
- package/dist/components/places.source.json +1 -1
- package/dist/components/routine-log.js +35 -51
- package/dist/components/routine-log.source.json +1 -1
- package/dist/components/scene-portraits.js +118 -59
- package/dist/components/scene-portraits.source.json +1 -1
- package/dist/components/session-runs.js +488 -0
- package/dist/components/session-runs.source.json +1 -0
- package/dist/components/{shared-7VDIXYAL.js → shared-47J4TNSF.js} +1 -1
- package/dist/components/{shared-W3XS5FEL.js → shared-5E4RQYRX.js} +3 -2
- package/dist/components/{shared-YDS7HYL6.js → shared-EFMMT76D.js} +57 -4
- package/dist/components/{shared-BIWKZFUU.js → shared-FOVKPMSK.js} +3 -3
- package/dist/components/{shared-JPG5DQO7.js → shared-HEAKNNZB.js} +92 -17
- package/dist/components/shared-JXP6SHKF.js +159 -0
- package/dist/components/{shared-XBDUENRA.js → shared-JXYPKSTQ.js} +1 -1
- package/dist/components/shared-KJIOSSE3.js +257 -0
- package/dist/components/{shared-WV3QTKZT.js → shared-KLURQFWI.js} +13 -9
- package/dist/components/shared-MHCNUDUT.js +1680 -0
- package/dist/components/{shared-QXF5CJVN.js → shared-NICRJ4Z2.js} +1 -1
- package/dist/components/{shared-BBF64YGL.js → shared-W2BBJCNE.js} +22 -16
- package/dist/components/shared-YYYXFDZU.js +4354 -0
- package/dist/components/stats.js +828 -678
- package/dist/components/stats.source.json +1 -1
- package/dist/components/turn-line.js +856 -0
- package/dist/components/turn-line.source.json +1 -0
- package/dist/components/turn-order.js +62 -67
- package/dist/components/turn-order.source.json +1 -1
- package/dist/factories/answerForm.d.ts +6 -0
- package/dist/factories/answerForm.js +104 -96
- package/dist/factories/turnOrder.d.ts +98 -105
- package/dist/factories/turnOrder.js +120 -136
- package/dist/functions/pieces.js +1 -0
- package/dist/functions/time.js +2 -0
- package/dist/genres/chat/create.js +2 -0
- package/dist/genres/chat/memory.js +64 -43
- package/dist/genres/chat/respond.d.ts +7 -6
- package/dist/genres/chat/respond.js +13 -4
- package/dist/genres/chat/turnOrder.d.ts +2 -2
- package/dist/genres/chat/turnOrder.js +28 -12
- package/dist/genres/defaults.d.ts +28 -6
- package/dist/genres/defaults.js +84 -26
- package/dist/genres/dungeon-crawler/calls.d.ts +3 -1
- package/dist/genres/dungeon-crawler/calls.js +5 -0
- package/dist/genres/dungeon-crawler/create.d.ts +9 -6
- package/dist/genres/dungeon-crawler/create.js +18 -8
- package/dist/genres/dungeon-crawler/death.d.ts +13 -6
- package/dist/genres/dungeon-crawler/death.js +26 -12
- package/dist/genres/dungeon-crawler/index.d.ts +1 -0
- package/dist/genres/dungeon-crawler/index.js +1 -0
- package/dist/genres/dungeon-crawler/journal.d.ts +1 -1
- package/dist/genres/dungeon-crawler/journal.js +1 -1
- package/dist/genres/dungeon-crawler/lore.d.ts +13 -12
- package/dist/genres/dungeon-crawler/lore.js +16 -25
- package/dist/genres/dungeon-crawler/names.d.ts +10 -3
- package/dist/genres/dungeon-crawler/names.js +10 -3
- package/dist/genres/dungeon-crawler/preamble.d.ts +5 -4
- package/dist/genres/dungeon-crawler/preamble.js +75 -33
- package/dist/genres/dungeon-crawler/respond.js +4 -2
- package/dist/genres/dungeon-crawler/rest.d.ts +8 -7
- package/dist/genres/dungeon-crawler/rest.js +39 -15
- package/dist/genres/dungeon-crawler/reveal.js +2 -2
- package/dist/genres/dungeon-crawler/roundScript.d.ts +2 -1
- package/dist/genres/dungeon-crawler/roundScript.js +23 -5
- package/dist/genres/dungeon-crawler/scripts.js +4 -5
- package/dist/genres/dungeon-crawler/shape.d.ts +16 -0
- package/dist/genres/dungeon-crawler/shape.js +5 -1
- package/dist/genres/dungeon-crawler/sheet.d.ts +20 -20
- package/dist/genres/dungeon-crawler/story.d.ts +27 -16
- package/dist/genres/dungeon-crawler/story.js +175 -46
- package/dist/genres/dungeon-crawler/storyScripts.d.ts +2 -2
- package/dist/genres/dungeon-crawler/storyScripts.js +109 -14
- package/dist/genres/dungeon-crawler/summarizeScene.d.ts +13 -0
- package/dist/genres/dungeon-crawler/summarizeScene.js +21 -0
- package/dist/genres/dungeon-crawler/turnOrder.d.ts +8 -9
- package/dist/genres/dungeon-crawler/turnOrder.js +33 -23
- package/dist/genres/guide/create.js +2 -0
- package/dist/genres/guide/turnOrder.d.ts +3 -3
- package/dist/genres/guide/turnOrder.js +29 -13
- package/dist/genres/lair/answerForm.js +4 -1
- package/dist/genres/lair/buildRoom.js +4 -3
- package/dist/genres/lair/castellanAction.js +160 -154
- package/dist/genres/lair/create.js +2 -0
- package/dist/genres/lair/fileCurrentRoom.js +13 -10
- package/dist/genres/lair/fileRoom.js +4 -3
- package/dist/genres/lair/keeper.js +6 -2
- package/dist/genres/lair/names.d.ts +2 -0
- package/dist/genres/lair/names.js +2 -0
- package/dist/genres/lair/reply.js +16 -6
- package/dist/genres/lair/roomAnswer.js +4 -3
- package/dist/genres/lair/scratchpad.js +9 -7
- package/dist/genres/lair/scripts.js +8 -6
- package/dist/genres/lair/turnOrder.d.ts +3 -2
- package/dist/genres/lair/turnOrder.js +45 -16
- package/dist/genres/story/ask.d.ts +4 -0
- package/dist/genres/story/ask.js +4 -0
- package/dist/genres/story/create.js +15 -0
- package/dist/genres/story/index.d.ts +1 -1
- package/dist/genres/story/index.js +1 -1
- package/dist/genres/story/narrate.js +8 -0
- package/dist/genres/story/narrateCharacter.js +8 -0
- package/dist/genres/story/reckon.d.ts +5 -19
- package/dist/genres/story/reckon.js +53 -40
- package/dist/genres/story/reckoning.js +3 -0
- package/dist/genres/story/respond.js +17 -28
- package/dist/genres/story/sweep.d.ts +1 -1
- package/dist/genres/story/sweep.js +1 -1
- package/dist/genres/story/turnOrder.d.ts +21 -3
- package/dist/genres/story/turnOrder.js +87 -21
- package/dist/index.d.ts +3 -0
- package/dist/index.js +23 -9
- package/dist/loadouts.d.ts +1 -0
- package/dist/loadouts.js +17 -1
- package/dist/primers/ninth-mile.d.ts +3 -4
- package/dist/registry/entries.d.ts +2 -0
- package/dist/registry/entries.js +18 -5
- package/dist/registry/genres.d.ts +146 -40
- package/dist/registry/genres.js +373 -101
- package/dist/registry/hostState.d.ts +1 -2
- package/dist/registry/hostState.js +2 -4
- package/dist/registry/layouts.d.ts +141 -111
- package/dist/registry/layouts.js +302 -141
- package/dist/registry/slots.d.ts +4 -3
- package/dist/registry/slots.js +4 -3
- package/dist/registry/widgets.d.ts +12 -2
- package/dist/registry/widgets.js +259 -106
- package/dist/rulesets/vis-itineris/ruleset.js +8 -5
- package/dist/rulesets/wherewithal/ruleset.js +2 -1
- package/dist/seed/presets.js +15 -9
- package/dist/seed/prompts.js +24 -5
- package/dist/seed/scripts.js +3 -0
- package/dist/shared/annexField.js +23 -3
- package/dist/shared/illustrateScene.d.ts +1 -0
- package/dist/shared/illustrateScene.js +29 -1
- package/dist/shared/lore.d.ts +13 -0
- package/dist/shared/lore.js +37 -1
- package/dist/shared/portrait.js +13 -4
- package/dist/shared/reckoning.d.ts +8 -2
- package/dist/shared/reckoning.js +47 -30
- package/dist/shared/roundTick.d.ts +20 -0
- package/dist/shared/roundTick.js +76 -0
- package/dist/shared/sceneBoundaries.d.ts +7 -0
- package/dist/shared/sceneBoundaries.js +62 -0
- package/dist/shared/sceneSummaries.d.ts +7 -0
- package/dist/shared/sceneSummaries.js +49 -0
- package/dist/shared/speakMessage.d.ts +9 -2
- package/dist/shared/speakMessage.js +32 -9
- package/dist/shared/speechFields.js +4 -0
- package/dist/shared/summarize/character.d.ts +1 -1
- package/dist/shared/summarize/history.d.ts +1 -1
- package/dist/shared/summarize/scene.d.ts +1 -1
- package/dist/shared/summarize/summarizeScene.js +1 -0
- package/dist/shared/summarize/summarizeSpec.d.ts +1 -1
- package/dist/shared/summarize/world.d.ts +1 -1
- package/dist/shared/ui/attendance/index.d.ts +3 -2
- package/dist/shared/ui/attendance/index.js +3 -7
- package/dist/shared/ui/chronicle/index.d.ts +24 -2
- package/dist/shared/ui/chronicle/index.js +58 -29
- package/dist/shared/ui/conversation/formAnswer.d.ts +16 -2
- package/dist/shared/ui/conversation/formAnswer.js +23 -9
- package/dist/shared/ui/conversation/index.d.ts +2 -0
- package/dist/shared/ui/conversation/index.js +4 -0
- package/dist/shared/ui/conversation/itemValues.d.ts +16 -3
- package/dist/shared/ui/conversation/itemValues.js +15 -5
- package/dist/shared/ui/conversation/messageVerbState.d.ts +17 -2
- package/dist/shared/ui/conversation/messageVerbState.js +5 -4
- package/dist/shared/ui/conversation/readingPlace.d.ts +40 -0
- package/dist/shared/ui/conversation/readingPlace.js +119 -0
- package/dist/shared/ui/conversation/rewindStrip.d.ts +13 -4
- package/dist/shared/ui/conversation/rewindStrip.js +29 -7
- package/dist/shared/ui/conversation/runsInProgress.d.ts +30 -0
- package/dist/shared/ui/conversation/runsInProgress.js +47 -0
- package/dist/shared/ui/conversation/storyDays.d.ts +7 -1
- package/dist/shared/ui/conversation/storyDays.js +8 -0
- package/dist/shared/ui/conversation/tableChannel.d.ts +8 -11
- package/dist/shared/ui/conversation/tableChannel.js +8 -9
- package/dist/shared/ui/places/index.d.ts +3 -2
- package/dist/shared/ui/places/index.js +4 -5
- package/dist/shared/ui/routine-log/index.d.ts +3 -0
- package/dist/shared/ui/routine-log/index.js +22 -0
- package/dist/shared/ui/scene-portraits/portraits.d.ts +50 -16
- package/dist/shared/ui/scene-portraits/portraits.js +84 -21
- package/dist/shared/ui/session-runs/index.d.ts +90 -0
- package/dist/shared/ui/session-runs/index.js +143 -0
- package/dist/shared/ui/session-state/stateView.d.ts +18 -5
- package/dist/shared/ui/session-state/stateView.js +29 -8
- package/dist/shared/ui/turn-order/index.d.ts +0 -9
- package/dist/shared/ui/turn-order/index.js +1 -2
- package/package.json +12 -8
- /package/dist/components/{shared-4ME6NFDK.js → shared-LUIF6DW7.js} +0 -0
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
*
|
|
17
17
|
* An empty order with people to choose from — a round that is over, or
|
|
18
18
|
* a manual strategy waiting to be told — waits on a message and offers
|
|
19
|
-
* the pick
|
|
19
|
+
* the pick (at the compact width, the shorter "Your move, or pick who
|
|
20
|
+
* speaks", so the line fits a phone). 🚧 A round that waits on others once the viewer has had their
|
|
20
21
|
* say (`waitingFor`, the page's reading) says so: "Waiting for Maren Holt". An order whose entries are all on other channels shows
|
|
21
22
|
* nothing here.
|
|
22
23
|
*
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
* person's style keeps matching: the markup carries no look; the default
|
|
39
40
|
* widget stylesheet draws it, keyed on the new names.
|
|
40
41
|
*/
|
|
41
|
-
import type { NextUp } from "
|
|
42
|
+
import type { NextUp } from "../turn-line/settings"
|
|
42
43
|
import { useConversation } from "./conversation.svelte"
|
|
43
44
|
|
|
44
45
|
type Entry = { ref: string | null; channel?: unknown; [k: string]: unknown }
|
|
@@ -68,6 +69,8 @@
|
|
|
68
69
|
waitingFor?: readonly string[]
|
|
69
70
|
/** 🚧 The viewer owns the session: their Continue moves past a waiting player (D5). */
|
|
70
71
|
viewerIsOwner?: boolean
|
|
72
|
+
/** Why nothing starts by itself, as the server sent it (to the owner only): said under the line, or in place of the waiting sentence. */
|
|
73
|
+
standstill?: "no-turn-order" | "no-auto-advance" | "no-extent"
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
let {
|
|
@@ -81,8 +84,15 @@
|
|
|
81
84
|
canChooseSomeoneElse = true,
|
|
82
85
|
viewerUserId = null,
|
|
83
86
|
waitingFor = [],
|
|
84
|
-
viewerIsOwner = false
|
|
87
|
+
viewerIsOwner = false,
|
|
88
|
+
standstill
|
|
85
89
|
}: Props = $props()
|
|
90
|
+
const STANDSTILL_WORDS = {
|
|
91
|
+
"no-turn-order": "This genre sets no turn order. Pick who speaks, or press Continue.",
|
|
92
|
+
"no-auto-advance": "This genre sets no Auto-advance, so nothing starts by itself. Press Continue.",
|
|
93
|
+
"no-extent":
|
|
94
|
+
"Auto-advance is on, but this genre does not say how far it runs, so nothing starts by itself. Press Continue."
|
|
95
|
+
} as const
|
|
86
96
|
const waitingWords = $derived(
|
|
87
97
|
waitingFor.length ? `Waiting for ${new Intl.ListFormat("en", { style: "long", type: "conjunction" }).format([...waitingFor])}` : ""
|
|
88
98
|
)
|
|
@@ -133,49 +143,51 @@
|
|
|
133
143
|
|
|
134
144
|
{#if !here.length && waitingWords}
|
|
135
145
|
<!-- 🚧 The round waits on others, the viewer's say made (Q3-3). -->
|
|
136
|
-
<div data-widget-part="messages.turn-line-waiting messages.next-up-waiting" data-waiting-for="">
|
|
146
|
+
<div data-widget-part="messages.turn-line-waiting turn-line.waiting messages.next-up-waiting turn-line.next-up-waiting" data-waiting-for="">
|
|
137
147
|
<sp-icon name="hourglass" size="14"></sp-icon>
|
|
138
|
-
<span data-widget-part="messages.turn-line-text messages.next-up-text">{waitingWords}</span>
|
|
148
|
+
<span data-widget-part="messages.turn-line-text turn-line.text messages.next-up-text turn-line.next-up-text">{waitingWords}</span>
|
|
139
149
|
</div>
|
|
140
150
|
{:else if shouldShow && !order.length && candidates.length}
|
|
141
|
-
<div data-widget-part="messages.turn-line-waiting messages.next-up-waiting">
|
|
142
|
-
<span data-widget-part="messages.turn-line-text messages.next-up-text">
|
|
143
|
-
|
|
151
|
+
<div data-widget-part="messages.turn-line-waiting turn-line.waiting messages.next-up-waiting turn-line.next-up-waiting">
|
|
152
|
+
<span data-widget-part="messages.turn-line-text turn-line.text messages.next-up-text turn-line.next-up-text">
|
|
153
|
+
{standstill === "no-turn-order" ? STANDSTILL_WORDS["no-turn-order"] : conversation.ctx.layout?.v1?.tier === "compact"
|
|
154
|
+
? "Your move, or pick who speaks"
|
|
155
|
+
: "Waiting for a message — or pick who speaks next"}
|
|
144
156
|
</span>
|
|
145
|
-
<button type="button" data-widget-part="messages.turn-line-pick messages.next-up-pick" onclick={onSomeoneElse}>
|
|
157
|
+
<button type="button" data-widget-part="messages.turn-line-pick turn-line.pick messages.next-up-pick turn-line.next-up-pick" onclick={onSomeoneElse}>
|
|
146
158
|
<sp-icon name="users" size="14"></sp-icon>
|
|
147
159
|
<span>Pick</span>
|
|
148
160
|
</button>
|
|
149
161
|
</div>
|
|
150
162
|
{:else if shouldShow && head}
|
|
151
163
|
<!-- One line: who is up, and what you can do about it. -->
|
|
152
|
-
<div data-widget-part="messages.turn-line-head messages.next-up-head">
|
|
153
|
-
<div data-widget-part="messages.turn-line-due messages.next-up-line">
|
|
164
|
+
<div data-widget-part="messages.turn-line-head turn-line.head messages.next-up-head turn-line.next-up-head">
|
|
165
|
+
<div data-widget-part="messages.turn-line-due turn-line.due messages.next-up-line turn-line.next-up-line">
|
|
154
166
|
{#if face}
|
|
155
167
|
<sp-avatar ref={head.ref} size="sm"></sp-avatar>
|
|
156
168
|
{:else if head.ref === null}
|
|
157
|
-
<sp-icon name="book-open-text" size="18" data-widget-part="messages.turn-line-narrator messages.next-up-narrator"></sp-icon>
|
|
169
|
+
<sp-icon name="book-open-text" size="18" data-widget-part="messages.turn-line-narrator turn-line.narrator messages.next-up-narrator turn-line.next-up-narrator"></sp-icon>
|
|
158
170
|
{/if}
|
|
159
|
-
<span data-widget-part="messages.turn-line-text messages.next-up-text">
|
|
171
|
+
<span data-widget-part="messages.turn-line-text turn-line.text messages.next-up-text turn-line.next-up-text">
|
|
160
172
|
{line}
|
|
161
173
|
</span>
|
|
162
|
-
<div data-widget-part="messages.turn-line-controls messages.next-up-controls">
|
|
174
|
+
<div data-widget-part="messages.turn-line-controls turn-line.controls messages.next-up-controls turn-line.next-up-controls">
|
|
163
175
|
{#if canChooseSomeoneElse}
|
|
164
176
|
<button
|
|
165
177
|
type="button"
|
|
166
|
-
data-widget-part="messages.turn-line-pick messages.next-up-pick"
|
|
178
|
+
data-widget-part="messages.turn-line-pick turn-line.pick messages.next-up-pick turn-line.next-up-pick"
|
|
167
179
|
onclick={onSomeoneElse}
|
|
168
180
|
title="Someone else"
|
|
169
181
|
aria-label="Pick someone else to continue"
|
|
170
182
|
>
|
|
171
183
|
<sp-icon name="users" size="14"></sp-icon>
|
|
172
|
-
<span data-widget-part="messages.turn-line-pick-label messages.next-up-pick-label">Someone else</span>
|
|
184
|
+
<span data-widget-part="messages.turn-line-pick-label turn-line.pick-label messages.next-up-pick-label turn-line.next-up-pick-label">Someone else</span>
|
|
173
185
|
</button>
|
|
174
186
|
{/if}
|
|
175
187
|
{#if !headIsPerson}
|
|
176
188
|
<button
|
|
177
189
|
type="button"
|
|
178
|
-
data-widget-part="messages.turn-line-continue messages.next-up-continue"
|
|
190
|
+
data-widget-part="messages.turn-line-continue turn-line.continue messages.next-up-continue turn-line.next-up-continue"
|
|
179
191
|
onclick={() => onContinue(channel)}
|
|
180
192
|
title="Continue"
|
|
181
193
|
aria-label="Continue with {headName}"
|
|
@@ -187,7 +199,7 @@
|
|
|
187
199
|
<!-- 🚧 D5: the owner's Continue moves past the waiting player. -->
|
|
188
200
|
<button
|
|
189
201
|
type="button"
|
|
190
|
-
data-widget-part="messages.turn-line-continue messages.next-up-continue"
|
|
202
|
+
data-widget-part="messages.turn-line-continue turn-line.continue messages.next-up-continue turn-line.next-up-continue"
|
|
191
203
|
data-skips=""
|
|
192
204
|
onclick={() => onContinue(channel)}
|
|
193
205
|
title="Move past {headName}: the next turn goes ahead without them"
|
|
@@ -200,12 +212,15 @@
|
|
|
200
212
|
</div>
|
|
201
213
|
</div>
|
|
202
214
|
{#if ownerSkips}
|
|
203
|
-
<p data-widget-part="messages.turn-line-skip">
|
|
215
|
+
<p data-widget-part="messages.turn-line-skip turn-line.skip">
|
|
204
216
|
Continue moves past {headName}: their turn is skipped this round.
|
|
205
217
|
</p>
|
|
206
218
|
{/if}
|
|
219
|
+
{#if standstill === "no-auto-advance" || standstill === "no-extent"}
|
|
220
|
+
<p data-widget-part="messages.turn-line-standstill turn-line.standstill">{STANDSTILL_WORDS[standstill]}</p>
|
|
221
|
+
{/if}
|
|
207
222
|
{#if after.length}
|
|
208
|
-
<p data-widget-part="messages.turn-line-after messages.next-up-after">
|
|
223
|
+
<p data-widget-part="messages.turn-line-after turn-line.after messages.next-up-after turn-line.next-up-after">
|
|
209
224
|
Then {after.map((e) => nameOf(e.ref)).join(", ")}
|
|
210
225
|
</p>
|
|
211
226
|
{/if}
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
const scene = $derived(divider.scene)
|
|
47
47
|
const name = $derived(scene.name?.trim() ? scene.name : "Scene")
|
|
48
48
|
const canEdit = $derived(conv.scenes.boundaries)
|
|
49
|
+
/** The session's notes are the owner's: a guest's divider names the scene and opens nothing. */
|
|
50
|
+
const isOwner = $derived(!!conv.dossier?.isOwner)
|
|
51
|
+
const startsHere = $derived(startsEntry && isOwner)
|
|
49
52
|
const refusal = $derived(
|
|
50
53
|
conv.scenes.refusal?.at === "scene" && conv.scenes.refusal.id === scene.id
|
|
51
54
|
? conv.scenes.refusal.text
|
|
@@ -101,6 +104,16 @@
|
|
|
101
104
|
return out
|
|
102
105
|
})
|
|
103
106
|
const shownFaces = $derived(faces.slice(0, 4))
|
|
107
|
+
/** 🚧 Why it began by itself, and what keeps its cast up to date (S-4); absent reads as nothing. */
|
|
108
|
+
const openedBecause = $derived((scene as { openedBecause?: string }).openedBecause)
|
|
109
|
+
const castCause = $derived((scene as { castCause?: string }).castCause)
|
|
110
|
+
const factsTitle = $derived.by(() => {
|
|
111
|
+
const who = faces.length ? `${facts} · ${faces.map((f) => f.name).join(", ")}` : null
|
|
112
|
+
return [who, castCause].filter(Boolean).join("\n") || undefined
|
|
113
|
+
})
|
|
114
|
+
const facesTitle = $derived(
|
|
115
|
+
`Who speaks in it: ${faces.map((f) => f.name).join(", ")}${castCause ? `\n${castCause}` : ""}`
|
|
116
|
+
)
|
|
104
117
|
|
|
105
118
|
let menuOpen = $state(false)
|
|
106
119
|
let renaming = $state(false)
|
|
@@ -215,7 +228,7 @@
|
|
|
215
228
|
<sp-icon name="film" size="14"></sp-icon>
|
|
216
229
|
{name}
|
|
217
230
|
</button>
|
|
218
|
-
{:else}
|
|
231
|
+
{:else if isOwner}
|
|
219
232
|
<button
|
|
220
233
|
type="button"
|
|
221
234
|
data-widget-part="messages.scene-title"
|
|
@@ -225,6 +238,11 @@
|
|
|
225
238
|
<sp-icon name="film" size="14"></sp-icon>
|
|
226
239
|
{name}
|
|
227
240
|
</button>
|
|
241
|
+
{:else}
|
|
242
|
+
<span data-widget-part="messages.scene-title">
|
|
243
|
+
<sp-icon name="film" size="14"></sp-icon>
|
|
244
|
+
{name}
|
|
245
|
+
</span>
|
|
228
246
|
{/if}
|
|
229
247
|
{#if divider.open}
|
|
230
248
|
<span data-widget-part="messages.scene-title-state">open</span>
|
|
@@ -233,7 +251,7 @@
|
|
|
233
251
|
keeps the row to swatch · name · count · ⋯ and draws no faces. -->
|
|
234
252
|
<span
|
|
235
253
|
data-widget-part="messages.scene-facts"
|
|
236
|
-
title={
|
|
254
|
+
title={factsTitle}
|
|
237
255
|
>{facts}</span>
|
|
238
256
|
{#if summarizing}
|
|
239
257
|
<span data-widget-part="messages.scene-summary" role="status">Summarizing…</span>
|
|
@@ -269,7 +287,7 @@
|
|
|
269
287
|
</span>
|
|
270
288
|
{/if}
|
|
271
289
|
{#if shownFaces.length}
|
|
272
|
-
<span data-widget-part="messages.scene-faces" title=
|
|
290
|
+
<span data-widget-part="messages.scene-faces" title={facesTitle}>
|
|
273
291
|
{#each shownFaces as f (f.key)}
|
|
274
292
|
{#if f.face}
|
|
275
293
|
<img data-widget-part="messages.scene-face" src={f.face} alt={f.name} />
|
|
@@ -284,7 +302,7 @@
|
|
|
284
302
|
{/if}
|
|
285
303
|
</span>
|
|
286
304
|
{/if}
|
|
287
|
-
{#if canEdit ||
|
|
305
|
+
{#if canEdit || startsHere}
|
|
288
306
|
<!-- `sp-popover` (§3.5): the host's positioned panel; the rows wear
|
|
289
307
|
the message menu's parts beside their own, so they read as one
|
|
290
308
|
family of menus. -->
|
|
@@ -305,7 +323,7 @@
|
|
|
305
323
|
</button>
|
|
306
324
|
<div data-widget-part="messages.scene-menu-panel messages.message-options-panel">
|
|
307
325
|
<article data-widget-part="messages.scene-menu-list messages.message-options-list">
|
|
308
|
-
{#if
|
|
326
|
+
{#if startsHere}
|
|
309
327
|
<button
|
|
310
328
|
type="button"
|
|
311
329
|
data-widget-part="messages.scene-option messages.message-option"
|
|
@@ -348,15 +366,17 @@
|
|
|
348
366
|
<span>{reviewing ? "Review summary" : "Summarize"}</span>
|
|
349
367
|
</button>
|
|
350
368
|
{/if}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
369
|
+
{#if isOwner}
|
|
370
|
+
<button
|
|
371
|
+
type="button"
|
|
372
|
+
data-widget-part="messages.scene-option messages.message-option"
|
|
373
|
+
title="Open this scene in the lorebook"
|
|
374
|
+
onclick={press(openInLore)}
|
|
375
|
+
>
|
|
376
|
+
<sp-icon name="external-link" size="16"></sp-icon>
|
|
377
|
+
<span>Open in lorebook</span>
|
|
378
|
+
</button>
|
|
379
|
+
{/if}
|
|
360
380
|
{#if divider.live}
|
|
361
381
|
{#if divider.startEarlier !== null || divider.startLater !== null || divider.reopens}
|
|
362
382
|
<hr data-widget-part="messages.scene-menu-divider messages.message-options-divider" />
|
|
@@ -418,6 +438,12 @@
|
|
|
418
438
|
</sp-popover>
|
|
419
439
|
</span>
|
|
420
440
|
{/if}
|
|
441
|
+
{#if openedBecause}
|
|
442
|
+
<span
|
|
443
|
+
data-widget-part="messages.scene-cause"
|
|
444
|
+
title="This scene began by itself because {openedBecause}. Set How scenes begin to Suggested or Manual to choose each scene yourself."
|
|
445
|
+
>Began by itself: {openedBecause}</span>
|
|
446
|
+
{/if}
|
|
421
447
|
</div>
|
|
422
448
|
{#if refusal}
|
|
423
449
|
<p data-widget-part="messages.scene-refusal" role="alert">
|