Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contember/react-richtext-renderer

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/react-richtext-renderer - npm Package Compare versions

Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.8

api-extractor.json

14

dist/development/index.js

@@ -1,8 +0,8 @@

import { RichTextRendererError } from "./RichTextRendererError.js";
import { RichText } from "./components/RichText.js";
import { RichTextFieldRenderer } from "./components/RichTextFieldRenderer.js";
import { RichTextBlocksRenderer } from "./components/RichTextBlocksRenderer.js";
import { RichTextRenderer } from "./components/RichTextRenderer.js";
import { useRichTextFieldSource } from "./hooks/useRichTextFieldSource.js";
import { useRichTextBlocksSource } from "./hooks/useRichTextBlocksSource.js";
import { RichTextRendererError } from "./src/RichTextRendererError.js";
import { RichText } from "./src/components/RichText.js";
import { RichTextFieldRenderer } from "./src/components/RichTextFieldRenderer.js";
import { RichTextBlocksRenderer } from "./src/components/RichTextBlocksRenderer.js";
import { RichTextRenderer } from "./src/components/RichTextRenderer.js";
import { useRichTextFieldSource } from "./src/hooks/useRichTextFieldSource.js";
import { useRichTextBlocksSource } from "./src/hooks/useRichTextBlocksSource.js";
export {

@@ -9,0 +9,0 @@ RichText,

@@ -1,8 +0,8 @@

import { RichTextRendererError } from "./RichTextRendererError.js";
import { RichText } from "./components/RichText.js";
import { RichTextFieldRenderer } from "./components/RichTextFieldRenderer.js";
import { RichTextBlocksRenderer } from "./components/RichTextBlocksRenderer.js";
import { RichTextRenderer } from "./components/RichTextRenderer.js";
import { useRichTextFieldSource } from "./hooks/useRichTextFieldSource.js";
import { useRichTextBlocksSource } from "./hooks/useRichTextBlocksSource.js";
import { RichTextRendererError } from "./src/RichTextRendererError.js";
import { RichText } from "./src/components/RichText.js";
import { RichTextFieldRenderer } from "./src/components/RichTextFieldRenderer.js";
import { RichTextBlocksRenderer } from "./src/components/RichTextBlocksRenderer.js";
import { RichTextRenderer } from "./src/components/RichTextRenderer.js";
import { useRichTextFieldSource } from "./src/hooks/useRichTextFieldSource.js";
import { useRichTextBlocksSource } from "./src/hooks/useRichTextBlocksSource.js";
export {

@@ -9,0 +9,0 @@ RichText,

@@ -12,3 +12,3 @@ import type { RichTextBlock } from '../types';

*/
export declare const RichText: <CustomElements extends RichTextElement<never, RichTextLeaf> = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>({ blocks, renderElement, renderLeaf, renderBlock, attributeNamePrefix, referenceRenderers, undefinedReferenceHandler, }: RichTextProps<CustomElements, CustomLeaves>) => import("react/jsx-runtime").JSX.Element;
export declare const RichText: <CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>({ blocks, renderElement, renderLeaf, renderBlock, attributeNamePrefix, referenceRenderers, undefinedReferenceHandler, }: RichTextProps<CustomElements, CustomLeaves>) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=RichText.d.ts.map

@@ -9,3 +9,3 @@ import { RichTextBlockSource, RichTextElement, RichTextLeaf, RichTextRenderingOptions } from '../types';

*/
export declare const RichTextBlocksRenderer: <CustomElements extends RichTextElement<never, RichTextLeaf> = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>({ renderElement, renderLeaf, renderBlock, attributeNamePrefix, referenceRenderers, undefinedReferenceHandler, ...props }: RichTextBlocksRendererProps<CustomElements, CustomLeaves>) => import("react/jsx-runtime").JSX.Element;
export declare const RichTextBlocksRenderer: <CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>({ renderElement, renderLeaf, renderBlock, attributeNamePrefix, referenceRenderers, undefinedReferenceHandler, ...props }: RichTextBlocksRendererProps<CustomElements, CustomLeaves>) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=RichTextBlocksRenderer.d.ts.map

@@ -9,3 +9,3 @@ import { RichTextElement, RichTextFieldSource, RichTextLeaf, RichTextRenderingOptions } from '../types';

*/
export declare const RichTextFieldRenderer: <CustomElements extends RichTextElement<never, RichTextLeaf> = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>({ renderLeaf, renderBlock, renderElement, attributeNamePrefix, undefinedReferenceHandler, ...source }: RichTextFieldRendererProps<CustomElements, CustomLeaves>) => import("react/jsx-runtime").JSX.Element;
export declare const RichTextFieldRenderer: <CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>({ renderLeaf, renderBlock, renderElement, attributeNamePrefix, undefinedReferenceHandler, ...source }: RichTextFieldRendererProps<CustomElements, CustomLeaves>) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=RichTextFieldRenderer.d.ts.map

@@ -11,3 +11,3 @@ import { ReactElement } from 'react';

*/
export declare const RichTextRenderer: <CustomElements extends RichTextElement<never, RichTextLeaf> = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>(props: RichTextRendererProps<CustomElements, CustomLeaves>) => ReactElement;
export declare const RichTextRenderer: <CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>(props: RichTextRendererProps<CustomElements, CustomLeaves>) => ReactElement;
//# sourceMappingURL=RichTextRenderer.d.ts.map
import { RichTextBlock, RichTextBlockSource, RichTextElement, RichTextLeaf } from '../types';
export declare const useRichTextBlocksSource: <CustomElements extends RichTextElement<never, RichTextLeaf>, CustomLeaves extends RichTextLeaf>({ deserialize, blocks, referencesField, sourceField, referenceDiscriminationField, }: RichTextBlockSource<CustomElements, CustomLeaves>) => RichTextBlock<CustomElements, CustomLeaves>[];
export declare const useRichTextBlocksSource: <CustomElements extends RichTextElement, CustomLeaves extends RichTextLeaf>({ deserialize, blocks, referencesField, sourceField, referenceDiscriminationField, }: RichTextBlockSource<CustomElements, CustomLeaves>) => RichTextBlock<CustomElements, CustomLeaves>[];
//# sourceMappingURL=useRichTextBlocksSource.d.ts.map
import { RichTextBlock, RichTextElement, RichTextFieldSource, RichTextLeaf } from '../types';
export declare const useRichTextFieldSource: <CustomElements extends RichTextElement<never, RichTextLeaf>, CustomLeaves extends RichTextLeaf>({ source, deserialize, }: RichTextFieldSource<CustomElements, CustomLeaves>) => RichTextBlock<CustomElements, CustomLeaves>[];
export declare const useRichTextFieldSource: <CustomElements extends RichTextElement, CustomLeaves extends RichTextLeaf>({ source, deserialize, }: RichTextFieldSource<CustomElements, CustomLeaves>) => RichTextBlock<CustomElements, CustomLeaves>[];
//# sourceMappingURL=useRichTextFieldSource.d.ts.map
import type { RichTextElement } from '../types/structure/RichTextElement';
import type { RichTextLeaf } from '../types/structure/RichTextLeaf';
import type { RootEditorNode } from '../types/structure/RootEditorNode';
export declare const defaultDeserialize: <CustomElements extends RichTextElement<never, RichTextLeaf> = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>(source: string) => RootEditorNode<CustomElements, CustomLeaves>;
export declare const defaultDeserialize: <CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>(source: string) => RootEditorNode<CustomElements, CustomLeaves>;
//# sourceMappingURL=defaultDeserialize.d.ts.map

@@ -7,3 +7,3 @@ import type { ReactElement } from 'react';

import { RichTextChild } from '../types/structure/RichTextChild';
export declare const renderChildren: <CustomElements extends RichTextElement<never, RichTextLeaf> = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>(children: RichTextChild<CustomElements, CustomLeaves> | readonly RichTextChild<CustomElements, CustomLeaves>[], options: RichTextRenderingOptions<CustomElements, CustomLeaves>, block: RichTextBlock<CustomElements, CustomLeaves>) => ReactElement;
export declare const renderChildren: <CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = RichTextLeaf>(children: RichTextChild<CustomElements, CustomLeaves> | readonly RichTextChild<CustomElements, CustomLeaves>[], options: RichTextRenderingOptions<CustomElements, CustomLeaves>, block: RichTextBlock<CustomElements, CustomLeaves>) => ReactElement;
//# sourceMappingURL=renderChildren.d.ts.map

@@ -8,3 +8,3 @@ import type { BuiltinElements } from '../types/builtin/BuiltinElements';

import { RichTextRenderingOptions } from '../types/RichTextRenderingOptions';
export declare const useReferenceMetadata: <CustomElements extends RichTextElement<never, RichTextLeaf> = never, CustomLeaves extends RichTextLeaf = RichTextLeaf, Reference extends RichTextReference = RichTextReference>(element: CustomElements | BuiltinElements<CustomElements, CustomLeaves>, options: RichTextRenderingOptions<CustomElements, CustomLeaves, Reference>, block: RichTextBlock<CustomElements, CustomLeaves>, expectReference?: boolean) => RichTextReferenceMetadata<CustomElements, CustomLeaves, Reference>;
export declare const useReferenceMetadata: <CustomElements extends RichTextElement = never, CustomLeaves extends RichTextLeaf = RichTextLeaf, Reference extends RichTextReference = RichTextReference>(element: CustomElements | BuiltinElements<CustomElements, CustomLeaves>, options: RichTextRenderingOptions<CustomElements, CustomLeaves, Reference>, block: RichTextBlock<CustomElements, CustomLeaves>, expectReference?: boolean) => RichTextReferenceMetadata<CustomElements, CustomLeaves, Reference>;
//# sourceMappingURL=useReferenceMetadata.d.ts.map
{
"name": "@contember/react-richtext-renderer",
"license": "Apache-2.0",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.8",
"type": "module",

@@ -20,2 +20,3 @@ "sideEffects": false,

"production": "./dist/production/index.cjs",
"typescript": "./src/index.ts",
"default": "./dist/production/index.cjs"

@@ -25,14 +26,6 @@ }

},
"files": [
"dist/",
"src/"
],
"typings": "./dist/types/index.d.ts",
"scripts": {
"build": "yarn build:js:dev && yarn build:js:prod",
"build:js:dev": "NODE_ENV=development vite build --mode development",
"build:js:prod": "vite build --mode production",
"ae:build": "api-extractor run --local",
"ae:test": "api-extractor run",
"test": "vitest"
"ae:test": "api-extractor run"
},

@@ -50,4 +43,3 @@ "repository": {

"react": "^18 || ^19"
},
"stableVersion": "0.0.0"
}
}
{
"extends": "../../../tsconfig.settings.json",
"compilerOptions": {
"outDir": "../dist/types"
"outDir": "../dist/types",
"types": [
"vite/client"
]
}
}
import { ComponentType, ReactNode } from 'react'
export type RenderBlockProps = {
block: unknown,
block: unknown
children?: ReactNode

@@ -6,0 +6,0 @@ }

@@ -24,3 +24,3 @@ import { RichTextElement } from '../structure/RichTextElement'

renderChildren: RenderChildren<CustomElements, CustomLeaves>,
renderChildren: RenderChildren<CustomElements, CustomLeaves>

@@ -27,0 +27,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc