@buffcore/admin-shell 0.8.43 → 0.8.45

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 (157) hide show
  1. package/dist/components/Markdown.d.ts +9 -3
  2. package/dist/components/Markdown.js +84 -34
  3. package/dist/components/Sheet.d.ts +5 -1
  4. package/dist/components/Sheet.js +8 -2
  5. package/dist/components/TextArea.d.ts +3 -1
  6. package/dist/components/TextArea.js +3 -3
  7. package/dist/components/icons.d.ts +1 -0
  8. package/dist/components/icons.js +1 -0
  9. package/dist/workbench/app/ServedPrototype.d.ts +2 -0
  10. package/dist/workbench/app/ServedPrototype.js +11 -1
  11. package/dist/workbench/app/__snapshots__/places-dom.test.tsx.snap +30 -3
  12. package/dist/workbench/app/actions.d.ts +4 -2
  13. package/dist/workbench/app/actions.js +9 -4
  14. package/dist/workbench/app/brief-short.d.ts +14 -0
  15. package/dist/workbench/app/brief-short.js +103 -0
  16. package/dist/workbench/app/chat-session.d.ts +5 -5
  17. package/dist/workbench/app/chat-session.js +8 -3
  18. package/dist/workbench/app/chat.d.ts +17 -4
  19. package/dist/workbench/app/chat.js +9 -4
  20. package/dist/workbench/app/frame.js +5 -1
  21. package/dist/workbench/app/loop.js +2 -18
  22. package/dist/workbench/app/pages.js +10 -2
  23. package/dist/workbench/app/prototype.js +3 -0
  24. package/dist/workbench/app/test/loop-fixture.d.ts +13 -1
  25. package/dist/workbench/app/useStudio.d.ts +2 -1
  26. package/dist/workbench/studio/frame/AgentPanel.js +24 -1
  27. package/dist/workbench/studio/frame/Composer.js +13 -10
  28. package/dist/workbench/studio/frame/PanelList.js +1 -1
  29. package/dist/workbench/studio/frame/Segmented.d.ts +3 -1
  30. package/dist/workbench/studio/frame/Segmented.js +4 -3
  31. package/dist/workbench/studio/frame/SettingsSheet.js +10 -9
  32. package/dist/workbench/studio/frame/StudioFrame.js +7 -6
  33. package/dist/workbench/studio/frame/StudioRegions.js +4 -1
  34. package/dist/workbench/studio/frame/TurnControls.d.ts +2 -1
  35. package/dist/workbench/studio/frame/TurnControls.js +4 -1
  36. package/dist/workbench/studio/frame/layout.d.ts +2 -0
  37. package/dist/workbench/studio/frame/layout.js +2 -0
  38. package/dist/workbench/studio/frame/panelControls.d.ts +21 -1
  39. package/dist/workbench/studio/frame/scrollbars.d.ts +1 -0
  40. package/dist/workbench/studio/frame/scrollbars.js +12 -0
  41. package/dist/workbench/studio/frame/useTurnDraft.d.ts +22 -2
  42. package/dist/workbench/studio/frame/useTurnDraft.js +48 -16
  43. package/dist/workbench/studio/i18n/frame.en.d.ts +3 -0
  44. package/dist/workbench/studio/i18n/frame.en.js +4 -1
  45. package/dist/workbench/studio/i18n/frame.es.json +4 -1
  46. package/dist/workbench/studio/i18n/index.js +6 -0
  47. package/dist/workbench/studio/i18n/loop.en.d.ts +11 -38
  48. package/dist/workbench/studio/i18n/loop.en.js +11 -38
  49. package/dist/workbench/studio/i18n/loop.es.json +11 -38
  50. package/dist/workbench/studio/i18n/marks.en.d.ts +41 -0
  51. package/dist/workbench/studio/i18n/marks.en.js +42 -0
  52. package/dist/workbench/studio/i18n/marks.es.json +40 -0
  53. package/dist/workbench/studio/i18n/start.en.d.ts +5 -0
  54. package/dist/workbench/studio/i18n/start.en.js +7 -2
  55. package/dist/workbench/studio/i18n/start.es.json +7 -2
  56. package/dist/workbench/studio/i18n/workspace.en.d.ts +45 -0
  57. package/dist/workbench/studio/i18n/workspace.en.js +46 -0
  58. package/dist/workbench/studio/i18n/workspace.es.json +44 -0
  59. package/dist/workbench/studio/loop/BriefDocument.d.ts +9 -6
  60. package/dist/workbench/studio/loop/BriefDocument.js +48 -76
  61. package/dist/workbench/studio/loop/BriefLists.d.ts +11 -0
  62. package/dist/workbench/studio/loop/BriefLists.js +42 -0
  63. package/dist/workbench/studio/loop/BriefPage.d.ts +6 -2
  64. package/dist/workbench/studio/loop/BriefPage.js +32 -4
  65. package/dist/workbench/studio/loop/BriefReading.d.ts +19 -0
  66. package/dist/workbench/studio/loop/BriefReading.js +22 -0
  67. package/dist/workbench/studio/loop/BriefSection.d.ts +22 -0
  68. package/dist/workbench/studio/loop/BriefSection.js +47 -0
  69. package/dist/workbench/studio/loop/BriefWho.d.ts +6 -0
  70. package/dist/workbench/studio/loop/BriefWho.js +56 -0
  71. package/dist/workbench/studio/loop/CanvasBar.d.ts +0 -1
  72. package/dist/workbench/studio/loop/CanvasBar.js +2 -3
  73. package/dist/workbench/studio/loop/ConsoleFrame.d.ts +13 -0
  74. package/dist/workbench/studio/loop/ConsoleFrame.js +29 -0
  75. package/dist/workbench/studio/loop/NotThisCard.d.ts +6 -1
  76. package/dist/workbench/studio/loop/NotThisCard.js +28 -20
  77. package/dist/workbench/studio/loop/ProtoJourneys.d.ts +1 -8
  78. package/dist/workbench/studio/loop/ProtoJourneys.js +0 -14
  79. package/dist/workbench/studio/loop/PrototypeApp.d.ts +12 -1
  80. package/dist/workbench/studio/loop/PrototypeApp.js +30 -13
  81. package/dist/workbench/studio/loop/PrototypeAttempt.d.ts +2 -1
  82. package/dist/workbench/studio/loop/PrototypeAttempt.js +94 -29
  83. package/dist/workbench/studio/loop/PrototypePage.d.ts +4 -2
  84. package/dist/workbench/studio/loop/PrototypePage.js +25 -1
  85. package/dist/workbench/studio/loop/PrototypePreview.d.ts +35 -6
  86. package/dist/workbench/studio/loop/PrototypePreview.js +127 -76
  87. package/dist/workbench/studio/loop/PrototypePreviewSlot.d.ts +13 -0
  88. package/dist/workbench/studio/loop/PrototypePreviewSlot.js +23 -0
  89. package/dist/workbench/studio/loop/PrototypeScenes.d.ts +1 -1
  90. package/dist/workbench/studio/loop/ServedPlanning.js +1 -1
  91. package/dist/workbench/studio/loop/StudioLoop.d.ts +7 -2
  92. package/dist/workbench/studio/loop/StudioLoop.js +4 -10
  93. package/dist/workbench/studio/loop/WorkspaceBar.d.ts +15 -0
  94. package/dist/workbench/studio/loop/WorkspaceBar.js +52 -0
  95. package/dist/workbench/studio/loop/WorkspaceJourneys.d.ts +17 -0
  96. package/dist/workbench/studio/loop/WorkspaceJourneys.js +99 -0
  97. package/dist/workbench/studio/loop/WorkspaceLeft.d.ts +14 -0
  98. package/dist/workbench/studio/loop/WorkspaceLeft.js +42 -0
  99. package/dist/workbench/studio/loop/WorkspaceStage.d.ts +24 -0
  100. package/dist/workbench/studio/loop/WorkspaceStage.js +142 -0
  101. package/dist/workbench/studio/loop/WorkspaceSteps.d.ts +20 -0
  102. package/dist/workbench/studio/loop/WorkspaceSteps.js +96 -0
  103. package/dist/workbench/studio/loop/moments.js +0 -3
  104. package/dist/workbench/studio/loop/prototype-bridge.d.ts +8 -0
  105. package/dist/workbench/studio/loop/prototype-bridge.js +16 -0
  106. package/dist/workbench/studio/loop/prototype-document.d.ts +9 -0
  107. package/dist/workbench/studio/loop/prototype-document.js +90 -2
  108. package/dist/workbench/studio/loop/prototype-part.d.ts +43 -0
  109. package/dist/workbench/studio/loop/prototype-part.js +104 -0
  110. package/dist/workbench/studio/loop/types.d.ts +26 -26
  111. package/dist/workbench/studio/loop/types.js +0 -3
  112. package/dist/workbench/studio/loop/usePrototypeFrame.d.ts +6 -1
  113. package/dist/workbench/studio/loop/usePrototypeFrame.js +4 -0
  114. package/dist/workbench/studio/loop/workspace-journeys.d.ts +22 -0
  115. package/dist/workbench/studio/loop/workspace-journeys.js +63 -0
  116. package/dist/workbench/studio/loop/workspace-state.d.ts +94 -0
  117. package/dist/workbench/studio/loop/workspace-state.js +50 -0
  118. package/dist/workbench/studio/marks/ChangeList.d.ts +7 -0
  119. package/dist/workbench/studio/marks/ChangeList.js +70 -0
  120. package/dist/workbench/studio/marks/MarkHint.d.ts +18 -0
  121. package/dist/workbench/studio/marks/MarkHint.js +58 -0
  122. package/dist/workbench/studio/marks/MarkNumber.d.ts +6 -0
  123. package/dist/workbench/studio/marks/MarkNumber.js +24 -0
  124. package/dist/workbench/studio/marks/MarksLayer.d.ts +15 -0
  125. package/dist/workbench/studio/marks/MarksLayer.js +144 -0
  126. package/dist/workbench/studio/marks/PinNote.d.ts +13 -0
  127. package/dist/workbench/studio/marks/PinNote.js +49 -0
  128. package/dist/workbench/studio/marks/QueuedChanges.d.ts +6 -0
  129. package/dist/workbench/studio/marks/QueuedChanges.js +51 -0
  130. package/dist/workbench/studio/marks/WorkspaceMarks.d.ts +15 -0
  131. package/dist/workbench/studio/marks/WorkspaceMarks.js +67 -0
  132. package/dist/workbench/studio/marks/marks-message.d.ts +13 -0
  133. package/dist/workbench/studio/marks/marks-message.js +93 -0
  134. package/dist/workbench/studio/marks/marks.d.ts +105 -0
  135. package/dist/workbench/studio/marks/marks.js +133 -0
  136. package/dist/workbench/studio/marks/useMarking.d.ts +36 -0
  137. package/dist/workbench/studio/marks/useMarking.js +111 -0
  138. package/dist/workbench/studio/marks/useSendMarks.d.ts +18 -0
  139. package/dist/workbench/studio/marks/useSendMarks.js +80 -0
  140. package/dist/workbench/studio/types.d.ts +2 -0
  141. package/dist/workbench/studio/work/StudioLater.js +0 -1
  142. package/dist/workbench/studio/work/work-test-data.d.ts +6 -0
  143. package/package.json +6 -6
  144. package/dist/workbench/studio/loop/FsPlan.d.ts +0 -7
  145. package/dist/workbench/studio/loop/FsPlan.js +0 -64
  146. package/dist/workbench/studio/loop/FsStage.d.ts +0 -6
  147. package/dist/workbench/studio/loop/FsStage.js +0 -74
  148. package/dist/workbench/studio/loop/FsToolbar.d.ts +0 -6
  149. package/dist/workbench/studio/loop/FsToolbar.js +0 -61
  150. package/dist/workbench/studio/loop/FullScreen.d.ts +0 -5
  151. package/dist/workbench/studio/loop/FullScreen.js +0 -89
  152. package/dist/workbench/studio/loop/PrototypePreviewMenus.d.ts +0 -18
  153. package/dist/workbench/studio/loop/PrototypePreviewMenus.js +0 -75
  154. package/dist/workbench/studio/loop/PrototypePreviewToolbar.d.ts +0 -27
  155. package/dist/workbench/studio/loop/PrototypePreviewToolbar.js +0 -52
  156. package/dist/workbench/studio/loop/fsViews.d.ts +0 -12
  157. package/dist/workbench/studio/loop/fsViews.js +0 -6
