Skip to content

Commit c0dc85f

Browse files
committed
build: update dist
1 parent cb2d864 commit c0dc85f

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

dist/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.mts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { CSSProperties, HTMLAttributes } from 'react';
22
import { Editor } from '@tiptap/core';
3-
import { UseEditorOptions } from '@tiptap/react';
3+
import { EditorContentProps, UseEditorOptions } from '@tiptap/react';
44

55
interface Tag {
66
type: 'tag'
@@ -9,20 +9,22 @@ interface Tag {
99
label?: string
1010
class?: string | string[]
1111
style?: CSSProperties
12+
[key: string]: string | string[] | CSSProperties | undefined
1213
}
1314
}
1415

1516
type MixInputValue = Tag | string
1617

1718
type MixInputValues = MixInputValue[][]
1819

19-
interface MixInputProps extends HTMLAttributes<HTMLDivElement> {
20+
interface MixInputProps extends HTMLAttributes<HTMLDivElement>, Omit<EditorContentProps, 'editor'> {
2021
value: MixInputValues
2122
placeholder?: string
2223
onChange: (value: MixInputValues) => void
2324
readonly?: boolean
2425
tagClassName?: string
2526
editorOptions?: UseEditorOptions
27+
tagAttrs?: Record<string, string | undefined>
2628
// multiline?: boolean
2729
// showTagDeleteBtn?: boolean
2830
}
@@ -33,6 +35,6 @@ interface MixInputRef {
3335
insertContent: (content: MixInputValue | MixInputValue[]) => void
3436
}
3537

36-
declare const MixInput: React.ForwardRefExoticComponent<MixInputProps & React.RefAttributes<MixInputRef>>;
38+
declare const MixInput: React.ForwardRefExoticComponent<Omit<MixInputProps, "ref"> & React.RefAttributes<MixInputRef>>;
3739

3840
export { type MixInputProps, type MixInputRef, type MixInputValue, type MixInputValues, type Tag, MixInput as default };

dist/index.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { CSSProperties, HTMLAttributes } from 'react';
22
import { Editor } from '@tiptap/core';
3-
import { UseEditorOptions } from '@tiptap/react';
3+
import { EditorContentProps, UseEditorOptions } from '@tiptap/react';
44

55
interface Tag {
66
type: 'tag'
@@ -9,20 +9,22 @@ interface Tag {
99
label?: string
1010
class?: string | string[]
1111
style?: CSSProperties
12+
[key: string]: string | string[] | CSSProperties | undefined
1213
}
1314
}
1415

1516
type MixInputValue = Tag | string
1617

1718
type MixInputValues = MixInputValue[][]
1819

19-
interface MixInputProps extends HTMLAttributes<HTMLDivElement> {
20+
interface MixInputProps extends HTMLAttributes<HTMLDivElement>, Omit<EditorContentProps, 'editor'> {
2021
value: MixInputValues
2122
placeholder?: string
2223
onChange: (value: MixInputValues) => void
2324
readonly?: boolean
2425
tagClassName?: string
2526
editorOptions?: UseEditorOptions
27+
tagAttrs?: Record<string, string | undefined>
2628
// multiline?: boolean
2729
// showTagDeleteBtn?: boolean
2830
}
@@ -33,6 +35,6 @@ interface MixInputRef {
3335
insertContent: (content: MixInputValue | MixInputValue[]) => void
3436
}
3537

36-
declare const MixInput: React.ForwardRefExoticComponent<MixInputProps & React.RefAttributes<MixInputRef>>;
38+
declare const MixInput: React.ForwardRefExoticComponent<Omit<MixInputProps, "ref"> & React.RefAttributes<MixInputRef>>;
3739

3840
export { type MixInputProps, type MixInputRef, type MixInputValue, type MixInputValues, type Tag, MixInput as default };

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)