@hpcc-js/codemirror 2.64.0 → 3.2.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.
Files changed (69) hide show
  1. package/README.md +10 -4
  2. package/dist/index.js +11964 -17754
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.umd.cjs +33 -0
  5. package/dist/index.umd.cjs.map +1 -0
  6. package/package.json +31 -33
  7. package/src/CSSEditor.ts +1 -1
  8. package/src/DOTEditor.ts +2 -2
  9. package/src/ECLEditor.ts +1 -1
  10. package/src/Editor.css +8 -3
  11. package/src/Editor.ts +1 -1
  12. package/src/HTMLEditor.ts +1 -1
  13. package/src/JSEditor.ts +1 -1
  14. package/src/JSONEditor.ts +1 -1
  15. package/src/MarkdownEditor.ts +1 -1
  16. package/src/ObservableMarkdownEditor.ts +1 -1
  17. package/src/SQLEditor.ts +1 -1
  18. package/src/XMLEditor.ts +1 -1
  19. package/src/__package__.ts +2 -2
  20. package/src/codemirror-shim.ts +32 -0
  21. package/src/index.ts +13 -12
  22. package/src/mode/dot/dot.ts +94 -0
  23. package/src/mode/markdown/markdown.ts +879 -0
  24. package/types/CSSEditor.d.ts +1 -2
  25. package/types/DOTEditor.d.ts +1 -2
  26. package/types/ECLEditor.d.ts +1 -2
  27. package/types/Editor.d.ts +0 -1
  28. package/types/HTMLEditor.d.ts +1 -2
  29. package/types/JSEditor.d.ts +1 -2
  30. package/types/JSONEditor.d.ts +1 -2
  31. package/types/MarkdownEditor.d.ts +1 -2
  32. package/types/ObservableMarkdownEditor.d.ts +1 -2
  33. package/types/SQLEditor.d.ts +1 -2
  34. package/types/XMLEditor.d.ts +1 -2
  35. package/types/__package__.d.ts +2 -3
  36. package/types/codemirror-shim.d.ts +26 -0
  37. package/types/index.d.ts +12 -13
  38. package/types/mode/dot/dot.d.ts +1 -0
  39. package/types/mode/markdown/markdown.d.ts +1 -0
  40. package/dist/index.es6.js +0 -17860
  41. package/dist/index.es6.js.map +0 -1
  42. package/dist/index.min.js +0 -2
  43. package/dist/index.min.js.map +0 -1
  44. package/types/CSSEditor.d.ts.map +0 -1
  45. package/types/DOTEditor.d.ts.map +0 -1
  46. package/types/ECLEditor.d.ts.map +0 -1
  47. package/types/Editor.d.ts.map +0 -1
  48. package/types/HTMLEditor.d.ts.map +0 -1
  49. package/types/JSEditor.d.ts.map +0 -1
  50. package/types/JSONEditor.d.ts.map +0 -1
  51. package/types/MarkdownEditor.d.ts.map +0 -1
  52. package/types/ObservableMarkdownEditor.d.ts.map +0 -1
  53. package/types/SQLEditor.d.ts.map +0 -1
  54. package/types/XMLEditor.d.ts.map +0 -1
  55. package/types/__package__.d.ts.map +0 -1
  56. package/types/index.d.ts.map +0 -1
  57. package/types-3.4/CSSEditor.d.ts +0 -7
  58. package/types-3.4/DOTEditor.d.ts +0 -7
  59. package/types-3.4/ECLEditor.d.ts +0 -8
  60. package/types-3.4/Editor.d.ts +0 -57
  61. package/types-3.4/HTMLEditor.d.ts +0 -7
  62. package/types-3.4/JSEditor.d.ts +0 -7
  63. package/types-3.4/JSONEditor.d.ts +0 -7
  64. package/types-3.4/MarkdownEditor.d.ts +0 -7
  65. package/types-3.4/ObservableMarkdownEditor.d.ts +0 -5
  66. package/types-3.4/SQLEditor.d.ts +0 -7
  67. package/types-3.4/XMLEditor.d.ts +0 -7
  68. package/types-3.4/__package__.d.ts +0 -4
  69. package/types-3.4/index.d.ts +0 -13
