@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.
@@ -22244,7 +22244,8 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
22244
22244
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
22245
22245
  __name: "TabBar",
22246
22246
  props: {
22247
- modelValue: { type: String }
22247
+ modelValue: { type: String },
22248
+ showVerbatim: { type: Boolean, default: true }
22248
22249
  },
22249
22250
  emits: ["update:modelValue"],
22250
22251
  setup(__props, { emit: __emit }) {
@@ -22260,11 +22261,13 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
22260
22261
  label: t2("tabs.transcription"),
22261
22262
  icon: "message-circle"
22262
22263
  },
22263
- {
22264
- value: VERBATIM_TAB,
22265
- label: t2("tabs.verbatim"),
22266
- icon: "file-text"
22267
- },
22264
+ ...props.showVerbatim ? [
22265
+ {
22266
+ value: VERBATIM_TAB,
22267
+ label: t2("tabs.verbatim"),
22268
+ icon: "file-text"
22269
+ }
22270
+ ] : [],
22268
22271
  ...services.map((service) => ({
22269
22272
  value: service.id,
22270
22273
  label: service.label.value,
@@ -22277,11 +22280,12 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
22277
22280
  if (value !== props.modelValue) emit2("update:modelValue", value);
22278
22281
  }
22279
22282
  return (_ctx, _cache) => {
22280
- return openBlock(), createBlock(unref(Tabs), {
22283
+ return tabs.value.length > 1 ? (openBlock(), createBlock(unref(Tabs), {
22284
+ key: 0,
22281
22285
  tabs: tabs.value,
22282
22286
  "model-value": __props.modelValue,
22283
22287
  "onUpdate:modelValue": onSelect
22284
- }, null, 8, ["tabs", "model-value"]);
22288
+ }, null, 8, ["tabs", "model-value"])) : createCommentVNode("", true);
22285
22289
  };
22286
22290
  }
22287
22291
  });
@@ -24484,7 +24488,8 @@ ${text2}` : text2;
24484
24488
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
24485
24489
  __name: "Layout",
24486
24490
  props: {
24487
- showHeader: { type: Boolean, default: true }
24491
+ showHeader: { type: Boolean, default: true },
24492
+ showVerbatim: { type: Boolean, default: true }
24488
24493
  },
24489
24494
  setup(__props) {
24490
24495
  const props = __props;
@@ -24494,8 +24499,9 @@ ${text2}` : text2;
24494
24499
  const shownPanels = /* @__PURE__ */ ref([TRANSCRIPTION_TAB]);
24495
24500
  const activeTab = computed(() => shownPanels.value[0] ?? TRANSCRIPTION_TAB);
24496
24501
  const isSplit = computed({
24497
- get: () => shownPanels.value.length > 1,
24502
+ get: () => props.showVerbatim && shownPanels.value.length > 1,
24498
24503
  set: (value) => {
24504
+ if (!props.showVerbatim) return;
24499
24505
  shownPanels.value = value ? [...shownPanels.value, VERBATIM_TAB] : shownPanels.value.filter((id) => id !== VERBATIM_TAB);
24500
24506
  }
24501
24507
  });
@@ -24537,6 +24543,14 @@ ${text2}` : text2;
24537
24543
  }
24538
24544
  }
24539
24545
  );
24546
+ watch(
24547
+ () => props.showVerbatim,
24548
+ (canShow) => {
24549
+ if (canShow) return;
24550
+ const withoutVerbatim = shownPanels.value.filter((id) => id !== VERBATIM_TAB);
24551
+ shownPanels.value = withoutVerbatim.length > 0 ? withoutVerbatim : [TRANSCRIPTION_TAB];
24552
+ }
24553
+ );
24540
24554
  watch(
24541
24555
  () => core.activeChannelId.value,
24542
24556
  () => {
@@ -24576,8 +24590,9 @@ ${text2}` : text2;
24576
24590
  }, null, 8, ["title", "date", "duration", "speaker-count", "is-mobile", "can-ask", "can-undo", "can-redo"])) : createCommentVNode("", true),
24577
24591
  createVNode(_sfc_main$t, {
24578
24592
  "model-value": activeTab.value,
24593
+ "show-verbatim": props.showVerbatim,
24579
24594
  "onUpdate:modelValue": _cache[4] || (_cache[4] = (tab) => shownPanels.value = [tab])
24580
- }, null, 8, ["model-value"]),
24595
+ }, null, 8, ["model-value", "show-verbatim"]),
24581
24596
  showTranscription.value ? (openBlock(), createBlock(SelectionActionBar, { key: 1 })) : createCommentVNode("", true),
24582
24597
  createBaseVNode("main", {
24583
24598
  class: normalizeClass(["editor-body", { "editor-body--no-sidebar": panels.value.length > 1 }])
@@ -24660,8 +24675,8 @@ ${text2}` : text2;
24660
24675
  };
24661
24676
  }
24662
24677
  });
24663
- const _style_0$e = "\n.editor-layout[data-v-ca7b1d66] {\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-ca7b1d66] {\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-ca7b1d66] {\n grid-template-columns: 1fr;\n}\n.editor-body__panels[data-v-ca7b1d66] {\n display: flex;\n min-width: 0;\n min-height: 0;\n}\n.editor-body__panels[data-v-ca7b1d66] > * {\n flex: 1;\n min-width: 0;\n}\n.editor-body__panels--split[data-v-ca7b1d66] > * + * {\n border-left: 1px solid var(--color-border);\n}\n.mobile-selectors[data-v-ca7b1d66] {\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-ca7b1d66] > * {\n flex: 1;\n min-width: 0;\n}\n@media (max-width: 767px) {\n.editor-body[data-v-ca7b1d66] {\n grid-template-columns: 1fr;\n}\n}\n";
24664
- const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["styles", [_style_0$e]], ["__scopeId", "data-v-ca7b1d66"]]);
24678
+ 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";
24679
+ const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["styles", [_style_0$e]], ["__scopeId", "data-v-540cad68"]]);
24665
24680
  const _hoisted_1$d = {
24666
24681
  class: "editor-loading",
24667
24682
  role: "status",
@@ -24754,7 +24769,8 @@ ${text2}` : text2;
24754
24769
  __name: "TranscriptUI",
24755
24770
  props: {
24756
24771
  locale: { default: "fr", type: String },
24757
- noHeader: { type: Boolean, default: false }
24772
+ noHeader: { type: Boolean, default: false },
24773
+ noVerbatim: { type: Boolean, default: false }
24758
24774
  },
24759
24775
  setup(__props, { expose: __expose }) {
24760
24776
  const props = __props;
@@ -24775,8 +24791,9 @@ ${text2}` : text2;
24775
24791
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
24776
24792
  unref(core).channels.size ? (openBlock(), createBlock(Layout, {
24777
24793
  key: 0,
24778
- "show-header": !props.noHeader
24779
- }, null, 8, ["show-header"])) : createCommentVNode("", true),
24794
+ "show-header": !props.noHeader,
24795
+ "show-verbatim": !props.noVerbatim
24796
+ }, null, 8, ["show-header", "show-verbatim"])) : createCommentVNode("", true),
24780
24797
  unref(error) ? (openBlock(), createBlock(EditorErrorOverlay, {
24781
24798
  key: 1,
24782
24799
  message: unref(error)