Skip to content

Commit

Permalink
Merge pull request #20 from webdevnerdstuff/dev
Browse files Browse the repository at this point in the history
v2.2.11
  • Loading branch information
webdevnerdstuff committed Jun 12, 2023
2 parents 63cb36f + e5c6125 commit 574589b
Show file tree
Hide file tree
Showing 57 changed files with 4,248 additions and 11,584 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
mkdir docs
npm install --g gh-pages
npm i
npm run build
npm run build:docs
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -u "github-actions-bot <support+actions@github.com>"
env:
Expand Down
46 changes: 27 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
# Change Log
All notable changes to the "vue3-code-block" plugin will be documented in this file.

## v1.0.0
2023-03-16
[main] (@webdevnerdstuff)
* Initial release

## v1.0.15
2023-04-02
[main] (@webdevnerdstuff)
* Minor changes to fix issues after testing npm packaging.

## v2.0.0
2023-04-15
## v2.2.11
2023-06-11
[main] (@webdevnerdstuff)
* Major release update. Added in support to use either PrismJS or HighlightJS.
* Changing Highlight.js to include all languages by default.
* Unfortunately, adding additional languages was not working as expected, so this is the best solution I can think of for now.
* Updated typings for Props as well as composables.
* Changing compiling to use a Vite config instead of rollup so d.ts file aliases resolve correctly.

## v2.0.1 - v2.0.6
2023-04-15
## v2.1.1
2023-04-16
[main] (@webdevnerdstuff)
* Minor changes to fix issues after testing npm packaging.
* Changing importing of css/scss/sass to use @use instead of @import.

## v2.1.0
2023-04-16
Expand All @@ -31,7 +24,22 @@ All notable changes to the "vue3-code-block" plugin will be documented in this f
* Fixing HighlightJS default theme style causing icon to appear over a scrollbar when present.
* Adding sass scripts to package.json to compile scss files to css.

## v2.1.1
2023-04-16
## v2.0.1 - v2.0.6
2023-04-15
[main] (@webdevnerdstuff)
* Changing importing of css/scss/sass to use @use instead of @import.
* Minor changes to fix issues after testing npm packaging.

## v2.0.0
2023-04-15
[main] (@webdevnerdstuff)
* Major release update. Added in support to use either PrismJS or HighlightJS.

## v1.0.15
2023-04-02
[main] (@webdevnerdstuff)
* Minor changes to fix issues after testing npm packaging.

## v1.0.0
2023-03-16
[main] (@webdevnerdstuff)
* Initial release
7 changes: 0 additions & 7 deletions dist/index.d.ts

This file was deleted.

