@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.
@@ -1,5 +1,5 @@
1
- import { Decoration, MarkDecoration, LineDecoration, DecorationInput } from './types.ts';
2
- export { generateId } from './types.ts';
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,4 +1,4 @@
1
- import { Decoration } from './types.ts';
1
+ import { Decoration } from './types.js';
2
2
  export declare class RCDocument {
3
3
  private readonly scroll;
4
4
  constructor($documentRoot: HTMLDivElement);
@@ -1,7 +1,7 @@
1
- export { RCTextarea } from './rc-textarea.ts';
2
- export type { Decoration, DecorationInput, MarkDecoration, MarkDecorationStyle, LineDecoration, WidgetDecoration, RCTextareaPlugin, RCTextareaPluginAPI, TextPattern, LineDecoratorPlugin, Token, } from './types.ts';
3
- export { matchPatternResults } from './pattern-matcher.ts';
4
- export { createLineDecoratorPlugin } from './line-decorator.ts';
5
- export type { LineDecoratorPluginOptions } from './line-decorator.ts';
6
- export { LineActionsController } from './line-actions-controller.ts';
7
- export type { LineAction, LineActionsOptions } from './line-actions-controller.ts';
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 { RCTextareaPluginAPI, DecorationInput } from './types.ts';
1
+ import { RCTextareaPluginAPI, DecorationInput } from './types.js';
2
2
  export interface LineAction {
3
3
  /** Stable identifier used for action-set change detection. */
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { DecorationInput, LineDecoratorPlugin, RCTextareaPlugin } from './types.ts';
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,4 +1,4 @@
1
- import { TextPattern, MarkDecoration, LineDecoration } from './types.ts';
1
+ import { TextPattern, MarkDecoration, LineDecoration } from './types.js';
2
2
  export type { TextPattern };
3
3
  /**
4
4
  * Run all `patterns` against `value` and collect every match as decorations.
@@ -1,8 +1,8 @@
1
1
  import { LitElement, CSSResultGroup } from 'lit';
2
2
  import { NativeChildController } from '@rcarls/rc-common';
3
- import { RCDocument } from './document.ts';
4
- import { SavedSelection } from './selection.ts';
5
- import { Decoration, DecorationInput, RCTextareaPlugin, RCTextareaPluginAPI, TextPattern } from './types.ts';
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.5.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.5.0",
48
+ "@rcarls/rc-common": "0.6.0",
49
49
  "parchment": "^3.0.0"
50
50
  },
51
51
  "devDependencies": {