@elmethis/vue 0.10.0 → 0.12.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.
@@ -0,0 +1,187 @@
1
+ import { type HTMLAttributes, type PropType, type VNodeChild } from "vue";
2
+ export type ElmSliderOrientation = "horizontal" | "vertical";
3
+ export interface ElmSliderProps extends Omit<HTMLAttributes, "onChange"> {
4
+ /**
5
+ * Lower bound of the track's full range.
6
+ *
7
+ * @defaultValue 0
8
+ */
9
+ min?: number;
10
+ /**
11
+ * Upper bound of the track's full range.
12
+ *
13
+ * @defaultValue 100
14
+ */
15
+ max?: number;
16
+ /**
17
+ * Increment the value snaps to while dragging or using the keyboard.
18
+ *
19
+ * @defaultValue 1
20
+ */
21
+ step?: number;
22
+ /**
23
+ * Restricts the value to an interval inside the track's full length. Must
24
+ * be `>= min`. The track still spans `[min, max]`, but the region below
25
+ * `innerMin` is shown as unreachable.
26
+ *
27
+ * @defaultValue min
28
+ */
29
+ innerMin?: number;
30
+ /**
31
+ * Restricts the value to an interval inside the track's full length. Must
32
+ * be `<= max`.
33
+ *
34
+ * @defaultValue max
35
+ */
36
+ innerMax?: number;
37
+ /**
38
+ * Track direction.
39
+ *
40
+ * @defaultValue "horizontal"
41
+ */
42
+ orientation?: ElmSliderOrientation;
43
+ /**
44
+ * Controlled value. Bind with `v-model:value`; when provided the parent
45
+ * owns the value (prop `value` + `update:value` event).
46
+ */
47
+ value?: number;
48
+ /**
49
+ * Initial value when uncontrolled.
50
+ *
51
+ * @defaultValue the midpoint of `innerMin`/`innerMax`
52
+ */
53
+ defaultValue?: number;
54
+ /**
55
+ * Disables dragging, clicking, and keyboard control.
56
+ */
57
+ disabled?: boolean;
58
+ /**
59
+ * Draws a tick mark at every step along the track.
60
+ */
61
+ markers?: boolean;
62
+ /**
63
+ * Draws a text label under each tick mark.
64
+ */
65
+ markerLabels?: boolean;
66
+ /**
67
+ * Formats the text shown for a marker label.
68
+ *
69
+ * @defaultValue String(value)
70
+ */
71
+ formatMarkerLabel?: (value: number) => VNodeChild;
72
+ }
73
+ export declare const ElmSlider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
74
+ min: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ max: {
79
+ type: NumberConstructor;
80
+ default: number;
81
+ };
82
+ step: {
83
+ type: NumberConstructor;
84
+ default: number;
85
+ };
86
+ innerMin: {
87
+ type: NumberConstructor;
88
+ default: undefined;
89
+ };
90
+ innerMax: {
91
+ type: NumberConstructor;
92
+ default: undefined;
93
+ };
94
+ orientation: {
95
+ type: PropType<ElmSliderOrientation>;
96
+ default: string;
97
+ };
98
+ value: {
99
+ type: NumberConstructor;
100
+ default: undefined;
101
+ };
102
+ defaultValue: {
103
+ type: NumberConstructor;
104
+ default: undefined;
105
+ };
106
+ disabled: {
107
+ type: BooleanConstructor;
108
+ default: undefined;
109
+ };
110
+ markers: {
111
+ type: BooleanConstructor;
112
+ default: undefined;
113
+ };
114
+ markerLabels: {
115
+ type: BooleanConstructor;
116
+ default: undefined;
117
+ };
118
+ formatMarkerLabel: {
119
+ type: PropType<(value: number) => VNodeChild>;
120
+ default: undefined;
121
+ };
122
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
123
+ min: {
124
+ type: NumberConstructor;
125
+ default: number;
126
+ };
127
+ max: {
128
+ type: NumberConstructor;
129
+ default: number;
130
+ };
131
+ step: {
132
+ type: NumberConstructor;
133
+ default: number;
134
+ };
135
+ innerMin: {
136
+ type: NumberConstructor;
137
+ default: undefined;
138
+ };
139
+ innerMax: {
140
+ type: NumberConstructor;
141
+ default: undefined;
142
+ };
143
+ orientation: {
144
+ type: PropType<ElmSliderOrientation>;
145
+ default: string;
146
+ };
147
+ value: {
148
+ type: NumberConstructor;
149
+ default: undefined;
150
+ };
151
+ defaultValue: {
152
+ type: NumberConstructor;
153
+ default: undefined;
154
+ };
155
+ disabled: {
156
+ type: BooleanConstructor;
157
+ default: undefined;
158
+ };
159
+ markers: {
160
+ type: BooleanConstructor;
161
+ default: undefined;
162
+ };
163
+ markerLabels: {
164
+ type: BooleanConstructor;
165
+ default: undefined;
166
+ };
167
+ formatMarkerLabel: {
168
+ type: PropType<(value: number) => VNodeChild>;
169
+ default: undefined;
170
+ };
171
+ }>> & Readonly<{
172
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
173
+ }>, {
174
+ defaultValue: number;
175
+ value: number;
176
+ markers: boolean;
177
+ disabled: boolean;
178
+ max: number;
179
+ orientation: ElmSliderOrientation;
180
+ min: number;
181
+ step: number;
182
+ innerMin: number;
183
+ innerMax: number;
184
+ markerLabels: boolean;
185
+ formatMarkerLabel: (value: number) => VNodeChild;
186
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
187
+ //# sourceMappingURL=elm-slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-slider.d.ts","sourceRoot":"","sources":["../../../src/components/form/elm-slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,UAAU,EAChB,MAAM,KAAK,CAAC;AAMb,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE7D,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACtE;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;IAEnC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC;CACnD;AA+BD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;cAkBA,QAAQ,CAAC,oBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAW5B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;cAXzC,QAAQ,CAAC,oBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAW5B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC;;;;;;;;;;;;;;;;;+BAAtB,MAAM,KAAK,UAAU;4EAwW5D,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { type PropType, type HTMLAttributes } from "vue";
2
+ export type NotionCalloutColor = "default" | "gray" | "red" | "orange" | "yellow" | "green" | "cyan" | "blue" | "purple" | "magenta";
3
+ export type NotionCalloutVariant = "filled" | "outlined";
4
+ export type NotionCalloutIcon = {
5
+ kind: "emoji";
6
+ emoji: string;
7
+ } | {
8
+ kind: "image";
9
+ src: string;
10
+ alt?: string;
11
+ };
12
+ export interface ElmNotionCalloutProps extends HTMLAttributes {
13
+ /**
14
+ * Icon shown before the content: a single emoji character or an image.
15
+ */
16
+ icon?: NotionCalloutIcon;
17
+ /**
18
+ * Accent hue for the callout.
19
+ */
20
+ color?: NotionCalloutColor;
21
+ /**
22
+ * Tinted background ("filled") or transparent with a colored border
23
+ * ("outlined").
24
+ */
25
+ variant?: NotionCalloutVariant;
26
+ }
27
+ export declare const ElmNotionCallout: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
28
+ icon: {
29
+ type: PropType<NotionCalloutIcon>;
30
+ default: undefined;
31
+ };
32
+ color: {
33
+ type: PropType<NotionCalloutColor>;
34
+ default: string;
35
+ };
36
+ variant: {
37
+ type: PropType<NotionCalloutVariant>;
38
+ default: string;
39
+ };
40
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
+ icon: {
42
+ type: PropType<NotionCalloutIcon>;
43
+ default: undefined;
44
+ };
45
+ color: {
46
+ type: PropType<NotionCalloutColor>;
47
+ default: string;
48
+ };
49
+ variant: {
50
+ type: PropType<NotionCalloutVariant>;
51
+ default: string;
52
+ };
53
+ }>> & Readonly<{}>, {
54
+ color: NotionCalloutColor;
55
+ icon: NotionCalloutIcon;
56
+ variant: NotionCalloutVariant;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
+ //# sourceMappingURL=elm-notion-callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-notion-callout.d.ts","sourceRoot":"","sources":["../../../src/components/notion/elm-notion-callout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAM1E,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,MAAM,GACN,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED,eAAO,MAAM,gBAAgB;;cAID,QAAQ,CAAC,iBAAiB,CAAC;;;;cAEjC,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,oBAAoB,CAAC;;;;;cANxB,QAAQ,CAAC,iBAAiB,CAAC;;;;cAEjC,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,oBAAoB,CAAC;;;;;;;4EAoClD,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { type HTMLAttributes, type PropType } from "vue";
2
+ export interface ElmHtmlProps extends HTMLAttributes {
3
+ /** Raw HTML markup to render, e.g. a Claude-authored artifact or a Notion page export. */
4
+ html: string;
5
+ /**
6
+ * Stretch the iframe to fit its content height. Set to false to size it
7
+ * yourself instead (via `style`, `height`, or a CSS class).
8
+ * @default true
9
+ */
10
+ autoHeight?: boolean;
11
+ /**
12
+ * Sandbox flags applied to the iframe (space-separated, same syntax as the
13
+ * native `sandbox` attribute). While `autoHeight` is on, `allow-same-origin`
14
+ * is force-added unless this already requests `allow-scripts` (see below).
15
+ */
16
+ sandbox?: string;
17
+ /** Native iframe `height` attribute, in pixels. */
18
+ height?: number | `${number}`;
19
+ /** Accessible name for the iframe. @default "Embedded HTML content" */
20
+ title?: string;
21
+ }
22
+ export declare const ElmHtml: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
23
+ html: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ autoHeight: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ sandbox: {
32
+ type: StringConstructor;
33
+ default: undefined;
34
+ };
35
+ height: {
36
+ type: PropType<number | `${number}`>;
37
+ default: undefined;
38
+ };
39
+ title: {
40
+ type: StringConstructor;
41
+ default: undefined;
42
+ };
43
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
+ html: {
45
+ type: StringConstructor;
46
+ required: true;
47
+ };
48
+ autoHeight: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ sandbox: {
53
+ type: StringConstructor;
54
+ default: undefined;
55
+ };
56
+ height: {
57
+ type: PropType<number | `${number}`>;
58
+ default: undefined;
59
+ };
60
+ title: {
61
+ type: StringConstructor;
62
+ default: undefined;
63
+ };
64
+ }>> & Readonly<{}>, {
65
+ title: string;
66
+ height: number | `${number}`;
67
+ autoHeight: boolean;
68
+ sandbox: string;
69
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
70
+ //# sourceMappingURL=elm-html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-html.d.ts","sourceRoot":"","sources":["../../../src/components/others/elm-html.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,QAAQ,EACd,MAAM,KAAK,CAAC;AA6Db,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,0FAA0F;IAC1F,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IAE9B,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;cAUY,QAAQ,CAAC,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;cAA9B,QAAQ,CAAC,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;;;;;;;;;;;;4EAuM5D,CAAC"}
@@ -40,5 +40,5 @@ export declare function useBindableSignal<P extends object, K extends keyof P>(a
40
40
  emit: (event: `update:${string & K}`, ...payload: unknown[]) => void;
41
41
  /** Initial value for the internal state when unbound. */
42
42
  defaultValue: NonNullable<P[K]>;
43
- }): Ref<UnwrapRef<P[K]>>;
43
+ }): Ref<NonNullable<UnwrapRef<P[K]>>>;
44
44
  //# sourceMappingURL=use-bindable-signal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-bindable-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-bindable-signal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE;IAC3E,+CAA+C;IAC/C,KAAK,EAAE,CAAC,CAAC;IACT,2EAA2E;IAC3E,GAAG,EAAE,CAAC,CAAC;IACP,wEAAwE;IACxE,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,MAAM,GAAG,CAAC,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrE,yDAAyD;IACzD,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACjC,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAGvB"}
