@rcarls/rc-textarea 0.4.1 → 0.5.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.
- package/CHANGELOG.md +19 -0
- package/README.md +2 -3
- package/dist/custom-elements.json +1 -58
- package/dist/{line-actions-controller-TP6g5HYk.js → line-actions-controller-CB8U0WvH.js} +112 -148
- package/dist/line-actions-controller-CB8U0WvH.js.map +1 -0
- package/dist/rc-textarea-define.js +2 -2
- package/dist/rc-textarea.js +1 -1
- package/dist/types/packages/rc-textarea/src/rc-textarea.d.ts +1 -22
- package/dist/types/packages/rc-textarea/src/types.d.ts +0 -4
- package/package.json +2 -2
- package/dist/line-actions-controller-TP6g5HYk.js.map +0 -1
- /package/dist/types/packages/rc-textarea/src/{decoration.test.d.ts → decoration.unit.test.d.ts} +0 -0
- /package/dist/types/packages/rc-textarea/src/{pattern-matcher.test.d.ts → pattern-matcher.unit.test.d.ts} +0 -0
|
@@ -50,12 +50,10 @@ interface UndoEntry {
|
|
|
50
50
|
* @csspart editor - The contenteditable field surface.
|
|
51
51
|
*
|
|
52
52
|
* @attr line-numbers - Show sequential line numbers in the gutter. Enables the gutter implicitly.
|
|
53
|
-
* @attr list-numbers - Deprecated alias for sparse line numbering; removed before v1.0.
|
|
54
53
|
* @attr gutter - Enable the gutter column without any built-in content.
|
|
55
54
|
* @attr word-wrap - Wrap long lines within the field to prevent horizontal overflow.
|
|
56
55
|
* @attr auto-grow - Allow the field to grow vertically with content to prevent vertical overflow.
|
|
57
56
|
* @attr read-only - Disable editing. The field renders as a styled read-only display.
|
|
58
|
-
* @attr label - Deprecated accessible-name override; removed before v1.0.
|
|
59
57
|
* @attr value - Current field value.
|
|
60
58
|
* @attr default-value - Initial uncontrolled value.
|
|
61
59
|
*
|
|
@@ -88,15 +86,6 @@ export declare class RCTextarea extends LitElement {
|
|
|
88
86
|
};
|
|
89
87
|
/** Show sequential line numbers in the gutter. Enables the gutter implicitly. */
|
|
90
88
|
lineNumbers: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Legacy alias for sparse (non-blank-line) list-style numbering.
|
|
93
|
-
*
|
|
94
|
-
* @deprecated Use a plugin with `LineDecoration.gutterContent` to implement
|
|
95
|
-
* sparse line numbering. This property will be removed before v1.0.
|
|
96
|
-
*/
|
|
97
|
-
get listNumbers(): boolean;
|
|
98
|
-
set listNumbers(value: boolean);
|
|
99
|
-
private _listNumbers;
|
|
100
89
|
/**
|
|
101
90
|
* Enable the gutter column without any built-in content.
|
|
102
91
|
*
|
|
@@ -110,16 +99,6 @@ export declare class RCTextarea extends LitElement {
|
|
|
110
99
|
autoGrow: boolean;
|
|
111
100
|
/** Disable editing. The field renders as a styled read-only display. */
|
|
112
101
|
readOnly: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Accessible-name override, applied to the editor's `aria-label`.
|
|
115
|
-
*
|
|
116
|
-
* @deprecated Set `aria-label` on the slotted `<textarea>` instead, or
|
|
117
|
-
* associate a `<label>` element via its `for`/`id` pair. This property
|
|
118
|
-
* will be removed before v1.0.
|
|
119
|
-
*/
|
|
120
|
-
get label(): string | null;
|
|
121
|
-
set label(value: string | null);
|
|
122
|
-
private _label;
|
|
123
102
|
/** Declarative plugin hook for framework integrations. */
|
|
124
103
|
get plugin(): RCTextareaPlugin | null;
|
|
125
104
|
/** Declarative plugin hook for framework integrations. */
|
|
@@ -265,7 +244,7 @@ export declare class RCTextarea extends LitElement {
|
|
|
265
244
|
protected _performRender(): Promise<void>;
|
|
266
245
|
/**
|
|
267
246
|
* Compute the label string for each gutter cell based on the current gutter
|
|
268
|
-
* mode (`lineNumbers`, `
|
|
247
|
+
* mode (`lineNumbers`, `gutter`) and any
|
|
269
248
|
* `LineDecoration.gutterContent` overrides in `allDecorations`.
|
|
270
249
|
*
|
|
271
250
|
* Returns one entry per line (same length as `value.split('\n')`):
|
|
@@ -255,10 +255,6 @@ export interface RCTextareaPluginAPI {
|
|
|
255
255
|
* ```
|
|
256
256
|
*/
|
|
257
257
|
parseDecorationsFromHtml(html: string): Omit<MarkDecoration, 'id'>[];
|
|
258
|
-
/**
|
|
259
|
-
* @deprecated Use `parseDecorationsFromHtml` instead.
|
|
260
|
-
*/
|
|
261
|
-
decorationsFromHtml(html: string): Omit<MarkDecoration, 'id'>[];
|
|
262
258
|
/**
|
|
263
259
|
* Convert a flat token array from an external tokenizer (lezer, tree-sitter, shiki, moo, etc.)
|
|
264
260
|
* into `DecorationInput` objects using a theme map keyed by `token.type`.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.0",
|
|
7
7
|
"description": "Textarea wrapper with line decorations, gutter rendering, inline widgets, and plugin hooks.",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:browser:firefox": "vitest --run --project=firefox"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@rcarls/rc-common": "0.
|
|
48
|
+
"@rcarls/rc-common": "0.5.0",
|
|
49
49
|
"parchment": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|