@@ -205,9 +205,18 @@
205
205
  "studio.loop.brief.earns": "Cómo gana",
206
206
  "studio.loop.brief.must": "Imprescindible",
207
207
  "studio.loop.brief.later": "Ahora no",
208
- "studio.loop.brief.firstMust": "{count, plural, =0 {{first}} one {{first} y 1 más} other {{first} y # más}}",
209
208
  "studio.loop.brief.readAll": "Leer el resumen completo",
210
- "studio.loop.brief.foldAll": "Plegar el resumen",
209
+ "studio.loop.brief.alsoIn": "También en el resumen: {sections}",
210
+ "studio.loop.brief.readMore": "Leer más",
211
+ "studio.loop.brief.readMoreAbout": "Leer más: {section}",
212
+ "studio.loop.brief.who.role": "Rol",
213
+ "studio.loop.brief.who.where": "Dónde",
214
+ "studio.loop.brief.who.know": "Lo que sabemos",
215
+ "studio.loop.brief.more": "{count, number} más",
216
+ "studio.loop.brief.readAllOf": "Leer los {count, number}",
217
+ "studio.loop.brief.read.where": "plan/brief.md › {section}",
218
+ "studio.loop.brief.read.ask": "Pedir un cambio",
219
+ "studio.loop.brief.read.about": "El resumen, {section}",
211
220
  "studio.loop.brief.questions": "Preguntas de {agent}",
