| @@ -1,4 +1,31 @@ | ||
| 1 | 1 | // eslint-disable-next-line @typescript-eslint/no-var-requires |
| 2 | 2 | globalThis.TextDecoder = require( 'node:util' ).TextDecoder; |
| 3 | 3 | // eslint-disable-next-line @typescript-eslint/no-var-requires |
| 4 | 4 | globalThis.TextEncoder = require( 'node:util' ).TextEncoder; |
| 5 | + | |
| 6 | +// The tones and personas Editor_Sidebar injects, mirroring Suggestion_Defaults. | |
| 7 | +// The selectors read them at module load, so they must precede every import. | |
| 8 | +globalThis.wpParselyContentHelperTones = { | |
| 9 | + neutral: 'Neutral', | |
| 10 | + formal: 'Formal', | |
| 11 | + humorous: 'Humorous', | |
| 12 | + confident: 'Confident', | |
| 13 | + provocative: 'Provocative', | |
| 14 | + serious: 'Serious', | |
| 15 | + inspirational: 'Inspirational', | |
| 16 | + skeptical: 'Skeptical', | |
| 17 | + conversational: 'Conversational', | |
| 18 | + analytical: 'Analytical', | |
| 19 | +}; | |
| 20 | +globalThis.wpParselyContentHelperPersonas = { | |
| 21 | + journalist: 'Journalist', | |
| 22 | + editorialWriter: 'Editorial Writer', | |
| 23 | + investigativeReporter: 'Investigative Reporter', | |
| 24 | + techAnalyst: 'Tech Analyst', | |
| 25 | + businessAnalyst: 'Business Analyst', | |
| 26 | + culturalCommentator: 'Cultural Commentator', | |
| 27 | + scienceCorrespondent: 'Science Correspondent', | |
| 28 | + politicalAnalyst: 'Political Analyst', | |
| 29 | + healthWellnessAdvocate: 'Health and Wellness Advocate', | |
| 30 | + environmentalJournalist: 'Environmental Journalist', | |
| 31 | +}; | |