@atlaskit/editor-synced-block-renderer 2.2.5 → 2.3.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 +11 -0
- package/dist/types/getSyncedBlockNodeComponent.d.ts +2 -2
- package/dist/types/ui/SyncedBlockNodeComponentRenderer.d.ts +2 -2
- package/dist/types/ui/SyncedBlockRenderer.d.ts +2 -2
- package/dist/types-ts4.5/getSyncedBlockNodeComponent.d.ts +2 -2
- package/dist/types-ts4.5/ui/SyncedBlockNodeComponentRenderer.d.ts +2 -2
- package/dist/types-ts4.5/ui/SyncedBlockRenderer.d.ts +2 -2
- package/package.json +3 -3
- package/afm-post-office/tsconfig.json +0 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`424619eee38cb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/424619eee38cb) -
|
|
8
|
+
EDITOR-2451 add tests and refactor
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 2.2.5
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocNode } from '@atlaskit/adf-schema';
|
|
2
|
-
import { type SyncBlockNode, type
|
|
2
|
+
import { type SyncBlockNode, type SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
3
3
|
import type { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
4
4
|
import { type SyncedBlockNodeProps } from './ui/SyncedBlockNodeComponentRenderer';
|
|
5
|
-
export declare const getSyncedBlockNodeComponent: (dataProvider: NodeDataProvider<SyncBlockNode,
|
|
5
|
+
export declare const getSyncedBlockNodeComponent: (dataProvider: NodeDataProvider<SyncBlockNode, SyncBlockInstance>, doc: DocNode) => (props: SyncedBlockNodeProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
3
3
|
import { type NodeProps } from '@atlaskit/renderer';
|
|
4
4
|
export interface SyncedBlockProps {
|
|
5
5
|
localId?: string;
|
|
@@ -7,5 +7,5 @@ export interface SyncedBlockProps {
|
|
|
7
7
|
}
|
|
8
8
|
export type SyncedBlockNodeProps = NodeProps<SyncedBlockProps>;
|
|
9
9
|
export declare const SyncedBlockNodeComponentRenderer: (props: SyncedBlockNodeProps & {
|
|
10
|
-
dataPromise: Promise<
|
|
10
|
+
dataPromise: Promise<SyncBlockInstance[]> | null;
|
|
11
11
|
}) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { type
|
|
3
|
+
import { type SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
4
4
|
export type SyncedBlockRendererProps = {
|
|
5
5
|
dataProviders?: ProviderFactory;
|
|
6
|
-
useFetchSyncBlockData: () =>
|
|
6
|
+
useFetchSyncBlockData: () => SyncBlockInstance | null;
|
|
7
7
|
};
|
|
8
8
|
export declare const SyncedBlockRenderer: ({ useFetchSyncBlockData, dataProviders, }: SyncedBlockRendererProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocNode } from '@atlaskit/adf-schema';
|
|
2
|
-
import { type SyncBlockNode, type
|
|
2
|
+
import { type SyncBlockNode, type SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
3
3
|
import type { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
4
4
|
import { type SyncedBlockNodeProps } from './ui/SyncedBlockNodeComponentRenderer';
|
|
5
|
-
export declare const getSyncedBlockNodeComponent: (dataProvider: NodeDataProvider<SyncBlockNode,
|
|
5
|
+
export declare const getSyncedBlockNodeComponent: (dataProvider: NodeDataProvider<SyncBlockNode, SyncBlockInstance>, doc: DocNode) => (props: SyncedBlockNodeProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
3
3
|
import { type NodeProps } from '@atlaskit/renderer';
|
|
4
4
|
export interface SyncedBlockProps {
|
|
5
5
|
localId?: string;
|
|
@@ -7,5 +7,5 @@ export interface SyncedBlockProps {
|
|
|
7
7
|
}
|
|
8
8
|
export type SyncedBlockNodeProps = NodeProps<SyncedBlockProps>;
|
|
9
9
|
export declare const SyncedBlockNodeComponentRenderer: (props: SyncedBlockNodeProps & {
|
|
10
|
-
dataPromise: Promise<
|
|
10
|
+
dataPromise: Promise<SyncBlockInstance[]> | null;
|
|
11
11
|
}) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { type
|
|
3
|
+
import { type SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
4
4
|
export type SyncedBlockRendererProps = {
|
|
5
5
|
dataProviders?: ProviderFactory;
|
|
6
|
-
useFetchSyncBlockData: () =>
|
|
6
|
+
useFetchSyncBlockData: () => SyncBlockInstance | null;
|
|
7
7
|
};
|
|
8
8
|
export declare const SyncedBlockRenderer: ({ useFetchSyncBlockData, dataProviders, }: SyncedBlockRendererProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
32
|
-
"@atlaskit/editor-synced-block-provider": "^2.
|
|
32
|
+
"@atlaskit/editor-synced-block-provider": "^2.5.0",
|
|
33
33
|
"@atlaskit/renderer": "^124.9.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^110.
|
|
37
|
+
"@atlaskit/editor-common": "^110.21.0",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"outDir": "../../../../../post-office/tsDist/@atlaskit__editor-synced-block-renderer/app",
|
|
6
|
-
"rootDir": "../",
|
|
7
|
-
"composite": true
|
|
8
|
-
},
|
|
9
|
-
"include": [
|
|
10
|
-
"../src/**/*.ts",
|
|
11
|
-
"../src/**/*.tsx"
|
|
12
|
-
],
|
|
13
|
-
"exclude": [
|
|
14
|
-
"../src/**/__tests__/*",
|
|
15
|
-
"../src/**/*.test.*",
|
|
16
|
-
"../src/**/test.*",
|
|
17
|
-
"../src/**/examples.*",
|
|
18
|
-
"../src/**/examples/*",
|
|
19
|
-
"../src/**/examples/**/*",
|
|
20
|
-
"../src/**/*.stories.*",
|
|
21
|
-
"../src/**/stories/*",
|
|
22
|
-
"../src/**/stories/**/*"
|
|
23
|
-
],
|
|
24
|
-
"references": [
|
|
25
|
-
{
|
|
26
|
-
"path": "../../editor-synced-block-provider/afm-post-office/tsconfig.json"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"path": "../../renderer/afm-post-office/tsconfig.json"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"path": "../../editor-common/afm-post-office/tsconfig.json"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|