@kerebron/extension-codejar 0.4.26 → 0.4.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerebron/extension-codejar",
3
- "version": "0.4.26",
3
+ "version": "0.4.27",
4
4
  "license": "MIT",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -12,13 +12,14 @@
12
12
  }
13
13
  },
14
14
  "scripts": {},
15
+ "files": [],
15
16
  "dependencies": {
16
- "@kerebron/editor": "0.4.26",
17
- "@kerebron/extension-basic-editor": "0.4.26",
18
- "@kerebron/extension-lsp": "0.4.26",
19
- "@kerebron/extension-markdown": "0.4.26",
20
- "@kerebron/tree-sitter": "0.4.26",
21
- "@kerebron/wasm": "0.4.26",
17
+ "@kerebron/editor": "0.4.27",
18
+ "@kerebron/extension-basic-editor": "0.4.27",
19
+ "@kerebron/extension-lsp": "0.4.27",
20
+ "@kerebron/extension-markdown": "0.4.27",
21
+ "@kerebron/tree-sitter": "0.4.27",
22
+ "@kerebron/wasm": "0.4.27",
22
23
  "prosemirror-model": "1.25.3",
23
24
  "prosemirror-state": "1.4.3",
24
25
  "prosemirror-view": "1.40.0",
@@ -1,17 +0,0 @@
1
- .codejar-linenumbers-inner-wrap {
2
- position: absolute;
3
- top: 0px;
4
- left: 0px;
5
- bottom: 0px;
6
- overflow: hidden;
7
- }
8
-
9
- .codejar-linenumbers {
10
- mix-blend-mode: initial;
11
- height: 100%;
12
- }
13
-
14
- .codejar-linenumber {
15
- position: relative;
16
- top: 0px;
17
- }
@@ -1,135 +0,0 @@
1
- @import './codejar-linenumbers.css';
2
-
3
- .codejar-root {
4
- position: relative;
5
- }
6
-
7
- .codejar-root .codejar-select {
8
- right: 5px;
9
- top: 5px;
10
- position: absolute;
11
- opacity: 0;
12
- z-index: 99999;
13
- }
14
-
15
- .codejar-root:hover .codejar-select {
16
- opacity: 1;
17
- }
18
-
19
- .codejar {
20
- font-family: monospace;
21
- }
22
-
23
- /* TreeSitter */
24
-
25
- .ts-keyword {
26
- color: purple;
27
- font-weight: bold;
28
- }
29
- .ts-string {
30
- color: green;
31
- }
32
- .ts-comment {
33
- color: gray;
34
- font-style: italic;
35
- }
36
-
37
- /* Common captures */
38
- .ts-property {
39
- color: #905;
40
- } /* Property names (e.g., in objects/CSS) */
41
- .ts-function,
42
- .ts-function_call {
43
- color: #07a;
44
- } /* Functions */
45
- .ts-keyword {
46
- color: #d73;
47
- font-weight: bold;
48
- } /* Keywords like if, return */
49
- .ts-string {
50
- color: #690;
51
- } /* Strings */
52
- .ts-number {
53
- color: #099;
54
- } /* Numbers */
55
- .ts-comment {
56
- color: #998;
57
- font-style: italic;
58
- } /* Comments */
59
- .ts-perator {
60
- color: #9a6;
61
- } /* Operators like + - = */
62
- .ts-type {
63
- color: #458;
64
- font-weight: bold;
65
- } /* Types */
66
- .ts-variable {
67
- color: #333;
68
- } /* Variables */
69
- .ts-constant,
70
- .ts-constant_builtin {
71
- color: #0086b3;
72
- } /* Constants */
73
- .ts-punctuation,
74
- .ts-punctuation_bracket {
75
- color: #999;
76
- } /* Brackets, commas */
77
- .ts-namespace {
78
- color: #000;
79
- font-weight: bold;
80
- }
81
-
82
- /* More specific ones */
83
- .ts-function_builtin {
84
- color: #d73;
85
- }
86
- .ts-keyword_operator {
87
- color: #d73;
88
- }
89
- .ts-string_special {
90
- color: #d44;
91
- } /* e.g., regex */
92
- .ts-tag {
93
- color: #008080;
94
- } /* HTML/XML tags */
95
- .ts-attribute {
96
- color: #e90;
97
- } /* Attributes */
98
-
99
- @media (prefers-color-scheme: dark) {
100
- /* Dark mode adjustments */
101
- .ts-property {
102
- color: #9cdcfe;
103
- }
104
- .ts-function {
105
- color: #dcdcaa;
106
- }
107
- .ts-keyword {
108
- color: #c586c0;
109
- }
110
- .ts-string {
111
- color: #ce9178;
112
- }
113
- .ts-number {
114
- color: #b5cea8;
115
- }
116
- .ts-comment {
117
- color: #6a9955;
118
- }
119
- .ts-operator {
120
- color: #d4d4d4;
121
- }
122
- .ts-type {
123
- color: #4ec9b0;
124
- }
125
- .ts-constant {
126
- color: #4fc1ff;
127
- }
128
- }
129
-
130
- .ts-diff_plus {
131
- color: green;
132
- }
133
- .ts-diff_minus {
134
- color: red;
135
- }
package/esm/CodeJar.d.ts DELETED
@@ -1,51 +0,0 @@
1
- import * as dntShim from "./_dnt.shims.js";
2
- type Options = {
3
- tab: string;
4
- indentOn: RegExp;
5
- moveToNewLine: RegExp;
6
- spellcheck: boolean;
7
- catchTab: boolean;
8
- preserveIdent: boolean;
9
- addClosing: boolean;
10
- history: boolean;
11
- readOnly?: boolean;
12
- window: typeof dntShim.dntGlobalThis;
13
- autoclose: {
14
- open: string;
15
- close: string;
16
- };
17
- };
18
- type HistoryRecord = {
19
- html: string;
20
- pos: Position;
21
- };
22
- export type Position = {
23
- start: number;
24
- end: number;
25
- dir?: '->' | '<-';
26
- };
27
- export declare class CodeJar extends EventTarget {
28
- private editor;
29
- private highlight;
30
- options: Options;
31
- listeners: [string, any][];
32
- history: HistoryRecord[];
33
- at: number;
34
- onUpdateCbk: (code: string) => void | undefined;
35
- focus: boolean;
36
- prev: string | undefined;
37
- constructor(editor: HTMLElement, highlight: (e: HTMLElement, pos?: Position) => void, opt?: Partial<Options>);
38
- getSelection(): Selection;
39
- private doHighlight;
40
- private uneditable;
41
- toString(): any;
42
- updateOptions(newOptions: Partial<Options>): void;
43
- updateCode(code: string, callOnUpdate?: boolean): void;
44
- onUpdate(callback: (code: string) => void): void;
45
- save(): Position | undefined;
46
- restore(pos: Position): void;
47
- recordHistory(): void;
48
- destroy(): void;
49
- }
50
- export {};
51
- //# sourceMappingURL=CodeJar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeJar.d.ts","sourceRoot":"","sources":["../src/CodeJar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C,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