@linto-ai/transcript-ui-webcomponent 0.9.16 → 0.9.17
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-DcaGiZlF.js → highlight-BJ-aIPIt.js} +2 -2
- package/dist/{highlight-DcaGiZlF.js.map → highlight-BJ-aIPIt.js.map} +1 -1
- package/dist/{index-DQ9v_akJ.js → index-DOQBVlvF.js} +9 -6
- package/dist/{index-DQ9v_akJ.js.map → index-DOQBVlvF.js.map} +1 -1
- package/dist/linto-editor.iife.js +7 -4
- 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-BJ-aIPIt.js");
|
|
10522
10522
|
if (run === seq) highlighted.value = highlightCode(code, lang ?? "");
|
|
10523
10523
|
},
|
|
10524
10524
|
{ immediate: true }
|
|
@@ -29355,9 +29355,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
29355
29355
|
const activeVersionNumber = computed(
|
|
29356
29356
|
() => props.service.activeVersionNumber.value
|
|
29357
29357
|
);
|
|
29358
|
+
const hasContent = computed(
|
|
29359
|
+
() => !!content.value || versions.value.length > 0
|
|
29360
|
+
);
|
|
29358
29361
|
const isEmpty = computed(() => {
|
|
29359
29362
|
if (articleStatus.value !== "done") return false;
|
|
29360
|
-
return !
|
|
29363
|
+
return !hasContent.value;
|
|
29361
29364
|
});
|
|
29362
29365
|
const isUpdated = computed(() => {
|
|
29363
29366
|
const channel = core.activeChannel.value;
|
|
@@ -29438,7 +29441,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
29438
29441
|
createVNode(unref(Button), {
|
|
29439
29442
|
variant: "primary",
|
|
29440
29443
|
icon: "download",
|
|
29441
|
-
disabled: articleStatus.value === "processing",
|
|
29444
|
+
disabled: articleStatus.value === "processing" || !hasContent.value,
|
|
29442
29445
|
"aria-label": unref(t2)("llmService.download"),
|
|
29443
29446
|
title: unref(t2)("llmService.download"),
|
|
29444
29447
|
onClick: onExport
|
|
@@ -29484,8 +29487,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
29484
29487
|
};
|
|
29485
29488
|
}
|
|
29486
29489
|
});
|
|
29487
|
-
const _style_0$5 = "\n.llm-service-panel[data-v-
|
|
29488
|
-
const LLMServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["styles", [_style_0$5]], ["__scopeId", "data-v-
|
|
29490
|
+
const _style_0$5 = "\n.llm-service-panel[data-v-0222a168] {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow-y: auto;\n}\n.llm-service-panel__status[data-v-0222a168] {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-xs);\n font-size: var(--font-size-xs);\n font-weight: 500;\n}\n.llm-service-panel__status--ok[data-v-0222a168] {\n color: var(--color-success, #2e7d32);\n}\n.llm-service-panel__status--warn[data-v-0222a168] {\n color: var(--color-warning, #ed6c02);\n}\n.llm-service-panel__empty[data-v-0222a168] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-md);\n padding: var(--spacing-xl) var(--spacing-md);\n text-align: center;\n}\n.llm-service-panel__empty-text[data-v-0222a168] {\n margin: 0;\n max-width: 400px;\n font-size: var(--font-size-sm);\n color: var(--color-text-secondary);\n}\n@media (max-width: 767px) {\n.llm-service-panel[data-v-0222a168] {\n padding: var(--spacing-md);\n}\n}\n";
|
|
29491
|
+
const LLMServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["styles", [_style_0$5]], ["__scopeId", "data-v-0222a168"]]);
|
|
29489
29492
|
function createService(init) {
|
|
29490
29493
|
return {
|
|
29491
29494
|
id: init.id,
|
|
@@ -30274,4 +30277,4 @@ export {
|
|
|
30274
30277
|
purify as p,
|
|
30275
30278
|
register as r
|
|
30276
30279
|
};
|
|
30277
|
-
//# sourceMappingURL=index-
|
|
30280
|
+
//# sourceMappingURL=index-DOQBVlvF.js.map
|