@atlaskit/editor-plugins 5.9.25 → 5.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugins
2
2
 
3
+ ## 5.9.26
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 5.9.25
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugins",
3
- "version": "5.9.25",
3
+ "version": "5.9.26",
4
4
  "description": "A convenience facade package that exposes all @atlaskit/editor-plugin-* plugins so that users can add this package without having to manually add all their plugins",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -204,10 +204,10 @@
204
204
  "@atlaskit/editor-plugin-status": "2.6.4",
205
205
  "@atlaskit/editor-plugin-submit-editor": "1.3.13",
206
206
  "@atlaskit/editor-plugin-table": "8.4.12",
207
- "@atlaskit/editor-plugin-tasks-and-decisions": "2.12.27",
207
+ "@atlaskit/editor-plugin-tasks-and-decisions": "2.12.28",
208
208
  "@atlaskit/editor-plugin-text-color": "1.16.5",
209
209
  "@atlaskit/editor-plugin-text-formatting": "1.16.5",
210
- "@atlaskit/editor-plugin-toolbar-lists-indentation": "1.14.6",
210
+ "@atlaskit/editor-plugin-toolbar-lists-indentation": "1.14.7",
211
211
  "@atlaskit/editor-plugin-type-ahead": "1.11.2",
212
212
  "@atlaskit/editor-plugin-ufo": "1.0.2",
213
213
  "@atlaskit/editor-plugin-undo-redo": "1.6.13",
@@ -1,6 +1,10 @@
1
+ // Ignored via go/ees005
2
+ // eslint-disable-next-line import/no-namespace
1
3
  import * as fs from 'fs';
2
4
  import path from 'path';
3
5
 
6
+ // Ignored via go/ees005
7
+ // eslint-disable-next-line import/no-namespace
4
8
  import * as ts from 'typescript';
5
9
 
