@histoire/app
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -9,3 +9,3 @@ import { pushScopeId, popScopeId, createElementVNode, defineComponent, ref, watchEffect, markRaw, shallowRef, onMounted, watch, computed, openBlock, createElementBlock, createVNode, unref, createCommentVNode, toDisplayString } from "@histoire/vendors/vue"; | ||
import _export_sfc from "../../_virtual/plugin-vue_export-helper.js"; | ||
const _withScopeId = (n) => (pushScopeId("data-v-5ab4829f"), n = n(), popScopeId(), n); | ||
const _withScopeId = (n) => (pushScopeId("data-v-ed3a82aa"), n = n(), popScopeId(), n); | ||
const _hoisted_1 = { class: "htw-bg-gray-100 dark:htw-bg-gray-800 htw-h-full htw-overflow-hidden htw-flex htw-flex-col" }; | ||
@@ -22,9 +22,13 @@ const _hoisted_2 = { | ||
}; | ||
const _hoisted_6 = ["value"]; | ||
const _hoisted_7 = { | ||
key: 3, | ||
const _hoisted_6 = { | ||
key: 2, | ||
class: "htw-opacity-50 htw-p-4" | ||
}; | ||
const _hoisted_7 = ["value"]; | ||
const _hoisted_8 = { | ||
key: 4, | ||
class: "htw-w-full htw-h-full htw-overflow-auto", | ||
"data-test-id": "story-source-code" | ||
}; | ||
const _hoisted_8 = ["innerHTML"]; | ||
const _hoisted_9 = ["innerHTML"]; | ||
const _sfc_main = /* @__PURE__ */ defineComponent({ | ||
@@ -89,6 +93,6 @@ __name: "StorySourceCode", | ||
var _a; | ||
return (_a = highlighter.value) == null ? void 0 : _a.codeToHtml(sourceCode.value, { | ||
return sourceCode.value ? (_a = highlighter.value) == null ? void 0 : _a.codeToHtml(sourceCode.value, { | ||
lang: "html", | ||
theme: isDark.value ? "github-dark" : "github-light" | ||
}); | ||
}) : ""; | ||
}); | ||
@@ -105,4 +109,4 @@ return (_ctx, _cache) => { | ||
])) : createCommentVNode("", true), | ||
error.value ? (openBlock(), createElementBlock("div", _hoisted_5, " Error: " + toDisplayString(error.value), 1)) : !unref(sourceHtml) ? (openBlock(), createElementBlock("textarea", { | ||
key: 2, | ||
error.value ? (openBlock(), createElementBlock("div", _hoisted_5, " Error: " + toDisplayString(error.value), 1)) : !sourceCode.value ? (openBlock(), createElementBlock("i", _hoisted_6, " Not available ")) : !unref(sourceHtml) ? (openBlock(), createElementBlock("textarea", { | ||
key: 3, | ||
class: "__histoire-code-placeholder htw-w-full htw-h-full htw-p-4 htw-outline-none htw-bg-transparent htw-resize-none htw-m-0", | ||
@@ -112,7 +116,7 @@ value: sourceCode.value, | ||
"data-test-id": "story-source-code" | ||
}, null, 8, _hoisted_6)) : (openBlock(), createElementBlock("div", _hoisted_7, [ | ||
}, null, 8, _hoisted_7)) : (openBlock(), createElementBlock("div", _hoisted_8, [ | ||
createElementVNode("div", { | ||
class: "__histoire-code htw-p-4 htw-w-fit", | ||
innerHTML: unref(sourceHtml) | ||
}, null, 8, _hoisted_8) | ||
}, null, 8, _hoisted_9) | ||
])) | ||
@@ -123,3 +127,3 @@ ]); | ||
}); | ||
var StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ab4829f"]]); | ||
var StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed3a82aa"]]); | ||
export { StorySourceCode as default }; |
import { createTextVNode, defineComponent, ref, watch, computed, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, unref, withDirectives, withKeys, withModifiers, vModelText, createBlock, withCtx, renderList, createCommentVNode } from "@histoire/vendors/vue"; | ||
import { useFocus, useDebounce } from "@histoire/vendors/vue-use"; | ||
import { Icon } from "@histoire/vendors/iconify"; | ||
import flexsearch from "flexsearch"; | ||
import * as flexsearch from "flexsearch"; | ||
import charset from "../../node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js"; | ||
@@ -6,0 +6,0 @@ import language from "../../node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js"; |
{ | ||
"name": "@histoire/app", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Pre-bundled UI for Histoire", | ||
@@ -27,5 +27,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@histoire/controls": "^0.9.1", | ||
"@histoire/shared": "^0.9.1", | ||
"@histoire/vendors": "^0.9.1", | ||
"@histoire/controls": "^0.9.2", | ||
"@histoire/shared": "^0.9.2", | ||
"@histoire/vendors": "^0.9.2", | ||
"@types/flexsearch": "^0.7.3", | ||
@@ -32,0 +32,0 @@ "flexsearch": "^0.7.21", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
447327
8003
Updated@histoire/controls@^0.9.2
Updated@histoire/shared@^0.9.2
Updated@histoire/vendors@^0.9.2