@rcarls/rc-markdown-editor 0.6.0 → 0.7.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,216 @@
1
1
  # @rcarls/rc-markdown-editor
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 079e025: Standardize component styling contracts for the breaking 0.7 release.
8
+
9
+ BREAKING CHANGE: Rename the Markdown editor's `--rme-*` properties to
10
+ `--rc-markdown-editor-*`, `--rc-app-bar-background` to `--rc-app-bar-bg`,
11
+ `--rc-textarea-radius` to `--rc-textarea-border-radius`, the transfer-list
12
+ `--rc-transfer-list-panel-*` properties to `--rc-transfer-list-listbox-*`,
13
+ `--rc-chip-group-webkit-scrollbar-display` to
14
+ `--rc-chip-group-scrollbar-display`, and `--rc-text` to `--rc-field-text`.
15
+ Compatibility aliases are intentionally not provided.
16
+
17
+ BREAKING CHANGE: Replace `--rc-select-chip-padding-inline` and
18
+ `--rc-combobox-chip-padding-inline` with explicit `*-padding-inline-start` and
19
+ `*-padding-inline-end` tokens. Generated removable chips now reserve the full
20
+ remove target and its edge offset, so their indicator cannot overlap label text.
21
+
22
+ Add canonical app-bar elevation, transfer-list listbox radius, and textarea
23
+ line-action tokens. Add logical `rc-chip` inline-padding properties so themes
24
+ can implement Material's icon-aware spacing without overriding authored child
25
+ styles. Make `rc-field` consume the shared semantic token layer,
26
+ and place the `rc-chip` and `rc-search-bar` light-DOM structural styles in the
27
+ `rc-base` cascade layer so normal consumer rules override them.
28
+
29
+ Prevent decorative, `aria-hidden` trailing list content from intercepting a
30
+ whole-row action target, and keep segmented-list item geometry from leaking
31
+ into nested standard lists.
32
+
33
+ Remove unused Material navigation-rail toggle tokens and obsolete list-item
34
+ theme tokens. Register the segmented-button private theme seam and enforce
35
+ token ownership, documentation, removed-name, selector-budget, and cascade
36
+ layer contracts through the component architecture audit.
37
+
38
+ - 54d9ead: Localize every component's built-in text. Button names, role
39
+ descriptions, announcements, and default labels now resolve per key from
40
+ the element's `messages` property, then from text registered with
41
+ `registerMessages(locale, catalog)` in `@rcarls/rc-common`, then from the
42
+ English defaults. The locale is the element's own `lang`, else
43
+ `<html lang>`; an ancestor's `lang` is ignored, because it usually marks
44
+ content rather than the interface. Components re-render when that locale
45
+ changes or new text is registered. `RcMessageCatalog` types the catalog,
46
+ and each package adds its scope to it.
47
+
48
+ Numbers a component formats as text follow the same locale:
49
+ `rc-progress`'s default percentage and `rc-splitter`'s `aria-valuetext`
50
+ use `Intl.NumberFormat`. `TypeaheadController` matches prefixes with an
51
+ `Intl.Collator`, so case and accents are ignored the way the locale
52
+ ignores them, and takes a `locale` option. `ItemsCollectionController`'s
53
+ `setCreateOption(text, label?)` takes the option's visible text from its
54
+ caller.
55
+
56
+ `rc-transfer-list`'s direction arrows are now decorative: screen readers
57
+ read only the action name, and the arrows turn over in RTL.
58
+
59
+ **Breaking:** chrome-text properties are replaced by `messages`. Migrate:
60
+
61
+ - `rc-search-bar` `clear-label` / `clearLabel` → `messages.clear`
62
+ - `rc-adaptive-menu` `overflow-label` / `overflowLabel` → `messages.overflow`
63
+ - `rc-chip-group` `show-all-label` / `showAllLabel` and `show-less-label` /
64
+ `showLessLabel` → `messages.showAll` and `messages.showLess`
65
+ - `rc-select` and `rc-combobox` `dialog-confirm-label` /
66
+ `dialogConfirmLabel` and `dialog-cancel-label` / `dialogCancelLabel` →
67
+ `messages.done` and `messages.cancel`
68
+ - `rc-editor-toolbar` `label` → `messages.toolbar`
69
+
70
+ Per-instance names stay attributes, but now default to `undefined` and fall
71
+ back to a message: `label` on `rc-adaptive-menu`, `rc-chip-group`,
72
+ `rc-menubar`, and `rc-splitter`; `available-label` and `selected-label`
73
+ on `rc-transfer-list`; `low-label` and `high-label` on `rc-range-slider`.
74
+ Read the resolved name from the rendered `aria-label` instead of the
75
+ property.
76
+
77
+ - 3325191: **Breaking:** take `rc-textarea`'s read-only state from the slotted `<textarea readonly>` and
78
+ remove the `read-only` attribute and its display styling without border or padding. A read-only
79
+ editor keeps the enabled field appearance, stays focusable and selectable, announces `aria-
80
+ readonly` with the native control's label, and rejects edits. The host reflects `data-readonly`,
81
+ and `readOnly` is now a getter. The plugin `transform()` hook runs while the textarea is
82
+ `readonly`.
83
+
84
+ `rc-markdown-editor` passes its `read-only` state to a native textarea in its source editor.
85
+ Material and Substrate fields skip the hover affordance for a read-only control and keep its
86
+ focus indicator.
87
+
88
+ Migration: replace `<rc-textarea read-only>` with `readonly` on the slotted textarea, for
89
+ example `<rc-textarea><textarea aria-label="Notes" readonly></textarea></rc-textarea>`. Replace
90
+ `editor.readOnly = value` with `textarea.readOnly = value`. Read-only content that is not a form
91
+ value belongs in ordinary text or list markup instead.
92
+
93
+ ### Patch Changes
94
+
95
+ - 5c006de: Ship component CSS minified. Package builds now run the CSS in Lit `css` styles
96
+ and light-DOM structural styles through Lightning CSS, removing comments and
97
+ whitespace while keeping source maps that resolve to each template. Rendered
98
+ styles are unchanged.
99
+
100
+ `@rcarls/rc-common` adds `cssText`, an identity tag that marks a plain CSS
101
+ string for minification. `rc-chip`, `rc-disclosure`, and `rc-accordion` now
102
+ depend on `@rcarls/rc-common` for it.
103
+
104
+ - ec6ebc6: Load dialog move and resize behavior on demand. `rc-dialog` now imports its
105
+ drag and resize controllers only the first time `movable`, `move-handle`, or
106
+ `resize` enables them, so dialogs that never move or resize, including the
107
+ popups inside `rc-select`, `rc-combobox`, and `rc-markdown-editor`, no longer
108
+ ship that code. The new `@rcarls/rc-dialog/geometry` entry exports
109
+ `DialogGeometry` for subclasses that always resize; `rc-bottom-sheet` uses it,
110
+ so its resize stays available immediately.
111
+
112
+ Breaking changes and migration:
113
+
114
+ - `rc-dialog` and `rc-bottom-sheet` remove `light-dismiss` / `lightDismiss`.
115
+ Use `closed-by="any"`, which closes on Escape or a backdrop click and now
116
+ falls back to a backdrop click listener where the browser has no native
117
+ `closedby`.
118
+ - `rc-bottom-sheet` now defaults `closed-by` to `any` instead of defaulting
119
+ `light-dismiss` to true. Set `closed-by="closerequest"` to keep backdrop
120
+ clicks from closing a sheet, or `closed-by="none"` to allow only explicit
121
+ actions.
122
+
123
+ - b764a3c: Observe interface locale changes through containing shadow roots and the host's own document.
124
+ An explicit empty `lang` now means an unknown locale rather than falling back to `<html lang>`.
125
+ Typeahead compares complete grapheme prefixes, including decomposed accents and collation
126
+ expansions. Default interpolating messages format numeric positions in the interface locale
127
+ while translation callbacks continue to receive numbers and can accept an optional locale.
128
+ Default messages isolate consumer text whose direction is unknown. Textarea content direction
129
+ uses the native LTR fallback for neutral `dir="auto"` content, recognizes Arabic Letter Mark and
130
+ isolate controls, and reruns plugins when the native textarea's `lang` or `dir` changes.
131
+ - cc0205d: Use logical CSS properties so layout follows the reading direction and
132
+ writing mode: the textarea gutter border and alignment, line-action and
133
+ diagnostic-message spacing, the markdown editor's block quote and list
134
+ indents, and block-axis scrolling for listbox, select, combobox, and markdown
135
+ panes, each keeping its physical declaration as a fallback.
136
+ - bdb8753: Position link popovers from selection viewport measurements in the popover's
137
+ local CSS pixels under zoom, including right-edge alignment in RTL.
138
+ - 253ba66: Correct package dependency declarations and prevent bundled Markdown implementation types from
139
+ leaking into the editor declarations.
140
+
141
+ BREAKING CHANGE: `@rcarls/rc-textarea-adapters` now treats `@rcarls/rc-textarea` as a peer instead
142
+ of installing it as a runtime dependency. Both textarea extension packages require a compatible
143
+ pre-1 `@rcarls/rc-textarea` release; install it alongside either extension package when upgrading.
144
+
145
+ - 50c0657: Align the line-actions popover and the markdown editor's link popover to the
146
+ inline start of what they belong to, so they sit under the right edge in RTL
147
+ instead of the left.
148
+ - f0d0fba: Load the select dialog popup and selected-value chips on first use.
149
+ `rc-select` and `rc-combobox` now import `rc-dialog` only for
150
+ `popup-mode="dialog"` and `rc-chip-group` only for `multiple`, so a popover
151
+ single select ships neither. The markdown editor toolbar picks the heading level
152
+ with a native `<select>`, styled by the existing
153
+ `--rc-markdown-editor-toolbar-select-*` properties, and no longer depends on
154
+ `rc-select`.
155
+
156
+ Breaking change and migration:
157
+
158
+ - Importing `@rcarls/rc-select/define` or `@rcarls/rc-combobox/define` no
159
+ longer registers `rc-dialog`, `rc-chip-group`, or `rc-chip`. Import their own
160
+ `define` entries where the page uses those elements directly.
161
+
162
+ - Updated dependencies [e3dfa59]
163
+ - Updated dependencies [50d5610]
164
+ - Updated dependencies [9ee769c]
165
+ - Updated dependencies [1179f24]
166
+ - Updated dependencies [9f590f2]
167
+ - Updated dependencies [fbf240b]
168
+ - Updated dependencies [595fe37]
169
+ - Updated dependencies [38cd00c]
170
+ - Updated dependencies [5c006de]
171
+ - Updated dependencies [079e025]
172
+ - Updated dependencies [a6553ff]
173
+ - Updated dependencies [2205478]
174
+ - Updated dependencies [4341311]
175
+ - Updated dependencies [899bb5e]
176
+ - Updated dependencies [25fcfe0]
177
+ - Updated dependencies [51f6403]
178
+ - Updated dependencies [9caca6b]
179
+ - Updated dependencies [b764a3c]
180
+ - Updated dependencies [cc0205d]
181
+ - Updated dependencies [54d9ead]
182
+ - Updated dependencies [b9175e9]
183
+ - Updated dependencies [c8b762b]
184
+ - Updated dependencies [55e1e7f]
185
+ - Updated dependencies [50c0657]
186
+ - Updated dependencies [f1ca82d]
187
+ - Updated dependencies [b87f27b]
188
+ - Updated dependencies [32ebead]
189
+ - Updated dependencies [bfefedd]
190
+ - Updated dependencies [c130173]
191
+ - Updated dependencies [11680b6]
192
+ - Updated dependencies [223d36c]
193
+ - Updated dependencies [7b91a44]
194
+ - Updated dependencies [aa04ead]
195
+ - Updated dependencies [ac65b5b]
196
+ - Updated dependencies [afcfef8]
197
+ - Updated dependencies [905083b]
198
+ - Updated dependencies [6b99ced]
199
+ - Updated dependencies [8387c20]
200
+ - Updated dependencies [c328259]
201
+ - Updated dependencies [f1433a9]
202
+ - Updated dependencies [d3fc2f3]
203
+ - Updated dependencies [3325191]
204
+ - Updated dependencies [4617b45]
205
+ - Updated dependencies [0e2d878]
206
+ - Updated dependencies [54067cc]
207
+ - Updated dependencies [57d6371]
208
+ - Updated dependencies [11ef1ad]
209
+ - @rcarls/rc-common@0.7.0
210
+ - @rcarls/rc-button@0.7.0
211
+ - @rcarls/rc-textarea@0.7.0
212
+ - @rcarls/rc-toolbar@0.7.0
213
+
3
214
  ## 0.6.0