6
10
  interface ExtractedAfExportData {
@@ -81,6 +85,8 @@ function getFileTopLevelStatements(fileName: string): string[] {
81
85
  }
82
86
 
83
87
  function isTypeExport(exportName: string, statements: string[]): boolean {
88
+ // Ignored via go/ees005
89
+ // eslint-disable-next-line require-unicode-regexp
84
90
  const wholeExportNameRegex = new RegExp(`\\b${exportName}\\b`);
85
91
  const statement = statements.find(
86
92
  (statement) => wholeExportNameRegex.test(statement) && statement.startsWith('export'),
@@ -150,6 +156,8 @@ function getFileExportNames(fileName: string) {
150
156
  const exportClause = node.exportClause;
151
157
  if (exportClause && ts.isNamedExports(exportClause)) {
152
158
  exportClause.elements.forEach((exportedElement) => {
159
+ // Ignored via go/ees005
160
+ // eslint-disable-next-line import/no-commonjs
153
161
  exports.push(exportedElement.name.text);
154
162
  });
155
163
  }
@@ -159,12 +167,16 @@ function getFileExportNames(fileName: string) {
159
167
  ts.isEnumDeclaration(node)
160
168
  ) {
161
169
  if (node.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.ExportKeyword)) {
170
+ // Ignored via go/ees005
171
+ // eslint-disable-next-line import/no-commonjs
162
172
  exports.push(node.name.text);
163
173
  }
164
174
  } else if (ts.isVariableStatement(node)) {
165
175
  if (node.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.ExportKeyword)) {
166
176
  node.declarationList.declarations.forEach((declaration) => {
167
177
  if (ts.isIdentifier(declaration.name)) {
178
+ // Ignored via go/ees005
179
+ // eslint-disable-next-line import/no-commonjs
168
180
  exports.push(declaration.name.text);
169
181
  }
170
182
  });
@@ -174,10 +186,14 @@ function getFileExportNames(fileName: string) {
174
186
  node.modifiers?.some((modifier) => modifier.kind === ts.SyntaxKind.ExportKeyword) &&
175
187
  node.name
176
188
  ) {
189
+ // Ignored via go/ees005
190
+ // eslint-disable-next-line import/no-commonjs
177
191
  exports.push(node.name.text);
178
192
  }
179
193
  } else if (ts.isExportAssignment(node)) {
180
194
  if (ts.isIdentifier(node.expression)) {
195
+ // Ignored via go/ees005
196
+ // eslint-disable-next-line import/no-commonjs
181
197
  exports.push(node.expression.text);
182
198
  }
183
199
  }
@@ -1,3 +1,5 @@
1
+ // Ignored via go/ees005
2
+ // eslint-disable-next-line import/no-namespace
1
3
  import * as fs from 'fs';
2
4
  import path from 'path';
3
5
 
@@ -1,5 +1,9 @@
1
1
  /* eslint-disable no-console */
2
+ // Ignored via go/ees005
3
+ // eslint-disable-next-line import/no-namespace
2
4
  import * as fs from 'fs';
5
+ // Ignored via go/ees005
6
+ // eslint-disable-next-line import/no-namespace
3
7
  import * as path from 'path';
4
8
 
5
9
  import { findRootSync } from '@manypkg/find-root';
@@ -39,6 +43,8 @@ const pluginName = 'editor-plugins';
39
43
  const editorPluginsPath = path.join(pluginsPath, pluginName);
40
44
  const editorPluginsPackageJsonPath = path.join(editorPluginsPath, 'package.json');
41
45
 
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
48
  function getPluginPackageJson(pluginFolder: string): Record<string, any> {
43
49
  const packageJsonFile = path.join(pluginFolder, 'package.json');
44
50
  if (fs.existsSync(packageJsonFile)) {
@@ -61,15 +67,21 @@ function getPluginFolderNames(): string[] {
61
67
  (folder) =>
62
68
  folder.startsWith('editor-plugin-') &&
63
69
  !foldersToIgnore.includes(folder) &&
70
+ // Ignored via go/ees005
71
+ // eslint-disable-next-line require-unicode-regexp
64
72
  !/editor-plugin-.*-tests$/.test(folder),
65
73
  );
66
74
  }
67
75
 
68
76
  function getPluginFolderNamesAndPackageJsons(): {
69
77
  depFolderNames: string[];
78
+ // Ignored via go/ees005
79
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
70
80
  packageJsons: Record<string, any>[];
71
81
  } {
72
82
  const depFolderNames: string[] = [];
83
+ // Ignored via go/ees005
84
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
73
85
  const packageJsons: Record<string, any>[] = [];
74
86
 
75
87
  getPluginFolderNames().forEach((folderName) => {
@@ -140,6 +152,8 @@ function getNewAfExports(entryPointData: EntryPointData[]): Record<string, strin
140
152
  }
141
153
 
142
154
  function getUpdatedDependenciesFromPackageJsons(
155
+ // Ignored via go/ees005
156
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
143
157
  packageJsons: Record<string, any>[],
144
158
  ): Record<string, string> {
145
159
  const depVersions: Record<string, string> = {};
@@ -159,8 +173,12 @@ function getUpdatedDependenciesFromPackageJsons(
159
173
  }
160
174
 
161
175
  function getFeatureFlagsFromPackageJsons(
176
+ // Ignored via go/ees005
177
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
162
178
  packageJsons: Record<string, any>[],
163
179
  ): Record<string, string> {
180
+ // Ignored via go/ees005
181
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
164
182
  const mergedFeatureFlags: Record<string, any> = {};
165
183
  packageJsons.forEach((packageJson) => {
166
184
  const featureFlags = packageJson['platform-feature-flags'];
@@ -273,6 +291,8 @@ function updatePluginsFiles(
273
291
  });
274
292
 
275
293
  // Add new files or update existing ones
294
+ // Ignored via go/ees005
295
+ // eslint-disable-next-line require-await
276
296
  entryPointDatas.forEach(async ({ fileData }) => {
277
297
  createFileWithPath(fileData.newRelativeFilePath, fileData.fileContent);
278
298
  });
@@ -378,6 +398,8 @@ function prettyDisplay(diff: DependenciesDiffResult) {
378
398
  console.log(diffDisplay);
379
399
  }
380
400
 
401
+ // Ignored via go/ees005
402
+ // eslint-disable-next-line require-await
381
403
  async function run() {
382
404
  const argv = yargs(process.argv.slice(2))
383
405
  .option('dry-run', {
package/scripts/util.ts CHANGED
@@ -1,7 +1,11 @@
1
1
  import format from '@af/formatting/sync';
2
2
 
3
+ // Ignored via go/ees005
4
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
5
  export function sortObjectKeys(obj: Record<string, any>): Record<string, any> {
4
6
  const sortedKeys = Object.keys(obj).sort();
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
9
  const sortedObj: Record<string, any> = {};
6
10
 
7
11
  for (const key of sortedKeys) {