@linto-ai/transcript-ui-webcomponent 0.9.17 → 0.9.18
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/dist/{highlight-BJ-aIPIt.js → highlight-CJMoAPSe.js} +2 -2
- package/dist/{highlight-BJ-aIPIt.js.map → highlight-CJMoAPSe.js.map} +1 -1
- package/dist/{index-DOQBVlvF.js → index-CB7gHC-N.js} +35 -18
- package/dist/{index-DOQBVlvF.js.map → index-CB7gHC-N.js.map} +1 -1
- package/dist/linto-editor.iife.js +33 -16
- package/dist/linto-editor.iife.js.map +1 -1
- package/dist/linto-editor.js +1 -1
- package/package.json +10 -10
|
@@ -10518,7 +10518,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10518
10518
|
highlighted.value = null;
|
|
10519
10519
|
return;
|
|
10520
10520
|
}
|
|
10521
|
-
const { highlightCode } = await import("./highlight-
|
|
10521
|
+
const { highlightCode } = await import("./highlight-CJMoAPSe.js");
|
|
10522
10522
|
if (run === seq) highlighted.value = highlightCode(code, lang ?? "");
|
|
10523
10523
|
},
|
|
10524
10524
|
{ immediate: true }
|
|
@@ -22242,7 +22242,8 @@ const VERBATIM_TAB = "__verbatim__";
|
|
|
22242
22242
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
22243
22243
|
__name: "TabBar",
|
|
22244
22244
|
props: {
|
|
22245
|
-
modelValue: { type: String }
|
|
22245
|
+
modelValue: { type: String },
|
|
22246
|
+
showVerbatim: { type: Boolean, default: true }
|
|
22246
22247
|
},
|
|
22247
22248
|
emits: ["update:modelValue"],
|
|
22248
22249
|
setup(__props, { emit: __emit }) {
|
|
@@ -22258,11 +22259,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
22258
22259
|
label: t2("tabs.transcription"),
|
|
22259
22260
|
icon: "message-circle"
|
|
22260
22261
|
},
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
|
|
22264
|
-
|
|
22265
|
-
|
|
22262
|
+
...props.showVerbatim ? [
|
|
22263
|
+
{
|
|
22264
|
+
value: VERBATIM_TAB,
|
|
22265
|
+
label: t2("tabs.verbatim"),
|
|
22266
|
+
icon: "file-text"
|
|
22267
|
+
}
|
|
22268
|
+
] : [],
|
|
22266
22269
|
...services.map((service) => ({
|
|
22267
22270
|
value: service.id,
|
|
22268
22271
|
label: service.label.value,
|
|
@@ -22275,11 +22278,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
22275
22278
|
if (value !== props.modelValue) emit2("update:modelValue", value);
|
|
22276
22279
|
}
|
|
22277
22280
|
return (_ctx, _cache) => {
|
|
22278
|
-
return openBlock(), createBlock(unref(Tabs), {
|
|
22281
|
+
return tabs.value.length > 1 ? (openBlock(), createBlock(unref(Tabs), {
|
|
22282
|
+
key: 0,
|
|
22279
22283
|
tabs: tabs.value,
|
|
22280
22284
|
"model-value": __props.modelValue,
|
|
22281
22285
|
"onUpdate:modelValue": onSelect
|
|
22282
|
-
}, null, 8, ["tabs", "model-value"]);
|
|
22286
|
+
}, null, 8, ["tabs", "model-value"])) : createCommentVNode("", true);
|
|
22283
22287
|
};
|
|
22284
22288
|
}
|
|
22285
22289
|
});
|
|
@@ -24482,7 +24486,8 @@ const _hoisted_2$b = {
|
|
|
24482
24486
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
24483
24487
|
__name: "Layout",
|
|
24484
24488
|
props: {
|
|
24485
|
-
showHeader: { type: Boolean, default: true }
|
|
24489
|
+
showHeader: { type: Boolean, default: true },
|
|
24490
|
+
showVerbatim: { type: Boolean, default: true }
|
|
24486
24491
|
},
|
|
24487
24492
|
setup(__props) {
|
|
24488
24493
|
const props = __props;
|
|
@@ -24492,8 +24497,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24492
24497
|
const shownPanels = /* @__PURE__ */ ref([TRANSCRIPTION_TAB]);
|
|
24493
24498
|
const activeTab = computed(() => shownPanels.value[0] ?? TRANSCRIPTION_TAB);
|
|
24494
24499
|
const isSplit = computed({
|
|
24495
|
-
get: () => shownPanels.value.length > 1,
|
|
24500
|
+
get: () => props.showVerbatim && shownPanels.value.length > 1,
|
|
24496
24501
|
set: (value) => {
|
|
24502
|
+
if (!props.showVerbatim) return;
|
|
24497
24503
|
shownPanels.value = value ? [...shownPanels.value, VERBATIM_TAB] : shownPanels.value.filter((id) => id !== VERBATIM_TAB);
|
|
24498
24504
|
}
|
|
24499
24505
|
});
|
|
@@ -24535,6 +24541,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24535
24541
|
}
|
|
24536
24542
|
}
|
|
24537
24543
|
);
|
|
24544
|
+
watch(
|
|
24545
|
+
() => props.showVerbatim,
|
|
24546
|
+
(canShow) => {
|
|
24547
|
+
if (canShow) return;
|
|
24548
|
+
const withoutVerbatim = shownPanels.value.filter((id) => id !== VERBATIM_TAB);
|
|
24549
|
+
shownPanels.value = withoutVerbatim.length > 0 ? withoutVerbatim : [TRANSCRIPTION_TAB];
|
|
24550
|
+
}
|
|
24551
|
+
);
|
|
24538
24552
|
watch(
|
|
24539
24553
|
() => core.activeChannelId.value,
|
|
24540
24554
|
() => {
|
|
@@ -24574,8 +24588,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24574
24588
|
}, null, 8, ["title", "date", "duration", "speaker-count", "is-mobile", "can-ask", "can-undo", "can-redo"])) : createCommentVNode("", true),
|
|
24575
24589
|
createVNode(_sfc_main$t, {
|
|
24576
24590
|
"model-value": activeTab.value,
|
|
24591
|
+
"show-verbatim": props.showVerbatim,
|
|
24577
24592
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = (tab) => shownPanels.value = [tab])
|
|
24578
|
-
}, null, 8, ["model-value"]),
|
|
24593
|
+
}, null, 8, ["model-value", "show-verbatim"]),
|
|
24579
24594
|
showTranscription.value ? (openBlock(), createBlock(SelectionActionBar, { key: 1 })) : createCommentVNode("", true),
|
|
24580
24595
|
createBaseVNode("main", {
|
|
24581
24596
|
class: normalizeClass(["editor-body", { "editor-body--no-sidebar": panels.value.length > 1 }])
|
|
@@ -24658,8 +24673,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24658
24673
|
};
|
|
24659
24674
|
}
|
|
24660
24675
|
});
|
|
24661
|
-
const _style_0$e = "\n.editor-layout[data-v-
|
|
24662
|
-
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["styles", [_style_0$e]], ["__scopeId", "data-v-
|
|
24676
|
+
const _style_0$e = "\n.editor-layout[data-v-540cad68] {\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n background-color: var(--color-background);\n}\n.editor-body[data-v-540cad68] {\n display: grid;\n grid-template-columns: 1fr var(--sidebar-width);\n flex: 1;\n min-height: 0;\n}\n\n/* Split mode: two panels already share the body between them, no room (or\n need) for the speaker sidebar too — see Layout's panels/isSplit state. */\n.editor-body--no-sidebar[data-v-540cad68] {\n grid-template-columns: 1fr;\n}\n.editor-body__panels[data-v-540cad68] {\n display: flex;\n min-width: 0;\n min-height: 0;\n}\n.editor-body__panels[data-v-540cad68] > * {\n flex: 1;\n min-width: 0;\n}\n.editor-body__panels--split[data-v-540cad68] > * + * {\n border-left: 1px solid var(--color-border);\n}\n.mobile-selectors[data-v-540cad68] {\n display: flex;\n gap: var(--spacing-sm);\n padding: var(--spacing-sm) var(--spacing-md);\n border-top: 1px solid var(--color-border);\n background-color: var(--color-surface);\n flex-shrink: 0;\n box-shadow: var(--shadow-md);\n align-items: end;\n}\n.mobile-selectors[data-v-540cad68] > * {\n flex: 1;\n min-width: 0;\n}\n@media (max-width: 767px) {\n.editor-body[data-v-540cad68] {\n grid-template-columns: 1fr;\n}\n}\n";
|
|
24677
|
+
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["styles", [_style_0$e]], ["__scopeId", "data-v-540cad68"]]);
|
|
24663
24678
|
const _hoisted_1$d = {
|
|
24664
24679
|
class: "editor-loading",
|
|
24665
24680
|
role: "status",
|
|
@@ -24752,7 +24767,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24752
24767
|
__name: "TranscriptUI",
|
|
24753
24768
|
props: {
|
|
24754
24769
|
locale: { default: "fr", type: String },
|
|
24755
|
-
noHeader: { type: Boolean, default: false }
|
|
24770
|
+
noHeader: { type: Boolean, default: false },
|
|
24771
|
+
noVerbatim: { type: Boolean, default: false }
|
|
24756
24772
|
},
|
|
24757
24773
|
setup(__props, { expose: __expose }) {
|
|
24758
24774
|
const props = __props;
|
|
@@ -24773,8 +24789,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24773
24789
|
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
24774
24790
|
unref(core).channels.size ? (openBlock(), createBlock(Layout, {
|
|
24775
24791
|
key: 0,
|
|
24776
|
-
"show-header": !props.noHeader
|
|
24777
|
-
|
|
24792
|
+
"show-header": !props.noHeader,
|
|
24793
|
+
"show-verbatim": !props.noVerbatim
|
|
24794
|
+
}, null, 8, ["show-header", "show-verbatim"])) : createCommentVNode("", true),
|
|
24778
24795
|
unref(error) ? (openBlock(), createBlock(EditorErrorOverlay, {
|
|
24779
24796
|
key: 1,
|
|
24780
24797
|
message: unref(error)
|
|
@@ -30277,4 +30294,4 @@ export {
|
|
|
30277
30294
|
purify as p,
|
|
30278
30295
|
register as r
|
|
30279
30296
|
};
|
|
30280
|
-
//# sourceMappingURL=index-
|
|
30297
|
+
//# sourceMappingURL=index-CB7gHC-N.js.map
|