@rcarls/rc-textarea 0.4.2 → 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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @rcarls/rc-textarea
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 985067e: Allow `rc-textarea` to shrink below its intrinsic content width so `word-wrap`
8
+ wraps long, unbroken lines inside narrow grid and flex layouts instead of
9
+ forcing the consumer layout to overflow.
10
+ - 57370e4: Align component metadata, aggregate framework typings, development-time native-child
11
+ validation, controlled menu state, package declarations, and public documentation before the
12
+ next release.
13
+ - Updated dependencies [6683eb9]
14
+ - Updated dependencies [ee7ba6c]
15
+ - Updated dependencies [30eb232]
16
+ - @rcarls/rc-common@0.6.0
17
+
18
+ ## 0.5.0
19
+
20
+ ### Minor Changes
21
+
22
+ - 689340c: Remove pre-1.0 deprecated APIs: the boolean `keyNavigation` option, `rc-disclosure.fragment`,
23
+ `rc-textarea.listNumbers`, `rc-textarea.label`, and `decorationsFromHtml`.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [4ae2ef0]
28
+ - Updated dependencies [689340c]
29
+ - @rcarls/rc-common@0.5.0
30
+
3
31
  ## 0.4.2
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -93,9 +93,8 @@ When the user edits, the slotted textarea is kept in sync and dispatches a nativ
93
93
  | `auto-grow` | `autoGrow` | Let the field grow vertically with content. |
94
94
  | `read-only` | `readOnly` | Render selectable, non-editable content. |
95
95
 
96
- `list-numbers` and `label` still exist for compatibility but are deprecated. Prefer a plugin
97
- with `LineDecoration.gutterContent` for sparse numbering, and put accessible names on the
98
- slotted textarea with `aria-label` or a real `<label for="...">`.
96
+ Use a plugin with `LineDecoration.gutterContent` for sparse numbering. Put accessible names on
97
+ the slotted textarea with `aria-label` or a real `<label for="...">`.
99
98
 
100
99
  The main JavaScript-only properties are:
101
100
 
@@ -169,7 +169,7 @@
169
169
  "name": "generateId",
170
170
  "declaration": {
171
171
  "name": "generateId",
172
- "module": "./types.ts"
172
+ "module": "./types.js"
173
173
  }
174
174
  },
175
175
  {
@@ -363,7 +363,7 @@
363
363
  "name": "RCTextarea",
364
364
  "declaration": {
365
365
  "name": "RCTextarea",
366
- "module": "./rc-textarea.ts"
366
+ "module": "./rc-textarea.js"
367
367
  }
368
368
  },
369
369
  {
@@ -371,7 +371,7 @@
371
371
  "name": "Decoration",
372
372
  "declaration": {
373
373
  "name": "Decoration",
374
- "module": "./types.ts"
374
+ "module": "./types.js"
375
375
  }
376
376
  },
377
377
  {
@@ -379,7 +379,7 @@
379
379
  "name": "DecorationInput",
380
380
  "declaration": {
381
381
  "name": "DecorationInput",
382
- "module": "./types.ts"
382
+ "module": "./types.js"
383
383
  }
384
384
  },
385
385
  {
@@ -387,7 +387,7 @@
387
387
  "name": "MarkDecoration",
388
388
  "declaration": {
389
389
  "name": "MarkDecoration",
390
- "module": "./types.ts"
390
+ "module": "./types.js"
391
391
  }
392
392
  },
393
393
  {
@@ -395,7 +395,7 @@
395
395
  "name": "MarkDecorationStyle",
396
396
  "declaration": {
397
397
  "name": "MarkDecorationStyle",
398
- "module": "./types.ts"
398
+ "module": "./types.js"
399
399
  }
400
400
  },
401
401
  {
@@ -403,7 +403,7 @@
403
403
  "name": "LineDecoration",
404
404
  "declaration": {
405
405
  "name": "LineDecoration",
406
- "module": "./types.ts"
406
+ "module": "./types.js"
407
407
  }
408
408
  },
409
409
  {
@@ -411,7 +411,7 @@
411
411
  "name": "WidgetDecoration",
412
412
  "declaration": {
413
413
  "name": "WidgetDecoration",
414
- "module": "./types.ts"
414
+ "module": "./types.js"
415
415
  }
416
416
  },
