@meistrari/tela-build 1.87.2 → 1.87.3

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
@@ -4,6 +4,7 @@ Latest updates and announcements.
4
4
 
5
5
  ## October 15, 2026
6
6
 
7
+ - [Preview](/components/preview) displays failed processed-file loads as errors and skips original file URL resolution and PDF loading when showing processed text.
7
8
  - [Preview](/patterns/preview) reserves space for the file selector and Original/Processed tabs so document content stays visible below them, including while scrolling.
8
9
  - [Preview](/components/preview) wraps preformatted text within the document width, keeping long indented email paragraphs readable while preserving indentation and line breaks.
9
10
 
@@ -677,6 +677,7 @@ async function reRenderAllPdfPages() {
677
677
 
678
678
  watch(() => props.file, async (newFile, oldFile) => {
679
679
  const isSamePdfRecompute = newFile?.fileType === 'application/pdf'
680
+ && !newFile.isMarkdown
680
681
  && pdfDocHandle.value
681
682
  && newFile?.fileName === oldFile?.fileName
682
683
  && newFile?.fileUrl === oldFile?.fileUrl
@@ -711,7 +712,7 @@ watch(() => props.file, async (newFile, oldFile) => {
711
712
  fileUrl.value = newFile.fileUrl
712
713
  isLoading.value = false
713
714
  }
714
- else if (containsVaultFile.value && newFile.fileUrl) {
715
+ else if (!newFile.isMarkdown && containsVaultFile.value && newFile.fileUrl) {
715
716
  fileUrl.value = await resolveVaultFileUrl(newFile.fileUrl)
716
717
  }
717
718
  else {
@@ -730,7 +731,7 @@ watch(() => props.file, async (newFile, oldFile) => {
730
731
  processMarkdownContent(newFile.fileContent || '')
731
732
  }
732
733
 
733
- if (newFile.fileType === 'application/pdf' && fileUrl.value && props.pdfLoader) {
734
+ if (newFile.fileType === 'application/pdf' && !newFile.isMarkdown && fileUrl.value && props.pdfLoader) {
734
735
  await nextTick()
735
736
  const doc = await props.pdfLoader(fileUrl.value)
736
737
 
@@ -1040,13 +1041,13 @@ watch([() => props.highlightText, () => props.highlightPage, () => props.highlig
1040
1041
  </div>
1041
1042
  </template>
1042
1043
 
1043
- <template v-else-if="error">
1044
+ <template v-else-if="error || (props.file.isMarkdown && props.file.error)">
1044
1045
  <div flex="~ col" items-center justify-center h-400px>
1045
1046
  <TelaIcon name="i-ph-file-x" size="xl" class="text-gray-400" />
1046
1047
  <p body-16-semibold text-gray-600 mt-12px>
1047
1048
  {{ labels.failedToLoadFile }}
1048
1049
  </p>
1049
- <p body-14-regular text-gray-400 mt-8px>
1050
+ <p v-if="error" body-14-regular text-gray-400 mt-8px>
1050
1051
  {{ error }}
1051
1052
  </p>
1052
1053
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-build",
3
- "version": "1.87.2",
3
+ "version": "1.87.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "app.config.ts",