@atlaskit/editor-core 217.0.2 → 217.1.0
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 +12 -0
- package/dist/cjs/presets/universal.js +1 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +4 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +1 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/presets/universal.d.ts +3 -0
- package/dist/types-ts4.5/presets/universal.d.ts +3 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 217.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bf1f23f4a76d0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bf1f23f4a76d0) -
|
|
8
|
+
Add 'small text' as a menu dropdown item in the editor, non functional. Also adds a new universal
|
|
9
|
+
preset config option to support feature.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 217.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -98,6 +98,7 @@ function createUniversalPresetInternal(_ref) {
|
|
|
98
98
|
return featureFlags;
|
|
99
99
|
};
|
|
100
100
|
var defaultPreset = (0, _default.createDefaultPreset)(_objectSpread(_objectSpread({}, props), {}, {
|
|
101
|
+
blockType: _objectSpread(_objectSpread({}, props.blockType), initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.blockTypePlugin),
|
|
101
102
|
appearance: appearance,
|
|
102
103
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
103
104
|
hyperlinkOptions: _objectSpread({
|
|
@@ -87,6 +87,10 @@ export default function createUniversalPresetInternal({
|
|
|
87
87
|
const getEditorFeatureFlags = () => featureFlags;
|
|
88
88
|
const defaultPreset = createDefaultPreset({
|
|
89
89
|
...props,
|
|
90
|
+
blockType: {
|
|
91
|
+
...props.blockType,
|
|
92
|
+
...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.blockTypePlugin)
|
|
93
|
+
},
|
|
90
94
|
appearance,
|
|
91
95
|
createAnalyticsEvent,
|
|
92
96
|
hyperlinkOptions: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "217.0.
|
|
2
|
+
export const version = "217.0.2";
|
|
@@ -91,6 +91,7 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
91
91
|
return featureFlags;
|
|
92
92
|
};
|
|
93
93
|
var defaultPreset = createDefaultPreset(_objectSpread(_objectSpread({}, props), {}, {
|
|
94
|
+
blockType: _objectSpread(_objectSpread({}, props.blockType), initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.blockTypePlugin),
|
|
94
95
|
appearance: appearance,
|
|
95
96
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
96
97
|
hyperlinkOptions: _objectSpread({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "217.0.
|
|
2
|
+
export var version = "217.0.2";
|
|
@@ -15,6 +15,9 @@ export type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedProp
|
|
|
15
15
|
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
16
16
|
*/
|
|
17
17
|
export type InitialPluginConfiguration = {
|
|
18
|
+
blockTypePlugin?: {
|
|
19
|
+
allowFontSize?: boolean;
|
|
20
|
+
};
|
|
18
21
|
emojiPlugin?: {
|
|
19
22
|
disableAutoformat?: boolean;
|
|
20
23
|
};
|
|
@@ -15,6 +15,9 @@ export type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedProp
|
|
|
15
15
|
* Note: not all plugins are configurable via this mechanism, and for plugins configured -- it is only doing a subset of the configuration.
|
|
16
16
|
*/
|
|
17
17
|
export type InitialPluginConfiguration = {
|
|
18
|
+
blockTypePlugin?: {
|
|
19
|
+
allowFontSize?: boolean;
|
|
20
|
+
};
|
|
18
21
|
emojiPlugin?: {
|
|
19
22
|
disableAutoformat?: boolean;
|
|
20
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "217.0
|
|
3
|
+
"version": "217.1.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
67
67
|
"@atlaskit/react-ufo": "^5.4.0",
|
|
68
68
|
"@atlaskit/task-decision": "^19.3.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^36.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^36.1.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.1.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"uuid": "^3.1.0"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@atlaskit/editor-common": "^112.
|
|
86
|
+
"@atlaskit/editor-common": "^112.2.0",
|
|
87
87
|
"@atlaskit/link-provider": "^4.2.0",
|
|
88
88
|
"@atlaskit/media-core": "^37.0.0",
|
|
89
89
|
"react": "^18.2.0",
|