4
215
 
5
216
  ### Patch Changes
package/README.md CHANGED
@@ -6,6 +6,14 @@ Docs: [https://richardcarls.github.io/rc-webcomponents/components/rc-markdown-ed
6
6
 
7
7
  Part of the [rc-webcomponents](https://github.com/richardcarls/rc-webcomponents) library.
8
8
 
9
+ ## Localization
10
+
11
+ Built-in text follows the element's own `lang`, else `<html lang>`, and never an
12
+ ancestor's `lang`, which usually marks content. Override it per element with the
13
+ `messages` property, or for every instance with `registerMessages()` from
14
+ `@rcarls/rc-common` under `rc-markdown-editor`. Keys: `source`, `linkPopover`, `url`, `applyLink`, `openLink`, `removeLink`, `shortcut`. The toolbar resolves `rc-editor-toolbar` (`toolbar`, `bold`, `heading`, and the other button names) and takes the editor's `lang`. See the
15
+ [rc-common Localization section](https://github.com/richardcarls/rc-webcomponents/tree/develop/packages/rc-common#localization).
16
+
9
17
  ## Documentation
10
18
 
11
19
  Full API, usage examples, and keyboard/accessibility notes are on the
@@ -43,21 +43,21 @@
43
43
  "type": {
44
44
  "text": "string"
45
45
  },
46
- "description": "Full source editor value."
46
+ "description": "full source editor value"
47
47
  },
48
48
  {
49
49
  "name": "selectionStart",
50
50
  "type": {
51
51
  "text": "number"
52
52
  },
53
- "description": "Cursor offset used to locate the containing fence."
53
+ "description": "cursor offset used to locate the containing fence"
54
54
  },
55
55
  {
56
56
  "name": "language",
57
57
  "type": {
58
58
  "text": "string"
59
59
  },
60
- "description": "Language string to write (empty string removes the token)."
60
+ "description": "language string to write (empty string removes the token)"
61
61
  }
62
62
  ],
63
63
  "description": "Replaces the language token on the opening fence of the code block containing\n`selectionStart`. Returns the updated string, or `null` if the cursor is not\ninside a fenced code block."
@@ -203,20 +203,32 @@
203
203
  "kind": "javascript-module",
204
204
  "path": "src/rc-editor-toolbar.ts",
205
205
  "declarations": [
206
+ {
207
+ "kind": "variable",
208
+ "name": "DEFAULT_EDITOR_TOOLBAR_MESSAGES",
209
+ "type": {
210
+ "text": "Readonly<RCEditorToolbarMessages>"
211
+ }
212
+ },
206
213
  {
207
214
  "kind": "class",
208
- "description": "Formatting toolbar for `<rc-markdown-editor>`. Renders themed `rc-button`,\n`rc-select`, and `rc-toolbar` controls into its own light DOM so the parent\neditor can provide their shared appearance.\n\nActive-format properties are set by the parent editor and reflected as\n`aria-pressed` on the corresponding buttons. Heading level is shown via an\n`<rc-select>`. Code-block language is shown via a `<input>` when active.",
215
+ "description": "Formatting toolbar for `<rc-markdown-editor>`. Renders themed `rc-button` and\n`rc-toolbar` controls into its own light DOM so the parent editor can provide\ntheir shared appearance.\n\nActive-format properties are set by the parent editor and reflected as\n`aria-pressed` on the corresponding buttons. Heading level is shown via a\nnative `<select>`. Code-block language is shown via a `<input>` when active.",
209
216
  "name": "RcEditorToolbar",
210
217
  "members": [
211
218
  {
212
219
  "kind": "field",
213
- "name": "label",
220
+ "name": "messages",
214
221
  "type": {
215
- "text": "string"
222
+ "text": "Partial<RCEditorToolbarMessages> | undefined"
216
223
  },
217
- "default": "'Formatting'",
218
- "description": "Accessible label applied to the `rc-toolbar` container.",
219
- "attribute": "label"
224
+ "description": "Built-in text overrides; unset keys fall back to registered text, then English."
225
+ },
226
+ {
227
+ "kind": "field",
228
+ "name": "_messages",
229
+ "privacy": "private",
230
+ "readonly": true,
231
+ "default": "new MessagesController( this, 'rc-editor-toolbar', DEFAULT_EDITOR_TOOLBAR_MESSAGES, { overrides: () => this.messages }, )"
220
232
  },
221
233
  {
222
234
  "kind": "field",
@@ -471,15 +483,6 @@
471
483
  }
472
484
  ],
473
485
  "attributes": [
474
- {
475
- "description": "Accessible label applied to the `rc-toolbar` container.",
476
- "name": "label",
477
- "type": {
478
- "text": "string"
479
- },
480
- "default": "'Formatting'",
481
- "fieldName": "label"
482
- },
483
486
  {
484
487
  "description": "Whether Bold formatting is active at the cursor.",
485
488
  "name": "active-bold",
@@ -607,6 +610,14 @@
607
610
  }
608
611
  ],
609
612
  "exports": [
613
+ {
614
+ "kind": "js",
615
+ "name": "DEFAULT_EDITOR_TOOLBAR_MESSAGES",
616
+ "declaration": {
617
+ "name": "DEFAULT_EDITOR_TOOLBAR_MESSAGES",
618
+ "module": "src/rc-editor-toolbar.ts"
619
+ }
620
+ },
610
621
  {
611
622
  "kind": "js",
612
623
  "name": "RcEditorToolbar",
@@ -621,99 +632,246 @@
621
632
  "kind": "javascript-module",
622
633
  "path": "src/rc-markdown-editor.ts",
623
634
  "declarations": [
635
+ {
636
+ "kind": "variable",
637
+ "name": "DEFAULT_MARKDOWN_EDITOR_MESSAGES",
638
+ "type": {
639
+ "text": "Readonly<RCMarkdownEditorMessages>"
640
+ }
641
+ },
624
642
  {
625
643
  "kind": "class",
626
- "description": "Rich/source Markdown editor with a formatting toolbar, backed by rc-textarea.\n\n- **Rich mode (default)**: A `contenteditable` div shows micromark-rendered\n HTML. DOM mutations are converted back to markdown via turndown and\n written to the backing `<textarea>` for form participation.\n- **Source mode**: An `<rc-textarea>` instance shows the markdown source\n with live decorations. Toggle via `source-mode` attribute or Ctrl+Shift+S.\n\nConsumer markup follows the same progressive-enhancement contract as\n`<rc-textarea>`:\n\n```html\n<rc-markdown-editor>\n <label for=\"body\">Content</label>\n <textarea id=\"body\" name=\"body\"></textarea>\n</rc-markdown-editor>\n```",
644
+ "description": "Rich/source Markdown editor with a formatting toolbar, backed by rc-textarea.\n\n- **Rich mode (default)**: A `contenteditable` div shows micromark-rendered\n HTML. DOM mutations are converted back to markdown via turndown and\n written to the backing `<textarea>` for form participation.\n- **Source mode**: An `<rc-textarea>` instance shows the markdown source\n with live decorations. Toggle via `source-mode` attribute or Ctrl+Shift+S.\n\nConsumer markup follows the same progressive-enhancement contract as\n`<rc-textarea>`:\n\n```html\n<rc-markdown-editor>\n <label for=\"body\">Content</label>\n <textarea id=\"body\" name=\"body\"></textarea>\n</rc-markdown-editor>\n```\n\nBuilt-in text follows the element's own `lang`, else `<html lang>`: per\nelement through `messages`, or for every editor through\n`registerMessages()` from `@rcarls/rc-common` under `rc-markdown-editor`\nand, for the toolbar, `rc-editor-toolbar`. The toolbar takes the editor's\n`lang`.",
627
645
  "name": "RcMarkdownEditor",
628
646
  "cssProperties": [
629
647
  {
630
648
  "description": "Font family of the rich-text view",
631
- "name": "--rme-font-family",
649
+ "name": "--rc-markdown-editor-font-family",
632
650
  "default": "inherit"
633
651
  },
634
652
  {
635
653
  "description": "Font size of the rich-text view",
636
- "name": "--rme-font-size",
654
+ "name": "--rc-markdown-editor-font-size",
637
655
  "default": "inherit"
638
656
  },
639
657
  {
640
658
  "description": "Line height of the rich-text view",
641
- "name": "--rme-line-height",
659
+ "name": "--rc-markdown-editor-line-height",
642
660
  "default": "1.6"
643
661
  },
644
662
  {
645
663
  "description": "Padding inside the rich-text view",
646
- "name": "--rme-padding",
664
+ "name": "--rc-markdown-editor-padding",
647
665
  "default": "0.75em 1em"
648
666
  },
649
667
  {
650
668
  "description": "Background color of the rich-text view",
651
- "name": "--rme-background",
669
+ "name": "--rc-markdown-editor-background",
652
670
  "default": "Canvas"
653
671
  },
654
672
  {
655
673
  "description": "Text color of the rich-text view",
656
- "name": "--rme-color",
674
+ "name": "--rc-markdown-editor-color",
657
675
  "default": "CanvasText"
658
676
  },
659
677
  {
660
678
  "description": "Border around the rich-text view",
661
- "name": "--rme-border",
679
+ "name": "--rc-markdown-editor-border",
662
680
  "default": "1px solid ButtonBorder"
663
681
  },
664
682
  {
665
683
  "description": "Border radius of the rich-text view",
666
- "name": "--rme-border-radius",
684
+ "name": "--rc-markdown-editor-border-radius",
667
685
  "default": "0 0 4px 4px"
668
686
  },
669
687
  {
670
688
  "description": "Focus ring outline on the rich-text view",
671
- "name": "--rme-focus-outline",
689
+ "name": "--rc-markdown-editor-focus-outline",
672
690
  "default": "2px solid Highlight"
673
691
  },
674
692
  {
675
693
  "description": "Font family of the source editor",
676
- "name": "--rme-src-font-family",
694
+ "name": "--rc-markdown-editor-src-font-family",
677
695
  "default": "'Cascadia Code', 'Fira Code', ui-monospace, monospace"
678
696
  },
679
697
  {
680
698
  "description": "Gap between toolbar buttons",
681
- "name": "--rme-toolbar-gap",
699
+ "name": "--rc-markdown-editor-toolbar-gap",
682
700
  "default": "1px"
683
701
  },
702
+ {
703
+ "description": "Padding inside the toolbar",
704
+ "name": "--rc-markdown-editor-toolbar-padding",
705
+ "default": "4px"
706
+ },
707
+ {
708
+ "description": "Toolbar border radius",
709
+ "name": "--rc-markdown-editor-toolbar-radius",
710
+ "default": "4px 4px 0 0"
711
+ },
712
+ {
713
+ "description": "Toolbar border",
714
+ "name": "--rc-markdown-editor-toolbar-border",
715
+ "default": "1px solid ButtonBorder"
716
+ },
717
+ {
718
+ "description": "Toolbar background",
719
+ "name": "--rc-markdown-editor-toolbar-background",
720
+ "default": "Canvas"
721
+ },
722
+ {
723
+ "description": "Toolbar text color",
724
+ "name": "--rc-markdown-editor-toolbar-color",
725
+ "default": "CanvasText"
726
+ },
684
727
  {
685
728
  "description": "Minimum inline and block size of toolbar buttons",
686
- "name": "--rme-toolbar-button-size",
729
+ "name": "--rc-markdown-editor-toolbar-button-size",
687
730
  "default": "2rem"
688
731
  },
732
+ {
733
+ "description": "Toolbar button background",
734
+ "name": "--rc-markdown-editor-toolbar-button-background",
735
+ "default": "transparent"
736
+ },
737
+ {
738
+ "description": "Toolbar button text color",
739
+ "name": "--rc-markdown-editor-toolbar-button-color",
740
+ "default": "ButtonText"
741
+ },
742
+ {
743
+ "description": "Toolbar button border",
744
+ "name": "--rc-markdown-editor-toolbar-button-border",
745
+ "default": "1px solid transparent"
746
+ },
747
+ {
748
+ "description": "Toolbar button border radius",
749
+ "name": "--rc-markdown-editor-toolbar-button-radius",
750
+ "default": "3px"
751
+ },
752
+ {
753
+ "description": "Toolbar button hover state-layer opacity",
754
+ "name": "--rc-markdown-editor-toolbar-button-hover-opacity",
755
+ "default": "0.08"
756
+ },
757
+ {
758
+ "description": "Toolbar button focus state-layer opacity",
759
+ "name": "--rc-markdown-editor-toolbar-button-focus-opacity",
760
+ "default": "0.12"
761
+ },
762
+ {
763
+ "description": "Toolbar button pressed state-layer opacity",
764
+ "name": "--rc-markdown-editor-toolbar-button-pressed-opacity",
765
+ "default": "0.12"
766
+ },
767
+ {
768
+ "description": "Active toolbar button background",
769
+ "name": "--rc-markdown-editor-toolbar-button-active-background",
770
+ "default": "Highlight"
771
+ },
772
+ {
773
+ "description": "Active toolbar button text color",
774
+ "name": "--rc-markdown-editor-toolbar-button-active-color",
775
+ "default": "HighlightText"
776
+ },
777
+ {
778
+ "description": "Active toolbar button border",
779
+ "name": "--rc-markdown-editor-toolbar-button-active-border",
780
+ "default": "1px solid Highlight"
781
+ },
782
+ {
783
+ "description": "Toolbar control focus outline",
784
+ "name": "--rc-markdown-editor-toolbar-focus-outline",
785
+ "default": "2px solid Highlight"
786
+ },
787
+ {
788
+ "description": "Toolbar control focus outline offset",
789
+ "name": "--rc-markdown-editor-toolbar-focus-outline-offset",
790
+ "default": "1px"
791
+ },
792
+ {
793
+ "description": "Toolbar select border",
794
+ "name": "--rc-markdown-editor-toolbar-select-border",
795
+ "default": "1px solid ButtonBorder"
796
+ },
797
+ {
798
+ "description": "Toolbar select border radius",
799
+ "name": "--rc-markdown-editor-toolbar-select-radius",
800
+ "default": "3px"
801
+ },
802
+ {
803
+ "description": "Toolbar select background",
804
+ "name": "--rc-markdown-editor-toolbar-select-background",
805
+ "default": "ButtonFace"
806
+ },
807
+ {
808
+ "description": "Toolbar select text color",
809
+ "name": "--rc-markdown-editor-toolbar-select-color",
810
+ "default": "ButtonText"
811
+ },
812
+ {
813
+ "description": "Active toolbar select background",
814
+ "name": "--rc-markdown-editor-toolbar-select-active-background",
815
+ "default": "Highlight"
816
+ },
817
+ {
818
+ "description": "Active toolbar select text color",
819
+ "name": "--rc-markdown-editor-toolbar-select-active-color",
820
+ "default": "HighlightText"
821
+ },
822
+ {
823
+ "description": "Active toolbar select border color",
824
+ "name": "--rc-markdown-editor-toolbar-select-active-border-color",
825
+ "default": "Highlight"
826
+ },
827
+ {
828
+ "description": "Toolbar input border",
829
+ "name": "--rc-markdown-editor-toolbar-input-border",
830
+ "default": "1px solid ButtonBorder"
831
+ },
832
+ {
833
+ "description": "Toolbar input border radius",
834
+ "name": "--rc-markdown-editor-toolbar-input-radius",
835
+ "default": "3px"
836
+ },
837
+ {
838
+ "description": "Toolbar input background",
839
+ "name": "--rc-markdown-editor-toolbar-input-background",
840
+ "default": "Field"
841
+ },
842
+ {
843
+ "description": "Toolbar input text color",
844
+ "name": "--rc-markdown-editor-toolbar-input-color",
845
+ "default": "FieldText"
846
+ },
689
847
  {
690
848
  "description": "Source-mode heading token color",
691
- "name": "--rme-src-heading-color",
849
+ "name": "--rc-markdown-editor-src-heading-color",
692
850
  "default": "light-dark(#1d6fc4, #82b4f5)"
693
851
  },
694
852
  {
695
853
  "description": "Source-mode inline/fenced code token color",
696
- "name": "--rme-src-code-color",
854
+ "name": "--rc-markdown-editor-src-code-color",
697
855
  "default": "light-dark(#c94a1a, #f09060)"
698
856
  },
699
857
  {
700
858
  "description": "Source-mode link token color",
701
- "name": "--rme-src-link-color",
859
+ "name": "--rc-markdown-editor-src-link-color",
702
860
  "default": "light-dark(#0370b0, #60b8e8)"
703
861
  },
704
862
  {
705
863
  "description": "Source-mode blockquote token color",
706
- "name": "--rme-src-blockquote-color",
864
+ "name": "--rc-markdown-editor-src-blockquote-color",
707
865
  "default": "light-dark(#2d7a42, #70b880)"
708
866
  },
709
867
  {
710
868
  "description": "Source-mode list marker token color",
711
- "name": "--rme-src-list-color",
869
+ "name": "--rc-markdown-editor-src-list-color",
712
870
  "default": "light-dark(#7a5c0a, #d4ac48)"
713
871
  },
714
872
  {
715
873
  "description": "Source-mode strikethrough token color",
716
- "name": "--rme-src-dim-color",
874
+ "name": "--rc-markdown-editor-src-dim-color",
717
875
  "default": "GrayText"
718
876
  }
719
877
  ],
@@ -734,6 +892,21 @@
734
892
  }
735
893
  ],
736
894
  "members": [
895
+ {
896
+ "kind": "field",
897
+ "name": "messages",
898
+ "type": {
899
+ "text": "Partial<RCMarkdownEditorMessages> | undefined"
900
+ },
901
+ "description": "Built-in text overrides; unset keys fall back to registered text, then English."
902
+ },
903
+ {
904
+ "kind": "field",
905
+ "name": "_messages",
906
+ "privacy": "private",
907
+ "readonly": true,
908
+ "default": "new MessagesController( this, 'rc-markdown-editor', DEFAULT_MARKDOWN_EDITOR_MESSAGES, { overrides: () => this.messages }, )"
909
+ },
737
910
  {
738
911
  "kind": "field",
739
912
  "name": "_value",
@@ -936,7 +1109,7 @@
936
1109
  "kind": "field",
937
1110
  "name": "_cachedTree",
938
1111
  "type": {
939
- "text": "ReturnType<typeof fromMarkdown> | null"
1112
+ "text": "MarkdownTree | null"
940
1113
  },
941
1114
  "privacy": "protected",
942
1115
  "default": "null"
@@ -1062,7 +1235,7 @@
1062
1235
  {
1063
1236
  "name": "tree",
1064
1237
  "type": {
1065
- "text": "ReturnType<typeof fromMarkdown>"
1238
+ "text": "MarkdownTree"
1066
1239
  }
1067
1240
  },
1068
1241
  {
@@ -1383,6 +1556,14 @@
1383
1556
  }
1384
1557
  ],
1385
1558
  "exports": [
1559
+ {
1560
+ "kind": "js",
1561
+ "name": "DEFAULT_MARKDOWN_EDITOR_MESSAGES",
1562
+ "declaration": {
1563
+ "name": "DEFAULT_MARKDOWN_EDITOR_MESSAGES",
1564
+ "module": "src/rc-markdown-editor.ts"
1565
+ }
1566
+ },
1386
1567
  {
1387
1568
  "kind": "js",
1388
1569
  "name": "RcMarkdownEditor",