212
221
  "studio.loop.brief.onAuto": "En Piloto automático, el agente toma cada decisión y muestra lo que eligió; cambia cualquiera. Las aprobaciones de publicación, dinero, datos y plan siguen esperando a una persona.",
213
222
  "studio.loop.brief.onGuide": "El agente propone cada paso y espera el visto bueno de una persona. Cada decisión tiene Elige por mí por si prefieres que elija él.",
@@ -287,7 +296,6 @@
287
296
  "studio.loop.proto.device.mobile": "Móvil",
288
297
  "studio.loop.proto.device.tablet": "Tableta",
289
298
  "studio.loop.proto.device.desktop": "Escritorio",
290
- "studio.loop.proto.fullScreen": "Pantalla completa",
291
299
  "studio.loop.proto.data": "Datos de muestra",
292
300
  "studio.loop.proto.data.full": "Completos",
293
301
  "studio.loop.proto.data.empty": "Vacíos",
@@ -334,41 +342,6 @@
334
342
  "studio.loop.lane.phase.building": "Construyendo",
335
343
  "studio.loop.lane.phase.checks": "Comprobaciones",
336
344
  "studio.loop.lane.changes": "Cambia: {screens}. Cada otra pantalla es la de Main.",
337
- "studio.loop.fs.label": "Prototipo, pantalla completa",
338
- "studio.loop.fs.exit": "Salir",
339
- "studio.loop.fs.view": "Vista",
340
- "studio.loop.fs.play": "Reproducir",
341
- "studio.loop.fs.overview": "Resumen",
342
- "studio.loop.fs.app": "App",
343
- "studio.loop.fs.tools": "Herramientas",
344
- "studio.loop.fs.tool.interact": "Interactuar",
345
- "studio.loop.fs.tool.select": "Seleccionar",
346
- "studio.loop.fs.tool.comment": "Comentar",
347
- "studio.loop.fs.tool.draw": "Dibujar",
348
- "studio.loop.fs.tool.area": "Área",
349
- "studio.loop.fs.zoom": "Zoom",
350
- "studio.loop.fs.fit": "Ajustar",
351
- "studio.loop.fs.planButton": "Planificar un cambio",
352
- "studio.loop.fs.left": "Recorridos y pantallas",
353
- "studio.loop.fs.screens": "Pantallas",
354
- "studio.loop.fs.sampleData": "Datos de muestra",
355
- "studio.loop.fs.otherScreens": "Otras pantallas",
356
- "studio.loop.fs.plan": "Planificar un cambio",
357
- "studio.loop.fs.base": "{change} v2, aprobada",
358
- "studio.loop.fs.startsFrom": "Parte de {base}. Esa versión se queda como está.",
359
- "studio.loop.fs.removeMark": "Quitar la marca {n}",
360
- "studio.loop.fs.markNote": "Nota de la marca {n}",
361
- "studio.loop.fs.kind": "Tipo de cambio",
362
- "studio.loop.fs.kind.change": "Cambiar",
363
- "studio.loop.fs.kind.add": "Añadir",
364
- "studio.loop.fs.kind.remove": "Quitar",
365
- "studio.loop.fs.words": "Con tus palabras: qué, y por qué",
366
- "studio.loop.fs.planIt": "Planificarlo con el agente",
367
- "studio.loop.fs.draftPlan": "· plan en borrador",
368
- "studio.loop.fs.touches": "Toca",
369
- "studio.loop.fs.sealPrototype": "{level, select, auto {Prototipo: Autopilot puede aprobar esto} unknown {Prototipo: la aprobación se registra aquí} other {Prototipo: tú apruebas}}",
370
- "studio.loop.fs.draftNow": "Hacer el borrador ahora",
371
- "studio.loop.fs.addToPlan": "Añadir al plan",
372
345
  "studio.loop.proto.recordVersion": "Registrar versi\u00f3n",
373
346
  "studio.loop.proto.recordHelp": "Envía este comentario al agente de diseño. Usa Guardar este paso, toma una instantánea y registra una versión.",
374
347
  "studio.loop.proto.sendComment": "Enviar comentario",