1
+ {"version":3,"file":"use-bindable-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-bindable-signal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE;IAC3E,+CAA+C;IAC/C,KAAK,EAAE,CAAC,CAAC;IACT,2EAA2E;IAC3E,GAAG,EAAE,CAAC,CAAC;IACP,wEAAwE;IACxE,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,MAAM,GAAG,CAAC,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrE,yDAAyD;IACzD,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACjC,GAAG,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAWpC"}
@@ -4,6 +4,8 @@ export { basicCatalog } from "./components/a2ui/catalog/basic-catalog";
4
4
  export { blockCatalog } from "./components/a2ui/catalog/block-catalog";
5
5
  export { CatalogRenderer, defineRenderer, type RenderArgs, type RenderFn, type RendererEntry, type ChildRef, } from "./components/a2ui/catalog/catalog";
6
6
  export { ElmCodeBlock, type ElmCodeBlockProps, } from "./components/code/elm-code-block";
7
+ export { ElmHtml, type ElmHtmlProps } from "./components/code/elm-html";
8
+ export { ElmHtmlViewer, type ElmHtmlViewerProps, } from "./components/code/elm-html-viewer";
7
9
  export { ElmKatex, type ElmKatexProps } from "./components/code/elm-katex";
8
10
  export { ElmShikiHighlighter, type ElmShikiHighlighterProps, } from "./components/code/elm-shiki-highlighter";
