@atlaskit/editor-plugins 5.9.25 → 6.0.0
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 +23 -0
- package/dist/types/width/index.d.ts +1 -1
- package/dist/types-ts4.5/width/index.d.ts +1 -1
- package/package.json +18 -18
- package/scripts/entrypoint-data.ts +16 -0
- package/scripts/generate-tests.ts +2 -0
- package/scripts/update-editor-plugins.ts +22 -0
- package/scripts/util.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-plugins
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#98576](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98576)
|
|
8
|
+
[`fb72f1550d5f1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb72f1550d5f1) -
|
|
9
|
+
Removed external re-export from entry file:
|
|
10
|
+
|
|
11
|
+
@atlaskit/editor-plugin-width:
|
|
12
|
+
|
|
13
|
+
- type `WidthPluginState` -> Use type `EditorContainerWidth` from `@atlaskit/editor-common/types`
|
|
14
|
+
instead
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 5.9.26
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 5.9.25
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
2
|
-
export type { WidthPlugin
|
|
2
|
+
export type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
2
|
-
export type { WidthPlugin
|
|
2
|
+
export type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugins",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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",
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
"@atlaskit/editor-plugin-batch-attribute-updates": "1.1.9",
|
|
138
138
|
"@atlaskit/editor-plugin-before-primary-toolbar": "1.3.14",
|
|
139
139
|
"@atlaskit/editor-plugin-better-type-history": "1.9.9",
|
|
140
|
-
"@atlaskit/editor-plugin-block-controls": "2.16.
|
|
140
|
+
"@atlaskit/editor-plugin-block-controls": "2.16.2",
|
|
141
141
|
"@atlaskit/editor-plugin-block-type": "4.0.13",
|
|
142
142
|
"@atlaskit/editor-plugin-border": "1.7.10",
|
|
143
|
-
"@atlaskit/editor-plugin-breakout": "1.9.
|
|
143
|
+
"@atlaskit/editor-plugin-breakout": "1.9.12",
|
|
144
144
|
"@atlaskit/editor-plugin-caption": "1.11.8",
|
|
145
|
-
"@atlaskit/editor-plugin-card": "4.5.
|
|
145
|
+
"@atlaskit/editor-plugin-card": "4.5.10",
|
|
146
146
|
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "1.3.14",
|
|
147
147
|
"@atlaskit/editor-plugin-clipboard": "1.3.13",
|
|
148
148
|
"@atlaskit/editor-plugin-code-bidi-warning": "1.2.15",
|
|
@@ -165,31 +165,31 @@
|
|
|
165
165
|
"@atlaskit/editor-plugin-emoji": "2.7.19",
|
|
166
166
|
"@atlaskit/editor-plugin-engagement-platform": "2.2.5",
|
|
167
167
|
"@atlaskit/editor-plugin-expand": "2.10.11",
|
|
168
|
-
"@atlaskit/editor-plugin-extension": "3.0.
|
|
168
|
+
"@atlaskit/editor-plugin-extension": "3.0.1",
|
|
169
169
|
"@atlaskit/editor-plugin-feature-flags": "1.2.14",
|
|
170
170
|
"@atlaskit/editor-plugin-feedback-dialog": "1.1.12",
|
|
171
171
|
"@atlaskit/editor-plugin-find-replace": "1.7.20",
|
|
172
|
-
"@atlaskit/editor-plugin-floating-toolbar": "1.14.
|
|
172
|
+
"@atlaskit/editor-plugin-floating-toolbar": "1.14.14",
|
|
173
173
|
"@atlaskit/editor-plugin-focus": "1.4.9",
|
|
174
174
|
"@atlaskit/editor-plugin-fragment": "1.9.9",
|
|
175
|
-
"@atlaskit/editor-plugin-grid": "1.2.
|
|
176
|
-
"@atlaskit/editor-plugin-guideline": "1.2.
|
|
175
|
+
"@atlaskit/editor-plugin-grid": "1.2.17",
|
|
176
|
+
"@atlaskit/editor-plugin-guideline": "1.2.20",
|
|
177
177
|
"@atlaskit/editor-plugin-help-dialog": "1.9.11",
|
|
178
178
|
"@atlaskit/editor-plugin-highlight": "1.19.5",
|
|
179
179
|
"@atlaskit/editor-plugin-history": "1.3.13",
|
|
180
|
-
"@atlaskit/editor-plugin-hyperlink": "3.2.
|
|
180
|
+
"@atlaskit/editor-plugin-hyperlink": "3.2.27",
|
|
181
181
|
"@atlaskit/editor-plugin-image-upload": "1.2.14",
|
|
182
182
|
"@atlaskit/editor-plugin-indentation": "1.8.10",
|
|
183
183
|
"@atlaskit/editor-plugin-insert-block": "2.4.26",
|
|
184
|
-
"@atlaskit/editor-plugin-layout": "1.12.
|
|
184
|
+
"@atlaskit/editor-plugin-layout": "1.12.18",
|
|
185
185
|
"@atlaskit/editor-plugin-list": "3.9.9",
|
|
186
|
-
"@atlaskit/editor-plugin-loom": "3.1.
|
|
186
|
+
"@atlaskit/editor-plugin-loom": "3.1.28",
|
|
187
187
|
"@atlaskit/editor-plugin-max-content-size": "1.3.13",
|
|
188
|
-
"@atlaskit/editor-plugin-media": "1.43.
|
|
189
|
-
"@atlaskit/editor-plugin-media-insert": "4.0.
|
|
188
|
+
"@atlaskit/editor-plugin-media": "1.43.8",
|
|
189
|
+
"@atlaskit/editor-plugin-media-insert": "4.0.13",
|
|
190
190
|
"@atlaskit/editor-plugin-mentions": "2.10.8",
|
|
191
191
|
"@atlaskit/editor-plugin-panel": "3.2.1",
|
|
192
|
-
"@atlaskit/editor-plugin-paste": "2.0.
|
|
192
|
+
"@atlaskit/editor-plugin-paste": "2.0.12",
|
|
193
193
|
"@atlaskit/editor-plugin-paste-options-toolbar": "1.4.4",
|
|
194
194
|
"@atlaskit/editor-plugin-placeholder": "1.3.0",
|
|
195
195
|
"@atlaskit/editor-plugin-placeholder-text": "1.9.0",
|
|
@@ -203,16 +203,16 @@
|
|
|
203
203
|
"@atlaskit/editor-plugin-selection-toolbar": "1.5.2",
|
|
204
204
|
"@atlaskit/editor-plugin-status": "2.6.4",
|
|
205
205
|
"@atlaskit/editor-plugin-submit-editor": "1.3.13",
|
|
206
|
-
"@atlaskit/editor-plugin-table": "8.4.
|
|
207
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "2.12.
|
|
206
|
+
"@atlaskit/editor-plugin-table": "8.4.13",
|
|
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.
|
|
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",
|
|
214
214
|
"@atlaskit/editor-plugin-unsupported-content": "1.9.9",
|
|
215
|
-
"@atlaskit/editor-plugin-width": "
|
|
215
|
+
"@atlaskit/editor-plugin-width": "2.0.0",
|
|
216
216
|
"@babel/runtime": "^7.0.0"
|
|
217
217
|
},
|
|
218
218
|
"peerDependencies": {
|
|
@@ -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,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) {
|