@atlaskit/editor-presets 2.0.0 → 2.0.1
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 +38 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/tablePluginOptions.js +0 -4
- package/dist/es2019/confluence-full-page-base/pluginOptions/tablePluginOptions.js +0 -4
- package/dist/esm/confluence-full-page-base/pluginOptions/tablePluginOptions.js +0 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @atlaskit/editor-presets
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b47ee185c5ac4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b47ee185c5ac4) -
|
|
8
|
+
Remove deprecated dragAndDropEnabled plugin option Drag and drop table rows/ columns and advanced
|
|
9
|
+
table controls used to be toggled with dragAndDropEnabled table plugin option however we're
|
|
10
|
+
deprecating this prop to make this the default behaviour.
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
// Before - to turn on drag and drop:
|
|
14
|
+
|
|
15
|
+
const createPreset = () =>
|
|
16
|
+
createDefaultPreset({ featureFlags: {}, paste: {} })
|
|
17
|
+
.add([tablePlugin, {tableOptions: {}, dragAndDropEnabled: true}])
|
|
18
|
+
|
|
19
|
+
const { preset } = usePreset(createPreset);
|
|
20
|
+
|
|
21
|
+
// Now - drag and drop enabled even without prop
|
|
22
|
+
const createPreset = () =>
|
|
23
|
+
createDefaultPreset({ featureFlags: {}, paste: {} })
|
|
24
|
+
.add([tablePlugin, {tableOptions: {}}])
|
|
25
|
+
|
|
26
|
+
const { preset } = usePreset(createPreset);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The `dragAndDropEnabled` property has also been removed from the `TablePluginOptions` TypeScript
|
|
30
|
+
interface.
|
|
31
|
+
|
|
32
|
+
**Note:** If you previously set `dragAndDropEnabled: false` to explicitly disable drag and drop,
|
|
33
|
+
this is no longer supported — drag and drop is now always enabled and cannot be turned off via
|
|
34
|
+
this option.
|
|
35
|
+
|
|
36
|
+
If issues occur when bumping editor package, please check if dragAndDropEnabled is still present
|
|
37
|
+
in editor integration.
|
|
38
|
+
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
|
|
3
41
|
## 2.0.0
|
|
4
42
|
|
|
5
43
|
### Major Changes
|
|
@@ -26,9 +26,6 @@ function tablePluginOptions(_ref) {
|
|
|
26
26
|
stickyHeaders: true,
|
|
27
27
|
allowAddColumnWithCustomStep: false
|
|
28
28
|
},
|
|
29
|
-
// SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
|
|
30
|
-
dragAndDropEnabled: true,
|
|
31
|
-
// END SECTION
|
|
32
29
|
isTableScalingEnabled: true,
|
|
33
30
|
allowContextualMenu: true,
|
|
34
31
|
fullWidthEnabled: options.editorAppearance === 'full-width',
|
|
@@ -39,7 +36,6 @@ function tablePluginOptions(_ref) {
|
|
|
39
36
|
// SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
|
|
40
37
|
tableWithFixedColumnWidthsOption: (0, _platformFeatureFlags.fg)('platform_editor_table_fixed_column_width_prop') ? undefined : true,
|
|
41
38
|
// END SECTION
|
|
42
|
-
|
|
43
39
|
// SECTION: From confluence/next/packages/full-page-editor/src/hooks/useEditorFullPageExperiments.ts
|
|
44
40
|
tableSelector: (0, _experiments.editorExperiment)('platform_editor_tables_table_selector', true)
|
|
45
41
|
// END SECTION
|
|
@@ -21,9 +21,6 @@ export function tablePluginOptions({
|
|
|
21
21
|
stickyHeaders: true,
|
|
22
22
|
allowAddColumnWithCustomStep: false
|
|
23
23
|
},
|
|
24
|
-
// SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
|
|
25
|
-
dragAndDropEnabled: true,
|
|
26
|
-
// END SECTION
|
|
27
24
|
isTableScalingEnabled: true,
|
|
28
25
|
allowContextualMenu: true,
|
|
29
26
|
fullWidthEnabled: options.editorAppearance === 'full-width',
|
|
@@ -33,7 +30,6 @@ export function tablePluginOptions({
|
|
|
33
30
|
// SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
|
|
34
31
|
tableWithFixedColumnWidthsOption: fg('platform_editor_table_fixed_column_width_prop') ? undefined : true,
|
|
35
32
|
// END SECTION
|
|
36
|
-
|
|
37
33
|
// SECTION: From confluence/next/packages/full-page-editor/src/hooks/useEditorFullPageExperiments.ts
|
|
38
34
|
tableSelector: editorExperiment('platform_editor_tables_table_selector', true)
|
|
39
35
|
// END SECTION
|
|
@@ -20,9 +20,6 @@ export function tablePluginOptions(_ref) {
|
|
|
20
20
|
stickyHeaders: true,
|
|
21
21
|
allowAddColumnWithCustomStep: false
|
|
22
22
|
},
|
|
23
|
-
// SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
|
|
24
|
-
dragAndDropEnabled: true,
|
|
25
|
-
// END SECTION
|
|
26
23
|
isTableScalingEnabled: true,
|
|
27
24
|
allowContextualMenu: true,
|
|
28
25
|
fullWidthEnabled: options.editorAppearance === 'full-width',
|
|
@@ -33,7 +30,6 @@ export function tablePluginOptions(_ref) {
|
|
|
33
30
|
// SECTION: From confluence/next/packages/editor-features/src/hooks/useEditorFeatureFlags.ts
|
|
34
31
|
tableWithFixedColumnWidthsOption: fg('platform_editor_table_fixed_column_width_prop') ? undefined : true,
|
|
35
32
|
// END SECTION
|
|
36
|
-
|
|
37
33
|
// SECTION: From confluence/next/packages/full-page-editor/src/hooks/useEditorFullPageExperiments.ts
|
|
38
34
|
tableSelector: editorExperiment('platform_editor_tables_table_selector', true)
|
|
39
35
|
// END SECTION
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-presets",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Public editor presets for Atlassian Editor containing base configurations for Confluence and other products",
|
|
6
6
|
"publishConfig": {
|
|
@@ -103,11 +103,11 @@
|
|
|
103
103
|
"@atlaskit/editor-plugin-selection-extension": "^13.0.0",
|
|
104
104
|
"@atlaskit/editor-plugin-selection-marker": "^10.0.0",
|
|
105
105
|
"@atlaskit/editor-plugin-selection-toolbar": "^11.0.0",
|
|
106
|
-
"@atlaskit/editor-plugin-show-diff": "^8.
|
|
106
|
+
"@atlaskit/editor-plugin-show-diff": "^8.1.0",
|
|
107
107
|
"@atlaskit/editor-plugin-status": "^11.0.0",
|
|
108
108
|
"@atlaskit/editor-plugin-submit-editor": "^10.0.0",
|
|
109
109
|
"@atlaskit/editor-plugin-synced-block": "^8.0.0",
|
|
110
|
-
"@atlaskit/editor-plugin-table": "^
|
|
110
|
+
"@atlaskit/editor-plugin-table": "^22.0.0",
|
|
111
111
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^13.0.0",
|
|
112
112
|
"@atlaskit/editor-plugin-text-color": "^10.0.0",
|
|
113
113
|
"@atlaskit/editor-plugin-text-formatting": "^10.0.0",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@babel/runtime": "^7.0.0"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
|
-
"@atlaskit/editor-common": "^114.
|
|
130
|
+
"@atlaskit/editor-common": "^114.1.0",
|
|
131
131
|
"react": "^18.2.0",
|
|
132
132
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
133
133
|
},
|