@meistrari/tela-build 1.87.0 → 1.87.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Latest updates and announcements.
4
4
 
5
+ ## October 15, 2026
6
+
7
+ - [Preview](/patterns/preview) reserves space for the file selector and Original/Processed tabs so document content stays visible below them, including while scrolling.
8
+ - [Preview](/components/preview) wraps preformatted text within the document width, keeping long indented email paragraphs readable while preserving indentation and line breaks.
9
+
5
10
  ## October 14, 2026
6
11
 
7
12
  - [Avatar](/components/avatar) corner radius now scales with `size` to match Figma instead of a flat 6px: `2xs` 6px, `xs` 8px, `sm` 10px, `md` (and the default) 12px, `lg` 20px, `xl` 22px. The radius is still a class, so a `class` like `rounded-full` overrides it. The switch-workspace modal drops its `!rounded-[10px]` avatar override, and its selection ring follows the 12px radius with a transparent 2px gap, so the hovered row background shows through instead of a white band.
@@ -933,10 +933,7 @@ watch([() => props.highlightText, () => props.highlightPage, () => props.highlig
933
933
  relative
934
934
  :data-pdf-preview="props.file.fileType === 'application/pdf'"
935
935
  :data-has-tabs="props.segmentTab === 'processed' && props.file.fileType !== 'application/pdf'"
936
- :class="cn('group', {
937
- 'data-[has-tabs=true]:pt-88px data-[pdf-preview=false]:pt-0px': variant === 'default',
938
- 'data-[has-tabs=true]:pt-42px data-[pdf-preview=false]:pt-0px': variant === 'minimal',
939
- })"
936
+ class="group"
940
937
  overflow-y-auto no-scrollbar
941
938
  @mouseenter="handleContainerMouseEnter"
942
939
  @mouseleave="handleContainerMouseLeave"
@@ -945,11 +942,7 @@ watch([() => props.highlightText, () => props.highlightPage, () => props.highlig
945
942
  <!-- PDF skeleton: mimics the real PDF page stack -->
946
943
  <div
947
944
  v-if="props.file.fileType === 'application/pdf'"
948
- :class="cn('flex flex-col items-center gap-8px pb-80px', {
949
- 'pt-56px': !props.segmentTab,
950
- 'pt-88px': props.segmentTab,
951
- 'px-28px': true,
952
- })"
945
+ class="flex flex-col items-center gap-8px px-28px pt-20px pb-80px"
953
946
  >
954
947
  <div
955
948
  v-for="pageNum in 2" :key="pageNum"
@@ -1068,8 +1061,6 @@ watch([() => props.highlightText, () => props.highlightPage, () => props.highlig
1068
1061
  :class="cn({
1069
1062
  'px-36px': variant === 'default',
1070
1063
  'px-32px': variant === 'minimal',
1071
- 'pt-88px': variant === 'default' && props.segmentTab && props.file.fileType === 'application/pdf',
1072
- 'pt-42px': variant === 'minimal' && props.segmentTab && props.file.fileType === 'application/pdf',
1073
1064
  'h-full flex flex-col': variant === 'default' && props.segmentTab !== 'processed',
1074
1065
  })"
1075
1066
  >
@@ -1164,14 +1155,8 @@ watch([() => props.highlightText, () => props.highlightPage, () => props.highlig
1164
1155
  >
1165
1156
  <div
1166
1157
  :data-has-tabs="props.segmentTab"
1167
- class="pdf-zoom-wrapper min-w-full"
1168
- px-28px pb-80px
1169
- :class="cn('group', {
1170
- 'pt-88px': variant === 'default' && props.segmentTab,
1171
- 'pt-56px': variant === 'default' && !props.segmentTab,
1172
- 'pt-42px': variant === 'minimal' && props.segmentTab,
1173
- 'pt-20px': variant === 'minimal' && !props.segmentTab,
1174
- })"
1158
+ class="pdf-zoom-wrapper min-w-full group"
1159
+ px-28px pt-20px pb-80px
1175
1160
  >
1176
1161
  <div
1177
1162
  v-if="pdfLoadError"
@@ -1358,6 +1343,11 @@ watch([() => props.highlightText, () => props.highlightPage, () => props.highlig
1358
1343
  flex-direction: column;
1359
1344
  gap: 12px;
1360
1345
 
1346
+ pre {
1347
+ white-space: pre-wrap;
1348
+ overflow-wrap: anywhere;
1349
+ }
1350
+
1361
1351
  p {
1362
1352
  font-size: 14px;
1363
1353
  line-height: 20px;
@@ -271,13 +271,14 @@ interface PdfDocumentHandle {
271
271
  ## Variants
272
272
 
273
273
  ### Default
274
- - Full variable selector at the top with gradient background
274
+ - Full variable selector at the top, outside the document scroll area
275
+ - Selector and optional segment toggle reserve their own height so content cannot scroll behind them
275
276
  - Larger content area and padding
276
277
  - PDF: more vertical padding and larger page cards
277
278
 
278
279
  ### Minimal
279
280
  - Used **inside TelaHoverCard** for compact file previews
280
- - No variable selector strip; optional segment toggle and gradient
281
+ - No variable selector strip; optional segment toggle above the document scroll area
281
282
  - Tighter padding and smaller content width
282
283
  - PDF: compact layout and smaller cards
283
284
 
@@ -76,11 +76,13 @@ const fileReaderKey = computed(() => {
76
76
  </script>
77
77
 
78
78
  <template>
79
- <div bg-neutral-50 relative flex flex-col gap-64px h-full overflow-hidden>
79
+ <div bg-neutral-50 relative flex flex-col h-full min-h-0 overflow-hidden>
80
80
  <div
81
- absolute z-10 flex="~ col" items-center gap-8px w-full flex-shrink-0
81
+ v-if="variant === 'default' || hasSegmentToggle"
82
+ relative z-10 flex="~ col" items-center gap-8px w-full flex-shrink-0
82
83
  :class="{
83
- 'top-8px': variant === 'minimal',
84
+ 'pb-12px': variant === 'default',
85
+ 'py-8px': variant === 'minimal',
84
86
  }"
85
87
  >
86
88
  <div
@@ -108,12 +110,6 @@ const fileReaderKey = computed(() => {
108
110
  { label: labels.processed, value: 'processed' },
109
111
  ]"
110
112
  />
111
- <div
112
- v-if="variant === 'minimal'"
113
- aria-hidden
114
- absolute top--12px w-full h-40px z--1
115
- class="bg-gradient-to-b from-neutral-50/90 via-neutral-50/60 to-transparent"
116
- />
117
113
  </div>
118
114
 
119
115
  <div w-full flex flex-col flex-1 min-h-0>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-build",
3
- "version": "1.87.0",
3
+ "version": "1.87.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "app.config.ts",