PluginProbe
Code Snippets / 4.0.0-beta.1
Code Snippets v4.0.0-beta.1
4.0.0-beta.2 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 All 65 releases
code-snippets / js / types / Window.ts

Window.ts in Code Snippets 4.0.0-beta.1, at js/types/Window.ts

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