| @@ -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' |
| @@ -19,8 +21,9 @@ | ||
| 19 | 21 | callback: (data: { rest_nonce?: string }) => void |
| 20 | 22 | ) => void |
| 21 | 23 | } |
| 22 | 24 | } |
| 25 | + codeSnippetsErrors?: string[] | |
| 23 | 26 | readonly pagenow?: string |
| 24 | 27 | readonly ajaxurl: string |
| 25 | 28 | readonly tinymce?: tinymce.EditorManager |
| 26 | 29 | readonly wpActiveEditor?: string |
| @@ -32,13 +35,17 @@ | ||
| 32 | 35 | isLicensed: boolean |
| 33 | 36 | hideUpsell: boolean |
| 34 | 37 | isCloudConnected: boolean |
| 35 | 38 | snippetView: SnippetView |
| 39 | + insightsChartViews: InsightsChartViews | |
| 40 | + demosSeen?: string[] | |
| 36 | 41 | restAPI: { |
| 37 | 42 | base: string |
| 38 | 43 | snippets: string |
| 39 | 44 | recentlyActive: string |
| 40 | - preferences: string | |
| 45 | + snippetView: string | |
| 46 | + insightsView: string | |
| 47 | + demosSeen: string | |
| 41 | 48 | importPlugins: string |
| 42 | 49 | importFiles: string |
| 43 | 50 | nonce: string |
| 44 | 51 | cloud: { |
| @@ -50,12 +57,14 @@ | ||
| 50 | 57 | plugin: string |
| 51 | 58 | manage: string |
| 52 | 59 | addNew: string |
| 53 | 60 | edit: string |
| 61 | + insights: string | |
| 54 | 62 | welcome: string |
| 55 | 63 | import: string |
| 56 | 64 | settings: string | null |
| 57 | 65 | cloud: string |
| 66 | + demoReset: string | |
| 58 | 67 | } |
| 59 | 68 | banner: { |
| 60 | 69 | key: string |
| 61 | 70 | start_datetime: { date: string, timezone_type: number, timezone: string } |
| @@ -81,8 +90,11 @@ | ||
| 81 | 90 | bulkDownloadNonce: string |
| 82 | 91 | runOnceNonce?: string |
| 83 | 92 | supportsZipDownloads: boolean |
| 84 | 93 | editorTheme: string |
| 94 | + aiDemo?: { | |
| 95 | + siteName: string | |
| 96 | + } | |
| 85 | 97 | } |
| 86 | 98 | readonly CODE_SNIPPETS_EDIT?: { |
| 87 | 99 | snippet: SnippetSchema |
| 88 | 100 | pageTitleActions: Record<string, string> |
| @@ -110,6 +122,8 @@ | ||
| 110 | 122 | changelog: ChangelogSchema[] |
| 111 | 123 | features: ImageLinkSchema[] |
| 112 | 124 | partners: ImageLinkSchema[] |
| 113 | 125 | } |
| 126 | + readonly CODE_SNIPPETS_INSIGHTS?: InsightsSummary | |
| 127 | + readonly CODE_SNIPPETS_FEEDBACK?: FeedbackConfig | |
| 114 | 128 | } |
| 115 | 129 | } |