@@ -1 +0,0 @@
1
- {"version":3,"file":"CSSEditor.d.ts","sourceRoot":"","sources":["../src/CSSEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,SAAU,SAAQ,MAAM;IACjC,OAAO,IAAI,GAAG;IASd,GAAG,IAAI,MAAM;IACb,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAOvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DOTEditor.d.ts","sourceRoot":"","sources":["../src/DOTEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,SAAU,SAAQ,MAAM;IACjC,OAAO,IAAI,GAAG;IAOd,GAAG,IAAI,MAAM;IACb,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAOvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ECLEditor.d.ts","sourceRoot":"","sources":["../src/ECLEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,sBAAsB,CAAC;AAE9B,qBAAa,SAAU,SAAQ,MAAM;IACjC,OAAO,IAAI,GAAG;IASd,GAAG,IAAI,MAAM;IACb,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAOvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../src/Editor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAW,MAAM,iBAAiB,CAAC;AAEtD,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,MAAO,SAAQ,UAAU;IAClC,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,WAAW,CAAM;IACzB,SAAS,CAAC,YAAY,EAAE,MAAM,CAAM;IAEpC,OAAO,IAAI,GAAG;IASd,OAAO,CAAC,QAAQ,CAAsC;IACtD,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IACvC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAepD,aAAa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AM,EAAE;IAGzB,UAAU,CAAC,EAAE,KAAA,EAAE,MAAM,KAAA,GAAG,OAAO,CAAC,WAAW,CAAC;IAG5C;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;CAG9C;AAGD,MAAM,WAAW,MAAM;IACnB,QAAQ,IAAI,OAAO,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,iBAAiB,IAAI,MAAM,CAAC;IAC5B,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,eAAe,IAAI,MAAM,CAAC;IAC1B,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,IAAI,OAAO,CAAC;IACrB,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HTMLEditor.d.ts","sourceRoot":"","sources":["../src/HTMLEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,UAAW,SAAQ,MAAM;IAClC,OAAO,IAAI,GAAG;IASd,IAAI,IAAI,MAAM;IACd,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAOxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"JSEditor.d.ts","sourceRoot":"","sources":["../src/JSEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,QAAS,SAAQ,MAAM;IAChC,OAAO,IAAI,GAAG;IASd,UAAU,IAAI,MAAM;IACpB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAO9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"JSONEditor.d.ts","sourceRoot":"","sources":["../src/JSONEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,UAAW,SAAQ,MAAM;IAClC,OAAO,IAAI,GAAG;IASd,IAAI,IAAI,MAAM;IACd,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAOxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../src/MarkdownEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,cAAe,SAAQ,MAAM;IACtC,OAAO,IAAI,GAAG;IASd,QAAQ,IAAI,MAAM;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAO5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ObservableMarkdownEditor.d.ts","sourceRoot":"","sources":["../src/ObservableMarkdownEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,wBAAyB,SAAQ,cAAc;IACxD,OAAO,IAAI,GAAG;CASjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SQLEditor.d.ts","sourceRoot":"","sources":["../src/SQLEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,SAAU,SAAQ,MAAM;IACjC,OAAO,IAAI,GAAG;IASd,GAAG,IAAI,MAAM;IACb,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAOvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"XMLEditor.d.ts","sourceRoot":"","sources":["../src/XMLEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,SAAU,SAAQ,MAAM;IACjC,OAAO,IAAI,GAAG;IASd,GAAG,IAAI,MAAM;IACb,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAOvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"__package__.d.ts","sourceRoot":"","sources":["../src/__package__.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,wBAAwB,CAAC;AAC9C,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,aAAa,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class CSSEditor extends Editor {
3
- options(): any;
4
- css(): string;
5
- css(_: string): this;
6
- }
7
- //# sourceMappingURL=CSSEditor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class DOTEditor extends Editor {
3
- options(): any;
4
- dot(): string;
5
- dot(_: string): this;
6
- }
7
- //# sourceMappingURL=DOTEditor.d.ts.map
@@ -1,8 +0,0 @@
1
- import { Editor } from "./Editor";
2
- import "../src/ECLEditor.css";
3
- export declare class ECLEditor extends Editor {
4
- options(): any;
5
- ecl(): string;
6
- ecl(_: string): this;
7
- }
8
- //# sourceMappingURL=ECLEditor.d.ts.map
@@ -1,57 +0,0 @@
1
- import { HTMLWidget } from "@hpcc-js/common";
2
- import "../src/Editor.css";
3
- export interface IPosition {
4
- line: number;
5
- ch: number;
6
- }
7
- export interface ICompletion {
8
- list: string[];
9
- from: number;
10
- to: number;
11
- }
12
- export declare class Editor extends HTMLWidget {
13
- private _codemirror;
14
- private _markedText;
15
- protected _initialText: string;
16
- options(): any;
17
- private _options;
18
- option(option: string): string | number;
19
- option(option: string, value: string | number): this;
20
- guttersOption(): (string | {
21
- className: string;
22
- style: string;
23
- })[];
24
- addGutterMarker(lineNumber: number, commentText: string, backgroundColor?: string, fontFamily?: string, fontSize?: string, onmouseenter?: () => void, onmouseleave?: () => void, onclick?: (event: MouseEvent) => void): void;
25
- removeGutterMarker(lineNumber: number): void;
26
- hasFocus(): boolean;
27
- text(): string;
28
- text(_: string): this;
29
- highlight(start: IPosition | number, end: IPosition | number, className?: string): this;
30
- highlightInfo(start: IPosition | number, end: IPosition | number): this;
31
- highlightWarning(start: IPosition | number, end: IPosition | number): this;
32
- highlightError(start: IPosition | number, end: IPosition | number): this;
33
- removeAllHighlight(): this;
34
- positionAt(i: number): IPosition;
35
- getLineLength(lineNumber: number): number;
36
- highlightSubstring(str: string): void;
37
- setCursor(row: number, col: number, focus?: boolean): void;
38
- enter(domNode: any, element: any): void;
39
- update(domNode: any, Element: any): void;
40
- changes(changes: object[]): void;
41
- fetchHints(cm: any, option: any): Promise<ICompletion>;
42
- /**
43
- * @deprecated Replaced with `option`
44
- */
45
- setOption(option: string, value: any): void;
46
- }
47
- export interface Editor {
48
- readOnly(): boolean;
49
- readOnly(_: boolean): this;
50
- gutterMarkerWidth(): number;
51
- gutterMarkerWidth(_: number): this;
52
- markerTextAlign(): string;
53
- markerTextAlign(_: string): this;
54
- showHints(): boolean;
55
- showHints(_: boolean): this;
56
- }
57
- //# sourceMappingURL=Editor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class HTMLEditor extends Editor {
3
- options(): any;
4
- html(): string;
5
- html(_: string): this;
6
- }
7
- //# sourceMappingURL=HTMLEditor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class JSEditor extends Editor {
3
- options(): any;
4
- javascript(): string;
5
- javascript(_: string): this;
6
- }
7
- //# sourceMappingURL=JSEditor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class JSONEditor extends Editor {
3
- options(): any;
4
- json(): object;
5
- json(_: object): this;
6
- }
7
- //# sourceMappingURL=JSONEditor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class MarkdownEditor extends Editor {
3
- options(): any;
4
- markdown(): string;
5
- markdown(_: string): this;
6
- }
7
- //# sourceMappingURL=MarkdownEditor.d.ts.map
@@ -1,5 +0,0 @@
1
- import { MarkdownEditor } from "./MarkdownEditor";
2
- export declare class ObservableMarkdownEditor extends MarkdownEditor {
3
- options(): any;
4
- }
5
- //# sourceMappingURL=ObservableMarkdownEditor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class SQLEditor extends Editor {
3
- options(): any;
4
- sql(): string;
5
- sql(_: string): this;
6
- }
7
- //# sourceMappingURL=SQLEditor.d.ts.map
@@ -1,7 +0,0 @@
1
- import { Editor } from "./Editor";
2
- export declare class XMLEditor extends Editor {
3
- options(): any;
4
- xml(): string;
5
- xml(_: string): this;
6
- }
7
- //# sourceMappingURL=XMLEditor.d.ts.map
@@ -1,4 +0,0 @@
1
- export declare const PKG_NAME = "@hpcc-js/codemirror";
2
- export declare const PKG_VERSION = "2.64.0";
3
- export declare const BUILD_VERSION = "2.107.0";
4
- //# sourceMappingURL=__package__.d.ts.map
@@ -1,13 +0,0 @@
1
- export * from "./__package__";
2
- export * from "./CSSEditor";
3
- export * from "./DOTEditor";
4
- export * from "./ECLEditor";
5
- export * from "./Editor";
6
- export * from "./HTMLEditor";
7
- export * from "./JSEditor";
8
- export * from "./JSONEditor";
9
- export * from "./MarkdownEditor";
10
- export * from "./ObservableMarkdownEditor";
11
- export * from "./XMLEditor";
12
- export * from "./SQLEditor";
13
- //# sourceMappingURL=index.d.ts.map