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 +23 -1 3.10.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,9 +13,17 @@
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 }
25 + codeSnippetsErrors?: string[]
16 26 readonly pagenow?: string
17 27 readonly ajaxurl: string
18 28 readonly tinymce?: tinymce.EditorManager
19 29 readonly wpActiveEditor?: string
@@ -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 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 }
@@ -71,10 +87,14 @@
71 87 typeCounts?: Record<string, number>
72 88 cloudSearchPerPage: number
73 89 isSafeModeActive: boolean
74 90 bulkDownloadNonce: string
91 + runOnceNonce?: string
75 92 supportsZipDownloads: boolean
76 93 editorTheme: string
94 + aiDemo?: {
95 + siteName: string
96 + }
77 97 }
78 98 readonly CODE_SNIPPETS_EDIT?: {
79 99 snippet: SnippetSchema
80 100 pageTitleActions: Record<string, string>
@@ -102,6 +122,8 @@
102 122 changelog: ChangelogSchema[]
103 123 features: ImageLinkSchema[]
104 124 partners: ImageLinkSchema[]
105 125 }
126 + readonly CODE_SNIPPETS_INSIGHTS?: InsightsSummary
127 + readonly CODE_SNIPPETS_FEEDBACK?: FeedbackConfig
106 128 }
107 129 }