@atlaskit/editor-ssr-renderer 1.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 +9 -0
- package/LICENSE.md +11 -0
- package/README.md +1 -0
- package/example-helpers/createExample.tsx +14 -0
- package/package.json +40 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @atlaskit/editor-ssr-renderer
|
|
2
|
+
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`97dde7dada35d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/97dde7dada35d) -
|
|
8
|
+
[https://hello.jira.atlassian.cloud/browse/EDITOR-3696](EDITOR-3696) - created a new
|
|
9
|
+
`@atlaskit/editor-ssr-renderer` package for the Editor SSR renderer implementation.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2020 Atlassian Pty Ltd
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
5
|
+
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# SSR Renderer based on Editor
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { IntlProvider } from 'react-intl-next';
|
|
4
|
+
import type { DocNode } from '@atlaskit/adf-schema';
|
|
5
|
+
|
|
6
|
+
export function createExample(adf: DocNode) {
|
|
7
|
+
return () => {
|
|
8
|
+
return (
|
|
9
|
+
<IntlProvider locale={'en'}>
|
|
10
|
+
<pre>{JSON.stringify(adf, null, 2)}</pre>
|
|
11
|
+
</IntlProvider>
|
|
12
|
+
);
|
|
13
|
+
};
|
|
14
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-ssr-renderer",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "SSR Renderer based on Editor",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"atlassian": {
|
|
7
|
+
"team": "Editor: Lego",
|
|
8
|
+
"releaseModel": "continuous",
|
|
9
|
+
"singleton": true
|
|
10
|
+
},
|
|
11
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/cjs/index.js",
|
|
16
|
+
"module": "dist/esm/index.js",
|
|
17
|
+
"module:es2019": "dist/es2019/index.js",
|
|
18
|
+
"types": "dist/types/index.d.ts",
|
|
19
|
+
"typesVersions": {
|
|
20
|
+
">=4.5 <4.9": {
|
|
21
|
+
"*": [
|
|
22
|
+
"dist/types-ts4.5/*",
|
|
23
|
+
"dist/types-ts4.5/index.d.ts"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"atlaskit:src": "src/index.ts",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
31
|
+
"@babel/runtime": "^7.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@atlaskit/adf-schema": "^51.4.0",
|
|
35
|
+
"@emotion/react": "^11.7.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^18.2.0"
|
|
39
|
+
}
|
|
40
|
+
}
|