@markput/react 0.4.0 → 0.5.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/index.d.ts +2 -14
- package/index.js +433 -396
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,11 +3,13 @@ import { Block } from '@markput/core';
|
|
|
3
3
|
import type { ComponentType } from 'react';
|
|
4
4
|
import type { CoreOption } from '@markput/core';
|
|
5
5
|
import type { CSSProperties } from 'react';
|
|
6
|
+
import type { DataAttributes } from '@markput/core';
|
|
6
7
|
import { denote } from '@markput/core';
|
|
7
8
|
import type { ElementType } from 'react';
|
|
8
9
|
import type { HTMLAttributes } from 'react';
|
|
9
10
|
import { JSX } from 'react/jsx-runtime';
|
|
10
11
|
import { MarkHandler } from '@markput/core';
|
|
12
|
+
import type { MarkOptions } from '@markput/core';
|
|
11
13
|
import { MarkputHandler } from '@markput/core';
|
|
12
14
|
import { MarkToken } from '@markput/core';
|
|
13
15
|
import { Markup } from '@markput/core';
|
|
@@ -25,11 +27,6 @@ export { annotate }
|
|
|
25
27
|
|
|
26
28
|
export { Block }
|
|
27
29
|
|
|
28
|
-
/**
|
|
29
|
-
* Data attributes with automatic camelCase to kebab-case conversion
|
|
30
|
-
*/
|
|
31
|
-
declare type DataAttributes = Record<`data${Capitalize<string>}`, string | number | boolean | undefined>;
|
|
32
|
-
|
|
33
30
|
export { denote }
|
|
34
31
|
|
|
35
32
|
export declare function MarkedInput<TMarkProps = MarkProps, TOverlayProps = OverlayProps>(props: MarkedInputProps<TMarkProps, TOverlayProps>): JSX.Element;
|
|
@@ -97,10 +94,6 @@ export declare interface MarkedInputProps<TMarkProps = MarkProps, TOverlayProps
|
|
|
97
94
|
|
|
98
95
|
export { MarkHandler }
|
|
99
96
|
|
|
100
|
-
declare interface MarkOptions {
|
|
101
|
-
controlled?: boolean;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
97
|
/**
|
|
105
98
|
* Props passed to Mark components.
|
|
106
99
|
*/
|
|
@@ -176,13 +169,8 @@ export declare interface OverlayProps {
|
|
|
176
169
|
|
|
177
170
|
export { reorderBlocks }
|
|
178
171
|
|
|
179
|
-
/**
|
|
180
|
-
* Props for each slot component
|
|
181
|
-
*/
|
|
182
172
|
declare interface SlotProps {
|
|
183
|
-
/** Props to pass to the container slot */
|
|
184
173
|
container?: HTMLAttributes<HTMLDivElement> & DataAttributes;
|
|
185
|
-
/** Props to pass to the span slot */
|
|
186
174
|
span?: HTMLAttributes<HTMLSpanElement> & DataAttributes;
|
|
187
175
|
}
|
|
188
176
|
|