PluginProbe
Code Snippets / trunk
Code Snippets vtrunk
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
← All changes | js/types/Window.ts +26 -3 3.10.0-beta.1 → trunk View file →
@@ -1,8 +1,10 @@
1 1 import type { SnippetSchema } from './schema/SnippetSchema'
2 2 import type { ChangelogSchema, ImageLinkSchema } from './schema/WelcomeSchema'
3 3 import type Prism from 'prismjs'
4 4 import type tinymce from 'tinymce'
5 +import type { FeedbackConfig } from './Feedback'
6 +import type { InsightsChartViews, InsightsSummary } from './Insights'
5 7 import type { Snippet } from './Snippet'
6 8 import type { SnippetView } from './SnippetView'
7 9 import type { CodeEditorInstance, EditorOption, WordPressCodeEditor } from './vendor/WordPressCodeEditor'
8 10 import type { WordPressEditor } from './vendor/WordPressEditor'
@@ -11,10 +13,18 @@
11 13 interface Window {
12 14 readonly wp: {
13 15 readonly editor?: WordPressEditor
14 16 readonly codeEditor?: WordPressCodeEditor
17 + readonly hooks?: {
18 + addAction: (
19 + hookName: string,
20 + namespace: string,
21 + callback: (data: { rest_nonce?: string }) => void
22 + ) => void
23 + }
15 24 }
16 - readonly pagenow: string
25 + codeSnippetsErrors?: string[]
26 + readonly pagenow?: string
17 27 readonly ajaxurl: string
18 28 readonly tinymce?: tinymce.EditorManager
19 29 readonly wpActiveEditor?: string
20 30 code_snippets_editor_preview?: CodeEditorInstance
@@ -25,13 +35,17 @@
25 35 isLicensed: boolean
26 36 hideUpsell: boolean
27 37 isCloudConnected: boolean
28 38 snippetView: SnippetView
39 + insightsChartViews: InsightsChartViews
40 + demosSeen?: string[]
29 41 restAPI: {
30 42 base: string
31 43 snippets: string
32 44 recentlyActive: string
33 - preferences: string
45 + snippetView: string
46 + insightsView: string
47 + demosSeen: string
34 48 importPlugins: string
35 49 importFiles: string
36 50 nonce: string
37 51 cloud: {
@@ -43,12 +57,14 @@
43 57 plugin: string
44 58 manage: string
45 59 addNew: string
46 60 edit: string
61 + insights: string
47 62 welcome: string
48 63 import: string
49 - settings: string
64 + settings: string | null
50 65 cloud: string
66 + demoReset: string
51 67 }
52 68 banner: {
53 69 key: string
54 70 start_datetime: { date: string, timezone_type: number, timezone: string }
@@ -64,8 +80,9 @@
64 80 readonly CODE_SNIPPETS_MANAGE?: {
65 81 snippetsList?: Snippet[]
66 82 hasNetworkCap: boolean
67 83 hiddenColumns: string[]
84 + listOrder?: string
68 85 truncateRowValues: number | string
69 86 snippetsPerPage: number
70 87 typeCounts?: Record<string, number>
71 88 cloudSearchPerPage: number
@@ -70,10 +87,14 @@
70 87 typeCounts?: Record<string, number>
71 88 cloudSearchPerPage: number
72 89 isSafeModeActive: boolean
73 90 bulkDownloadNonce: string
91 + runOnceNonce?: string
74 92 supportsZipDownloads: boolean
75 93 editorTheme: string
94 + aiDemo?: {
95 + siteName: string
96 + }
76 97 }
77 98 readonly CODE_SNIPPETS_EDIT?: {
78 99 snippet: SnippetSchema
79 100 pageTitleActions: Record<string, string>
@@ -101,6 +122,8 @@
101 122 changelog: ChangelogSchema[]
102 123 features: ImageLinkSchema[]
103 124 partners: ImageLinkSchema[]
104 125 }
126 + readonly CODE_SNIPPETS_INSIGHTS?: InsightsSummary
127 + readonly CODE_SNIPPETS_FEEDBACK?: FeedbackConfig
105 128 }
106 129 }