@atlaskit/editor-ssr-renderer 6.1.2 → 7.0.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
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-ssr-renderer
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 6.1.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/editor-ssr-renderer.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/editor-ssr-renderer.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/editor-ssr-renderer.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/editor-ssr-renderer.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/editor-ssr-renderer.d.ts"
|
|
15
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-ssr-renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "SSR Renderer based on Editor",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"atlassian": {
|
|
@@ -23,24 +23,16 @@
|
|
|
23
23
|
"module": "dist/esm/index.js",
|
|
24
24
|
"module:es2019": "dist/es2019/index.js",
|
|
25
25
|
"types": "dist/types/index.d.ts",
|
|
26
|
-
"typesVersions": {
|
|
27
|
-
">=4.5 <4.9": {
|
|
28
|
-
"*": [
|
|
29
|
-
"dist/types-ts4.5/*",
|
|
30
|
-
"dist/types-ts4.5/index.d.ts"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
26
|
"sideEffects": false,
|
|
35
27
|
"atlaskit:src": "src/index.ts",
|
|
36
28
|
"dependencies": {
|
|
37
|
-
"@atlaskit/adf-schema": "^
|
|
38
|
-
"@atlaskit/editor-prosemirror": "^
|
|
39
|
-
"@atlaskit/platform-feature-flags": "^
|
|
29
|
+
"@atlaskit/adf-schema": "^55.0.0",
|
|
30
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
31
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
40
32
|
"@babel/runtime": "^7.0.0"
|
|
41
33
|
},
|
|
42
34
|
"peerDependencies": {
|
|
43
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
44
36
|
"react": "^18.2.0",
|
|
45
37
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
46
38
|
},
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IntlShape } from 'react-intl';
|
|
3
|
-
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { EditorPlugin } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
8
|
-
interface Props {
|
|
9
|
-
'aria-describedby'?: string;
|
|
10
|
-
'aria-label': string;
|
|
11
|
-
className: string;
|
|
12
|
-
'data-editor-id': string;
|
|
13
|
-
doc: PMNode | undefined;
|
|
14
|
-
id: string;
|
|
15
|
-
intl: IntlShape;
|
|
16
|
-
onEditorStateChanged?: (state: EditorState) => void;
|
|
17
|
-
onSSRMeasure?: (measure: {
|
|
18
|
-
endTimestamp: number;
|
|
19
|
-
segmentName: string;
|
|
20
|
-
startTimestamp: number;
|
|
21
|
-
}) => void;
|
|
22
|
-
plugins: EditorPlugin[];
|
|
23
|
-
portalProviderAPI: PortalProviderAPI;
|
|
24
|
-
schema: Schema;
|
|
25
|
-
}
|
|
26
|
-
export declare function EditorSSRRenderer({ plugins, schema, doc, portalProviderAPI, intl, onSSRMeasure, onEditorStateChanged, ...divProps }: Props): React.JSX.Element;
|
|
27
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EditorSSRRenderer } from '../editor-ssr-renderer/EditorSSRRenderer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EditorSSRRenderer } from './editor-ssr-renderer/EditorSSRRenderer';
|