Skip to content

Commit c908bb8

Browse files
Build
1 parent 14cf293 commit c908bb8

File tree

6 files changed

+164
-153
lines changed

6 files changed

+164
-153
lines changed

dist/plugin/VCodeBlock.vue.d.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -60,44 +60,44 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
6060
onRun?: ((...args: any[]) => any) | undefined;
6161
"onUpdate:copy-status"?: ((...args: any[]) => any) | undefined;
6262
}, {
63-
persistentCopyButton: boolean;
6463
highlightjs: boolean;
65-
floatingTabs: boolean;
66-
tabGap: string | number;
67-
copyTab: boolean;
68-
height: string | number;
69-
maxHeight: string | number;
70-
codeBlockRadius: string;
71-
runTab: boolean;
72-
tabs: boolean;
64+
prismjs: boolean;
7365
browserWindow: boolean;
7466
cssPath: string;
7567
code: string | number | object | [];
68+
codeBlockRadius: string;
7669
copyButton: boolean;
7770
copyIcons: boolean;
71+
copyTab: boolean;
7872
copyFailedText: string;
7973
copyText: string;
8074
copySuccessText: string;
75+
floatingTabs: boolean;
76+
height: string | number;
8177
indent: number;
8278
label: string;
8379
lang: string;
84-
prismjs: boolean;
80+
maxHeight: string | number;
81+
persistentCopyButton: boolean;
8582
prismPlugin: boolean;
83+
runTab: boolean;
8684
runText: string;
85+
tabGap: string | number;
86+
tabs: boolean;
8787
theme: string | boolean;
8888
}, {}>, {
8989
label?(_: {
9090
copyCode: typeof copyCode;
91-
copyStatus: string;
91+
copyStatus: "copy" | "success" | "failed";
9292
runCode: typeof runCode;
9393
}): any;
9494
tabs?(_: {
9595
copyCode: typeof copyCode;
96-
copyStatus: string;
96+
copyStatus: "copy" | "success" | "failed";
9797
runCode: typeof runCode;
9898
}): any;
9999
copyButton?(_: {
100-
copyStatus: string;
100+
copyStatus: "copy" | "success" | "failed";
101101
}): any;
102102
}>;
103103
export default _default;

dist/plugin/composables/helpers.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
import { UseConvertToUnit } from '../../plugin/types';
12
/**
23
* Converts a string to a number with a unit.
34
*/
4-
export declare function useConvertToUnit(str: string | number | undefined | null, unit?: string): string | void;
5+
export declare const useConvertToUnit: UseConvertToUnit;

dist/plugin/index.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import type { App } from 'vue';
22
import type { Props } from './types';
33
import VCodeBlock from './VCodeBlock.vue';
44
export declare const codeBlockOptions: unique symbol;
5-
export declare function createVCodeBlock(options?: Props): (app: App) => void;
5+
export declare function createVCodeBlock(options?: Props): {
6+
install: (app: App) => void;
7+
};
68
export default VCodeBlock;
79
export { VCodeBlock, };

dist/plugin/types/index.d.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { CSSProperties, MaybeRef } from 'vue';
22
import VCodeBlock from '../VCodeBlock.vue';
33
export * from '../index';
44
export type UseTheme = MaybeRef<string | boolean>;
5+
export type CopyStatus = MaybeRef<'copy' | 'success' | 'failed'>;
56
export interface Props {
67
browserWindow?: boolean;
78
cssPath?: string | undefined;
@@ -31,6 +32,12 @@ export interface Props {
3132
tabs?: boolean;
3233
theme?: string | boolean;
3334
}
35+
export interface UseConvertToUnit {
36+
(options: {
37+
str: string | number | undefined | null;
38+
unit?: string;
39+
}): string | void;
40+
}
3441
export interface UseCodeBlockClasses {
3542
(options: {
3643
isMobile: MaybeRef<boolean>;
@@ -39,14 +46,14 @@ export interface UseCodeBlockClasses {
3946
}
4047
export interface UseCopyButtonClasses {
4148
(options: {
42-
copyStatus: MaybeRef<string>;
49+
copyStatus: CopyStatus;
4350
isMobile: MaybeRef<boolean>;
4451
persistentCopyButton: MaybeRef<Props['persistentCopyButton']>;
4552
}): object;
4653
}
4754
export interface UseIconClasses {
4855
(options: {
49-
copyStatus: MaybeRef<string>;
56+
copyStatus: CopyStatus;
5057
highlightjs: MaybeRef<Props['highlightjs']>;
5158
useTheme: UseTheme;
5259
}): object;

dist/vue-code-block.cjs.js

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-code-block.es.js

+129-128
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)