@histoire/app 0.11.8 → 0.11.9

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.
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./StorySourceCode.vue_vue_type_script_setup_true_lang.js";
2
- import "./StorySourceCode.vue_vue_type_style_index_0_scoped_36810e45_lang.js";
2
+ import "./StorySourceCode.vue_vue_type_style_index_0_scoped_f528bb1b_lang.js";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-36810e45"]]);
4
+ const StorySourceCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f528bb1b"]]);
5
5
  export {
6
6
  StorySourceCode as default
7
7
  };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, ref, watchEffect, markRaw, shallowRef, watch, computed, onMounted, nextTick, resolveDirective, openBlock, createElementBlock, createElementVNode, withDirectives, normalizeClass, createVNode, unref, createCommentVNode, toDisplayString, createBlock, withCtx, pushScopeId, popScopeId } from "@histoire/vendors/vue";
2
2
  import { Icon } from "@histoire/vendors/iconify";
3
- import { setCDN, getHighlighter } from "shiki";
3
+ import { getHighlighter } from "shiki-es";
4
4
  import { HstCopyIcon } from "@histoire/controls";
5
5
  import { unindent } from "@histoire/shared";
6
6
  import { clientSupportPlugins } from "virtual:$histoire-support-plugins-client";
7
7
  import { isDark } from "../../util/dark.js";
8
8
  import BaseEmpty from "../base/BaseEmpty.js";
9
- const _withScopeId = (n) => (pushScopeId("data-v-36810e45"), n = n(), popScopeId(), n);
9
+ const _withScopeId = (n) => (pushScopeId("data-v-f528bb1b"), n = n(), popScopeId(), n);
10
10
  const _hoisted_1 = { class: "histoire-story-source-code htw-bg-gray-50 dark:htw-bg-gray-750 htw-h-full htw-overflow-hidden htw-flex htw-flex-col" };
11
11
  const _hoisted_2 = {
12
12
  key: 0,
@@ -92,7 +92,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
92
  return staticSourceCode.value;
93
93
  });
94
94
  onMounted(async () => {
95
- setCDN("https://unpkg.com/shiki@0.10.1/");
96
95
  highlighter.value = await getHighlighter({
97
96
  langs: [
98
97
  "html",
@@ -0,0 +1,4 @@
1
+ const StorySourceCode_vue_vue_type_style_index_0_scoped_f528bb1b_lang = "";
2
+ export {
3
+ StorySourceCode_vue_vue_type_style_index_0_scoped_f528bb1b_lang as default
4
+ };
@@ -11,7 +11,7 @@ const _hoisted_2 = {
11
11
  key: 0,
12
12
  class: "htw-flex-none htw-flex htw-items-center htw-justify-end htw-h-8 htw-mx-2 htw-mt-1"
13
13
  };
14
- const _hoisted_3 = { class: "htw-overflow-y-auto htw-flex htw-flex-1" };
14
+ const _hoisted_3 = { class: "htw-flex htw-w-0 htw-flex-1 htw-mx-4" };
15
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  __name: "StoryVariantGrid",
17
17
  setup(__props) {
@@ -99,13 +99,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  createVNode(ToolbarBackground),
100
100
  createVNode(_sfc_main$1)
101
101
  ])) : createCommentVNode("", true),
102
- createElementVNode("div", _hoisted_3, [
103
- createElementVNode("div", {
104
- ref_key: "el",
105
- ref: el,
106
- class: "htw-flex htw-w-0 htw-flex-1 htw-mx-4",
107
- onScroll: _cache[0] || (_cache[0] = ($event) => updateMaxCount())
108
- }, [
102
+ createElementVNode("div", {
103
+ ref_key: "el",
104
+ ref: el,
105
+ class: "htw-overflow-y-auto htw-flex htw-flex-1",
106
+ onScroll: _cache[0] || (_cache[0] = ($event) => updateMaxCount())
107
+ }, [
108
+ createElementVNode("div", _hoisted_3, [
109
109
  createElementVNode("div", {
110
110
  class: "htw-m-auto",
111
111
  style: normalizeStyle({
@@ -130,8 +130,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
130
  }), 128))
131
131
  ], 4)
132
132
  ], 4)
133
- ], 544)
134
- ])
133
+ ])
134
+ ], 544)
135
135
  ]);
136
136
  };
137
137
  }
@@ -55,22 +55,17 @@
55
55
  color: var(--ae892164);
56
56
  }
57
57
 
