@histoire/controls 0.17.15 → 0.17.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.
Files changed (56) hide show
  1. package/dist/components/HstCopyIcon.vue.d.ts +3 -3
  2. package/dist/components/HstWrapper.vue.d.ts +11 -11
  3. package/dist/components/button/HstButton.vue.d.ts +141 -10
  4. package/dist/components/button/HstButtonGroup.vue.d.ts +9 -9
  5. package/dist/components/checkbox/HstCheckbox.vue.d.ts +8 -8
  6. package/dist/components/checkbox/HstCheckboxList.vue.d.ts +9 -9
  7. package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +3 -3
  8. package/dist/components/colorselect/HstColorSelect.vue.d.ts +8 -8
  9. package/dist/components/design-tokens/HstColorShades.vue.d.ts +8 -8
  10. package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +12 -12
  11. package/dist/components/design-tokens/HstTokenList.vue.d.ts +9 -9
  12. package/dist/components/json/HstJson.vue.d.ts +8 -8
  13. package/dist/components/number/HstNumber.vue.d.ts +8 -8
  14. package/dist/components/radio/HstRadio.vue.d.ts +9 -9
  15. package/dist/components/select/CustomSelect.vue.d.ts +9 -9
  16. package/dist/components/select/HstSelect.vue.d.ts +9 -9
  17. package/dist/components/slider/HstSlider.vue.d.ts +3 -3
  18. package/dist/components/text/HstText.vue.d.ts +8 -8
  19. package/dist/components/textarea/HstTextarea.vue.d.ts +8 -8
  20. package/dist/index.d.ts +48 -48
  21. package/dist/index.es.js +69 -67
  22. package/dist/style.css +1 -1
  23. package/package.json +12 -12
  24. package/src/components/HstCopyIcon.vue +1 -1
  25. package/src/components/HstWrapper.vue +0 -1
  26. package/src/components/button/HstButton.story.vue +1 -1
  27. package/src/components/button/HstButtonGroup.story.vue +2 -2
  28. package/src/components/button/HstButtonGroup.vue +8 -5
  29. package/src/components/checkbox/HstCheckbox.spec.ts +3 -3
  30. package/src/components/checkbox/HstCheckbox.story.vue +1 -1
  31. package/src/components/checkbox/HstCheckbox.vue +2 -2
  32. package/src/components/checkbox/HstCheckboxList.story.vue +1 -1
  33. package/src/components/checkbox/HstCheckboxList.vue +9 -6
  34. package/src/components/checkbox/HstSimpleCheckbox.story.vue +1 -1
  35. package/src/components/checkbox/HstSimpleCheckbox.vue +2 -2
  36. package/src/components/checkbox/__snapshots__/HstCheckbox.spec.ts.snap +4 -0
  37. package/src/components/colorselect/HstColorSelect.vue +1 -4
  38. package/src/components/design-tokens/HstColorShades.story.vue +2 -2
  39. package/src/components/design-tokens/HstColorShades.vue +2 -2
  40. package/src/components/design-tokens/HstTokenGrid.story.vue +6 -6
  41. package/src/components/design-tokens/HstTokenList.story.vue +23 -23
  42. package/src/components/json/HstJson.story.vue +1 -1
  43. package/src/components/json/HstJson.vue +15 -12
  44. package/src/components/number/HstNumber.story.vue +1 -1
  45. package/src/components/number/HstNumber.vue +8 -8
  46. package/src/components/radio/HstRadio.story.vue +1 -1
  47. package/src/components/radio/HstRadio.vue +7 -5
  48. package/src/components/select/CustomSelect.vue +9 -7
  49. package/src/components/select/HstSelect.story.vue +1 -1
  50. package/src/components/select/HstSelect.vue +1 -1
  51. package/src/components/slider/HstSlider.vue +3 -3
  52. package/src/components/text/HstText.story.vue +1 -1
  53. package/src/components/textarea/HstTextarea.story.vue +1 -1
  54. package/tailwind.config.cjs +1 -1
  55. package/tsconfig.json +25 -25
  56. package/vite.config.ts +8 -8
