@rcarls/rc-textarea 0.5.0 → 0.6.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 +15 -0
- package/dist/custom-elements.json +25 -20
- package/dist/{line-actions-controller-CB8U0WvH.js → line-actions-controller-BcsnmSPS.js} +7 -2
- package/dist/line-actions-controller-BcsnmSPS.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/blots.d.ts +1 -1
- package/dist/types/packages/rc-textarea/src/decoration.d.ts +2 -2
- package/dist/types/packages/rc-textarea/src/document.d.ts +1 -1
- package/dist/types/packages/rc-textarea/src/index.d.ts +7 -7
- package/dist/types/packages/rc-textarea/src/line-actions-controller.d.ts +1 -1
- package/dist/types/packages/rc-textarea/src/line-decorator.d.ts +1 -1
- package/dist/types/packages/rc-textarea/src/pattern-matcher.d.ts +1 -1
- package/dist/types/packages/rc-textarea/src/rc-textarea.d.ts +5 -3
- package/package.json +2 -2
- package/dist/line-actions-controller-CB8U0WvH.js.map +0 -1
- package/dist/types/packages/rc-textarea/src/decoration.unit.test.d.ts +0 -1
- package/dist/types/packages/rc-textarea/src/line-decorator.test.d.ts +0 -1
- package/dist/types/packages/rc-textarea/src/pattern-matcher.unit.test.d.ts +0 -1
- package/dist/types/packages/rc-textarea/src/rc-textarea.test.d.ts +0 -0
- package/dist/types/packages/rc-textarea/src/test-helpers.d.ts +0 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Decoration, MarkDecoration, LineDecoration, DecorationInput } from './types.
|
|
2
|
-
export { generateId } from './types.
|
|
1
|
+
import { Decoration, MarkDecoration, LineDecoration, DecorationInput } from './types.js';
|
|
2
|
+
export { generateId } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* The minimal description of a single contiguous edit:
|
|
5
5
|
* a deletion of `removed` characters at `start`, followed by an insertion of
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { RCTextarea } from './rc-textarea.
|
|
2
|
-
export type { Decoration, DecorationInput, MarkDecoration, MarkDecorationStyle, LineDecoration, WidgetDecoration, RCTextareaPlugin, RCTextareaPluginAPI, TextPattern, LineDecoratorPlugin, Token, } from './types.
|
|
3
|
-
export { matchPatternResults } from './pattern-matcher.
|
|
4
|
-
export { createLineDecoratorPlugin } from './line-decorator.
|
|
5
|
-
export type { LineDecoratorPluginOptions } from './line-decorator.
|
|
6
|
-
export { LineActionsController } from './line-actions-controller.
|
|
7
|
-
export type { LineAction, LineActionsOptions } from './line-actions-controller.
|
|
1
|
+
export { RCTextarea } from './rc-textarea.js';
|
|
2
|
+
export type { Decoration, DecorationInput, MarkDecoration, MarkDecorationStyle, LineDecoration, WidgetDecoration, RCTextareaPlugin, RCTextareaPluginAPI, TextPattern, LineDecoratorPlugin, Token, } from './types.js';
|
|
3
|
+
export { matchPatternResults } from './pattern-matcher.js';
|
|
4
|
+
export { createLineDecoratorPlugin } from './line-decorator.js';
|
|
5
|
+
export type { LineDecoratorPluginOptions } from './line-decorator.js';
|
|
6
|
+
export { LineActionsController } from './line-actions-controller.js';
|
|
7
|
+
export type { LineAction, LineActionsOptions } from './line-actions-controller.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecorationInput, LineDecoratorPlugin, RCTextareaPlugin } from './types.
|
|
1
|
+
import { DecorationInput, LineDecoratorPlugin, RCTextareaPlugin } from './types.js';
|
|
2
2
|
export interface LineDecoratorPluginOptions {
|
|
3
3
|
/**
|
|
4
4
|
* An array of subscriber setup functions for (e.g., reactive
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
2
|
import { NativeChildController } from '@rcarls/rc-common';
|
|
3
|
-
import { RCDocument } from './document.
|
|
4
|
-
import { SavedSelection } from './selection.
|
|
5
|
-
import { Decoration, DecorationInput, RCTextareaPlugin, RCTextareaPluginAPI, TextPattern } from './types.
|
|
3
|
+
import { RCDocument } from './document.js';
|
|
4
|
+
import { SavedSelection } from './selection.js';
|
|
5
|
+
import { Decoration, DecorationInput, RCTextareaPlugin, RCTextareaPluginAPI, TextPattern } from './types.js';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
8
8
|
'rc-textarea': RCTextarea;
|
|
@@ -41,7 +41,9 @@ interface UndoEntry {
|
|
|
41
41
|
* @slot - Accepts a native `<textarea>` element for form wiring.
|
|
42
42
|
*
|
|
43
43
|
* @fires rc-textarea-change - Fired when the field value changes
|
|
44
|
+
* @fires rc-textarea-focus - Fired when the field gains focus
|
|
44
45
|
* @fires rc-textarea-blur - Fired when the field loses focus
|
|
46
|
+
* @fires rc-textarea-select - Fired when the selection changes while the editor is focused
|
|
45
47
|
*
|
|
46
48
|
* @csspart root - The outer flex container wrapping the gutter and editor area.
|
|
47
49
|
* @csspart gutter - The gutter column container.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.6.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.6.0",
|
|
49
49
|
"parchment": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|