@mantine-vue/code-highlight 2.3.0 → 2.4.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/cjs/index.cjs +12 -6
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +12 -6
- package/esm/index.mjs.map +1 -1
- package/lib/CodeHighlight/CodeHighlight.d.ts +6 -3
- package/lib/CodeHighlightTabs/CodeHighlightTabs.d.ts +8 -2
- package/lib/CodeHighlightTabs/FileIcon.d.ts +8 -2
- package/lib/index.d.mts +2 -2
- package/lib/index.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { type PropType, type VNodeChild } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
export interface FileIconSlots {
|
|
3
|
+
fileIcon?: () => VNodeChild;
|
|
4
|
+
getFileIcon?: (input: {
|
|
5
|
+
fileName: string;
|
|
6
|
+
}) => VNodeChild;
|
|
7
|
+
}
|
|
2
8
|
export declare const FileIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
9
|
fileName: {
|
|
4
10
|
type: StringConstructor;
|
|
@@ -31,4 +37,4 @@ export declare const FileIcon: import("vue").DefineComponent<import("vue").Extra
|
|
|
31
37
|
fileName: string;
|
|
32
38
|
getFileIcon: (fileName: string) => VNodeChild;
|
|
33
39
|
fileIcon: VNodeChild;
|
|
34
|
-
},
|
|
40
|
+
}, SlotsType<FileIconSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/lib/index.d.mts
CHANGED
|
@@ -8,8 +8,8 @@ export { createHighlightJsAdapter } from './CodeHighlightProvider/adapters/highl
|
|
|
8
8
|
export { createShikiAdapter, stripShikiCodeBlocks, } from './CodeHighlightProvider/adapters/shiki-adapter';
|
|
9
9
|
export { plainTextAdapter } from './CodeHighlightProvider/adapters/plain-text-adapter';
|
|
10
10
|
export type { CodeHighlightAdapter, Highlighter, HighlighterInput, } from './CodeHighlightProvider/CodeHighlightProvider';
|
|
11
|
-
export type { CodeHighlightCssVariables, CodeHighlightFactory, CodeHighlightProps, CodeHighlightSettings, CodeHighlightStylesNames, } from './CodeHighlight/CodeHighlight';
|
|
11
|
+
export type { CodeHighlightCssVariables, CodeHighlightFactory, CodeHighlightProps, CodeHighlightSettings, CodeHighlightSlots, CodeHighlightStylesNames, } from './CodeHighlight/CodeHighlight';
|
|
12
12
|
export type { CodeHighlightContextValue } from './CodeHighlight/CodeHighlight.context';
|
|
13
13
|
export type { CodeHighlightControlProps } from './CodeHighlight/CodeHighlightControl/CodeHighlightControl';
|
|
14
14
|
export type { InlineCodeHighlightCssVariables, InlineCodeHighlightFactory, InlineCodeHighlightProps, InlineCodeHighlightStylesNames, } from './CodeHighlight/InlineCodeHighlight';
|
|
15
|
-
export type { CodeHighlightDefaultLanguage, CodeHighlightTabsCode, CodeHighlightTabsFactory, CodeHighlightTabsProps, CodeHighlightTabsStylesNames, } from './CodeHighlightTabs/CodeHighlightTabs';
|
|
15
|
+
export type { CodeHighlightDefaultLanguage, CodeHighlightTabsCode, CodeHighlightTabsFactory, CodeHighlightTabsProps, CodeHighlightTabsSlots, CodeHighlightTabsStylesNames, } from './CodeHighlightTabs/CodeHighlightTabs';
|
package/lib/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export { createHighlightJsAdapter } from './CodeHighlightProvider/adapters/highl
|
|
|
8
8
|
export { createShikiAdapter, stripShikiCodeBlocks, } from './CodeHighlightProvider/adapters/shiki-adapter';
|
|
9
9
|
export { plainTextAdapter } from './CodeHighlightProvider/adapters/plain-text-adapter';
|
|
10
10
|
export type { CodeHighlightAdapter, Highlighter, HighlighterInput, } from './CodeHighlightProvider/CodeHighlightProvider';
|
|
11
|
-
export type { CodeHighlightCssVariables, CodeHighlightFactory, CodeHighlightProps, CodeHighlightSettings, CodeHighlightStylesNames, } from './CodeHighlight/CodeHighlight';
|
|
11
|
+
export type { CodeHighlightCssVariables, CodeHighlightFactory, CodeHighlightProps, CodeHighlightSettings, CodeHighlightSlots, CodeHighlightStylesNames, } from './CodeHighlight/CodeHighlight';
|
|
12
12
|
export type { CodeHighlightContextValue } from './CodeHighlight/CodeHighlight.context';
|
|
13
13
|
export type { CodeHighlightControlProps } from './CodeHighlight/CodeHighlightControl/CodeHighlightControl';
|
|
14
14
|
export type { InlineCodeHighlightCssVariables, InlineCodeHighlightFactory, InlineCodeHighlightProps, InlineCodeHighlightStylesNames, } from './CodeHighlight/InlineCodeHighlight';
|
|
15
|
-
export type { CodeHighlightDefaultLanguage, CodeHighlightTabsCode, CodeHighlightTabsFactory, CodeHighlightTabsProps, CodeHighlightTabsStylesNames, } from './CodeHighlightTabs/CodeHighlightTabs';
|
|
15
|
+
export type { CodeHighlightDefaultLanguage, CodeHighlightTabsCode, CodeHighlightTabsFactory, CodeHighlightTabsProps, CodeHighlightTabsSlots, CodeHighlightTabsStylesNames, } from './CodeHighlightTabs/CodeHighlightTabs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/code-highlight",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Vue code highlight components equivalent to @mantine/code-highlight",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"vue": "^3.5.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@mantine-vue/core": "2.
|
|
43
|
-
"@mantine-vue/hooks": "2.
|
|
42
|
+
"@mantine-vue/core": "2.4.0",
|
|
43
|
+
"@mantine-vue/hooks": "2.4.0",
|
|
44
44
|
"vue": "^3.5.0"
|
|
45
45
|
}
|
|
46
46
|
}
|