@@ -0,0 +1,41 @@
1
+ declare const _default: {
2
+ 'studio.marks.layer': string;
3
+ 'studio.marks.screen.start': string;
4
+ 'studio.marks.changes': string;
5
+ 'studio.marks.changes.label': string;
6
+ 'studio.marks.changes.lead': string;
7
+ 'studio.marks.mark.comment': string;
8
+ 'studio.marks.mark.spot': string;
9
+ 'studio.marks.mark.area': string;
10
+ 'studio.marks.mark.draw': string;
11
+ 'studio.marks.mark.where': string;
12
+ 'studio.marks.mark.show': string;
13
+ 'studio.marks.mark.open': string;
14
+ 'studio.marks.mark.remove': string;
15
+ 'studio.marks.mark.note': string;
16
+ 'studio.marks.more': string;
17
+ 'studio.marks.morePlaceholder': string;
18
+ 'studio.marks.send': string;
19
+ 'studio.marks.sendNote': string;
20
+ 'studio.marks.shooting': string;
21
+ 'studio.marks.clear': string;
22
+ 'studio.marks.shotFailed': string;
23
+ 'studio.marks.withoutPictures': string;
24
+ 'studio.marks.pin.done': string;
25
+ 'studio.marks.full': string;
26
+ 'studio.marks.queued.title': string;
27
+ 'studio.marks.queued.pictures': string;
28
+ 'studio.marks.queued.noPictures': string;
29
+ 'studio.marks.queued.edit': string;
30
+ 'studio.marks.queued.status': string;
31
+ 'studio.marks.message.head': string;
32
+ 'studio.marks.message.pictures': string;
33
+ 'studio.marks.message.mark': string;
34
+ 'studio.marks.message.noNote': string;
35
+ 'studio.marks.message.box': string;
36
+ 'studio.marks.message.point': string;
37
+ 'studio.marks.message.journey': string;
38
+ 'studio.marks.message.data': string;
39
+ 'studio.marks.message.more': string;
40
+ };
41
+ export default _default;
@@ -0,0 +1,42 @@
1
+ // Marking the running prototype and sending every mark as one message (0.8.45, from the drawn
2
+ // workspace's d45.* words).
3
+ export default {
4
+ 'studio.marks.layer': 'Marks on the screen',
5
+ 'studio.marks.screen.start': 'Start',
6
+ 'studio.marks.changes': 'Changes · {count}',
7
+ 'studio.marks.changes.label': 'Changes',
8
+ 'studio.marks.changes.lead': 'Each mark with your note. They go to {agent} together, as one message.',
9
+ 'studio.marks.mark.comment': 'Comment on {part}',
10
+ 'studio.marks.mark.spot': 'this spot',
11
+ 'studio.marks.mark.area': 'Area',
12
+ 'studio.marks.mark.draw': 'Drawing',
13
+ 'studio.marks.mark.where': '{screen} · {device}',
14
+ 'studio.marks.mark.show': 'Show mark {n}',
15
+ 'studio.marks.mark.open': 'Mark {n}: {what}',
16
+ 'studio.marks.mark.remove': 'Remove mark {n}',
17
+ 'studio.marks.mark.note': 'What should change at mark {n}',
18
+ 'studio.marks.more': 'Anything else (optional)',
19
+ 'studio.marks.morePlaceholder': 'Anything else? Say it here (optional)',
20
+ 'studio.marks.send': 'Send {count, plural, one {# change} other {# changes}} to {agent}',
21
+ 'studio.marks.sendNote': 'If {agent} is busy, they wait in the chat and go when it finishes.',
22
+ 'studio.marks.shooting': 'Taking a picture of each marked screen',
23
+ 'studio.marks.clear': 'Clear all',
24
+ 'studio.marks.shotFailed': '{count, plural, one {The picture of a marked screen could not be taken.} other {# pictures of the marked screens could not be taken.}} Your marks are kept: send again, or send them without the pictures.',
25
+ 'studio.marks.withoutPictures': 'Send without the pictures',
26
+ 'studio.marks.pin.done': 'Done',
27
+ 'studio.marks.full': 'That is the most marks one message takes. Send these first.',
28
+ 'studio.marks.queued.title': '{count, plural, one {# change} other {# changes}} on {change} {version}',
29
+ 'studio.marks.queued.pictures': '{count, plural, one {# picture} other {# pictures}} of the marked screens',
30
+ 'studio.marks.queued.noPictures': 'No pictures: the running app could not be shot.',
31
+ 'studio.marks.queued.edit': 'Edit',
32
+ 'studio.marks.queued.status': 'Waiting: sends when {agent} finishes this turn',
33
+ 'studio.marks.message.head': '{count, plural, one {# change} other {# changes}} on {change} {version}, marked on the running prototype. Say in your reply whether they fix this version or need a change in the plan.',
34
+ 'studio.marks.message.pictures': '{count, plural, one {A picture of the marked screen is attached} other {A picture of each of the # marked screens is attached}}, with the marks drawn and numbered.',
35
+ 'studio.marks.message.mark': '{n}. {what}, on {where} ({place}): {note}',
36
+ 'studio.marks.message.noNote': '(no note)',
37
+ 'studio.marks.message.box': 'x {x}, y {y} of the page, {w} × {h} px, on a {width} × {height} px screen',
38
+ 'studio.marks.message.point': 'at x {x}, y {y} of the page, on a {width} × {height} px screen',
39
+ 'studio.marks.message.journey': 'journey {journey}, step {step}',
40
+ 'studio.marks.message.data': 'sample data {data}',
41
+ 'studio.marks.message.more': 'Anything else: {text}',
42
+ };
@@ -0,0 +1,40 @@
1
+ {
2
+ "studio.marks.layer": "Marcas en la pantalla",
3
+ "studio.marks.screen.start": "Inicio",
4
+ "studio.marks.changes": "Cambios · {count}",
5
+ "studio.marks.changes.label": "Cambios",
6
+ "studio.marks.changes.lead": "Cada marca con tu nota. Van juntas a {agent}, en un solo mensaje.",
7
+ "studio.marks.mark.comment": "Comentario sobre {part}",
8
+ "studio.marks.mark.spot": "este punto",
9
+ "studio.marks.mark.area": "Área",
10
+ "studio.marks.mark.draw": "Dibujo",
11
+ "studio.marks.mark.where": "{screen} · {device}",
12
+ "studio.marks.mark.show": "Mostrar la marca {n}",
13
+ "studio.marks.mark.open": "Marca {n}: {what}",
14
+ "studio.marks.mark.remove": "Quitar la marca {n}",
15
+ "studio.marks.mark.note": "Qué debe cambiar en la marca {n}",
16
+ "studio.marks.more": "Algo más (opcional)",
17
+ "studio.marks.morePlaceholder": "¿Algo más? Dilo aquí (opcional)",
18
+ "studio.marks.send": "Enviar {count, plural, one {# cambio} other {# cambios}} a {agent}",
19
+ "studio.marks.sendNote": "Si {agent} está ocupado, esperan en el chat y se envían cuando termine.",
20
+ "studio.marks.shooting": "Tomando una imagen de cada pantalla marcada",
21
+ "studio.marks.clear": "Borrar todo",
22
+ "studio.marks.shotFailed": "{count, plural, one {No se pudo tomar la imagen de una pantalla marcada.} other {No se pudieron tomar # imágenes de las pantallas marcadas.}} Tus marcas se conservan: vuelve a enviar, o envíalas sin las imágenes.",
23
+ "studio.marks.withoutPictures": "Enviar sin las imágenes",
24
+ "studio.marks.pin.done": "Listo",
25
+ "studio.marks.full": "Es el máximo de marcas que lleva un mensaje. Envía estas primero.",
26
+ "studio.marks.queued.title": "{count, plural, one {# cambio} other {# cambios}} en {change} {version}",
27
+ "studio.marks.queued.pictures": "{count, plural, one {# imagen} other {# imágenes}} de las pantallas marcadas",
28
+ "studio.marks.queued.noPictures": "Sin imágenes: no se pudo capturar la app en marcha.",
29
+ "studio.marks.queued.edit": "Editar",
30
+ "studio.marks.queued.status": "En espera: se envía cuando {agent} termine este turno",
31
+ "studio.marks.message.head": "{count, plural, one {# cambio} other {# cambios}} en {change} {version}, marcados sobre el prototipo en marcha. Di en tu respuesta si corrigen esta versión o necesitan un cambio en el plan.",
32
+ "studio.marks.message.pictures": "{count, plural, one {Se adjunta una imagen de la pantalla marcada} other {Se adjunta una imagen de cada una de las # pantallas marcadas}}, con las marcas dibujadas y numeradas.",
33
+ "studio.marks.message.mark": "{n}. {what}, en {where} ({place}): {note}",
34
+ "studio.marks.message.noNote": "(sin nota)",
35
+ "studio.marks.message.box": "x {x}, y {y} de la página, {w} × {h} px, en una pantalla de {width} × {height} px",
36
+ "studio.marks.message.point": "en x {x}, y {y} de la página, en una pantalla de {width} × {height} px",
37
+ "studio.marks.message.journey": "recorrido {journey}, paso {step}",
38
+ "studio.marks.message.data": "datos de ejemplo {data}",
39
+ "studio.marks.message.more": "Algo más: {text}"
40
+ }
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  'studio.start.not.field': string;
57
57
  'studio.start.not.add': string;
58
58
  'studio.start.not.request': string;
