Skip to content

Commit b5d2588

Browse files
Merge pull request #32 from webdevnerdstuff/dev
Dev
2 parents 967877c + ee84bc3 commit b5d2588

33 files changed

+172
-3262
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change Log
22
All notable changes to the "vue-code-block" plugin will be documented in this file.
33

4+
## v2.2.15
5+
11-13-2023
6+
[main] (@webdevnerdstuff)
7+
* Add binding props to slots
8+
* Update docs
9+
410
## v2.2.13
511
11-09-2023
612
[main] (@webdevnerdstuff)

dist/plugin/CodeBlock.vue.d.ts renamed to dist/plugin/VCodeBlock.vue.d.ts

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Props } from '../types';
2+
declare function copyCode(): void;
3+
declare function runCode(): void;
24
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
35
browserWindow: boolean;
46
cssPath: undefined;
@@ -84,9 +86,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8486
runText: string;
8587
theme: string | boolean;
8688
}, {}>, {
87-
label?(_: {}): any;
88-
tabs?(_: {}): any;
89-
copyButton?(_: {}): any;
89+
label?(_: {
90+
copyCode: typeof copyCode;
91+
copyStatus: string;
92+
runCode: typeof runCode;
93+
}): any;
94+
tabs?(_: {
95+
copyCode: typeof copyCode;
96+
copyStatus: string;
97+
runCode: typeof runCode;
98+
}): any;
99+
copyButton?(_: {
100+
copyStatus: string;
101+
}): any;
90102
}>;
91103
export default _default;
92104
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;

dist/plugin/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default as CodeBlock } from './CodeBlock.vue';
1+
export { default as VCodeBlock } from './VCodeBlock.vue';

dist/vue-code-block.cjs.js

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

dist/vue-code-block.es.js

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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wdns/vue-code-block",
3-
"version": "2.2.14",
3+
"version": "2.2.15",
44
"description": "Vue 3 CodeBlock - Highlight your code with ease using this syntax highlighting component powered by PrismJS or Highlight.js.",
55
"private": false,
66
"publishConfig": {

src/components/DemoPage.vue

-278
This file was deleted.

0 commit comments

Comments
 (0)