@@ -6,7 +6,7 @@ export default {
6
6
  </script>
7
7
 
8
8
  <script lang="ts" setup>
9
- import { computed, ref } from 'vue'
9
+ import { computed } from 'vue'
10
10
  import HstWrapper from '../HstWrapper.vue'
11
11
 
12
12
  const props = defineProps<{
@@ -18,8 +18,6 @@ const emit = defineEmits({
18
18
  'update:modelValue': (newValue: string) => true,
19
19
  })
20
20
 
21
- const input = ref<HTMLInputElement>(null)
22
-
23
21
  const stringModel = computed({
24
22
  get: () => props.modelValue,
25
23
  set: value => {
@@ -72,7 +70,6 @@ function processChange(inp) {
72
70
  >
73
71
  <div class="htw-flex htw-flex-row htw-gap-1">
74
72
  <input
75
- ref="input"
76
73
  v-bind="{ ...$attrs, class: null, style: null }"
77
74
  v-model="stringModel"
78
75
  type="text"
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" setup>
2
- import HstColorShades from './HstColorShades.vue'
3
2
  import type { CSSProperties } from 'vue'
3
+ import HstColorShades from './HstColorShades.vue'
4
4
 
5
5
  const colors = {
6
6
  slate: {
@@ -329,7 +329,7 @@ const colors = {
329
329
  <div
330
330
  class="htw-rounded htw-h-[100px] htw-text-5xl htw-flex htw-items-end"
331
331
  :style="{
332
- color: color,
332
+ color,
333
333
  } as CSSProperties"
334
334
  >
335
335
  Aa
@@ -7,8 +7,8 @@ export default {
7
7
  <script lang="ts" setup>
8
8
  import { computed, ref } from 'vue'
9
9
  import { VTooltip as vTooltip } from 'floating-vue'
10
- import HstCopyIcon from '../HstCopyIcon.vue'
11
10
  import type { CSSProperties } from 'vue'
11
+ import HstCopyIcon from '../HstCopyIcon.vue'
12
12
 
13
13
  const props = defineProps<{
14
14
  shades: Record<string, any>
@@ -16,7 +16,7 @@ const props = defineProps<{
16
16
  search?: string
17
17
  }>()
18
18
 
19
- const flattenShades = (shades: Record<string, any>, path = ''): Record<string, string> => {
19
+ function flattenShades(shades: Record<string, any>, path = ''): Record<string, string> {
20
20
  return Object.entries(shades).reduce((acc, [key, color]) => {
21
21
  const nextPath = path ? key === 'DEFAULT' ? path : `${path}-${key}` : key
22
22
  const obj = typeof color === 'object' ? flattenShades(color, nextPath) : { [nextPath]: color }
@@ -2,13 +2,13 @@
2
2
  import HstTokenGrid from './HstTokenGrid.vue'
3
3
 
4
4
  const tokens = {
5
- sm: 'filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))',
6
- DEFAULT: 'filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))',
7
- md: 'filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))',
8
- lg: 'filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))',
9
- xl: 'filter: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))',
5
+ 'sm': 'filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))',
6
+ 'DEFAULT': 'filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))',
7
+ 'md': 'filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))',
8
+ 'lg': 'filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))',
9
+ 'xl': 'filter: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))',
10
10
  '2xl': 'filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15))',
11
- none: 'filter: drop-shadow(0 0 #0000)',
11
+ 'none': 'filter: drop-shadow(0 0 #0000)',
12
12
  }
13
13
  </script>
14
14
 
@@ -1,29 +1,29 @@
1
1
  <script lang="ts" setup>
2
- import HstTokenList from './HstTokenList.vue'
3
2
  import type { CSSProperties } from 'vue'
3
+ import HstTokenList from './HstTokenList.vue'
4
4
 
5
5
  const tokens = {
6
- 0: 0,
7
- 1: '0.25rem',
8
- 2: '0.5rem',
9
- 3: '0.75rem',
10
- 4: '1rem',
11
- 5: '1.25rem',
12
- 6: '1.5rem',
13
- 8: '2rem',
14
- 10: '2.5rem',
15
- 12: '3rem',
16
- 16: '4rem',
17
- 20: '5rem',
18
- 24: '6rem',
19
- 32: '8rem',
20
- 40: '10rem',
21
- 48: '12rem',
22
- 56: '14rem',
23
- 64: '16rem',
24
- auto: 'auto',
25
- px: '1px',
26
- screen: '100vw',
6
+ '0': 0,
7
+ '1': '0.25rem',
8
+ '2': '0.5rem',
9
+ '3': '0.75rem',
10
+ '4': '1rem',
11
+ '5': '1.25rem',
12
+ '6': '1.5rem',
13
+ '8': '2rem',
14
+ '10': '2.5rem',
15
+ '12': '3rem',
16
+ '16': '4rem',
17
+ '20': '5rem',
18
+ '24': '6rem',
19
+ '32': '8rem',
20
+ '40': '10rem',
21
+ '48': '12rem',
22
+ '56': '14rem',
23
+ '64': '16rem',
24
+ 'auto': 'auto',
25
+ 'px': '1px',
26
+ 'screen': '100vw',
27
27
  '1/2': '50%',
28
28
  '1/3': '33.333333%',
29
29
  '2/3': '66.666667%',
@@ -50,7 +50,7 @@ const tokens = {
50
50
  '9/12': '75%',
51
51
  '10/12': '83.333333%',
52
52
  '11/12': '91.666667%',
53
- full: '100%',
53
+ 'full': '100%',
54
54
  }
55
55
  </script>
56
56
 
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import HstJson from './HstJson.vue'
3
3
 
4
- function initState () {
4
+ function initState() {
5
5
  return {
6
6
  film: {
7
7
  year: 2017,
@@ -6,31 +6,33 @@ export default {
6
6
  </script>
7
7
 
8
8
  <script lang="ts" setup>
9
- import { ref, onMounted, watch, watchEffect } from 'vue'
9
+ import { onMounted, ref, watch, watchEffect } from 'vue'
10
10
  import { Icon } from '@iconify/vue'
11
- import HstWrapper from '../HstWrapper.vue'
12
11
  import { VTooltip as vTooltip } from 'floating-vue'
13
12
  import { Compartment } from '@codemirror/state'
13
+ import type {
14
+ ViewUpdate,
15
+ } from '@codemirror/view'
14
16
  import {
15
17
  EditorView,
16
- keymap,
17
- highlightActiveLineGutter,
18
18
  highlightActiveLine,
19
+ highlightActiveLineGutter,
19
20
  highlightSpecialChars,
20
- ViewUpdate,
21
+ keymap,
21
22
  } from '@codemirror/view'
22
23
  import { defaultKeymap } from '@codemirror/commands'
23
24
  import { json } from '@codemirror/lang-json'
24
25
  import {
25
- defaultHighlightStyle,
26
- syntaxHighlighting,
27
- indentOnInput,
28
26
  bracketMatching,
27
+ defaultHighlightStyle,
29
28
  foldGutter,
30
29
  foldKeymap,
30
+ indentOnInput,
31
+ syntaxHighlighting,
31
32
  } from '@codemirror/language'
32
33
  import { lintKeymap } from '@codemirror/lint'
33
- import { oneDarkTheme, oneDarkHighlightStyle } from '@codemirror/theme-one-dark'
34
+ import { oneDarkHighlightStyle, oneDarkTheme } from '@codemirror/theme-one-dark'
35
+ import HstWrapper from '../HstWrapper.vue'
34
36
  import { isDark } from '../../utils'
35
37
 
36
38
  const props = defineProps<{
@@ -94,7 +96,8 @@ watch(() => props.modelValue, () => {
94
96
 
95
97
  try {
96
98
  sameDocument = (JSON.stringify(JSON.parse(internalValue.value)) === JSON.stringify(props.modelValue))
97
- } catch (e) {
99
+ }
100
+ catch (e) {
98
101
  sameDocument = false
99
102
  }
100
103
 
@@ -107,11 +110,11 @@ watch(() => internalValue.value, () => {
107
110
  invalidValue.value = false
108
111
  try {
109
112
  emit('update:modelValue', JSON.parse(internalValue.value))
110
- } catch (e) {
113
+ }
114
+ catch (e) {
111
115
  invalidValue.value = true
112
116
  }
113
117
  })
114
-
115
118
  </script>
116
119
 
117
120
  <template>
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import HstNumber from './HstNumber.vue'
3
3
 
4
- function initState () {
4
+ function initState() {
5
5
  return {
6
6
  count: 20,
7
7
  step: 1,
@@ -6,7 +6,7 @@ export default {
6
6
  </script>
7
7
 
8
8
  <script lang="ts" setup>
9
- import { computed, ref, onUnmounted } from 'vue'
9
+ import { computed, onUnmounted, ref } from 'vue'
10
10
  import HstWrapper from '../HstWrapper.vue'
11
11
 
12
12
  const props = defineProps<{
@@ -20,14 +20,14 @@ const emit = defineEmits({
20
20
 
21
21
  const numberModel = computed({
22
22
  get: () => props.modelValue,
23
- set: value => {
23
+ set: (value) => {
24
24
  emit('update:modelValue', value)
25
25
  },
26
26
  })
27
27
 
28
28
  const input = ref<HTMLInputElement>()
29
29
 
30
- function focusAndSelect () {
30
+ function focusAndSelect() {
31
31
  input.value.focus()
32
32
  input.value.select()
33
33
  }
@@ -38,7 +38,7 @@ const isDragging = ref(false)
38
38
  let startX: number
39
39
  let startValue: number
40
40
 
41
- function onMouseDown (event: MouseEvent) {
41
+ function onMouseDown(event: MouseEvent) {
42
42
  isDragging.value = true
43
43
  startX = event.clientX
44
44
  startValue = numberModel.value
@@ -46,15 +46,15 @@ function onMouseDown (event: MouseEvent) {
46
46
  window.addEventListener('mouseup', stopDragging)
47
47
  }
48
48
 
49
- function onMouseMove (event: MouseEvent) {
50
- let step = parseFloat(input.value.step)
51
- if (isNaN(step)) {
49
+ function onMouseMove(event: MouseEvent) {
50
+ let step = Number.parseFloat(input.value.step)
51
+ if (Number.isNaN(step)) {
52
52
  step = 1
53
53
  }
54
54
  numberModel.value = startValue + Math.round((event.clientX - startX) / 10 / step) * step
55
55
  }
56
56
 
57
- function stopDragging () {
57
+ function stopDragging() {
58
58
  isDragging.value = false
59
59
  window.removeEventListener('mousemove', onMouseMove)
60
60
  window.removeEventListener('mouseup', stopDragging)
@@ -14,7 +14,7 @@ const objectOptions = Object.keys(options).map(key => ({
14
14
  value: key,
15
15
  }))
16
16
 
17
- function initState () {
17
+ function initState() {
18
18
  return {
19
19
  character: flatOptions[0],
20
20
  }
@@ -5,9 +5,10 @@ export default {
5
5
  </script>
6
6
 
7
7
  <script lang="ts" setup>
8
- import { computed, ComputedRef, ref } from 'vue'
8
+ import type { ComputedRef } from 'vue'
9
+ import { computed, ref } from 'vue'
9
10
  import HstWrapper from '../HstWrapper.vue'
10
- import { HstControlOption } from '../../types'
11
+ import type { HstControlOption } from '../../types'
11
12
 
12
13
  const props = defineProps<{
13
14
  title?: string
@@ -20,7 +21,8 @@ const formattedOptions: ComputedRef<Record<string, string>> = computed(() => {
20
21
  return Object.fromEntries(props.options.map((value: string | HstControlOption) => {
21
22
  if (typeof value === 'string') {
22
23
  return [value, value]
23
- } else {
24
+ }
25
+ else {
24
26
  return [value.value, value.label]
25
27
  }
26
28
  }))
@@ -32,7 +34,7 @@ const emit = defineEmits<{
32
34
  (e: 'update:modelValue', value: string): void
33
35
  }>()
34
36
 
35
- function selectOption (value: string) {
37
+ function selectOption(value: string) {
36
38
  emit('update:modelValue', value)
37
39
  animationEnabled.value = true
38
40
  }
@@ -51,7 +53,7 @@ const animationEnabled = ref(false)
51
53
  >
52
54
  <div class="-htw-my-1">
53
55
  <template
54
- v-for="( label, value ) in formattedOptions"
56
+ v-for="(label, value) in formattedOptions"
55
57
  :key="value"
56
58
  >
57
59
  <input
@@ -6,9 +6,10 @@ export default {
6
6
 
7
7
  <script lang="ts" setup>
8
8
  import { Dropdown as VDropdown } from 'floating-vue'
9
- import { computed, ComputedRef } from 'vue'
9
+ import type { ComputedRef } from 'vue'
10
+ import { computed } from 'vue'
10
11
  import { Icon } from '@iconify/vue'
11
- import { HstControlOption } from '../../types'
12
+ import type { HstControlOption } from '../../types'
12
13
 
13
14
  const props = defineProps<{
14
15
  modelValue: string
@@ -21,21 +22,23 @@ const emit = defineEmits<{
21
22
 
22
23
  const formattedOptions: ComputedRef<[any, string][]> = computed(() => {
23
24
  if (Array.isArray(props.options)) {
24
- return props.options.map(option => {
25
+ return props.options.map((option) => {
25
26
  if (typeof option === 'string' || typeof option === 'number') {
26
27
  return [option, String(option)] as [any, string]
27
- } else {
28
+ }
29
+ else {
28
30
  return [option.value, option.label] as [any, string]
29
31
  }
30
32
  })
31
- } else {
33
+ }
34
+ else {
32
35
  return Object.entries(props.options)
33
36
  }
34
37
  })
35
38
 
36
39
  const selectedLabel = computed(() => formattedOptions.value.find(([value]) => value === props.modelValue)?.[1])
37
40
 
38
- function selectValue (value: any, hide: () => void) {
41
+ function selectValue(value: any, hide: () => void) {
39
42
  emit('update:modelValue', value)
40
43
  hide()
41
44
  }
@@ -113,5 +116,4 @@ function selectValue (value: any, hide: () => void) {
113
116
  .v-popper__popper:focus-visible {
114
117
  outline: none;
115
118
  }
116
-
117
119
  </style>
@@ -16,7 +16,7 @@ const objectOptions = Object.keys(options).map(key => ({
16
16
 
17
17
  const numberOptions = [0, 1, 2, 3, 4, 5]
18
18
 
19
- function initState () {
19
+ function initState() {
20
20
  return {
21
21
  label: 'My really long label',
22
22
  select: 'crash-bandicoot',
@@ -6,8 +6,8 @@ export default {
6
6
 
7
7
  <script lang="ts" setup>
8
8
  import HstWrapper from '../HstWrapper.vue'
9
+ import type { HstControlOption } from '../../types'
9
10
  import CustomSelect from './CustomSelect.vue'
10
- import { HstControlOption } from '../../types'
11
11
 
12
12
  defineProps<{
13
13
  title?: string
@@ -8,8 +8,8 @@ export default {
8
8
  <script lang="ts" setup>
9
9
  import { computed, ref } from 'vue'
10
10
  import type { CSSProperties } from 'vue'
11
- import HstWrapper from '../HstWrapper.vue'
12
11
  import { VTooltip as vTooltip } from 'floating-vue'
12
+ import HstWrapper from '../HstWrapper.vue'
13
13
 
14
14
  const props = defineProps<{
15
15
  title?: string
@@ -27,7 +27,7 @@ const input = ref<HTMLInputElement>(null)
27
27
 
28
28
  const numberModel = computed({
29
29
  get: () => props.modelValue,
30
- set: value => {
30
+ set: (value) => {
31
31
  emit('update:modelValue', value)
32
32
  },
33
33
  })
@@ -41,7 +41,7 @@ const tooltipStyle = computed<CSSProperties>(() => {
41
41
  if (input.value) {
42
42
  const position = gap + ((input.value.clientWidth - 2 * gap) * percentage.value)
43
43
  return {
44
- left: position + 'px',
44
+ left: `${position}px`,
45
45
  }
46
46
  }
47
47
  return {}
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import HstText from './HstText.vue'
3
3
 
4
- function initState () {
4
+ function initState() {
5
5
  return {
6
6
  label: 'My really long label',
7
7
  text: '',
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import HstTextarea from './HstTextarea.vue'
3
3
 
4
- function initState () {
4
+ function initState() {
5
5
  return {
6
6
  text: '',
7
7
  }
@@ -1,4 +1,4 @@
1
- const path = require('path')
1
+ const path = require('node:path')
2
2
  const inheritedConfig = require('../../tailwind.config.cjs')
3
3
 
4
4
  module.exports = {
package/tsconfig.json CHANGED
@@ -1,34 +1,16 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ESNext",
4
- "module": "ESNext",
5
- "moduleResolution": "node",
6
- "outDir": "dist",
7
- "rootDir": "src",
8
- "baseUrl": ".",
9
- "allowSyntheticDefaultImports": true,
10
- "esModuleInterop": true,
11
- "removeComments": false,
12
- "resolveJsonModule": true,
13
- "skipLibCheck": true,
14
- "types": [
15
- "node"
16
- ],
4
+ // Volar
5
+ "jsx": "preserve",
17
6
  "lib": [
18
7
  "ESNext",
19
8
  "DOM"
20
9
  ],
21
- "sourceMap": false,
22
- "preserveWatchOutput": true,
23
- "preserveSymlinks": true,
24
- // Strict
25
- "noImplicitAny": false,
26
- "noImplicitThis": true,
27
- "alwaysStrict": true,
28
- "strictBindCallApply": true,
29
- "strictFunctionTypes": true,
30
- // Volar
31
- "jsx": "preserve",
10
+ "baseUrl": ".",
11
+ "rootDir": "src",
12
+ "module": "ESNext",
13
+ "moduleResolution": "node",
32
14
  // Alias
33
15
  "paths": {
34
16
  "floating-vue": ["./node_modules/@histoire/vendors/floating-vue"],
@@ -38,7 +20,25 @@
38
20
  "vue-router": ["./node_modules/@histoire/vendors/vue-router"],
39
21
  "@vueuse/core": ["./node_modules/@histoire/vendors/vue-use"],
40
22
  "vue": ["./node_modules/@histoire/vendors/vue"]
41
- }
23
+ },
24
+ "resolveJsonModule": true,
25
+ "types": [
26
+ "node"
27
+ ],
28
+ "strictBindCallApply": true,
29
+ "strictFunctionTypes": true,
30
+ "alwaysStrict": true,
31
+ // Strict
32
+ "noImplicitAny": false,
33
+ "noImplicitThis": true,
34
+ "outDir": "dist",
35
+ "removeComments": false,
36
+ "sourceMap": false,
37
+ "allowSyntheticDefaultImports": true,
38
+ "esModuleInterop": true,
39
+ "preserveSymlinks": true,
40
+ "skipLibCheck": true,
41
+ "preserveWatchOutput": true
42
42
  },
43
43
  "include": [
44
44
  "src"
package/vite.config.ts CHANGED
@@ -11,14 +11,14 @@ export default defineConfig({
11
11
  alias: process.env.VITEST
12
12
  ? {}
13
13
  : {
14
- 'floating-vue': '@histoire/vendors/floating-vue',
15
- '@iconify/vue': '@histoire/vendors/iconify',
16
- pinia: '@histoire/vendors/pinia',
17
- 'scroll-into-view-if-needed': '@histoire/vendors/scroll',
18
- 'vue-router': '@histoire/vendors/vue-router',
19
- '@vueuse/core': '@histoire/vendors/vue-use',
20
- vue: '@histoire/vendors/vue',
21
- },
14
+ 'floating-vue': '@histoire/vendors/floating-vue',
15
+ '@iconify/vue': '@histoire/vendors/iconify',
16
+ 'pinia': '@histoire/vendors/pinia',
17
+ 'scroll-into-view-if-needed': '@histoire/vendors/scroll',
18
+ 'vue-router': '@histoire/vendors/vue-router',
19
+ '@vueuse/core': '@histoire/vendors/vue-use',
20
+ 'vue': '@histoire/vendors/vue',
21
+ },
22
22
  },
23
23
 
24
24
  build: {