@atlaskit/editor-plugins 10.2.12 → 10.2.13

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
+ ## 10.2.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 10.2.12
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugins",
3
- "version": "10.2.12",
3
+ "version": "10.2.13",
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",
@@ -30,26 +30,26 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@atlaskit/editor-plugin-accessibility-utils": "3.0.5",
33
- "@atlaskit/editor-plugin-alignment": "4.2.10",
34
- "@atlaskit/editor-plugin-analytics": "3.0.5",
35
- "@atlaskit/editor-plugin-annotation": "3.3.11",
36
- "@atlaskit/editor-plugin-avatar-group": "4.1.8",
37
- "@atlaskit/editor-plugin-base": "4.1.7",
38
- "@atlaskit/editor-plugin-batch-attribute-updates": "3.0.5",
33
+ "@atlaskit/editor-plugin-alignment": "4.2.11",
34
+ "@atlaskit/editor-plugin-analytics": "3.0.6",
35
+ "@atlaskit/editor-plugin-annotation": "3.3.12",
36
+ "@atlaskit/editor-plugin-avatar-group": "4.1.9",
37
+ "@atlaskit/editor-plugin-base": "4.1.8",
38
+ "@atlaskit/editor-plugin-batch-attribute-updates": "3.0.6",
39
39
  "@atlaskit/editor-plugin-before-primary-toolbar": "3.0.2",
40
40
  "@atlaskit/editor-plugin-better-type-history": "3.0.2",
41
- "@atlaskit/editor-plugin-block-controls": "4.2.7",
42
- "@atlaskit/editor-plugin-block-menu": "0.0.14",
43
- "@atlaskit/editor-plugin-block-type": "6.2.13",
44
- "@atlaskit/editor-plugin-border": "3.0.4",
45
- "@atlaskit/editor-plugin-breakout": "3.1.11",
46
- "@atlaskit/editor-plugin-caption": "3.2.0",
47
- "@atlaskit/editor-plugin-card": "7.5.1",
41
+ "@atlaskit/editor-plugin-block-controls": "4.2.8",
42
+ "@atlaskit/editor-plugin-block-menu": "0.0.15",
43
+ "@atlaskit/editor-plugin-block-type": "6.2.14",
44
+ "@atlaskit/editor-plugin-border": "3.0.5",
45
+ "@atlaskit/editor-plugin-breakout": "3.1.12",
46
+ "@atlaskit/editor-plugin-caption": "3.2.1",
47
+ "@atlaskit/editor-plugin-card": "7.6.0",
48
48
  "@atlaskit/editor-plugin-clear-marks-on-empty-doc": "3.0.0",
49
49
  "@atlaskit/editor-plugin-clipboard": "3.0.0",
50
50
  "@atlaskit/editor-plugin-code-bidi-warning": "3.0.4",
51
- "@atlaskit/editor-plugin-code-block": "5.0.13",
52
- "@atlaskit/editor-plugin-collab-edit": "4.2.2",
51
+ "@atlaskit/editor-plugin-code-block": "5.0.14",
52
+ "@atlaskit/editor-plugin-collab-edit": "4.2.3",
53
53
  "@atlaskit/editor-plugin-composition": "2.0.0",
54
54
  "@atlaskit/editor-plugin-connectivity": "3.1.1",
55
55
  "@atlaskit/editor-plugin-content-insertion": "3.1.2",
@@ -57,72 +57,72 @@
57
57
  "@atlaskit/editor-plugin-context-panel": "5.1.3",
58
58
  "@atlaskit/editor-plugin-copy-button": "3.0.2",
59
59
  "@atlaskit/editor-plugin-custom-autoformat": "3.0.1",
60
- "@atlaskit/editor-plugin-data-consumer": "3.0.4",
61
- "@atlaskit/editor-plugin-date": "5.1.12",
60
+ "@atlaskit/editor-plugin-data-consumer": "3.0.5",
61
+ "@atlaskit/editor-plugin-date": "5.1.13",
62
62
  "@atlaskit/editor-plugin-decorations": "3.1.0",
63
63
  "@atlaskit/editor-plugin-editor-disabled": "3.0.1",
64
64
  "@atlaskit/editor-plugin-editor-viewmode": "5.0.4",
65
65
  "@atlaskit/editor-plugin-editor-viewmode-effects": "3.0.1",
66
- "@atlaskit/editor-plugin-emoji": "4.3.2",
66
+ "@atlaskit/editor-plugin-emoji": "4.3.3",
67
67
  "@atlaskit/editor-plugin-engagement-platform": "4.0.1",
68
- "@atlaskit/editor-plugin-expand": "4.3.0",
69
- "@atlaskit/editor-plugin-extension": "6.2.1",
68
+ "@atlaskit/editor-plugin-expand": "4.3.1",
69
+ "@atlaskit/editor-plugin-extension": "6.2.2",
70
70
  "@atlaskit/editor-plugin-feature-flags": "2.0.1",
