@atlaskit/editor-plugins 16.2.44 → 16.2.47
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 +18 -0
- package/package.json +59 -59
- package/scripts/update-editor-plugins.ts +29 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugins
|
|
2
2
|
|
|
3
|
+
## 16.2.47
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.2.46
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 16.2.45
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 16.2.44
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugins",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.47",
|
|
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",
|
|
@@ -22,107 +22,107 @@
|
|
|
22
22
|
"update-editor-plugins": "run-ts scripts/update-editor-plugins.ts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@atlaskit/editor-plugin-accessibility-utils": "28.0.
|
|
26
|
-
"@atlaskit/editor-plugin-alignment": "29.0.
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "28.0.
|
|
28
|
-
"@atlaskit/editor-plugin-annotation": "28.1.
|
|
25
|
+
"@atlaskit/editor-plugin-accessibility-utils": "28.0.1",
|
|
26
|
+
"@atlaskit/editor-plugin-alignment": "29.0.1",
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "28.0.1",
|
|
28
|
+
"@atlaskit/editor-plugin-annotation": "28.1.1",
|
|
29
29
|
"@atlaskit/editor-plugin-autocomplete": "22.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-avatar-group": "29.0.0",
|
|
31
|
-
"@atlaskit/editor-plugin-base": "29.0.
|
|
31
|
+
"@atlaskit/editor-plugin-base": "29.0.1",
|
|
32
32
|
"@atlaskit/editor-plugin-batch-attribute-updates": "28.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-before-primary-toolbar": "28.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-better-type-history": "28.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-block-collapse": "14.0.0",
|
|
36
|
-
"@atlaskit/editor-plugin-block-controls": "29.0.
|
|
37
|
-
"@atlaskit/editor-plugin-block-menu": "27.0.
|
|
38
|
-
"@atlaskit/editor-plugin-block-type": "32.0.
|
|
36
|
+
"@atlaskit/editor-plugin-block-controls": "29.0.1",
|
|
37
|
+
"@atlaskit/editor-plugin-block-menu": "27.0.1",
|
|
38
|
+
"@atlaskit/editor-plugin-block-type": "32.0.1",
|
|
39
39
|
"@atlaskit/editor-plugin-border": "28.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-breakout": "28.0.
|
|
40
|
+
"@atlaskit/editor-plugin-breakout": "28.0.1",
|
|
41
41
|
"@atlaskit/editor-plugin-caption": "28.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-card": "34.0.
|
|
42
|
+
"@atlaskit/editor-plugin-card": "34.0.1",
|
|
43
43
|
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "28.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-clipboard": "28.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-code-bidi-warning": "28.0.0",
|
|
46
|
-
"@atlaskit/editor-plugin-code-block": "30.0.
|
|
47
|
-
"@atlaskit/editor-plugin-collab-edit": "29.0.
|
|
46
|
+
"@atlaskit/editor-plugin-code-block": "30.0.1",
|
|
47
|
+
"@atlaskit/editor-plugin-collab-edit": "29.0.1",
|
|
48
48
|
"@atlaskit/editor-plugin-composition": "27.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-connectivity": "28.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-content-format": "22.0.0",
|
|
51
51
|
"@atlaskit/editor-plugin-content-insertion": "28.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-context-identifier": "28.0.0",
|
|
53
53
|
"@atlaskit/editor-plugin-context-panel": "30.0.0",
|
|
54
|
-
"@atlaskit/editor-plugin-copy-button": "28.0.
|
|
54
|
+
"@atlaskit/editor-plugin-copy-button": "28.0.1",
|
|
55
55
|
"@atlaskit/editor-plugin-custom-autoformat": "28.0.0",
|
|
56
56
|
"@atlaskit/editor-plugin-data-consumer": "28.0.0",
|
|
57
|
-
"@atlaskit/editor-plugin-date": "30.0.
|
|
58
|
-
"@atlaskit/editor-plugin-decorations": "28.0.
|
|
57
|
+
"@atlaskit/editor-plugin-date": "30.0.1",
|
|
58
|
+
"@atlaskit/editor-plugin-decorations": "28.0.1",
|
|
59
59
|
"@atlaskit/editor-plugin-editor-disabled": "28.0.0",
|
|
60
60
|
"@atlaskit/editor-plugin-editor-viewmode": "30.0.0",
|
|
61
|
-
"@atlaskit/editor-plugin-editor-viewmode-effects": "28.0.
|
|
62
|
-
"@atlaskit/editor-plugin-emoji": "29.0.
|
|
61
|
+
"@atlaskit/editor-plugin-editor-viewmode-effects": "28.0.1",
|
|
62
|
+
"@atlaskit/editor-plugin-emoji": "29.0.1",
|
|
63
63
|
"@atlaskit/editor-plugin-engagement-platform": "29.0.0",
|
|
64
|
-
"@atlaskit/editor-plugin-expand": "29.0.
|
|
65
|
-
"@atlaskit/editor-plugin-extension": "31.0.
|
|
64
|
+
"@atlaskit/editor-plugin-expand": "29.0.1",
|
|
65
|
+
"@atlaskit/editor-plugin-extension": "31.0.1",
|
|
66
66
|
"@atlaskit/editor-plugin-feature-flags": "27.0.0",
|
|
67
67
|
"@atlaskit/editor-plugin-feedback-dialog": "28.0.0",
|
|
68
|
-
"@atlaskit/editor-plugin-find-replace": "28.0.
|
|
69
|
-
"@atlaskit/editor-plugin-floating-toolbar": "30.0.
|
|
68
|
+
"@atlaskit/editor-plugin-find-replace": "28.0.1",
|
|
69
|
+
"@atlaskit/editor-plugin-floating-toolbar": "30.0.1",
|
|
70
70
|
"@atlaskit/editor-plugin-focus": "27.0.0",
|
|
71
71
|
"@atlaskit/editor-plugin-fragment": "28.0.0",
|
|
72
|
-
"@atlaskit/editor-plugin-grid": "28.0.
|
|
72
|
+
"@atlaskit/editor-plugin-grid": "28.0.1",
|
|
73
73
|
"@atlaskit/editor-plugin-guideline": "28.0.0",
|
|
74
|
-
"@atlaskit/editor-plugin-help-dialog": "28.0.
|
|
75
|
-
"@atlaskit/editor-plugin-highlight": "28.0.
|
|
74
|
+
"@atlaskit/editor-plugin-help-dialog": "28.0.1",
|
|
75
|
+
"@atlaskit/editor-plugin-highlight": "28.0.1",
|
|
76
76
|
"@atlaskit/editor-plugin-history": "28.0.0",
|
|
77
|
-
"@atlaskit/editor-plugin-hyperlink": "30.0.
|
|
77
|
+
"@atlaskit/editor-plugin-hyperlink": "30.0.1",
|
|
78
78
|
"@atlaskit/editor-plugin-image-upload": "28.0.0",
|
|
79
79
|
"@atlaskit/editor-plugin-indentation": "28.0.0",
|
|
80
|
-
"@atlaskit/editor-plugin-insert-block": "29.0.
|
|
80
|
+
"@atlaskit/editor-plugin-insert-block": "29.0.1",
|
|
81
81
|
"@atlaskit/editor-plugin-interaction": "42.0.0",
|
|
82
82
|
"@atlaskit/editor-plugin-interactivity": "13.0.0",
|
|
83
|
-
"@atlaskit/editor-plugin-layout": "29.0.
|
|
84
|
-
"@atlaskit/editor-plugin-limited-mode": "25.0.
|
|
85
|
-
"@atlaskit/editor-plugin-list": "30.0.
|
|
86
|
-
"@atlaskit/editor-plugin-local-id": "26.0.
|
|
83
|
+
"@atlaskit/editor-plugin-layout": "29.0.1",
|
|
84
|
+
"@atlaskit/editor-plugin-limited-mode": "25.0.1",
|
|
85
|
+
"@atlaskit/editor-plugin-list": "30.0.1",
|
|
86
|
+
"@atlaskit/editor-plugin-local-id": "26.0.1",
|
|
87
87
|
"@atlaskit/editor-plugin-loom": "30.0.0",
|
|
88
88
|
"@atlaskit/editor-plugin-max-content-size": "28.0.0",
|
|
89
|
-
"@atlaskit/editor-plugin-media": "30.0.
|
|
89
|
+
"@atlaskit/editor-plugin-media": "30.0.2",
|
|
90
90
|
"@atlaskit/editor-plugin-media-editing": "22.0.0",
|
|
91
|
-
"@atlaskit/editor-plugin-media-insert": "46.0.
|
|
92
|
-
"@atlaskit/editor-plugin-mentions": "30.0.
|
|
93
|
-
"@atlaskit/editor-plugin-metrics": "29.0.
|
|
94
|
-
"@atlaskit/editor-plugin-panel": "30.0.
|
|
95
|
-
"@atlaskit/editor-plugin-paste": "29.0.
|
|
96
|
-
"@atlaskit/editor-plugin-paste-options-toolbar": "29.0.
|
|
97
|
-
"@atlaskit/editor-plugin-placeholder": "28.0.
|
|
91
|
+
"@atlaskit/editor-plugin-media-insert": "46.0.1",
|
|
92
|
+
"@atlaskit/editor-plugin-mentions": "30.0.2",
|
|
93
|
+
"@atlaskit/editor-plugin-metrics": "29.0.1",
|
|
94
|
+
"@atlaskit/editor-plugin-panel": "30.0.1",
|
|
95
|
+
"@atlaskit/editor-plugin-paste": "29.0.1",
|
|
96
|
+
"@atlaskit/editor-plugin-paste-options-toolbar": "29.0.1",
|
|
97
|
+
"@atlaskit/editor-plugin-placeholder": "28.0.1",
|
|
98
98
|
"@atlaskit/editor-plugin-placeholder-text": "29.0.0",
|
|
99
|
-
"@atlaskit/editor-plugin-primary-toolbar": "29.0.
|
|
100
|
-
"@atlaskit/editor-plugin-quick-insert": "28.0.
|
|
99
|
+
"@atlaskit/editor-plugin-primary-toolbar": "29.0.1",
|
|
100
|
+
"@atlaskit/editor-plugin-quick-insert": "28.0.1",
|
|
101
101
|
"@atlaskit/editor-plugin-rule": "28.0.0",
|
|
102
102
|
"@atlaskit/editor-plugin-save-on-enter": "28.0.0",
|
|
103
103
|
"@atlaskit/editor-plugin-scroll-into-view": "28.0.0",
|
|
104
|
-
"@atlaskit/editor-plugin-selection": "28.0.
|
|
105
|
-
"@atlaskit/editor-plugin-selection-extension": "31.0.
|
|
106
|
-
"@atlaskit/editor-plugin-selection-marker": "28.0.
|
|
107
|
-
"@atlaskit/editor-plugin-selection-toolbar": "29.0.
|
|
108
|
-
"@atlaskit/editor-plugin-show-diff": "26.0.
|
|
109
|
-
"@atlaskit/editor-plugin-status": "29.0.
|
|
104
|
+
"@atlaskit/editor-plugin-selection": "28.0.1",
|
|
105
|
+
"@atlaskit/editor-plugin-selection-extension": "31.0.1",
|
|
106
|
+
"@atlaskit/editor-plugin-selection-marker": "28.0.1",
|
|
107
|
+
"@atlaskit/editor-plugin-selection-toolbar": "29.0.1",
|
|
108
|
+
"@atlaskit/editor-plugin-show-diff": "26.0.3",
|
|
109
|
+
"@atlaskit/editor-plugin-status": "29.0.1",
|
|
110
110
|
"@atlaskit/editor-plugin-submit-editor": "28.0.0",
|
|
111
|
-
"@atlaskit/editor-plugin-synced-block": "26.0.
|
|
112
|
-
"@atlaskit/editor-plugin-table": "40.0.
|
|
113
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "31.0.
|
|
114
|
-
"@atlaskit/editor-plugin-text-color": "28.0.
|
|
115
|
-
"@atlaskit/editor-plugin-text-formatting": "28.0.
|
|
116
|
-
"@atlaskit/editor-plugin-toolbar": "25.0.
|
|
117
|
-
"@atlaskit/editor-plugin-toolbar-lists-indentation": "29.0.
|
|
118
|
-
"@atlaskit/editor-plugin-track-changes": "27.0.
|
|
119
|
-
"@atlaskit/editor-plugin-type-ahead": "29.0.
|
|
120
|
-
"@atlaskit/editor-plugin-ufo": "28.0.
|
|
111
|
+
"@atlaskit/editor-plugin-synced-block": "26.0.2",
|
|
112
|
+
"@atlaskit/editor-plugin-table": "40.0.2",
|
|
113
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "31.0.1",
|
|
114
|
+
"@atlaskit/editor-plugin-text-color": "28.0.1",
|
|
115
|
+
"@atlaskit/editor-plugin-text-formatting": "28.0.1",
|
|
116
|
+
"@atlaskit/editor-plugin-toolbar": "25.0.1",
|
|
117
|
+
"@atlaskit/editor-plugin-toolbar-lists-indentation": "29.0.1",
|
|
118
|
+
"@atlaskit/editor-plugin-track-changes": "27.0.3",
|
|
119
|
+
"@atlaskit/editor-plugin-type-ahead": "29.0.1",
|
|
120
|
+
"@atlaskit/editor-plugin-ufo": "28.0.1",
|
|
121
121
|
"@atlaskit/editor-plugin-ui-control-registry": "22.0.0",
|
|
122
|
-
"@atlaskit/editor-plugin-undo-redo": "28.0.
|
|
122
|
+
"@atlaskit/editor-plugin-undo-redo": "28.0.1",
|
|
123
123
|
"@atlaskit/editor-plugin-unsupported-content": "28.0.0",
|
|
124
124
|
"@atlaskit/editor-plugin-user-intent": "26.0.0",
|
|
125
|
-
"@atlaskit/editor-plugin-user-preferences": "26.0.
|
|
125
|
+
"@atlaskit/editor-plugin-user-preferences": "26.0.1",
|
|
126
126
|
"@atlaskit/editor-plugin-width": "29.0.0",
|
|
127
127
|
"@babel/runtime": "^7.0.0"
|
|
128
128
|
},
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
// Ignored via go/ees005
|
|
3
3
|
// eslint-disable-next-line import/no-namespace
|
|
4
|
+
import { execFileSync } from 'child_process';
|
|
5
|
+
// Ignored via go/ees005
|
|
6
|
+
// eslint-disable-next-line import/no-namespace
|
|
4
7
|
import * as fs from 'fs';
|
|
5
8
|
// Ignored via go/ees005
|
|
6
9
|
// eslint-disable-next-line import/no-namespace
|
|
@@ -179,26 +182,31 @@ function getUpdatedDependenciesFromPackageJsons(
|
|
|
179
182
|
return depVersions;
|
|
180
183
|
}
|
|
181
184
|
|
|
182
|
-
function
|
|
185
|
+
function getFeatureFlagsFromFactsMap(
|
|
183
186
|
// Ignored via go/ees005
|
|
184
187
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
185
188
|
packageJsons: Record<string, any>[],
|
|
186
|
-
): Record<string,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
): Record<string, { referenceOnly: true; type: 'boolean' }> {
|
|
190
|
+
const afmRootPath = path.resolve(rootPath, '..');
|
|
191
|
+
const factsMapPackages = JSON.parse(
|
|
192
|
+
execFileSync(
|
|
193
|
+
path.join(afmRootPath, 'bin', 'facts_map_interactive'),
|
|
194
|
+
['package-feature-flags', '--only-product', '--build-cache'],
|
|
195
|
+
{ cwd: afmRootPath, encoding: 'utf8', maxBuffer: 32 * 1024 * 1024 },
|
|
196
|
+
),
|
|
197
|
+
) as Record<string, { flags: string[] }>;
|
|
198
|
+
|
|
199
|
+
const flags = new Set<string>();
|
|
190
200
|
packageJsons.forEach((packageJson) => {
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
mergedFeatureFlags[key] = {
|
|
195
|
-
...featureFlags[key],
|
|
196
|
-
referenceOnly: true,
|
|
197
|
-
};
|
|
198
|
-
}
|
|
201
|
+
const packageName = packageJson.name;
|
|
202
|
+
if (typeof packageName === 'string') {
|
|
203
|
+
factsMapPackages[packageName]?.flags.forEach((flag) => flags.add(flag));
|
|
199
204
|
}
|
|
200
205
|
});
|
|
201
|
-
|
|
206
|
+
|
|
207
|
+
return Object.fromEntries(
|
|
208
|
+
[...flags].sort().map((flag) => [flag, { type: 'boolean', referenceOnly: true }]),
|
|
209
|
+
);
|
|
202
210
|
}
|
|
203
211
|
|
|
204
212
|
// Function to read and return package.json of editor plugins
|
|
@@ -428,7 +436,7 @@ async function run() {
|
|
|
428
436
|
.option('update-feature-flags', {
|
|
429
437
|
alias: 'f',
|
|
430
438
|
type: 'boolean',
|
|
431
|
-
description: 'Update feature flags as well',
|
|
439
|
+
description: 'Update feature flags from FactsMap as well',
|
|
432
440
|
default: false,
|
|
433
441
|
})
|
|
434
442
|
.option('force-versions', {
|
|
@@ -444,8 +452,8 @@ async function run() {
|
|
|
444
452
|
const newEditorPluginsDeps = getUpdatedDependenciesFromPackageJsons(packageJsons);
|
|
445
453
|
const editorPluginsPackageJson = getEditorPluginsPackageJson();
|
|
446
454
|
const featureFlags = argv['update-feature-flags']
|
|
447
|
-
?
|
|
448
|
-
:
|
|
455
|
+
? getFeatureFlagsFromFactsMap(packageJsons)
|
|
456
|
+
: undefined;
|
|
449
457
|
const currentDeps = editorPluginsPackageJson.dependencies;
|
|
450
458
|
|
|
451
459
|
if (!currentDeps) {
|
|
@@ -488,7 +496,10 @@ async function run() {
|
|
|
488
496
|
...editorPluginsPackageJson,
|
|
489
497
|
exports: orderObjectByDepthAndRoot(newEditorPluginsExports),
|
|
490
498
|
dependencies: sortObjectKeys(updatedDeps),
|
|
491
|
-
|
|
499
|
+
// This aggregate package references flags used by its included plugins.
|
|
500
|
+
...(featureFlags !== undefined && {
|
|
501
|
+
'platform-feature-flags': featureFlags,
|
|
502
|
+
}),
|
|
492
503
|
// only update the 'exports' property if it already exists in the package
|
|
493
504
|
...(editorPluginsPackageJson.exports && {
|
|
494
505
|
exports: orderObjectByDepthAndRoot(newEditorPluginsExports),
|