@podlite/editor-react 0.0.30 → 0.0.31
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 +5 -0
- package/README.md +15 -2
- package/lib/index.cjs +819 -12
- package/lib/index.cjs.map +3 -3
- package/lib/index.css +13 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.esm.css +13 -0
- package/lib/index.esm.js +816 -9
- package/lib/index.esm.js.map +3 -3
- package/lib/podlite-mode.d.ts +1 -0
- package/lib/simpleplus.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -132,6 +132,7 @@ table {
|
|
|
132
132
|
}
|
|
133
133
|
table caption {
|
|
134
134
|
margin-bottom: 0.8em;
|
|
135
|
+
caption-side: bottom;
|
|
135
136
|
}
|
|
136
137
|
table tbody tr:hover {
|
|
137
138
|
background-color: #eee;
|
|
@@ -349,3 +350,15 @@ aside.notify.caution .notify-title {
|
|
|
349
350
|
z-index: 1000;
|
|
350
351
|
border: none;
|
|
351
352
|
}
|
|
353
|
+
.editorApp .cm-header {
|
|
354
|
+
color: #000;
|
|
355
|
+
}
|
|
356
|
+
.editorApp .cm-header-1 {
|
|
357
|
+
font-size: 150%;
|
|
358
|
+
}
|
|
359
|
+
.cm-header-2 {
|
|
360
|
+
font-size: 130%;
|
|
361
|
+
}
|
|
362
|
+
.cm-header-3 {
|
|
363
|
+
font-size: 110%;
|
|
364
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import 'codemirror/addon/search/search';
|
|
|
6
6
|
import 'codemirror/addon/search/searchcursor';
|
|
7
7
|
import 'codemirror/addon/dialog/dialog';
|
|
8
8
|
import 'codemirror/addon/dialog/dialog.css';
|
|
9
|
+
import './podlite-mode';
|
|
9
10
|
import './Editor.css';
|
|
10
11
|
export interface ConverterResult {
|
|
11
12
|
errors?: any;
|
|
@@ -22,6 +23,7 @@ declare type Props = {
|
|
|
22
23
|
isAutoComplete?: boolean;
|
|
23
24
|
isPreviewModeEnabled?: boolean;
|
|
24
25
|
isControlled?: boolean;
|
|
26
|
+
isHighlightSource?: boolean;
|
|
25
27
|
};
|
|
26
|
-
export declare const Editor: ({ onChangeSource, content, isDarkTheme, isLineNumbers, isPreviewModeEnabled, onConvertSource, onSavePressed, sourceType, isControlled, isAutoComplete, }: Props) => React.JSX.Element;
|
|
28
|
+
export declare const Editor: ({ onChangeSource, content, isDarkTheme, isLineNumbers, isPreviewModeEnabled, onConvertSource, onSavePressed, sourceType, isControlled, isAutoComplete, isHighlightSource, }: Props) => React.JSX.Element;
|
|
27
29
|
export default Editor;
|
package/lib/index.esm.css
CHANGED
|
@@ -132,6 +132,7 @@ table {
|
|
|
132
132
|
}
|
|
133
133
|
table caption {
|
|
134
134
|
margin-bottom: 0.8em;
|
|
135
|
+
caption-side: bottom;
|
|
135
136
|
}
|
|
136
137
|
table tbody tr:hover {
|
|
137
138
|
background-color: #eee;
|
|
@@ -349,3 +350,15 @@ aside.notify.caution .notify-title {
|
|
|
349
350
|
z-index: 1000;
|
|
350
351
|
border: none;
|
|
351
352
|
}
|
|
353
|
+
.editorApp .cm-header {
|
|
354
|
+
color: #000;
|
|
355
|
+
}
|
|
356
|
+
.editorApp .cm-header-1 {
|
|
357
|
+
font-size: 150%;
|
|
358
|
+
}
|
|
359
|
+
.cm-header-2 {
|
|
360
|
+
font-size: 130%;
|
|
361
|
+
}
|
|
362
|
+
.cm-header-3 {
|
|
363
|
+
font-size: 110%;
|
|
364
|
+
}
|