@podlite/editor-react 0.0.15 → 0.0.17

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 CHANGED
@@ -1,6 +1,11 @@
1
1
  # @podlite/editor-react
2
2
 
3
3
  ## Upcoming
4
+ ## 0.0.17
5
+ - update dep
6
+ ## 0.0.16
7
+ - add Markdown block suggestion
8
+ - save virtual margin for suggestions
4
9
  ## 0.0.15
5
10
  - update deps
6
11
  - fix css for video
package/esm/dict.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- declare const dict: {
1
+ interface Dict {
2
2
  displayText: string;
3
3
  text: string;
4
- }[];
4
+ lang?: 'pod6' | 'md';
5
+ }
6
+ declare const dict: Dict[];
5
7
  export default dict;
@@ -0,0 +1,15 @@
1
+ import { PodliteDocument } from '@podlite/schema';
2
+ export declare const parse: (str: string) => PodliteDocument;
3
+ export declare const getSuggestionContextForLine: (pod: string, line: number) => 'pod6' | 'md';
4
+ interface Pos {
5
+ line: number;
6
+ offset: number;
7
+ }
8
+ interface Selection {
9
+ start: Pos;
10
+ end: Pos;
11
+ text?: string;
12
+ }
13
+ export declare const templateGetSelectionPos: (pod: string) => Selection | null;
14
+ export declare const addVMargin: (count: number, pod: string) => string;
15
+ export {};