@niracler/encore 0.2.0 → 0.3.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.
@@ -30,6 +30,29 @@
30
30
  -webkit-font-smoothing: antialiased;
31
31
  }
32
32
 
33
+ .encore-loading {
34
+ display: flex;
35
+ min-height: 100dvh;
36
+ align-items: center;
37
+ justify-content: center;
38
+ gap: .75rem;
39
+ color: var(--site-muted);
40
+ }
41
+ .encore-loading::before {
42
+ content: "";
43
+ width: 1rem;
44
+ height: 1rem;
45
+ border: 2px solid currentColor;
46
+ border-right-color: transparent;
47
+ border-radius: 50%;
48
+ }
49
+ @media (prefers-reduced-motion: no-preference) {
50
+ .encore-loading::before { animation: encore-loading-spin .8s linear infinite; }
51
+ }
52
+ @keyframes encore-loading-spin {
53
+ to { transform: rotate(1turn); }
54
+ }
55
+
33
56
  :where(.session-bubble, .session-detail) a {
34
57
  display: inline;
35
58
  color: #2563eb;
@@ -635,13 +658,72 @@ html.js-session .session-log:not(.is-staged) > * {
635
658
  .session-steps .session-thumbs { margin-left: 80px; }
636
659
  .session-thumbs img { display: block; width: 96px; height: auto; border: 1px solid var(--site-line); background: var(--site-surface); }
637
660
  .session-files .session-bubble { display: grid; gap: 6px; }
661
+ .session-file-missing { display: grid; gap: 3px; padding: 10px 14px; border: 1px dashed #c7cdd3; border-radius: 8px; overflow-wrap: anywhere; }
662
+ .session-file-copy > small, .session-file-missing small { display: block; margin: 3px 0; color: #5b626b; font-size: 12px; }
663
+ .session-file-download { display: inline-block; overflow-wrap: anywhere; }
664
+ .session-attachment { position: relative; min-width: 0; padding: 14px 16px; border: 1px solid #dce2e8; border-radius: 12px; background: #fff; color: #172029; }
665
+ .session-files .session-bubble:has(.session-attachment) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
666
+ .session-attachment-head, .session-attachment-actions, .session-attachment-dialog header, .session-attachment-toolbar { display: flex; align-items: center; gap: 12px; }
667
+ .session-attachment-head strong { display: block; font-size: 15px; line-height: 1.45; }
668
+ .session-attachment-head small { color: #596573; font-size: 12px; }
669
+ .session-pdf-cover { width: 56px; height: 78px; object-fit: contain; border: 1px solid #dce2e8; }
670
+ .session-attachment-actions { justify-content: space-between; margin-top: 10px; }
671
+ .session-attachment button, .session-attachment-toolbar select, .session-attachment-toolbar input { font: inherit; }
672
+ .session-attachment-actions button { padding: 4px 12px; border: 1px solid #cbd5df; border-radius: 6px; background: #f8fafb; color: #152c43; font-size: 13px; font-weight: 600; cursor: pointer; }
673
+ .session-attachment-actions button::after { position: absolute; inset: 0; content: ''; border-radius: 12px; }
674
+ .session-attachment a[download] { position: relative; color: #315b80; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
675
+ .session-revision { position: relative; margin-top: 12px; padding-top: 8px; border-top: 1px solid #dce2e8; }
676
+ .session-revision summary { width: fit-content; cursor: pointer; font-weight: 600; color: #234562; }
677
+ .session-revision-context { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin: 10px 0 6px; }
678
+ .session-revision-context span { font-size: 12px; color: #53616e; }
679
+ .session-revision-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 8px; }
680
+ .session-revision-pair section { min-width: 0; padding: 10px 12px; border: 1px solid #dae0e6; border-radius: 6px; }
681
+ .session-revision-pair strong, .session-revision-pair a { font-size: 12px; }
682
+ .session-revision-pair p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
683
+ .session-revision-pair del { color: #742e34; background: #ffdee0; }
684
+ .session-revision-pair ins { color: #174b32; background: #d6f2e2; }
685
+ .session-sheet-sample { margin-top: 10px; overflow: hidden; border: 1px solid #dee6e5; border-radius: 6px; }
686
+ .session-attachment .session-sheet-sample table { display: table; width: 100%; table-layout: fixed; margin: 0; border-collapse: collapse; font-size: 12px; }
687
+ .session-sheet-sample :is(th, td) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
688
+ .session-sheet-sample :is(th, td):first-child { width: 52%; }
689
+ .session-attachment .session-sheet-sample :is(td, th), .session-attachment-dialog :is(td, th) { padding: 5px 9px; text-align: start; border-bottom: 1px solid #e1e8e5; }
690
+ .session-sheet-sample th, .session-attachment-dialog th { background: #edf4f0; color: #2f5141; font-weight: 600; }
691
+ .session-attachment-dialog { width: min(1040px, 94vw); height: min(860px, 88dvh); max-width: 100%; max-height: 100dvh; box-sizing: border-box; margin: auto; padding: 0; border: 1px solid #cbd3d8; border-radius: 12px; color: #172029; background: white; font: 14px/1.5 system-ui, sans-serif; }
692
+ .session-attachment-dialog[open] { display: flex; flex-direction: column; }
693
+ .session-attachment-dialog::backdrop { background: rgb(16 24 32 / 52%); }
694
+ .session-attachment-dialog header, .session-attachment-toolbar { flex: none; padding: 9px 16px; border-bottom: 1px solid #dce2e8; }
695
+ .session-attachment-dialog header strong { margin-inline-end: auto; min-width: 0; }
696
+ .session-attachment-dialog header a { flex: none; }
697
+ .session-attachment-dialog button, .session-attachment-toolbar select, .session-attachment-toolbar input { border: 1px solid #cbd3d8; border-radius: 5px; background: white; padding: 3px 7px; color: inherit; min-height: 30px; }
698
+ .session-attachment-dialog button { cursor: pointer; min-width: 32px; }
699
+ .session-attachment-dialog button:disabled { opacity: .45; }
700
+ .session-attachment-toolbar { flex-wrap: wrap; gap: 6px; font-size: 13px; }
701
+ .session-attachment-toolbar select { max-width: 100%; }
702
+ .session-attachment-toolbar input { width: 4.4em; }
703
+ .session-attachment-viewport { min-height: 0; overflow: auto; overscroll-behavior: contain; flex: 1; }
704
+ [data-attachment="pdf"] .session-attachment-viewport { padding: 12px; background: #e8ecef; }
705
+ .session-attachment-viewport img { display: block; width: var(--attachment-page-width, 100%); max-width: none; height: auto; margin: 0 auto 12px; box-shadow: 0 1px 4px #bac0c5; }
706
+ .session-attachment-dialog .session-attachment-viewport table { display: table; max-width: none; min-width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
707
+ .session-attachment-dialog .session-attachment-viewport :is(td, th) { min-width: 6em; max-width: 32em; border-inline-end: 1px solid #e4e9e6; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
708
+ .session-attachment-viewport th { position: sticky; top: 0; }
709
+ .session-attachment-viewport summary { min-width: 15em; cursor: pointer; }
710
+ @media (max-width: 600px) {
711
+ .session-attachment-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
712
+ .session-attachment { padding: 10px; }
713
+ }
638
714
  .session-file { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: 10px; text-decoration: none; color: inherit; }
639
715
  .session-file:hover { color: inherit; background: var(--site-tint); }
640
716
  .session-file img { display: block; width: 56px; height: auto; aspect-ratio: 236 / 334; object-fit: cover; border: 1px solid var(--site-line); background: var(--site-surface); }
641
717
  .session-file b, .session-video b { display: block; font-weight: 600; }
642
718
  .session-file small, .session-video small { display: block; color: var(--site-muted); font-size: 13px; }
643
719
  .session-video { margin: 0; padding: 6px; }
644
- .session-video video { display: block; width: 100%; height: auto; margin-bottom: 8px; border: 1px solid var(--site-line); border-radius: 6px; background: var(--site-surface); }
720
+ .session-chat-scroll:has(.session-video-formats) { container-type: size; }
721
+ .session-video figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 8px; }
722
+ .session-video-formats { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: #f1f5f9; }
723
+ .session-video-formats button { border: 0; padding: 5px 10px; border-radius: 5px; font: inherit; font-size: 13px; color: #334155; background: transparent; cursor: pointer; }
724
+ .session-video-formats button[aria-pressed="true"] { background: #334155; color: #fff; }
725
+ .session-video video { display: block; width: 100%; height: auto; max-height: 54vh; border-radius: 8px; background: #101418; }
726
+ .session-video video[data-format="portrait"] { width: auto; max-width: 100%; height: min(54vh, calc(100cqh - 5rem)); aspect-ratio: 9 / 16; margin-inline: auto; }
645
727
  .session-audio { display: grid; gap: 6px; margin: 4px 0 8px 80px; padding: 0; list-style: none; }
646
728
  .session-audio li { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 8px; align-items: center; }
647
729
  .session-audio audio { width: 100%; height: 32px; }