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

108 lines 2.8 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 listOrder?: string
69 truncateRowValues: number | string
70 snippetsPerPage: number
71 typeCounts?: Record<string, number>
72 cloudSearchPerPage: number
73 isSafeModeActive: boolean
74 bulkDownloadNonce: string
75 supportsZipDownloads: boolean
76 editorTheme: string
77 }
78 readonly CODE_SNIPPETS_EDIT?: {
79 snippet: SnippetSchema
80 pageTitleActions: Record<string, string>
81 isLicensed: boolean
82 enableDownloads: boolean
83 activateByDefault: boolean
84 enableDescription: boolean
85 editorTheme: string
86 tagOptions: {
87 enabled: boolean
88 allowSpaces: boolean
89 availableTags: string[]
90 }
91 descEditorOptions: {
92 rows: number
93 mediaButtons: boolean
94 }
95 }
96 readonly CODE_SNIPPETS_WELCOME?: {
97 hero: {
98 name: string
99 follow_url: string
100 image_url: string
101 }
102 changelog: ChangelogSchema[]
103 features: ImageLinkSchema[]
104 partners: ImageLinkSchema[]
105 }
106 }
107 }
108