PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.13.0
Code Block Pro – Beautiful Syntax Highlighting v1.13.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
← All changes | src/types.ts +2 -47 1.27.51.13.0 View file →
@@ -1,7 +1,7 @@
1 1 import { Lang as LangShiki, Theme } from 'shiki';
2 2
3 -export type Lang = LangShiki | 'ansi' | 'plaintext';
3 +export type Lang = LangShiki | 'ansi';
4 4
5 5 export type Attributes = {
6 6 code: string;
7 7 codeHTML: string;
@@ -17,9 +17,9 @@
17 17 clampFonts: boolean;
18 18 editorHeight: string;
19 19 headerType: string;
20 20 headerString?: string;
21 - footerType?: string;
21 + footerType: string;
22 22 footerString?: string;
23 23 footerLink?: string;
24 24 enableMaxHeight?: boolean;
25 25 seeMoreType?: string;
@@ -25,19 +25,13 @@
25 25 seeMoreType?: string;
26 26 seeMoreString?: string;
27 27 seeMoreAfterLine?: string;
28 28 seeMoreTransition?: boolean;
29 - seeMoreCollapse?: boolean;
30 - seeMoreCollapseString?: string;
31 29 footerLinkTarget?: boolean;
32 30 disablePadding: boolean;
33 31 startingLineNumber: string;
34 - // Defunct - Removing it would require n attribute migration
35 - // so it's easier to just leave it unused for new blocks.
36 32 lineNumbersWidth: number;
37 - highestLineNumber: number;
38 33 enableHighlighting: boolean;
39 - highlightingHover: boolean;
40 34 lineHighlights: string;
41 35 lineHighlightColor: string;
42 36 enableBlurring: boolean;
43 37 lineBlurs: string;
@@ -45,16 +39,8 @@
45 39 frame: boolean;
46 40 renderType: string;
47 41 label: string;
48 42 copyButton: boolean;
49 - copyButtonType: string;
50 - copyButtonString: string;
51 - copyButtonStringCopied: string;
52 - copyButtonUseTextarea: boolean;
53 - useDecodeURI: boolean;
54 - useEscapeShortCodes: boolean;
55 - tabSize: number;
56 - useTabs: boolean;
57 43 };
58 44 export interface AttributesPropsAndSetter {
59 45 attributes: Attributes;
60 46 setAttributes: (attrs: Partial<Attributes>) => void;
@@ -66,35 +52,4 @@
66 52 pluginUrl: string;
67 53 };
68 54 }
69 55 }
70 -
71 -export type CustomStyles = {
72 - 'color-text'?: string; // --shiki-color-text
73 - 'color-background'?: string; // --shiki-color-background
74 - 'token-constant'?: string; // --shiki-token-constant
75 - 'token-string'?: string; // --shiki-token-string
76 - 'token-comment'?: string; // --shiki-token-comment
77 - 'token-keyword'?: string; // --shiki-token-keyword
78 - 'token-parameter'?: string; // --shiki-token-parameter
79 - 'token-function'?: string; // --shiki-token-function
80 - 'token-string-expression'?: string; // --shiki-token-string-expression
81 - 'token-punctuation'?: string; // --shiki-token-punctuation
82 - 'token-link'?: string; // --shiki-token-link
83 - 'line-background'?: string; // custom for this app
84 - 'line-number-color'?: string; // custom for this app
85 -};
86 -export type HelpUrl = {
87 - text: string;
88 - url: string;
89 -};
90 -
91 -export type ThemeOption = Record<
92 - string,
93 - {
94 - name: string;
95 - priority?: boolean;
96 - custom?: boolean;
97 - styles?: CustomStyles;
98 - helpUrl?: HelpUrl;
99 - }
100 ->;