rme 0.0.63 → 0.0.65
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/dist/index.d.ts +31 -19
- package/dist/index.mjs +159 -138
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,9 +21,23 @@ type EditorRef = {
|
|
|
21
21
|
toggleType: (targetType: EditorViewType) => void;
|
|
22
22
|
getType: () => EditorViewType;
|
|
23
23
|
};
|
|
24
|
+
declare const defaultStyleToken: {
|
|
25
|
+
rootFontSize: string;
|
|
26
|
+
rootLineHeight: string;
|
|
27
|
+
};
|
|
24
28
|
interface EditorProps {
|
|
25
29
|
initialType?: EditorViewType;
|
|
26
30
|
delegate?: EditorDelegate;
|
|
31
|
+
styleToken?: {
|
|
32
|
+
/**
|
|
33
|
+
* @default 15px
|
|
34
|
+
*/
|
|
35
|
+
rootFontSize?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @default 1.6
|
|
38
|
+
*/
|
|
39
|
+
rootLineHeight?: string;
|
|
40
|
+
};
|
|
27
41
|
content: string;
|
|
28
42
|
isTesting?: boolean;
|
|
29
43
|
editable?: boolean;
|
|
@@ -260,6 +274,14 @@ declare const Preview: React.FC<PreviewProps>;
|
|
|
260
274
|
interface WarpperProps$1 {
|
|
261
275
|
codeEditor?: boolean;
|
|
262
276
|
dark?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* @default 15px
|
|
279
|
+
*/
|
|
280
|
+
rootFontSize?: string;
|
|
281
|
+
/**
|
|
282
|
+
* @default 1.6
|
|
283
|
+
*/
|
|
284
|
+
rootLineHeight?: string;
|
|
263
285
|
}
|
|
264
286
|
declare const WysiwygThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
265
287
|
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -268,6 +290,14 @@ declare const WysiwygThemeWrapper: styled_components_dist_types.IStyledComponent
|
|
|
268
290
|
interface WarpperProps {
|
|
269
291
|
codeEditor?: boolean;
|
|
270
292
|
dark?: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* @default 15px
|
|
295
|
+
*/
|
|
296
|
+
rootFontSize?: string;
|
|
297
|
+
/**
|
|
298
|
+
* @default 1.6
|
|
299
|
+
*/
|
|
300
|
+
rootLineHeight?: string;
|
|
271
301
|
}
|
|
272
302
|
declare const SourceCodeThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
273
303
|
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -278,12 +308,6 @@ declare const common: {
|
|
|
278
308
|
lineHeightBase: string;
|
|
279
309
|
titleBarHeight: string;
|
|
280
310
|
titleBarControlBtnWidth: string;
|
|
281
|
-
fontH1: string;
|
|
282
|
-
fontH2: string;
|
|
283
|
-
fontH3: string;
|
|
284
|
-
fontH4: string;
|
|
285
|
-
fontH5: string;
|
|
286
|
-
fontH6: string;
|
|
287
311
|
fontBase: string;
|
|
288
312
|
fontSm: string;
|
|
289
313
|
fontXs: string;
|
|
@@ -346,12 +370,6 @@ declare const darkTheme: {
|
|
|
346
370
|
lineHeightBase: string;
|
|
347
371
|
titleBarHeight: string;
|
|
348
372
|
titleBarControlBtnWidth: string;
|
|
349
|
-
fontH1: string;
|
|
350
|
-
fontH2: string;
|
|
351
|
-
fontH3: string;
|
|
352
|
-
fontH4: string;
|
|
353
|
-
fontH5: string;
|
|
354
|
-
fontH6: string;
|
|
355
373
|
fontBase: string;
|
|
356
374
|
fontSm: string;
|
|
357
375
|
fontXs: string;
|
|
@@ -415,12 +433,6 @@ declare const lightTheme: {
|
|
|
415
433
|
lineHeightBase: string;
|
|
416
434
|
titleBarHeight: string;
|
|
417
435
|
titleBarControlBtnWidth: string;
|
|
418
|
-
fontH1: string;
|
|
419
|
-
fontH2: string;
|
|
420
|
-
fontH3: string;
|
|
421
|
-
fontH4: string;
|
|
422
|
-
fontH5: string;
|
|
423
|
-
fontH6: string;
|
|
424
436
|
fontBase: string;
|
|
425
437
|
fontSm: string;
|
|
426
438
|
fontXs: string;
|
|
@@ -441,4 +453,4 @@ declare const lightTheme: {
|
|
|
441
453
|
};
|
|
442
454
|
};
|
|
443
455
|
|
|
444
|
-
export { type CreateCodemirrorOptions, type CreateWysiwygDelegateOptions, type DocToString, Editor, type EditorChangeEventParams, type EditorChangeHandler, type EditorContext, type EditorDelegate, extensions as EditorExtensions, type EditorProps, type EditorRef, type EditorState, type EditorViewType, type Note, Preview, SourceCodeThemeWrapper, _default$1 as SourceEditor, type StringToDoc, ThemeProvider, _default as WysiwygEditor, WysiwygThemeWrapper, buildMarkdownParser, buildMarkdownSerializer, changeTheme, common, computeChange, createSourceCodeDelegate, createSourceCodeManager, createWysiwygDelegate, darkTheme, getLanguageMap, lightTheme, loadLanguage, tableSelectorSize, wysiwygTransformer };
|
|
456
|
+
export { type CreateCodemirrorOptions, type CreateWysiwygDelegateOptions, type DocToString, Editor, type EditorChangeEventParams, type EditorChangeHandler, type EditorContext, type EditorDelegate, extensions as EditorExtensions, type EditorProps, type EditorRef, type EditorState, type EditorViewType, type Note, Preview, SourceCodeThemeWrapper, _default$1 as SourceEditor, type StringToDoc, ThemeProvider, _default as WysiwygEditor, WysiwygThemeWrapper, buildMarkdownParser, buildMarkdownSerializer, changeTheme, common, computeChange, createSourceCodeDelegate, createSourceCodeManager, createWysiwygDelegate, darkTheme, defaultStyleToken, getLanguageMap, lightTheme, loadLanguage, tableSelectorSize, wysiwygTransformer };
|