PluginProbe
Code Snippets / 3.10.0
Code Snippets v3.10.0
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.10.0, at js/types/Window.ts

107 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import type { SnippetSchema } from './schema/SnippetSchema'
2 import type { ChangelogSchema, ImageLinkSchema } from './schema/WelcomeSchema'
3 import type Prism from 'prismjs'
4 import type tinymce from 'tinymce'
5 import type { Snippet } from './Snippet'
6 import type { SnippetView } from './SnippetView'
7 import type { CodeEditorInstance, EditorOption, WordPressCodeEditor } from './vendor/WordPressCodeEditor'
8 import type { WordPressEditor } from './vendor/WordPressEditor'
9
10 declare global {
11 interface Window {
12 readonly wp: {
13 readonly editor?: WordPressEditor
14 readonly codeEditor?: WordPressCodeEditor
15 }
16 readonly pagenow: string
17 readonly ajaxurl: string
18 readonly tinymce?: tinymce.EditorManager
19 readonly wpActiveEditor?: string
20 code_snippets_editor_preview?: CodeEditorInstance
21 readonly code_snippets_editor_settings: EditorOption[]
22 CODE_SNIPPETS_PRISM?: typeof Prism
23 readonly CODE_SNIPPETS?: {
24 debug: boolean
25 isLicensed: boolean
26 hideUpsell: boolean
27 isCloudConnected: boolean
28 snippetView: SnippetView
29 restAPI: {
30 base: string
31 snippets: string
32 recentlyActive: string
33 preferences: string
34 importPlugins: string
35 importFiles: string
36 nonce: string
37 cloud: {
38 token: string
39 snippets: string
40 }
41 }
42 urls: {
43 plugin: string
44 manage: string
45 addNew: string
46 edit: string
47 welcome: string
48 import: string
49 settings: string | null
50 cloud: string
51 }
52 banner: {
53 key: string
54 start_datetime: { date: string, timezone_type: number, timezone: string }
55 end_datetime: { date: string, timezone_type: number, timezone: string }
56 text_free: string
57 action_url_free: string
58 action_label_free: string
59 text_pro: string
60 action_url_pro: string
61 action_label_pro: string
62 }
63 }
64 readonly CODE_SNIPPETS_MANAGE?: {
65 snippetsList?: Snippet[]
66 hasNetworkCap: boolean
67 hiddenColumns: string[]
68 truncateRowValues: number | string
69 snippetsPerPage: number
70 typeCounts?: Record<string, number>
71 cloudSearchPerPage: number
72 isSafeModeActive: boolean
73 bulkDownloadNonce: string
74 supportsZipDownloads: boolean
75 editorTheme: string
76 }
77 readonly CODE_SNIPPETS_EDIT?: {
78 snippet: SnippetSchema
79 pageTitleActions: Record<string, string>
80 isLicensed: boolean
81 enableDownloads: boolean
82 activateByDefault: boolean
83 enableDescription: boolean
84 editorTheme: string
85 tagOptions: {
86 enabled: boolean
87 allowSpaces: boolean
88 availableTags: string[]
89 }
90 descEditorOptions: {
91 rows: number
92 mediaButtons: boolean
93 }
94 }
95 readonly CODE_SNIPPETS_WELCOME?: {
96 hero: {
97 name: string
98 follow_url: string
99 image_url: string
100 }
101 changelog: ChangelogSchema[]
102 features: ImageLinkSchema[]
103 partners: ImageLinkSchema[]
104 }
105 }
106 }
107