From cf2eadd02437f30d42277f39f178f3999f567b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Nobile?= Date: Mon, 18 Sep 2023 16:32:19 +0200 Subject: [PATCH] build(api): generate new api --- build/api/react-client.api.md | 4 ++-- .../components/RichTextRenderer/RichTextRenderer.tsx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build/api/react-client.api.md b/build/api/react-client.api.md index e43b783dc9..c605407161 100644 --- a/build/api/react-client.api.md +++ b/build/api/react-client.api.md @@ -196,7 +196,7 @@ export interface RichTextAnchorElement; +export type RichTextBlock = Readonly>; // @public (undocumented) export interface RichTextBoldLeaf extends RichTextLeaf { @@ -312,7 +312,7 @@ export const RichTextRenderer: { // (undocumented) - blocks: RichTextBlock[]; + blocks: readonly RichTextBlock[]; // (undocumented) referenceDiscriminationField?: string; // (undocumented) diff --git a/packages/react-client/src/components/RichTextRenderer/RichTextRenderer.tsx b/packages/react-client/src/components/RichTextRenderer/RichTextRenderer.tsx index 2c43acd1ab..24020af175 100644 --- a/packages/react-client/src/components/RichTextRenderer/RichTextRenderer.tsx +++ b/packages/react-client/src/components/RichTextRenderer/RichTextRenderer.tsx @@ -14,18 +14,18 @@ import { RichTextRenderMetadataContext } from './RichTextRenderMetadataContext' import type { RootEditorNode } from './RootEditorNode' export interface RichTextRendererFieldProps { - readonly source: string | null + source: string | null } export interface RichTextRendererBlockProps< CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = never, > { - readonly blocks: RichTextBlock[] - readonly referenceRenderers?: Record> - readonly sourceField?: string - readonly referencesField?: string - readonly referenceDiscriminationField?: string + blocks: readonly RichTextBlock[] + referenceRenderers?: Record> + sourceField?: string + referencesField?: string + referenceDiscriminationField?: string } export type RichTextRendererProps<