59
+ 'studio.start.not.edit': string;
60
+ 'studio.start.not.editAbout': string;
61
+ 'studio.start.not.editField': string;
62
+ 'studio.start.not.editSend': string;
63
+ 'studio.start.not.editRequest': string;
59
64
  'studio.start.not.note': string;
60
65
  };
61
66
  export default _default;
@@ -52,10 +52,15 @@ export default {
52
52
  'studio.start.icon.tooBig': 'The icon must be 1 MB or less; this one is {size, number} MB.',
53
53
  'studio.start.icon.wrongSize': 'The icon must be exactly 1024 by 1024 pixels; this one is {width, number} by {height, number}.',
54
54
  'studio.start.not.title': 'Not this project',
55
- 'studio.start.not.lead': 'What this product will never be or do, in your words.',
55
+ 'studio.start.not.lead': 'What {name} will not do. Your agents quote these lines and ask you when an idea conflicts with one. Only you change them.',
56
56
  'studio.start.not.empty': 'Nothing yet. Add a line for anything you never want.',
57
57
  'studio.start.not.field': 'Add a line',
58
58
  'studio.start.not.add': 'Add',
59
59
  'studio.start.not.request': 'Add this line to plan/not-this.md: {line}',
60
- 'studio.start.not.note': 'Agents read this and quote a line when a request conflicts. Your agent adds it to the file; Save keeps it.',
60
+ 'studio.start.not.edit': 'Edit',
61
+ 'studio.start.not.editAbout': 'Edit: {line}',
62
+ 'studio.start.not.editField': 'The line, as it should read',
63
+ 'studio.start.not.editSend': 'Ask for the change',
64
+ 'studio.start.not.editRequest': 'In plan/not-this.md, change the line “{line}” to: {to}',
65
+ 'studio.start.not.note': 'Your agent changes the file when you ask; Save keeps it.',
61
66
  };
@@ -54,10 +54,15 @@
54
54
  "studio.start.icon.wrongSize": "El icono debe medir exactamente 1024 por 1024 píxeles; este mide {width, number} por {height, number}.",
55
55
 
56
56
  "studio.start.not.title": "Este proyecto no",
57
- "studio.start.not.lead": "Lo que este producto nunca será ni hará, con tus palabras.",
57
+ "studio.start.not.lead": "Lo que {name} no hará. Tus agentes citan estas líneas y te preguntan cuando una idea choca con una. Solo tú las cambias.",
58
58
  "studio.start.not.empty": "Todavía nada. Añade una línea para lo que nunca quieras.",
59
59
  "studio.start.not.field": "Añadir una línea",
60
60
  "studio.start.not.add": "Añadir",
61
61
  "studio.start.not.request": "Añade esta línea a plan/not-this.md: {line}",
62
- "studio.start.not.note": "Los agentes leen esto y citan una línea cuando una petición choca. Tu agente la añade al archivo; Guardar la conserva."
62
+ "studio.start.not.edit": "Editar",
63
+ "studio.start.not.editAbout": "Editar: {line}",
64
+ "studio.start.not.editField": "La línea, como debe quedar",
65
+ "studio.start.not.editSend": "Pedir el cambio",
66
+ "studio.start.not.editRequest": "En plan/not-this.md, cambia la línea «{line}» por: {to}",
67
+ "studio.start.not.note": "Tu agente cambia el archivo cuando se lo pides; Guardar lo conserva."
63
68
  }