417
417
  {
@@ -419,7 +419,7 @@
419
419
  "name": "RCTextareaPlugin",
420
420
  "declaration": {
421
421
  "name": "RCTextareaPlugin",
422
- "module": "./types.ts"
422
+ "module": "./types.js"
423
423
  }
424
424
  },
425
425
  {
@@ -427,7 +427,7 @@
427
427
  "name": "RCTextareaPluginAPI",
428
428
  "declaration": {
429
429
  "name": "RCTextareaPluginAPI",
430
- "module": "./types.ts"
430
+ "module": "./types.js"
431
431
  }
432
432
  },
433
433
  {
@@ -435,7 +435,7 @@
435
435
  "name": "TextPattern",
436
436
  "declaration": {
437
437
  "name": "TextPattern",
438
- "module": "./types.ts"
438
+ "module": "./types.js"
439
439
  }
440
440
  },
441
441
  {
@@ -443,7 +443,7 @@
443
443
  "name": "LineDecoratorPlugin",
444
444
  "declaration": {
445
445
  "name": "LineDecoratorPlugin",
446
- "module": "./types.ts"
446
+ "module": "./types.js"
447
447
  }
448
448
  },
449
449
  {
@@ -451,7 +451,7 @@
451
451
  "name": "Token",
452
452
  "declaration": {
453
453
  "name": "Token",
454
- "module": "./types.ts"
454
+ "module": "./types.js"
455
455
  }
456
456
  },
457
457
  {
@@ -459,7 +459,7 @@
459
459
  "name": "matchPatternResults",
460
460
  "declaration": {
461
461
  "name": "matchPatternResults",
462
- "module": "./pattern-matcher.ts"
462
+ "module": "./pattern-matcher.js"
463
463
  }
464
464
  },
465
465
  {
@@ -467,7 +467,7 @@
467
467
  "name": "createLineDecoratorPlugin",
468
468
  "declaration": {
469
469
  "name": "createLineDecoratorPlugin",
470
- "module": "./line-decorator.ts"
470
+ "module": "./line-decorator.js"
471
471
  }
472
472
  },
473
473
  {
@@ -475,7 +475,7 @@
475
475
  "name": "LineDecoratorPluginOptions",
476
476
  "declaration": {
477
477
  "name": "LineDecoratorPluginOptions",
478
- "module": "./line-decorator.ts"
478
+ "module": "./line-decorator.js"
479
479
  }
480
480
  },
481
481
  {
@@ -483,7 +483,7 @@
483
483
  "name": "LineActionsController",
484
484
  "declaration": {
485
485
  "name": "LineActionsController",
486
- "module": "./line-actions-controller.ts"
486
+ "module": "./line-actions-controller.js"
487
487
  }
488
488
  },
489
489
  {
@@ -491,7 +491,7 @@
491
491
  "name": "LineAction",
492
492
  "declaration": {
493
493
  "name": "LineAction",
494
- "module": "./line-actions-controller.ts"
494
+ "module": "./line-actions-controller.js"
495
495
  }
496
496
  },
497
497
  {
@@ -499,7 +499,7 @@
499
499
  "name": "LineActionsOptions",
500
500
  "declaration": {
501
501
  "name": "LineActionsOptions",
502
- "module": "./line-actions-controller.ts"
502
+ "module": "./line-actions-controller.js"
503
503
  }
504
504
  }
505
505
  ]
@@ -973,26 +973,6 @@
973
973
  "attribute": "line-numbers",
974
974
  "reflects": true
975
975
  },
976
- {
977
- "kind": "field",
978
- "name": "listNumbers",
979
- "type": {
980
- "text": "boolean"
981
- },
982
- "description": "Legacy alias for sparse (non-blank-line) list-style numbering.",
983
- "deprecated": "Use a plugin with `LineDecoration.gutterContent` to implement\nsparse line numbering. This property will be removed before v1.0.",
984
- "attribute": "list-numbers",
985
- "reflects": true
986
- },
987
- {
988
- "kind": "field",
989
- "name": "_listNumbers",
990
- "type": {
991
- "text": "boolean"
992
- },
993
- "privacy": "private",
994
- "default": "false"
995
- },
996
976
  {
997
977
  "kind": "field",
998
978
  "name": "gutter",
@@ -1037,25 +1017,6 @@
1037
1017
  "attribute": "read-only",
1038
1018
  "reflects": true
1039
1019
  },
