@atlaskit/editor-presets 13.0.3 → 13.0.4
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 +14 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +1 -2
- package/dist/cjs/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +1 -2
- package/dist/es2019/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +1 -2
- package/dist/es2019/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +1 -2
- package/dist/esm/confluence-full-page-base/pluginOptions/collabEditPluginOptions.js +1 -2
- package/dist/esm/confluence-full-page-base/pluginOptions/selectionMarkerPluginOptions.js +1 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-presets
|
|
2
2
|
|
|
3
|
+
## 13.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1ee5ac1d4338d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1ee5ac1d4338d) -
|
|
8
|
+
Cleaning up cc_editor_focus_before_editor_on_load and platform_editor_no_cursor_on_edit_page_init
|
|
9
|
+
|
|
10
|
+
Cursor suppression on load is now driven by the presence of the interaction plugin rather than the
|
|
11
|
+
experiment, so only editors that opt into that plugin skip focus on a document with content.
|
|
12
|
+
`cc_editor_focus_before_editor_on_load` shipped disabled, so the pre-editor focus element has been
|
|
13
|
+
removed.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 13.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.collabEditPluginOptions = collabEditPluginOptions;
|
|
7
7
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
8
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
8
|
function collabEditPluginOptions(_ref) {
|
|
10
9
|
var _options$collabEdit, _options$collabEdit2, _options$collabEdit3, _options$collabEdit4, _options$collabEdit5, _options$collabEdit$E, _options$collabEdit6;
|
|
11
10
|
var options = _ref.options,
|
|
@@ -16,7 +15,7 @@ function collabEditPluginOptions(_ref) {
|
|
|
16
15
|
userId: (_options$collabEdit = options.collabEdit) === null || _options$collabEdit === void 0 ? void 0 : _options$collabEdit.userId,
|
|
17
16
|
useNativePlugin: (_options$collabEdit2 = options.collabEdit) === null || _options$collabEdit2 === void 0 ? void 0 : _options$collabEdit2.useNativePlugin,
|
|
18
17
|
sanitizePrivateContent: true,
|
|
19
|
-
hideTelecursorOnLoad:
|
|
18
|
+
hideTelecursorOnLoad: true,
|
|
20
19
|
// Invite to edit related options
|
|
21
20
|
inviteToEditHandler: (_options$collabEdit3 = options.collabEdit) === null || _options$collabEdit3 === void 0 ? void 0 : _options$collabEdit3.inviteToEditHandler,
|
|
22
21
|
isInviteToEditButtonSelected: (_options$collabEdit4 = options.collabEdit) === null || _options$collabEdit4 === void 0 ? void 0 : _options$collabEdit4.isInviteToEditButtonSelected,
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectionMarkerPluginOptions = selectionMarkerPluginOptions;
|
|
7
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
8
7
|
function selectionMarkerPluginOptions(_ref) {
|
|
9
8
|
var options = _ref.options;
|
|
10
9
|
// SECTION: From confluence/next/packages/editor-presets/src/full-page/createFullPageEditorPreset.ts `.add(['selectionMarkerPlugin', ...])`
|
|
11
10
|
return {
|
|
12
|
-
hideCursorOnInit:
|
|
11
|
+
hideCursorOnInit: true
|
|
13
12
|
};
|
|
14
13
|
// END SECTION
|
|
15
14
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
2
|
export function collabEditPluginOptions({
|
|
4
3
|
options,
|
|
5
4
|
providers
|
|
@@ -11,7 +10,7 @@ export function collabEditPluginOptions({
|
|
|
11
10
|
userId: (_options$collabEdit = options.collabEdit) === null || _options$collabEdit === void 0 ? void 0 : _options$collabEdit.userId,
|
|
12
11
|
useNativePlugin: (_options$collabEdit2 = options.collabEdit) === null || _options$collabEdit2 === void 0 ? void 0 : _options$collabEdit2.useNativePlugin,
|
|
13
12
|
sanitizePrivateContent: true,
|
|
14
|
-
hideTelecursorOnLoad:
|
|
13
|
+
hideTelecursorOnLoad: true,
|
|
15
14
|
// Invite to edit related options
|
|
16
15
|
inviteToEditHandler: (_options$collabEdit3 = options.collabEdit) === null || _options$collabEdit3 === void 0 ? void 0 : _options$collabEdit3.inviteToEditHandler,
|
|
17
16
|
isInviteToEditButtonSelected: (_options$collabEdit4 = options.collabEdit) === null || _options$collabEdit4 === void 0 ? void 0 : _options$collabEdit4.isInviteToEditButtonSelected,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
2
1
|
export function selectionMarkerPluginOptions({
|
|
3
2
|
options
|
|
4
3
|
}) {
|
|
5
4
|
// SECTION: From confluence/next/packages/editor-presets/src/full-page/createFullPageEditorPreset.ts `.add(['selectionMarkerPlugin', ...])`
|
|
6
5
|
return {
|
|
7
|
-
hideCursorOnInit:
|
|
6
|
+
hideCursorOnInit: true
|
|
8
7
|
};
|
|
9
8
|
// END SECTION
|
|
10
9
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
2
|
export function collabEditPluginOptions(_ref) {
|
|
4
3
|
var _options$collabEdit, _options$collabEdit2, _options$collabEdit3, _options$collabEdit4, _options$collabEdit5, _options$collabEdit$E, _options$collabEdit6;
|
|
5
4
|
var options = _ref.options,
|
|
@@ -10,7 +9,7 @@ export function collabEditPluginOptions(_ref) {
|
|
|
10
9
|
userId: (_options$collabEdit = options.collabEdit) === null || _options$collabEdit === void 0 ? void 0 : _options$collabEdit.userId,
|
|
11
10
|
useNativePlugin: (_options$collabEdit2 = options.collabEdit) === null || _options$collabEdit2 === void 0 ? void 0 : _options$collabEdit2.useNativePlugin,
|
|
12
11
|
sanitizePrivateContent: true,
|
|
13
|
-
hideTelecursorOnLoad:
|
|
12
|
+
hideTelecursorOnLoad: true,
|
|
14
13
|
// Invite to edit related options
|
|
15
14
|
inviteToEditHandler: (_options$collabEdit3 = options.collabEdit) === null || _options$collabEdit3 === void 0 ? void 0 : _options$collabEdit3.inviteToEditHandler,
|
|
16
15
|
isInviteToEditButtonSelected: (_options$collabEdit4 = options.collabEdit) === null || _options$collabEdit4 === void 0 ? void 0 : _options$collabEdit4.isInviteToEditButtonSelected,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
2
1
|
export function selectionMarkerPluginOptions(_ref) {
|
|
3
2
|
var options = _ref.options;
|
|
4
3
|
// SECTION: From confluence/next/packages/editor-presets/src/full-page/createFullPageEditorPreset.ts `.add(['selectionMarkerPlugin', ...])`
|
|
5
4
|
return {
|
|
6
|
-
hideCursorOnInit:
|
|
5
|
+
hideCursorOnInit: true
|
|
7
6
|
};
|
|
8
7
|
// END SECTION
|
|
9
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-presets",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.4",
|
|
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": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/editor-plugin-accessibility-utils": "^19.0.0",
|
|
25
25
|
"@atlaskit/editor-plugin-alignment": "^20.0.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^19.0.0",
|
|
27
|
-
"@atlaskit/editor-plugin-annotation": "^19.
|
|
27
|
+
"@atlaskit/editor-plugin-annotation": "^19.2.0",
|
|
28
28
|
"@atlaskit/editor-plugin-avatar-group": "^20.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-base": "^20.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^19.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/editor-plugin-hyperlink": "^21.2.0",
|
|
72
72
|
"@atlaskit/editor-plugin-indentation": "^19.0.0",
|
|
73
73
|
"@atlaskit/editor-plugin-insert-block": "^20.0.0",
|
|
74
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
74
|
+
"@atlaskit/editor-plugin-interaction": "^33.0.0",
|
|
75
75
|
"@atlaskit/editor-plugin-interactivity": "^4.0.0",
|
|
76
76
|
"@atlaskit/editor-plugin-layout": "^20.0.0",
|
|
77
77
|
"@atlaskit/editor-plugin-limited-mode": "^16.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/editor-plugin-local-id": "^17.0.0",
|
|
80
80
|
"@atlaskit/editor-plugin-loom": "^21.0.0",
|
|
81
81
|
"@atlaskit/editor-plugin-media": "^21.0.0",
|
|
82
|
-
"@atlaskit/editor-plugin-media-insert": "^
|
|
82
|
+
"@atlaskit/editor-plugin-media-insert": "^37.0.0",
|
|
83
83
|
"@atlaskit/editor-plugin-mentions": "^21.1.0",
|
|
84
84
|
"@atlaskit/editor-plugin-metrics": "^20.0.0",
|
|
85
85
|
"@atlaskit/editor-plugin-panel": "^21.0.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@babel/runtime": "^7.0.0"
|
|
123
123
|
},
|
|
124
124
|
"peerDependencies": {
|
|
125
|
-
"@atlaskit/editor-common": "^123.
|
|
125
|
+
"@atlaskit/editor-common": "^123.7.0",
|
|
126
126
|
"react": "^18.2.0 || ^19.2.0",
|
|
127
127
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
128
128
|
},
|