PluginProbe
Code Snippets / 3.9.1
Code Snippets v3.9.1
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / js / types / Window.ts

Window.ts in Code Snippets 3.9.1, at js/types/Window.ts

60 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import type Prism from 'prismjs'
2 import type tinymce from 'tinymce'
3 import type { Snippet } from './Snippet'
4 import type { CodeEditorInstance, EditorOption, WordPressCodeEditor } from './WordPressCodeEditor'
5 import type { WordPressEditor } from './WordPressEditor'
6
7 declare global {
8 interface Window {
9 readonly wp: {
10 readonly editor?: WordPressEditor
11 readonly codeEditor: WordPressCodeEditor
12 }
13 readonly pagenow: string
14 readonly ajaxurl: string
15 readonly tinymce?: tinymce.EditorManager
16 readonly wpActiveEditor?: string
17 code_snippets_editor_preview?: CodeEditorInstance
18 readonly code_snippets_editor_settings: EditorOption[]
19 CODE_SNIPPETS_PRISM?: typeof Prism
20 readonly CODE_SNIPPETS?: {
21 isLicensed: boolean
22 restAPI: {
23 base: string
24 snippets: string
25 conditions: string
26 cloud: string
27 nonce: string
28 localToken: string
29 }
30 urls: {
31 plugin: string
32 manage: string
33 addNew: string
34 edit: string
35 connectCloud: string
36 }
37 }
38 readonly CODE_SNIPPETS_EDIT?: {
39 snippet: Snippet
40 pageTitleActions: Record<string, string>
41 isPreview: boolean
42 isLicensed: boolean
43 enableDownloads: boolean
44 activateByDefault: boolean
45 enableDescription: boolean
46 hideUpsell: boolean
47 editorTheme: string
48 tagOptions: {
49 enabled: boolean
50 allowSpaces: boolean
51 availableTags: string[]
52 }
53 descEditorOptions: {
54 rows: number
55 mediaButtons: boolean
56 }
57 }
58 }
59 }
60