1040
- {
1041
- "kind": "field",
1042
- "name": "label",
1043
- "type": {
1044
- "text": "string | null"
1045
- },
1046
- "description": "Accessible-name override, applied to the editor's `aria-label`.",
1047
- "deprecated": "Set `aria-label` on the slotted `<textarea>` instead, or\nassociate a `<label>` element via its `for`/`id` pair. This property\nwill be removed before v1.0.",
1048
- "attribute": "label"
1049
- },
1050
- {
1051
- "kind": "field",
1052
- "name": "_label",
1053
- "type": {
1054
- "text": "string | null"
1055
- },
1056
- "privacy": "private",
1057
- "default": "null"
1058
- },
1059
1020
  {
1060
1021
  "kind": "field",
1061
1022
  "name": "plugin",
@@ -1723,7 +1684,7 @@
1723
1684
  "default": "this._value"
1724
1685
  }
1725
1686
  ],
1726
- "description": "Compute the label string for each gutter cell based on the current gutter\nmode (`lineNumbers`, `listNumbers` (deprecated), `gutter`) and any\n`LineDecoration.gutterContent` overrides in `allDecorations`.\n\nReturns one entry per line (same length as `value.split('\\n')`):\n- `string` — the label to display\n- `null` — render an empty cell"
1687
+ "description": "Compute the label string for each gutter cell based on the current gutter\nmode (`lineNumbers`, `gutter`) and any\n`LineDecoration.gutterContent` overrides in `allDecorations`.\n\nReturns one entry per line (same length as `value.split('\\n')`):\n- `string` — the label to display\n- `null` — render an empty cell"
1727
1688
  },
1728
1689
  {
1729
1690
  "kind": "method",
@@ -1824,7 +1785,8 @@
1824
1785
  "name": "rc-textarea-focus",
1825
1786
  "type": {
1826
1787
  "text": "CustomEvent"
1827
- }
1788
+ },
1789
+ "description": "Fired when the field gains focus"
1828
1790
  },
1829
1791
  {
1830
1792
  "name": "rc-textarea-blur",
@@ -1839,6 +1801,10 @@
1839
1801
  "text": "CustomEvent"
1840
1802
  },
1841
1803
  "description": "Fired when the field value changes"
1804
+ },
1805
+ {
1806
+ "description": "Fired when the selection changes while the editor is focused",
1807
+ "name": "rc-textarea-select"
1842
1808
  }
1843
1809
  ],
1844
1810
  "attributes": [
@@ -1851,15 +1817,6 @@
1851
1817
  "default": "false",
1852
1818
  "fieldName": "lineNumbers"
1853
1819
  },
1854
- {
1855
- "description": "Legacy alias for sparse (non-blank-line) list-style numbering.",
1856
- "name": "list-numbers",
1857
- "type": {
1858
- "text": "boolean"
1859
- },
1860
- "deprecated": "Use a plugin with `LineDecoration.gutterContent` to implement\nsparse line numbering. This property will be removed before v1.0.",
1861
- "fieldName": "listNumbers"
1862
- },
1863
1820
  {
1864
1821
  "description": "Enable the gutter column without any built-in content.\n\nPlugins can populate individual cells via `LineDecoration.gutterContent`.\nFor sequential line numbers use `lineNumbers` / `line-numbers` instead.",
1865
1822
  "name": "gutter",
@@ -1896,15 +1853,6 @@
1896
1853
  "default": "false",
1897
1854
  "fieldName": "readOnly"
1898
1855
  },
1899
- {
1900
- "description": "Accessible-name override, applied to the editor's `aria-label`.",
1901
- "name": "label",
1902
- "type": {
1903
- "text": "string | null"
1904
- },
1905
- "deprecated": "Set `aria-label` on the slotted `<textarea>` instead, or\nassociate a `<label>` element via its `for`/`id` pair. This property\nwill be removed before v1.0.",
1906
- "fieldName": "label"
1907
- },
1908
1856
  {
1909
1857
  "description": "The current field value.\n\nSetting this property puts the component into\ncontrolled mode (host owns the value, changes are reflected\nimmediately, no change events dispatched)",
1910
1858
  "name": "value",