@atlaskit/editor-core 197.7.5 → 197.8.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 +21 -0
- package/appearance-editor-full-page/package.json +15 -0
- package/appearance-editor-full-width/package.json +15 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/editor-appearances/FullPageEditor.d.ts +4 -1
- package/dist/types/editor-appearances/FullWidthEditor.d.ts +4 -1
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +4 -1
- package/dist/types-ts4.5/editor-appearances/FullWidthEditor.d.ts +4 -1
- package/package.json +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 197.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#142076](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142076)
|
|
8
|
+
[`b18a99f9877b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b18a99f9877b7) -
|
|
9
|
+
Introduce new editor components that are decoupled from other appearances: `FullPageEditor` and
|
|
10
|
+
`FullWidthEditor`. These have a similar API as `ComposableEditor` except have the UI code and
|
|
11
|
+
state only from the relevant appearance.
|
|
12
|
+
|
|
13
|
+
## 197.7.6
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#139456](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139456)
|
|
18
|
+
[`a788f5ceac7a2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a788f5ceac7a2) -
|
|
19
|
+
[ux] When FF hardcoded-embeds-only-on-new-line is true pasting of some urls (like youtube or jira
|
|
20
|
+
dashboard or conny whiteboards) will only become embed right away if pasted on a new line in a
|
|
21
|
+
root of the document
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 197.7.5
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-core/appearance-editor-full-page",
|
|
3
|
+
"main": "../dist/cjs/editor-appearances/FullPageEditor.js",
|
|
4
|
+
"module": "../dist/esm/editor-appearances/FullPageEditor.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/editor-appearances/FullPageEditor.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/editor-appearances/FullPageEditor.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-core/appearance-editor-full-width",
|
|
3
|
+
"main": "../dist/cjs/editor-appearances/FullWidthEditor.js",
|
|
4
|
+
"module": "../dist/esm/editor-appearances/FullWidthEditor.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/editor-appearances/FullWidthEditor.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/editor-appearances/FullWidthEditor.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/editor-appearances/FullWidthEditor.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "197.
|
|
2
|
+
export const version = "197.8.0";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.
|
|
2
|
+
export var version = "197.8.0";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullPageEditorProps = Pick<EditorNextProps, 'preset'
|
|
3
|
+
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'trackValidTransactions' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
|
+
onChange?: () => void;
|
|
5
|
+
onEditorReady?: () => void;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "full-page".
|
|
6
9
|
*
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullWidthEditorProps = Pick<EditorNextProps, 'preset'
|
|
3
|
+
export type FullWidthEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'trackValidTransactions' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
|
+
onChange?: () => void;
|
|
5
|
+
onEditorReady?: () => void;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "full-width".
|
|
6
9
|
*
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullPageEditorProps = Pick<EditorNextProps, 'preset'
|
|
3
|
+
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'trackValidTransactions' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
|
+
onChange?: () => void;
|
|
5
|
+
onEditorReady?: () => void;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "full-page".
|
|
6
9
|
*
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullWidthEditorProps = Pick<EditorNextProps, 'preset'
|
|
3
|
+
export type FullWidthEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'trackValidTransactions' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
|
+
onChange?: () => void;
|
|
5
|
+
onEditorReady?: () => void;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "full-width".
|
|
6
9
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "197.
|
|
3
|
+
"version": "197.8.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.1.0",
|
|
46
|
-
"@atlaskit/editor-common": "^89.
|
|
46
|
+
"@atlaskit/editor-common": "^89.3.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
48
48
|
"@atlaskit/editor-plugins": "^5.2.0",
|
|
49
49
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/visual-regression": "*",
|
|
106
106
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
107
107
|
"@atlassian/feature-flags-test-utils": "*",
|
|
108
|
-
"@atlassian/search-provider": "2.4.
|
|
108
|
+
"@atlassian/search-provider": "2.4.134",
|
|
109
109
|
"@emotion/jest": "^11.8.0",
|
|
110
110
|
"@storybook/addon-knobs": "^5.3.18",
|
|
111
111
|
"@testing-library/react": "^12.1.5",
|
|
@@ -256,6 +256,10 @@
|
|
|
256
256
|
"platform_editor_get_emoji_provider_from_config": {
|
|
257
257
|
"type": "boolean"
|
|
258
258
|
},
|
|
259
|
+
"hardcoded-embeds-only-on-new-line": {
|
|
260
|
+
"type": "boolean",
|
|
261
|
+
"referenceOnly": true
|
|
262
|
+
},
|
|
259
263
|
"platform_editor_breakout_use_css": {
|
|
260
264
|
"type": "boolean"
|
|
261
265
|
},
|
|
@@ -274,6 +278,10 @@
|
|
|
274
278
|
},
|
|
275
279
|
"platform_editor_mark_boundary_cursor": {
|
|
276
280
|
"type": "boolean"
|
|
281
|
+
},
|
|
282
|
+
"platform_editor_action_decisions_ssr_fix": {
|
|
283
|
+
"type": "boolean",
|
|
284
|
+
"referenceOnly": true
|
|
277
285
|
}
|
|
278
286
|
},
|
|
279
287
|
"stricter": {
|
|
@@ -298,6 +306,8 @@
|
|
|
298
306
|
"./use-preset": "./src/use-preset.ts",
|
|
299
307
|
"./use-preset-context": "./src/presets/context.tsx",
|
|
300
308
|
"./preset-builder": "./src/preset-builder.ts",
|
|
309
|
+
"./appearance-editor-full-page": "./src/editor-appearances/FullPageEditor.tsx",
|
|
310
|
+
"./appearance-editor-full-width": "./src/editor-appearances/FullWidthEditor.tsx",
|
|
301
311
|
"./version-wrapper": "./src/version-wrapper.ts"
|
|
302
312
|
}
|
|
303
313
|
}
|