9
11
  export { ElmCollapse, type ElmCollapseProps, } from "./components/containments/elm-collapse";
@@ -19,6 +21,7 @@ export { ElmButton, type ElmButtonProps } from "./components/form/elm-button";
19
21
  export { ElmButtonDropdown, type ElmButtonDropdownItem, type ElmButtonDropdownProps, } from "./components/form/elm-button-dropdown";
20
22
  export { ElmCheckbox, type ElmCheckboxProps, } from "./components/form/elm-checkbox";
21
23
  export { ElmSelect, type ElmSelectOption, type ElmSelectProps, } from "./components/form/elm-select";
24
+ export { ElmSlider, type ElmSliderOrientation, type ElmSliderProps, } from "./components/form/elm-slider";
22
25
  export { ElmSwitch, type ElmSwitchProps } from "./components/form/elm-switch";
23
26
  export { ElmTextArea, type ElmTextAreaProps, } from "./components/form/elm-text-area";
24
27
  export { ElmTextField, type ElmTextFieldProps, } from "./components/form/elm-text-field";
@@ -36,6 +39,7 @@ export { ElmFile, type ElmFileProps } from "./components/media/elm-file";
36
39
  export { ElmBookmark, type ElmBookmarkProps, } from "./components/navigation/elm-bookmark";