@@ -0,0 +1,45 @@
1
+ declare const _default: {
2
+ 'studio.workspace.where': string;
3
+ 'studio.workspace.app': string;
4
+ 'studio.workspace.console': string;
5
+ 'studio.workspace.device': string;
6
+ 'studio.workspace.device.mobile': string;
7
+ 'studio.workspace.device.tablet': string;
8
+ 'studio.workspace.device.desktop': string;
9
+ 'studio.workspace.rotate': string;
10
+ 'studio.workspace.tools': string;
11
+ 'studio.workspace.tool.select': string;
12
+ 'studio.workspace.tool.comment': string;
13
+ 'studio.workspace.tool.draw': string;
14
+ 'studio.workspace.tool.area': string;
15
+ 'studio.workspace.hint.select': string;
16
+ 'studio.workspace.hint.comment': string;
17
+ 'studio.workspace.hint.tap': string;
18
+ 'studio.workspace.hint.draw': string;
19
+ 'studio.workspace.hint.area': string;
20
+ 'studio.workspace.hint.console': string;
21
+ 'studio.workspace.screen': string;
22
+ 'studio.workspace.stepOf': string;
23
+ 'studio.workspace.stepName': string;
24
+ 'studio.workspace.play': string;
25
+ 'studio.workspace.pause': string;
26
+ 'studio.workspace.left': string;
27
+ 'studio.workspace.journeys': string;
28
+ 'studio.workspace.screens': string;
29
+ 'studio.workspace.group': string;
30
+ 'studio.workspace.other': string;
31
+ 'studio.workspace.steps': string;
32
+ 'studio.workspace.stepGo': string;
33
+ 'studio.workspace.none': string;
34
+ 'studio.workspace.notPlayable': string;
35
+ 'studio.workspace.byHand': string;
36
+ 'studio.workspace.screens.none': string;
37
+ 'studio.workspace.screens.open': string;
38
+ 'studio.workspace.data': string;
39
+ 'studio.workspace.changes': string;
40
+ 'studio.workspace.changes.count': string;
41
+ 'studio.workspace.console.stopped': string;
42
+ 'studio.workspace.console.blocked': string;
43
+ 'studio.workspace.console.frame': string;
44
+ };
45
+ export default _default;
@@ -0,0 +1,46 @@
1
+ // The prototype workspace's words (0.8.45): the bar along the top, the journeys and screens on the
2
+ // left, the device with its line and step bar, and the foot bar on a phone-wide studio.
3
+ export default {
4
+ 'studio.workspace.where': 'What you are looking at',
5
+ 'studio.workspace.app': 'Customer app',
6
+ 'studio.workspace.console': 'Console',
7
+ 'studio.workspace.device': 'Device',
8
+ 'studio.workspace.device.mobile': 'Mobile',
9
+ 'studio.workspace.device.tablet': 'Tablet',
10
+ 'studio.workspace.device.desktop': 'Desktop',
11
+ 'studio.workspace.rotate': 'Turn the tablet',
12
+ 'studio.workspace.tools': 'Tools',
13
+ 'studio.workspace.tool.select': 'Select: use the app (V)',
14
+ 'studio.workspace.tool.comment': 'Comment: pin a note on a part (C)',
15
+ 'studio.workspace.tool.draw': 'Draw: mark it freehand (P)',
16
+ 'studio.workspace.tool.area': 'Area: drag a box round it (R)',
17
+ 'studio.workspace.hint.select': 'Using the app',
18
+ 'studio.workspace.hint.comment': 'Click a part to pin a comment',
19
+ 'studio.workspace.hint.tap': 'Tap a part to pin a comment',
20
+ 'studio.workspace.hint.draw': 'Draw on the screen',
21
+ 'studio.workspace.hint.area': 'Drag to mark an area',
22
+ 'studio.workspace.hint.console': 'Marks go on the customer app: the console is not pictured yet',
23
+ 'studio.workspace.screen': '{app} · {screen} · {device}',
24
+ 'studio.workspace.stepOf': '{journey} · Step {n} of {total}',
25
+ 'studio.workspace.stepName': 'Step {n}',
26
+ 'studio.workspace.play': 'Play the steps',
27
+ 'studio.workspace.pause': 'Pause',
28
+ 'studio.workspace.left': 'Journeys and screens',
29
+ 'studio.workspace.journeys': 'Journeys',
30
+ 'studio.workspace.screens': 'Screens',
31
+ 'studio.workspace.group': '{role} · {app}',
32
+ 'studio.workspace.other': 'Other journeys · {app}',
33
+ 'studio.workspace.steps': 'Steps of {journey}',
34
+ 'studio.workspace.stepGo': 'Step {n}: {name}',
35
+ 'studio.workspace.none': 'No journeys yet. The plan’s journeys show here.',
36
+ 'studio.workspace.notPlayable': 'The running app does not play this journey yet.',
37
+ 'studio.workspace.byHand': 'Follow these steps in the console.',
38
+ 'studio.workspace.screens.none': 'No screens listed yet.',
39
+ 'studio.workspace.screens.open': '{screen} (opens in a new tab)',
40
+ 'studio.workspace.data': 'Sample data',
41
+ 'studio.workspace.changes': 'Changes',
42
+ 'studio.workspace.changes.count': 'Changes: {count, plural, one {# mark} other {# marks}}',
43
+ 'studio.workspace.console.stopped': 'The console is not running. Start it on the Dev server page.',
44
+ 'studio.workspace.console.blocked': 'The console cannot be shown here.',
45
+ 'studio.workspace.console.frame': 'The console, as the team will see it',
46
+ };
@@ -0,0 +1,44 @@
1
+ {
2
+ "studio.workspace.where": "Qué estás viendo",
3
+ "studio.workspace.app": "App de clientes",
4
+ "studio.workspace.console": "Consola",
5
+ "studio.workspace.device": "Dispositivo",
6
+ "studio.workspace.device.mobile": "Móvil",
7
+ "studio.workspace.device.tablet": "Tableta",
8
+ "studio.workspace.device.desktop": "Escritorio",
9
+ "studio.workspace.rotate": "Girar la tableta",
10
+ "studio.workspace.tools": "Herramientas",
11
+ "studio.workspace.tool.select": "Seleccionar: usar la app (V)",
12
+ "studio.workspace.tool.comment": "Comentar: fijar una nota en una parte (C)",
13
+ "studio.workspace.tool.draw": "Dibujar: marcar a mano alzada (P)",
14
+ "studio.workspace.tool.area": "Área: arrastrar un recuadro alrededor (R)",
15
+ "studio.workspace.hint.select": "Usando la app",
16
+ "studio.workspace.hint.comment": "Haz clic en una parte para fijar un comentario",
17
+ "studio.workspace.hint.tap": "Toca una parte para fijar un comentario",
18
+ "studio.workspace.hint.draw": "Dibuja sobre la pantalla",
19
+ "studio.workspace.hint.area": "Arrastra para marcar un área",
20
+ "studio.workspace.hint.console": "Las marcas van en la app del cliente: la consola aún no se captura",
21
+ "studio.workspace.screen": "{app} · {screen} · {device}",
22
+ "studio.workspace.stepOf": "{journey} · Paso {n} de {total}",
23
+ "studio.workspace.stepName": "Paso {n}",
24
+ "studio.workspace.play": "Reproducir los pasos",
25
+ "studio.workspace.pause": "Pausar",
26
+ "studio.workspace.left": "Recorridos y pantallas",
27
+ "studio.workspace.journeys": "Recorridos",
28
+ "studio.workspace.screens": "Pantallas",
29
+ "studio.workspace.group": "{role} · {app}",
30
+ "studio.workspace.other": "Otros recorridos · {app}",
31
+ "studio.workspace.steps": "Pasos de {journey}",
32
+ "studio.workspace.stepGo": "Paso {n}: {name}",
33
+ "studio.workspace.none": "Aún no hay recorridos. Los del plan aparecen aquí.",
34
+ "studio.workspace.notPlayable": "La app en marcha aún no reproduce este recorrido.",
35
+ "studio.workspace.byHand": "Sigue estos pasos en la consola.",
36
+ "studio.workspace.screens.none": "Aún no hay pantallas.",
37
+ "studio.workspace.screens.open": "{screen} (se abre en otra pestaña)",
38
+ "studio.workspace.data": "Datos de ejemplo",
39
+ "studio.workspace.changes": "Cambios",
40
+ "studio.workspace.changes.count": "Cambios: {count, plural, one {# marca} other {# marcas}}",
41
+ "studio.workspace.console.stopped": "La consola no está en marcha. Iníciala en la página Servidor de desarrollo.",
42
+ "studio.workspace.console.blocked": "La consola no se puede mostrar aquí.",
43
+ "studio.workspace.console.frame": "La consola, como la verá el equipo"
44
+ }
@@ -1,8 +1,11 @@
1
+ import type { BriefRead } from './BriefReading.tsx';
2
+ import { type NotThisCardProps } from './NotThisCard.tsx';
1
3
  import type { BriefDoc } from './types.ts';
2
- /**
3
- * The brief, short first: what it is, who uses it, the kind and the first must-have, then each
4
- * section folded under its heading with a one-line preview. The product's words stay as written.
5
- */
6
- export declare function BriefDocument({ brief }: {
4
+ export declare function BriefDocument({ brief, title, onRead, notThis, }: {
7
5
  brief: BriefDoc;
8
- }): import("react").JSX.Element;
6
+ /** The whole brief's title in the reading sheet. */
7
+ title: string;
8
+ onRead?: (read: BriefRead) => void;
9
+ /** "Not this project"; unset draws none. */
10
+ notThis?: Omit<NotThisCardProps, 'first'>;
11
+ }): import("react").JSX.Element | null;
@@ -1,86 +1,58 @@
1
- import { createElement as _createElement } from "react";
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // The brief, short first: What it is, Who uses it, Kind, How it earns, Must have and Not now, each
3
+ // a sentence or a few items with Read more; the rest of the brief one Read the whole brief away.
4
+ // A section the brief does not have is left out, never a placeholder.
3
5
  import { useLocale, useT } from '@buffcore/i18n/react';
4
- import { useState } from 'react';
5
6
  import { Button } from '../../../components/Button.js';
6
7
  import { Chip } from '../../../components/Chip.js';
7
- import { Icon } from '../../../components/Icon.js';
8
- import { KV } from '../../../components/KV.js';
9
8
  import { Panel } from '../../../components/Panel.js';
