@atlaskit/editor-synced-block-renderer 9.0.0 → 10.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 +26 -0
- package/get-synced-block-renderer/package.json +1 -8
- package/package.json +16 -24
- package/render-synced-block-content/package.json +1 -8
- package/synced-block-node-component-renderer/package.json +1 -8
- package/use-synced-block-node-component/package.json +1 -8
- package/dist/types-ts4.5/entry-points/get-synced-block-renderer.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/render-synced-block-content.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/synced-block-node-component-renderer.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/use-synced-block-node-component.d.ts +0 -2
- package/dist/types-ts4.5/getSyncedBlockRenderer.d.ts +0 -9
- package/dist/types-ts4.5/index.d.ts +0 -4
- package/dist/types-ts4.5/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/AKRendererWrapper.d.ts +0 -9
- package/dist/types-ts4.5/ui/SyncedBlockEntityNotFoundError.d.ts +0 -2
- package/dist/types-ts4.5/ui/SyncedBlockErrorComponent.d.ts +0 -12
- package/dist/types-ts4.5/ui/SyncedBlockErrorStateCard.d.ts +0 -10
- package/dist/types-ts4.5/ui/SyncedBlockGenericError.d.ts +0 -2
- package/dist/types-ts4.5/ui/SyncedBlockLoadError.d.ts +0 -7
- package/dist/types-ts4.5/ui/SyncedBlockLoadingState.d.ts +0 -2
- package/dist/types-ts4.5/ui/SyncedBlockNodeComponentRenderer.d.ts +0 -16
- package/dist/types-ts4.5/ui/SyncedBlockNotFoundError.d.ts +0 -5
- package/dist/types-ts4.5/ui/SyncedBlockOfflineError.d.ts +0 -2
- package/dist/types-ts4.5/ui/SyncedBlockPermissionDenied.d.ts +0 -8
- package/dist/types-ts4.5/ui/SyncedBlockRenderer.d.ts +0 -12
- package/dist/types-ts4.5/ui/SyncedBlockUnpublishedError.d.ts +0 -6
- package/dist/types-ts4.5/ui/__generated__/SyncedBlockPermissionDeniedRequestAccessMutation.graphql.d.ts +0 -27
- package/dist/types-ts4.5/ui/renderSyncedBlockContent.d.ts +0 -28
- package/dist/types-ts4.5/useSyncedBlockNodeComponent.d.ts +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 10.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
|
## 9.0.0
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/get-synced-block-renderer.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/get-synced-block-renderer.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/get-synced-block-renderer.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/get-synced-block-renderer.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/get-synced-block-renderer.d.ts"
|
|
15
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,38 +24,30 @@
|
|
|
24
24
|
"module": "dist/esm/index.js",
|
|
25
25
|
"module:es2019": "dist/es2019/index.js",
|
|
26
26
|
"types": "dist/types/index.d.ts",
|
|
27
|
-
"typesVersions": {
|
|
28
|
-
">=4.5 <4.9": {
|
|
29
|
-
"*": [
|
|
30
|
-
"dist/types-ts4.5/*",
|
|
31
|
-
"dist/types-ts4.5/index.d.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
27
|
"sideEffects": false,
|
|
36
28
|
"atlaskit:src": "src/index.ts",
|
|
37
29
|
"dependencies": {
|
|
38
|
-
"@atlaskit/button": "^
|
|
39
|
-
"@atlaskit/css": "^0.
|
|
40
|
-
"@atlaskit/editor-plugin-synced-block": "^
|
|
41
|
-
"@atlaskit/editor-synced-block-provider": "^
|
|
42
|
-
"@atlaskit/heading": "^
|
|
43
|
-
"@atlaskit/icon": "^
|
|
44
|
-
"@atlaskit/icon-lab": "^
|
|
45
|
-
"@atlaskit/image": "^
|
|
46
|
-
"@atlaskit/platform-feature-flags": "^
|
|
47
|
-
"@atlaskit/primitives": "^
|
|
48
|
-
"@atlaskit/renderer": "^
|
|
49
|
-
"@atlaskit/spinner": "^
|
|
50
|
-
"@atlaskit/tokens": "^
|
|
51
|
-
"@atlaskit/tooltip": "^
|
|
30
|
+
"@atlaskit/button": "^24.0.0",
|
|
31
|
+
"@atlaskit/css": "^1.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-synced-block": "^10.0.0",
|
|
33
|
+
"@atlaskit/editor-synced-block-provider": "^8.0.0",
|
|
34
|
+
"@atlaskit/heading": "^6.0.0",
|
|
35
|
+
"@atlaskit/icon": "^36.0.0",
|
|
36
|
+
"@atlaskit/icon-lab": "^7.0.0",
|
|
37
|
+
"@atlaskit/image": "^4.0.0",
|
|
38
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
39
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
40
|
+
"@atlaskit/renderer": "^133.0.0",
|
|
41
|
+
"@atlaskit/spinner": "^20.0.0",
|
|
42
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
43
|
+
"@atlaskit/tooltip": "^23.0.0",
|
|
52
44
|
"@babel/runtime": "^7.0.0",
|
|
53
45
|
"@compiled/react": "^0.20.0",
|
|
54
46
|
"react-relay": "^20.1.1",
|
|
55
47
|
"relay-runtime": "^20.1.1"
|
|
56
48
|
},
|
|
57
49
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^
|
|
50
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
59
51
|
"react": "^18.2.0",
|
|
60
52
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
61
53
|
},
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/render-synced-block-content.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/render-synced-block-content.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/render-synced-block-content.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/render-synced-block-content.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/render-synced-block-content.d.ts"
|
|
15
8
|
}
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/synced-block-node-component-renderer.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/synced-block-node-component-renderer.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/synced-block-node-component-renderer.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/synced-block-node-component-renderer.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/synced-block-node-component-renderer.d.ts"
|
|
15
8
|
}
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/use-synced-block-node-component.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/use-synced-block-node-component.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/use-synced-block-node-component.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/use-synced-block-node-component.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/use-synced-block-node-component.d.ts"
|
|
15
8
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getSyncedBlockRenderer } from '../getSyncedBlockRenderer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { SyncedBlockNodeProps } from '../ui/SyncedBlockNodeComponentRenderer';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SyncedBlockRendererProps } from '@atlaskit/editor-plugin-synced-block';
|
|
3
|
-
import type { SyncedBlockRendererOptions } from './types';
|
|
4
|
-
type GetSyncedBlockRendererProps = {
|
|
5
|
-
getAccountId?: () => string | null;
|
|
6
|
-
syncBlockRendererOptions: SyncedBlockRendererOptions | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare const getSyncedBlockRenderer: ({ syncBlockRendererOptions, getAccountId }: GetSyncedBlockRendererProps) => ({ syncBlockFetchResult, api }: SyncedBlockRendererProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { getSyncBlockNodesFromDoc, useMemoizedSyncedBlockNodeComponent, type GetSyncedBlockNodeComponentProps, } from './useSyncedBlockNodeComponent';
|
|
2
|
-
export { getSyncedBlockRenderer } from './getSyncedBlockRenderer';
|
|
3
|
-
export type { SyncedBlockNodeProps } from './ui/SyncedBlockNodeComponentRenderer';
|
|
4
|
-
export { renderSyncedBlockContent, type RenderSyncedBlockContentParams, } from './ui/renderSyncedBlockContent';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { RendererProps } from '@atlaskit/renderer';
|
|
2
|
-
export type SyncedBlockRendererOptions = Pick<RendererProps, 'appearance' | 'allowAltTextOnImages' | 'allowAnnotations' | 'allowColumnSorting' | 'allowCopyToClipboard' | 'allowCustomPanels' | 'allowHeadingAnchorLinks' | 'allowPlaceholderText' | 'allowRendererContainerStyles' | 'allowSelectAllTrap' | 'allowUgcScrubber' | 'allowWrapCodeBlock' | 'emojiResourceConfig' | 'eventHandlers' | 'media' | 'smartLinks' | 'stickyHeaders' | 'contentMode'>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DocNode } from '@atlaskit/adf-schema';
|
|
3
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { SyncedBlockRendererOptions } from '../types';
|
|
5
|
-
export declare const AKRendererWrapper: React.MemoExoticComponent<({ doc, dataProviders, options, }: {
|
|
6
|
-
dataProviders: ProviderFactory | undefined;
|
|
7
|
-
doc: DocNode;
|
|
8
|
-
options: SyncedBlockRendererOptions | undefined;
|
|
9
|
-
}) => React.JSX.Element>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
4
|
-
export declare const SyncedBlockErrorComponent: ({ error, isLoading, onRetry, resourceId, fireAnalyticsEvent, sourceURL, getAccountId, }: {
|
|
5
|
-
error: SyncBlockInstance["error"];
|
|
6
|
-
fireAnalyticsEvent?: (payload: RendererSyncBlockEventPayload) => void;
|
|
7
|
-
getAccountId?: () => string | null;
|
|
8
|
-
isLoading?: boolean;
|
|
9
|
-
onRetry?: () => void;
|
|
10
|
-
resourceId?: string;
|
|
11
|
-
sourceURL?: string;
|
|
12
|
-
}) => React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { NewCoreIconProps } from '@atlaskit/icon/types';
|
|
4
|
-
interface SyncedBlockErrorStateCardProps {
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
description: ReactNode;
|
|
7
|
-
icon?: (props: NewCoreIconProps) => JSX.Element;
|
|
8
|
-
}
|
|
9
|
-
export declare const SyncedBlockErrorStateCard: ({ children, description, icon, }: SyncedBlockErrorStateCardProps) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
|
|
3
|
-
import type { NodeProps } from '@atlaskit/renderer';
|
|
4
|
-
import type { SyncedBlockRendererOptions } from '../types';
|
|
5
|
-
export interface SyncedBlockProps {
|
|
6
|
-
localId?: string;
|
|
7
|
-
resourceId?: string;
|
|
8
|
-
}
|
|
9
|
-
export type SyncedBlockNodeProps = NodeProps<SyncedBlockProps>;
|
|
10
|
-
export type SyncedBlockNodeComponentRendererProps = {
|
|
11
|
-
getAccountId?: () => string | null;
|
|
12
|
-
nodeProps: SyncedBlockNodeProps;
|
|
13
|
-
rendererOptions: SyncedBlockRendererOptions | undefined;
|
|
14
|
-
syncBlockStoreManager: SyncBlockStoreManager;
|
|
15
|
-
};
|
|
16
|
-
export declare const SyncedBlockNodeComponentRenderer: ({ nodeProps, syncBlockStoreManager, rendererOptions, getAccountId, }: SyncedBlockNodeComponentRendererProps) => React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SyncBlockProduct } from '@atlaskit/editor-synced-block-provider';
|
|
3
|
-
export interface SyncedBlockPermissionDeniedProps {
|
|
4
|
-
accountId: string | null;
|
|
5
|
-
sourceContentId: string;
|
|
6
|
-
sourceProduct: SyncBlockProduct;
|
|
7
|
-
}
|
|
8
|
-
export declare const SyncedBlockPermissionDenied: ({ sourceContentId, sourceProduct, accountId, }: SyncedBlockPermissionDeniedProps) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { SyncedBlockPlugin } from '@atlaskit/editor-plugin-synced-block';
|
|
4
|
-
import type { UseFetchSyncBlockDataResult } from '@atlaskit/editor-synced-block-provider';
|
|
5
|
-
import type { SyncedBlockRendererOptions } from '../types';
|
|
6
|
-
export type SyncedBlockRendererProps = {
|
|
7
|
-
api?: ExtractInjectionAPI<SyncedBlockPlugin>;
|
|
8
|
-
getAccountId?: () => string | null;
|
|
9
|
-
syncBlockFetchResult: UseFetchSyncBlockDataResult;
|
|
10
|
-
syncBlockRendererOptions?: SyncedBlockRendererOptions;
|
|
11
|
-
};
|
|
12
|
-
export declare const SyncedBlockRenderer: React.MemoExoticComponent<({ syncBlockRendererOptions, syncBlockFetchResult, api, getAccountId, }: SyncedBlockRendererProps) => React.JSX.Element>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SyncBlockProduct } from '@atlaskit/editor-synced-block-provider';
|
|
3
|
-
export declare const SyncedBlockUnpublishedError: ({ sourceURL, sourceProduct, }: {
|
|
4
|
-
sourceProduct?: SyncBlockProduct;
|
|
5
|
-
sourceURL?: string;
|
|
6
|
-
}) => React.JSX.Element;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @generated SignedSource<<7740d767b2268ec52c7dd85949458362>>
|
|
3
|
-
* @relayHash 676631e44ffd7d0d16b3a7e96ba02def
|
|
4
|
-
* @lightSyntaxTransform
|
|
5
|
-
* @nogrep
|
|
6
|
-
* @codegen-command: yarn relay
|
|
7
|
-
*/
|
|
8
|
-
import type { ConcreteRequest } from 'relay-runtime';
|
|
9
|
-
export type AccessType = "EDIT" | "VIEW" | "%future added value";
|
|
10
|
-
export type RequestPageAccessInput = {
|
|
11
|
-
accessType: AccessType;
|
|
12
|
-
pageId: string;
|
|
13
|
-
};
|
|
14
|
-
export type SyncedBlockPermissionDeniedRequestAccessMutation$variables = {
|
|
15
|
-
requestPageAccessInput: RequestPageAccessInput;
|
|
16
|
-
};
|
|
17
|
-
export type SyncedBlockPermissionDeniedRequestAccessMutation$data = {
|
|
18
|
-
readonly requestPageAccess: {
|
|
19
|
-
readonly displayName: string;
|
|
20
|
-
} | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
export type SyncedBlockPermissionDeniedRequestAccessMutation = {
|
|
23
|
-
response: SyncedBlockPermissionDeniedRequestAccessMutation$data;
|
|
24
|
-
variables: SyncedBlockPermissionDeniedRequestAccessMutation$variables;
|
|
25
|
-
};
|
|
26
|
-
declare const node: ConcreteRequest;
|
|
27
|
-
export default node;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { SyncBlockInstance } from '@atlaskit/editor-synced-block-provider';
|
|
5
|
-
import type { SyncedBlockRendererOptions } from '../types';
|
|
6
|
-
export type RenderSyncedBlockContentParams = {
|
|
7
|
-
error?: SyncBlockInstance['error'];
|
|
8
|
-
fireAnalyticsEvent?: (payload: RendererSyncBlockEventPayload) => void;
|
|
9
|
-
getAccountId?: () => string | null;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
isOffline?: boolean;
|
|
12
|
-
providerFactory: ProviderFactory | undefined;
|
|
13
|
-
reloadData?: () => void;
|
|
14
|
-
rendererOptions: SyncedBlockRendererOptions | undefined;
|
|
15
|
-
resourceId?: string;
|
|
16
|
-
syncBlockInstance: SyncBlockInstance | null | undefined;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Shared rendering logic for synced block content used by both
|
|
20
|
-
* SyncedBlockRenderer (editor mode) and SyncedBlockNodeComponentRenderer (renderer mode).
|
|
21
|
-
*
|
|
22
|
-
* Handles the common branching: loading -> SSR error -> error/deleted -> unpublished -> success.
|
|
23
|
-
* Returns null if the caller should handle rendering itself (e.g. wrapping in a container div).
|
|
24
|
-
*/
|
|
25
|
-
export declare function renderSyncedBlockContent({ syncBlockInstance, isLoading, rendererOptions, providerFactory, reloadData, fireAnalyticsEvent, resourceId, isOffline, error, getAccountId, }: RenderSyncedBlockContentParams): {
|
|
26
|
-
element: React.JSX.Element;
|
|
27
|
-
isSuccess: boolean;
|
|
28
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DocNode } from '@atlaskit/adf-schema';
|
|
3
|
-
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { SyncBlockNode, SyncedBlockProvider, SyncBlockPrefetchData } from '@atlaskit/editor-synced-block-provider';
|
|
5
|
-
import type { SyncedBlockRendererOptions } from './types';
|
|
6
|
-
import type { SyncedBlockNodeProps } from './ui/SyncedBlockNodeComponentRenderer';
|
|
7
|
-
export type GetSyncedBlockNodeComponentProps = {
|
|
8
|
-
fireAnalyticsEvent?: (payload: AnalyticsEventPayload) => void;
|
|
9
|
-
getAccountId?: () => string | null;
|
|
10
|
-
getPrefetchedData?: () => SyncBlockPrefetchData | undefined;
|
|
11
|
-
syncBlockNodes: SyncBlockNode[];
|
|
12
|
-
syncBlockProvider: SyncedBlockProvider;
|
|
13
|
-
syncBlockRendererOptions: SyncedBlockRendererOptions | undefined;
|
|
14
|
-
};
|
|
15
|
-
export declare const getSyncBlockNodesFromDoc: (doc: DocNode) => SyncBlockNode[];
|
|
16
|
-
export declare const useMemoizedSyncedBlockNodeComponent: ({ syncBlockNodes, syncBlockProvider, syncBlockRendererOptions, fireAnalyticsEvent, getAccountId, getPrefetchedData, }: GetSyncedBlockNodeComponentProps) => ((props: SyncedBlockNodeProps) => React.JSX.Element);
|