278 changes: 7 additions & 271 deletions dist/plugin/CodeBlock.vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,271 +1,7 @@
declare const _default: import("vue").DefineComponent<{
browserWindow: {
type: BooleanConstructor;
required: false;
default: boolean;
};
code: {
type: (ObjectConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
required: true;
};
codeBlockRadius: {
type: StringConstructor;
required: false;
default: string;
};
copyButton: {
type: BooleanConstructor;
required: false;
default: boolean;
};
copyIcons: {
type: BooleanConstructor;
required: false;
default: boolean;
};
copyTab: {
type: BooleanConstructor;
required: false;
default: boolean;
};
copyFailedText: {
type: StringConstructor;
required: false;
default: string;
};
copyText: {
type: StringConstructor;
required: false;
default: string;
};
copySuccessText: {
type: StringConstructor;
required: false;
default: string;
};
floatingTabs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
height: {
type: (StringConstructor | NumberConstructor)[];
required: false;
default: string;
};
highlightjs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
indent: {
type: NumberConstructor;
required: false;
default: number;
};
label: {
type: StringConstructor;
required: false;
default: string;
};
lang: {
type: StringConstructor;
required: false;
default: string;
};
maxHeight: {
type: (StringConstructor | NumberConstructor)[];
required: false;
default: string;
};
persistentCopyButton: {
type: BooleanConstructor;
required: false;
default: boolean;
};
prismjs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
prismPlugin: {
type: BooleanConstructor;
required: false;
default: boolean;
};
runTab: {
type: BooleanConstructor;
required: false;
default: boolean;
};
runText: {
type: StringConstructor;
required: false;
default: string;
};
tabGap: {
type: StringConstructor;
required: false;
default: string;
};
tabs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
theme: {
type: (BooleanConstructor | StringConstructor)[];
required: false;
default: string;
};
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("run" | "update:copy-status")[], "run" | "update:copy-status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
browserWindow: {
type: BooleanConstructor;
required: false;
default: boolean;
};
code: {
type: (ObjectConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
required: true;
};
codeBlockRadius: {
type: StringConstructor;
required: false;
default: string;
};
copyButton: {
type: BooleanConstructor;
required: false;
default: boolean;
};
copyIcons: {
type: BooleanConstructor;
required: false;
default: boolean;
};
copyTab: {
type: BooleanConstructor;
required: false;
default: boolean;
};
copyFailedText: {
type: StringConstructor;
required: false;
default: string;
};
copyText: {
type: StringConstructor;
required: false;
default: string;
};
copySuccessText: {
type: StringConstructor;
required: false;
default: string;
};
floatingTabs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
height: {
type: (StringConstructor | NumberConstructor)[];
required: false;
default: string;
};
highlightjs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
indent: {
type: NumberConstructor;
required: false;
default: number;
};
label: {
type: StringConstructor;
required: false;
default: string;
};
lang: {
type: StringConstructor;
required: false;
default: string;
};
maxHeight: {
type: (StringConstructor | NumberConstructor)[];
required: false;
default: string;
};
persistentCopyButton: {
type: BooleanConstructor;
required: false;
default: boolean;
};
prismjs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
prismPlugin: {
type: BooleanConstructor;
required: false;
default: boolean;
};
runTab: {
type: BooleanConstructor;
required: false;
default: boolean;
};
runText: {
type: StringConstructor;
required: false;
default: string;
};
tabGap: {
type: StringConstructor;
required: false;
default: string;
};
tabs: {
type: BooleanConstructor;
required: false;
default: boolean;
};
theme: {
type: (BooleanConstructor | StringConstructor)[];
required: false;
default: string;
};
}>> & {
onRun?: (...args: any[]) => any;
"onUpdate:copy-status"?: (...args: any[]) => any;
}, {
browserWindow: boolean;
codeBlockRadius: string;
copyButton: boolean;
copyIcons: boolean;
copyTab: boolean;
copyFailedText: string;
copyText: string;
copySuccessText: string;
floatingTabs: boolean;
height: string | number;
highlightjs: boolean;
indent: number;
label: string;
lang: string;
maxHeight: string | number;
persistentCopyButton: boolean;
prismjs: boolean;
prismPlugin: boolean;
runTab: boolean;
runText: string;
tabGap: string;
tabs: boolean;
theme: string | boolean;
}>;
export default _default;
declare const _sfc_main: import("vue").DefineComponent<any, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("run" | "update:copy-status")[], "run" | "update:copy-status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any> & {
onRun?: ((...args: any[]) => any) | undefined;
"onUpdate:copy-status"?: ((...args: any[]) => any) | undefined;
}, {} | {
[x: string]: any;
}, {}>;
export default _sfc_main;
14 changes: 0 additions & 14 deletions dist/plugin/StatusIcons.vue.d.ts

This file was deleted.

12 changes: 12 additions & 0 deletions dist/plugin/components/StatusIcons.vue.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare const _sfc_main: import("vue").DefineComponent<{
icon: {
type: StringConstructor;
required: true;
};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
icon: {
type: StringConstructor;
required: true;
};
}>>, {}, {}>;
export default _sfc_main;
6 changes: 6 additions & 0 deletions dist/plugin/composables/classes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { UseCodeBlockClasses, UseCopyButtonClasses, UseIconClasses, UseLabelClasses, UseTabClasses } from '../../types';
export declare const useCodeBlockClasses: UseCodeBlockClasses;
export declare const useCopyButtonClasses: UseCopyButtonClasses;
export declare const useIconClasses: UseIconClasses;
export declare const useLabelClasses: UseLabelClasses;
export declare const useTabClasses: UseTabClasses;
4 changes: 4 additions & 0 deletions dist/plugin/composables/helpers.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Converts a string to a number with a unit.
*/
export declare function useConvertToUnit(str: string | number | undefined | null, unit?: string): string | void;
Loading

0 comments on commit 574589b

Please sign in to comment.