@atlaskit/editor-presets 2.0.1 → 2.0.2
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 +9 -0
- package/dist/cjs/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +1 -5
- package/dist/cjs/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +1 -4
- package/dist/es2019/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +1 -6
- package/dist/es2019/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +1 -4
- package/dist/esm/confluence-full-page-base/pluginOptions/helpDialogPluginOptions.js +1 -6
- package/dist/esm/confluence-full-page-base/pluginOptions/placeholderPluginOptions/placeholderPluginOptions.js +1 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-presets
|
|
2
2
|
|
|
3
|
+
## 2.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`acce33a5519e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/acce33a5519e2) -
|
|
8
|
+
Clean up stale experiment `platform_editor_ai_quickstart_command` - enable the quickstart command
|
|
9
|
+
behaviour by default.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.0.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.helpDialogPluginOptions = helpDialogPluginOptions;
|
|
7
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
8
7
|
// Added aiEnabled to the options type to match the extended structure
|
|
9
8
|
|
|
10
9
|
function helpDialogPluginOptions(_ref) {
|
|
11
10
|
var options = _ref.options;
|
|
12
|
-
|
|
13
|
-
return options;
|
|
14
|
-
}
|
|
15
|
-
return false;
|
|
11
|
+
return options;
|
|
16
12
|
}
|
|
@@ -27,15 +27,12 @@ function placeholderPluginOptions(_ref) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// SECTION: From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `_getPlaceholderText()`
|
|
30
|
-
if (!options.isAIEnabled
|
|
30
|
+
if (!options.isAIEnabled) {
|
|
31
31
|
return intl.formatMessage(_i18n.i18n.editorEmptyDocumentPlaceholderAI);
|
|
32
32
|
}
|
|
33
33
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
34
34
|
return intl.formatMessage(_i18n.i18n.defaultPlaceholder);
|
|
35
35
|
}
|
|
36
|
-
if (!options.isAIEnabled) {
|
|
37
|
-
return intl.formatMessage(_i18n.i18n.aiPlaceholder);
|
|
38
|
-
}
|
|
39
36
|
return intl.formatMessage(_i18n.i18n.easyMentionsPlaceholder);
|
|
40
37
|
// END SECTION
|
|
41
38
|
}();
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
2
|
-
|
|
3
1
|
// Added aiEnabled to the options type to match the extended structure
|
|
4
2
|
|
|
5
3
|
export function helpDialogPluginOptions({
|
|
6
4
|
options
|
|
7
5
|
}) {
|
|
8
|
-
|
|
9
|
-
return options;
|
|
10
|
-
}
|
|
11
|
-
return false;
|
|
6
|
+
return options;
|
|
12
7
|
}
|
|
@@ -22,15 +22,12 @@ export function placeholderPluginOptions({
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// SECTION: From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `_getPlaceholderText()`
|
|
25
|
-
if (!options.isAIEnabled
|
|
25
|
+
if (!options.isAIEnabled) {
|
|
26
26
|
return intl.formatMessage(i18n.editorEmptyDocumentPlaceholderAI);
|
|
27
27
|
}
|
|
28
28
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
29
29
|
return intl.formatMessage(i18n.defaultPlaceholder);
|
|
30
30
|
}
|
|
31
|
-
if (!options.isAIEnabled) {
|
|
32
|
-
return intl.formatMessage(i18n.aiPlaceholder);
|
|
33
|
-
}
|
|
34
31
|
return intl.formatMessage(i18n.easyMentionsPlaceholder);
|
|
35
32
|
// END SECTION
|
|
36
33
|
})();
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
2
|
-
|
|
3
1
|
// Added aiEnabled to the options type to match the extended structure
|
|
4
2
|
|
|
5
3
|
export function helpDialogPluginOptions(_ref) {
|
|
6
4
|
var options = _ref.options;
|
|
7
|
-
|
|
8
|
-
return options;
|
|
9
|
-
}
|
|
10
|
-
return false;
|
|
5
|
+
return options;
|
|
11
6
|
}
|
|
@@ -21,15 +21,12 @@ export function placeholderPluginOptions(_ref) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// SECTION: From confluence/next/packages/full-page-editor/src/FullPageEditorComponent.tsx `_getPlaceholderText()`
|
|
24
|
-
if (!options.isAIEnabled
|
|
24
|
+
if (!options.isAIEnabled) {
|
|
25
25
|
return intl.formatMessage(i18n.editorEmptyDocumentPlaceholderAI);
|
|
26
26
|
}
|
|
27
27
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
28
28
|
return intl.formatMessage(i18n.defaultPlaceholder);
|
|
29
29
|
}
|
|
30
|
-
if (!options.isAIEnabled) {
|
|
31
|
-
return intl.formatMessage(i18n.aiPlaceholder);
|
|
32
|
-
}
|
|
33
30
|
return intl.formatMessage(i18n.easyMentionsPlaceholder);
|
|
34
31
|
// END SECTION
|
|
35
32
|
}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-presets",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@atlaskit/editor-plugin-list": "^12.0.0",
|
|
87
87
|
"@atlaskit/editor-plugin-local-id": "^8.0.0",
|
|
88
88
|
"@atlaskit/editor-plugin-loom": "^12.0.0",
|
|
89
|
-
"@atlaskit/editor-plugin-media": "^12.
|
|
89
|
+
"@atlaskit/editor-plugin-media": "^12.1.0",
|
|
90
90
|
"@atlaskit/editor-plugin-media-insert": "^23.0.0",
|
|
91
91
|
"@atlaskit/editor-plugin-mentions": "^12.0.0",
|
|
92
92
|
"@atlaskit/editor-plugin-metrics": "^11.0.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
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": "^22.
|
|
110
|
+
"@atlaskit/editor-plugin-table": "^22.1.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",
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
"@atlaskit/editor-plugin-user-preferences": "^8.0.0",
|
|
124
124
|
"@atlaskit/editor-plugin-width": "^11.0.0",
|
|
125
125
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
126
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
126
|
+
"@atlaskit/tmp-editor-statsig": "^63.0.0",
|
|
127
127
|
"@babel/runtime": "^7.0.0"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
|
-
"@atlaskit/editor-common": "^114.
|
|
130
|
+
"@atlaskit/editor-common": "^114.2.0",
|
|
131
131
|
"react": "^18.2.0",
|
|
132
132
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
133
133
|
},
|