58
- .bind-icon-color[data-v-ab890d9c] {
59
- color: var(--89126aaa);
58
+ .bind-icon-color[data-v-ddfc5b4f] {
59
+ color: var(--4d25d048);
60
60
  }
61
61
 
62
- .__histoire-code-placeholder[data-v-36810e45] {
62
+ .__histoire-code-placeholder[data-v-f528bb1b] {
63
63
  color: inherit;
64
64
  font-size: inherit;
65
65
  }
66
66
 
67
- .bind-icon-color[data-v-ddfc5b4f] {
68
- color: var(--4d25d048);
69
- }
70
-
71
- .bind-preview-bg[data-v-c48fb2b2] {
72
- background-color: var(--627bec82);
73
- color: var(--35068428);
67
+ .bind-icon-color[data-v-ab890d9c] {
68
+ color: var(--89126aaa);
74
69
  }
75
70
 
76
71
  .bind-icon-color[data-v-f7c98176] {
@@ -80,6 +75,11 @@
80
75
  background-color: var(--f4b27ac2);
81
76
  }
82
77
 
78
+ .bind-preview-bg[data-v-c48fb2b2] {
79
+ background-color: var(--627bec82);
80
+ color: var(--35068428);
81
+ }
82
+
83
83
  .bind-icon-color[data-v-d95fcb03] {
84
84
  color: var(--beebbd52);
85
85
  }
package/dist/style.css CHANGED
@@ -1055,151 +1055,6 @@ body {
1055
1055
  margin-top:1.25rem
1056
1056
  }
1057
1057
 
1058
- .htw-prose-sm :where(.htw-prose > ul > li p):not(:where([class~="htw-not-prose"] *)){
1059
- margin-top:0.5714286em;
1060
- margin-bottom:0.5714286em
1061
- }
1062
-
1063
- .htw-prose-sm :where(.htw-prose > ul > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1064
- margin-top:1.1428571em
1065
- }
1066
-
1067
- .htw-prose-sm :where(.htw-prose > ul > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1068
- margin-bottom:1.1428571em
1069
- }
1070
-
1071
- .htw-prose-sm :where(.htw-prose > ol > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1072
- margin-top:1.1428571em
1073
- }
1074
-
1075
- .htw-prose-sm :where(.htw-prose > ol > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1076
- margin-bottom:1.1428571em
1077
- }
1078
-
1079
- .htw-prose-sm :where(.htw-prose > :first-child):not(:where([class~="htw-not-prose"] *)){
1080
- margin-top:0
1081
- }
1082
-
1083
- .htw-prose-sm :where(.htw-prose > :last-child):not(:where([class~="htw-not-prose"] *)){
1084
- margin-bottom:0
1085
- }
1086
-
1087
- .htw-prose-base :where(.htw-prose > ul > li p):not(:where([class~="htw-not-prose"] *)){
1088
- margin-top:0.75em;
1089
- margin-bottom:0.75em
1090
- }
1091
-
1092
- .htw-prose-base :where(.htw-prose > ul > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1093
- margin-top:1.25em
1094
- }
1095
-
1096
- .htw-prose-base :where(.htw-prose > ul > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1097
- margin-bottom:1.25em
1098
- }
1099
-
1100
- .htw-prose-base :where(.htw-prose > ol > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1101
- margin-top:1.25em
1102
- }
1103
-
1104
- .htw-prose-base :where(.htw-prose > ol > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1105
- margin-bottom:1.25em
1106
- }
1107
-
1108
- .htw-prose-base :where(.htw-prose > :first-child):not(:where([class~="htw-not-prose"] *)){
1109
- margin-top:0
1110
- }
1111
-
1112
- .htw-prose-base :where(.htw-prose > :last-child):not(:where([class~="htw-not-prose"] *)){
1113
- margin-bottom:0
1114
- }
1115
-
1116
- .htw-prose-lg :where(.htw-prose > ul > li p):not(:where([class~="htw-not-prose"] *)){
1117
- margin-top:0.8888889em;
1118
- margin-bottom:0.8888889em
1119
- }
1120
-
1121
- .htw-prose-lg :where(.htw-prose > ul > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1122
- margin-top:1.3333333em
1123
- }
1124
-
1125
- .htw-prose-lg :where(.htw-prose > ul > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1126
- margin-bottom:1.3333333em
1127
- }
1128
-
1129
- .htw-prose-lg :where(.htw-prose > ol > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1130
- margin-top:1.3333333em
1131
- }
1132
-
1133
- .htw-prose-lg :where(.htw-prose > ol > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1134
- margin-bottom:1.3333333em
1135
- }
1136
-
1137
- .htw-prose-lg :where(.htw-prose > :first-child):not(:where([class~="htw-not-prose"] *)){
1138
- margin-top:0
1139
- }
1140
-
1141
- .htw-prose-lg :where(.htw-prose > :last-child):not(:where([class~="htw-not-prose"] *)){
1142
- margin-bottom:0
1143
- }
1144
-
1145
- .htw-prose-xl :where(.htw-prose > ul > li p):not(:where([class~="htw-not-prose"] *)){
1146
- margin-top:0.8em;
1147
- margin-bottom:0.8em
1148
- }
1149
-
1150
- .htw-prose-xl :where(.htw-prose > ul > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1151
- margin-top:1.2em
1152
- }
1153
-
1154
- .htw-prose-xl :where(.htw-prose > ul > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1155
- margin-bottom:1.2em
1156
- }
1157
-
1158
- .htw-prose-xl :where(.htw-prose > ol > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1159
- margin-top:1.2em
1160
- }
1161
-
1162
- .htw-prose-xl :where(.htw-prose > ol > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1163
- margin-bottom:1.2em
1164
- }
1165
-
1166
- .htw-prose-xl :where(.htw-prose > :first-child):not(:where([class~="htw-not-prose"] *)){
1167
- margin-top:0
1168
- }
1169
-
1170
- .htw-prose-xl :where(.htw-prose > :last-child):not(:where([class~="htw-not-prose"] *)){
1171
- margin-bottom:0
1172
- }
1173
-
1174
- .htw-prose-2xl :where(.htw-prose > ul > li p):not(:where([class~="htw-not-prose"] *)){
1175
- margin-top:0.8333333em;
1176
- margin-bottom:0.8333333em
1177
- }
1178
-
1179
- .htw-prose-2xl :where(.htw-prose > ul > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1180
- margin-top:1.3333333em
1181
- }
1182
-
1183
- .htw-prose-2xl :where(.htw-prose > ul > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1184
- margin-bottom:1.3333333em
1185
- }
1186
-
1187
- .htw-prose-2xl :where(.htw-prose > ol > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1188
- margin-top:1.3333333em
1189
- }
1190
-
1191
- .htw-prose-2xl :where(.htw-prose > ol > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1192
- margin-bottom:1.3333333em
1193
- }
1194
-
1195
- .htw-prose-2xl :where(.htw-prose > :first-child):not(:where([class~="htw-not-prose"] *)){
1196
- margin-top:0
1197
- }
1198
-
1199
- .htw-prose-2xl :where(.htw-prose > :last-child):not(:where([class~="htw-not-prose"] *)){
1200
- margin-bottom:0
1201
- }
1202
-
1203
1058
  .htw-pointer-events-none{
1204
1059
  pointer-events:none
1205
1060
  }
@@ -2562,25 +2417,6 @@ body {
2562
2417
  background-color:rgb(var(--_histoire-color-gray-500) / 0.2)
2563
2418
  }
2564
2419
 
2565
- .htw-dark .dark\:htw-prose-invert{
2566
- --tw-prose-body:var(--tw-prose-invert-body);
2567
- --tw-prose-headings:var(--tw-prose-invert-headings);
2568
- --tw-prose-lead:var(--tw-prose-invert-lead);
2569
- --tw-prose-links:var(--tw-prose-invert-links);
2570
- --tw-prose-bold:var(--tw-prose-invert-bold);
2571
- --tw-prose-counters:var(--tw-prose-invert-counters);
2572
- --tw-prose-bullets:var(--tw-prose-invert-bullets);
2573
- --tw-prose-hr:var(--tw-prose-invert-hr);
2574
- --tw-prose-quotes:var(--tw-prose-invert-quotes);
2575
- --tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);
2576
- --tw-prose-captions:var(--tw-prose-invert-captions);
2577
- --tw-prose-code:var(--tw-prose-invert-code);
2578
- --tw-prose-pre-code:var(--tw-prose-invert-pre-code);
2579
- --tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);
2580
- --tw-prose-th-borders:var(--tw-prose-invert-th-borders);
2581
- --tw-prose-td-borders:var(--tw-prose-invert-td-borders)
2582
- }
2583
-
2584
2420
  .htw-dark .dark\:htw-divide-gray-800 > :not([hidden]) ~ :not([hidden]){
2585
2421
  --tw-divide-opacity:1;
2586
2422
  border-color:rgb(var(--_histoire-color-gray-800) / var(--tw-divide-opacity))
@@ -2676,6 +2512,25 @@ body {
2676
2512
  background-color:rgb(var(--_histoire-color-gray-600) / var(--tw-bg-opacity))
2677
2513
  }
2678
2514
 
2515
+ .htw-dark .dark\:htw-prose-invert{
2516
+ --tw-prose-body:var(--tw-prose-invert-body);
2517
+ --tw-prose-headings:var(--tw-prose-invert-headings);
2518
+ --tw-prose-lead:var(--tw-prose-invert-lead);
2519
+ --tw-prose-links:var(--tw-prose-invert-links);
2520
+ --tw-prose-bold:var(--tw-prose-invert-bold);
2521
+ --tw-prose-counters:var(--tw-prose-invert-counters);
2522
+ --tw-prose-bullets:var(--tw-prose-invert-bullets);
2523
+ --tw-prose-hr:var(--tw-prose-invert-hr);
2524
+ --tw-prose-quotes:var(--tw-prose-invert-quotes);
2525
+ --tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);
2526
+ --tw-prose-captions:var(--tw-prose-invert-captions);
2527
+ --tw-prose-code:var(--tw-prose-invert-code);
2528
+ --tw-prose-pre-code:var(--tw-prose-invert-pre-code);
2529
+ --tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);
2530
+ --tw-prose-th-borders:var(--tw-prose-invert-th-borders);
2531
+ --tw-prose-td-borders:var(--tw-prose-invert-td-borders)
2532
+ }
2533
+
2679
2534
  .htw-dark .dark\:htw-text-gray-100{
2680
2535
  --tw-text-opacity:1;
2681
2536
  color:rgb(var(--_histoire-color-gray-100) / var(--tw-text-opacity))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/app",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "description": "Pre-bundled UI for Histoire",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "types": "./src/index.ts",
26
26
  "dependencies": {
27
- "@histoire/controls": "^0.11.8",
28
- "@histoire/shared": "^0.11.8",
29
- "@histoire/vendors": "^0.11.8",
27
+ "@histoire/controls": "^0.11.9",
28
+ "@histoire/shared": "^0.11.9",
29
+ "@histoire/vendors": "^0.11.9",
30
30
  "@types/flexsearch": "^0.7.3",
31
31
  "flexsearch": "0.7.21",
32
- "shiki": "0.10.1"
32
+ "shiki-es": "^0.1.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@tailwindcss/typography": "^0.5.2",
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import { computed, markRaw, nextTick, onMounted, ref, shallowRef, watch, watchEffect } from 'vue'
3
3
  import { Icon } from '@iconify/vue'
4
- import { getHighlighter, Highlighter, setCDN } from 'shiki'
4
+ import { getHighlighter, Highlighter } from 'shiki-es'
5
5
  import { HstCopyIcon } from '@histoire/controls'
6
6
  import { unindent } from '@histoire/shared'
7
7
  // @ts-expect-error virtual module
@@ -84,7 +84,6 @@ const displayedSourceCode = computed(() => {
84
84
  // HTML render
85
85
 
86
86
  onMounted(async () => {
87
- setCDN('https://unpkg.com/shiki@0.10.1/')
88
87
  highlighter.value = await getHighlighter({
89
88
  langs: [
90
89
  'html',
@@ -127,12 +127,12 @@ const columnCount = computed(() => Math.min(storyStore.currentStory.variants.len
127
127
  <ToolbarTextDirection />
128
128
  </div>
129
129
 
130
- <div class="htw-overflow-y-auto htw-flex htw-flex-1">
131
- <div
132
- ref="el"
133
- class="htw-flex htw-w-0 htw-flex-1 htw-mx-4"
134
- @scroll="updateMaxCount()"
135
- >
130
+ <div
131
+ ref="el"
132
+ class="htw-overflow-y-auto htw-flex htw-flex-1"
133
+ @scroll="updateMaxCount()"
134
+ >
135
+ <div class="htw-flex htw-w-0 htw-flex-1 htw-mx-4">
136
136
  <div
137
137
  class="htw-m-auto"
138
138
  :style="{
@@ -1,4 +0,0 @@
1
- const StorySourceCode_vue_vue_type_style_index_0_scoped_36810e45_lang = "";
2
- export {
3
- StorySourceCode_vue_vue_type_style_index_0_scoped_36810e45_lang as default
4
- };