37
40
  export { ElmBreadcrumb, type ElmBreadcrumbLink, type ElmBreadcrumbProps, } from "./components/navigation/elm-breadcrumb";
38
41
  export { ElmPageTop, type ElmPageTopProps, } from "./components/navigation/elm-page-top";
42
+ export { ElmNotionCallout, type ElmNotionCalloutProps, type NotionCalloutColor, type NotionCalloutVariant, type NotionCalloutIcon, } from "./components/notion/elm-notion-callout";
39
43
  export { ElmColorPrimitiveSample, type ElmColorPrimitiveSampleProps, } from "./components/others/elm-color-primitive-sample";
40
44
  export { ElmColorSemanticSample, type ElmColorSemanticSampleProps, } from "./components/others/elm-color-semantic-sample";
41
45
  export { ElmMarkdown, type ElmMarkdownProps, } from "./components/others/elm-markdown";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAC;AAMnC,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EACL,eAAe,EACf,cAAc,EACd,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B,CAAC;AAGnC,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,eAAe,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/vue",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Vue 3 component library for elmethis.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -53,43 +53,43 @@
53
53
  "@vueuse/core": "^14.3.0",
54
54
  "clsx": "^2.1.1",
55
55
  "dompurify": "^3.4.2",
56
- "es-toolkit": "^1.48.1",
56
+ "es-toolkit": "^1.49.0",
57
57
  "katex": "^0.17.0",
58
58
  "marked": "^18.0.5",
59
- "shiki": "^4.2.0",
59
+ "shiki": "^4.3.0",
60
60
  "zod": "^3",
61
- "@elmethis/core": "^0.15.0"
61
+ "@elmethis/core": "^0.16.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@eslint/js": "latest",
65
65
  "@storybook/addon-docs": "^10.4.6",
66
66
  "@storybook/vue3-vite": "^10.4.6",
67
67
  "@types/katex": "^0.16.8",
68
- "@types/node": "^26.0.0",
68
+ "@types/node": "^26.1.0",
69
69
  "@vitejs/plugin-vue": "^6.0.7",
70
- "@vitejs/plugin-vue-jsx": "^5.1.5",
70
+ "@vitejs/plugin-vue-jsx": "^5.1.6",
71
71
  "@vitest/browser-playwright": "^4.1.9",
72
- "@vitest/coverage-v8": "^4.1.9",
72
+ "@vitest/coverage-v8": "^4.1.10",
73
73
  "@vitest/ui": "^4.1.9",
74
74
  "@vue/test-utils": "^2.4.11",
75
75
  "concurrently": "^10.0.3",
76
- "eslint": "^10.5.0",
77
- "globals": "^17.6.0",
76
+ "eslint": "^10.6.0",
77
+ "globals": "^17.7.0",
78
78
  "happy-dom": "^20.10.6",
79
- "playwright": "^1.61.0",
80
- "prettier": "3.8.4",
79
+ "playwright": "^1.61.1",
80
+ "prettier": "3.9.4",
81
81
  "storybook": "^10.4.6",
82
82
  "stylelint": "^17.13.0",
83
83
  "stylelint-config-css-modules": "^4.6.0",
84
84
  "stylelint-config-standard": "^40.0.0",
85
85
  "stylelint-value-no-unknown-custom-properties": "^6.1.1",
86
86
  "typescript": "~6.0.3",
87
- "typescript-eslint": "^8.61.1",
87
+ "typescript-eslint": "^8.63.0",
88
88
  "vite": "^8.0.4",
89
89
  "vitest": "^4.1.8",
90
90
  "vitest-browser-vue": "^2.1.0",
91
- "vue": "^3.5.38",
92
- "vue-tsc": "^3.3.5"
91
+ "vue": "^3.5.39",
92
+ "vue-tsc": "^3.3.7"
93
93
  },
94
94
  "scripts": {
95
95
  "build": "pnpm run build.lib && pnpm run build.types",
@@ -100,7 +100,7 @@
100
100
  "fmt": "prettier --write ./src",
101
101
  "fmt.check": "prettier --check ./src",
102
102
  "lint": "eslint \"src/**/*.ts*\"",
103
- "lint.css": "stylelint \"src/**/*.css\"",
103
+ "lint.css": "stylelint \"{src,.storybook}/**/*.css\"",
104
104
  "test": "pnpm run test.unit && pnpm run test.browser",
105
105
  "test.unit": "vitest --run",
106
106
  "test.coverage": "vitest --run --coverage",