@histoire/app 0.15.8 → 0.16.0
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/bundled/components/panel/StatePresets.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryDocs.vue2.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue2.js +1 -1
- package/dist/bundled/style.css +9 -9
- package/package.json +2 -2
- package/src/app/components/panel/StoryDocs.vue +1 -1
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
const canEdit = computed(() => selectedOption.value !== DEFAULT_ID);
|
|
64
64
|
const isEditing = ref(false);
|
|
65
65
|
async function createPreset() {
|
|
66
|
-
const id = new Date().getTime().toString();
|
|
66
|
+
const id = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
67
67
|
presetStates.value.set(id, { state: clone(omit(toRawDeep(props.variant.state), omitKeys)), label: "New preset" });
|
|
68
68
|
selectedOption.value = id;
|
|
69
69
|
isEditing.value = true;
|
|
@@ -84,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
await nextTick();
|
|
85
85
|
const hash = getHash();
|
|
86
86
|
if (hash) {
|
|
87
|
-
const anchor = document.querySelector(hash);
|
|
87
|
+
const anchor = document.querySelector(decodeURIComponent(hash));
|
|
88
88
|
if (anchor) {
|
|
89
89
|
anchor.scrollIntoView();
|
|
90
90
|
return;
|
|
@@ -8,7 +8,7 @@ import { registeredCommands } from "virtual:$histoire-commands";
|
|
|
8
8
|
import { useStoryStore } from "../../stores/story.js";
|
|
9
9
|
import BaseEmpty from "../base/BaseEmpty.vue.js";
|
|
10
10
|
import SearchItem from "./SearchItem.vue.js";
|
|
11
|
-
import {
|
|
11
|
+
import { onUpdate, searchData } from "./search-title-data.js";
|
|
12
12
|
import { getCommandContext, builtinCommands } from "../../util/commands.js";
|
|
13
13
|
import { useCommandStore } from "../../stores/command.js";
|
|
14
14
|
import { useSelection } from "../../util/select.js";
|
package/dist/bundled/style.css
CHANGED
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
padding-left: var(--6851b0a7);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.
|
|
59
|
-
color:
|
|
60
|
-
font-size: inherit;
|
|
58
|
+
.bind-icon-color[data-v-ddfc5b4f] {
|
|
59
|
+
color: var(--4d25d048);
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
.bind-icon-color[data-v-ab890d9c] {
|
|
64
63
|
color: var(--89126aaa);
|
|
65
64
|
}
|
|
66
65
|
|
|
67
|
-
.
|
|
68
|
-
color:
|
|
66
|
+
.__histoire-code-placeholder[data-v-1bdf9905] {
|
|
67
|
+
color: inherit;
|
|
68
|
+
font-size: inherit;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.bind-icon-color[data-v-cf76cd68] {
|
|
@@ -88,6 +88,10 @@
|
|
|
88
88
|
background-color: var(--03d1950e);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
img.colorize-black[data-v-74182813] {
|
|
92
|
+
filter: grayscale(100) brightness(0);
|
|
93
|
+
}
|
|
94
|
+
|
|
91
95
|
.__histoire-hatched-pattern[data-v-91561117] {
|
|
92
96
|
background: repeating-linear-gradient(135deg,
|
|
93
97
|
transparent 0px,
|
|
@@ -95,7 +99,3 @@
|
|
|
95
99
|
currentColor 32px,
|
|
96
100
|
currentColor 64px);
|
|
97
101
|
}
|
|
98
|
-
|
|
99
|
-
img.colorize-black[data-v-74182813] {
|
|
100
|
-
filter: grayscale(100) brightness(0);
|
|
101
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Pre-bundled UI for Histoire",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"postcss-import": "^14.1.0",
|
|
47
47
|
"tailwindcss": "^3.0.23",
|
|
48
48
|
"typescript": "^4.9.5",
|
|
49
|
-
"vite": "^4.
|
|
49
|
+
"vite": "^4.2.0",
|
|
50
50
|
"vue": "^3.2.47"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
@@ -115,7 +115,7 @@ async function scrollToAnchor () {
|
|
|
115
115
|
await nextTick()
|
|
116
116
|
const hash = getHash()
|
|
117
117
|
if (hash) {
|
|
118
|
-
const anchor = document.querySelector(hash)
|
|
118
|
+
const anchor = document.querySelector(decodeURIComponent(hash))
|
|
119
119
|
if (anchor) {
|
|
120
120
|
anchor.scrollIntoView()
|
|
121
121
|
return
|