@linto-ai/transcript-ui-core 0.9.23-unstable.202609181617 → 0.9.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linto-ai/transcript-ui-core",
|
|
3
|
-
"version": "0.9.23
|
|
3
|
+
"version": "0.9.23",
|
|
4
4
|
"description": "State layer and UI shell for @linto-ai/transcript-ui — core, stores, format adapters, and the TranscriptUI component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"vue": "^3.5.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@linto-ai/transcript-ui-i18n": "0.9.23
|
|
43
|
-
"@linto-ai/transcript-ui-ui": "0.9.23
|
|
42
|
+
"@linto-ai/transcript-ui-i18n": "0.9.23",
|
|
43
|
+
"@linto-ai/transcript-ui-ui": "0.9.23",
|
|
44
44
|
"lucide-vue-next": "^0.564.0",
|
|
45
45
|
"reka-ui": "^2.8.0",
|
|
46
46
|
"vue-stick-to-bottom": "^1.0.0"
|
|
@@ -87,8 +87,7 @@ const speakerList = computed(() => Array.from(speakers.values()))
|
|
|
87
87
|
|
|
88
88
|
const showTranscription = computed(() => activeTab.value === TRANSCRIPTION_TAB)
|
|
89
89
|
|
|
90
|
-
//
|
|
91
|
-
// viewport shrinks also brings the speaker drawer and the player back.
|
|
90
|
+
// remove split when shrinking in mobile view
|
|
92
91
|
watch(isMobile, (mobile) => {
|
|
93
92
|
if (mobile && isSplit.value) isSplit.value = false
|
|
94
93
|
})
|
|
@@ -123,8 +122,11 @@ watch(
|
|
|
123
122
|
() => props.showVerbatim,
|
|
124
123
|
(canShow) => {
|
|
125
124
|
if (canShow) return
|
|
126
|
-
const withoutVerbatim = shownPanels.value.filter(
|
|
127
|
-
|
|
125
|
+
const withoutVerbatim = shownPanels.value.filter(
|
|
126
|
+
(id) => id !== VERBATIM_TAB,
|
|
127
|
+
)
|
|
128
|
+
shownPanels.value =
|
|
129
|
+
withoutVerbatim.length > 0 ? withoutVerbatim : [TRANSCRIPTION_TAB]
|
|
128
130
|
},
|
|
129
131
|
)
|
|
130
132
|
|
|
@@ -3,7 +3,9 @@ import { ref, onMounted, onBeforeUnmount } from 'vue'
|
|
|
3
3
|
const MOBILE_BREAKPOINT = '(max-width: 767px)'
|
|
4
4
|
|
|
5
5
|
export function useIsMobile() {
|
|
6
|
-
|
|
6
|
+
// Read right away, not on mount: the first render must already match the
|
|
7
|
+
// viewport, or a phone briefly mounts desktop-only UI before swapping it.
|
|
8
|
+
const isMobile = ref(window.matchMedia(MOBILE_BREAKPOINT).matches)
|
|
7
9
|
let mql: MediaQueryList | null = null
|
|
8
10
|
|
|
9
11
|
function onChange(e: MediaQueryListEvent) {
|
package/src/index.ts
CHANGED
|
@@ -66,6 +66,10 @@ export { default as SpeakerLabel } from './components/SpeakerLabel.vue'
|
|
|
66
66
|
export { default as SpeakerPopover } from './components/molecules/SpeakerPopover.vue'
|
|
67
67
|
export { useEditorReady } from './composables/useEditorReady'
|
|
68
68
|
|
|
69
|
+
// Phone breakpoint shared with plugins, so their panels switch layout at the
|
|
70
|
+
// same width as the core Layout.
|
|
71
|
+
export { useIsMobile } from './composables/useIsMobile'
|
|
72
|
+
|
|
69
73
|
// Adapter API LinTO
|
|
70
74
|
export { mapApiDocument } from './adapters/apiAdapter'
|
|
71
75
|
export { mapApiTurns } from './adapters/mapApiTurns'
|