10
- import { bodyText, captionText } from '../../../components/styles.js';
9
+ import { captionText } from '../../../components/styles.js';
10
+ import { BriefLists } from './BriefLists.js';
11
+ import { BriefSection, briefMuted, briefText, hairline } from './BriefSection.js';
12
+ import { BriefWho } from './BriefWho.js';
13
+ import { NotThisCard } from './NotThisCard.js';
11
14
  import { Seal } from './parts.js';
12
- const h = {
13
- margin: 0,
14
- fontSize: 'var(--font-size-body)',
15
- fontWeight: 'var(--weight-heading)',
16
- color: 'var(--text-strong)',
17
- display: 'flex',
18
- alignItems: 'center',
19
- gap: 'var(--space-2)',
20
- };
21
- const list = {
22
- margin: 0,
23
- padding: 0,
24
- listStyle: 'none',
25
- display: 'grid',
26
- gap: 'var(--space-2)',
27
- };
28
- /**
29
- * The brief, short first: what it is, who uses it, the kind and the first must-have, then each
30
- * section folded under its heading with a one-line preview. The product's words stay as written.
31
- */
32
- export function BriefDocument({ brief }) {
33
- const [all, setAll] = useState(false);
34
- return (_jsxs(_Fragment, { children: [_jsx(Summary, { brief: brief, all: all, onAll: () => setAll((open) => !open) }), _jsx(Panel, { children: _jsx(Sections, { brief: brief, all: all }) })] }));
35
- }
36
- /** What it is, who uses it, the kind and the first must-have; the whole brief a click away. */
37
- function Summary({ brief, all, onAll }) {
15
+ /** The rest of the brief: the sections the page does not show, named, and the button to read all. */
16
+ function WholeBrief({ brief, onRead }) {
38
17
  const t = useT();
39
18
  const { locale } = useLocale();
40
- const who = new Intl.ListFormat(locale, { type: 'conjunction' }).format(brief.who.map((w) => w.role));
41
- const [first, ...rest] = brief.must ?? [];
42
- return (_jsxs(Panel, { children: [_jsxs("section", { style: { display: 'grid', gap: 'var(--space-2)' }, children: [_jsx("h2", { style: h, children: t('studio.loop.brief.what') }), _jsx("p", { style: { ...bodyText, margin: 0 }, children: brief.what })] }), _jsx(KV, { cols: 1, items: [
43
- [t('studio.loop.brief.who'), who],
44
- [
45
- t('studio.loop.brief.kind'),
46
- brief.kind ? (_jsx(Chip, { size: "sm", children: brief.kind }, "kind")) : (''),
47
- ],
48
- [
49
- t('studio.loop.brief.must'),
50
- first ? t('studio.loop.brief.firstMust', { first, count: rest.length }) : '',
51
- ],
52
- ] }), _jsx("div", { children: _jsx(Button, { size: "sm", variant: "ghost", "aria-expanded": all, onClick: onAll, children: t(all ? 'studio.loop.brief.foldAll' : 'studio.loop.brief.readAll') }) })] }));
53
- }
54
- /** One section of the brief, folded: its heading and a line of what it says. */
55
- function Fold({ title, preview, open, children, }) {
56
- return (_jsxs("details", { open: open, children: [_jsxs("summary", { style: {
57
- display: 'flex',
58
- alignItems: 'center',
59
- gap: 'var(--space-3)',
60
- minBlockSize: 'var(--control-sm)',
61
- cursor: 'pointer',
62
- }, children: [_jsx("h2", { style: { ...h, flexShrink: 0 }, children: title }), _jsx("span", { style: {
63
- ...captionText,
64
- flex: 1,
65
- minWidth: 0,
66
- overflow: 'hidden',
67
- textOverflow: 'ellipsis',
68
- whiteSpace: 'nowrap',
69
- fontWeight: 'var(--weight-regular)',
70
- }, children: preview }), _jsx(Icon, { name: "chevron-down", size: "var(--icon-sm)" })] }), _jsx("div", { style: { display: 'grid', gap: 'var(--space-2)', paddingBlock: 'var(--space-2)' }, children: children })] }));
19
+ const shown = new Set(Object.values(brief.read ?? {}).map((part) => part.heading));
20
+ const others = (brief.whole ?? []).filter((part) => !shown.has(part.heading));
21
+ return (_jsxs("section", { style: {
22
+ display: 'flex',
23
+ flexWrap: 'wrap',
24
+ alignItems: 'center',
25
+ gap: 'var(--space-3)',
26
+ paddingBlock: 'var(--space-5)',
27
+ borderBlockStart: hairline,
28
+ }, children: [others.length > 0 && (_jsx("span", { style: { ...captionText, flex: '1 1 16rem', minWidth: 0 }, children: t('studio.loop.brief.alsoIn', {
29
+ sections: new Intl.ListFormat(locale, { type: 'conjunction' }).format(others.map((part) => part.heading)),
30
+ }) })), _jsx(Button, { variant: "secondary", icon: "book-open", onClick: onRead, children: t('studio.loop.brief.readAll') })] }));
71
31
  }
72
- function Sections({ brief, all }) {
32
+ export function BriefDocument({ brief, title, onRead, notThis, }) {
73
33
  const t = useT();
74
- const kind = brief.kind ? t(`studio.loop.brief.kind.${brief.kind}`) : '';
75
- // Each key carries `all`: the button opens or folds every section at once; each still opens alone.
76
- const fold = { open: all };
77
- return (_jsxs(_Fragment, { children: [_createElement(Fold, { ...fold, key: `who:${all}`, title: t('studio.loop.brief.who'), preview: brief.who.map((w) => w.role).join(' · ') },
78
- _jsx(KV, { cols: 1, items: brief.who.map((w) => [
79
- w.role,
80
- `${w.where ? `${t(`studio.loop.where.${w.where}`)}. ` : ''}${w.note ?? ''}`,
81
- ]) })), _createElement(Fold, { ...fold, key: `kind:${all}`, title: _jsxs(_Fragment, { children: [t('studio.loop.brief.kind'), " ", brief.kind && _jsx(Chip, { size: "sm", children: brief.kind })] }), preview: kind },
82
- _jsx("p", { style: { ...bodyText, margin: 0, color: 'var(--text-muted)' }, children: kind })), _createElement(Fold, { ...fold, key: `earns:${all}`, title: _jsxs(_Fragment, { children: [t('studio.loop.brief.earns'), " ", _jsx(Seal, { children: t('studio.loop.money') })] }), preview: brief.earns ?? '' },
83
- _jsx("p", { style: { ...bodyText, margin: 0 }, children: brief.earns })), _createElement(Fold, { ...fold, key: `must:${all}`, title: t('studio.loop.brief.must'), preview: brief.must?.join(' · ') ?? '' },
84
- _jsx("ul", { style: list, children: brief.must?.map((m) => (_jsxs("li", { style: { ...bodyText, display: 'flex', gap: 'var(--space-2)' }, children: [_jsx(Icon, { name: "check", size: "var(--icon-md)" }), m] }, m))) })), _createElement(Fold, { ...fold, key: `later:${all}`, title: t('studio.loop.brief.later'), preview: brief.later?.join(' · ') ?? '' },
85
- _jsx("ul", { style: list, children: brief.later?.map((m) => (_jsx("li", { style: { ...bodyText, color: 'var(--text-muted)' }, children: m }, m))) }))] }));
34
+ const kindLine = brief.kindLine ?? (brief.kind ? t(`studio.loop.brief.kind.${brief.kind}`) : undefined);
35
+ const has = {
36
+ what: Boolean(brief.what),
37
+ who: brief.who.length > 0,
38
+ kind: Boolean(brief.kind || kindLine),
39
+ earns: Boolean(brief.earns),
40
+ must: Boolean(brief.must?.length),
41
+ later: Boolean(brief.later?.length),
42
+ };
43
+ const first = ['what', 'who', 'kind', 'earns'].find((key) => has[key]);
44
+ const listsFirst = !first && (has.must || has.later);
45
+ const whole = Boolean(onRead && brief.whole?.length);
46
+ const open = (key, name) => {
47
+ const part = brief.read?.[key];
48
+ return onRead && part ? () => onRead({ title: name, part }) : undefined;
49
+ };
50
+ const section = (key, name) => ({
51
+ first: first === key,
52
+ title: name,
53
+ onMore: open(key, name),
54
+ });
55
+ if (!first && !listsFirst && !whole && !notThis)
56
+ return null;
57
+ return (_jsx(Panel, { children: _jsxs("div", { style: { display: 'grid', minWidth: 0 }, children: [has.what && (_jsx(BriefSection, { ...section('what', t('studio.loop.brief.what')), children: _jsx("p", { style: briefText, children: brief.what }) })), has.who && (_jsx(BriefSection, { ...section('who', t('studio.loop.brief.who')), children: _jsx(BriefWho, { who: brief.who }) })), has.kind && (_jsx(BriefSection, { ...section('kind', t('studio.loop.brief.kind')), badge: brief.kind && _jsx(Chip, { size: "sm", children: brief.kind }), children: kindLine && _jsx("p", { style: briefMuted, children: kindLine }) })), has.earns && (_jsx(BriefSection, { ...section('earns', t('studio.loop.brief.earns')), badge: _jsx(Seal, { children: t('studio.loop.money') }), children: _jsx("p", { style: briefText, children: brief.earns }) })), _jsx(BriefLists, { brief: brief, first: listsFirst, onRead: onRead && ((key, name) => open(key, name)?.()) }), whole && onRead && (_jsx(WholeBrief, { brief: brief, onRead: () => onRead({ title, whole: true }) })), notThis && _jsx(NotThisCard, { ...notThis, first: !first && !listsFirst && !whole })] }) }));
86
58
  }
@@ -0,0 +1,11 @@
1
+ import type { BriefDoc, BriefShort } from './types.ts';
2
+ /** How many of each list the page shows before "N more". */
3
+ export declare const SHOWN: {
4
+ readonly must: 4;
5
+ readonly later: 3;
6
+ };
7
+ export declare function BriefLists({ brief, first, onRead, }: {
8
+ brief: BriefDoc;
9
+ first?: boolean;
10
+ onRead?: (key: BriefShort, title: string) => void;
11
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // Must have and Not now, side by side: the first few of each, then how many more the brief holds
3
+ // and the button that opens the section whole. A list the brief does not have is left out.
4
+ import { useT } from '@buffcore/i18n/react';
5
+ import { Icon } from '../../../components/Icon.js';
6
+ import { briefHeading, briefMuted, briefText, hairline, plainList, RestLine, } from './BriefSection.js';
7
+ /** How many of each list the page shows before "N more". */
8
+ export const SHOWN = { must: 4, later: 3 };
9
+ function Column({ title, items, total, mark, muted, onRead, }) {
10
+ const t = useT();
11
+ const shown = items.slice(0, SHOWN[muted ? 'later' : 'must']);
12
+ const rest = total - shown.length;
13
+ return (_jsxs("div", { style: { display: 'grid', gap: 'var(--space-3)', alignContent: 'start', minWidth: 0 }, children: [_jsx("h2", { style: briefHeading, children: title }), _jsx("ul", { style: plainList, children: shown.map((item, i) => (_jsxs("li", { style: { ...(muted ? briefMuted : briefText), display: 'flex', gap: 'var(--space-2)' }, children: [mark, _jsx("span", { style: { minWidth: 0 }, children: item })] }, i))) }), _jsx(RestLine, { rest: rest > 0 ? t('studio.loop.brief.more', { count: rest }) : undefined, action: rest > 0 && !muted
14
+ ? t('studio.loop.brief.readAllOf', { count: total })
15
+ : t('studio.loop.brief.readMore'), label: t('studio.loop.brief.readMoreAbout', { section: title }), onClick: onRead })] }));
16
+ }
17
+ export function BriefLists({ brief, first, onRead, }) {
18
+ const t = useT();
19
+ const must = brief.must ?? [];
20
+ const later = brief.later ?? [];
21
+ if (!must.length && !later.length)
22
+ return null;
23
+ const opener = (key, title) => onRead && brief.read?.[key] ? () => onRead(key, title) : undefined;
24
+ return (_jsxs("section", { style: {
25
+ display: 'grid',
26
+ gridTemplateColumns: 'repeat(auto-fit, minmax(min(100%, 16rem), 1fr))',
27
+ gap: 'var(--space-5)',
28
+ paddingBlock: 'var(--space-5)',
29
+ ...(first ? { paddingBlockStart: 0 } : { borderBlockStart: hairline }),
30
+ }, children: [must.length > 0 && (_jsx(Column, { title: t('studio.loop.brief.must'), items: must, total: Math.max(brief.mustCount ?? 0, must.length), mark: _jsx("span", { style: {
31
+ color: 'var(--success-ink)',
32
+ display: 'flex',
33
+ paddingBlockStart: 'var(--space-1)',
34
+ }, children: _jsx(Icon, { name: "check", size: "var(--icon-sm)" }) }), onRead: opener('must', t('studio.loop.brief.must')) })), later.length > 0 && (_jsx(Column, { title: t('studio.loop.brief.later'), items: later, total: Math.max(brief.laterCount ?? 0, later.length), mark: _jsx("span", { "aria-hidden": true, style: {
35
+ flexShrink: 0,
36
+ inlineSize: 'var(--space-2)',
37
+ blockSize: 'var(--border-width-hairline)',
38
+ marginBlockStart: 'calc(var(--line-height-body) / 2)',
39
+ marginInline: 'var(--space-1)',
40
+ background: 'var(--text-subtle)',
41
+ } }), muted: true, onRead: opener('later', t('studio.loop.brief.later')) }))] }));
42
+ }