@synerise/ds-rich-text 2.0.4 → 2.0.5
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 +8 -0
- package/dist/RichText.js +6 -6
- package/dist/RichText.types.d.ts +1 -1
- package/dist/blockModel/index.d.ts +2 -2
- package/dist/blockModel/index.js +3 -3
- package/dist/blockModel/serializers/index.d.ts +3 -3
- package/dist/blockModel/serializers/index.js +3 -3
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -2
- package/dist/extensions/CodeSnippet.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-rich-text@2.0.4...@synerise/ds-rich-text@2.0.5) (2026-09-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-rich-text
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.0.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-rich-text@2.0.3...@synerise/ds-rich-text@2.0.4) (2026-09-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-rich-text
|
package/dist/RichText.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEditor, EditorContent } from "@tiptap/react";
|
|
2
3
|
import { forwardRef, useState, useRef, useMemo, useCallback, useEffect } from "react";
|
|
3
4
|
import { useTheme } from "@synerise/ds-core";
|
|
4
5
|
import { FormFieldLabel } from "@synerise/ds-form-field";
|
|
5
6
|
import Icon, { EditS } from "@synerise/ds-icon";
|
|
6
7
|
import { useCombinedRefs, useOnClickOutside } from "@synerise/ds-utils";
|
|
7
|
-
import { useEditor, EditorContent } from "@tiptap/react";
|
|
8
|
-
import { RichTextWrapper, ContentAbove, EditorWrapper, ToolbarArea, EditorArea, SubtleSuffix, ContentBelow, ErrorText, Description } from "./RichText.styles.js";
|
|
9
|
-
import { DEFAULT_TEXTS, ALL_TOOLBAR_FEATURES, DEFAULT_HEADING_LEVELS } from "./RichText.types.js";
|
|
10
|
-
import { tiptapJsonToDocument } from "./blockModel/serializers/tiptapToDocument.js";
|
|
11
|
-
import { documentToTiptapJson } from "./blockModel/serializers/documentToTiptap.js";
|
|
12
8
|
import { documentToMarkdown } from "./blockModel/serializers/documentToMarkdown.js";
|
|
9
|
+
import { documentToTiptapJson } from "./blockModel/serializers/documentToTiptap.js";
|
|
13
10
|
import { markdownToDocument } from "./blockModel/serializers/markdownToDocument.js";
|
|
14
|
-
import {
|
|
11
|
+
import { tiptapJsonToDocument } from "./blockModel/serializers/tiptapToDocument.js";
|
|
15
12
|
import "@synerise/ds-button";
|
|
16
13
|
import "@synerise/ds-input";
|
|
14
|
+
import { RichTextWrapper, ContentAbove, EditorWrapper, ToolbarArea, EditorArea, SubtleSuffix, ContentBelow, ErrorText, Description } from "./RichText.styles.js";
|
|
17
15
|
import { getExtensions } from "./utils/getExtensions.js";
|
|
16
|
+
import { Toolbar } from "./components/Toolbar.js";
|
|
17
|
+
import { DEFAULT_TEXTS, ALL_TOOLBAR_FEATURES, DEFAULT_HEADING_LEVELS } from "./RichText.types.js";
|
|
18
18
|
const SUBTLE_IGNORE_SELECTORS = ["[data-popover-content]"];
|
|
19
19
|
const isDocument = (val) => typeof val === "object" && val !== null && val.type === "doc";
|
|
20
20
|
const toEditorContent = (val, format) => {
|
package/dist/RichText.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
1
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
3
|
import { TooltipProps } from '@synerise/ds-tooltip';
|
|
3
|
-
import { Editor } from '@tiptap/react';
|
|
4
4
|
import { RichTextDocument } from './blockModel';
|
|
5
5
|
export type RichTextTexts = {
|
|
6
6
|
paragraph: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export {
|
|
1
|
+
export type { Block, BlockquoteBlock, BoldMark, BulletListBlock, CodeBlockBlock, CodeMark, HardBreakNode, HeadingBlock, HeadingLevel, HorizontalRuleBlock, ImageBlock, InlineNode, ItalicMark, LinkMark, ListItemBlock, Mark, OrderedListBlock, ParagraphBlock, PMMark, PMNode, RichTextDocument, StrikeMark, TableBlock, TableCellBlock, TableHeaderBlock, TableRowBlock, TextAlign, TextNode, UnderlineMark, } from './blockModel.types';
|
|
2
|
+
export { documentToHtml, documentToMarkdown, documentToTiptapJson, htmlToDocument, markdownToDocument, tiptapJsonToDocument, } from './serializers';
|
package/dist/blockModel/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { tiptapJsonToDocument } from "./serializers/tiptapToDocument.js";
|
|
2
|
-
import { documentToTiptapJson } from "./serializers/documentToTiptap.js";
|
|
3
1
|
import { documentToHtml } from "./serializers/documentToHtml.js";
|
|
4
2
|
import { documentToMarkdown } from "./serializers/documentToMarkdown.js";
|
|
5
|
-
import {
|
|
3
|
+
import { documentToTiptapJson } from "./serializers/documentToTiptap.js";
|
|
6
4
|
import { htmlToDocument } from "./serializers/htmlToDocument.js";
|
|
5
|
+
import { markdownToDocument } from "./serializers/markdownToDocument.js";
|
|
6
|
+
import { tiptapJsonToDocument } from "./serializers/tiptapToDocument.js";
|
|
7
7
|
export {
|
|
8
8
|
documentToHtml,
|
|
9
9
|
documentToMarkdown,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { tiptapJsonToDocument } from './tiptapToDocument';
|
|
2
|
-
export { documentToTiptapJson } from './documentToTiptap';
|
|
3
1
|
export { documentToHtml } from './documentToHtml';
|
|
4
2
|
export { documentToMarkdown } from './documentToMarkdown';
|
|
5
|
-
export {
|
|
3
|
+
export { documentToTiptapJson } from './documentToTiptap';
|
|
6
4
|
export { htmlToDocument } from './htmlToDocument';
|
|
5
|
+
export { markdownToDocument } from './markdownToDocument';
|
|
6
|
+
export { tiptapJsonToDocument } from './tiptapToDocument';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { tiptapJsonToDocument } from "./tiptapToDocument.js";
|
|
2
|
-
import { documentToTiptapJson } from "./documentToTiptap.js";
|
|
3
1
|
import { documentToHtml } from "./documentToHtml.js";
|
|
4
2
|
import { documentToMarkdown } from "./documentToMarkdown.js";
|
|
5
|
-
import {
|
|
3
|
+
import { documentToTiptapJson } from "./documentToTiptap.js";
|
|
6
4
|
import { htmlToDocument } from "./htmlToDocument.js";
|
|
5
|
+
import { markdownToDocument } from "./markdownToDocument.js";
|
|
6
|
+
import { tiptapJsonToDocument } from "./tiptapToDocument.js";
|
|
7
7
|
export {
|
|
8
8
|
documentToHtml,
|
|
9
9
|
documentToMarkdown,
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Toolbar } from "./Toolbar.js";
|
|
2
|
-
import { LinkPopover } from "./LinkPopover.js";
|
|
3
1
|
import { ImagePopover } from "./ImagePopover.js";
|
|
2
|
+
import { LinkPopover } from "./LinkPopover.js";
|
|
3
|
+
import { Toolbar } from "./Toolbar.js";
|
|
4
4
|
export {
|
|
5
5
|
ImagePopover,
|
|
6
6
|
LinkPopover,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import CopyIcon from "@synerise/ds-copy-icon";
|
|
3
2
|
import { Node, mergeAttributes } from "@tiptap/core";
|
|
4
3
|
import { ReactNodeViewRenderer, NodeViewWrapper, NodeViewContent } from "@tiptap/react";
|
|
4
|
+
import CopyIcon from "@synerise/ds-copy-icon";
|
|
5
5
|
const CodeSnippetView = ({
|
|
6
6
|
node,
|
|
7
7
|
extension
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * from './blockModel';
|
|
1
2
|
export { default } from './RichText';
|
|
2
|
-
export type { RichTextProps, RichTextFormat, RichTextTexts, RichTextAIOption, ToolbarFeature, ToolbarProps, LinkPopoverProps, ImagePopoverProps, } from './RichText.types';
|
|
3
|
-
export { ALL_TOOLBAR_FEATURES, DEFAULT_HEADING_LEVELS, DEFAULT_TEXTS, } from './RichText.types';
|
|
4
3
|
export * from './RichText.styles';
|
|
5
|
-
export
|
|
4
|
+
export type { ImagePopoverProps, LinkPopoverProps, RichTextAIOption, RichTextFormat, RichTextProps, RichTextTexts, ToolbarFeature, ToolbarProps, } from './RichText.types';
|
|
5
|
+
export { ALL_TOOLBAR_FEATURES, DEFAULT_HEADING_LEVELS, DEFAULT_TEXTS, } from './RichText.types';
|
|
6
6
|
export { normalizeUrl, sanitizeUrl } from './utils';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { default as default2 } from "./RichText.js";
|
|
2
|
-
import { ALL_TOOLBAR_FEATURES, DEFAULT_HEADING_LEVELS, DEFAULT_TEXTS } from "./RichText.types.js";
|
|
3
|
-
import { AiGradientLabel, BlockMenu, ContentAbove, ContentBelow, Description, EditorArea, EditorWrapper, ErrorText, PopoverActions, PopoverForm, RichTextWrapper, SubtleSuffix, ToolbarArea, ToolbarEntry, ToolbarItems, ToolbarSeparator } from "./RichText.styles.js";
|
|
4
|
-
import { tiptapJsonToDocument } from "./blockModel/serializers/tiptapToDocument.js";
|
|
5
|
-
import { documentToTiptapJson } from "./blockModel/serializers/documentToTiptap.js";
|
|
6
1
|
import { documentToHtml } from "./blockModel/serializers/documentToHtml.js";
|
|
7
2
|
import { documentToMarkdown } from "./blockModel/serializers/documentToMarkdown.js";
|
|
8
|
-
import {
|
|
3
|
+
import { documentToTiptapJson } from "./blockModel/serializers/documentToTiptap.js";
|
|
9
4
|
import { htmlToDocument } from "./blockModel/serializers/htmlToDocument.js";
|
|
5
|
+
import { markdownToDocument } from "./blockModel/serializers/markdownToDocument.js";
|
|
6
|
+
import { tiptapJsonToDocument } from "./blockModel/serializers/tiptapToDocument.js";
|
|
7
|
+
import { default as default2 } from "./RichText.js";
|
|
8
|
+
import { AiGradientLabel, BlockMenu, ContentAbove, ContentBelow, Description, EditorArea, EditorWrapper, ErrorText, PopoverActions, PopoverForm, RichTextWrapper, SubtleSuffix, ToolbarArea, ToolbarEntry, ToolbarItems, ToolbarSeparator } from "./RichText.styles.js";
|
|
9
|
+
import { ALL_TOOLBAR_FEATURES, DEFAULT_HEADING_LEVELS, DEFAULT_TEXTS } from "./RichText.types.js";
|
|
10
10
|
import "@tiptap/extension-image";
|
|
11
11
|
import "@tiptap/extension-link";
|
|
12
12
|
import "@tiptap/extension-placeholder";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-rich-text",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "RichText UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"./dist/*": "./dist/*.js"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@synerise/ds-button": "^2.0.
|
|
42
|
-
"@synerise/ds-copy-icon": "^2.0.
|
|
43
|
-
"@synerise/ds-form-field": "^2.0.
|
|
44
|
-
"@synerise/ds-icon": "^2.1.
|
|
45
|
-
"@synerise/ds-input": "^2.0.
|
|
46
|
-
"@synerise/ds-popover": "^2.0.
|
|
47
|
-
"@synerise/ds-toolbar": "^2.0.
|
|
48
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
49
|
-
"@synerise/ds-utils": "^2.1.
|
|
41
|
+
"@synerise/ds-button": "^2.0.4",
|
|
42
|
+
"@synerise/ds-copy-icon": "^2.0.4",
|
|
43
|
+
"@synerise/ds-form-field": "^2.0.4",
|
|
44
|
+
"@synerise/ds-icon": "^2.1.2",
|
|
45
|
+
"@synerise/ds-input": "^2.0.5",
|
|
46
|
+
"@synerise/ds-popover": "^2.0.2",
|
|
47
|
+
"@synerise/ds-toolbar": "^2.0.4",
|
|
48
|
+
"@synerise/ds-tooltip": "^2.0.4",
|
|
49
|
+
"@synerise/ds-utils": "^2.1.1",
|
|
50
50
|
"@tiptap/core": "^2.11.0",
|
|
51
51
|
"@tiptap/extension-image": "^2.11.0",
|
|
52
52
|
"@tiptap/extension-link": "^2.11.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"@types/markdown-it": "14.1.2",
|
|
72
72
|
"vitest": "4"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b1d905617dfb186b5d80966d63ce55bf29df743d"
|
|
75
75
|
}
|