71
71
  "@atlaskit/editor-plugin-feedback-dialog": "3.0.1",
72
72
  "@atlaskit/editor-plugin-find-replace": "3.2.9",
73
73
  "@atlaskit/editor-plugin-floating-toolbar": "5.2.3",
74
74
  "@atlaskit/editor-plugin-focus": "2.0.0",
75
- "@atlaskit/editor-plugin-fragment": "3.0.4",
75
+ "@atlaskit/editor-plugin-fragment": "3.0.5",
76
76
  "@atlaskit/editor-plugin-grid": "3.1.1",
77
77
  "@atlaskit/editor-plugin-guideline": "3.0.5",
78
78
  "@atlaskit/editor-plugin-help-dialog": "3.1.7",
79
- "@atlaskit/editor-plugin-highlight": "3.1.0",
79
+ "@atlaskit/editor-plugin-highlight": "3.1.1",
80
80
  "@atlaskit/editor-plugin-history": "3.1.1",
81
- "@atlaskit/editor-plugin-hyperlink": "5.4.12",
81
+ "@atlaskit/editor-plugin-hyperlink": "5.4.13",
82
82
  "@atlaskit/editor-plugin-image-upload": "3.0.1",
83
- "@atlaskit/editor-plugin-indentation": "3.2.1",
84
- "@atlaskit/editor-plugin-insert-block": "4.3.6",
83
+ "@atlaskit/editor-plugin-indentation": "3.2.2",
84
+ "@atlaskit/editor-plugin-insert-block": "4.3.7",
85
85
  "@atlaskit/editor-plugin-interaction": "5.0.1",
86
- "@atlaskit/editor-plugin-layout": "3.2.0",
86
+ "@atlaskit/editor-plugin-layout": "3.2.1",
87
87
  "@atlaskit/editor-plugin-limited-mode": "0.0.3",
88
- "@atlaskit/editor-plugin-list": "5.1.7",
89
- "@atlaskit/editor-plugin-local-id": "1.0.5",
90
- "@atlaskit/editor-plugin-loom": "5.1.3",
88
+ "@atlaskit/editor-plugin-list": "5.1.8",
89
+ "@atlaskit/editor-plugin-local-id": "1.0.6",
90
+ "@atlaskit/editor-plugin-loom": "5.1.4",
91
91
  "@atlaskit/editor-plugin-max-content-size": "3.0.1",
92
- "@atlaskit/editor-plugin-media": "5.4.1",
93
- "@atlaskit/editor-plugin-media-insert": "9.2.5",
94
- "@atlaskit/editor-plugin-mentions": "5.2.10",
95
- "@atlaskit/editor-plugin-metrics": "4.0.9",
92
+ "@atlaskit/editor-plugin-media": "5.4.2",
93
+ "@atlaskit/editor-plugin-media-insert": "9.2.6",
94
+ "@atlaskit/editor-plugin-mentions": "5.2.11",
95
+ "@atlaskit/editor-plugin-metrics": "4.0.10",
96
96
  "@atlaskit/editor-plugin-ncs-step-metrics": "2.0.0",
97
- "@atlaskit/editor-plugin-panel": "5.4.1",
98
- "@atlaskit/editor-plugin-paste": "4.1.8",
97
+ "@atlaskit/editor-plugin-panel": "5.4.2",
98
+ "@atlaskit/editor-plugin-paste": "4.1.9",
99
99
  "@atlaskit/editor-plugin-paste-options-toolbar": "3.1.3",
100
100
  "@atlaskit/editor-plugin-placeholder": "3.2.2",
101
- "@atlaskit/editor-plugin-placeholder-text": "3.1.8",
101
+ "@atlaskit/editor-plugin-placeholder-text": "3.1.9",
102
102
  "@atlaskit/editor-plugin-primary-toolbar": "4.1.6",
103
103
  "@atlaskit/editor-plugin-quick-insert": "3.0.9",
104
- "@atlaskit/editor-plugin-rule": "3.0.5",
104
+ "@atlaskit/editor-plugin-rule": "3.0.6",
105
105
  "@atlaskit/editor-plugin-save-on-enter": "3.0.1",
106
106
  "@atlaskit/editor-plugin-scroll-into-view": "3.0.2",
107
107
  "@atlaskit/editor-plugin-selection": "3.2.1",
108
- "@atlaskit/editor-plugin-selection-extension": "3.6.0",
108
+ "@atlaskit/editor-plugin-selection-extension": "3.6.1",
109
109
  "@atlaskit/editor-plugin-selection-marker": "3.0.9",
110
- "@atlaskit/editor-plugin-selection-toolbar": "4.3.11",
110
+ "@atlaskit/editor-plugin-selection-toolbar": "4.3.12",
111
111
  "@atlaskit/editor-plugin-show-diff": "0.1.7",
112
- "@atlaskit/editor-plugin-status": "4.1.10",
112
+ "@atlaskit/editor-plugin-status": "4.1.11",
113
113
  "@atlaskit/editor-plugin-submit-editor": "3.1.1",
114
- "@atlaskit/editor-plugin-synced-block": "0.1.1",
115
- "@atlaskit/editor-plugin-table": "12.3.5",
116
- "@atlaskit/editor-plugin-tasks-and-decisions": "6.4.6",
117
- "@atlaskit/editor-plugin-text-color": "3.2.0",
118
- "@atlaskit/editor-plugin-text-formatting": "3.0.24",
119
- "@atlaskit/editor-plugin-toolbar": "0.4.4",
120
- "@atlaskit/editor-plugin-toolbar-lists-indentation": "4.2.10",
121
- "@atlaskit/editor-plugin-track-changes": "2.7.9",
122
- "@atlaskit/editor-plugin-type-ahead": "3.1.12",
114
+ "@atlaskit/editor-plugin-synced-block": "0.1.2",
115
+ "@atlaskit/editor-plugin-table": "12.3.6",
116
+ "@atlaskit/editor-plugin-tasks-and-decisions": "6.4.7",
117
+ "@atlaskit/editor-plugin-text-color": "3.2.1",
118
+ "@atlaskit/editor-plugin-text-formatting": "3.0.25",
119
+ "@atlaskit/editor-plugin-toolbar": "0.4.5",
120
+ "@atlaskit/editor-plugin-toolbar-lists-indentation": "4.2.11",
121
+ "@atlaskit/editor-plugin-track-changes": "2.7.10",
122
+ "@atlaskit/editor-plugin-type-ahead": "3.1.13",
123
123
  "@atlaskit/editor-plugin-ufo": "3.1.3",
124
- "@atlaskit/editor-plugin-undo-redo": "3.2.6",
125
- "@atlaskit/editor-plugin-unsupported-content": "3.0.5",
124
+ "@atlaskit/editor-plugin-undo-redo": "3.2.7",
125
+ "@atlaskit/editor-plugin-unsupported-content": "3.0.6",
126
126
  "@atlaskit/editor-plugin-user-intent": "1.1.1",
127
127
  "@atlaskit/editor-plugin-user-preferences": "1.2.5",
128
128
  "@atlaskit/editor-plugin-width": "4.0.4",
@@ -31,27 +31,27 @@ export interface EntryPointData {
31
31
  fileData: FileData;
32
32
  }
33
33
 
34
- function getAfExports(folderPath: string) {
34
+ function getExports(folderPath: string) {
35
35
  const packageJsonPath = path.join(folderPath, 'package.json');
36
36
  const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
37
37
 
38
- const afExports = packageJson['af:exports'];
39
- if (!afExports) {
40
- throw new Error(`Could not find af:exports in package.json at ${packageJsonPath}`);
38
+ const exportsValue = packageJson['af:exports'] ?? packageJson['exports'];
39
+ if (!exportsValue) {
40
+ throw new Error(`Could not find af:exports or exports in package.json at ${packageJsonPath}`);
41
41
  }
42
42
 
43
43
  const folderName = path.basename(folderPath);
44
44
  const data: ExtractedAfExportData[] = [];
45
45
 
46
- for (const key in afExports) {
47
- if (afExports.hasOwnProperty(key)) {
46
+ for (const key in exportsValue) {
47
+ if (exportsValue.hasOwnProperty(key)) {
48
48
  // Normalize the key
49
49
  const normalizedKey = key.startsWith('.') ? key.substring(1) : key;
50
- const normalizedValue = afExports[key].startsWith('.')
51
- ? afExports[key].substring(1)
52
- : afExports[key];
50
+ const normalizedValue = exportsValue[key].startsWith('.')
51
+ ? exportsValue[key].substring(1)
52
+ : exportsValue[key];
53
53
  const shortenedFolderName = folderName.split('-').slice(2).join('-');
54
- const newRelativeFilePath = afExports[key].replace(
54
+ const newRelativeFilePath = exportsValue[key].replace(
55
55
  './src',
56
56
  path.join('src', shortenedFolderName),
57
57
  );
@@ -208,7 +208,7 @@ function getFileExportNames(fileName: string) {
208
208
  }
209
209
 
210
210
  export function getEntryPointDataForPlugin(pluginPath: string): EntryPointData[] {
211
- const afExports = getAfExports(pluginPath);
211
+ const exportsValue = getExports(pluginPath);
212
212
  const newAfExportData: EntryPointData[] = [];
213
213
 
214
214
  for (const {
@@ -217,7 +217,7 @@ export function getEntryPointDataForPlugin(pluginPath: string): EntryPointData[]
217
217
  newAfExportValue,
218
218
  atlaskitImportName,
219
219
  absoluteFilePath,
220
- } of afExports) {
220
+ } of exportsValue) {
221
221
  const exportStatements = createExportStatementsForAfExport(
222
222
  atlaskitImportName,
223
223
  absoluteFilePath,